|
|
1.1 root 1: #! /bin/sh
2: # Guess values for system-dependent variables and create Makefiles.
1.1.1.9 ! root 3: # Generated by GNU Autoconf 2.61 for hatari 1.2.0.
1.1 root 4: #
1.1.1.6 root 5: # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6: # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1.1 root 7: # This configure script is free software; the Free Software Foundation
8: # gives unlimited permission to copy, distribute and modify it.
9: ## --------------------- ##
10: ## M4sh Initialization. ##
11: ## --------------------- ##
12:
1.1.1.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.3 root 18: # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19: # is contrary to our usage. Disable this feature.
20: alias -g '${1+"$@"}'='"$@"'
1.1.1.6 root 21: setopt NO_GLOB_SUBST
22: else
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:
40: # The user is always right.
41: if test "${PATH_SEPARATOR+set}" != set; then
42: echo "#! /bin/sh" >conf$$.sh
43: echo "exit 0" >>conf$$.sh
44: chmod +x conf$$.sh
45: if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46: PATH_SEPARATOR=';'
47: else
48: PATH_SEPARATOR=:
49: fi
50: rm -f conf$$.sh
1.1 root 51: fi
52:
53: # Support unset when possible.
1.1.1.3 root 54: if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
1.1 root 55: as_unset=unset
56: else
57: as_unset=false
58: fi
59:
1.1.1.3 root 60:
1.1.1.6 root 61: # IFS
62: # We need space, tab and new line, in precisely that order. Quoting is
63: # there to prevent editors from complaining about space-tab.
64: # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65: # splitting by setting IFS to empty value.)
66: as_nl='
67: '
68: IFS=" "" $as_nl"
69:
70: # Find who we are. Look in the path if we contain no directory separator.
71: case $0 in
72: *[\\/]* ) as_myself=$0 ;;
73: *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74: for as_dir in $PATH
75: do
76: IFS=$as_save_IFS
77: test -z "$as_dir" && as_dir=.
78: test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79: done
80: IFS=$as_save_IFS
81:
82: ;;
83: esac
84: # We did not find ourselves, most probably we were run as `sh COMMAND'
85: # in which case we are not to be found in the path.
86: if test "x$as_myself" = x; then
87: as_myself=$0
88: fi
89: if test ! -f "$as_myself"; then
90: echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91: { (exit 1); exit 1; }
92: fi
93:
1.1.1.3 root 94: # Work around bugs in pre-3.0 UWIN ksh.
1.1.1.6 root 95: for as_var in ENV MAIL MAILPATH
96: do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97: done
1.1.1.3 root 98: PS1='$ '
99: PS2='> '
100: PS4='+ '
101:
102: # NLS nuisances.
103: for as_var in \
104: LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105: LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106: LC_TELEPHONE LC_TIME
107: do
108: if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109: eval $as_var=C; export $as_var
110: else
1.1.1.6 root 111: ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
1.1.1.3 root 112: fi
113: done
114:
115: # Required to use basename.
1.1.1.6 root 116: if expr a : '\(a\)' >/dev/null 2>&1 &&
117: test "X`expr 00001 : '.*\(...\)'`" = X001; then
1.1.1.3 root 118: as_expr=expr
119: else
120: as_expr=false
121: fi
122:
1.1.1.6 root 123: if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
1.1.1.3 root 124: as_basename=basename
125: else
126: as_basename=false
127: fi
1.1 root 128:
129:
130: # Name of the executable.
1.1.1.6 root 131: as_me=`$as_basename -- "$0" ||
1.1 root 132: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133: X"$0" : 'X\(//\)$' \| \
1.1.1.6 root 134: X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1.1 root 135: echo X/"$0" |
1.1.1.6 root 136: sed '/^.*\/\([^/][^/]*\)\/*$/{
137: s//\1/
138: q
139: }
140: /^X\/\(\/\/\)$/{
141: s//\1/
142: q
143: }
144: /^X\/\(\/\).*/{
145: s//\1/
146: q
147: }
148: s/.*/./; q'`
1.1 root 149:
1.1.1.6 root 150: # CDPATH.
151: $as_unset CDPATH
1.1.1.3 root 152:
1.1 root 153:
1.1.1.6 root 154: if test "x$CONFIG_SHELL" = x; then
155: if (eval ":") 2>/dev/null; then
156: as_have_required=yes
157: else
158: as_have_required=no
159: fi
160:
161: if test $as_have_required = yes && (eval ":
162: (as_func_return () {
163: (exit \$1)
164: }
165: as_func_success () {
166: as_func_return 0
167: }
168: as_func_failure () {
169: as_func_return 1
170: }
171: as_func_ret_success () {
172: return 0
173: }
174: as_func_ret_failure () {
175: return 1
176: }
177:
178: exitcode=0
179: if as_func_success; then
180: :
181: else
182: exitcode=1
183: echo as_func_success failed.
1.1 root 184: fi
185:
1.1.1.6 root 186: if as_func_failure; then
187: exitcode=1
188: echo as_func_failure succeeded.
189: fi
1.1 root 190:
1.1.1.6 root 191: if as_func_ret_success; then
192: :
193: else
194: exitcode=1
195: echo as_func_ret_success failed.
196: fi
1.1 root 197:
1.1.1.6 root 198: if as_func_ret_failure; then
199: exitcode=1
200: echo as_func_ret_failure succeeded.
201: fi
202:
203: if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204: :
205: else
206: exitcode=1
207: echo positional parameters were not saved.
208: fi
209:
210: test \$exitcode = 0) || { (exit 1); exit 1; }
211:
212: (
213: as_lineno_1=\$LINENO
214: as_lineno_2=\$LINENO
215: test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216: test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217: ") 2> /dev/null; then
218: :
219: else
220: as_candidate_shells=
1.1 root 221: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1.1.1.9 ! root 222: for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
1.1 root 223: do
224: IFS=$as_save_IFS
225: test -z "$as_dir" && as_dir=.
1.1.1.6 root 226: case $as_dir in
1.1 root 227: /*)
1.1.1.6 root 228: for as_base in sh bash ksh sh5; do
229: as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230: done;;
231: esac
232: done
233: IFS=$as_save_IFS
234:
235:
236: for as_shell in $as_candidate_shells $SHELL; do
237: # Try only shells that exist, to save several forks.
238: if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239: { ("$as_shell") 2> /dev/null <<\_ASEOF
240: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
241: emulate sh
242: NULLCMD=:
243: # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244: # is contrary to our usage. Disable this feature.
245: alias -g '${1+"$@"}'='"$@"'
246: setopt NO_GLOB_SUBST
247: else
1.1.1.9 ! root 248: case `(set -o) 2>/dev/null` in
! 249: *posix*) set -o posix ;;
! 250: esac
! 251:
1.1.1.6 root 252: fi
1.1.1.9 ! root 253:
1.1.1.6 root 254:
255: :
256: _ASEOF
257: }; then
258: CONFIG_SHELL=$as_shell
259: as_have_required=yes
260: if { "$as_shell" 2> /dev/null <<\_ASEOF
261: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262: emulate sh
263: NULLCMD=:
264: # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265: # is contrary to our usage. Disable this feature.
266: alias -g '${1+"$@"}'='"$@"'
267: setopt NO_GLOB_SUBST
268: else
1.1.1.9 ! root 269: case `(set -o) 2>/dev/null` in
! 270: *posix*) set -o posix ;;
! 271: esac
! 272:
1.1.1.6 root 273: fi
1.1.1.9 ! root 274:
1.1.1.6 root 275:
276: :
277: (as_func_return () {
278: (exit $1)
279: }
280: as_func_success () {
281: as_func_return 0
282: }
283: as_func_failure () {
284: as_func_return 1
285: }
286: as_func_ret_success () {
287: return 0
288: }
289: as_func_ret_failure () {
290: return 1
291: }
292:
293: exitcode=0
294: if as_func_success; then
295: :
296: else
297: exitcode=1
298: echo as_func_success failed.
299: fi
300:
301: if as_func_failure; then
302: exitcode=1
303: echo as_func_failure succeeded.
304: fi
305:
306: if as_func_ret_success; then
307: :
308: else
309: exitcode=1
310: echo as_func_ret_success failed.
311: fi
312:
313: if as_func_ret_failure; then
314: exitcode=1
315: echo as_func_ret_failure succeeded.
316: fi
317:
318: if ( set x; as_func_ret_success y && test x = "$1" ); then
319: :
320: else
321: exitcode=1
322: echo positional parameters were not saved.
323: fi
324:
325: test $exitcode = 0) || { (exit 1); exit 1; }
326:
327: (
1.1 root 328: as_lineno_1=$LINENO
329: as_lineno_2=$LINENO
330: test "x$as_lineno_1" != "x$as_lineno_2" &&
1.1.1.6 root 331: test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
332:
333: _ASEOF
334: }; then
335: break
336: fi
337:
338: fi
339:
340: done
341:
342: if test "x$CONFIG_SHELL" != x; then
343: for as_var in BASH_ENV ENV
344: do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345: done
346: export CONFIG_SHELL
347: exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
348: fi
349:
350:
351: if test $as_have_required = no; then
352: echo This script requires a shell more modern than all the
353: echo shells that I found on your system. Please install a
354: echo modern shell, or manually run the script under such a
355: echo shell if you do have one.
356: { (exit 1); exit 1; }
357: fi
358:
359:
360: fi
361:
362: fi
363:
364:
365:
366: (eval "as_func_return () {
367: (exit \$1)
368: }
369: as_func_success () {
370: as_func_return 0
371: }
372: as_func_failure () {
373: as_func_return 1
374: }
375: as_func_ret_success () {
376: return 0
377: }
378: as_func_ret_failure () {
379: return 1
380: }
381:
382: exitcode=0
383: if as_func_success; then
384: :
385: else
386: exitcode=1
387: echo as_func_success failed.
388: fi
389:
390: if as_func_failure; then
391: exitcode=1
392: echo as_func_failure succeeded.
393: fi
394:
395: if as_func_ret_success; then
396: :
397: else
398: exitcode=1
399: echo as_func_ret_success failed.
400: fi
401:
402: if as_func_ret_failure; then
403: exitcode=1
404: echo as_func_ret_failure succeeded.
405: fi
406:
407: if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
408: :
409: else
410: exitcode=1
411: echo positional parameters were not saved.
412: fi
413:
414: test \$exitcode = 0") || {
415: echo No shell found that supports shell functions.
416: echo Please tell [email protected] about your system,
417: echo including any error possibly output before this
418: echo message
419: }
420:
421:
422:
423: as_lineno_1=$LINENO
424: as_lineno_2=$LINENO
425: test "x$as_lineno_1" != "x$as_lineno_2" &&
426: test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
1.1 root 427:
428: # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429: # uniformly replaced by the line number. The first 'sed' inserts a
1.1.1.6 root 430: # line-number line after each line using $LINENO; the second 'sed'
431: # does the real work. The second script uses 'N' to pair each
432: # line-number line with the line containing $LINENO, and appends
433: # trailing '-' during substitution so that $LINENO is not a special
434: # case at line end.
1.1 root 435: # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
1.1.1.6 root 436: # scripts with optimization help from Paolo Bonzini. Blame Lee
437: # E. McMahon (1931-1989) for sed's syntax. :-)
438: sed -n '
439: p
440: /[$]LINENO/=
441: ' <$as_myself |
1.1 root 442: sed '
1.1.1.6 root 443: s/[$]LINENO.*/&-/
444: t lineno
445: b
446: :lineno
1.1 root 447: N
1.1.1.6 root 448: :loop
449: s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
1.1 root 450: t loop
1.1.1.6 root 451: s/-\n.*//
1.1 root 452: ' >$as_me.lineno &&
1.1.1.6 root 453: chmod +x "$as_me.lineno" ||
1.1 root 454: { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455: { (exit 1); exit 1; }; }
456:
457: # Don't try to exec as it changes $[0], causing all sort of problems
458: # (the dirname of $[0] is not the place where we might find the
1.1.1.6 root 459: # original and so on. Autoconf is especially sensitive to this).
460: . "./$as_me.lineno"
1.1 root 461: # Exit status is that of the last command.
462: exit
463: }
464:
465:
1.1.1.6 root 466: if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
467: as_dirname=dirname
468: else
469: as_dirname=false
470: fi
471:
472: ECHO_C= ECHO_N= ECHO_T=
473: case `echo -n x` in
474: -n*)
475: case `echo 'x\c'` in
476: *c*) ECHO_T=' ';; # ECHO_T is single tab character.
477: *) ECHO_C='\c';;
478: esac;;
479: *)
480: ECHO_N='-n';;
1.1 root 481: esac
482:
1.1.1.6 root 483: if expr a : '\(a\)' >/dev/null 2>&1 &&
484: test "X`expr 00001 : '.*\(...\)'`" = X001; then
1.1 root 485: as_expr=expr
486: else
487: as_expr=false
488: fi
489:
490: rm -f conf$$ conf$$.exe conf$$.file
1.1.1.6 root 491: if test -d conf$$.dir; then
492: rm -f conf$$.dir/conf$$.file
493: else
494: rm -f conf$$.dir
495: mkdir conf$$.dir
496: fi
1.1 root 497: echo >conf$$.file
498: if ln -s conf$$.file conf$$ 2>/dev/null; then
1.1.1.6 root 499: as_ln_s='ln -s'
500: # ... but there are two gotchas:
501: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502: # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503: # In both cases, we have to default to `cp -p'.
504: ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
1.1 root 505: as_ln_s='cp -p'
506: elif ln conf$$.file conf$$ 2>/dev/null; then
507: as_ln_s=ln
508: else
509: as_ln_s='cp -p'
510: fi
1.1.1.6 root 511: rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512: rmdir conf$$.dir 2>/dev/null
1.1 root 513:
1.1.1.3 root 514: if mkdir -p . 2>/dev/null; then
515: as_mkdir_p=:
516: else
517: test -d ./-p && rmdir ./-p
518: as_mkdir_p=false
519: fi
520:
1.1.1.9 ! root 521: if test -x / >/dev/null 2>&1; then
! 522: as_test_x='test -x'
1.1.1.6 root 523: else
1.1.1.9 ! root 524: if ls -dL / >/dev/null 2>&1; then
! 525: as_ls_L_option=L
! 526: else
! 527: as_ls_L_option=
! 528: fi
! 529: as_test_x='
! 530: eval sh -c '\''
! 531: if test -d "$1"; then
! 532: test -d "$1/.";
! 533: else
! 534: case $1 in
! 535: -*)set "./$1";;
! 536: esac;
! 537: case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
! 538: ???[sx]*):;;*)false;;esac;fi
! 539: '\'' sh
! 540: '
1.1.1.6 root 541: fi
1.1.1.9 ! root 542: as_executable_p=$as_test_x
1.1 root 543:
544: # Sed expression to map a string onto a valid CPP name.
1.1.1.3 root 545: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
1.1 root 546:
547: # Sed expression to map a string onto a valid variable name.
1.1.1.3 root 548: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
1.1 root 549:
550:
551:
1.1.1.6 root 552: exec 7<&0 </dev/null 6>&1
1.1 root 553:
554: # Name of the host.
555: # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
556: # so uname gets run too.
557: ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
558:
559: #
560: # Initializations.
561: #
562: ac_default_prefix=/usr/local
1.1.1.6 root 563: ac_clean_files=
1.1.1.3 root 564: ac_config_libobj_dir=.
1.1.1.6 root 565: LIBOBJS=
1.1 root 566: cross_compiling=no
567: subdirs=
568: MFLAGS=
569: MAKEFLAGS=
570: SHELL=${CONFIG_SHELL-/bin/sh}
571:
572: # Identity of this package.
573: PACKAGE_NAME='hatari'
574: PACKAGE_TARNAME='hatari'
1.1.1.9 ! root 575: PACKAGE_VERSION='1.2.0'
! 576: PACKAGE_STRING='hatari 1.2.0'
1.1 root 577: PACKAGE_BUGREPORT=''
578:
579: ac_unique_file="src/main.c"
580: # Factoring default headers for most tests.
581: ac_includes_default="\
582: #include <stdio.h>
1.1.1.9 ! root 583: #ifdef HAVE_SYS_TYPES_H
1.1 root 584: # include <sys/types.h>
585: #endif
1.1.1.9 ! root 586: #ifdef HAVE_SYS_STAT_H
1.1 root 587: # include <sys/stat.h>
588: #endif
1.1.1.9 ! root 589: #ifdef STDC_HEADERS
1.1 root 590: # include <stdlib.h>
591: # include <stddef.h>
592: #else
1.1.1.9 ! root 593: # ifdef HAVE_STDLIB_H
1.1 root 594: # include <stdlib.h>
595: # endif
596: #endif
1.1.1.9 ! root 597: #ifdef HAVE_STRING_H
! 598: # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
1.1 root 599: # include <memory.h>
600: # endif
601: # include <string.h>
602: #endif
1.1.1.9 ! root 603: #ifdef HAVE_STRINGS_H
1.1 root 604: # include <strings.h>
605: #endif
1.1.1.9 ! root 606: #ifdef HAVE_INTTYPES_H
1.1 root 607: # include <inttypes.h>
608: #endif
1.1.1.9 ! root 609: #ifdef HAVE_STDINT_H
1.1.1.6 root 610: # include <stdint.h>
611: #endif
1.1.1.9 ! root 612: #ifdef HAVE_UNISTD_H
1.1 root 613: # include <unistd.h>
614: #endif"
615:
1.1.1.6 root 616: ac_subst_vars='SHELL
617: PATH_SEPARATOR
618: PACKAGE_NAME
619: PACKAGE_TARNAME
620: PACKAGE_VERSION
621: PACKAGE_STRING
622: PACKAGE_BUGREPORT
623: exec_prefix
624: prefix
625: program_transform_name
626: bindir
627: sbindir
628: libexecdir
629: datarootdir
630: datadir
631: sysconfdir
632: sharedstatedir
633: localstatedir
634: includedir
635: oldincludedir
636: docdir
637: infodir
638: htmldir
639: dvidir
640: pdfdir
641: psdir
642: libdir
643: localedir
644: mandir
645: DEFS
646: ECHO_C
647: ECHO_N
648: ECHO_T
649: LIBS
650: build_alias
651: host_alias
652: target_alias
653: build
654: build_cpu
655: build_vendor
656: build_os
657: host
658: host_cpu
659: host_vendor
660: host_os
661: target
662: target_cpu
663: target_vendor
664: target_os
665: CC
666: CFLAGS
667: LDFLAGS
668: CPPFLAGS
669: ac_ct_CC
670: EXEEXT
671: OBJEXT
672: INSTALL_PROGRAM
673: INSTALL_SCRIPT
674: INSTALL_DATA
675: RANLIB
676: CPP
677: GREP
678: EGREP
1.1.1.8 root 679: SDL_CONFIG
680: SDL_CFLAGS
681: SDL_LIBS
1.1.1.6 root 682: HAVE_PKG_CONFIG
683: PKG_CONFIG
684: X_CFLAGS
685: X_LIBS
686: XMKMF
687: X_PRE_LIBS
688: X_EXTRA_LIBS
689: LIBOBJS
690: HOSTCC
691: HOSTCFLAGS
692: HOSTLDFLAGS
693: LTLIBOBJS'
1.1.1.3 root 694: ac_subst_files=''
1.1.1.6 root 695: ac_precious_vars='build_alias
696: host_alias
697: target_alias
698: CC
699: CFLAGS
700: LDFLAGS
1.1.1.9 ! root 701: LIBS
1.1.1.6 root 702: CPPFLAGS
703: CPP
704: PKG_CONFIG
705: X_CFLAGS
706: X_LIBS
707: XMKMF'
708:
1.1 root 709:
710: # Initialize some variables set by options.
711: ac_init_help=
712: ac_init_version=false
713: # The variables have the same names as the options, with
714: # dashes changed to underlines.
715: cache_file=/dev/null
716: exec_prefix=NONE
717: no_create=
718: no_recursion=
719: prefix=NONE
720: program_prefix=NONE
721: program_suffix=NONE
722: program_transform_name=s,x,x,
723: silent=
724: site=
725: srcdir=
726: verbose=
727: x_includes=NONE
728: x_libraries=NONE
729:
730: # Installation directory options.
731: # These are left unexpanded so users can "make install exec_prefix=/foo"
732: # and all the variables that are supposed to be based on exec_prefix
733: # by default will actually change.
734: # Use braces instead of parens because sh, perl, etc. also accept them.
1.1.1.6 root 735: # (The list follows the same order as the GNU Coding Standards.)
1.1 root 736: bindir='${exec_prefix}/bin'
737: sbindir='${exec_prefix}/sbin'
738: libexecdir='${exec_prefix}/libexec'
1.1.1.6 root 739: datarootdir='${prefix}/share'
740: datadir='${datarootdir}'
1.1 root 741: sysconfdir='${prefix}/etc'
742: sharedstatedir='${prefix}/com'
743: localstatedir='${prefix}/var'
744: includedir='${prefix}/include'
745: oldincludedir='/usr/include'
1.1.1.6 root 746: docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
747: infodir='${datarootdir}/info'
748: htmldir='${docdir}'
749: dvidir='${docdir}'
750: pdfdir='${docdir}'
751: psdir='${docdir}'
752: libdir='${exec_prefix}/lib'
753: localedir='${datarootdir}/locale'
754: mandir='${datarootdir}/man'
1.1 root 755:
756: ac_prev=
1.1.1.6 root 757: ac_dashdash=
1.1 root 758: for ac_option
759: do
760: # If the previous option needs an argument, assign it.
761: if test -n "$ac_prev"; then
1.1.1.6 root 762: eval $ac_prev=\$ac_option
1.1 root 763: ac_prev=
764: continue
765: fi
766:
1.1.1.6 root 767: case $ac_option in
768: *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
769: *) ac_optarg=yes ;;
770: esac
1.1 root 771:
772: # Accept the important Cygnus configure options, so we can diagnose typos.
773:
1.1.1.6 root 774: case $ac_dashdash$ac_option in
775: --)
776: ac_dashdash=yes ;;
1.1 root 777:
778: -bindir | --bindir | --bindi | --bind | --bin | --bi)
779: ac_prev=bindir ;;
780: -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
781: bindir=$ac_optarg ;;
782:
783: -build | --build | --buil | --bui | --bu)
784: ac_prev=build_alias ;;
785: -build=* | --build=* | --buil=* | --bui=* | --bu=*)
786: build_alias=$ac_optarg ;;
787:
788: -cache-file | --cache-file | --cache-fil | --cache-fi \
789: | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
790: ac_prev=cache_file ;;
791: -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
792: | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
793: cache_file=$ac_optarg ;;
794:
795: --config-cache | -C)
796: cache_file=config.cache ;;
797:
1.1.1.6 root 798: -datadir | --datadir | --datadi | --datad)
1.1 root 799: ac_prev=datadir ;;
1.1.1.6 root 800: -datadir=* | --datadir=* | --datadi=* | --datad=*)
1.1 root 801: datadir=$ac_optarg ;;
802:
1.1.1.6 root 803: -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
804: | --dataroo | --dataro | --datar)
805: ac_prev=datarootdir ;;
806: -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
807: | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
808: datarootdir=$ac_optarg ;;
809:
1.1 root 810: -disable-* | --disable-*)
811: ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
812: # Reject names that are not valid shell variable names.
1.1.1.9 ! root 813: expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1.1 root 814: { echo "$as_me: error: invalid feature name: $ac_feature" >&2
815: { (exit 1); exit 1; }; }
1.1.1.9 ! root 816: ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1.1.1.6 root 817: eval enable_$ac_feature=no ;;
818:
819: -docdir | --docdir | --docdi | --doc | --do)
820: ac_prev=docdir ;;
821: -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
822: docdir=$ac_optarg ;;
823:
824: -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
825: ac_prev=dvidir ;;
826: -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
827: dvidir=$ac_optarg ;;
1.1 root 828:
829: -enable-* | --enable-*)
830: ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
831: # Reject names that are not valid shell variable names.
1.1.1.9 ! root 832: expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1.1 root 833: { echo "$as_me: error: invalid feature name: $ac_feature" >&2
834: { (exit 1); exit 1; }; }
1.1.1.9 ! root 835: ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1.1.1.6 root 836: eval enable_$ac_feature=\$ac_optarg ;;
1.1 root 837:
838: -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
839: | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
840: | --exec | --exe | --ex)
841: ac_prev=exec_prefix ;;
842: -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
843: | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
844: | --exec=* | --exe=* | --ex=*)
845: exec_prefix=$ac_optarg ;;
846:
847: -gas | --gas | --ga | --g)
848: # Obsolete; use --with-gas.
849: with_gas=yes ;;
850:
851: -help | --help | --hel | --he | -h)
852: ac_init_help=long ;;
853: -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
854: ac_init_help=recursive ;;
855: -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
856: ac_init_help=short ;;
857:
858: -host | --host | --hos | --ho)
859: ac_prev=host_alias ;;
860: -host=* | --host=* | --hos=* | --ho=*)
861: host_alias=$ac_optarg ;;
862:
1.1.1.6 root 863: -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
864: ac_prev=htmldir ;;
865: -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
866: | --ht=*)
867: htmldir=$ac_optarg ;;
868:
1.1 root 869: -includedir | --includedir | --includedi | --included | --include \
870: | --includ | --inclu | --incl | --inc)
871: ac_prev=includedir ;;
872: -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
873: | --includ=* | --inclu=* | --incl=* | --inc=*)
874: includedir=$ac_optarg ;;
875:
876: -infodir | --infodir | --infodi | --infod | --info | --inf)
877: ac_prev=infodir ;;
878: -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
879: infodir=$ac_optarg ;;
880:
881: -libdir | --libdir | --libdi | --libd)
882: ac_prev=libdir ;;
883: -libdir=* | --libdir=* | --libdi=* | --libd=*)
884: libdir=$ac_optarg ;;
885:
886: -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
887: | --libexe | --libex | --libe)
888: ac_prev=libexecdir ;;
889: -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
890: | --libexe=* | --libex=* | --libe=*)
891: libexecdir=$ac_optarg ;;
892:
1.1.1.6 root 893: -localedir | --localedir | --localedi | --localed | --locale)
894: ac_prev=localedir ;;
895: -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
896: localedir=$ac_optarg ;;
897:
1.1 root 898: -localstatedir | --localstatedir | --localstatedi | --localstated \
1.1.1.6 root 899: | --localstate | --localstat | --localsta | --localst | --locals)
1.1 root 900: ac_prev=localstatedir ;;
901: -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1.1.1.6 root 902: | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1.1 root 903: localstatedir=$ac_optarg ;;
904:
905: -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
906: ac_prev=mandir ;;
907: -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
908: mandir=$ac_optarg ;;
909:
910: -nfp | --nfp | --nf)
911: # Obsolete; use --without-fp.
912: with_fp=no ;;
913:
914: -no-create | --no-create | --no-creat | --no-crea | --no-cre \
915: | --no-cr | --no-c | -n)
916: no_create=yes ;;
917:
918: -no-recursion | --no-recursion | --no-recursio | --no-recursi \
919: | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
920: no_recursion=yes ;;
921:
922: -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
923: | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
924: | --oldin | --oldi | --old | --ol | --o)
925: ac_prev=oldincludedir ;;
926: -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
927: | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
928: | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
929: oldincludedir=$ac_optarg ;;
930:
931: -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
932: ac_prev=prefix ;;
933: -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
934: prefix=$ac_optarg ;;
935:
936: -program-prefix | --program-prefix | --program-prefi | --program-pref \
937: | --program-pre | --program-pr | --program-p)
938: ac_prev=program_prefix ;;
939: -program-prefix=* | --program-prefix=* | --program-prefi=* \
940: | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
941: program_prefix=$ac_optarg ;;
942:
943: -program-suffix | --program-suffix | --program-suffi | --program-suff \
944: | --program-suf | --program-su | --program-s)
945: ac_prev=program_suffix ;;
946: -program-suffix=* | --program-suffix=* | --program-suffi=* \
947: | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
948: program_suffix=$ac_optarg ;;
949:
950: -program-transform-name | --program-transform-name \
951: | --program-transform-nam | --program-transform-na \
952: | --program-transform-n | --program-transform- \
953: | --program-transform | --program-transfor \
954: | --program-transfo | --program-transf \
955: | --program-trans | --program-tran \
956: | --progr-tra | --program-tr | --program-t)
957: ac_prev=program_transform_name ;;
958: -program-transform-name=* | --program-transform-name=* \
959: | --program-transform-nam=* | --program-transform-na=* \
960: | --program-transform-n=* | --program-transform-=* \
961: | --program-transform=* | --program-transfor=* \
962: | --program-transfo=* | --program-transf=* \
963: | --program-trans=* | --program-tran=* \
964: | --progr-tra=* | --program-tr=* | --program-t=*)
965: program_transform_name=$ac_optarg ;;
966:
1.1.1.6 root 967: -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
968: ac_prev=pdfdir ;;
969: -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
970: pdfdir=$ac_optarg ;;
971:
972: -psdir | --psdir | --psdi | --psd | --ps)
973: ac_prev=psdir ;;
974: -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
975: psdir=$ac_optarg ;;
976:
1.1 root 977: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
978: | -silent | --silent | --silen | --sile | --sil)
979: silent=yes ;;
980:
981: -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
982: ac_prev=sbindir ;;
983: -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
984: | --sbi=* | --sb=*)
985: sbindir=$ac_optarg ;;
986:
987: -sharedstatedir | --sharedstatedir | --sharedstatedi \
988: | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
989: | --sharedst | --shareds | --shared | --share | --shar \
990: | --sha | --sh)
991: ac_prev=sharedstatedir ;;
992: -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
993: | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
994: | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
995: | --sha=* | --sh=*)
996: sharedstatedir=$ac_optarg ;;
997:
998: -site | --site | --sit)
999: ac_prev=site ;;
1000: -site=* | --site=* | --sit=*)
1001: site=$ac_optarg ;;
1002:
1003: -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1004: ac_prev=srcdir ;;
1005: -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1006: srcdir=$ac_optarg ;;
1007:
1008: -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1009: | --syscon | --sysco | --sysc | --sys | --sy)
1010: ac_prev=sysconfdir ;;
1011: -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1012: | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1013: sysconfdir=$ac_optarg ;;
1014:
1015: -target | --target | --targe | --targ | --tar | --ta | --t)
1016: ac_prev=target_alias ;;
1017: -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1018: target_alias=$ac_optarg ;;
1019:
1020: -v | -verbose | --verbose | --verbos | --verbo | --verb)
1021: verbose=yes ;;
1022:
1023: -version | --version | --versio | --versi | --vers | -V)
1024: ac_init_version=: ;;
1025:
1026: -with-* | --with-*)
1027: ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1028: # Reject names that are not valid shell variable names.
1.1.1.9 ! root 1029: expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1.1 root 1030: { echo "$as_me: error: invalid package name: $ac_package" >&2
1031: { (exit 1); exit 1; }; }
1.1.1.9 ! root 1032: ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1.1.1.6 root 1033: eval with_$ac_package=\$ac_optarg ;;
1.1 root 1034:
1035: -without-* | --without-*)
1036: ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1037: # Reject names that are not valid shell variable names.
1.1.1.9 ! root 1038: expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1.1 root 1039: { echo "$as_me: error: invalid package name: $ac_package" >&2
1040: { (exit 1); exit 1; }; }
1.1.1.9 ! root 1041: ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1.1.1.6 root 1042: eval with_$ac_package=no ;;
1.1 root 1043:
1044: --x)
1045: # Obsolete; use --with-x.
1046: with_x=yes ;;
1047:
1048: -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1049: | --x-incl | --x-inc | --x-in | --x-i)
1050: ac_prev=x_includes ;;
1051: -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1052: | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1053: x_includes=$ac_optarg ;;
1054:
1055: -x-libraries | --x-libraries | --x-librarie | --x-librari \
1056: | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1057: ac_prev=x_libraries ;;
1058: -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1059: | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1060: x_libraries=$ac_optarg ;;
1061:
1062: -*) { echo "$as_me: error: unrecognized option: $ac_option
1063: Try \`$0 --help' for more information." >&2
1064: { (exit 1); exit 1; }; }
1065: ;;
1066:
1067: *=*)
1068: ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1069: # Reject names that are not valid shell variable names.
1070: expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1071: { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1072: { (exit 1); exit 1; }; }
1.1.1.6 root 1073: eval $ac_envvar=\$ac_optarg
1.1 root 1074: export $ac_envvar ;;
1075:
1076: *)
1077: # FIXME: should be removed in autoconf 3.0.
1078: echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1079: expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1080: echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1081: : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1082: ;;
1083:
1084: esac
1085: done
1086:
1087: if test -n "$ac_prev"; then
1088: ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1089: { echo "$as_me: error: missing argument to $ac_option" >&2
1090: { (exit 1); exit 1; }; }
1091: fi
1092:
1.1.1.6 root 1093: # Be sure to have absolute directory names.
1094: for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1095: datadir sysconfdir sharedstatedir localstatedir includedir \
1096: oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1097: libdir localedir mandir
1.1 root 1098: do
1.1.1.6 root 1099: eval ac_val=\$$ac_var
1.1 root 1100: case $ac_val in
1.1.1.6 root 1101: [\\/$]* | ?:[\\/]* ) continue;;
1102: NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1.1 root 1103: esac
1.1.1.6 root 1104: { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1105: { (exit 1); exit 1; }; }
1.1 root 1106: done
1107:
1108: # There might be people who depend on the old broken behavior: `$host'
1109: # used to hold the argument of --host etc.
1110: # FIXME: To remove some day.
1111: build=$build_alias
1112: host=$host_alias
1113: target=$target_alias
1114:
1115: # FIXME: To remove some day.
1116: if test "x$host_alias" != x; then
1117: if test "x$build_alias" = x; then
1118: cross_compiling=maybe
1119: echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1120: If a cross compiler is detected then cross compile mode will be used." >&2
1121: elif test "x$build_alias" != "x$host_alias"; then
1122: cross_compiling=yes
1123: fi
1124: fi
1125:
1126: ac_tool_prefix=
1127: test -n "$host_alias" && ac_tool_prefix=$host_alias-
1128:
1129: test "$silent" = yes && exec 6>/dev/null
1130:
1131:
1.1.1.6 root 1132: ac_pwd=`pwd` && test -n "$ac_pwd" &&
1133: ac_ls_di=`ls -di .` &&
1134: ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1135: { echo "$as_me: error: Working directory cannot be determined" >&2
1136: { (exit 1); exit 1; }; }
1137: test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1138: { echo "$as_me: error: pwd does not report name of working directory" >&2
1139: { (exit 1); exit 1; }; }
1140:
1141:
1.1 root 1142: # Find the source files, if location was not specified.
1143: if test -z "$srcdir"; then
1144: ac_srcdir_defaulted=yes
1.1.1.6 root 1145: # Try the directory containing this script, then the parent directory.
1146: ac_confdir=`$as_dirname -- "$0" ||
1.1 root 1147: $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1.1.1.3 root 1148: X"$0" : 'X\(//\)[^/]' \| \
1149: X"$0" : 'X\(//\)$' \| \
1.1.1.6 root 1150: X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1.1 root 1151: echo X"$0" |
1.1.1.6 root 1152: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1153: s//\1/
1154: q
1155: }
1156: /^X\(\/\/\)[^/].*/{
1157: s//\1/
1158: q
1159: }
1160: /^X\(\/\/\)$/{
1161: s//\1/
1162: q
1163: }
1164: /^X\(\/\).*/{
1165: s//\1/
1166: q
1167: }
1168: s/.*/./; q'`
1.1 root 1169: srcdir=$ac_confdir
1.1.1.6 root 1170: if test ! -r "$srcdir/$ac_unique_file"; then
1.1 root 1171: srcdir=..
1172: fi
1173: else
1174: ac_srcdir_defaulted=no
1175: fi
1.1.1.6 root 1176: if test ! -r "$srcdir/$ac_unique_file"; then
1177: test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1178: { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1.1 root 1179: { (exit 1); exit 1; }; }
1180: fi
1.1.1.6 root 1181: ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1182: ac_abs_confdir=`(
1183: cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1.1.1.3 root 1184: { (exit 1); exit 1; }; }
1.1.1.6 root 1185: pwd)`
1186: # When building in place, set srcdir=.
1187: if test "$ac_abs_confdir" = "$ac_pwd"; then
1188: srcdir=.
1189: fi
1190: # Remove unnecessary trailing slashes from srcdir.
1191: # Double slashes in file names in object file debugging info
1192: # mess up M-x gdb in Emacs.
1193: case $srcdir in
1194: */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1195: esac
1196: for ac_var in $ac_precious_vars; do
1197: eval ac_env_${ac_var}_set=\${${ac_var}+set}
1198: eval ac_env_${ac_var}_value=\$${ac_var}
1199: eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1200: eval ac_cv_env_${ac_var}_value=\$${ac_var}
1201: done
1202:
1203: #
1.1 root 1204: # Report the --help message.
1205: #
1206: if test "$ac_init_help" = "long"; then
1207: # Omit some internal or obsolete options to make the list less imposing.
1208: # This message is too long to be a string in the A/UX 3.1 sh.
1209: cat <<_ACEOF
1.1.1.9 ! root 1210: \`configure' configures hatari 1.2.0 to adapt to many kinds of systems.
1.1 root 1211:
1212: Usage: $0 [OPTION]... [VAR=VALUE]...
1213:
1214: To assign environment variables (e.g., CC, CFLAGS...), specify them as
1215: VAR=VALUE. See below for descriptions of some of the useful variables.
1216:
1217: Defaults for the options are specified in brackets.
1218:
1219: Configuration:
1220: -h, --help display this help and exit
1221: --help=short display options specific to this package
1222: --help=recursive display the short help of all the included packages
1223: -V, --version display version information and exit
1224: -q, --quiet, --silent do not print \`checking...' messages
1225: --cache-file=FILE cache test results in FILE [disabled]
1226: -C, --config-cache alias for \`--cache-file=config.cache'
1227: -n, --no-create do not create output files
1228: --srcdir=DIR find the sources in DIR [configure dir or \`..']
1229:
1230: Installation directories:
1231: --prefix=PREFIX install architecture-independent files in PREFIX
1.1.1.3 root 1232: [$ac_default_prefix]
1.1 root 1233: --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1.1.1.3 root 1234: [PREFIX]
1.1 root 1235:
1236: By default, \`make install' will install all the files in
1237: \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1238: an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1239: for instance \`--prefix=\$HOME'.
1240:
1241: For better control, use the options below.
1242:
1243: Fine tuning of the installation directories:
1244: --bindir=DIR user executables [EPREFIX/bin]
1245: --sbindir=DIR system admin executables [EPREFIX/sbin]
1246: --libexecdir=DIR program executables [EPREFIX/libexec]
1247: --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1248: --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1249: --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1250: --libdir=DIR object code libraries [EPREFIX/lib]
1251: --includedir=DIR C header files [PREFIX/include]
1252: --oldincludedir=DIR C header files for non-gcc [/usr/include]
1.1.1.6 root 1253: --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1254: --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1255: --infodir=DIR info documentation [DATAROOTDIR/info]
1256: --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1257: --mandir=DIR man documentation [DATAROOTDIR/man]
1258: --docdir=DIR documentation root [DATAROOTDIR/doc/hatari]
1259: --htmldir=DIR html documentation [DOCDIR]
1260: --dvidir=DIR dvi documentation [DOCDIR]
1261: --pdfdir=DIR pdf documentation [DOCDIR]
1262: --psdir=DIR ps documentation [DOCDIR]
1.1 root 1263: _ACEOF
1264:
1265: cat <<\_ACEOF
1266:
1.1.1.6 root 1267: X features:
1268: --x-includes=DIR X include files are in DIR
1269: --x-libraries=DIR X library files are in DIR
1270:
1.1 root 1271: System types:
1272: --build=BUILD configure for building on BUILD [guessed]
1273: --host=HOST cross-compile to build programs to run on HOST [BUILD]
1274: --target=TARGET configure for building compilers for TARGET [HOST]
1275: _ACEOF
1276: fi
1277:
1278: if test -n "$ac_init_help"; then
1279: case $ac_init_help in
1.1.1.9 ! root 1280: short | recursive ) echo "Configuration of hatari 1.2.0:";;
1.1 root 1281: esac
1282: cat <<\_ACEOF
1283:
1284: Optional Features:
1285: --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1286: --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1287: --enable-werror Compile with the "-Werror" C flag
1.1.1.8 root 1288: --enable-tracing Enable tracing
1.1.1.6 root 1289: --enable-small-mem Use less memory - at the expense of emulation speed
1.1 root 1290: --disable-sdltest Do not try to compile and run a test SDL program
1291:
1292: Optional Packages:
1293: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1294: --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1295: --with-extra-inc=DIR additional include files are in DIR
1296: --with-extra-lib=DIR additional library files are in DIR
1297: --with-hostcc=x Use x as compiler for the host system
1298: --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
1299: --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1.1.1.6 root 1300: --with-x use the X Window System
1.1 root 1301:
1302: Some influential environment variables:
1303: CC C compiler command
1304: CFLAGS C compiler flags
1305: LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1306: nonstandard directory <lib dir>
1.1.1.9 ! root 1307: LIBS libraries to pass to the linker, e.g. -l<library>
1.1.1.6 root 1308: CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1309: you have headers in a nonstandard directory <include dir>
1.1 root 1310: CPP C preprocessor
1.1.1.6 root 1311: PKG_CONFIG path to pkg-config utility
1312: X_CFLAGS C compiler flags for X, overriding pkg-config
1313: X_LIBS linker flags for X, overriding pkg-config
1314: XMKMF Path to xmkmf, Makefile generator for X Window System
1.1 root 1315:
1316: Use these variables to override the choices made by `configure' or to help
1317: it to find libraries and programs with nonstandard names/locations.
1318:
1319: _ACEOF
1.1.1.6 root 1320: ac_status=$?
1.1 root 1321: fi
1322:
1323: if test "$ac_init_help" = "recursive"; then
1324: # If there are subdirs, report their specific --help.
1325: for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1.1.1.6 root 1326: test -d "$ac_dir" || continue
1.1 root 1327: ac_builddir=.
1328:
1.1.1.6 root 1329: case "$ac_dir" in
1330: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1331: *)
1.1 root 1332: ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1.1.1.6 root 1333: # A ".." for each directory in $ac_dir_suffix.
1334: ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1335: case $ac_top_builddir_sub in
1336: "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1337: *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1338: esac ;;
1339: esac
1340: ac_abs_top_builddir=$ac_pwd
1341: ac_abs_builddir=$ac_pwd$ac_dir_suffix
1342: # for backward compatibility:
1343: ac_top_builddir=$ac_top_build_prefix
1.1 root 1344:
1345: case $srcdir in
1.1.1.6 root 1346: .) # We are building in place.
1.1 root 1347: ac_srcdir=.
1.1.1.6 root 1348: ac_top_srcdir=$ac_top_builddir_sub
1349: ac_abs_top_srcdir=$ac_pwd ;;
1350: [\\/]* | ?:[\\/]* ) # Absolute name.
1.1 root 1351: ac_srcdir=$srcdir$ac_dir_suffix;
1.1.1.6 root 1352: ac_top_srcdir=$srcdir
1353: ac_abs_top_srcdir=$srcdir ;;
1354: *) # Relative name.
1355: ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1356: ac_top_srcdir=$ac_top_build_prefix$srcdir
1357: ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1.1.1.3 root 1358: esac
1.1.1.6 root 1359: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1.1 root 1360:
1.1.1.6 root 1361: cd "$ac_dir" || { ac_status=$?; continue; }
1362: # Check for guested configure.
1363: if test -f "$ac_srcdir/configure.gnu"; then
1364: echo &&
1365: $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1366: elif test -f "$ac_srcdir/configure"; then
1367: echo &&
1368: $SHELL "$ac_srcdir/configure" --help=recursive
1.1 root 1369: else
1370: echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1.1.1.6 root 1371: fi || ac_status=$?
1372: cd "$ac_pwd" || { ac_status=$?; break; }
1.1 root 1373: done
1374: fi
1375:
1.1.1.6 root 1376: test -n "$ac_init_help" && exit $ac_status
1.1 root 1377: if $ac_init_version; then
1378: cat <<\_ACEOF
1.1.1.9 ! root 1379: hatari configure 1.2.0
! 1380: generated by GNU Autoconf 2.61
1.1 root 1381:
1.1.1.6 root 1382: Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1383: 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1.1 root 1384: This configure script is free software; the Free Software Foundation
1385: gives unlimited permission to copy, distribute and modify it.
1386: _ACEOF
1.1.1.6 root 1387: exit
1.1 root 1388: fi
1.1.1.6 root 1389: cat >config.log <<_ACEOF
1.1 root 1390: This file contains any messages produced by compilers while
1391: running configure, to aid debugging if configure makes a mistake.
1392:
1.1.1.9 ! root 1393: It was created by hatari $as_me 1.2.0, which was
! 1394: generated by GNU Autoconf 2.61. Invocation command line was
1.1 root 1395:
1396: $ $0 $@
1397:
1398: _ACEOF
1.1.1.6 root 1399: exec 5>>config.log
1.1 root 1400: {
1401: cat <<_ASUNAME
1402: ## --------- ##
1403: ## Platform. ##
1404: ## --------- ##
1405:
1406: hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1407: uname -m = `(uname -m) 2>/dev/null || echo unknown`
1408: uname -r = `(uname -r) 2>/dev/null || echo unknown`
1409: uname -s = `(uname -s) 2>/dev/null || echo unknown`
1410: uname -v = `(uname -v) 2>/dev/null || echo unknown`
1411:
1412: /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1413: /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1414:
1415: /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1416: /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1417: /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1.1.1.6 root 1418: /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1.1 root 1419: /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1420: /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1421: /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1422:
1423: _ASUNAME
1424:
1425: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1426: for as_dir in $PATH
1427: do
1428: IFS=$as_save_IFS
1429: test -z "$as_dir" && as_dir=.
1430: echo "PATH: $as_dir"
1431: done
1.1.1.6 root 1432: IFS=$as_save_IFS
1.1 root 1433:
1434: } >&5
1435:
1436: cat >&5 <<_ACEOF
1437:
1438:
1439: ## ----------- ##
1440: ## Core tests. ##
1441: ## ----------- ##
1442:
1443: _ACEOF
1444:
1445:
1446: # Keep a trace of the command line.
1447: # Strip out --no-create and --no-recursion so they do not pile up.
1.1.1.3 root 1448: # Strip out --silent because we don't want to record it for future runs.
1.1 root 1449: # Also quote any args containing shell meta-characters.
1.1.1.3 root 1450: # Make two passes to allow for proper duplicate-argument suppression.
1.1 root 1451: ac_configure_args=
1.1.1.3 root 1452: ac_configure_args0=
1453: ac_configure_args1=
1454: ac_must_keep_next=false
1455: for ac_pass in 1 2
1.1 root 1456: do
1.1.1.3 root 1457: for ac_arg
1458: do
1459: case $ac_arg in
1460: -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1461: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1462: | -silent | --silent | --silen | --sile | --sil)
1463: continue ;;
1.1.1.6 root 1464: *\'*)
1.1.1.3 root 1465: ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1466: esac
1467: case $ac_pass in
1468: 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1469: 2)
1470: ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1471: if test $ac_must_keep_next = true; then
1472: ac_must_keep_next=false # Got value, back to normal.
1473: else
1474: case $ac_arg in
1475: *=* | --config-cache | -C | -disable-* | --disable-* \
1476: | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1477: | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1478: | -with-* | --with-* | -without-* | --without-* | --x)
1479: case "$ac_configure_args0 " in
1480: "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1481: esac
1482: ;;
1483: -* ) ac_must_keep_next=true ;;
1484: esac
1485: fi
1.1.1.6 root 1486: ac_configure_args="$ac_configure_args '$ac_arg'"
1.1.1.3 root 1487: ;;
1488: esac
1489: done
1.1 root 1490: done
1.1.1.3 root 1491: $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1492: $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1.1 root 1493:
1494: # When interrupted or exit'd, cleanup temporary files, and complete
1495: # config.log. We remove comments because anyway the quotes in there
1496: # would cause problems or look ugly.
1.1.1.6 root 1497: # WARNING: Use '\'' to represent an apostrophe within the trap.
1498: # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1.1 root 1499: trap 'exit_status=$?
1500: # Save into config.log some information that might help in debugging.
1501: {
1502: echo
1.1.1.3 root 1503:
1.1 root 1504: cat <<\_ASBOX
1505: ## ---------------- ##
1506: ## Cache variables. ##
1507: ## ---------------- ##
1508: _ASBOX
1509: echo
1510: # The following way of writing the cache mishandles newlines in values,
1.1.1.6 root 1511: (
1512: for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1513: eval ac_val=\$$ac_var
1514: case $ac_val in #(
1515: *${as_nl}*)
1516: case $ac_var in #(
1517: *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1518: echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1519: esac
1520: case $ac_var in #(
1521: _ | IFS | as_nl) ;; #(
1522: *) $as_unset $ac_var ;;
1523: esac ;;
1524: esac
1525: done
1.1 root 1526: (set) 2>&1 |
1.1.1.6 root 1527: case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1528: *${as_nl}ac_space=\ *)
1.1 root 1529: sed -n \
1.1.1.6 root 1530: "s/'\''/'\''\\\\'\'''\''/g;
1531: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1532: ;; #(
1.1 root 1533: *)
1.1.1.6 root 1534: sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1.1 root 1535: ;;
1.1.1.6 root 1536: esac |
1537: sort
1538: )
1.1 root 1539: echo
1.1.1.3 root 1540:
1541: cat <<\_ASBOX
1542: ## ----------------- ##
1543: ## Output variables. ##
1544: ## ----------------- ##
1545: _ASBOX
1546: echo
1547: for ac_var in $ac_subst_vars
1548: do
1.1.1.6 root 1549: eval ac_val=\$$ac_var
1550: case $ac_val in
1551: *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1552: esac
1553: echo "$ac_var='\''$ac_val'\''"
1.1.1.3 root 1554: done | sort
1555: echo
1556:
1557: if test -n "$ac_subst_files"; then
1558: cat <<\_ASBOX
1.1.1.6 root 1559: ## ------------------- ##
1560: ## File substitutions. ##
1561: ## ------------------- ##
1.1.1.3 root 1562: _ASBOX
1563: echo
1564: for ac_var in $ac_subst_files
1565: do
1.1.1.6 root 1566: eval ac_val=\$$ac_var
1567: case $ac_val in
1568: *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1569: esac
1570: echo "$ac_var='\''$ac_val'\''"
1.1.1.3 root 1571: done | sort
1572: echo
1573: fi
1574:
1.1 root 1575: if test -s confdefs.h; then
1576: cat <<\_ASBOX
1577: ## ----------- ##
1578: ## confdefs.h. ##
1579: ## ----------- ##
1580: _ASBOX
1581: echo
1.1.1.6 root 1582: cat confdefs.h
1.1 root 1583: echo
1584: fi
1585: test "$ac_signal" != 0 &&
1586: echo "$as_me: caught signal $ac_signal"
1587: echo "$as_me: exit $exit_status"
1588: } >&5
1.1.1.6 root 1589: rm -f core *.core core.conftest.* &&
1590: rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1.1 root 1591: exit $exit_status
1.1.1.6 root 1592: ' 0
1.1 root 1593: for ac_signal in 1 2 13 15; do
1594: trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1595: done
1596: ac_signal=0
1597:
1598: # confdefs.h avoids OS command line length limits that DEFS can exceed.
1.1.1.6 root 1599: rm -f -r conftest* confdefs.h
1.1 root 1600:
1601: # Predefined preprocessor variables.
1602:
1603: cat >>confdefs.h <<_ACEOF
1604: #define PACKAGE_NAME "$PACKAGE_NAME"
1605: _ACEOF
1606:
1607:
1608: cat >>confdefs.h <<_ACEOF
1609: #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1610: _ACEOF
1611:
1612:
1613: cat >>confdefs.h <<_ACEOF
1614: #define PACKAGE_VERSION "$PACKAGE_VERSION"
1615: _ACEOF
1616:
1617:
1618: cat >>confdefs.h <<_ACEOF
1619: #define PACKAGE_STRING "$PACKAGE_STRING"
1620: _ACEOF
1621:
1622:
1623: cat >>confdefs.h <<_ACEOF
1624: #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1625: _ACEOF
1626:
1627:
1628: # Let the site file select an alternate cache file if it wants to.
1629: # Prefer explicitly selected file to automatically selected ones.
1.1.1.6 root 1630: if test -n "$CONFIG_SITE"; then
1631: set x "$CONFIG_SITE"
1632: elif test "x$prefix" != xNONE; then
1633: set x "$prefix/share/config.site" "$prefix/etc/config.site"
1634: else
1635: set x "$ac_default_prefix/share/config.site" \
1636: "$ac_default_prefix/etc/config.site"
1.1 root 1637: fi
1.1.1.6 root 1638: shift
1639: for ac_site_file
1640: do
1.1 root 1641: if test -r "$ac_site_file"; then
1642: { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1643: echo "$as_me: loading site script $ac_site_file" >&6;}
1644: sed 's/^/| /' "$ac_site_file" >&5
1645: . "$ac_site_file"
1646: fi
1647: done
1648:
1649: if test -r "$cache_file"; then
1650: # Some versions of bash will fail to source /dev/null (special
1651: # files actually), so we avoid doing that.
1652: if test -f "$cache_file"; then
1653: { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1654: echo "$as_me: loading cache $cache_file" >&6;}
1655: case $cache_file in
1.1.1.6 root 1656: [\\/]* | ?:[\\/]* ) . "$cache_file";;
1657: *) . "./$cache_file";;
1.1 root 1658: esac
1659: fi
1660: else
1661: { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1662: echo "$as_me: creating cache $cache_file" >&6;}
1663: >$cache_file
1664: fi
1665:
1666: # Check that the precious variables saved in the cache have kept the same
1667: # value.
1668: ac_cache_corrupted=false
1.1.1.6 root 1669: for ac_var in $ac_precious_vars; do
1.1 root 1670: eval ac_old_set=\$ac_cv_env_${ac_var}_set
1671: eval ac_new_set=\$ac_env_${ac_var}_set
1.1.1.6 root 1672: eval ac_old_val=\$ac_cv_env_${ac_var}_value
1673: eval ac_new_val=\$ac_env_${ac_var}_value
1.1 root 1674: case $ac_old_set,$ac_new_set in
1675: set,)
1676: { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1677: echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1678: ac_cache_corrupted=: ;;
1679: ,set)
1680: { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1681: echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1682: ac_cache_corrupted=: ;;
1683: ,);;
1684: *)
1685: if test "x$ac_old_val" != "x$ac_new_val"; then
1.1.1.3 root 1686: { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1.1 root 1687: echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1.1.1.3 root 1688: { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1.1 root 1689: echo "$as_me: former value: $ac_old_val" >&2;}
1.1.1.3 root 1690: { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1.1 root 1691: echo "$as_me: current value: $ac_new_val" >&2;}
1.1.1.3 root 1692: ac_cache_corrupted=:
1.1 root 1693: fi;;
1694: esac
1695: # Pass precious variables to config.status.
1696: if test "$ac_new_set" = set; then
1697: case $ac_new_val in
1.1.1.6 root 1698: *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1.1 root 1699: *) ac_arg=$ac_var=$ac_new_val ;;
1700: esac
1701: case " $ac_configure_args " in
1702: *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1703: *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1704: esac
1705: fi
1706: done
1707: if $ac_cache_corrupted; then
1708: { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1709: echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1710: { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1711: echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1712: { (exit 1); exit 1; }; }
1713: fi
1714:
1715:
1716:
1717:
1718:
1719:
1720:
1721:
1722:
1723:
1724:
1725:
1726:
1727:
1728:
1729:
1730:
1731:
1732:
1733:
1734:
1735:
1736:
1737:
1738:
1.1.1.6 root 1739: ac_ext=c
1740: ac_cpp='$CPP $CPPFLAGS'
1741: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1742: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1743: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1744:
1.1 root 1745:
1746:
1747:
1748:
1.1.1.6 root 1749: ac_config_headers="$ac_config_headers config.h"
1.1 root 1750:
1.1.1.3 root 1751:
1.1 root 1752: #AC_CANONICAL_HOST
1753: ac_aux_dir=
1.1.1.6 root 1754: for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1755: if test -f "$ac_dir/install-sh"; then
1.1 root 1756: ac_aux_dir=$ac_dir
1757: ac_install_sh="$ac_aux_dir/install-sh -c"
1758: break
1.1.1.6 root 1759: elif test -f "$ac_dir/install.sh"; then
1.1 root 1760: ac_aux_dir=$ac_dir
1761: ac_install_sh="$ac_aux_dir/install.sh -c"
1762: break
1.1.1.6 root 1763: elif test -f "$ac_dir/shtool"; then
1.1 root 1764: ac_aux_dir=$ac_dir
1765: ac_install_sh="$ac_aux_dir/shtool install -c"
1766: break
1767: fi
1768: done
1769: if test -z "$ac_aux_dir"; then
1.1.1.6 root 1770: { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1771: echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1.1 root 1772: { (exit 1); exit 1; }; }
1773: fi
1.1.1.6 root 1774:
1775: # These three variables are undocumented and unsupported,
1776: # and are intended to be withdrawn in a future Autoconf release.
1777: # They can cause serious problems if a builder's source tree is in a directory
1778: # whose full name contains unusual characters.
1779: ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1780: ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1781: ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1782:
1.1 root 1783:
1784: # Make sure we can run config.sub.
1.1.1.6 root 1785: $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1786: { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1787: echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1.1 root 1788: { (exit 1); exit 1; }; }
1789:
1.1.1.6 root 1790: { echo "$as_me:$LINENO: checking build system type" >&5
1791: echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1.1 root 1792: if test "${ac_cv_build+set}" = set; then
1793: echo $ECHO_N "(cached) $ECHO_C" >&6
1794: else
1.1.1.6 root 1795: ac_build_alias=$build_alias
1796: test "x$ac_build_alias" = x &&
1797: ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1798: test "x$ac_build_alias" = x &&
1.1 root 1799: { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1800: echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1801: { (exit 1); exit 1; }; }
1.1.1.6 root 1802: ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1803: { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1804: echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1.1 root 1805: { (exit 1); exit 1; }; }
1806:
1807: fi
1.1.1.6 root 1808: { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1809: echo "${ECHO_T}$ac_cv_build" >&6; }
1810: case $ac_cv_build in
1811: *-*-*) ;;
1812: *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1813: echo "$as_me: error: invalid value of canonical build" >&2;}
1814: { (exit 1); exit 1; }; };;
1815: esac
1.1 root 1816: build=$ac_cv_build
1.1.1.6 root 1817: ac_save_IFS=$IFS; IFS='-'
1818: set x $ac_cv_build
1819: shift
1820: build_cpu=$1
1821: build_vendor=$2
1822: shift; shift
1823: # Remember, the first character of IFS is used to create $*,
1824: # except with old shells:
1825: build_os=$*
1826: IFS=$ac_save_IFS
1827: case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1.1 root 1828:
1829:
1.1.1.6 root 1830: { echo "$as_me:$LINENO: checking host system type" >&5
1831: echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1.1 root 1832: if test "${ac_cv_host+set}" = set; then
1833: echo $ECHO_N "(cached) $ECHO_C" >&6
1834: else
1.1.1.6 root 1835: if test "x$host_alias" = x; then
1836: ac_cv_host=$ac_cv_build
1837: else
1838: ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1839: { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1840: echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1.1 root 1841: { (exit 1); exit 1; }; }
1.1.1.6 root 1842: fi
1.1 root 1843:
1844: fi
1.1.1.6 root 1845: { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1846: echo "${ECHO_T}$ac_cv_host" >&6; }
1847: case $ac_cv_host in
1848: *-*-*) ;;
1849: *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1850: echo "$as_me: error: invalid value of canonical host" >&2;}
1851: { (exit 1); exit 1; }; };;
1852: esac
1.1 root 1853: host=$ac_cv_host
1.1.1.6 root 1854: ac_save_IFS=$IFS; IFS='-'
1855: set x $ac_cv_host
1856: shift
1857: host_cpu=$1
1858: host_vendor=$2
1859: shift; shift
1860: # Remember, the first character of IFS is used to create $*,
1861: # except with old shells:
1862: host_os=$*
1863: IFS=$ac_save_IFS
1864: case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
1.1 root 1865:
1866:
1.1.1.6 root 1867: { echo "$as_me:$LINENO: checking target system type" >&5
1868: echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
1.1 root 1869: if test "${ac_cv_target+set}" = set; then
1870: echo $ECHO_N "(cached) $ECHO_C" >&6
1871: else
1.1.1.6 root 1872: if test "x$target_alias" = x; then
1873: ac_cv_target=$ac_cv_host
1874: else
1875: ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
1876: { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
1877: echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
1.1 root 1878: { (exit 1); exit 1; }; }
1.1.1.6 root 1879: fi
1.1 root 1880:
1881: fi
1.1.1.6 root 1882: { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1883: echo "${ECHO_T}$ac_cv_target" >&6; }
1884: case $ac_cv_target in
1885: *-*-*) ;;
1886: *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
1887: echo "$as_me: error: invalid value of canonical target" >&2;}
1888: { (exit 1); exit 1; }; };;
1889: esac
1.1 root 1890: target=$ac_cv_target
1.1.1.6 root 1891: ac_save_IFS=$IFS; IFS='-'
1892: set x $ac_cv_target
1893: shift
1894: target_cpu=$1
1895: target_vendor=$2
1896: shift; shift
1897: # Remember, the first character of IFS is used to create $*,
1898: # except with old shells:
1899: target_os=$*
1900: IFS=$ac_save_IFS
1901: case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
1.1 root 1902:
1903:
1904: # The aliases save the names the user supplied, while $host etc.
1905: # will get canonicalized.
1906: test -n "$target_alias" &&
1907: test "$program_prefix$program_suffix$program_transform_name" = \
1908: NONENONEs,x,x, &&
1909: program_prefix=${target_alias}-
1910:
1911: ac_ext=c
1912: ac_cpp='$CPP $CPPFLAGS'
1913: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1914: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1915: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1916: if test -n "$ac_tool_prefix"; then
1917: # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1918: set dummy ${ac_tool_prefix}gcc; ac_word=$2
1.1.1.6 root 1919: { echo "$as_me:$LINENO: checking for $ac_word" >&5
1920: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1.1 root 1921: if test "${ac_cv_prog_CC+set}" = set; then
1922: echo $ECHO_N "(cached) $ECHO_C" >&6
1923: else
1924: if test -n "$CC"; then
1925: ac_cv_prog_CC="$CC" # Let the user override the test.
1926: else
1927: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1928: for as_dir in $PATH
1929: do
1930: IFS=$as_save_IFS
1931: test -z "$as_dir" && as_dir=.
1932: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.9 ! root 1933: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.1 root 1934: ac_cv_prog_CC="${ac_tool_prefix}gcc"
1935: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1936: break 2
1937: fi
1938: done
1939: done
1.1.1.6 root 1940: IFS=$as_save_IFS
1.1 root 1941:
1942: fi
1943: fi
1944: CC=$ac_cv_prog_CC
1945: if test -n "$CC"; then
1.1.1.6 root 1946: { echo "$as_me:$LINENO: result: $CC" >&5
1947: echo "${ECHO_T}$CC" >&6; }
1.1 root 1948: else
1.1.1.6 root 1949: { echo "$as_me:$LINENO: result: no" >&5
1950: echo "${ECHO_T}no" >&6; }
1.1 root 1951: fi
1952:
1.1.1.6 root 1953:
1.1 root 1954: fi
1955: if test -z "$ac_cv_prog_CC"; then
1956: ac_ct_CC=$CC
1957: # Extract the first word of "gcc", so it can be a program name with args.
1958: set dummy gcc; ac_word=$2
1.1.1.6 root 1959: { echo "$as_me:$LINENO: checking for $ac_word" >&5
1960: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1.1 root 1961: if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1962: echo $ECHO_N "(cached) $ECHO_C" >&6
1963: else
1964: if test -n "$ac_ct_CC"; then
1965: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1966: else
1967: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1968: for as_dir in $PATH
1969: do
1970: IFS=$as_save_IFS
1971: test -z "$as_dir" && as_dir=.
1972: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.9 ! root 1973: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.1 root 1974: ac_cv_prog_ac_ct_CC="gcc"
1975: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1976: break 2
1977: fi
1978: done
1979: done
1.1.1.6 root 1980: IFS=$as_save_IFS
1.1 root 1981:
1982: fi
1983: fi
1984: ac_ct_CC=$ac_cv_prog_ac_ct_CC
1985: if test -n "$ac_ct_CC"; then
1.1.1.6 root 1986: { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1987: echo "${ECHO_T}$ac_ct_CC" >&6; }
1.1 root 1988: else
1.1.1.6 root 1989: { echo "$as_me:$LINENO: result: no" >&5
1990: echo "${ECHO_T}no" >&6; }
1.1 root 1991: fi
1992:
1.1.1.6 root 1993: if test "x$ac_ct_CC" = x; then
1994: CC=""
1995: else
1996: case $cross_compiling:$ac_tool_warned in
1997: yes:)
1998: { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
1999: whose name does not start with the host triplet. If you think this
2000: configuration is useful to you, please write to [email protected]." >&5
2001: echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2002: whose name does not start with the host triplet. If you think this
2003: configuration is useful to you, please write to [email protected]." >&2;}
2004: ac_tool_warned=yes ;;
2005: esac
2006: CC=$ac_ct_CC
2007: fi
1.1 root 2008: else
2009: CC="$ac_cv_prog_CC"
2010: fi
2011:
2012: if test -z "$CC"; then
1.1.1.6 root 2013: if test -n "$ac_tool_prefix"; then
2014: # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1.1 root 2015: set dummy ${ac_tool_prefix}cc; ac_word=$2
1.1.1.6 root 2016: { echo "$as_me:$LINENO: checking for $ac_word" >&5
2017: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1.1 root 2018: if test "${ac_cv_prog_CC+set}" = set; then
2019: echo $ECHO_N "(cached) $ECHO_C" >&6
2020: else
2021: if test -n "$CC"; then
2022: ac_cv_prog_CC="$CC" # Let the user override the test.
2023: else
2024: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2025: for as_dir in $PATH
2026: do
2027: IFS=$as_save_IFS
2028: test -z "$as_dir" && as_dir=.
2029: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.9 ! root 2030: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.1 root 2031: ac_cv_prog_CC="${ac_tool_prefix}cc"
2032: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2033: break 2
2034: fi
2035: done
2036: done
1.1.1.6 root 2037: IFS=$as_save_IFS
1.1 root 2038:
2039: fi
2040: fi
2041: CC=$ac_cv_prog_CC
2042: if test -n "$CC"; then
1.1.1.6 root 2043: { echo "$as_me:$LINENO: result: $CC" >&5
2044: echo "${ECHO_T}$CC" >&6; }
1.1 root 2045: else
1.1.1.6 root 2046: { echo "$as_me:$LINENO: result: no" >&5
2047: echo "${ECHO_T}no" >&6; }
1.1 root 2048: fi
2049:
2050:
1.1.1.6 root 2051: fi
1.1 root 2052: fi
2053: if test -z "$CC"; then
2054: # Extract the first word of "cc", so it can be a program name with args.
2055: set dummy cc; ac_word=$2
1.1.1.6 root 2056: { echo "$as_me:$LINENO: checking for $ac_word" >&5
2057: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1.1 root 2058: if test "${ac_cv_prog_CC+set}" = set; then
2059: echo $ECHO_N "(cached) $ECHO_C" >&6
2060: else
2061: if test -n "$CC"; then
2062: ac_cv_prog_CC="$CC" # Let the user override the test.
2063: else
2064: ac_prog_rejected=no
2065: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2066: for as_dir in $PATH
2067: do
2068: IFS=$as_save_IFS
2069: test -z "$as_dir" && as_dir=.
2070: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.9 ! root 2071: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.1 root 2072: if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2073: ac_prog_rejected=yes
2074: continue
2075: fi
2076: ac_cv_prog_CC="cc"
2077: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2078: break 2
2079: fi
2080: done
2081: done
1.1.1.6 root 2082: IFS=$as_save_IFS
1.1 root 2083:
2084: if test $ac_prog_rejected = yes; then
2085: # We found a bogon in the path, so make sure we never use it.
2086: set dummy $ac_cv_prog_CC
2087: shift
2088: if test $# != 0; then
2089: # We chose a different compiler from the bogus one.
2090: # However, it has the same basename, so the bogon will be chosen
2091: # first if we set CC to just the basename; use the full file name.
2092: shift
1.1.1.3 root 2093: ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1.1 root 2094: fi
2095: fi
2096: fi
2097: fi
2098: CC=$ac_cv_prog_CC
2099: if test -n "$CC"; then
1.1.1.6 root 2100: { echo "$as_me:$LINENO: result: $CC" >&5
2101: echo "${ECHO_T}$CC" >&6; }
1.1 root 2102: else
1.1.1.6 root 2103: { echo "$as_me:$LINENO: result: no" >&5
2104: echo "${ECHO_T}no" >&6; }
1.1 root 2105: fi
2106:
1.1.1.6 root 2107:
1.1 root 2108: fi
2109: if test -z "$CC"; then
2110: if test -n "$ac_tool_prefix"; then
1.1.1.6 root 2111: for ac_prog in cl.exe
1.1 root 2112: do
2113: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2114: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1.1.1.6 root 2115: { echo "$as_me:$LINENO: checking for $ac_word" >&5
2116: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1.1 root 2117: if test "${ac_cv_prog_CC+set}" = set; then
2118: echo $ECHO_N "(cached) $ECHO_C" >&6
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$ac_prog"
2131: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
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.6 root 2142: { echo "$as_me:$LINENO: result: $CC" >&5
2143: echo "${ECHO_T}$CC" >&6; }
1.1 root 2144: else
1.1.1.6 root 2145: { echo "$as_me:$LINENO: result: no" >&5
2146: echo "${ECHO_T}no" >&6; }
1.1 root 2147: fi
2148:
1.1.1.6 root 2149:
1.1 root 2150: test -n "$CC" && break
2151: done
2152: fi
2153: if test -z "$CC"; then
2154: ac_ct_CC=$CC
1.1.1.6 root 2155: for ac_prog in cl.exe
1.1 root 2156: do
2157: # Extract the first word of "$ac_prog", so it can be a program name with args.
2158: set dummy $ac_prog; ac_word=$2
1.1.1.6 root 2159: { echo "$as_me:$LINENO: checking for $ac_word" >&5
2160: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1.1 root 2161: if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2162: echo $ECHO_N "(cached) $ECHO_C" >&6
2163: else
2164: if test -n "$ac_ct_CC"; then
2165: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2166: else
2167: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2168: for as_dir in $PATH
2169: do
2170: IFS=$as_save_IFS
2171: test -z "$as_dir" && as_dir=.
2172: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.9 ! root 2173: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.1 root 2174: ac_cv_prog_ac_ct_CC="$ac_prog"
2175: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2176: break 2
2177: fi
2178: done
2179: done
1.1.1.6 root 2180: IFS=$as_save_IFS
1.1 root 2181:
2182: fi
2183: fi
2184: ac_ct_CC=$ac_cv_prog_ac_ct_CC
2185: if test -n "$ac_ct_CC"; then
1.1.1.6 root 2186: { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2187: echo "${ECHO_T}$ac_ct_CC" >&6; }
1.1 root 2188: else
1.1.1.6 root 2189: { echo "$as_me:$LINENO: result: no" >&5
2190: echo "${ECHO_T}no" >&6; }
1.1 root 2191: fi
2192:
1.1.1.6 root 2193:
1.1 root 2194: test -n "$ac_ct_CC" && break
2195: done
2196:
1.1.1.6 root 2197: if test "x$ac_ct_CC" = x; then
2198: CC=""
2199: else
2200: case $cross_compiling:$ac_tool_warned in
2201: yes:)
2202: { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2203: whose name does not start with the host triplet. If you think this
2204: configuration is useful to you, please write to [email protected]." >&5
2205: echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2206: whose name does not start with the host triplet. If you think this
2207: configuration is useful to you, please write to [email protected]." >&2;}
2208: ac_tool_warned=yes ;;
2209: esac
2210: CC=$ac_ct_CC
2211: fi
1.1 root 2212: fi
2213:
2214: fi
2215:
2216:
1.1.1.3 root 2217: test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2218: See \`config.log' for more details." >&5
2219: echo "$as_me: error: no acceptable C compiler found in \$PATH
2220: See \`config.log' for more details." >&2;}
1.1 root 2221: { (exit 1); exit 1; }; }
2222:
2223: # Provide some information about the compiler.
1.1.1.6 root 2224: echo "$as_me:$LINENO: checking for C compiler version" >&5
1.1 root 2225: ac_compiler=`set X $ac_compile; echo $2`
1.1.1.6 root 2226: { (ac_try="$ac_compiler --version >&5"
2227: case "(($ac_try" in
2228: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2229: *) ac_try_echo=$ac_try;;
2230: esac
2231: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2232: (eval "$ac_compiler --version >&5") 2>&5
1.1 root 2233: ac_status=$?
2234: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2235: (exit $ac_status); }
1.1.1.6 root 2236: { (ac_try="$ac_compiler -v >&5"
2237: case "(($ac_try" in
2238: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2239: *) ac_try_echo=$ac_try;;
2240: esac
2241: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2242: (eval "$ac_compiler -v >&5") 2>&5
1.1 root 2243: ac_status=$?
2244: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2245: (exit $ac_status); }
1.1.1.6 root 2246: { (ac_try="$ac_compiler -V >&5"
2247: case "(($ac_try" in
2248: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2249: *) ac_try_echo=$ac_try;;
2250: esac
2251: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2252: (eval "$ac_compiler -V >&5") 2>&5
1.1 root 2253: ac_status=$?
2254: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2255: (exit $ac_status); }
2256:
2257: cat >conftest.$ac_ext <<_ACEOF
1.1.1.3 root 2258: /* confdefs.h. */
2259: _ACEOF
2260: cat confdefs.h >>conftest.$ac_ext
2261: cat >>conftest.$ac_ext <<_ACEOF
2262: /* end confdefs.h. */
1.1 root 2263:
2264: int
2265: main ()
2266: {
2267:
2268: ;
2269: return 0;
2270: }
2271: _ACEOF
2272: ac_clean_files_save=$ac_clean_files
1.1.1.3 root 2273: ac_clean_files="$ac_clean_files a.out a.exe b.out"
1.1 root 2274: # Try to create an executable without -o first, disregard a.out.
2275: # It will help us diagnose broken compilers, and finding out an intuition
2276: # of exeext.
1.1.1.6 root 2277: { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2278: echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
1.1 root 2279: ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1.1.1.6 root 2280: #
2281: # List of possible output files, starting from the most likely.
2282: # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2283: # only as a last resort. b.out is created by i960 compilers.
2284: ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2285: #
2286: # The IRIX 6 linker writes into existing files which may not be
2287: # executable, retaining their permissions. Remove them first so a
2288: # subsequent execution test works.
2289: ac_rmfiles=
2290: for ac_file in $ac_files
2291: do
2292: case $ac_file in
2293: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2294: * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2295: esac
2296: done
2297: rm -f $ac_rmfiles
2298:
2299: if { (ac_try="$ac_link_default"
2300: case "(($ac_try" in
2301: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2302: *) ac_try_echo=$ac_try;;
2303: esac
2304: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2305: (eval "$ac_link_default") 2>&5
1.1 root 2306: ac_status=$?
2307: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2308: (exit $ac_status); }; then
1.1.1.6 root 2309: # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2310: # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2311: # in a Makefile. We should not override ac_cv_exeext if it was cached,
2312: # so that the user can short-circuit this test for compilers unknown to
2313: # Autoconf.
1.1.1.9 ! root 2314: for ac_file in $ac_files ''
1.1.1.3 root 2315: do
2316: test -f "$ac_file" || continue
1.1 root 2317: case $ac_file in
1.1.1.6 root 2318: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
1.1.1.3 root 2319: ;;
2320: [ab].out )
2321: # We found the default executable, but exeext='' is most
2322: # certainly right.
2323: break;;
2324: *.* )
1.1.1.6 root 2325: if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2326: then :; else
2327: ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2328: fi
2329: # We set ac_cv_exeext here because the later test for it is not
2330: # safe: cross compilers may not add the suffix if given an `-o'
2331: # argument, so we may need to know it at that point already.
2332: # Even if this section looks crufty: it has the advantage of
2333: # actually working.
1.1.1.3 root 2334: break;;
2335: * )
2336: break;;
1.1 root 2337: esac
2338: done
1.1.1.6 root 2339: test "$ac_cv_exeext" = no && ac_cv_exeext=
2340:
1.1 root 2341: else
1.1.1.9 ! root 2342: ac_file=''
! 2343: fi
! 2344:
! 2345: { echo "$as_me:$LINENO: result: $ac_file" >&5
! 2346: echo "${ECHO_T}$ac_file" >&6; }
! 2347: if test -z "$ac_file"; then
1.1 root 2348: echo "$as_me: failed program was:" >&5
1.1.1.3 root 2349: sed 's/^/| /' conftest.$ac_ext >&5
2350:
2351: { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2352: See \`config.log' for more details." >&5
2353: echo "$as_me: error: C compiler cannot create executables
2354: See \`config.log' for more details." >&2;}
1.1 root 2355: { (exit 77); exit 77; }; }
2356: fi
2357:
2358: ac_exeext=$ac_cv_exeext
2359:
1.1.1.6 root 2360: # Check that the compiler produces executables we can run. If not, either
1.1 root 2361: # the compiler is broken, or we cross compile.
1.1.1.6 root 2362: { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2363: echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
1.1 root 2364: # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2365: # If not cross compiling, check that we can run a simple program.
2366: if test "$cross_compiling" != yes; then
2367: if { ac_try='./$ac_file'
1.1.1.6 root 2368: { (case "(($ac_try" in
2369: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2370: *) ac_try_echo=$ac_try;;
2371: esac
2372: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2373: (eval "$ac_try") 2>&5
1.1 root 2374: ac_status=$?
2375: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2376: (exit $ac_status); }; }; then
2377: cross_compiling=no
2378: else
2379: if test "$cross_compiling" = maybe; then
2380: cross_compiling=yes
2381: else
2382: { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1.1.1.3 root 2383: If you meant to cross compile, use \`--host'.
2384: See \`config.log' for more details." >&5
1.1 root 2385: echo "$as_me: error: cannot run C compiled programs.
1.1.1.3 root 2386: If you meant to cross compile, use \`--host'.
2387: See \`config.log' for more details." >&2;}
1.1 root 2388: { (exit 1); exit 1; }; }
2389: fi
2390: fi
2391: fi
1.1.1.6 root 2392: { echo "$as_me:$LINENO: result: yes" >&5
2393: echo "${ECHO_T}yes" >&6; }
1.1 root 2394:
1.1.1.3 root 2395: rm -f a.out a.exe conftest$ac_cv_exeext b.out
1.1 root 2396: ac_clean_files=$ac_clean_files_save
1.1.1.6 root 2397: # Check that the compiler produces executables we can run. If not, either
1.1 root 2398: # the compiler is broken, or we cross compile.
1.1.1.6 root 2399: { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2400: echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2401: { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2402: echo "${ECHO_T}$cross_compiling" >&6; }
2403:
2404: { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2405: echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2406: if { (ac_try="$ac_link"
2407: case "(($ac_try" in
2408: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2409: *) ac_try_echo=$ac_try;;
2410: esac
2411: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2412: (eval "$ac_link") 2>&5
1.1 root 2413: ac_status=$?
2414: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2415: (exit $ac_status); }; then
2416: # If both `conftest.exe' and `conftest' are `present' (well, observable)
2417: # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2418: # work properly (i.e., refer to `conftest.exe'), while it won't with
2419: # `rm'.
1.1.1.3 root 2420: for ac_file in conftest.exe conftest conftest.*; do
2421: test -f "$ac_file" || continue
1.1 root 2422: case $ac_file in
1.1.1.6 root 2423: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1.1 root 2424: *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1.1.1.3 root 2425: break;;
1.1 root 2426: * ) break;;
2427: esac
2428: done
2429: else
1.1.1.3 root 2430: { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2431: See \`config.log' for more details." >&5
2432: echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2433: See \`config.log' for more details." >&2;}
1.1 root 2434: { (exit 1); exit 1; }; }
2435: fi
2436:
2437: rm -f conftest$ac_cv_exeext
1.1.1.6 root 2438: { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2439: echo "${ECHO_T}$ac_cv_exeext" >&6; }
1.1 root 2440:
2441: rm -f conftest.$ac_ext
2442: EXEEXT=$ac_cv_exeext
2443: ac_exeext=$EXEEXT
1.1.1.6 root 2444: { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2445: echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
1.1 root 2446: if test "${ac_cv_objext+set}" = set; then
2447: echo $ECHO_N "(cached) $ECHO_C" >&6
2448: else
2449: cat >conftest.$ac_ext <<_ACEOF
1.1.1.3 root 2450: /* confdefs.h. */
2451: _ACEOF
2452: cat confdefs.h >>conftest.$ac_ext
2453: cat >>conftest.$ac_ext <<_ACEOF
2454: /* end confdefs.h. */
1.1 root 2455:
2456: int
2457: main ()
2458: {
2459:
2460: ;
2461: return 0;
2462: }
2463: _ACEOF
2464: rm -f conftest.o conftest.obj
1.1.1.6 root 2465: if { (ac_try="$ac_compile"
2466: case "(($ac_try" in
2467: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2468: *) ac_try_echo=$ac_try;;
2469: esac
2470: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2471: (eval "$ac_compile") 2>&5
1.1 root 2472: ac_status=$?
2473: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2474: (exit $ac_status); }; then
1.1.1.6 root 2475: for ac_file in conftest.o conftest.obj conftest.*; do
2476: test -f "$ac_file" || continue;
1.1 root 2477: case $ac_file in
1.1.1.6 root 2478: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
1.1 root 2479: *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2480: break;;
2481: esac
2482: done
2483: else
2484: echo "$as_me: failed program was:" >&5
1.1.1.3 root 2485: sed 's/^/| /' conftest.$ac_ext >&5
2486:
2487: { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2488: See \`config.log' for more details." >&5
2489: echo "$as_me: error: cannot compute suffix of object files: cannot compile
2490: See \`config.log' for more details." >&2;}
1.1 root 2491: { (exit 1); exit 1; }; }
2492: fi
2493:
2494: rm -f conftest.$ac_cv_objext conftest.$ac_ext
2495: fi
1.1.1.6 root 2496: { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2497: echo "${ECHO_T}$ac_cv_objext" >&6; }
1.1 root 2498: OBJEXT=$ac_cv_objext
2499: ac_objext=$OBJEXT
1.1.1.6 root 2500: { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2501: echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
1.1 root 2502: if test "${ac_cv_c_compiler_gnu+set}" = set; then
2503: echo $ECHO_N "(cached) $ECHO_C" >&6
2504: else
2505: cat >conftest.$ac_ext <<_ACEOF
1.1.1.3 root 2506: /* confdefs.h. */
2507: _ACEOF
2508: cat confdefs.h >>conftest.$ac_ext
2509: cat >>conftest.$ac_ext <<_ACEOF
2510: /* end confdefs.h. */
1.1 root 2511:
2512: int
2513: main ()
2514: {
2515: #ifndef __GNUC__
2516: choke me
2517: #endif
2518:
2519: ;
2520: return 0;
2521: }
2522: _ACEOF
2523: rm -f conftest.$ac_objext
1.1.1.6 root 2524: if { (ac_try="$ac_compile"
2525: case "(($ac_try" in
2526: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2527: *) ac_try_echo=$ac_try;;
2528: esac
2529: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2530: (eval "$ac_compile") 2>conftest.er1
1.1 root 2531: ac_status=$?
1.1.1.3 root 2532: grep -v '^ *+' conftest.er1 >conftest.err
2533: rm -f conftest.er1
2534: cat conftest.err >&5
1.1 root 2535: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.9 ! root 2536: (exit $ac_status); } && {
! 2537: test -z "$ac_c_werror_flag" ||
! 2538: test ! -s conftest.err
! 2539: } && test -s conftest.$ac_objext; then
1.1 root 2540: ac_compiler_gnu=yes
2541: else
2542: echo "$as_me: failed program was:" >&5
1.1.1.3 root 2543: sed 's/^/| /' conftest.$ac_ext >&5
2544:
1.1.1.6 root 2545: ac_compiler_gnu=no
1.1 root 2546: fi
1.1.1.6 root 2547:
2548: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1 root 2549: ac_cv_c_compiler_gnu=$ac_compiler_gnu
2550:
2551: fi
1.1.1.6 root 2552: { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2553: echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
1.1 root 2554: GCC=`test $ac_compiler_gnu = yes && echo yes`
2555: ac_test_CFLAGS=${CFLAGS+set}
2556: ac_save_CFLAGS=$CFLAGS
1.1.1.6 root 2557: { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2558: echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
1.1 root 2559: if test "${ac_cv_prog_cc_g+set}" = set; then
2560: echo $ECHO_N "(cached) $ECHO_C" >&6
2561: else
1.1.1.6 root 2562: ac_save_c_werror_flag=$ac_c_werror_flag
2563: ac_c_werror_flag=yes
2564: ac_cv_prog_cc_g=no
2565: CFLAGS="-g"
2566: cat >conftest.$ac_ext <<_ACEOF
1.1.1.3 root 2567: /* confdefs.h. */
2568: _ACEOF
2569: cat confdefs.h >>conftest.$ac_ext
2570: cat >>conftest.$ac_ext <<_ACEOF
2571: /* end confdefs.h. */
1.1 root 2572:
2573: int
2574: main ()
2575: {
2576:
2577: ;
2578: return 0;
2579: }
2580: _ACEOF
2581: rm -f conftest.$ac_objext
1.1.1.6 root 2582: if { (ac_try="$ac_compile"
2583: case "(($ac_try" in
2584: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2585: *) ac_try_echo=$ac_try;;
2586: esac
2587: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2588: (eval "$ac_compile") 2>conftest.er1
1.1 root 2589: ac_status=$?
1.1.1.3 root 2590: grep -v '^ *+' conftest.er1 >conftest.err
2591: rm -f conftest.er1
2592: cat conftest.err >&5
1.1 root 2593: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.9 ! root 2594: (exit $ac_status); } && {
! 2595: test -z "$ac_c_werror_flag" ||
! 2596: test ! -s conftest.err
! 2597: } && test -s conftest.$ac_objext; then
1.1.1.6 root 2598: ac_cv_prog_cc_g=yes
2599: else
2600: echo "$as_me: failed program was:" >&5
2601: sed 's/^/| /' conftest.$ac_ext >&5
2602:
2603: CFLAGS=""
2604: cat >conftest.$ac_ext <<_ACEOF
2605: /* confdefs.h. */
2606: _ACEOF
2607: cat confdefs.h >>conftest.$ac_ext
2608: cat >>conftest.$ac_ext <<_ACEOF
2609: /* end confdefs.h. */
2610:
2611: int
2612: main ()
2613: {
2614:
2615: ;
2616: return 0;
2617: }
2618: _ACEOF
2619: rm -f conftest.$ac_objext
2620: if { (ac_try="$ac_compile"
2621: case "(($ac_try" in
2622: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2623: *) ac_try_echo=$ac_try;;
2624: esac
2625: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2626: (eval "$ac_compile") 2>conftest.er1
1.1.1.3 root 2627: ac_status=$?
1.1.1.6 root 2628: grep -v '^ *+' conftest.er1 >conftest.err
2629: rm -f conftest.er1
2630: cat conftest.err >&5
1.1.1.3 root 2631: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.9 ! root 2632: (exit $ac_status); } && {
! 2633: test -z "$ac_c_werror_flag" ||
! 2634: test ! -s conftest.err
! 2635: } && test -s conftest.$ac_objext; then
1.1.1.6 root 2636: :
2637: else
2638: echo "$as_me: failed program was:" >&5
2639: sed 's/^/| /' conftest.$ac_ext >&5
2640:
2641: ac_c_werror_flag=$ac_save_c_werror_flag
2642: CFLAGS="-g"
2643: cat >conftest.$ac_ext <<_ACEOF
2644: /* confdefs.h. */
2645: _ACEOF
2646: cat confdefs.h >>conftest.$ac_ext
2647: cat >>conftest.$ac_ext <<_ACEOF
2648: /* end confdefs.h. */
2649:
2650: int
2651: main ()
2652: {
2653:
2654: ;
2655: return 0;
2656: }
2657: _ACEOF
2658: rm -f conftest.$ac_objext
2659: if { (ac_try="$ac_compile"
2660: case "(($ac_try" in
2661: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2662: *) ac_try_echo=$ac_try;;
2663: esac
2664: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2665: (eval "$ac_compile") 2>conftest.er1
1.1 root 2666: ac_status=$?
1.1.1.6 root 2667: grep -v '^ *+' conftest.er1 >conftest.err
2668: rm -f conftest.er1
2669: cat conftest.err >&5
1.1 root 2670: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.9 ! root 2671: (exit $ac_status); } && {
! 2672: test -z "$ac_c_werror_flag" ||
! 2673: test ! -s conftest.err
! 2674: } && test -s conftest.$ac_objext; then
1.1 root 2675: ac_cv_prog_cc_g=yes
2676: else
2677: echo "$as_me: failed program was:" >&5
1.1.1.3 root 2678: sed 's/^/| /' conftest.$ac_ext >&5
2679:
1.1.1.6 root 2680:
2681: fi
2682:
2683: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1 root 2684: fi
1.1.1.6 root 2685:
2686: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2687: fi
2688:
2689: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2690: ac_c_werror_flag=$ac_save_c_werror_flag
1.1 root 2691: fi
1.1.1.6 root 2692: { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2693: echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
1.1 root 2694: if test "$ac_test_CFLAGS" = set; then
2695: CFLAGS=$ac_save_CFLAGS
2696: elif test $ac_cv_prog_cc_g = yes; then
2697: if test "$GCC" = yes; then
2698: CFLAGS="-g -O2"
2699: else
2700: CFLAGS="-g"
2701: fi
2702: else
2703: if test "$GCC" = yes; then
2704: CFLAGS="-O2"
2705: else
2706: CFLAGS=
2707: fi
2708: fi
1.1.1.6 root 2709: { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2710: echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2711: if test "${ac_cv_prog_cc_c89+set}" = set; then
1.1.1.3 root 2712: echo $ECHO_N "(cached) $ECHO_C" >&6
2713: else
1.1.1.6 root 2714: ac_cv_prog_cc_c89=no
1.1.1.3 root 2715: ac_save_CC=$CC
2716: cat >conftest.$ac_ext <<_ACEOF
2717: /* confdefs.h. */
2718: _ACEOF
2719: cat confdefs.h >>conftest.$ac_ext
2720: cat >>conftest.$ac_ext <<_ACEOF
2721: /* end confdefs.h. */
2722: #include <stdarg.h>
2723: #include <stdio.h>
2724: #include <sys/types.h>
2725: #include <sys/stat.h>
2726: /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2727: struct buf { int x; };
2728: FILE * (*rcsopen) (struct buf *, struct stat *, int);
2729: static char *e (p, i)
2730: char **p;
2731: int i;
2732: {
2733: return p[i];
2734: }
2735: static char *f (char * (*g) (char **, int), char **p, ...)
2736: {
2737: char *s;
2738: va_list v;
2739: va_start (v,p);
2740: s = g (p, va_arg (v,int));
2741: va_end (v);
2742: return s;
2743: }
2744:
2745: /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2746: function prototypes and stuff, but not '\xHH' hex character constants.
2747: These don't provoke an error unfortunately, instead are silently treated
1.1.1.6 root 2748: as 'x'. The following induces an error, until -std is added to get
1.1.1.3 root 2749: proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2750: array size at least. It's necessary to write '\x00'==0 to get something
1.1.1.6 root 2751: that's true only with -std. */
1.1.1.3 root 2752: int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2753:
1.1.1.6 root 2754: /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2755: inside strings and character constants. */
2756: #define FOO(x) 'x'
2757: int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2758:
1.1.1.3 root 2759: int test (int i, double x);
2760: struct s1 {int (*f) (int a);};
2761: struct s2 {int (*f) (double a);};
2762: int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2763: int argc;
2764: char **argv;
2765: int
2766: main ()
2767: {
2768: return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2769: ;
2770: return 0;
2771: }
2772: _ACEOF
1.1.1.6 root 2773: for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2774: -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1.1.1.3 root 2775: do
2776: CC="$ac_save_CC $ac_arg"
2777: rm -f conftest.$ac_objext
1.1.1.6 root 2778: if { (ac_try="$ac_compile"
2779: case "(($ac_try" in
2780: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2781: *) ac_try_echo=$ac_try;;
2782: esac
2783: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2784: (eval "$ac_compile") 2>conftest.er1
1.1.1.3 root 2785: ac_status=$?
2786: grep -v '^ *+' conftest.er1 >conftest.err
2787: rm -f conftest.er1
2788: cat conftest.err >&5
2789: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.9 ! root 2790: (exit $ac_status); } && {
! 2791: test -z "$ac_c_werror_flag" ||
! 2792: test ! -s conftest.err
! 2793: } && test -s conftest.$ac_objext; then
1.1.1.6 root 2794: ac_cv_prog_cc_c89=$ac_arg
1.1.1.3 root 2795: else
2796: echo "$as_me: failed program was:" >&5
2797: sed 's/^/| /' conftest.$ac_ext >&5
2798:
1.1.1.6 root 2799:
1.1.1.3 root 2800: fi
1.1.1.6 root 2801:
2802: rm -f core conftest.err conftest.$ac_objext
2803: test "x$ac_cv_prog_cc_c89" != "xno" && break
1.1.1.3 root 2804: done
1.1.1.6 root 2805: rm -f conftest.$ac_ext
1.1.1.3 root 2806: CC=$ac_save_CC
2807:
2808: fi
1.1.1.6 root 2809: # AC_CACHE_VAL
2810: case "x$ac_cv_prog_cc_c89" in
2811: x)
2812: { echo "$as_me:$LINENO: result: none needed" >&5
2813: echo "${ECHO_T}none needed" >&6; } ;;
2814: xno)
2815: { echo "$as_me:$LINENO: result: unsupported" >&5
2816: echo "${ECHO_T}unsupported" >&6; } ;;
1.1.1.3 root 2817: *)
1.1.1.6 root 2818: CC="$CC $ac_cv_prog_cc_c89"
2819: { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2820: echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
1.1.1.3 root 2821: esac
2822:
2823:
1.1 root 2824: ac_ext=c
2825: ac_cpp='$CPP $CPPFLAGS'
2826: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2827: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2828: ac_compiler_gnu=$ac_cv_c_compiler_gnu
2829:
2830: # Find a good install program. We prefer a C program (faster),
2831: # so one script is as good as another. But avoid the broken or
2832: # incompatible versions:
2833: # SysV /etc/install, /usr/sbin/install
2834: # SunOS /usr/etc/install
2835: # IRIX /sbin/install
2836: # AIX /bin/install
2837: # AmigaOS /C/install, which installs bootblocks on floppy discs
2838: # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2839: # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2840: # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1.1.1.3 root 2841: # OS/2's system install, which has a completely different semantic
1.1 root 2842: # ./install, which can be erroneously created by make from ./install.sh.
1.1.1.6 root 2843: { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2844: echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
1.1 root 2845: if test -z "$INSTALL"; then
2846: if test "${ac_cv_path_install+set}" = set; then
2847: echo $ECHO_N "(cached) $ECHO_C" >&6
2848: else
2849: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2850: for as_dir in $PATH
2851: do
2852: IFS=$as_save_IFS
2853: test -z "$as_dir" && as_dir=.
2854: # Account for people who put trailing slashes in PATH elements.
2855: case $as_dir/ in
2856: ./ | .// | /cC/* | \
2857: /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1.1.1.3 root 2858: ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1.1 root 2859: /usr/ucb/* ) ;;
2860: *)
2861: # OSF1 and SCO ODT 3.0 have their own names for install.
2862: # Don't use installbsd from OSF since it installs stuff as root
2863: # by default.
2864: for ac_prog in ginstall scoinst install; do
2865: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.9 ! root 2866: 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 2867: if test $ac_prog = install &&
2868: grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2869: # AIX install. It has an incompatible calling convention.
2870: :
2871: elif test $ac_prog = install &&
2872: grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2873: # program-specific install script used by HP pwplus--don't use.
2874: :
2875: else
2876: ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2877: break 3
2878: fi
2879: fi
1.1 root 2880: done
2881: done
2882: ;;
2883: esac
2884: done
1.1.1.6 root 2885: IFS=$as_save_IFS
1.1 root 2886:
2887:
2888: fi
2889: if test "${ac_cv_path_install+set}" = set; then
2890: INSTALL=$ac_cv_path_install
2891: else
1.1.1.6 root 2892: # As a last resort, use the slow shell script. Don't cache a
2893: # value for INSTALL within a source directory, because that will
1.1 root 2894: # break other packages using the cache if that directory is
1.1.1.6 root 2895: # removed, or if the value is a relative name.
1.1 root 2896: INSTALL=$ac_install_sh
2897: fi
2898: fi
1.1.1.6 root 2899: { echo "$as_me:$LINENO: result: $INSTALL" >&5
2900: echo "${ECHO_T}$INSTALL" >&6; }
1.1 root 2901:
2902: # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2903: # It thinks the first close brace ends the variable substitution.
2904: test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2905:
2906: test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2907:
2908: test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2909:
1.1.1.6 root 2910: if test -n "$ac_tool_prefix"; then
2911: # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2912: set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2913: { echo "$as_me:$LINENO: checking for $ac_word" >&5
2914: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2915: if test "${ac_cv_prog_RANLIB+set}" = set; then
2916: echo $ECHO_N "(cached) $ECHO_C" >&6
2917: else
2918: if test -n "$RANLIB"; then
2919: ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2920: else
2921: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2922: for as_dir in $PATH
2923: do
2924: IFS=$as_save_IFS
2925: test -z "$as_dir" && as_dir=.
2926: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.9 ! root 2927: 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 2928: ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2929: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2930: break 2
2931: fi
2932: done
2933: done
2934: IFS=$as_save_IFS
2935:
2936: fi
2937: fi
2938: RANLIB=$ac_cv_prog_RANLIB
2939: if test -n "$RANLIB"; then
2940: { echo "$as_me:$LINENO: result: $RANLIB" >&5
2941: echo "${ECHO_T}$RANLIB" >&6; }
2942: else
2943: { echo "$as_me:$LINENO: result: no" >&5
2944: echo "${ECHO_T}no" >&6; }
2945: fi
2946:
2947:
2948: fi
2949: if test -z "$ac_cv_prog_RANLIB"; then
2950: ac_ct_RANLIB=$RANLIB
2951: # Extract the first word of "ranlib", so it can be a program name with args.
2952: set dummy ranlib; ac_word=$2
2953: { echo "$as_me:$LINENO: checking for $ac_word" >&5
2954: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2955: if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2956: echo $ECHO_N "(cached) $ECHO_C" >&6
2957: else
2958: if test -n "$ac_ct_RANLIB"; then
2959: ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2960: else
2961: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2962: for as_dir in $PATH
2963: do
2964: IFS=$as_save_IFS
2965: test -z "$as_dir" && as_dir=.
2966: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.9 ! root 2967: 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 2968: ac_cv_prog_ac_ct_RANLIB="ranlib"
2969: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2970: break 2
2971: fi
2972: done
2973: done
2974: IFS=$as_save_IFS
2975:
2976: fi
2977: fi
2978: ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2979: if test -n "$ac_ct_RANLIB"; then
2980: { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2981: echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
2982: else
2983: { echo "$as_me:$LINENO: result: no" >&5
2984: echo "${ECHO_T}no" >&6; }
2985: fi
2986:
2987: if test "x$ac_ct_RANLIB" = x; then
2988: RANLIB=":"
2989: else
2990: case $cross_compiling:$ac_tool_warned in
2991: yes:)
2992: { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2993: whose name does not start with the host triplet. If you think this
2994: configuration is useful to you, please write to [email protected]." >&5
2995: echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2996: whose name does not start with the host triplet. If you think this
2997: configuration is useful to you, please write to [email protected]." >&2;}
2998: ac_tool_warned=yes ;;
2999: esac
3000: RANLIB=$ac_ct_RANLIB
3001: fi
3002: else
3003: RANLIB="$ac_cv_prog_RANLIB"
3004: fi
3005:
1.1 root 3006:
3007: # extra command line options
3008:
1.1.1.6 root 3009: # Check whether --enable-werror was given.
1.1 root 3010: if test "${enable_werror+set}" = set; then
1.1.1.6 root 3011: enableval=$enable_werror; ENABLE_WERROR="${enableval}"
1.1 root 3012: else
3013: ENABLE_WERROR="no"
1.1.1.6 root 3014: fi
3015:
3016:
1.1.1.8 root 3017: # Check whether --enable-tracing was given.
3018: if test "${enable_tracing+set}" = set; then
3019: enableval=$enable_tracing; enable_tracing="${enableval}"
3020: else
3021: enable_tracing="yes"
3022: fi
3023:
3024: if test "${enable_tracing}" = "yes"; then
3025:
3026: cat >>confdefs.h <<\_ACEOF
3027: #define HATARI_TRACE_ACTIVATED 1
3028: _ACEOF
3029:
3030: else
3031: { echo "$as_me:$LINENO: Tracing disabled" >&5
3032: echo "$as_me: Tracing disabled" >&6;}
3033: fi
3034:
1.1.1.6 root 3035: # Check whether --enable-small-mem was given.
3036: if test "${enable_small_mem+set}" = set; then
1.1.1.8 root 3037: enableval=$enable_small_mem; enable_smallmem="${enableval}"
3038: else
3039: enable_smallmem="no"
3040: fi
3041:
3042: if test "${enable_smallmem}" = "yes"; then
3043:
1.1.1.6 root 3044: cat >>confdefs.h <<\_ACEOF
3045: #define ENABLE_SMALL_MEM 1
3046: _ACEOF
3047:
3048: fi
3049:
1.1 root 3050:
1.1.1.6 root 3051: # Check whether --with-extra-inc was given.
1.1 root 3052: if test "${with_extra_inc+set}" = set; then
1.1.1.6 root 3053: withval=$with_extra_inc; if test "${withval}" != no; then
1.1 root 3054: if test "${withval}" != yes; then
3055: INCL="${INCL} -I${withval}"
3056: fi
3057: fi
1.1.1.6 root 3058: fi
3059:
1.1 root 3060:
3061:
1.1.1.6 root 3062: # Check whether --with-extra-lib was given.
1.1 root 3063: if test "${with_extra_lib+set}" = set; then
1.1.1.6 root 3064: withval=$with_extra_lib; if test "${withval}" != no; then
1.1 root 3065: if test "${withval}" != yes; then
3066: LDFLAGS="${LDFLAGS} -L${withval}"
3067: if test x"${GCC}" = xyes; then
3068: LDFLAGS="${LDFLAGS} -Wl,-rpath,${withval}/lib"
3069: fi
3070: fi
3071: fi
1.1.1.6 root 3072: fi
3073:
1.1 root 3074:
3075:
1.1.1.6 root 3076: # Check whether --with-hostcc was given.
1.1 root 3077: if test "${with_hostcc+set}" = set; then
1.1.1.6 root 3078: withval=$with_hostcc; HOSTCC=$withval
1.1 root 3079: else
3080: HOSTCC=$CC
1.1.1.6 root 3081: fi
3082:
1.1 root 3083:
3084:
3085:
3086:
3087:
1.1.1.6 root 3088: { echo "$as_me:$LINENO: checking for gzopen in -lz" >&5
3089: echo $ECHO_N "checking for gzopen in -lz... $ECHO_C" >&6; }
1.1 root 3090: if test "${ac_cv_lib_z_gzopen+set}" = set; then
3091: echo $ECHO_N "(cached) $ECHO_C" >&6
3092: else
3093: ac_check_lib_save_LIBS=$LIBS
3094: LIBS="-lz $LIBS"
3095: cat >conftest.$ac_ext <<_ACEOF
1.1.1.3 root 3096: /* confdefs.h. */
3097: _ACEOF
3098: cat confdefs.h >>conftest.$ac_ext
3099: cat >>conftest.$ac_ext <<_ACEOF
3100: /* end confdefs.h. */
1.1 root 3101:
1.1.1.6 root 3102: /* Override any GCC internal prototype to avoid an error.
3103: Use char because int might match the return type of a GCC
3104: builtin and then its argument prototype would still apply. */
1.1 root 3105: #ifdef __cplusplus
3106: extern "C"
3107: #endif
3108: char gzopen ();
3109: int
3110: main ()
3111: {
1.1.1.6 root 3112: return gzopen ();
1.1 root 3113: ;
3114: return 0;
3115: }
3116: _ACEOF
3117: rm -f conftest.$ac_objext conftest$ac_exeext
1.1.1.6 root 3118: if { (ac_try="$ac_link"
3119: case "(($ac_try" in
3120: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3121: *) ac_try_echo=$ac_try;;
3122: esac
3123: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3124: (eval "$ac_link") 2>conftest.er1
1.1 root 3125: ac_status=$?
1.1.1.3 root 3126: grep -v '^ *+' conftest.er1 >conftest.err
3127: rm -f conftest.er1
3128: cat conftest.err >&5
1.1 root 3129: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.9 ! root 3130: (exit $ac_status); } && {
! 3131: test -z "$ac_c_werror_flag" ||
! 3132: test ! -s conftest.err
! 3133: } && test -s conftest$ac_exeext &&
! 3134: $as_test_x conftest$ac_exeext; then
1.1 root 3135: ac_cv_lib_z_gzopen=yes
3136: else
3137: echo "$as_me: failed program was:" >&5
1.1.1.3 root 3138: sed 's/^/| /' conftest.$ac_ext >&5
3139:
1.1.1.6 root 3140: ac_cv_lib_z_gzopen=no
1.1 root 3141: fi
1.1.1.6 root 3142:
1.1.1.9 ! root 3143: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.1.1.3 root 3144: conftest$ac_exeext conftest.$ac_ext
1.1 root 3145: LIBS=$ac_check_lib_save_LIBS
3146: fi
1.1.1.6 root 3147: { echo "$as_me:$LINENO: result: $ac_cv_lib_z_gzopen" >&5
3148: echo "${ECHO_T}$ac_cv_lib_z_gzopen" >&6; }
1.1 root 3149: if test $ac_cv_lib_z_gzopen = yes; then
3150: cat >>confdefs.h <<_ACEOF
3151: #define HAVE_LIBZ 1
3152: _ACEOF
3153:
3154: LIBS="-lz $LIBS"
3155:
3156: else
3157: { { echo "$as_me:$LINENO: error: You need the zlib to compile this program!" >&5
3158: echo "$as_me: error: You need the zlib to compile this program!" >&2;}
3159: { (exit 1); exit 1; }; }
3160: fi
3161:
3162:
1.1.1.8 root 3163: ac_ext=c
3164: ac_cpp='$CPP $CPPFLAGS'
3165: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3166: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3167: ac_compiler_gnu=$ac_cv_c_compiler_gnu
3168: { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3169: echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3170: # On Suns, sometimes $CPP names a directory.
3171: if test -n "$CPP" && test -d "$CPP"; then
3172: CPP=
1.1.1.6 root 3173: fi
1.1.1.8 root 3174: if test -z "$CPP"; then
3175: if test "${ac_cv_prog_CPP+set}" = set; then
3176: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 root 3177: else
1.1.1.8 root 3178: # Double quotes because CPP needs to be expanded
3179: for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3180: do
3181: ac_preproc_ok=false
3182: for ac_c_preproc_warn_flag in '' yes
3183: do
3184: # Use a header file that comes with gcc, so configuring glibc
3185: # with a fresh cross-compiler works.
3186: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3187: # <limits.h> exists even on freestanding compilers.
3188: # On the NeXT, cc -E runs the code through the compiler's parser,
3189: # not just through cpp. "Syntax error" is here to catch this case.
3190: cat >conftest.$ac_ext <<_ACEOF
3191: /* confdefs.h. */
3192: _ACEOF
3193: cat confdefs.h >>conftest.$ac_ext
3194: cat >>conftest.$ac_ext <<_ACEOF
3195: /* end confdefs.h. */
3196: #ifdef __STDC__
3197: # include <limits.h>
3198: #else
3199: # include <assert.h>
3200: #endif
3201: Syntax error
3202: _ACEOF
3203: if { (ac_try="$ac_cpp conftest.$ac_ext"
3204: case "(($ac_try" in
3205: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3206: *) ac_try_echo=$ac_try;;
3207: esac
3208: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3209: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3210: ac_status=$?
3211: grep -v '^ *+' conftest.er1 >conftest.err
3212: rm -f conftest.er1
3213: cat conftest.err >&5
3214: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.9 ! root 3215: (exit $ac_status); } >/dev/null && {
! 3216: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
! 3217: test ! -s conftest.err
! 3218: }; then
1.1.1.8 root 3219: :
1.1 root 3220: else
1.1.1.8 root 3221: echo "$as_me: failed program was:" >&5
3222: sed 's/^/| /' conftest.$ac_ext >&5
3223:
3224: # Broken: fails on valid input.
3225: continue
1.1.1.6 root 3226: fi
3227:
1.1.1.8 root 3228: rm -f conftest.err conftest.$ac_ext
1.1 root 3229:
1.1.1.8 root 3230: # OK, works on sane cases. Now check whether nonexistent headers
3231: # can be detected and how.
3232: cat >conftest.$ac_ext <<_ACEOF
3233: /* confdefs.h. */
3234: _ACEOF
3235: cat confdefs.h >>conftest.$ac_ext
3236: cat >>conftest.$ac_ext <<_ACEOF
3237: /* end confdefs.h. */
3238: #include <ac_nonexistent.h>
3239: _ACEOF
3240: if { (ac_try="$ac_cpp conftest.$ac_ext"
3241: case "(($ac_try" in
3242: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3243: *) ac_try_echo=$ac_try;;
3244: esac
3245: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3246: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3247: ac_status=$?
3248: grep -v '^ *+' conftest.er1 >conftest.err
3249: rm -f conftest.er1
3250: cat conftest.err >&5
3251: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.9 ! root 3252: (exit $ac_status); } >/dev/null && {
! 3253: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
! 3254: test ! -s conftest.err
! 3255: }; then
1.1.1.8 root 3256: # Broken: success on invalid input.
3257: continue
1.1 root 3258: else
1.1.1.8 root 3259: echo "$as_me: failed program was:" >&5
3260: sed 's/^/| /' conftest.$ac_ext >&5
3261:
3262: # Passes both tests.
3263: ac_preproc_ok=:
3264: break
1.1 root 3265: fi
3266:
1.1.1.8 root 3267: rm -f conftest.err conftest.$ac_ext
1.1.1.6 root 3268:
1.1.1.8 root 3269: done
3270: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3271: rm -f conftest.err conftest.$ac_ext
3272: if $ac_preproc_ok; then
3273: break
3274: fi
1.1 root 3275:
1.1.1.8 root 3276: done
3277: ac_cv_prog_CPP=$CPP
3278:
3279: fi
3280: CPP=$ac_cv_prog_CPP
1.1 root 3281: else
1.1.1.8 root 3282: ac_cv_prog_CPP=$CPP
3283: fi
3284: { echo "$as_me:$LINENO: result: $CPP" >&5
3285: echo "${ECHO_T}$CPP" >&6; }
3286: ac_preproc_ok=false
3287: for ac_c_preproc_warn_flag in '' yes
3288: do
3289: # Use a header file that comes with gcc, so configuring glibc
3290: # with a fresh cross-compiler works.
3291: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3292: # <limits.h> exists even on freestanding compilers.
3293: # On the NeXT, cc -E runs the code through the compiler's parser,
3294: # not just through cpp. "Syntax error" is here to catch this case.
1.1 root 3295: cat >conftest.$ac_ext <<_ACEOF
1.1.1.3 root 3296: /* confdefs.h. */
3297: _ACEOF
3298: cat confdefs.h >>conftest.$ac_ext
3299: cat >>conftest.$ac_ext <<_ACEOF
3300: /* end confdefs.h. */
1.1.1.8 root 3301: #ifdef __STDC__
3302: # include <limits.h>
3303: #else
3304: # include <assert.h>
3305: #endif
3306: Syntax error
1.1 root 3307: _ACEOF
1.1.1.8 root 3308: if { (ac_try="$ac_cpp conftest.$ac_ext"
1.1.1.6 root 3309: case "(($ac_try" in
3310: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3311: *) ac_try_echo=$ac_try;;
3312: esac
3313: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.1.1.8 root 3314: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
1.1 root 3315: ac_status=$?
1.1.1.8 root 3316: grep -v '^ *+' conftest.er1 >conftest.err
3317: rm -f conftest.er1
3318: cat conftest.err >&5
1.1 root 3319: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.9 ! root 3320: (exit $ac_status); } >/dev/null && {
! 3321: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
! 3322: test ! -s conftest.err
! 3323: }; then
1.1 root 3324: :
3325: else
1.1.1.8 root 3326: echo "$as_me: failed program was:" >&5
1.1.1.3 root 3327: sed 's/^/| /' conftest.$ac_ext >&5
3328:
1.1.1.8 root 3329: # Broken: fails on valid input.
3330: continue
1.1 root 3331: fi
1.1.1.6 root 3332:
1.1.1.8 root 3333: rm -f conftest.err conftest.$ac_ext
1.1.1.6 root 3334:
1.1.1.8 root 3335: # OK, works on sane cases. Now check whether nonexistent headers
3336: # can be detected and how.
3337: cat >conftest.$ac_ext <<_ACEOF
1.1.1.3 root 3338: /* confdefs.h. */
3339: _ACEOF
3340: cat confdefs.h >>conftest.$ac_ext
3341: cat >>conftest.$ac_ext <<_ACEOF
3342: /* end confdefs.h. */
1.1.1.8 root 3343: #include <ac_nonexistent.h>
1.1 root 3344: _ACEOF
1.1.1.8 root 3345: if { (ac_try="$ac_cpp conftest.$ac_ext"
1.1.1.6 root 3346: case "(($ac_try" in
3347: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3348: *) ac_try_echo=$ac_try;;
3349: esac
3350: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.1.1.8 root 3351: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
1.1 root 3352: ac_status=$?
1.1.1.3 root 3353: grep -v '^ *+' conftest.er1 >conftest.err
3354: rm -f conftest.er1
3355: cat conftest.err >&5
1.1 root 3356: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.9 ! root 3357: (exit $ac_status); } >/dev/null && {
! 3358: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
! 3359: test ! -s conftest.err
! 3360: }; then
1.1 root 3361: # Broken: success on invalid input.
3362: continue
3363: else
3364: echo "$as_me: failed program was:" >&5
1.1.1.3 root 3365: sed 's/^/| /' conftest.$ac_ext >&5
3366:
1.1 root 3367: # Passes both tests.
3368: ac_preproc_ok=:
3369: break
3370: fi
1.1.1.6 root 3371:
1.1 root 3372: rm -f conftest.err conftest.$ac_ext
3373:
3374: done
3375: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3376: rm -f conftest.err conftest.$ac_ext
3377: if $ac_preproc_ok; then
3378: :
3379: else
1.1.1.3 root 3380: { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3381: See \`config.log' for more details." >&5
3382: echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3383: See \`config.log' for more details." >&2;}
1.1 root 3384: { (exit 1); exit 1; }; }
3385: fi
3386:
3387: ac_ext=c
3388: ac_cpp='$CPP $CPPFLAGS'
3389: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3390: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3391: ac_compiler_gnu=$ac_cv_c_compiler_gnu
3392:
3393:
1.1.1.6 root 3394: { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3395: echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3396: if test "${ac_cv_path_GREP+set}" = set; then
3397: echo $ECHO_N "(cached) $ECHO_C" >&6
3398: else
3399: # Extract the first word of "grep ggrep" to use in msg output
3400: if test -z "$GREP"; then
3401: set dummy grep ggrep; ac_prog_name=$2
3402: if test "${ac_cv_path_GREP+set}" = set; then
3403: echo $ECHO_N "(cached) $ECHO_C" >&6
3404: else
3405: ac_path_GREP_found=false
3406: # Loop through the user's path and test for each of PROGNAME-LIST
3407: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3408: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3409: do
3410: IFS=$as_save_IFS
3411: test -z "$as_dir" && as_dir=.
3412: for ac_prog in grep ggrep; do
3413: for ac_exec_ext in '' $ac_executable_extensions; do
3414: ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
1.1.1.9 ! root 3415: { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
1.1.1.6 root 3416: # Check for GNU ac_path_GREP and select it if it is found.
3417: # Check for GNU $ac_path_GREP
3418: case `"$ac_path_GREP" --version 2>&1` in
3419: *GNU*)
3420: ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3421: *)
3422: ac_count=0
3423: echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3424: while :
3425: do
3426: cat "conftest.in" "conftest.in" >"conftest.tmp"
3427: mv "conftest.tmp" "conftest.in"
3428: cp "conftest.in" "conftest.nl"
3429: echo 'GREP' >> "conftest.nl"
3430: "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3431: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3432: ac_count=`expr $ac_count + 1`
3433: if test $ac_count -gt ${ac_path_GREP_max-0}; then
3434: # Best one so far, save it but keep looking for a better one
3435: ac_cv_path_GREP="$ac_path_GREP"
3436: ac_path_GREP_max=$ac_count
3437: fi
3438: # 10*(2^10) chars as input seems more than enough
3439: test $ac_count -gt 10 && break
3440: done
3441: rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3442: esac
3443:
3444:
3445: $ac_path_GREP_found && break 3
3446: done
3447: done
3448:
3449: done
3450: IFS=$as_save_IFS
3451:
3452:
3453: fi
3454:
3455: GREP="$ac_cv_path_GREP"
3456: if test -z "$GREP"; then
3457: { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3458: echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3459: { (exit 1); exit 1; }; }
3460: fi
3461:
3462: else
3463: ac_cv_path_GREP=$GREP
3464: fi
3465:
3466:
3467: fi
3468: { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3469: echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3470: GREP="$ac_cv_path_GREP"
3471:
3472:
3473: { echo "$as_me:$LINENO: checking for egrep" >&5
3474: echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3475: if test "${ac_cv_path_EGREP+set}" = set; then
3476: echo $ECHO_N "(cached) $ECHO_C" >&6
3477: else
3478: if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3479: then ac_cv_path_EGREP="$GREP -E"
3480: else
3481: # Extract the first word of "egrep" to use in msg output
3482: if test -z "$EGREP"; then
3483: set dummy egrep; ac_prog_name=$2
3484: if test "${ac_cv_path_EGREP+set}" = set; then
1.1.1.3 root 3485: echo $ECHO_N "(cached) $ECHO_C" >&6
3486: else
1.1.1.6 root 3487: ac_path_EGREP_found=false
3488: # Loop through the user's path and test for each of PROGNAME-LIST
3489: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3490: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3491: do
3492: IFS=$as_save_IFS
3493: test -z "$as_dir" && as_dir=.
3494: for ac_prog in egrep; do
3495: for ac_exec_ext in '' $ac_executable_extensions; do
3496: ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
1.1.1.9 ! root 3497: { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
1.1.1.6 root 3498: # Check for GNU ac_path_EGREP and select it if it is found.
3499: # Check for GNU $ac_path_EGREP
3500: case `"$ac_path_EGREP" --version 2>&1` in
3501: *GNU*)
3502: ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3503: *)
3504: ac_count=0
3505: echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3506: while :
3507: do
3508: cat "conftest.in" "conftest.in" >"conftest.tmp"
3509: mv "conftest.tmp" "conftest.in"
3510: cp "conftest.in" "conftest.nl"
3511: echo 'EGREP' >> "conftest.nl"
3512: "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3513: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3514: ac_count=`expr $ac_count + 1`
3515: if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3516: # Best one so far, save it but keep looking for a better one
3517: ac_cv_path_EGREP="$ac_path_EGREP"
3518: ac_path_EGREP_max=$ac_count
1.1.1.3 root 3519: fi
1.1.1.6 root 3520: # 10*(2^10) chars as input seems more than enough
3521: test $ac_count -gt 10 && break
3522: done
3523: rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3524: esac
3525:
3526:
3527: $ac_path_EGREP_found && break 3
3528: done
3529: done
3530:
3531: done
3532: IFS=$as_save_IFS
3533:
3534:
3535: fi
3536:
3537: EGREP="$ac_cv_path_EGREP"
3538: if test -z "$EGREP"; then
3539: { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3540: echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3541: { (exit 1); exit 1; }; }
3542: fi
3543:
3544: else
3545: ac_cv_path_EGREP=$EGREP
1.1.1.3 root 3546: fi
3547:
3548:
1.1.1.6 root 3549: fi
3550: fi
3551: { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3552: echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3553: EGREP="$ac_cv_path_EGREP"
3554:
3555:
3556: { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3557: echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
1.1 root 3558: if test "${ac_cv_header_stdc+set}" = set; then
3559: echo $ECHO_N "(cached) $ECHO_C" >&6
3560: else
3561: cat >conftest.$ac_ext <<_ACEOF
1.1.1.3 root 3562: /* confdefs.h. */
3563: _ACEOF
3564: cat confdefs.h >>conftest.$ac_ext
3565: cat >>conftest.$ac_ext <<_ACEOF
3566: /* end confdefs.h. */
1.1 root 3567: #include <stdlib.h>
3568: #include <stdarg.h>
3569: #include <string.h>
3570: #include <float.h>
3571:
1.1.1.3 root 3572: int
3573: main ()
3574: {
3575:
3576: ;
3577: return 0;
3578: }
1.1 root 3579: _ACEOF
1.1.1.3 root 3580: rm -f conftest.$ac_objext
1.1.1.6 root 3581: if { (ac_try="$ac_compile"
3582: case "(($ac_try" in
3583: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3584: *) ac_try_echo=$ac_try;;
3585: esac
1.1.1.8 root 3586: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3587: (eval "$ac_compile") 2>conftest.er1
3588: ac_status=$?
3589: grep -v '^ *+' conftest.er1 >conftest.err
3590: rm -f conftest.er1
3591: cat conftest.err >&5
3592: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.9 ! root 3593: (exit $ac_status); } && {
! 3594: test -z "$ac_c_werror_flag" ||
! 3595: test ! -s conftest.err
! 3596: } && test -s conftest.$ac_objext; then
1.1.1.8 root 3597: ac_cv_header_stdc=yes
3598: else
3599: echo "$as_me: failed program was:" >&5
3600: sed 's/^/| /' conftest.$ac_ext >&5
3601:
3602: ac_cv_header_stdc=no
3603: fi
3604:
3605: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3606:
3607: if test $ac_cv_header_stdc = yes; then
3608: # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3609: cat >conftest.$ac_ext <<_ACEOF
3610: /* confdefs.h. */
3611: _ACEOF
3612: cat confdefs.h >>conftest.$ac_ext
3613: cat >>conftest.$ac_ext <<_ACEOF
3614: /* end confdefs.h. */
3615: #include <string.h>
3616:
3617: _ACEOF
3618: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3619: $EGREP "memchr" >/dev/null 2>&1; then
3620: :
3621: else
3622: ac_cv_header_stdc=no
3623: fi
3624: rm -f conftest*
3625:
3626: fi
3627:
3628: if test $ac_cv_header_stdc = yes; then
3629: # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3630: cat >conftest.$ac_ext <<_ACEOF
3631: /* confdefs.h. */
3632: _ACEOF
3633: cat confdefs.h >>conftest.$ac_ext
3634: cat >>conftest.$ac_ext <<_ACEOF
3635: /* end confdefs.h. */
3636: #include <stdlib.h>
3637:
3638: _ACEOF
3639: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3640: $EGREP "free" >/dev/null 2>&1; then
3641: :
3642: else
3643: ac_cv_header_stdc=no
3644: fi
3645: rm -f conftest*
3646:
3647: fi
3648:
3649: if test $ac_cv_header_stdc = yes; then
3650: # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3651: if test "$cross_compiling" = yes; then
3652: :
3653: else
3654: cat >conftest.$ac_ext <<_ACEOF
3655: /* confdefs.h. */
3656: _ACEOF
3657: cat confdefs.h >>conftest.$ac_ext
3658: cat >>conftest.$ac_ext <<_ACEOF
3659: /* end confdefs.h. */
3660: #include <ctype.h>
3661: #include <stdlib.h>
3662: #if ((' ' & 0x0FF) == 0x020)
3663: # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3664: # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3665: #else
3666: # define ISLOWER(c) \
3667: (('a' <= (c) && (c) <= 'i') \
3668: || ('j' <= (c) && (c) <= 'r') \
3669: || ('s' <= (c) && (c) <= 'z'))
3670: # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3671: #endif
3672:
3673: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3674: int
3675: main ()
3676: {
3677: int i;
3678: for (i = 0; i < 256; i++)
3679: if (XOR (islower (i), ISLOWER (i))
3680: || toupper (i) != TOUPPER (i))
3681: return 2;
3682: return 0;
3683: }
3684: _ACEOF
3685: rm -f conftest$ac_exeext
3686: if { (ac_try="$ac_link"
3687: case "(($ac_try" in
3688: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3689: *) ac_try_echo=$ac_try;;
3690: esac
3691: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3692: (eval "$ac_link") 2>&5
3693: ac_status=$?
3694: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3695: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3696: { (case "(($ac_try" in
3697: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3698: *) ac_try_echo=$ac_try;;
3699: esac
3700: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3701: (eval "$ac_try") 2>&5
3702: ac_status=$?
3703: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3704: (exit $ac_status); }; }; then
3705: :
3706: else
3707: echo "$as_me: program exited with status $ac_status" >&5
3708: echo "$as_me: failed program was:" >&5
3709: sed 's/^/| /' conftest.$ac_ext >&5
3710:
3711: ( exit $ac_status )
3712: ac_cv_header_stdc=no
3713: fi
3714: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3715: fi
3716:
3717:
3718: fi
3719: fi
3720: { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3721: echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3722: if test $ac_cv_header_stdc = yes; then
3723:
3724: cat >>confdefs.h <<\_ACEOF
3725: #define STDC_HEADERS 1
3726: _ACEOF
3727:
3728: fi
3729:
3730: # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3731:
3732:
3733:
3734:
3735:
3736:
3737:
3738:
3739:
3740: for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3741: inttypes.h stdint.h unistd.h
3742: do
3743: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3744: { echo "$as_me:$LINENO: checking for $ac_header" >&5
3745: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3746: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3747: echo $ECHO_N "(cached) $ECHO_C" >&6
3748: else
3749: cat >conftest.$ac_ext <<_ACEOF
3750: /* confdefs.h. */
3751: _ACEOF
3752: cat confdefs.h >>conftest.$ac_ext
3753: cat >>conftest.$ac_ext <<_ACEOF
3754: /* end confdefs.h. */
3755: $ac_includes_default
3756:
3757: #include <$ac_header>
3758: _ACEOF
3759: rm -f conftest.$ac_objext
3760: if { (ac_try="$ac_compile"
3761: case "(($ac_try" in
3762: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3763: *) ac_try_echo=$ac_try;;
3764: esac
3765: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3766: (eval "$ac_compile") 2>conftest.er1
3767: ac_status=$?
3768: grep -v '^ *+' conftest.er1 >conftest.err
3769: rm -f conftest.er1
3770: cat conftest.err >&5
3771: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.9 ! root 3772: (exit $ac_status); } && {
! 3773: test -z "$ac_c_werror_flag" ||
! 3774: test ! -s conftest.err
! 3775: } && test -s conftest.$ac_objext; then
1.1.1.8 root 3776: eval "$as_ac_Header=yes"
3777: else
3778: echo "$as_me: failed program was:" >&5
3779: sed 's/^/| /' conftest.$ac_ext >&5
3780:
3781: eval "$as_ac_Header=no"
3782: fi
3783:
3784: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3785: fi
3786: ac_res=`eval echo '${'$as_ac_Header'}'`
3787: { echo "$as_me:$LINENO: result: $ac_res" >&5
3788: echo "${ECHO_T}$ac_res" >&6; }
3789: if test `eval echo '${'$as_ac_Header'}'` = yes; then
3790: cat >>confdefs.h <<_ACEOF
3791: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3792: _ACEOF
3793:
3794: fi
3795:
3796: done
3797:
3798:
3799: { echo "$as_me:$LINENO: checking for png_create_info_struct in -lpng" >&5
3800: echo $ECHO_N "checking for png_create_info_struct in -lpng... $ECHO_C" >&6; }
3801: if test "${ac_cv_lib_png_png_create_info_struct+set}" = set; then
3802: echo $ECHO_N "(cached) $ECHO_C" >&6
3803: else
3804: ac_check_lib_save_LIBS=$LIBS
3805: LIBS="-lpng -lz -lm $LIBS"
3806: cat >conftest.$ac_ext <<_ACEOF
3807: /* confdefs.h. */
3808: _ACEOF
3809: cat confdefs.h >>conftest.$ac_ext
3810: cat >>conftest.$ac_ext <<_ACEOF
3811: /* end confdefs.h. */
3812:
3813: /* Override any GCC internal prototype to avoid an error.
3814: Use char because int might match the return type of a GCC
3815: builtin and then its argument prototype would still apply. */
3816: #ifdef __cplusplus
3817: extern "C"
3818: #endif
3819: char png_create_info_struct ();
3820: int
3821: main ()
3822: {
3823: return png_create_info_struct ();
3824: ;
3825: return 0;
3826: }
3827: _ACEOF
3828: rm -f conftest.$ac_objext conftest$ac_exeext
3829: if { (ac_try="$ac_link"
3830: case "(($ac_try" in
3831: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3832: *) ac_try_echo=$ac_try;;
3833: esac
3834: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3835: (eval "$ac_link") 2>conftest.er1
3836: ac_status=$?
3837: grep -v '^ *+' conftest.er1 >conftest.err
3838: rm -f conftest.er1
3839: cat conftest.err >&5
3840: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.9 ! root 3841: (exit $ac_status); } && {
! 3842: test -z "$ac_c_werror_flag" ||
! 3843: test ! -s conftest.err
! 3844: } && test -s conftest$ac_exeext &&
! 3845: $as_test_x conftest$ac_exeext; then
1.1.1.8 root 3846: ac_cv_lib_png_png_create_info_struct=yes
3847: else
3848: echo "$as_me: failed program was:" >&5
3849: sed 's/^/| /' conftest.$ac_ext >&5
3850:
3851: ac_cv_lib_png_png_create_info_struct=no
3852: fi
3853:
1.1.1.9 ! root 3854: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.1.1.8 root 3855: conftest$ac_exeext conftest.$ac_ext
3856: LIBS=$ac_check_lib_save_LIBS
3857: fi
3858: { echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_create_info_struct" >&5
3859: echo "${ECHO_T}$ac_cv_lib_png_png_create_info_struct" >&6; }
3860: if test $ac_cv_lib_png_png_create_info_struct = yes; then
3861: if test "${ac_cv_header_png_h+set}" = set; then
3862: { echo "$as_me:$LINENO: checking for png.h" >&5
3863: echo $ECHO_N "checking for png.h... $ECHO_C" >&6; }
3864: if test "${ac_cv_header_png_h+set}" = set; then
3865: echo $ECHO_N "(cached) $ECHO_C" >&6
3866: fi
3867: { echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
3868: echo "${ECHO_T}$ac_cv_header_png_h" >&6; }
3869: else
3870: # Is the header compilable?
3871: { echo "$as_me:$LINENO: checking png.h usability" >&5
3872: echo $ECHO_N "checking png.h usability... $ECHO_C" >&6; }
3873: cat >conftest.$ac_ext <<_ACEOF
3874: /* confdefs.h. */
3875: _ACEOF
3876: cat confdefs.h >>conftest.$ac_ext
3877: cat >>conftest.$ac_ext <<_ACEOF
3878: /* end confdefs.h. */
3879: $ac_includes_default
3880: #include <png.h>
3881: _ACEOF
3882: rm -f conftest.$ac_objext
3883: if { (ac_try="$ac_compile"
3884: case "(($ac_try" in
3885: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3886: *) ac_try_echo=$ac_try;;
3887: esac
3888: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3889: (eval "$ac_compile") 2>conftest.er1
3890: ac_status=$?
3891: grep -v '^ *+' conftest.er1 >conftest.err
3892: rm -f conftest.er1
3893: cat conftest.err >&5
3894: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.9 ! root 3895: (exit $ac_status); } && {
! 3896: test -z "$ac_c_werror_flag" ||
! 3897: test ! -s conftest.err
! 3898: } && test -s conftest.$ac_objext; then
1.1.1.8 root 3899: ac_header_compiler=yes
3900: else
3901: echo "$as_me: failed program was:" >&5
3902: sed 's/^/| /' conftest.$ac_ext >&5
3903:
3904: ac_header_compiler=no
3905: fi
3906:
3907: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3908: { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3909: echo "${ECHO_T}$ac_header_compiler" >&6; }
3910:
3911: # Is the header present?
3912: { echo "$as_me:$LINENO: checking png.h presence" >&5
3913: echo $ECHO_N "checking png.h presence... $ECHO_C" >&6; }
3914: cat >conftest.$ac_ext <<_ACEOF
3915: /* confdefs.h. */
3916: _ACEOF
3917: cat confdefs.h >>conftest.$ac_ext
3918: cat >>conftest.$ac_ext <<_ACEOF
3919: /* end confdefs.h. */
3920: #include <png.h>
3921: _ACEOF
3922: if { (ac_try="$ac_cpp conftest.$ac_ext"
3923: case "(($ac_try" in
3924: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3925: *) ac_try_echo=$ac_try;;
3926: esac
3927: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3928: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3929: ac_status=$?
3930: grep -v '^ *+' conftest.er1 >conftest.err
3931: rm -f conftest.er1
3932: cat conftest.err >&5
3933: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.9 ! root 3934: (exit $ac_status); } >/dev/null && {
! 3935: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
! 3936: test ! -s conftest.err
! 3937: }; then
1.1.1.8 root 3938: ac_header_preproc=yes
3939: else
3940: echo "$as_me: failed program was:" >&5
3941: sed 's/^/| /' conftest.$ac_ext >&5
3942:
3943: ac_header_preproc=no
3944: fi
3945:
3946: rm -f conftest.err conftest.$ac_ext
3947: { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3948: echo "${ECHO_T}$ac_header_preproc" >&6; }
3949:
3950: # So? What about this header?
3951: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3952: yes:no: )
3953: { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
3954: echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3955: { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5
3956: echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;}
3957: ac_header_preproc=yes
3958: ;;
3959: no:yes:* )
3960: { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
3961: echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
3962: { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5
3963: echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;}
3964: { echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5
3965: echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;}
3966: { echo "$as_me:$LINENO: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&5
3967: echo "$as_me: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&2;}
3968: { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
3969: echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
3970: { echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5
3971: echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;}
3972:
3973: ;;
3974: esac
3975: { echo "$as_me:$LINENO: checking for png.h" >&5
3976: echo $ECHO_N "checking for png.h... $ECHO_C" >&6; }
3977: if test "${ac_cv_header_png_h+set}" = set; then
3978: echo $ECHO_N "(cached) $ECHO_C" >&6
3979: else
3980: ac_cv_header_png_h=$ac_header_preproc
3981: fi
3982: { echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
3983: echo "${ECHO_T}$ac_cv_header_png_h" >&6; }
3984:
3985: fi
3986: if test $ac_cv_header_png_h = yes; then
3987: png_ok=yes
3988: else
3989: png_ok=no
3990: fi
3991:
3992:
3993: else
3994: png_ok=no
3995: fi
3996:
3997: if test "x${png_ok}" = "xyes"; then
3998:
3999: cat >>confdefs.h <<\_ACEOF
4000: #define HAVE_LIBPNG 1
4001: _ACEOF
4002:
4003: LIBS="${LIBS} -lpng"
4004: else
4005: { echo "$as_me:$LINENO: WARNING: *** Saving PNG screenshots will not be supported! ***" >&5
4006: echo "$as_me: WARNING: *** Saving PNG screenshots will not be supported! ***" >&2;}
4007: fi
4008:
4009: SDL_VERSION=1.2.0
4010:
4011: # Check whether --with-sdl-prefix was given.
4012: if test "${with_sdl_prefix+set}" = set; then
4013: withval=$with_sdl_prefix; sdl_prefix="$withval"
4014: else
4015: sdl_prefix=""
4016: fi
4017:
4018:
4019: # Check whether --with-sdl-exec-prefix was given.
4020: if test "${with_sdl_exec_prefix+set}" = set; then
4021: withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval"
4022: else
4023: sdl_exec_prefix=""
4024: fi
4025:
4026: # Check whether --enable-sdltest was given.
4027: if test "${enable_sdltest+set}" = set; then
4028: enableval=$enable_sdltest;
4029: else
4030: enable_sdltest=yes
4031: fi
4032:
4033:
4034: if test x$sdl_exec_prefix != x ; then
4035: sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
4036: if test x${SDL_CONFIG+set} != xset ; then
4037: SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
4038: fi
4039: fi
4040: if test x$sdl_prefix != x ; then
4041: sdl_args="$sdl_args --prefix=$sdl_prefix"
4042: if test x${SDL_CONFIG+set} != xset ; then
4043: SDL_CONFIG=$sdl_prefix/bin/sdl-config
4044: fi
4045: fi
4046:
4047: if test "x$prefix" != xNONE; then
4048: PATH="$prefix/bin:$prefix/usr/bin:$PATH"
4049: fi
4050: # Extract the first word of "sdl-config", so it can be a program name with args.
4051: set dummy sdl-config; ac_word=$2
4052: { echo "$as_me:$LINENO: checking for $ac_word" >&5
4053: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4054: if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
4055: echo $ECHO_N "(cached) $ECHO_C" >&6
4056: else
4057: case $SDL_CONFIG in
4058: [\\/]* | ?:[\\/]*)
4059: ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
4060: ;;
4061: *)
4062: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4063: for as_dir in $PATH
4064: do
4065: IFS=$as_save_IFS
4066: test -z "$as_dir" && as_dir=.
4067: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.9 ! root 4068: 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 4069: ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4070: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4071: break 2
4072: fi
4073: done
4074: done
4075: IFS=$as_save_IFS
4076:
4077: test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
4078: ;;
4079: esac
4080: fi
4081: SDL_CONFIG=$ac_cv_path_SDL_CONFIG
4082: if test -n "$SDL_CONFIG"; then
4083: { echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
4084: echo "${ECHO_T}$SDL_CONFIG" >&6; }
1.1 root 4085: else
1.1.1.8 root 4086: { echo "$as_me:$LINENO: result: no" >&5
4087: echo "${ECHO_T}no" >&6; }
1.1 root 4088: fi
1.1.1.6 root 4089:
1.1 root 4090:
1.1.1.8 root 4091: min_sdl_version=$SDL_VERSION
4092: { echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
4093: echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6; }
4094: no_sdl=""
4095: if test "$SDL_CONFIG" = "no" ; then
4096: no_sdl=yes
4097: else
4098: SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
4099: SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
1.1 root 4100:
1.1.1.8 root 4101: sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
4102: sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
4103: sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
4104: sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
4105: sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
4106: sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
4107: if test "x$enable_sdltest" = "xyes" ; then
4108: ac_save_CFLAGS="$CFLAGS"
4109: ac_save_CXXFLAGS="$CXXFLAGS"
4110: ac_save_LIBS="$LIBS"
4111: CFLAGS="$CFLAGS $SDL_CFLAGS"
4112: CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
4113: LIBS="$LIBS $SDL_LIBS"
4114: rm -f conf.sdltest
4115: if test "$cross_compiling" = yes; then
4116: echo $ac_n "cross compiling; assumed OK... $ac_c"
1.1 root 4117: else
4118: cat >conftest.$ac_ext <<_ACEOF
1.1.1.3 root 4119: /* confdefs.h. */
4120: _ACEOF
4121: cat confdefs.h >>conftest.$ac_ext
4122: cat >>conftest.$ac_ext <<_ACEOF
4123: /* end confdefs.h. */
1.1.1.8 root 4124:
4125: #include <stdio.h>
1.1 root 4126: #include <stdlib.h>
1.1.1.8 root 4127: #include <string.h>
4128: #include "SDL.h"
1.1 root 4129:
1.1.1.8 root 4130: char*
4131: my_strdup (char *str)
4132: {
4133: char *new_str;
1.1 root 4134:
1.1.1.8 root 4135: if (str)
4136: {
4137: new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
4138: strcpy (new_str, str);
4139: }
4140: else
4141: new_str = NULL;
1.1 root 4142:
1.1.1.8 root 4143: return new_str;
4144: }
1.1 root 4145:
1.1.1.8 root 4146: int main (int argc, char *argv[])
1.1 root 4147: {
1.1.1.8 root 4148: int major, minor, micro;
4149: char *tmp_version;
4150:
4151: /* This hangs on some systems (?)
4152: system ("touch conf.sdltest");
4153: */
4154: { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
4155:
4156: /* HP/UX 9 (%@#!) writes to sscanf strings */
4157: tmp_version = my_strdup("$min_sdl_version");
4158: if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
4159: printf("%s, bad version string\n", "$min_sdl_version");
4160: exit(1);
4161: }
4162:
4163: if (($sdl_major_version > major) ||
4164: (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
4165: (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
4166: {
4167: return 0;
4168: }
4169: else
4170: {
4171: printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
4172: printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
4173: printf("*** best to upgrade to the required version.\n");
4174: printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
4175: printf("*** to point to the correct copy of sdl-config, and remove the file\n");
4176: printf("*** config.cache before re-running configure\n");
4177: return 1;
4178: }
1.1 root 4179: }
1.1.1.8 root 4180:
4181:
1.1 root 4182: _ACEOF
4183: rm -f conftest$ac_exeext
1.1.1.6 root 4184: if { (ac_try="$ac_link"
4185: case "(($ac_try" in
4186: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4187: *) ac_try_echo=$ac_try;;
4188: esac
4189: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4190: (eval "$ac_link") 2>&5
1.1 root 4191: ac_status=$?
4192: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4193: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
1.1.1.6 root 4194: { (case "(($ac_try" in
4195: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4196: *) ac_try_echo=$ac_try;;
4197: esac
4198: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4199: (eval "$ac_try") 2>&5
1.1 root 4200: ac_status=$?
4201: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4202: (exit $ac_status); }; }; then
4203: :
4204: else
4205: echo "$as_me: program exited with status $ac_status" >&5
4206: echo "$as_me: failed program was:" >&5
1.1.1.3 root 4207: sed 's/^/| /' conftest.$ac_ext >&5
4208:
1.1 root 4209: ( exit $ac_status )
1.1.1.8 root 4210: no_sdl=yes
1.1 root 4211: fi
1.1.1.6 root 4212: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.1 root 4213: fi
1.1.1.6 root 4214:
4215:
1.1.1.8 root 4216: CFLAGS="$ac_save_CFLAGS"
4217: CXXFLAGS="$ac_save_CXXFLAGS"
4218: LIBS="$ac_save_LIBS"
4219: fi
4220: fi
4221: if test "x$no_sdl" = x ; then
4222: { echo "$as_me:$LINENO: result: yes" >&5
4223: echo "${ECHO_T}yes" >&6; }
4224: :
4225: else
4226: { echo "$as_me:$LINENO: result: no" >&5
4227: echo "${ECHO_T}no" >&6; }
4228: if test "$SDL_CONFIG" = "no" ; then
4229: echo "*** The sdl-config script installed by SDL could not be found"
4230: echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
4231: echo "*** your path, or set the SDL_CONFIG environment variable to the"
4232: echo "*** full path to sdl-config."
4233: else
4234: if test -f conf.sdltest ; then
4235: :
4236: else
4237: echo "*** Could not run SDL test program, checking why..."
4238: CFLAGS="$CFLAGS $SDL_CFLAGS"
4239: CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
4240: LIBS="$LIBS $SDL_LIBS"
4241: cat >conftest.$ac_ext <<_ACEOF
1.1.1.6 root 4242: /* confdefs.h. */
4243: _ACEOF
4244: cat confdefs.h >>conftest.$ac_ext
4245: cat >>conftest.$ac_ext <<_ACEOF
4246: /* end confdefs.h. */
4247:
1.1.1.8 root 4248: #include <stdio.h>
4249: #include "SDL.h"
4250:
4251: int main(int argc, char *argv[])
4252: { return 0; }
4253: #undef main
4254: #define main K_and_R_C_main
4255:
4256: int
4257: main ()
4258: {
4259: return 0;
4260: ;
4261: return 0;
4262: }
1.1.1.6 root 4263: _ACEOF
1.1.1.8 root 4264: rm -f conftest.$ac_objext conftest$ac_exeext
4265: if { (ac_try="$ac_link"
1.1.1.6 root 4266: case "(($ac_try" in
4267: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4268: *) ac_try_echo=$ac_try;;
4269: esac
4270: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.1.1.8 root 4271: (eval "$ac_link") 2>conftest.er1
4272: ac_status=$?
4273: grep -v '^ *+' conftest.er1 >conftest.err
4274: rm -f conftest.er1
4275: cat conftest.err >&5
4276: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.9 ! root 4277: (exit $ac_status); } && {
! 4278: test -z "$ac_c_werror_flag" ||
! 4279: test ! -s conftest.err
! 4280: } && test -s conftest$ac_exeext &&
! 4281: $as_test_x conftest$ac_exeext; then
1.1.1.8 root 4282: echo "*** The test program compiled, but did not run. This usually means"
4283: echo "*** that the run-time linker is not finding SDL or finding the wrong"
4284: echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
4285: echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
4286: echo "*** to the installed location Also, make sure you have run ldconfig if that"
4287: echo "*** is required on your system"
4288: echo "***"
4289: echo "*** If you have an old version installed, it is best to remove it, although"
4290: echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
1.1.1.6 root 4291: else
4292: echo "$as_me: failed program was:" >&5
4293: sed 's/^/| /' conftest.$ac_ext >&5
4294:
1.1.1.8 root 4295: echo "*** The test program failed to compile or link. See the file config.log for the"
4296: echo "*** exact error that occured. This usually means SDL was incorrectly installed"
4297: echo "*** or that you have moved SDL since it was installed. In the latter case, you"
4298: echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
1.1.1.6 root 4299: fi
4300:
1.1.1.9 ! root 4301: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.1.1.8 root 4302: conftest$ac_exeext conftest.$ac_ext
4303: CFLAGS="$ac_save_CFLAGS"
4304: CXXFLAGS="$ac_save_CXXFLAGS"
4305: LIBS="$ac_save_LIBS"
4306: fi
4307: fi
4308: SDL_CFLAGS=""
4309: SDL_LIBS=""
4310: { { echo "$as_me:$LINENO: error: *** SDL version $SDL_VERSION not found!" >&5
4311: echo "$as_me: error: *** SDL version $SDL_VERSION not found!" >&2;}
4312: { (exit 1); exit 1; }; }
4313: fi
1.1.1.6 root 4314:
4315:
1.1.1.8 root 4316: rm -f conf.sdltest
1.1.1.6 root 4317:
4318:
4319:
4320: { echo "$as_me:$LINENO: checking for a readline compatible library" >&5
4321: echo $ECHO_N "checking for a readline compatible library... $ECHO_C" >&6; }
4322: if test "${vl_cv_lib_readline+set}" = set; then
4323: echo $ECHO_N "(cached) $ECHO_C" >&6
4324: else
4325:
4326: ORIG_LIBS="$LIBS"
4327: for readline_lib in readline edit editline; do
4328: for termcap_lib in "" termcap curses ncurses; do
4329: if test -z "$termcap_lib"; then
4330: TRY_LIB="-l$readline_lib"
4331: else
4332: TRY_LIB="-l$readline_lib -l$termcap_lib"
4333: fi
4334: LIBS="$ORIG_LIBS $TRY_LIB"
4335: cat >conftest.$ac_ext <<_ACEOF
4336: /* confdefs.h. */
4337: _ACEOF
4338: cat confdefs.h >>conftest.$ac_ext
4339: cat >>conftest.$ac_ext <<_ACEOF
4340: /* end confdefs.h. */
4341:
4342: /* Override any GCC internal prototype to avoid an error.
4343: Use char because int might match the return type of a GCC
4344: builtin and then its argument prototype would still apply. */
4345: #ifdef __cplusplus
4346: extern "C"
4347: #endif
4348: char readline ();
4349: int
4350: main ()
4351: {
4352: return readline ();
4353: ;
4354: return 0;
4355: }
4356: _ACEOF
4357: rm -f conftest.$ac_objext conftest$ac_exeext
4358: if { (ac_try="$ac_link"
4359: case "(($ac_try" in
4360: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4361: *) ac_try_echo=$ac_try;;
4362: esac
4363: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4364: (eval "$ac_link") 2>conftest.er1
4365: ac_status=$?
4366: grep -v '^ *+' conftest.er1 >conftest.err
4367: rm -f conftest.er1
4368: cat conftest.err >&5
4369: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.9 ! root 4370: (exit $ac_status); } && {
! 4371: test -z "$ac_c_werror_flag" ||
! 4372: test ! -s conftest.err
! 4373: } && test -s conftest$ac_exeext &&
! 4374: $as_test_x conftest$ac_exeext; then
1.1.1.6 root 4375: vl_cv_lib_readline="$TRY_LIB"
4376: else
4377: echo "$as_me: failed program was:" >&5
4378: sed 's/^/| /' conftest.$ac_ext >&5
4379:
4380:
4381: fi
4382:
1.1.1.9 ! root 4383: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.1.1.6 root 4384: conftest$ac_exeext conftest.$ac_ext
4385: if test -n "$vl_cv_lib_readline"; then
4386: break
4387: fi
4388: done
4389: if test -n "$vl_cv_lib_readline"; then
4390: break
4391: fi
4392: done
4393: if test -z "$vl_cv_lib_readline"; then
4394: vl_cv_lib_readline="no"
4395: LIBS="$ORIG_LIBS"
4396: fi
4397:
4398: fi
4399: { echo "$as_me:$LINENO: result: $vl_cv_lib_readline" >&5
4400: echo "${ECHO_T}$vl_cv_lib_readline" >&6; }
4401:
4402: if test "$vl_cv_lib_readline" != "no"; then
4403:
4404: cat >>confdefs.h <<\_ACEOF
4405: #define HAVE_LIBREADLINE 1
4406: _ACEOF
4407:
4408:
4409:
4410: for ac_header in readline.h readline/readline.h
4411: do
4412: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4413: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4414: { echo "$as_me:$LINENO: checking for $ac_header" >&5
4415: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4416: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4417: echo $ECHO_N "(cached) $ECHO_C" >&6
4418: fi
4419: ac_res=`eval echo '${'$as_ac_Header'}'`
4420: { echo "$as_me:$LINENO: result: $ac_res" >&5
4421: echo "${ECHO_T}$ac_res" >&6; }
4422: else
4423: # Is the header compilable?
4424: { echo "$as_me:$LINENO: checking $ac_header usability" >&5
4425: echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
4426: cat >conftest.$ac_ext <<_ACEOF
4427: /* confdefs.h. */
4428: _ACEOF
4429: cat confdefs.h >>conftest.$ac_ext
4430: cat >>conftest.$ac_ext <<_ACEOF
4431: /* end confdefs.h. */
4432: $ac_includes_default
4433: #include <$ac_header>
4434: _ACEOF
4435: rm -f conftest.$ac_objext
4436: if { (ac_try="$ac_compile"
4437: case "(($ac_try" in
4438: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4439: *) ac_try_echo=$ac_try;;
4440: esac
4441: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4442: (eval "$ac_compile") 2>conftest.er1
4443: ac_status=$?
4444: grep -v '^ *+' conftest.er1 >conftest.err
4445: rm -f conftest.er1
4446: cat conftest.err >&5
4447: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.9 ! root 4448: (exit $ac_status); } && {
! 4449: test -z "$ac_c_werror_flag" ||
! 4450: test ! -s conftest.err
! 4451: } && test -s conftest.$ac_objext; then
1.1.1.6 root 4452: ac_header_compiler=yes
4453: else
4454: echo "$as_me: failed program was:" >&5
4455: sed 's/^/| /' conftest.$ac_ext >&5
4456:
4457: ac_header_compiler=no
4458: fi
4459:
4460: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4461: { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4462: echo "${ECHO_T}$ac_header_compiler" >&6; }
4463:
4464: # Is the header present?
4465: { echo "$as_me:$LINENO: checking $ac_header presence" >&5
4466: echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
4467: cat >conftest.$ac_ext <<_ACEOF
4468: /* confdefs.h. */
4469: _ACEOF
4470: cat confdefs.h >>conftest.$ac_ext
4471: cat >>conftest.$ac_ext <<_ACEOF
4472: /* end confdefs.h. */
4473: #include <$ac_header>
4474: _ACEOF
4475: if { (ac_try="$ac_cpp conftest.$ac_ext"
4476: case "(($ac_try" in
4477: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4478: *) ac_try_echo=$ac_try;;
4479: esac
4480: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4481: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4482: ac_status=$?
4483: grep -v '^ *+' conftest.er1 >conftest.err
4484: rm -f conftest.er1
4485: cat conftest.err >&5
4486: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.9 ! root 4487: (exit $ac_status); } >/dev/null && {
! 4488: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
! 4489: test ! -s conftest.err
! 4490: }; then
1.1.1.6 root 4491: ac_header_preproc=yes
4492: else
4493: echo "$as_me: failed program was:" >&5
4494: sed 's/^/| /' conftest.$ac_ext >&5
4495:
4496: ac_header_preproc=no
4497: fi
4498:
4499: rm -f conftest.err conftest.$ac_ext
4500: { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4501: echo "${ECHO_T}$ac_header_preproc" >&6; }
4502:
4503: # So? What about this header?
4504: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4505: yes:no: )
4506: { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4507: echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4508: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4509: echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4510: ac_header_preproc=yes
4511: ;;
4512: no:yes:* )
4513: { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4514: echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4515: { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4516: echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4517: { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4518: echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4519: { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4520: echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4521: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4522: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4523: { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4524: echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4525:
4526: ;;
4527: esac
4528: { echo "$as_me:$LINENO: checking for $ac_header" >&5
4529: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4530: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4531: echo $ECHO_N "(cached) $ECHO_C" >&6
4532: else
4533: eval "$as_ac_Header=\$ac_header_preproc"
4534: fi
4535: ac_res=`eval echo '${'$as_ac_Header'}'`
4536: { echo "$as_me:$LINENO: result: $ac_res" >&5
4537: echo "${ECHO_T}$ac_res" >&6; }
4538:
4539: fi
4540: if test `eval echo '${'$as_ac_Header'}'` = yes; then
4541: cat >>confdefs.h <<_ACEOF
4542: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4543: _ACEOF
4544:
4545: fi
4546:
4547: done
4548:
4549: { echo "$as_me:$LINENO: checking whether readline supports history" >&5
4550: echo $ECHO_N "checking whether readline supports history... $ECHO_C" >&6; }
4551: if test "${vl_cv_lib_readline_history+set}" = set; then
4552: echo $ECHO_N "(cached) $ECHO_C" >&6
4553: else
4554:
4555: vl_cv_lib_readline_history="no"
4556: cat >conftest.$ac_ext <<_ACEOF
4557: /* confdefs.h. */
4558: _ACEOF
4559: cat confdefs.h >>conftest.$ac_ext
4560: cat >>conftest.$ac_ext <<_ACEOF
4561: /* end confdefs.h. */
4562:
4563: /* Override any GCC internal prototype to avoid an error.
4564: Use char because int might match the return type of a GCC
4565: builtin and then its argument prototype would still apply. */
4566: #ifdef __cplusplus
4567: extern "C"
4568: #endif
4569: char add_history ();
4570: int
4571: main ()
4572: {
4573: return add_history ();
4574: ;
4575: return 0;
4576: }
4577: _ACEOF
4578: rm -f conftest.$ac_objext conftest$ac_exeext
4579: if { (ac_try="$ac_link"
4580: case "(($ac_try" in
4581: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4582: *) ac_try_echo=$ac_try;;
4583: esac
4584: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4585: (eval "$ac_link") 2>conftest.er1
4586: ac_status=$?
4587: grep -v '^ *+' conftest.er1 >conftest.err
4588: rm -f conftest.er1
4589: cat conftest.err >&5
4590: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.9 ! root 4591: (exit $ac_status); } && {
! 4592: test -z "$ac_c_werror_flag" ||
! 4593: test ! -s conftest.err
! 4594: } && test -s conftest$ac_exeext &&
! 4595: $as_test_x conftest$ac_exeext; then
1.1.1.6 root 4596: vl_cv_lib_readline_history="yes"
4597: else
4598: echo "$as_me: failed program was:" >&5
4599: sed 's/^/| /' conftest.$ac_ext >&5
4600:
4601:
4602: fi
4603:
1.1.1.9 ! root 4604: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.1.1.6 root 4605: conftest$ac_exeext conftest.$ac_ext
4606:
4607: fi
4608: { echo "$as_me:$LINENO: result: $vl_cv_lib_readline_history" >&5
4609: echo "${ECHO_T}$vl_cv_lib_readline_history" >&6; }
4610: if test "$vl_cv_lib_readline_history" = "yes"; then
4611:
4612: cat >>confdefs.h <<\_ACEOF
4613: #define HAVE_READLINE_HISTORY 1
4614: _ACEOF
4615:
4616:
4617:
4618: for ac_header in history.h readline/history.h
4619: do
4620: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4621: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4622: { echo "$as_me:$LINENO: checking for $ac_header" >&5
4623: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4624: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4625: echo $ECHO_N "(cached) $ECHO_C" >&6
4626: fi
4627: ac_res=`eval echo '${'$as_ac_Header'}'`
4628: { echo "$as_me:$LINENO: result: $ac_res" >&5
4629: echo "${ECHO_T}$ac_res" >&6; }
4630: else
4631: # Is the header compilable?
4632: { echo "$as_me:$LINENO: checking $ac_header usability" >&5
4633: echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
4634: cat >conftest.$ac_ext <<_ACEOF
4635: /* confdefs.h. */
4636: _ACEOF
4637: cat confdefs.h >>conftest.$ac_ext
4638: cat >>conftest.$ac_ext <<_ACEOF
4639: /* end confdefs.h. */
4640: $ac_includes_default
4641: #include <$ac_header>
4642: _ACEOF
4643: rm -f conftest.$ac_objext
4644: if { (ac_try="$ac_compile"
4645: case "(($ac_try" in
4646: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4647: *) ac_try_echo=$ac_try;;
4648: esac
4649: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4650: (eval "$ac_compile") 2>conftest.er1
4651: ac_status=$?
4652: grep -v '^ *+' conftest.er1 >conftest.err
4653: rm -f conftest.er1
4654: cat conftest.err >&5
4655: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.9 ! root 4656: (exit $ac_status); } && {
! 4657: test -z "$ac_c_werror_flag" ||
! 4658: test ! -s conftest.err
! 4659: } && test -s conftest.$ac_objext; then
1.1.1.6 root 4660: ac_header_compiler=yes
4661: else
4662: echo "$as_me: failed program was:" >&5
4663: sed 's/^/| /' conftest.$ac_ext >&5
4664:
4665: ac_header_compiler=no
4666: fi
4667:
4668: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4669: { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4670: echo "${ECHO_T}$ac_header_compiler" >&6; }
4671:
4672: # Is the header present?
4673: { echo "$as_me:$LINENO: checking $ac_header presence" >&5
4674: echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
4675: cat >conftest.$ac_ext <<_ACEOF
4676: /* confdefs.h. */
4677: _ACEOF
4678: cat confdefs.h >>conftest.$ac_ext
4679: cat >>conftest.$ac_ext <<_ACEOF
4680: /* end confdefs.h. */
4681: #include <$ac_header>
4682: _ACEOF
4683: if { (ac_try="$ac_cpp conftest.$ac_ext"
4684: case "(($ac_try" in
4685: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4686: *) ac_try_echo=$ac_try;;
4687: esac
4688: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4689: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4690: ac_status=$?
4691: grep -v '^ *+' conftest.er1 >conftest.err
4692: rm -f conftest.er1
4693: cat conftest.err >&5
4694: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.9 ! root 4695: (exit $ac_status); } >/dev/null && {
! 4696: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
! 4697: test ! -s conftest.err
! 4698: }; then
1.1.1.6 root 4699: ac_header_preproc=yes
4700: else
4701: echo "$as_me: failed program was:" >&5
4702: sed 's/^/| /' conftest.$ac_ext >&5
4703:
4704: ac_header_preproc=no
4705: fi
4706:
4707: rm -f conftest.err conftest.$ac_ext
4708: { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4709: echo "${ECHO_T}$ac_header_preproc" >&6; }
4710:
4711: # So? What about this header?
4712: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4713: yes:no: )
4714: { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4715: echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4716: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4717: echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4718: ac_header_preproc=yes
4719: ;;
4720: no:yes:* )
4721: { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4722: echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4723: { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4724: echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4725: { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4726: echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4727: { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4728: echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4729: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4730: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4731: { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4732: echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4733:
4734: ;;
4735: esac
4736: { echo "$as_me:$LINENO: checking for $ac_header" >&5
4737: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4738: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4739: echo $ECHO_N "(cached) $ECHO_C" >&6
4740: else
4741: eval "$as_ac_Header=\$ac_header_preproc"
4742: fi
4743: ac_res=`eval echo '${'$as_ac_Header'}'`
4744: { echo "$as_me:$LINENO: result: $ac_res" >&5
4745: echo "${ECHO_T}$ac_res" >&6; }
4746:
4747: fi
4748: if test `eval echo '${'$as_ac_Header'}'` = yes; then
4749: cat >>confdefs.h <<_ACEOF
4750: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4751: _ACEOF
4752:
4753: fi
4754:
4755: done
4756:
4757: fi
4758: fi
4759:
4760:
4761: no_x=yes
4762: # Extract the first word of "pkg-config", so it can be a program name with args.
4763: set dummy pkg-config; ac_word=$2
4764: { echo "$as_me:$LINENO: checking for $ac_word" >&5
4765: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4766: if test "${ac_cv_prog_HAVE_PKG_CONFIG+set}" = set; then
4767: echo $ECHO_N "(cached) $ECHO_C" >&6
4768: else
4769: if test -n "$HAVE_PKG_CONFIG"; then
4770: ac_cv_prog_HAVE_PKG_CONFIG="$HAVE_PKG_CONFIG" # Let the user override the test.
4771: else
4772: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4773: for as_dir in $PATH
4774: do
4775: IFS=$as_save_IFS
4776: test -z "$as_dir" && as_dir=.
4777: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.9 ! root 4778: 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 4779: ac_cv_prog_HAVE_PKG_CONFIG="yes"
4780: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4781: break 2
4782: fi
4783: done
4784: done
4785: IFS=$as_save_IFS
4786:
4787: fi
4788: fi
4789: HAVE_PKG_CONFIG=$ac_cv_prog_HAVE_PKG_CONFIG
4790: if test -n "$HAVE_PKG_CONFIG"; then
4791: { echo "$as_me:$LINENO: result: $HAVE_PKG_CONFIG" >&5
4792: echo "${ECHO_T}$HAVE_PKG_CONFIG" >&6; }
4793: else
4794: { echo "$as_me:$LINENO: result: no" >&5
4795: echo "${ECHO_T}no" >&6; }
4796: fi
4797:
4798:
4799: if test "x${HAVE_PKG_CONFIG}" = "xyes"; then
4800:
4801:
4802: if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4803: if test -n "$ac_tool_prefix"; then
4804: # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4805: set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4806: { echo "$as_me:$LINENO: checking for $ac_word" >&5
4807: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4808: if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
4809: echo $ECHO_N "(cached) $ECHO_C" >&6
4810: else
4811: case $PKG_CONFIG in
4812: [\\/]* | ?:[\\/]*)
4813: ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4814: ;;
4815: *)
4816: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4817: for as_dir in $PATH
4818: do
4819: IFS=$as_save_IFS
4820: test -z "$as_dir" && as_dir=.
4821: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.9 ! root 4822: 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 4823: ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4824: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4825: break 2
4826: fi
4827: done
4828: done
4829: IFS=$as_save_IFS
4830:
4831: ;;
4832: esac
4833: fi
4834: PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4835: if test -n "$PKG_CONFIG"; then
4836: { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
4837: echo "${ECHO_T}$PKG_CONFIG" >&6; }
4838: else
4839: { echo "$as_me:$LINENO: result: no" >&5
4840: echo "${ECHO_T}no" >&6; }
4841: fi
4842:
4843:
4844: fi
4845: if test -z "$ac_cv_path_PKG_CONFIG"; then
4846: ac_pt_PKG_CONFIG=$PKG_CONFIG
4847: # Extract the first word of "pkg-config", so it can be a program name with args.
4848: set dummy pkg-config; ac_word=$2
4849: { echo "$as_me:$LINENO: checking for $ac_word" >&5
4850: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4851: if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
4852: echo $ECHO_N "(cached) $ECHO_C" >&6
4853: else
4854: case $ac_pt_PKG_CONFIG in
4855: [\\/]* | ?:[\\/]*)
4856: ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4857: ;;
4858: *)
4859: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4860: for as_dir in $PATH
4861: do
4862: IFS=$as_save_IFS
4863: test -z "$as_dir" && as_dir=.
4864: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.9 ! root 4865: 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 4866: ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4867: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4868: break 2
4869: fi
4870: done
4871: done
4872: IFS=$as_save_IFS
4873:
4874: ;;
4875: esac
4876: fi
4877: ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4878: if test -n "$ac_pt_PKG_CONFIG"; then
4879: { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
4880: echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
4881: else
4882: { echo "$as_me:$LINENO: result: no" >&5
4883: echo "${ECHO_T}no" >&6; }
4884: fi
4885:
4886: if test "x$ac_pt_PKG_CONFIG" = x; then
4887: PKG_CONFIG=""
4888: else
4889: case $cross_compiling:$ac_tool_warned in
4890: yes:)
4891: { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4892: whose name does not start with the host triplet. If you think this
4893: configuration is useful to you, please write to [email protected]." >&5
4894: echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4895: whose name does not start with the host triplet. If you think this
4896: configuration is useful to you, please write to [email protected]." >&2;}
4897: ac_tool_warned=yes ;;
4898: esac
4899: PKG_CONFIG=$ac_pt_PKG_CONFIG
4900: fi
4901: else
4902: PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4903: fi
4904:
4905: fi
4906: if test -n "$PKG_CONFIG"; then
4907: _pkg_min_version=0.9.0
4908: { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
4909: echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
4910: if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4911: { echo "$as_me:$LINENO: result: yes" >&5
4912: echo "${ECHO_T}yes" >&6; }
4913: else
4914: { echo "$as_me:$LINENO: result: no" >&5
4915: echo "${ECHO_T}no" >&6; }
4916: PKG_CONFIG=""
4917: fi
4918:
4919: fi
4920:
4921: pkg_failed=no
4922: { echo "$as_me:$LINENO: checking for X" >&5
4923: echo $ECHO_N "checking for X... $ECHO_C" >&6; }
4924:
4925: if test -n "$PKG_CONFIG"; then
4926: if test -n "$X_CFLAGS"; then
4927: pkg_cv_X_CFLAGS="$X_CFLAGS"
4928: else
4929: if test -n "$PKG_CONFIG" && \
4930: { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"x11\"") >&5
4931: ($PKG_CONFIG --exists --print-errors "x11") 2>&5
4932: ac_status=$?
4933: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4934: (exit $ac_status); }; then
4935: pkg_cv_X_CFLAGS=`$PKG_CONFIG --cflags "x11" 2>/dev/null`
4936: else
4937: pkg_failed=yes
4938: fi
4939: fi
4940: else
4941: pkg_failed=untried
4942: fi
4943: if test -n "$PKG_CONFIG"; then
4944: if test -n "$X_LIBS"; then
4945: pkg_cv_X_LIBS="$X_LIBS"
4946: else
4947: if test -n "$PKG_CONFIG" && \
4948: { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"x11\"") >&5
4949: ($PKG_CONFIG --exists --print-errors "x11") 2>&5
4950: ac_status=$?
4951: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4952: (exit $ac_status); }; then
4953: pkg_cv_X_LIBS=`$PKG_CONFIG --libs "x11" 2>/dev/null`
4954: else
4955: pkg_failed=yes
4956: fi
4957: fi
4958: else
4959: pkg_failed=untried
4960: fi
4961:
4962:
4963:
4964: if test $pkg_failed = yes; then
4965:
4966: if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
4967: _pkg_short_errors_supported=yes
4968: else
4969: _pkg_short_errors_supported=no
4970: fi
4971: if test $_pkg_short_errors_supported = yes; then
4972: X_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "x11"`
4973: else
4974: X_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "x11"`
4975: fi
4976: # Put the nasty error message in config.log where it belongs
4977: echo "$X_PKG_ERRORS" >&5
4978:
4979: { echo "$as_me:$LINENO: result: no" >&5
4980: echo "${ECHO_T}no" >&6; }
4981: no_x=yes
4982: elif test $pkg_failed = untried; then
4983: no_x=yes
4984: else
4985: X_CFLAGS=$pkg_cv_X_CFLAGS
4986: X_LIBS=$pkg_cv_X_LIBS
4987: { echo "$as_me:$LINENO: result: yes" >&5
4988: echo "${ECHO_T}yes" >&6; }
4989: no_x=no
4990: fi
4991: fi
4992: if test "x${no_x}" = "xyes"; then
4993: { echo "$as_me:$LINENO: checking for X" >&5
4994: echo $ECHO_N "checking for X... $ECHO_C" >&6; }
4995:
4996:
4997: # Check whether --with-x was given.
4998: if test "${with_x+set}" = set; then
4999: withval=$with_x;
5000: fi
5001:
5002: # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
5003: if test "x$with_x" = xno; then
5004: # The user explicitly disabled X.
5005: have_x=disabled
5006: else
5007: case $x_includes,$x_libraries in #(
5008: *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
5009: echo "$as_me: error: Cannot use X directory names containing '" >&2;}
5010: { (exit 1); exit 1; }; };; #(
5011: *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
5012: echo $ECHO_N "(cached) $ECHO_C" >&6
5013: else
5014: # One or both of the vars are not set, and there is no cached value.
5015: ac_x_includes=no ac_x_libraries=no
5016: rm -f -r conftest.dir
5017: if mkdir conftest.dir; then
5018: cd conftest.dir
5019: cat >Imakefile <<'_ACEOF'
5020: incroot:
5021: @echo incroot='${INCROOT}'
5022: usrlibdir:
5023: @echo usrlibdir='${USRLIBDIR}'
5024: libdir:
5025: @echo libdir='${LIBDIR}'
5026: _ACEOF
5027: if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
5028: # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5029: for ac_var in incroot usrlibdir libdir; do
5030: eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
5031: done
5032: # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
5033: for ac_extension in a so sl; do
5034: if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
5035: test -f "$ac_im_libdir/libX11.$ac_extension"; then
5036: ac_im_usrlibdir=$ac_im_libdir; break
5037: fi
5038: done
5039: # Screen out bogus values from the imake configuration. They are
5040: # bogus both because they are the default anyway, and because
5041: # using them would break gcc on systems where it needs fixed includes.
5042: case $ac_im_incroot in
5043: /usr/include) ac_x_includes= ;;
5044: *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
5045: esac
5046: case $ac_im_usrlibdir in
5047: /usr/lib | /lib) ;;
5048: *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
5049: esac
5050: fi
5051: cd ..
5052: rm -f -r conftest.dir
5053: fi
5054:
5055: # Standard set of common directories for X headers.
5056: # Check X11 before X11Rn because it is often a symlink to the current release.
5057: ac_x_header_dirs='
5058: /usr/X11/include
5059: /usr/X11R6/include
5060: /usr/X11R5/include
5061: /usr/X11R4/include
5062:
5063: /usr/include/X11
5064: /usr/include/X11R6
5065: /usr/include/X11R5
5066: /usr/include/X11R4
5067:
5068: /usr/local/X11/include
5069: /usr/local/X11R6/include
5070: /usr/local/X11R5/include
5071: /usr/local/X11R4/include
5072:
5073: /usr/local/include/X11
5074: /usr/local/include/X11R6
5075: /usr/local/include/X11R5
5076: /usr/local/include/X11R4
5077:
5078: /usr/X386/include
5079: /usr/x386/include
5080: /usr/XFree86/include/X11
5081:
5082: /usr/include
5083: /usr/local/include
5084: /usr/unsupported/include
5085: /usr/athena/include
5086: /usr/local/x11r5/include
5087: /usr/lpp/Xamples/include
5088:
5089: /usr/openwin/include
5090: /usr/openwin/share/include'
5091:
5092: if test "$ac_x_includes" = no; then
5093: # Guess where to find include files, by looking for Xlib.h.
5094: # First, try using that file with no special directory specified.
5095: cat >conftest.$ac_ext <<_ACEOF
5096: /* confdefs.h. */
5097: _ACEOF
5098: cat confdefs.h >>conftest.$ac_ext
5099: cat >>conftest.$ac_ext <<_ACEOF
5100: /* end confdefs.h. */
5101: #include <X11/Xlib.h>
5102: _ACEOF
5103: if { (ac_try="$ac_cpp conftest.$ac_ext"
5104: case "(($ac_try" in
5105: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5106: *) ac_try_echo=$ac_try;;
5107: esac
5108: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5109: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5110: ac_status=$?
5111: grep -v '^ *+' conftest.er1 >conftest.err
5112: rm -f conftest.er1
5113: cat conftest.err >&5
5114: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.9 ! root 5115: (exit $ac_status); } >/dev/null && {
! 5116: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
! 5117: test ! -s conftest.err
! 5118: }; then
1.1.1.6 root 5119: # We can compile using X headers with no special include directory.
5120: ac_x_includes=
5121: else
5122: echo "$as_me: failed program was:" >&5
5123: sed 's/^/| /' conftest.$ac_ext >&5
5124:
5125: for ac_dir in $ac_x_header_dirs; do
5126: if test -r "$ac_dir/X11/Xlib.h"; then
5127: ac_x_includes=$ac_dir
5128: break
5129: fi
5130: done
5131: fi
5132:
5133: rm -f conftest.err conftest.$ac_ext
5134: fi # $ac_x_includes = no
5135:
5136: if test "$ac_x_libraries" = no; then
5137: # Check for the libraries.
5138: # See if we find them without any special options.
5139: # Don't add to $LIBS permanently.
5140: ac_save_LIBS=$LIBS
1.1.1.9 ! root 5141: LIBS="-lX11 $LIBS"
1.1.1.6 root 5142: cat >conftest.$ac_ext <<_ACEOF
5143: /* confdefs.h. */
5144: _ACEOF
5145: cat confdefs.h >>conftest.$ac_ext
5146: cat >>conftest.$ac_ext <<_ACEOF
5147: /* end confdefs.h. */
5148: #include <X11/Xlib.h>
5149: int
5150: main ()
5151: {
5152: XrmInitialize ()
5153: ;
5154: return 0;
5155: }
5156: _ACEOF
5157: rm -f conftest.$ac_objext conftest$ac_exeext
5158: if { (ac_try="$ac_link"
5159: case "(($ac_try" in
5160: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5161: *) ac_try_echo=$ac_try;;
5162: esac
5163: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5164: (eval "$ac_link") 2>conftest.er1
5165: ac_status=$?
5166: grep -v '^ *+' conftest.er1 >conftest.err
5167: rm -f conftest.er1
5168: cat conftest.err >&5
5169: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.9 ! root 5170: (exit $ac_status); } && {
! 5171: test -z "$ac_c_werror_flag" ||
! 5172: test ! -s conftest.err
! 5173: } && test -s conftest$ac_exeext &&
! 5174: $as_test_x conftest$ac_exeext; then
1.1.1.6 root 5175: LIBS=$ac_save_LIBS
5176: # We can link X programs with no special library path.
5177: ac_x_libraries=
5178: else
5179: echo "$as_me: failed program was:" >&5
5180: sed 's/^/| /' conftest.$ac_ext >&5
5181:
5182: LIBS=$ac_save_LIBS
5183: for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
5184: do
5185: # Don't even attempt the hair of trying to link an X program!
5186: for ac_extension in a so sl; do
1.1.1.9 ! root 5187: if test -r "$ac_dir/libX11.$ac_extension"; then
1.1.1.6 root 5188: ac_x_libraries=$ac_dir
5189: break 2
5190: fi
5191: done
5192: done
5193: fi
5194:
1.1.1.9 ! root 5195: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.1.1.6 root 5196: conftest$ac_exeext conftest.$ac_ext
5197: fi # $ac_x_libraries = no
5198:
5199: case $ac_x_includes,$ac_x_libraries in #(
5200: no,* | *,no | *\'*)
5201: # Didn't find X, or a directory has "'" in its name.
5202: ac_cv_have_x="have_x=no";; #(
5203: *)
5204: # Record where we found X for the cache.
5205: ac_cv_have_x="have_x=yes\
5206: ac_x_includes='$ac_x_includes'\
5207: ac_x_libraries='$ac_x_libraries'"
5208: esac
5209: fi
5210: ;; #(
5211: *) have_x=yes;;
5212: esac
5213: eval "$ac_cv_have_x"
5214: fi # $with_x != no
5215:
5216: if test "$have_x" != yes; then
5217: { echo "$as_me:$LINENO: result: $have_x" >&5
5218: echo "${ECHO_T}$have_x" >&6; }
5219: no_x=yes
5220: else
5221: # If each of the values was on the command line, it overrides each guess.
5222: test "x$x_includes" = xNONE && x_includes=$ac_x_includes
5223: test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
5224: # Update the cache value to reflect the command line values.
5225: ac_cv_have_x="have_x=yes\
5226: ac_x_includes='$x_includes'\
5227: ac_x_libraries='$x_libraries'"
5228: { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
5229: echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
5230: fi
5231:
5232: if test "$no_x" = yes; then
5233: # Not all programs may use this symbol, but it does not hurt to define it.
5234:
5235: cat >>confdefs.h <<\_ACEOF
5236: #define X_DISPLAY_MISSING 1
5237: _ACEOF
5238:
5239: X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
5240: else
5241: if test -n "$x_includes"; then
5242: X_CFLAGS="$X_CFLAGS -I$x_includes"
5243: fi
5244:
5245: # It would also be nice to do this for all -L options, not just this one.
5246: if test -n "$x_libraries"; then
5247: X_LIBS="$X_LIBS -L$x_libraries"
5248: # For Solaris; some versions of Sun CC require a space after -R and
5249: # others require no space. Words are not sufficient . . . .
1.1.1.9 ! root 5250: { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
1.1.1.6 root 5251: echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
1.1.1.9 ! root 5252: ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
! 5253: ac_xsave_c_werror_flag=$ac_c_werror_flag
! 5254: ac_c_werror_flag=yes
! 5255: cat >conftest.$ac_ext <<_ACEOF
1.1.1.6 root 5256: /* confdefs.h. */
5257: _ACEOF
5258: cat confdefs.h >>conftest.$ac_ext
5259: cat >>conftest.$ac_ext <<_ACEOF
5260: /* end confdefs.h. */
5261:
5262: int
5263: main ()
5264: {
5265:
5266: ;
5267: return 0;
5268: }
5269: _ACEOF
5270: rm -f conftest.$ac_objext conftest$ac_exeext
5271: if { (ac_try="$ac_link"
5272: case "(($ac_try" in
5273: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5274: *) ac_try_echo=$ac_try;;
5275: esac
5276: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5277: (eval "$ac_link") 2>conftest.er1
5278: ac_status=$?
5279: grep -v '^ *+' conftest.er1 >conftest.err
5280: rm -f conftest.er1
5281: cat conftest.err >&5
5282: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.9 ! root 5283: (exit $ac_status); } && {
! 5284: test -z "$ac_c_werror_flag" ||
! 5285: test ! -s conftest.err
! 5286: } && test -s conftest$ac_exeext &&
! 5287: $as_test_x conftest$ac_exeext; then
! 5288: { echo "$as_me:$LINENO: result: no" >&5
! 5289: echo "${ECHO_T}no" >&6; }
! 5290: X_LIBS="$X_LIBS -R$x_libraries"
1.1.1.6 root 5291: else
5292: echo "$as_me: failed program was:" >&5
5293: sed 's/^/| /' conftest.$ac_ext >&5
5294:
5295: LIBS="$ac_xsave_LIBS -R $x_libraries"
1.1.1.9 ! root 5296: cat >conftest.$ac_ext <<_ACEOF
1.1.1.6 root 5297: /* confdefs.h. */
5298: _ACEOF
5299: cat confdefs.h >>conftest.$ac_ext
5300: cat >>conftest.$ac_ext <<_ACEOF
5301: /* end confdefs.h. */
5302:
5303: int
5304: main ()
5305: {
5306:
5307: ;
5308: return 0;
5309: }
5310: _ACEOF
5311: rm -f conftest.$ac_objext conftest$ac_exeext
5312: if { (ac_try="$ac_link"
5313: case "(($ac_try" in
5314: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5315: *) ac_try_echo=$ac_try;;
5316: esac
5317: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5318: (eval "$ac_link") 2>conftest.er1
5319: ac_status=$?
5320: grep -v '^ *+' conftest.er1 >conftest.err
5321: rm -f conftest.er1
5322: cat conftest.err >&5
5323: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.9 ! root 5324: (exit $ac_status); } && {
! 5325: test -z "$ac_c_werror_flag" ||
! 5326: test ! -s conftest.err
! 5327: } && test -s conftest$ac_exeext &&
! 5328: $as_test_x conftest$ac_exeext; then
! 5329: { echo "$as_me:$LINENO: result: yes" >&5
! 5330: echo "${ECHO_T}yes" >&6; }
! 5331: X_LIBS="$X_LIBS -R $x_libraries"
1.1.1.6 root 5332: else
5333: echo "$as_me: failed program was:" >&5
5334: sed 's/^/| /' conftest.$ac_ext >&5
5335:
1.1.1.9 ! root 5336: { echo "$as_me:$LINENO: result: neither works" >&5
! 5337: echo "${ECHO_T}neither works" >&6; }
1.1.1.6 root 5338: fi
5339:
1.1.1.9 ! root 5340: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.1.1.6 root 5341: conftest$ac_exeext conftest.$ac_ext
1.1.1.9 ! root 5342: fi
! 5343:
! 5344: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 5345: conftest$ac_exeext conftest.$ac_ext
! 5346: ac_c_werror_flag=$ac_xsave_c_werror_flag
! 5347: LIBS=$ac_xsave_LIBS
1.1.1.6 root 5348: fi
5349:
5350: # Check for system-dependent libraries X programs must link with.
5351: # Do this before checking for the system-independent R6 libraries
5352: # (-lICE), since we may need -lsocket or whatever for X linking.
5353:
5354: if test "$ISC" = yes; then
5355: X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
5356: else
5357: # Martyn Johnson says this is needed for Ultrix, if the X
5358: # libraries were built with DECnet support. And Karl Berry says
5359: # the Alpha needs dnet_stub (dnet does not exist).
5360: ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
5361: cat >conftest.$ac_ext <<_ACEOF
5362: /* confdefs.h. */
5363: _ACEOF
5364: cat confdefs.h >>conftest.$ac_ext
5365: cat >>conftest.$ac_ext <<_ACEOF
5366: /* end confdefs.h. */
5367:
5368: /* Override any GCC internal prototype to avoid an error.
5369: Use char because int might match the return type of a GCC
5370: builtin and then its argument prototype would still apply. */
5371: #ifdef __cplusplus
5372: extern "C"
5373: #endif
5374: char XOpenDisplay ();
5375: int
5376: main ()
5377: {
5378: return XOpenDisplay ();
5379: ;
5380: return 0;
5381: }
5382: _ACEOF
5383: rm -f conftest.$ac_objext conftest$ac_exeext
5384: if { (ac_try="$ac_link"
5385: case "(($ac_try" in
5386: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5387: *) ac_try_echo=$ac_try;;
5388: esac
5389: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5390: (eval "$ac_link") 2>conftest.er1
5391: ac_status=$?
5392: grep -v '^ *+' conftest.er1 >conftest.err
5393: rm -f conftest.er1
5394: cat conftest.err >&5
5395: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.9 ! root 5396: (exit $ac_status); } && {
! 5397: test -z "$ac_c_werror_flag" ||
! 5398: test ! -s conftest.err
! 5399: } && test -s conftest$ac_exeext &&
! 5400: $as_test_x conftest$ac_exeext; then
1.1.1.6 root 5401: :
5402: else
5403: echo "$as_me: failed program was:" >&5
5404: sed 's/^/| /' conftest.$ac_ext >&5
5405:
5406: { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
5407: echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
5408: if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
5409: echo $ECHO_N "(cached) $ECHO_C" >&6
5410: else
5411: ac_check_lib_save_LIBS=$LIBS
5412: LIBS="-ldnet $LIBS"
5413: cat >conftest.$ac_ext <<_ACEOF
5414: /* confdefs.h. */
5415: _ACEOF
5416: cat confdefs.h >>conftest.$ac_ext
5417: cat >>conftest.$ac_ext <<_ACEOF
5418: /* end confdefs.h. */
5419:
5420: /* Override any GCC internal prototype to avoid an error.
5421: Use char because int might match the return type of a GCC
5422: builtin and then its argument prototype would still apply. */
5423: #ifdef __cplusplus
5424: extern "C"
5425: #endif
5426: char dnet_ntoa ();
5427: int
5428: main ()
5429: {
5430: return dnet_ntoa ();
5431: ;
5432: return 0;
5433: }
5434: _ACEOF
5435: rm -f conftest.$ac_objext conftest$ac_exeext
5436: if { (ac_try="$ac_link"
5437: case "(($ac_try" in
5438: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5439: *) ac_try_echo=$ac_try;;
5440: esac
5441: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5442: (eval "$ac_link") 2>conftest.er1
5443: ac_status=$?
5444: grep -v '^ *+' conftest.er1 >conftest.err
5445: rm -f conftest.er1
5446: cat conftest.err >&5
5447: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.9 ! root 5448: (exit $ac_status); } && {
! 5449: test -z "$ac_c_werror_flag" ||
! 5450: test ! -s conftest.err
! 5451: } && test -s conftest$ac_exeext &&
! 5452: $as_test_x conftest$ac_exeext; then
1.1.1.6 root 5453: ac_cv_lib_dnet_dnet_ntoa=yes
5454: else
5455: echo "$as_me: failed program was:" >&5
5456: sed 's/^/| /' conftest.$ac_ext >&5
5457:
5458: ac_cv_lib_dnet_dnet_ntoa=no
5459: fi
5460:
1.1.1.9 ! root 5461: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.1.1.6 root 5462: conftest$ac_exeext conftest.$ac_ext
5463: LIBS=$ac_check_lib_save_LIBS
5464: fi
5465: { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
5466: echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
5467: if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
5468: X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
5469: fi
5470:
5471: if test $ac_cv_lib_dnet_dnet_ntoa = no; then
5472: { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
5473: echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
5474: if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
5475: echo $ECHO_N "(cached) $ECHO_C" >&6
5476: else
5477: ac_check_lib_save_LIBS=$LIBS
5478: LIBS="-ldnet_stub $LIBS"
5479: cat >conftest.$ac_ext <<_ACEOF
5480: /* confdefs.h. */
5481: _ACEOF
5482: cat confdefs.h >>conftest.$ac_ext
5483: cat >>conftest.$ac_ext <<_ACEOF
5484: /* end confdefs.h. */
5485:
5486: /* Override any GCC internal prototype to avoid an error.
5487: Use char because int might match the return type of a GCC
5488: builtin and then its argument prototype would still apply. */
5489: #ifdef __cplusplus
5490: extern "C"
5491: #endif
5492: char dnet_ntoa ();
5493: int
5494: main ()
5495: {
5496: return dnet_ntoa ();
5497: ;
5498: return 0;
5499: }
5500: _ACEOF
5501: rm -f conftest.$ac_objext conftest$ac_exeext
5502: if { (ac_try="$ac_link"
5503: case "(($ac_try" in
5504: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5505: *) ac_try_echo=$ac_try;;
5506: esac
5507: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5508: (eval "$ac_link") 2>conftest.er1
5509: ac_status=$?
5510: grep -v '^ *+' conftest.er1 >conftest.err
5511: rm -f conftest.er1
5512: cat conftest.err >&5
5513: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.9 ! root 5514: (exit $ac_status); } && {
! 5515: test -z "$ac_c_werror_flag" ||
! 5516: test ! -s conftest.err
! 5517: } && test -s conftest$ac_exeext &&
! 5518: $as_test_x conftest$ac_exeext; then
1.1.1.6 root 5519: ac_cv_lib_dnet_stub_dnet_ntoa=yes
5520: else
5521: echo "$as_me: failed program was:" >&5
5522: sed 's/^/| /' conftest.$ac_ext >&5
5523:
5524: ac_cv_lib_dnet_stub_dnet_ntoa=no
5525: fi
5526:
1.1.1.9 ! root 5527: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.1.1.6 root 5528: conftest$ac_exeext conftest.$ac_ext
5529: LIBS=$ac_check_lib_save_LIBS
5530: fi
5531: { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
5532: echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
5533: if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
5534: X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
5535: fi
5536:
5537: fi
5538: fi
5539:
1.1.1.9 ! root 5540: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.1.1.6 root 5541: conftest$ac_exeext conftest.$ac_ext
5542: LIBS="$ac_xsave_LIBS"
5543:
5544: # [email protected] says -lnsl (and -lsocket) are needed for his 386/AT,
5545: # to get the SysV transport functions.
5546: # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
5547: # needs -lnsl.
5548: # The nsl library prevents programs from opening the X display
5549: # on Irix 5.2, according to T.E. Dickey.
5550: # The functions gethostbyname, getservbyname, and inet_addr are
5551: # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
5552: { echo "$as_me:$LINENO: checking for gethostbyname" >&5
5553: echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
5554: if test "${ac_cv_func_gethostbyname+set}" = set; then
5555: echo $ECHO_N "(cached) $ECHO_C" >&6
5556: else
5557: cat >conftest.$ac_ext <<_ACEOF
5558: /* confdefs.h. */
5559: _ACEOF
5560: cat confdefs.h >>conftest.$ac_ext
5561: cat >>conftest.$ac_ext <<_ACEOF
5562: /* end confdefs.h. */
5563: /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
5564: For example, HP-UX 11i <limits.h> declares gettimeofday. */
5565: #define gethostbyname innocuous_gethostbyname
5566:
5567: /* System header to define __stub macros and hopefully few prototypes,
5568: which can conflict with char gethostbyname (); below.
5569: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5570: <limits.h> exists even on freestanding compilers. */
5571:
5572: #ifdef __STDC__
5573: # include <limits.h>
5574: #else
5575: # include <assert.h>
5576: #endif
5577:
5578: #undef gethostbyname
5579:
5580: /* Override any GCC internal prototype to avoid an error.
5581: Use char because int might match the return type of a GCC
5582: builtin and then its argument prototype would still apply. */
5583: #ifdef __cplusplus
5584: extern "C"
5585: #endif
5586: char gethostbyname ();
5587: /* The GNU C library defines this for functions which it implements
5588: to always fail with ENOSYS. Some functions are actually named
5589: something starting with __ and the normal name is an alias. */
5590: #if defined __stub_gethostbyname || defined __stub___gethostbyname
5591: choke me
5592: #endif
5593:
5594: int
5595: main ()
5596: {
5597: return gethostbyname ();
5598: ;
5599: return 0;
5600: }
5601: _ACEOF
5602: rm -f conftest.$ac_objext conftest$ac_exeext
5603: if { (ac_try="$ac_link"
5604: case "(($ac_try" in
5605: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5606: *) ac_try_echo=$ac_try;;
5607: esac
5608: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5609: (eval "$ac_link") 2>conftest.er1
5610: ac_status=$?
5611: grep -v '^ *+' conftest.er1 >conftest.err
5612: rm -f conftest.er1
5613: cat conftest.err >&5
5614: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.9 ! root 5615: (exit $ac_status); } && {
! 5616: test -z "$ac_c_werror_flag" ||
! 5617: test ! -s conftest.err
! 5618: } && test -s conftest$ac_exeext &&
! 5619: $as_test_x conftest$ac_exeext; then
1.1.1.6 root 5620: ac_cv_func_gethostbyname=yes
5621: else
5622: echo "$as_me: failed program was:" >&5
5623: sed 's/^/| /' conftest.$ac_ext >&5
5624:
5625: ac_cv_func_gethostbyname=no
5626: fi
5627:
1.1.1.9 ! root 5628: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.1.1.6 root 5629: conftest$ac_exeext conftest.$ac_ext
5630: fi
5631: { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
5632: echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
5633:
5634: if test $ac_cv_func_gethostbyname = no; then
5635: { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
5636: echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
5637: if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
5638: echo $ECHO_N "(cached) $ECHO_C" >&6
5639: else
5640: ac_check_lib_save_LIBS=$LIBS
5641: LIBS="-lnsl $LIBS"
5642: cat >conftest.$ac_ext <<_ACEOF
5643: /* confdefs.h. */
5644: _ACEOF
5645: cat confdefs.h >>conftest.$ac_ext
5646: cat >>conftest.$ac_ext <<_ACEOF
5647: /* end confdefs.h. */
5648:
5649: /* Override any GCC internal prototype to avoid an error.
5650: Use char because int might match the return type of a GCC
5651: builtin and then its argument prototype would still apply. */
5652: #ifdef __cplusplus
5653: extern "C"
5654: #endif
5655: char gethostbyname ();
5656: int
5657: main ()
5658: {
5659: return gethostbyname ();
5660: ;
5661: return 0;
5662: }
5663: _ACEOF
5664: rm -f conftest.$ac_objext conftest$ac_exeext
5665: if { (ac_try="$ac_link"
5666: case "(($ac_try" in
5667: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5668: *) ac_try_echo=$ac_try;;
5669: esac
5670: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5671: (eval "$ac_link") 2>conftest.er1
5672: ac_status=$?
5673: grep -v '^ *+' conftest.er1 >conftest.err
5674: rm -f conftest.er1
5675: cat conftest.err >&5
5676: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.9 ! root 5677: (exit $ac_status); } && {
! 5678: test -z "$ac_c_werror_flag" ||
! 5679: test ! -s conftest.err
! 5680: } && test -s conftest$ac_exeext &&
! 5681: $as_test_x conftest$ac_exeext; then
1.1.1.6 root 5682: ac_cv_lib_nsl_gethostbyname=yes
5683: else
5684: echo "$as_me: failed program was:" >&5
5685: sed 's/^/| /' conftest.$ac_ext >&5
5686:
5687: ac_cv_lib_nsl_gethostbyname=no
5688: fi
5689:
1.1.1.9 ! root 5690: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.1.1.6 root 5691: conftest$ac_exeext conftest.$ac_ext
5692: LIBS=$ac_check_lib_save_LIBS
5693: fi
5694: { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
5695: echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
5696: if test $ac_cv_lib_nsl_gethostbyname = yes; then
5697: X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
5698: fi
5699:
5700: if test $ac_cv_lib_nsl_gethostbyname = no; then
5701: { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
5702: echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
5703: if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
5704: echo $ECHO_N "(cached) $ECHO_C" >&6
5705: else
5706: ac_check_lib_save_LIBS=$LIBS
5707: LIBS="-lbsd $LIBS"
5708: cat >conftest.$ac_ext <<_ACEOF
5709: /* confdefs.h. */
5710: _ACEOF
5711: cat confdefs.h >>conftest.$ac_ext
5712: cat >>conftest.$ac_ext <<_ACEOF
5713: /* end confdefs.h. */
5714:
5715: /* Override any GCC internal prototype to avoid an error.
5716: Use char because int might match the return type of a GCC
5717: builtin and then its argument prototype would still apply. */
5718: #ifdef __cplusplus
5719: extern "C"
5720: #endif
5721: char gethostbyname ();
5722: int
5723: main ()
5724: {
5725: return gethostbyname ();
5726: ;
5727: return 0;
5728: }
5729: _ACEOF
5730: rm -f conftest.$ac_objext conftest$ac_exeext
5731: if { (ac_try="$ac_link"
5732: case "(($ac_try" in
5733: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5734: *) ac_try_echo=$ac_try;;
5735: esac
5736: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5737: (eval "$ac_link") 2>conftest.er1
5738: ac_status=$?
5739: grep -v '^ *+' conftest.er1 >conftest.err
5740: rm -f conftest.er1
5741: cat conftest.err >&5
5742: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.9 ! root 5743: (exit $ac_status); } && {
! 5744: test -z "$ac_c_werror_flag" ||
! 5745: test ! -s conftest.err
! 5746: } && test -s conftest$ac_exeext &&
! 5747: $as_test_x conftest$ac_exeext; then
1.1.1.6 root 5748: ac_cv_lib_bsd_gethostbyname=yes
5749: else
5750: echo "$as_me: failed program was:" >&5
5751: sed 's/^/| /' conftest.$ac_ext >&5
5752:
5753: ac_cv_lib_bsd_gethostbyname=no
5754: fi
5755:
1.1.1.9 ! root 5756: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.1.1.6 root 5757: conftest$ac_exeext conftest.$ac_ext
5758: LIBS=$ac_check_lib_save_LIBS
5759: fi
5760: { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
5761: echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
5762: if test $ac_cv_lib_bsd_gethostbyname = yes; then
5763: X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
5764: fi
5765:
5766: fi
5767: fi
5768:
5769: # [email protected] says without -lsocket,
5770: # socket/setsockopt and other routines are undefined under SCO ODT
5771: # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
5772: # on later versions), says Simon Leinen: it contains gethostby*
5773: # variants that don't use the name server (or something). -lsocket
5774: # must be given before -lnsl if both are needed. We assume that
5775: # if connect needs -lnsl, so does gethostbyname.
5776: { echo "$as_me:$LINENO: checking for connect" >&5
5777: echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
5778: if test "${ac_cv_func_connect+set}" = set; then
5779: echo $ECHO_N "(cached) $ECHO_C" >&6
5780: else
5781: cat >conftest.$ac_ext <<_ACEOF
5782: /* confdefs.h. */
5783: _ACEOF
5784: cat confdefs.h >>conftest.$ac_ext
5785: cat >>conftest.$ac_ext <<_ACEOF
5786: /* end confdefs.h. */
5787: /* Define connect to an innocuous variant, in case <limits.h> declares connect.
5788: For example, HP-UX 11i <limits.h> declares gettimeofday. */
5789: #define connect innocuous_connect
5790:
5791: /* System header to define __stub macros and hopefully few prototypes,
5792: which can conflict with char connect (); below.
5793: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5794: <limits.h> exists even on freestanding compilers. */
5795:
5796: #ifdef __STDC__
5797: # include <limits.h>
5798: #else
5799: # include <assert.h>
5800: #endif
5801:
5802: #undef connect
5803:
5804: /* Override any GCC internal prototype to avoid an error.
5805: Use char because int might match the return type of a GCC
5806: builtin and then its argument prototype would still apply. */
5807: #ifdef __cplusplus
5808: extern "C"
5809: #endif
5810: char connect ();
5811: /* The GNU C library defines this for functions which it implements
5812: to always fail with ENOSYS. Some functions are actually named
5813: something starting with __ and the normal name is an alias. */
5814: #if defined __stub_connect || defined __stub___connect
5815: choke me
5816: #endif
5817:
5818: int
5819: main ()
5820: {
5821: return connect ();
5822: ;
5823: return 0;
5824: }
5825: _ACEOF
5826: rm -f conftest.$ac_objext conftest$ac_exeext
5827: if { (ac_try="$ac_link"
5828: case "(($ac_try" in
5829: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5830: *) ac_try_echo=$ac_try;;
5831: esac
5832: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5833: (eval "$ac_link") 2>conftest.er1
5834: ac_status=$?
5835: grep -v '^ *+' conftest.er1 >conftest.err
5836: rm -f conftest.er1
5837: cat conftest.err >&5
5838: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.9 ! root 5839: (exit $ac_status); } && {
! 5840: test -z "$ac_c_werror_flag" ||
! 5841: test ! -s conftest.err
! 5842: } && test -s conftest$ac_exeext &&
! 5843: $as_test_x conftest$ac_exeext; then
1.1.1.6 root 5844: ac_cv_func_connect=yes
5845: else
5846: echo "$as_me: failed program was:" >&5
5847: sed 's/^/| /' conftest.$ac_ext >&5
5848:
5849: ac_cv_func_connect=no
5850: fi
5851:
1.1.1.9 ! root 5852: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.1.1.6 root 5853: conftest$ac_exeext conftest.$ac_ext
5854: fi
5855: { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
5856: echo "${ECHO_T}$ac_cv_func_connect" >&6; }
5857:
5858: if test $ac_cv_func_connect = no; then
5859: { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
5860: echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
5861: if test "${ac_cv_lib_socket_connect+set}" = set; then
5862: echo $ECHO_N "(cached) $ECHO_C" >&6
5863: else
5864: ac_check_lib_save_LIBS=$LIBS
5865: LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
5866: cat >conftest.$ac_ext <<_ACEOF
5867: /* confdefs.h. */
5868: _ACEOF
5869: cat confdefs.h >>conftest.$ac_ext
5870: cat >>conftest.$ac_ext <<_ACEOF
5871: /* end confdefs.h. */
5872:
5873: /* Override any GCC internal prototype to avoid an error.
5874: Use char because int might match the return type of a GCC
5875: builtin and then its argument prototype would still apply. */
5876: #ifdef __cplusplus
5877: extern "C"
5878: #endif
5879: char connect ();
5880: int
5881: main ()
5882: {
5883: return connect ();
5884: ;
5885: return 0;
5886: }
5887: _ACEOF
5888: rm -f conftest.$ac_objext conftest$ac_exeext
5889: if { (ac_try="$ac_link"
5890: case "(($ac_try" in
5891: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5892: *) ac_try_echo=$ac_try;;
5893: esac
5894: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5895: (eval "$ac_link") 2>conftest.er1
5896: ac_status=$?
5897: grep -v '^ *+' conftest.er1 >conftest.err
5898: rm -f conftest.er1
5899: cat conftest.err >&5
5900: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.9 ! root 5901: (exit $ac_status); } && {
! 5902: test -z "$ac_c_werror_flag" ||
! 5903: test ! -s conftest.err
! 5904: } && test -s conftest$ac_exeext &&
! 5905: $as_test_x conftest$ac_exeext; then
1.1.1.6 root 5906: ac_cv_lib_socket_connect=yes
5907: else
5908: echo "$as_me: failed program was:" >&5
5909: sed 's/^/| /' conftest.$ac_ext >&5
5910:
5911: ac_cv_lib_socket_connect=no
5912: fi
5913:
1.1.1.9 ! root 5914: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.1.1.6 root 5915: conftest$ac_exeext conftest.$ac_ext
5916: LIBS=$ac_check_lib_save_LIBS
5917: fi
5918: { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
5919: echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
5920: if test $ac_cv_lib_socket_connect = yes; then
5921: X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
5922: fi
5923:
5924: fi
5925:
5926: # Guillermo Gomez says -lposix is necessary on A/UX.
5927: { echo "$as_me:$LINENO: checking for remove" >&5
5928: echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
5929: if test "${ac_cv_func_remove+set}" = set; then
5930: echo $ECHO_N "(cached) $ECHO_C" >&6
5931: else
5932: cat >conftest.$ac_ext <<_ACEOF
5933: /* confdefs.h. */
5934: _ACEOF
5935: cat confdefs.h >>conftest.$ac_ext
5936: cat >>conftest.$ac_ext <<_ACEOF
5937: /* end confdefs.h. */
5938: /* Define remove to an innocuous variant, in case <limits.h> declares remove.
5939: For example, HP-UX 11i <limits.h> declares gettimeofday. */
5940: #define remove innocuous_remove
5941:
5942: /* System header to define __stub macros and hopefully few prototypes,
5943: which can conflict with char remove (); below.
5944: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5945: <limits.h> exists even on freestanding compilers. */
5946:
5947: #ifdef __STDC__
5948: # include <limits.h>
5949: #else
5950: # include <assert.h>
5951: #endif
5952:
5953: #undef remove
5954:
5955: /* Override any GCC internal prototype to avoid an error.
5956: Use char because int might match the return type of a GCC
5957: builtin and then its argument prototype would still apply. */
5958: #ifdef __cplusplus
5959: extern "C"
5960: #endif
5961: char remove ();
5962: /* The GNU C library defines this for functions which it implements
5963: to always fail with ENOSYS. Some functions are actually named
5964: something starting with __ and the normal name is an alias. */
5965: #if defined __stub_remove || defined __stub___remove
5966: choke me
5967: #endif
5968:
5969: int
5970: main ()
5971: {
5972: return remove ();
5973: ;
5974: return 0;
5975: }
5976: _ACEOF
5977: rm -f conftest.$ac_objext conftest$ac_exeext
5978: if { (ac_try="$ac_link"
5979: case "(($ac_try" in
5980: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5981: *) ac_try_echo=$ac_try;;
5982: esac
5983: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5984: (eval "$ac_link") 2>conftest.er1
5985: ac_status=$?
5986: grep -v '^ *+' conftest.er1 >conftest.err
5987: rm -f conftest.er1
5988: cat conftest.err >&5
5989: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.9 ! root 5990: (exit $ac_status); } && {
! 5991: test -z "$ac_c_werror_flag" ||
! 5992: test ! -s conftest.err
! 5993: } && test -s conftest$ac_exeext &&
! 5994: $as_test_x conftest$ac_exeext; then
1.1.1.6 root 5995: ac_cv_func_remove=yes
5996: else
5997: echo "$as_me: failed program was:" >&5
5998: sed 's/^/| /' conftest.$ac_ext >&5
5999:
6000: ac_cv_func_remove=no
6001: fi
6002:
1.1.1.9 ! root 6003: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.1.1.6 root 6004: conftest$ac_exeext conftest.$ac_ext
6005: fi
6006: { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
6007: echo "${ECHO_T}$ac_cv_func_remove" >&6; }
6008:
6009: if test $ac_cv_func_remove = no; then
6010: { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
6011: echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
6012: if test "${ac_cv_lib_posix_remove+set}" = set; then
6013: echo $ECHO_N "(cached) $ECHO_C" >&6
6014: else
6015: ac_check_lib_save_LIBS=$LIBS
6016: LIBS="-lposix $LIBS"
6017: cat >conftest.$ac_ext <<_ACEOF
6018: /* confdefs.h. */
6019: _ACEOF
6020: cat confdefs.h >>conftest.$ac_ext
6021: cat >>conftest.$ac_ext <<_ACEOF
6022: /* end confdefs.h. */
6023:
6024: /* Override any GCC internal prototype to avoid an error.
6025: Use char because int might match the return type of a GCC
6026: builtin and then its argument prototype would still apply. */
6027: #ifdef __cplusplus
6028: extern "C"
6029: #endif
6030: char remove ();
6031: int
6032: main ()
6033: {
6034: return remove ();
6035: ;
6036: return 0;
6037: }
6038: _ACEOF
6039: rm -f conftest.$ac_objext conftest$ac_exeext
6040: if { (ac_try="$ac_link"
6041: case "(($ac_try" in
6042: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6043: *) ac_try_echo=$ac_try;;
6044: esac
6045: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6046: (eval "$ac_link") 2>conftest.er1
6047: ac_status=$?
6048: grep -v '^ *+' conftest.er1 >conftest.err
6049: rm -f conftest.er1
6050: cat conftest.err >&5
6051: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.9 ! root 6052: (exit $ac_status); } && {
! 6053: test -z "$ac_c_werror_flag" ||
! 6054: test ! -s conftest.err
! 6055: } && test -s conftest$ac_exeext &&
! 6056: $as_test_x conftest$ac_exeext; then
1.1.1.6 root 6057: ac_cv_lib_posix_remove=yes
6058: else
6059: echo "$as_me: failed program was:" >&5
6060: sed 's/^/| /' conftest.$ac_ext >&5
6061:
6062: ac_cv_lib_posix_remove=no
6063: fi
6064:
1.1.1.9 ! root 6065: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.1.1.6 root 6066: conftest$ac_exeext conftest.$ac_ext
6067: LIBS=$ac_check_lib_save_LIBS
6068: fi
6069: { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
6070: echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
6071: if test $ac_cv_lib_posix_remove = yes; then
6072: X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
6073: fi
6074:
6075: fi
6076:
6077: # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
6078: { echo "$as_me:$LINENO: checking for shmat" >&5
6079: echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
6080: if test "${ac_cv_func_shmat+set}" = set; then
6081: echo $ECHO_N "(cached) $ECHO_C" >&6
6082: else
6083: cat >conftest.$ac_ext <<_ACEOF
6084: /* confdefs.h. */
6085: _ACEOF
6086: cat confdefs.h >>conftest.$ac_ext
6087: cat >>conftest.$ac_ext <<_ACEOF
6088: /* end confdefs.h. */
6089: /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
6090: For example, HP-UX 11i <limits.h> declares gettimeofday. */
6091: #define shmat innocuous_shmat
6092:
6093: /* System header to define __stub macros and hopefully few prototypes,
6094: which can conflict with char shmat (); below.
6095: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6096: <limits.h> exists even on freestanding compilers. */
6097:
6098: #ifdef __STDC__
6099: # include <limits.h>
6100: #else
6101: # include <assert.h>
6102: #endif
6103:
6104: #undef shmat
6105:
6106: /* Override any GCC internal prototype to avoid an error.
6107: Use char because int might match the return type of a GCC
6108: builtin and then its argument prototype would still apply. */
6109: #ifdef __cplusplus
6110: extern "C"
6111: #endif
6112: char shmat ();
6113: /* The GNU C library defines this for functions which it implements
6114: to always fail with ENOSYS. Some functions are actually named
6115: something starting with __ and the normal name is an alias. */
6116: #if defined __stub_shmat || defined __stub___shmat
6117: choke me
6118: #endif
6119:
6120: int
6121: main ()
6122: {
6123: return shmat ();
6124: ;
6125: return 0;
6126: }
6127: _ACEOF
6128: rm -f conftest.$ac_objext conftest$ac_exeext
6129: if { (ac_try="$ac_link"
6130: case "(($ac_try" in
6131: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6132: *) ac_try_echo=$ac_try;;
6133: esac
6134: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6135: (eval "$ac_link") 2>conftest.er1
6136: ac_status=$?
6137: grep -v '^ *+' conftest.er1 >conftest.err
6138: rm -f conftest.er1
6139: cat conftest.err >&5
6140: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.9 ! root 6141: (exit $ac_status); } && {
! 6142: test -z "$ac_c_werror_flag" ||
! 6143: test ! -s conftest.err
! 6144: } && test -s conftest$ac_exeext &&
! 6145: $as_test_x conftest$ac_exeext; then
1.1.1.6 root 6146: ac_cv_func_shmat=yes
6147: else
6148: echo "$as_me: failed program was:" >&5
6149: sed 's/^/| /' conftest.$ac_ext >&5
6150:
6151: ac_cv_func_shmat=no
6152: fi
6153:
1.1.1.9 ! root 6154: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.1.1.6 root 6155: conftest$ac_exeext conftest.$ac_ext
6156: fi
6157: { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
6158: echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
6159:
6160: if test $ac_cv_func_shmat = no; then
6161: { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
6162: echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
6163: if test "${ac_cv_lib_ipc_shmat+set}" = set; then
6164: echo $ECHO_N "(cached) $ECHO_C" >&6
6165: else
6166: ac_check_lib_save_LIBS=$LIBS
6167: LIBS="-lipc $LIBS"
6168: cat >conftest.$ac_ext <<_ACEOF
6169: /* confdefs.h. */
6170: _ACEOF
6171: cat confdefs.h >>conftest.$ac_ext
6172: cat >>conftest.$ac_ext <<_ACEOF
6173: /* end confdefs.h. */
6174:
6175: /* Override any GCC internal prototype to avoid an error.
6176: Use char because int might match the return type of a GCC
6177: builtin and then its argument prototype would still apply. */
6178: #ifdef __cplusplus
6179: extern "C"
6180: #endif
6181: char shmat ();
6182: int
6183: main ()
6184: {
6185: return shmat ();
6186: ;
6187: return 0;
6188: }
6189: _ACEOF
6190: rm -f conftest.$ac_objext conftest$ac_exeext
6191: if { (ac_try="$ac_link"
6192: case "(($ac_try" in
6193: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6194: *) ac_try_echo=$ac_try;;
6195: esac
6196: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6197: (eval "$ac_link") 2>conftest.er1
6198: ac_status=$?
6199: grep -v '^ *+' conftest.er1 >conftest.err
6200: rm -f conftest.er1
6201: cat conftest.err >&5
6202: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.9 ! root 6203: (exit $ac_status); } && {
! 6204: test -z "$ac_c_werror_flag" ||
! 6205: test ! -s conftest.err
! 6206: } && test -s conftest$ac_exeext &&
! 6207: $as_test_x conftest$ac_exeext; then
1.1.1.6 root 6208: ac_cv_lib_ipc_shmat=yes
6209: else
6210: echo "$as_me: failed program was:" >&5
6211: sed 's/^/| /' conftest.$ac_ext >&5
6212:
6213: ac_cv_lib_ipc_shmat=no
6214: fi
6215:
1.1.1.9 ! root 6216: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.1.1.6 root 6217: conftest$ac_exeext conftest.$ac_ext
6218: LIBS=$ac_check_lib_save_LIBS
6219: fi
6220: { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
6221: echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
6222: if test $ac_cv_lib_ipc_shmat = yes; then
6223: X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
6224: fi
6225:
6226: fi
6227: fi
6228:
6229: # Check for libraries that X11R6 Xt/Xaw programs need.
6230: ac_save_LDFLAGS=$LDFLAGS
6231: test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
6232: # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
6233: # check for ICE first), but we must link in the order -lSM -lICE or
6234: # we get undefined symbols. So assume we have SM if we have ICE.
6235: # These have to be linked with before -lX11, unlike the other
6236: # libraries we check for below, so use a different variable.
6237: # John Interrante, Karl Berry
6238: { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
6239: echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
6240: if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
6241: echo $ECHO_N "(cached) $ECHO_C" >&6
6242: else
6243: ac_check_lib_save_LIBS=$LIBS
6244: LIBS="-lICE $X_EXTRA_LIBS $LIBS"
6245: cat >conftest.$ac_ext <<_ACEOF
6246: /* confdefs.h. */
6247: _ACEOF
6248: cat confdefs.h >>conftest.$ac_ext
6249: cat >>conftest.$ac_ext <<_ACEOF
6250: /* end confdefs.h. */
6251:
6252: /* Override any GCC internal prototype to avoid an error.
6253: Use char because int might match the return type of a GCC
6254: builtin and then its argument prototype would still apply. */
6255: #ifdef __cplusplus
6256: extern "C"
6257: #endif
6258: char IceConnectionNumber ();
6259: int
6260: main ()
6261: {
6262: return IceConnectionNumber ();
6263: ;
6264: return 0;
6265: }
6266: _ACEOF
6267: rm -f conftest.$ac_objext conftest$ac_exeext
6268: if { (ac_try="$ac_link"
6269: case "(($ac_try" in
6270: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6271: *) ac_try_echo=$ac_try;;
6272: esac
6273: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6274: (eval "$ac_link") 2>conftest.er1
6275: ac_status=$?
6276: grep -v '^ *+' conftest.er1 >conftest.err
6277: rm -f conftest.er1
6278: cat conftest.err >&5
6279: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.9 ! root 6280: (exit $ac_status); } && {
! 6281: test -z "$ac_c_werror_flag" ||
! 6282: test ! -s conftest.err
! 6283: } && test -s conftest$ac_exeext &&
! 6284: $as_test_x conftest$ac_exeext; then
1.1.1.6 root 6285: ac_cv_lib_ICE_IceConnectionNumber=yes
6286: else
6287: echo "$as_me: failed program was:" >&5
6288: sed 's/^/| /' conftest.$ac_ext >&5
6289:
6290: ac_cv_lib_ICE_IceConnectionNumber=no
6291: fi
6292:
1.1.1.9 ! root 6293: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.1.1.6 root 6294: conftest$ac_exeext conftest.$ac_ext
6295: LIBS=$ac_check_lib_save_LIBS
6296: fi
6297: { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
6298: echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
6299: if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
6300: X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
6301: fi
6302:
6303: LDFLAGS=$ac_save_LDFLAGS
6304:
6305: fi
6306:
6307: fi
6308: if test "x$with_x" = xno; then
6309: no_x=yes
6310: fi
6311: if test "x${no_x}" = "xyes"; then
6312: { echo "$as_me:$LINENO: No X11, disabled Hatari embedding support" >&5
6313: echo "$as_me: No X11, disabled Hatari embedding support" >&6;}
6314: else
6315:
6316: cat >>confdefs.h <<\_ACEOF
6317: #define HAVE_X11 1
6318: _ACEOF
6319:
6320: fi
6321:
6322: CPPFLAGS="${CPPFLAGS} ${INCL}"
6323:
6324:
6325:
6326: { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6327: echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6328: if test "${ac_cv_header_stdc+set}" = set; then
6329: echo $ECHO_N "(cached) $ECHO_C" >&6
6330: else
6331: cat >conftest.$ac_ext <<_ACEOF
6332: /* confdefs.h. */
6333: _ACEOF
6334: cat confdefs.h >>conftest.$ac_ext
6335: cat >>conftest.$ac_ext <<_ACEOF
6336: /* end confdefs.h. */
6337: #include <stdlib.h>
6338: #include <stdarg.h>
6339: #include <string.h>
6340: #include <float.h>
6341:
6342: int
6343: main ()
6344: {
6345:
6346: ;
6347: return 0;
6348: }
6349: _ACEOF
6350: rm -f conftest.$ac_objext
6351: if { (ac_try="$ac_compile"
6352: case "(($ac_try" in
6353: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6354: *) ac_try_echo=$ac_try;;
6355: esac
6356: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6357: (eval "$ac_compile") 2>conftest.er1
6358: ac_status=$?
6359: grep -v '^ *+' conftest.er1 >conftest.err
6360: rm -f conftest.er1
6361: cat conftest.err >&5
6362: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.9 ! root 6363: (exit $ac_status); } && {
! 6364: test -z "$ac_c_werror_flag" ||
! 6365: test ! -s conftest.err
! 6366: } && test -s conftest.$ac_objext; then
1.1.1.6 root 6367: ac_cv_header_stdc=yes
6368: else
6369: echo "$as_me: failed program was:" >&5
6370: sed 's/^/| /' conftest.$ac_ext >&5
6371:
6372: ac_cv_header_stdc=no
6373: fi
6374:
6375: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6376:
6377: if test $ac_cv_header_stdc = yes; then
6378: # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6379: cat >conftest.$ac_ext <<_ACEOF
6380: /* confdefs.h. */
6381: _ACEOF
6382: cat confdefs.h >>conftest.$ac_ext
6383: cat >>conftest.$ac_ext <<_ACEOF
6384: /* end confdefs.h. */
6385: #include <string.h>
6386:
6387: _ACEOF
6388: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6389: $EGREP "memchr" >/dev/null 2>&1; then
6390: :
6391: else
6392: ac_cv_header_stdc=no
6393: fi
6394: rm -f conftest*
6395:
6396: fi
6397:
6398: if test $ac_cv_header_stdc = yes; then
6399: # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6400: cat >conftest.$ac_ext <<_ACEOF
6401: /* confdefs.h. */
6402: _ACEOF
6403: cat confdefs.h >>conftest.$ac_ext
6404: cat >>conftest.$ac_ext <<_ACEOF
6405: /* end confdefs.h. */
6406: #include <stdlib.h>
6407:
6408: _ACEOF
6409: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6410: $EGREP "free" >/dev/null 2>&1; then
6411: :
6412: else
6413: ac_cv_header_stdc=no
6414: fi
6415: rm -f conftest*
6416:
6417: fi
6418:
6419: if test $ac_cv_header_stdc = yes; then
6420: # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6421: if test "$cross_compiling" = yes; then
6422: :
6423: else
6424: cat >conftest.$ac_ext <<_ACEOF
6425: /* confdefs.h. */
6426: _ACEOF
6427: cat confdefs.h >>conftest.$ac_ext
6428: cat >>conftest.$ac_ext <<_ACEOF
1.1.1.3 root 6429: /* end confdefs.h. */
1.1.1.6 root 6430: #include <ctype.h>
6431: #include <stdlib.h>
6432: #if ((' ' & 0x0FF) == 0x020)
6433: # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6434: # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6435: #else
6436: # define ISLOWER(c) \
6437: (('a' <= (c) && (c) <= 'i') \
6438: || ('j' <= (c) && (c) <= 'r') \
6439: || ('s' <= (c) && (c) <= 'z'))
6440: # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6441: #endif
1.1 root 6442:
1.1.1.6 root 6443: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1.1 root 6444: int
6445: main ()
6446: {
1.1.1.6 root 6447: int i;
6448: for (i = 0; i < 256; i++)
6449: if (XOR (islower (i), ISLOWER (i))
6450: || toupper (i) != TOUPPER (i))
6451: return 2;
1.1 root 6452: return 0;
6453: }
6454: _ACEOF
1.1.1.6 root 6455: rm -f conftest$ac_exeext
6456: if { (ac_try="$ac_link"
6457: case "(($ac_try" in
6458: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6459: *) ac_try_echo=$ac_try;;
6460: esac
6461: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6462: (eval "$ac_link") 2>&5
1.1.1.3 root 6463: ac_status=$?
6464: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.6 root 6465: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6466: { (case "(($ac_try" in
6467: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6468: *) ac_try_echo=$ac_try;;
6469: esac
6470: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6471: (eval "$ac_try") 2>&5
1.1 root 6472: ac_status=$?
6473: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6474: (exit $ac_status); }; }; then
1.1.1.6 root 6475: :
1.1 root 6476: else
1.1.1.6 root 6477: echo "$as_me: program exited with status $ac_status" >&5
6478: echo "$as_me: failed program was:" >&5
1.1.1.3 root 6479: sed 's/^/| /' conftest.$ac_ext >&5
6480:
1.1.1.6 root 6481: ( exit $ac_status )
6482: ac_cv_header_stdc=no
6483: fi
6484: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6485: fi
6486:
6487:
1.1 root 6488: fi
6489: fi
1.1.1.6 root 6490: { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6491: echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6492: if test $ac_cv_header_stdc = yes; then
6493:
6494: cat >>confdefs.h <<\_ACEOF
6495: #define STDC_HEADERS 1
1.1 root 6496: _ACEOF
6497:
6498: fi
6499:
1.1.1.6 root 6500:
6501:
6502:
6503:
6504:
6505: ac_header_dirent=no
6506: for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6507: as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6508: { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
6509: echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
6510: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1.1 root 6511: echo $ECHO_N "(cached) $ECHO_C" >&6
6512: else
1.1.1.6 root 6513: cat >conftest.$ac_ext <<_ACEOF
1.1.1.3 root 6514: /* confdefs.h. */
6515: _ACEOF
6516: cat confdefs.h >>conftest.$ac_ext
6517: cat >>conftest.$ac_ext <<_ACEOF
6518: /* end confdefs.h. */
1.1.1.6 root 6519: #include <sys/types.h>
6520: #include <$ac_hdr>
1.1 root 6521:
6522: int
6523: main ()
6524: {
1.1.1.6 root 6525: if ((DIR *) 0)
6526: return 0;
1.1 root 6527: ;
6528: return 0;
6529: }
6530: _ACEOF
1.1.1.6 root 6531: rm -f conftest.$ac_objext
6532: if { (ac_try="$ac_compile"
6533: case "(($ac_try" in
6534: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6535: *) ac_try_echo=$ac_try;;
6536: esac
6537: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6538: (eval "$ac_compile") 2>conftest.er1
1.1 root 6539: ac_status=$?
1.1.1.3 root 6540: grep -v '^ *+' conftest.er1 >conftest.err
6541: rm -f conftest.er1
6542: cat conftest.err >&5
1.1 root 6543: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.9 ! root 6544: (exit $ac_status); } && {
! 6545: test -z "$ac_c_werror_flag" ||
! 6546: test ! -s conftest.err
! 6547: } && test -s conftest.$ac_objext; then
1.1.1.6 root 6548: eval "$as_ac_Header=yes"
1.1 root 6549: else
6550: echo "$as_me: failed program was:" >&5
1.1.1.3 root 6551: sed 's/^/| /' conftest.$ac_ext >&5
6552:
1.1.1.6 root 6553: eval "$as_ac_Header=no"
1.1 root 6554: fi
1.1.1.6 root 6555:
6556: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6557: fi
6558: ac_res=`eval echo '${'$as_ac_Header'}'`
6559: { echo "$as_me:$LINENO: result: $ac_res" >&5
6560: echo "${ECHO_T}$ac_res" >&6; }
6561: if test `eval echo '${'$as_ac_Header'}'` = yes; then
6562: cat >>confdefs.h <<_ACEOF
6563: #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6564: _ACEOF
6565:
6566: ac_header_dirent=$ac_hdr; break
6567: fi
6568:
6569: done
6570: # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6571: if test $ac_header_dirent = dirent.h; then
6572: { echo "$as_me:$LINENO: checking for library containing opendir" >&5
6573: echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
6574: if test "${ac_cv_search_opendir+set}" = set; then
6575: echo $ECHO_N "(cached) $ECHO_C" >&6
6576: else
6577: ac_func_search_save_LIBS=$LIBS
6578: cat >conftest.$ac_ext <<_ACEOF
1.1.1.3 root 6579: /* confdefs.h. */
6580: _ACEOF
6581: cat confdefs.h >>conftest.$ac_ext
6582: cat >>conftest.$ac_ext <<_ACEOF
6583: /* end confdefs.h. */
1.1 root 6584:
1.1.1.6 root 6585: /* Override any GCC internal prototype to avoid an error.
6586: Use char because int might match the return type of a GCC
6587: builtin and then its argument prototype would still apply. */
1.1 root 6588: #ifdef __cplusplus
6589: extern "C"
6590: #endif
6591: char opendir ();
6592: int
6593: main ()
6594: {
1.1.1.6 root 6595: return opendir ();
1.1 root 6596: ;
6597: return 0;
6598: }
6599: _ACEOF
1.1.1.6 root 6600: for ac_lib in '' dir; do
6601: if test -z "$ac_lib"; then
6602: ac_res="none required"
6603: else
6604: ac_res=-l$ac_lib
6605: LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6606: fi
6607: rm -f conftest.$ac_objext conftest$ac_exeext
6608: if { (ac_try="$ac_link"
6609: case "(($ac_try" in
6610: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6611: *) ac_try_echo=$ac_try;;
6612: esac
6613: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6614: (eval "$ac_link") 2>conftest.er1
1.1 root 6615: ac_status=$?
1.1.1.3 root 6616: grep -v '^ *+' conftest.er1 >conftest.err
6617: rm -f conftest.er1
6618: cat conftest.err >&5
1.1 root 6619: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.9 ! root 6620: (exit $ac_status); } && {
! 6621: test -z "$ac_c_werror_flag" ||
! 6622: test ! -s conftest.err
! 6623: } && test -s conftest$ac_exeext &&
! 6624: $as_test_x conftest$ac_exeext; then
1.1.1.6 root 6625: ac_cv_search_opendir=$ac_res
1.1 root 6626: else
6627: echo "$as_me: failed program was:" >&5
1.1.1.3 root 6628: sed 's/^/| /' conftest.$ac_ext >&5
6629:
1.1.1.6 root 6630:
1.1 root 6631: fi
1.1.1.6 root 6632:
1.1.1.9 ! root 6633: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.1.1.6 root 6634: conftest$ac_exeext
6635: if test "${ac_cv_search_opendir+set}" = set; then
6636: break
6637: fi
6638: done
6639: if test "${ac_cv_search_opendir+set}" = set; then
6640: :
6641: else
6642: ac_cv_search_opendir=no
1.1 root 6643: fi
1.1.1.6 root 6644: rm conftest.$ac_ext
1.1 root 6645: LIBS=$ac_func_search_save_LIBS
6646: fi
1.1.1.6 root 6647: { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6648: echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
6649: ac_res=$ac_cv_search_opendir
6650: if test "$ac_res" != no; then
6651: test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
1.1 root 6652:
6653: fi
6654:
6655: else
1.1.1.6 root 6656: { echo "$as_me:$LINENO: checking for library containing opendir" >&5
6657: echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
1.1 root 6658: if test "${ac_cv_search_opendir+set}" = set; then
6659: echo $ECHO_N "(cached) $ECHO_C" >&6
6660: else
6661: ac_func_search_save_LIBS=$LIBS
6662: cat >conftest.$ac_ext <<_ACEOF
1.1.1.3 root 6663: /* confdefs.h. */
6664: _ACEOF
6665: cat confdefs.h >>conftest.$ac_ext
6666: cat >>conftest.$ac_ext <<_ACEOF
6667: /* end confdefs.h. */
1.1 root 6668:
1.1.1.6 root 6669: /* Override any GCC internal prototype to avoid an error.
6670: Use char because int might match the return type of a GCC
6671: builtin and then its argument prototype would still apply. */
1.1 root 6672: #ifdef __cplusplus
6673: extern "C"
6674: #endif
6675: char opendir ();
6676: int
6677: main ()
6678: {
1.1.1.6 root 6679: return opendir ();
1.1 root 6680: ;
6681: return 0;
6682: }
6683: _ACEOF
1.1.1.6 root 6684: for ac_lib in '' x; do
6685: if test -z "$ac_lib"; then
6686: ac_res="none required"
6687: else
6688: ac_res=-l$ac_lib
6689: LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6690: fi
6691: rm -f conftest.$ac_objext conftest$ac_exeext
6692: if { (ac_try="$ac_link"
6693: case "(($ac_try" in
6694: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6695: *) ac_try_echo=$ac_try;;
6696: esac
6697: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6698: (eval "$ac_link") 2>conftest.er1
1.1 root 6699: ac_status=$?
1.1.1.3 root 6700: grep -v '^ *+' conftest.er1 >conftest.err
6701: rm -f conftest.er1
6702: cat conftest.err >&5
1.1 root 6703: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.9 ! root 6704: (exit $ac_status); } && {
! 6705: test -z "$ac_c_werror_flag" ||
! 6706: test ! -s conftest.err
! 6707: } && test -s conftest$ac_exeext &&
! 6708: $as_test_x conftest$ac_exeext; then
1.1.1.6 root 6709: ac_cv_search_opendir=$ac_res
1.1 root 6710: else
6711: echo "$as_me: failed program was:" >&5
1.1.1.3 root 6712: sed 's/^/| /' conftest.$ac_ext >&5
6713:
1.1 root 6714:
1.1.1.6 root 6715: fi
1.1.1.3 root 6716:
1.1.1.9 ! root 6717: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.1.1.6 root 6718: conftest$ac_exeext
6719: if test "${ac_cv_search_opendir+set}" = set; then
6720: break
1.1 root 6721: fi
1.1.1.6 root 6722: done
6723: if test "${ac_cv_search_opendir+set}" = set; then
6724: :
6725: else
6726: ac_cv_search_opendir=no
1.1 root 6727: fi
1.1.1.6 root 6728: rm conftest.$ac_ext
1.1 root 6729: LIBS=$ac_func_search_save_LIBS
6730: fi
1.1.1.6 root 6731: { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6732: echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
6733: ac_res=$ac_cv_search_opendir
6734: if test "$ac_res" != no; then
6735: test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
1.1 root 6736:
6737: fi
6738:
6739: fi
6740:
6741:
6742:
6743:
1.1.1.6 root 6744: for ac_header in unistd.h zlib.h
1.1 root 6745: do
6746: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
1.1.1.6 root 6747: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6748: { echo "$as_me:$LINENO: checking for $ac_header" >&5
6749: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6750: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1.1 root 6751: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1.1.6 root 6752: fi
6753: ac_res=`eval echo '${'$as_ac_Header'}'`
6754: { echo "$as_me:$LINENO: result: $ac_res" >&5
6755: echo "${ECHO_T}$ac_res" >&6; }
1.1 root 6756: else
1.1.1.6 root 6757: # Is the header compilable?
6758: { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6759: echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6760: cat >conftest.$ac_ext <<_ACEOF
1.1.1.3 root 6761: /* confdefs.h. */
6762: _ACEOF
6763: cat confdefs.h >>conftest.$ac_ext
6764: cat >>conftest.$ac_ext <<_ACEOF
6765: /* end confdefs.h. */
1.1 root 6766: $ac_includes_default
6767: #include <$ac_header>
6768: _ACEOF
6769: rm -f conftest.$ac_objext
1.1.1.6 root 6770: if { (ac_try="$ac_compile"
6771: case "(($ac_try" in
6772: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6773: *) ac_try_echo=$ac_try;;
6774: esac
6775: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.1.1.8 root 6776: (eval "$ac_compile") 2>conftest.er1
6777: ac_status=$?
6778: grep -v '^ *+' conftest.er1 >conftest.err
6779: rm -f conftest.er1
6780: cat conftest.err >&5
6781: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.9 ! root 6782: (exit $ac_status); } && {
! 6783: test -z "$ac_c_werror_flag" ||
! 6784: test ! -s conftest.err
! 6785: } && test -s conftest.$ac_objext; then
1.1.1.6 root 6786: ac_header_compiler=yes
6787: else
6788: echo "$as_me: failed program was:" >&5
6789: sed 's/^/| /' conftest.$ac_ext >&5
6790:
6791: ac_header_compiler=no
6792: fi
6793:
6794: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6795: { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6796: echo "${ECHO_T}$ac_header_compiler" >&6; }
6797:
6798: # Is the header present?
6799: { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6800: echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6801: cat >conftest.$ac_ext <<_ACEOF
6802: /* confdefs.h. */
6803: _ACEOF
6804: cat confdefs.h >>conftest.$ac_ext
6805: cat >>conftest.$ac_ext <<_ACEOF
6806: /* end confdefs.h. */
6807: #include <$ac_header>
6808: _ACEOF
6809: if { (ac_try="$ac_cpp conftest.$ac_ext"
6810: case "(($ac_try" in
6811: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6812: *) ac_try_echo=$ac_try;;
6813: esac
6814: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6815: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
1.1 root 6816: ac_status=$?
1.1.1.6 root 6817: grep -v '^ *+' conftest.er1 >conftest.err
6818: rm -f conftest.er1
6819: cat conftest.err >&5
1.1 root 6820: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.9 ! root 6821: (exit $ac_status); } >/dev/null && {
! 6822: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
! 6823: test ! -s conftest.err
! 6824: }; then
1.1.1.6 root 6825: ac_header_preproc=yes
1.1 root 6826: else
6827: echo "$as_me: failed program was:" >&5
1.1.1.3 root 6828: sed 's/^/| /' conftest.$ac_ext >&5
6829:
1.1.1.6 root 6830: ac_header_preproc=no
6831: fi
6832:
6833: rm -f conftest.err conftest.$ac_ext
6834: { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6835: echo "${ECHO_T}$ac_header_preproc" >&6; }
6836:
6837: # So? What about this header?
6838: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6839: yes:no: )
6840: { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6841: echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6842: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6843: echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6844: ac_header_preproc=yes
6845: ;;
6846: no:yes:* )
6847: { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6848: echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6849: { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6850: echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6851: { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6852: echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6853: { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6854: echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6855: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6856: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6857: { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6858: echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6859:
6860: ;;
6861: esac
6862: { echo "$as_me:$LINENO: checking for $ac_header" >&5
6863: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6864: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6865: echo $ECHO_N "(cached) $ECHO_C" >&6
6866: else
6867: eval "$as_ac_Header=\$ac_header_preproc"
1.1 root 6868: fi
1.1.1.6 root 6869: ac_res=`eval echo '${'$as_ac_Header'}'`
6870: { echo "$as_me:$LINENO: result: $ac_res" >&5
6871: echo "${ECHO_T}$ac_res" >&6; }
6872:
1.1 root 6873: fi
6874: if test `eval echo '${'$as_ac_Header'}'` = yes; then
6875: cat >>confdefs.h <<_ACEOF
6876: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6877: _ACEOF
6878:
1.1.1.6 root 6879: else
6880: { { echo "$as_me:$LINENO: error: header file not found!" >&5
6881: echo "$as_me: error: header file not found!" >&2;}
6882: { (exit 1); exit 1; }; }
1.1 root 6883: fi
6884:
6885: done
6886:
6887:
6888:
1.1.1.9 ! root 6889:
! 6890: for ac_header in termios.h glob.h malloc.h
1.1 root 6891: do
6892: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
1.1.1.6 root 6893: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6894: { echo "$as_me:$LINENO: checking for $ac_header" >&5
6895: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6896: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1.1 root 6897: echo $ECHO_N "(cached) $ECHO_C" >&6
6898: fi
1.1.1.6 root 6899: ac_res=`eval echo '${'$as_ac_Header'}'`
6900: { echo "$as_me:$LINENO: result: $ac_res" >&5
6901: echo "${ECHO_T}$ac_res" >&6; }
1.1 root 6902: else
6903: # Is the header compilable?
1.1.1.6 root 6904: { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6905: echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
1.1 root 6906: cat >conftest.$ac_ext <<_ACEOF
1.1.1.3 root 6907: /* confdefs.h. */
6908: _ACEOF
6909: cat confdefs.h >>conftest.$ac_ext
6910: cat >>conftest.$ac_ext <<_ACEOF
6911: /* end confdefs.h. */
1.1 root 6912: $ac_includes_default
6913: #include <$ac_header>
6914: _ACEOF
6915: rm -f conftest.$ac_objext
1.1.1.6 root 6916: if { (ac_try="$ac_compile"
6917: case "(($ac_try" in
6918: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6919: *) ac_try_echo=$ac_try;;
6920: esac
6921: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6922: (eval "$ac_compile") 2>conftest.er1
1.1 root 6923: ac_status=$?
1.1.1.3 root 6924: grep -v '^ *+' conftest.er1 >conftest.err
6925: rm -f conftest.er1
6926: cat conftest.err >&5
1.1 root 6927: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.9 ! root 6928: (exit $ac_status); } && {
! 6929: test -z "$ac_c_werror_flag" ||
! 6930: test ! -s conftest.err
! 6931: } && test -s conftest.$ac_objext; then
1.1 root 6932: ac_header_compiler=yes
6933: else
6934: echo "$as_me: failed program was:" >&5
1.1.1.3 root 6935: sed 's/^/| /' conftest.$ac_ext >&5
6936:
1.1.1.6 root 6937: ac_header_compiler=no
1.1 root 6938: fi
1.1.1.6 root 6939:
6940: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6941: { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6942: echo "${ECHO_T}$ac_header_compiler" >&6; }
1.1 root 6943:
6944: # Is the header present?
1.1.1.6 root 6945: { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6946: echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
1.1 root 6947: cat >conftest.$ac_ext <<_ACEOF
1.1.1.3 root 6948: /* confdefs.h. */
6949: _ACEOF
6950: cat confdefs.h >>conftest.$ac_ext
6951: cat >>conftest.$ac_ext <<_ACEOF
6952: /* end confdefs.h. */
1.1 root 6953: #include <$ac_header>
6954: _ACEOF
1.1.1.6 root 6955: if { (ac_try="$ac_cpp conftest.$ac_ext"
6956: case "(($ac_try" in
6957: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6958: *) ac_try_echo=$ac_try;;
6959: esac
6960: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6961: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
1.1 root 6962: ac_status=$?
1.1.1.3 root 6963: grep -v '^ *+' conftest.er1 >conftest.err
1.1 root 6964: rm -f conftest.er1
6965: cat conftest.err >&5
6966: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.9 ! root 6967: (exit $ac_status); } >/dev/null && {
! 6968: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
! 6969: test ! -s conftest.err
! 6970: }; then
1.1 root 6971: ac_header_preproc=yes
6972: else
6973: echo "$as_me: failed program was:" >&5
1.1.1.3 root 6974: sed 's/^/| /' conftest.$ac_ext >&5
6975:
1.1 root 6976: ac_header_preproc=no
6977: fi
1.1.1.6 root 6978:
1.1 root 6979: rm -f conftest.err conftest.$ac_ext
1.1.1.6 root 6980: { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6981: echo "${ECHO_T}$ac_header_preproc" >&6; }
1.1 root 6982:
6983: # So? What about this header?
1.1.1.3 root 6984: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6985: yes:no: )
1.1 root 6986: { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6987: echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
1.1.1.3 root 6988: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6989: echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6990: ac_header_preproc=yes
6991: ;;
6992: no:yes:* )
1.1 root 6993: { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6994: echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
1.1.1.3 root 6995: { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6996: echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6997: { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6998: echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6999: { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7000: echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
1.1 root 7001: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
1.1.1.3 root 7002: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7003: { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7004: echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
1.1.1.6 root 7005:
1.1.1.3 root 7006: ;;
1.1 root 7007: esac
1.1.1.6 root 7008: { echo "$as_me:$LINENO: checking for $ac_header" >&5
7009: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7010: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1.1 root 7011: echo $ECHO_N "(cached) $ECHO_C" >&6
7012: else
1.1.1.3 root 7013: eval "$as_ac_Header=\$ac_header_preproc"
1.1 root 7014: fi
1.1.1.6 root 7015: ac_res=`eval echo '${'$as_ac_Header'}'`
7016: { echo "$as_me:$LINENO: result: $ac_res" >&5
7017: echo "${ECHO_T}$ac_res" >&6; }
1.1 root 7018:
7019: fi
7020: if test `eval echo '${'$as_ac_Header'}'` = yes; then
7021: cat >>confdefs.h <<_ACEOF
7022: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7023: _ACEOF
7024:
7025: fi
7026:
7027: done
7028:
7029:
1.1.1.6 root 7030: { echo "$as_me:$LINENO: checking for mode_t" >&5
7031: echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
1.1 root 7032: if test "${ac_cv_type_mode_t+set}" = set; then
7033: echo $ECHO_N "(cached) $ECHO_C" >&6
7034: else
7035: cat >conftest.$ac_ext <<_ACEOF
1.1.1.3 root 7036: /* confdefs.h. */
7037: _ACEOF
7038: cat confdefs.h >>conftest.$ac_ext
7039: cat >>conftest.$ac_ext <<_ACEOF
7040: /* end confdefs.h. */
1.1 root 7041: $ac_includes_default
1.1.1.6 root 7042: typedef mode_t ac__type_new_;
1.1 root 7043: int
7044: main ()
7045: {
1.1.1.6 root 7046: if ((ac__type_new_ *) 0)
1.1 root 7047: return 0;
1.1.1.6 root 7048: if (sizeof (ac__type_new_))
1.1 root 7049: return 0;
7050: ;
1.1.1.9 ! root 7051: return 0;
! 7052: }
! 7053: _ACEOF
! 7054: rm -f conftest.$ac_objext
! 7055: if { (ac_try="$ac_compile"
! 7056: case "(($ac_try" in
1.1.1.8 root 7057: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7058: *) ac_try_echo=$ac_try;;
7059: esac
7060: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.1.1.9 ! root 7061: (eval "$ac_compile") 2>conftest.er1
1.1.1.8 root 7062: ac_status=$?
1.1.1.9 ! root 7063: grep -v '^ *+' conftest.er1 >conftest.err
! 7064: rm -f conftest.er1
! 7065: cat conftest.err >&5
1.1.1.8 root 7066: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.9 ! root 7067: (exit $ac_status); } && {
! 7068: test -z "$ac_c_werror_flag" ||
! 7069: test ! -s conftest.err
! 7070: } && test -s conftest.$ac_objext; then
1.1 root 7071: ac_cv_type_mode_t=yes
7072: else
7073: echo "$as_me: failed program was:" >&5
1.1.1.3 root 7074: sed 's/^/| /' conftest.$ac_ext >&5
7075:
1.1.1.6 root 7076: ac_cv_type_mode_t=no
1.1 root 7077: fi
1.1.1.6 root 7078:
7079: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1 root 7080: fi
1.1.1.6 root 7081: { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
7082: echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
1.1 root 7083: if test $ac_cv_type_mode_t = yes; then
7084: :
7085: else
7086:
7087: cat >>confdefs.h <<_ACEOF
7088: #define mode_t int
7089: _ACEOF
7090:
7091: fi
7092:
1.1.1.6 root 7093: { echo "$as_me:$LINENO: checking for size_t" >&5
7094: echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
1.1 root 7095: if test "${ac_cv_type_size_t+set}" = set; then
7096: echo $ECHO_N "(cached) $ECHO_C" >&6
7097: else
7098: cat >conftest.$ac_ext <<_ACEOF
1.1.1.3 root 7099: /* confdefs.h. */
7100: _ACEOF
7101: cat confdefs.h >>conftest.$ac_ext
7102: cat >>conftest.$ac_ext <<_ACEOF
7103: /* end confdefs.h. */
1.1 root 7104: $ac_includes_default
1.1.1.6 root 7105: typedef size_t ac__type_new_;
1.1 root 7106: int
7107: main ()
7108: {
1.1.1.6 root 7109: if ((ac__type_new_ *) 0)
1.1 root 7110: return 0;
1.1.1.6 root 7111: if (sizeof (ac__type_new_))
1.1 root 7112: return 0;
7113: ;
7114: return 0;
7115: }
7116: _ACEOF
7117: rm -f conftest.$ac_objext
1.1.1.6 root 7118: if { (ac_try="$ac_compile"
7119: case "(($ac_try" in
7120: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7121: *) ac_try_echo=$ac_try;;
7122: esac
7123: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7124: (eval "$ac_compile") 2>conftest.er1
1.1 root 7125: ac_status=$?
1.1.1.3 root 7126: grep -v '^ *+' conftest.er1 >conftest.err
7127: rm -f conftest.er1
7128: cat conftest.err >&5
1.1 root 7129: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.9 ! root 7130: (exit $ac_status); } && {
! 7131: test -z "$ac_c_werror_flag" ||
! 7132: test ! -s conftest.err
! 7133: } && test -s conftest.$ac_objext; then
1.1 root 7134: ac_cv_type_size_t=yes
7135: else
7136: echo "$as_me: failed program was:" >&5
1.1.1.3 root 7137: sed 's/^/| /' conftest.$ac_ext >&5
7138:
1.1.1.6 root 7139: ac_cv_type_size_t=no
1.1 root 7140: fi
1.1.1.6 root 7141:
7142: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1 root 7143: fi
1.1.1.6 root 7144: { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
7145: echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
1.1 root 7146: if test $ac_cv_type_size_t = yes; then
7147: :
7148: else
7149:
7150: cat >>confdefs.h <<_ACEOF
1.1.1.6 root 7151: #define size_t unsigned int
1.1 root 7152: _ACEOF
7153:
7154: fi
7155:
7156:
1.1.1.6 root 7157: { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
7158: echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
1.1 root 7159: if test "${ac_cv_struct_tm+set}" = set; then
7160: echo $ECHO_N "(cached) $ECHO_C" >&6
7161: else
7162: cat >conftest.$ac_ext <<_ACEOF
1.1.1.3 root 7163: /* confdefs.h. */
7164: _ACEOF
7165: cat confdefs.h >>conftest.$ac_ext
7166: cat >>conftest.$ac_ext <<_ACEOF
7167: /* end confdefs.h. */
1.1 root 7168: #include <sys/types.h>
7169: #include <time.h>
7170:
7171: int
7172: main ()
7173: {
1.1.1.9 ! root 7174: struct tm tm;
! 7175: int *p = &tm.tm_sec;
! 7176: return !p;
1.1 root 7177: ;
7178: return 0;
7179: }
7180: _ACEOF
7181: rm -f conftest.$ac_objext
1.1.1.6 root 7182: if { (ac_try="$ac_compile"
7183: case "(($ac_try" in
7184: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7185: *) ac_try_echo=$ac_try;;
7186: esac
7187: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7188: (eval "$ac_compile") 2>conftest.er1
1.1 root 7189: ac_status=$?
1.1.1.3 root 7190: grep -v '^ *+' conftest.er1 >conftest.err
7191: rm -f conftest.er1
7192: cat conftest.err >&5
1.1 root 7193: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.9 ! root 7194: (exit $ac_status); } && {
! 7195: test -z "$ac_c_werror_flag" ||
! 7196: test ! -s conftest.err
! 7197: } && test -s conftest.$ac_objext; then
1.1 root 7198: ac_cv_struct_tm=time.h
7199: else
7200: echo "$as_me: failed program was:" >&5
1.1.1.3 root 7201: sed 's/^/| /' conftest.$ac_ext >&5
7202:
1.1.1.6 root 7203: ac_cv_struct_tm=sys/time.h
1.1 root 7204: fi
1.1.1.6 root 7205:
7206: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1 root 7207: fi
1.1.1.6 root 7208: { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
7209: echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
1.1 root 7210: if test $ac_cv_struct_tm = sys/time.h; then
7211:
7212: cat >>confdefs.h <<\_ACEOF
7213: #define TM_IN_SYS_TIME 1
7214: _ACEOF
7215:
7216: fi
7217:
7218:
7219:
1.1.1.6 root 7220: { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7221: echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
1.1 root 7222: if test "${ac_cv_c_const+set}" = set; then
7223: echo $ECHO_N "(cached) $ECHO_C" >&6
7224: else
7225: cat >conftest.$ac_ext <<_ACEOF
1.1.1.3 root 7226: /* confdefs.h. */
7227: _ACEOF
7228: cat confdefs.h >>conftest.$ac_ext
7229: cat >>conftest.$ac_ext <<_ACEOF
7230: /* end confdefs.h. */
1.1 root 7231:
7232: int
7233: main ()
7234: {
7235: /* FIXME: Include the comments suggested by Paul. */
7236: #ifndef __cplusplus
7237: /* Ultrix mips cc rejects this. */
7238: typedef int charset[2];
1.1.1.9 ! root 7239: const charset cs;
1.1 root 7240: /* SunOS 4.1.1 cc rejects this. */
1.1.1.9 ! root 7241: char const *const *pcpcc;
! 7242: char **ppc;
1.1 root 7243: /* NEC SVR4.0.2 mips cc rejects this. */
7244: struct point {int x, y;};
7245: static struct point const zero = {0,0};
7246: /* AIX XL C 1.02.0.0 rejects this.
7247: It does not let you subtract one const X* pointer from another in
7248: an arm of an if-expression whose if-part is not a constant
7249: expression */
7250: const char *g = "string";
1.1.1.9 ! root 7251: pcpcc = &g + (g ? g-g : 0);
1.1 root 7252: /* HPUX 7.0 cc rejects these. */
1.1.1.9 ! root 7253: ++pcpcc;
! 7254: ppc = (char**) pcpcc;
! 7255: pcpcc = (char const *const *) ppc;
1.1 root 7256: { /* SCO 3.2v4 cc rejects this. */
7257: char *t;
7258: char const *s = 0 ? (char *) 0 : (char const *) 0;
7259:
7260: *t++ = 0;
1.1.1.6 root 7261: if (s) return 0;
1.1 root 7262: }
7263: { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7264: int x[] = {25, 17};
7265: const int *foo = &x[0];
7266: ++foo;
7267: }
7268: { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7269: typedef const int *iptr;
7270: iptr p = 0;
7271: ++p;
7272: }
7273: { /* AIX XL C 1.02.0.0 rejects this saying
7274: "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7275: struct s { int j; const int *ap[3]; };
7276: struct s *b; b->j = 5;
7277: }
7278: { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7279: const int foo = 10;
1.1.1.6 root 7280: if (!foo) return 0;
1.1 root 7281: }
1.1.1.9 ! root 7282: return !cs[0] && !zero.x;
1.1 root 7283: #endif
7284:
7285: ;
7286: return 0;
7287: }
7288: _ACEOF
7289: rm -f conftest.$ac_objext
1.1.1.6 root 7290: if { (ac_try="$ac_compile"
7291: case "(($ac_try" in
7292: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7293: *) ac_try_echo=$ac_try;;
7294: esac
7295: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7296: (eval "$ac_compile") 2>conftest.er1
1.1 root 7297: ac_status=$?
1.1.1.3 root 7298: grep -v '^ *+' conftest.er1 >conftest.err
7299: rm -f conftest.er1
7300: cat conftest.err >&5
1.1 root 7301: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.9 ! root 7302: (exit $ac_status); } && {
! 7303: test -z "$ac_c_werror_flag" ||
! 7304: test ! -s conftest.err
! 7305: } && test -s conftest.$ac_objext; then
1.1 root 7306: ac_cv_c_const=yes
7307: else
7308: echo "$as_me: failed program was:" >&5
1.1.1.3 root 7309: sed 's/^/| /' conftest.$ac_ext >&5
7310:
1.1.1.6 root 7311: ac_cv_c_const=no
1.1 root 7312: fi
1.1.1.6 root 7313:
7314: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1 root 7315: fi
1.1.1.6 root 7316: { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
7317: echo "${ECHO_T}$ac_cv_c_const" >&6; }
1.1 root 7318: if test $ac_cv_c_const = no; then
7319:
7320: cat >>confdefs.h <<\_ACEOF
7321: #define const
7322: _ACEOF
7323:
7324: fi
7325:
1.1.1.6 root 7326: { echo "$as_me:$LINENO: checking for inline" >&5
7327: echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
1.1 root 7328: if test "${ac_cv_c_inline+set}" = set; then
7329: echo $ECHO_N "(cached) $ECHO_C" >&6
7330: else
7331: ac_cv_c_inline=no
7332: for ac_kw in inline __inline__ __inline; do
7333: cat >conftest.$ac_ext <<_ACEOF
1.1.1.3 root 7334: /* confdefs.h. */
7335: _ACEOF
7336: cat confdefs.h >>conftest.$ac_ext
7337: cat >>conftest.$ac_ext <<_ACEOF
7338: /* end confdefs.h. */
1.1 root 7339: #ifndef __cplusplus
1.1.1.3 root 7340: typedef int foo_t;
7341: static $ac_kw foo_t static_foo () {return 0; }
7342: $ac_kw foo_t foo () {return 0; }
1.1 root 7343: #endif
7344:
7345: _ACEOF
7346: rm -f conftest.$ac_objext
1.1.1.6 root 7347: if { (ac_try="$ac_compile"
7348: case "(($ac_try" in
7349: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7350: *) ac_try_echo=$ac_try;;
7351: esac
7352: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7353: (eval "$ac_compile") 2>conftest.er1
1.1 root 7354: ac_status=$?
1.1.1.3 root 7355: grep -v '^ *+' conftest.er1 >conftest.err
7356: rm -f conftest.er1
7357: cat conftest.err >&5
1.1 root 7358: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.9 ! root 7359: (exit $ac_status); } && {
! 7360: test -z "$ac_c_werror_flag" ||
! 7361: test ! -s conftest.err
! 7362: } && test -s conftest.$ac_objext; then
1.1.1.6 root 7363: ac_cv_c_inline=$ac_kw
1.1 root 7364: else
7365: echo "$as_me: failed program was:" >&5
1.1.1.3 root 7366: sed 's/^/| /' conftest.$ac_ext >&5
7367:
1.1.1.6 root 7368:
1.1 root 7369: fi
1.1.1.6 root 7370:
7371: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7372: test "$ac_cv_c_inline" != no && break
1.1 root 7373: done
7374:
7375: fi
1.1.1.6 root 7376: { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
7377: echo "${ECHO_T}$ac_cv_c_inline" >&6; }
1.1.1.3 root 7378:
7379:
1.1 root 7380: case $ac_cv_c_inline in
7381: inline | yes) ;;
1.1.1.3 root 7382: *)
7383: case $ac_cv_c_inline in
7384: no) ac_val=;;
7385: *) ac_val=$ac_cv_c_inline;;
7386: esac
7387: cat >>confdefs.h <<_ACEOF
7388: #ifndef __cplusplus
7389: #define inline $ac_val
7390: #endif
1.1 root 7391: _ACEOF
1.1.1.3 root 7392: ;;
1.1 root 7393: esac
7394:
1.1.1.6 root 7395: { echo "$as_me:$LINENO: checking for working volatile" >&5
7396: echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
1.1 root 7397: if test "${ac_cv_c_volatile+set}" = set; then
7398: echo $ECHO_N "(cached) $ECHO_C" >&6
7399: else
7400: cat >conftest.$ac_ext <<_ACEOF
1.1.1.3 root 7401: /* confdefs.h. */
7402: _ACEOF
7403: cat confdefs.h >>conftest.$ac_ext
7404: cat >>conftest.$ac_ext <<_ACEOF
7405: /* end confdefs.h. */
1.1 root 7406:
7407: int
7408: main ()
7409: {
7410:
7411: volatile int x;
1.1.1.6 root 7412: int * volatile y = (int *) 0;
7413: return !x && !y;
1.1 root 7414: ;
7415: return 0;
7416: }
7417: _ACEOF
7418: rm -f conftest.$ac_objext
1.1.1.6 root 7419: if { (ac_try="$ac_compile"
7420: case "(($ac_try" in
7421: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7422: *) ac_try_echo=$ac_try;;
7423: esac
7424: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7425: (eval "$ac_compile") 2>conftest.er1
1.1 root 7426: ac_status=$?
1.1.1.3 root 7427: grep -v '^ *+' conftest.er1 >conftest.err
7428: rm -f conftest.er1
7429: cat conftest.err >&5
1.1 root 7430: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.9 ! root 7431: (exit $ac_status); } && {
! 7432: test -z "$ac_c_werror_flag" ||
! 7433: test ! -s conftest.err
! 7434: } && test -s conftest.$ac_objext; then
1.1 root 7435: ac_cv_c_volatile=yes
7436: else
7437: echo "$as_me: failed program was:" >&5
1.1.1.3 root 7438: sed 's/^/| /' conftest.$ac_ext >&5
7439:
1.1.1.6 root 7440: ac_cv_c_volatile=no
1.1 root 7441: fi
1.1.1.6 root 7442:
7443: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1 root 7444: fi
1.1.1.6 root 7445: { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
7446: echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
1.1 root 7447: if test $ac_cv_c_volatile = no; then
7448:
7449: cat >>confdefs.h <<\_ACEOF
7450: #define volatile
7451: _ACEOF
7452:
7453: fi
7454:
7455:
7456: # Do we have GNU-C ?
7457: if test x"${GCC}" = xyes; then
7458:
7459: GCCVERSION=`${CC} -dumpversion`
7460: case $GCCVERSION in
7461: 2.96*)
7462: { echo "$as_me:$LINENO: WARNING: You have GCC $GCCVERSION - This compiler is probably buggy." >&5
7463: echo "$as_me: WARNING: You have GCC $GCCVERSION - This compiler is probably buggy." >&2;}
7464: { echo "$as_me:$LINENO: WARNING: So I am using -O instead of -O2 (or greater) now!" >&5
7465: echo "$as_me: WARNING: So I am using -O instead of -O2 (or greater) now!" >&2;}
7466: CFLAGS=`echo "${CFLAGS}" | sed 's/-O[2-9]/-O/'`
7467: ;;
7468: esac
7469:
7470: if test x"${ENABLE_WERROR}" != xno; then
7471: CFLAGS="${CFLAGS} -Werror"
7472: fi
7473: CFLAGS="${CFLAGS} -Wall"
7474:
7475: fi
7476:
7477:
7478: # Cross-compiling ?
7479:
7480: HOSTCFLAGS="-O"
7481: HOSTLDFLAGS=""
7482: if test "${build}" != "${target}" -a "${HOSTCC}" == "${CC}"; then
7483: { echo "$as_me:$LINENO: WARNING: Cross compiling... I will now use cc as host compiler!" >&5
7484: echo "$as_me: WARNING: Cross compiling... I will now use cc as host compiler!" >&2;}
7485: HOSTCC=cc
7486: else
7487: HOSTCFLAGS="${CFLAGS}"
7488: HOSTLDFLAGS="${LDFLAGS}"
7489: fi
7490:
7491:
7492:
7493: for ac_header in stdlib.h
7494: do
7495: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
1.1.1.6 root 7496: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7497: { echo "$as_me:$LINENO: checking for $ac_header" >&5
7498: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7499: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1.1 root 7500: echo $ECHO_N "(cached) $ECHO_C" >&6
7501: fi
1.1.1.6 root 7502: ac_res=`eval echo '${'$as_ac_Header'}'`
7503: { echo "$as_me:$LINENO: result: $ac_res" >&5
7504: echo "${ECHO_T}$ac_res" >&6; }
1.1 root 7505: else
7506: # Is the header compilable?
1.1.1.6 root 7507: { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7508: echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
1.1 root 7509: cat >conftest.$ac_ext <<_ACEOF
1.1.1.3 root 7510: /* confdefs.h. */
7511: _ACEOF
7512: cat confdefs.h >>conftest.$ac_ext
7513: cat >>conftest.$ac_ext <<_ACEOF
7514: /* end confdefs.h. */
1.1 root 7515: $ac_includes_default
7516: #include <$ac_header>
7517: _ACEOF
7518: rm -f conftest.$ac_objext
1.1.1.6 root 7519: if { (ac_try="$ac_compile"
7520: case "(($ac_try" in
7521: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7522: *) ac_try_echo=$ac_try;;
7523: esac
7524: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7525: (eval "$ac_compile") 2>conftest.er1
1.1 root 7526: ac_status=$?
1.1.1.3 root 7527: grep -v '^ *+' conftest.er1 >conftest.err
7528: rm -f conftest.er1
7529: cat conftest.err >&5
1.1 root 7530: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.9 ! root 7531: (exit $ac_status); } && {
! 7532: test -z "$ac_c_werror_flag" ||
! 7533: test ! -s conftest.err
! 7534: } && test -s conftest.$ac_objext; then
1.1 root 7535: ac_header_compiler=yes
7536: else
7537: echo "$as_me: failed program was:" >&5
1.1.1.3 root 7538: sed 's/^/| /' conftest.$ac_ext >&5
7539:
1.1.1.6 root 7540: ac_header_compiler=no
1.1 root 7541: fi
1.1.1.6 root 7542:
7543: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7544: { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7545: echo "${ECHO_T}$ac_header_compiler" >&6; }
1.1 root 7546:
7547: # Is the header present?
1.1.1.6 root 7548: { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7549: echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
1.1 root 7550: cat >conftest.$ac_ext <<_ACEOF
1.1.1.3 root 7551: /* confdefs.h. */
7552: _ACEOF
7553: cat confdefs.h >>conftest.$ac_ext
7554: cat >>conftest.$ac_ext <<_ACEOF
7555: /* end confdefs.h. */
1.1 root 7556: #include <$ac_header>
7557: _ACEOF
1.1.1.6 root 7558: if { (ac_try="$ac_cpp conftest.$ac_ext"
7559: case "(($ac_try" in
7560: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7561: *) ac_try_echo=$ac_try;;
7562: esac
7563: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7564: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
1.1 root 7565: ac_status=$?
1.1.1.3 root 7566: grep -v '^ *+' conftest.er1 >conftest.err
1.1 root 7567: rm -f conftest.er1
7568: cat conftest.err >&5
7569: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.9 ! root 7570: (exit $ac_status); } >/dev/null && {
! 7571: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
! 7572: test ! -s conftest.err
! 7573: }; then
1.1 root 7574: ac_header_preproc=yes
7575: else
7576: echo "$as_me: failed program was:" >&5
1.1.1.3 root 7577: sed 's/^/| /' conftest.$ac_ext >&5
7578:
1.1 root 7579: ac_header_preproc=no
7580: fi
1.1.1.6 root 7581:
1.1 root 7582: rm -f conftest.err conftest.$ac_ext
1.1.1.6 root 7583: { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7584: echo "${ECHO_T}$ac_header_preproc" >&6; }
1.1 root 7585:
7586: # So? What about this header?
1.1.1.3 root 7587: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7588: yes:no: )
1.1 root 7589: { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7590: echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
1.1.1.3 root 7591: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7592: echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7593: ac_header_preproc=yes
7594: ;;
7595: no:yes:* )
1.1 root 7596: { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7597: echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
1.1.1.3 root 7598: { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7599: echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7600: { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7601: echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7602: { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7603: echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
1.1 root 7604: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
1.1.1.3 root 7605: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7606: { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7607: echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
1.1.1.6 root 7608:
1.1.1.3 root 7609: ;;
1.1 root 7610: esac
1.1.1.6 root 7611: { echo "$as_me:$LINENO: checking for $ac_header" >&5
7612: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7613: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1.1 root 7614: echo $ECHO_N "(cached) $ECHO_C" >&6
7615: else
1.1.1.3 root 7616: eval "$as_ac_Header=\$ac_header_preproc"
1.1 root 7617: fi
1.1.1.6 root 7618: ac_res=`eval echo '${'$as_ac_Header'}'`
7619: { echo "$as_me:$LINENO: result: $ac_res" >&5
7620: echo "${ECHO_T}$ac_res" >&6; }
1.1 root 7621:
7622: fi
7623: if test `eval echo '${'$as_ac_Header'}'` = yes; then
7624: cat >>confdefs.h <<_ACEOF
7625: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7626: _ACEOF
7627:
7628: fi
7629:
7630: done
7631:
1.1.1.6 root 7632: { echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
7633: echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6; }
1.1.1.3 root 7634: if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
1.1 root 7635: echo $ECHO_N "(cached) $ECHO_C" >&6
7636: else
7637: if test "$cross_compiling" = yes; then
1.1.1.3 root 7638: ac_cv_func_malloc_0_nonnull=no
1.1 root 7639: else
7640: cat >conftest.$ac_ext <<_ACEOF
1.1.1.3 root 7641: /* confdefs.h. */
7642: _ACEOF
7643: cat confdefs.h >>conftest.$ac_ext
7644: cat >>conftest.$ac_ext <<_ACEOF
7645: /* end confdefs.h. */
1.1.1.9 ! root 7646: #if defined STDC_HEADERS || defined HAVE_STDLIB_H
1.1 root 7647: # include <stdlib.h>
7648: #else
7649: char *malloc ();
7650: #endif
7651:
7652: int
7653: main ()
7654: {
1.1.1.6 root 7655: return ! malloc (0);
1.1 root 7656: ;
7657: return 0;
7658: }
7659: _ACEOF
7660: rm -f conftest$ac_exeext
1.1.1.6 root 7661: if { (ac_try="$ac_link"
7662: case "(($ac_try" in
7663: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7664: *) ac_try_echo=$ac_try;;
7665: esac
7666: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7667: (eval "$ac_link") 2>&5
1.1 root 7668: ac_status=$?
7669: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7670: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
1.1.1.6 root 7671: { (case "(($ac_try" in
7672: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7673: *) ac_try_echo=$ac_try;;
7674: esac
7675: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7676: (eval "$ac_try") 2>&5
1.1 root 7677: ac_status=$?
7678: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7679: (exit $ac_status); }; }; then
1.1.1.3 root 7680: ac_cv_func_malloc_0_nonnull=yes
1.1 root 7681: else
7682: echo "$as_me: program exited with status $ac_status" >&5
7683: echo "$as_me: failed program was:" >&5
1.1.1.3 root 7684: sed 's/^/| /' conftest.$ac_ext >&5
7685:
1.1 root 7686: ( exit $ac_status )
1.1.1.3 root 7687: ac_cv_func_malloc_0_nonnull=no
1.1 root 7688: fi
1.1.1.6 root 7689: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.1 root 7690: fi
1.1.1.6 root 7691:
7692:
1.1 root 7693: fi
1.1.1.6 root 7694: { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
7695: echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6; }
1.1.1.3 root 7696: if test $ac_cv_func_malloc_0_nonnull = yes; then
1.1 root 7697:
7698: cat >>confdefs.h <<\_ACEOF
7699: #define HAVE_MALLOC 1
7700: _ACEOF
7701:
1.1.1.3 root 7702: else
7703: cat >>confdefs.h <<\_ACEOF
7704: #define HAVE_MALLOC 0
7705: _ACEOF
7706:
1.1.1.6 root 7707: case " $LIBOBJS " in
1.1.1.3 root 7708: *" malloc.$ac_objext "* ) ;;
1.1.1.6 root 7709: *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
7710: ;;
1.1.1.3 root 7711: esac
7712:
7713:
7714: cat >>confdefs.h <<\_ACEOF
7715: #define malloc rpl_malloc
7716: _ACEOF
7717:
1.1 root 7718: fi
7719:
1.1.1.3 root 7720:
7721:
1.1.1.6 root 7722: { echo "$as_me:$LINENO: checking for working memcmp" >&5
7723: echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; }
1.1 root 7724: if test "${ac_cv_func_memcmp_working+set}" = set; then
7725: echo $ECHO_N "(cached) $ECHO_C" >&6
7726: else
7727: if test "$cross_compiling" = yes; then
7728: ac_cv_func_memcmp_working=no
7729: else
7730: cat >conftest.$ac_ext <<_ACEOF
1.1.1.3 root 7731: /* confdefs.h. */
7732: _ACEOF
7733: cat confdefs.h >>conftest.$ac_ext
7734: cat >>conftest.$ac_ext <<_ACEOF
7735: /* end confdefs.h. */
7736: $ac_includes_default
1.1 root 7737: int
7738: main ()
7739: {
7740:
7741: /* Some versions of memcmp are not 8-bit clean. */
1.1.1.6 root 7742: char c0 = '\100', c1 = '\200', c2 = '\201';
1.1 root 7743: if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
1.1.1.6 root 7744: return 1;
1.1 root 7745:
7746: /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
7747: or more and with at least one buffer not starting on a 4-byte boundary.
7748: William Lewis provided this test program. */
7749: {
7750: char foo[21];
7751: char bar[21];
7752: int i;
7753: for (i = 0; i < 4; i++)
7754: {
1.1.1.3 root 7755: char *a = foo + i;
7756: char *b = bar + i;
7757: strcpy (a, "--------01111111");
7758: strcpy (b, "--------10000000");
7759: if (memcmp (a, b, 16) >= 0)
1.1.1.6 root 7760: return 1;
1.1 root 7761: }
1.1.1.6 root 7762: return 0;
1.1 root 7763: }
7764:
7765: ;
7766: return 0;
7767: }
7768: _ACEOF
7769: rm -f conftest$ac_exeext
1.1.1.6 root 7770: if { (ac_try="$ac_link"
7771: case "(($ac_try" in
7772: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7773: *) ac_try_echo=$ac_try;;
7774: esac
7775: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7776: (eval "$ac_link") 2>&5
1.1 root 7777: ac_status=$?
7778: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7779: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
1.1.1.6 root 7780: { (case "(($ac_try" in
7781: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7782: *) ac_try_echo=$ac_try;;
7783: esac
7784: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7785: (eval "$ac_try") 2>&5
1.1 root 7786: ac_status=$?
7787: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7788: (exit $ac_status); }; }; then
7789: ac_cv_func_memcmp_working=yes
7790: else
7791: echo "$as_me: program exited with status $ac_status" >&5
7792: echo "$as_me: failed program was:" >&5
1.1.1.3 root 7793: sed 's/^/| /' conftest.$ac_ext >&5
7794:
1.1 root 7795: ( exit $ac_status )
7796: ac_cv_func_memcmp_working=no
7797: fi
1.1.1.6 root 7798: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.1 root 7799: fi
1.1.1.6 root 7800:
7801:
1.1 root 7802: fi
1.1.1.6 root 7803: { echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
7804: echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; }
7805: test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
1.1.1.3 root 7806: *" memcmp.$ac_objext "* ) ;;
1.1.1.6 root 7807: *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
7808: ;;
1.1.1.3 root 7809: esac
7810:
1.1 root 7811:
7812: #AC_FUNC_REALLOC
1.1.1.6 root 7813: { echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
7814: echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6; }
1.1 root 7815: if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
7816: echo $ECHO_N "(cached) $ECHO_C" >&6
7817: else
7818: rm -f conftest.sym conftest.file
7819: echo >conftest.file
7820: if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
7821: if test "$cross_compiling" = yes; then
7822: ac_cv_func_lstat_dereferences_slashed_symlink=no
7823: else
7824: cat >conftest.$ac_ext <<_ACEOF
1.1.1.3 root 7825: /* confdefs.h. */
7826: _ACEOF
7827: cat confdefs.h >>conftest.$ac_ext
7828: cat >>conftest.$ac_ext <<_ACEOF
7829: /* end confdefs.h. */
1.1 root 7830: $ac_includes_default
7831: int
7832: main ()
7833: {
7834: struct stat sbuf;
7835: /* Linux will dereference the symlink and fail.
1.1.1.3 root 7836: That is better in the sense that it means we will not
7837: have to compile and use the lstat wrapper. */
1.1.1.6 root 7838: return lstat ("conftest.sym/", &sbuf) == 0;
1.1 root 7839: ;
7840: return 0;
7841: }
7842: _ACEOF
7843: rm -f conftest$ac_exeext
1.1.1.6 root 7844: if { (ac_try="$ac_link"
7845: case "(($ac_try" in
7846: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7847: *) ac_try_echo=$ac_try;;
7848: esac
7849: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7850: (eval "$ac_link") 2>&5
1.1 root 7851: ac_status=$?
7852: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7853: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
1.1.1.6 root 7854: { (case "(($ac_try" in
7855: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7856: *) ac_try_echo=$ac_try;;
7857: esac
7858: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7859: (eval "$ac_try") 2>&5
1.1 root 7860: ac_status=$?
7861: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7862: (exit $ac_status); }; }; then
7863: ac_cv_func_lstat_dereferences_slashed_symlink=yes
7864: else
7865: echo "$as_me: program exited with status $ac_status" >&5
7866: echo "$as_me: failed program was:" >&5
1.1.1.3 root 7867: sed 's/^/| /' conftest.$ac_ext >&5
7868:
1.1 root 7869: ( exit $ac_status )
7870: ac_cv_func_lstat_dereferences_slashed_symlink=no
7871: fi
1.1.1.6 root 7872: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.1 root 7873: fi
1.1.1.6 root 7874:
7875:
1.1 root 7876: else
7877: # If the `ln -s' command failed, then we probably don't even
7878: # have an lstat function.
7879: ac_cv_func_lstat_dereferences_slashed_symlink=no
7880: fi
7881: rm -f conftest.sym conftest.file
7882:
7883: fi
1.1.1.6 root 7884: { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
7885: echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
1.1 root 7886:
7887: test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
7888:
7889: cat >>confdefs.h <<_ACEOF
7890: #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
7891: _ACEOF
7892:
7893:
7894: if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
1.1.1.6 root 7895: case " $LIBOBJS " in
1.1.1.3 root 7896: *" lstat.$ac_objext "* ) ;;
1.1.1.6 root 7897: *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
7898: ;;
1.1.1.3 root 7899: esac
7900:
1.1 root 7901: fi
7902:
1.1.1.6 root 7903: { echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
7904: echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6; }
1.1 root 7905: if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
7906: echo $ECHO_N "(cached) $ECHO_C" >&6
7907: else
7908: if test "$cross_compiling" = yes; then
7909: ac_cv_func_stat_empty_string_bug=yes
7910: else
7911: cat >conftest.$ac_ext <<_ACEOF
1.1.1.3 root 7912: /* confdefs.h. */
7913: _ACEOF
7914: cat confdefs.h >>conftest.$ac_ext
7915: cat >>conftest.$ac_ext <<_ACEOF
7916: /* end confdefs.h. */
1.1 root 7917: $ac_includes_default
7918: int
7919: main ()
7920: {
7921: struct stat sbuf;
1.1.1.6 root 7922: return stat ("", &sbuf) == 0;
1.1 root 7923: ;
7924: return 0;
7925: }
7926: _ACEOF
7927: rm -f conftest$ac_exeext
1.1.1.6 root 7928: if { (ac_try="$ac_link"
7929: case "(($ac_try" in
7930: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7931: *) ac_try_echo=$ac_try;;
7932: esac
7933: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7934: (eval "$ac_link") 2>&5
1.1 root 7935: ac_status=$?
7936: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7937: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
1.1.1.6 root 7938: { (case "(($ac_try" in
7939: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7940: *) ac_try_echo=$ac_try;;
7941: esac
7942: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7943: (eval "$ac_try") 2>&5
1.1 root 7944: ac_status=$?
7945: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7946: (exit $ac_status); }; }; then
1.1.1.6 root 7947: ac_cv_func_stat_empty_string_bug=no
1.1 root 7948: else
7949: echo "$as_me: program exited with status $ac_status" >&5
7950: echo "$as_me: failed program was:" >&5
1.1.1.3 root 7951: sed 's/^/| /' conftest.$ac_ext >&5
7952:
1.1 root 7953: ( exit $ac_status )
1.1.1.6 root 7954: ac_cv_func_stat_empty_string_bug=yes
1.1 root 7955: fi
1.1.1.6 root 7956: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.1 root 7957: fi
1.1.1.6 root 7958:
7959:
1.1 root 7960: fi
1.1.1.6 root 7961: { echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
7962: echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6; }
1.1 root 7963: if test $ac_cv_func_stat_empty_string_bug = yes; then
1.1.1.6 root 7964: case " $LIBOBJS " in
1.1.1.3 root 7965: *" stat.$ac_objext "* ) ;;
1.1.1.6 root 7966: *) LIBOBJS="$LIBOBJS stat.$ac_objext"
7967: ;;
1.1.1.3 root 7968: esac
7969:
1.1 root 7970:
7971: cat >>confdefs.h <<_ACEOF
7972: #define HAVE_STAT_EMPTY_STRING_BUG 1
7973: _ACEOF
7974:
7975: fi
7976:
7977:
7978:
7979:
7980:
7981:
7982:
7983:
7984:
7985:
7986:
7987:
7988: for ac_func in getcwd memmove memset mkdir rmdir strcasecmp \
7989: strchr strerror strncasecmp strrchr strstr
7990: do
7991: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
1.1.1.6 root 7992: { echo "$as_me:$LINENO: checking for $ac_func" >&5
7993: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7994: if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
1.1 root 7995: echo $ECHO_N "(cached) $ECHO_C" >&6
7996: else
7997: cat >conftest.$ac_ext <<_ACEOF
1.1.1.3 root 7998: /* confdefs.h. */
7999: _ACEOF
8000: cat confdefs.h >>conftest.$ac_ext
8001: cat >>conftest.$ac_ext <<_ACEOF
8002: /* end confdefs.h. */
8003: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8004: For example, HP-UX 11i <limits.h> declares gettimeofday. */
8005: #define $ac_func innocuous_$ac_func
8006:
1.1 root 8007: /* System header to define __stub macros and hopefully few prototypes,
1.1.1.3 root 8008: which can conflict with char $ac_func (); below.
8009: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8010: <limits.h> exists even on freestanding compilers. */
8011:
8012: #ifdef __STDC__
8013: # include <limits.h>
8014: #else
8015: # include <assert.h>
8016: #endif
8017:
8018: #undef $ac_func
8019:
1.1.1.6 root 8020: /* Override any GCC internal prototype to avoid an error.
8021: Use char because int might match the return type of a GCC
8022: builtin and then its argument prototype would still apply. */
1.1 root 8023: #ifdef __cplusplus
8024: extern "C"
8025: #endif
8026: char $ac_func ();
8027: /* The GNU C library defines this for functions which it implements
8028: to always fail with ENOSYS. Some functions are actually named
8029: something starting with __ and the normal name is an alias. */
1.1.1.6 root 8030: #if defined __stub_$ac_func || defined __stub___$ac_func
1.1 root 8031: choke me
8032: #endif
8033:
1.1.1.3 root 8034: int
8035: main ()
8036: {
1.1.1.6 root 8037: return $ac_func ();
1.1 root 8038: ;
8039: return 0;
8040: }
8041: _ACEOF
8042: rm -f conftest.$ac_objext conftest$ac_exeext
1.1.1.6 root 8043: if { (ac_try="$ac_link"
8044: case "(($ac_try" in
8045: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8046: *) ac_try_echo=$ac_try;;
8047: esac
8048: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8049: (eval "$ac_link") 2>conftest.er1
1.1 root 8050: ac_status=$?
1.1.1.3 root 8051: grep -v '^ *+' conftest.er1 >conftest.err
8052: rm -f conftest.er1
8053: cat conftest.err >&5
1.1 root 8054: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.9 ! root 8055: (exit $ac_status); } && {
! 8056: test -z "$ac_c_werror_flag" ||
! 8057: test ! -s conftest.err
! 8058: } && test -s conftest$ac_exeext &&
! 8059: $as_test_x conftest$ac_exeext; then
1.1 root 8060: eval "$as_ac_var=yes"
8061: else
8062: echo "$as_me: failed program was:" >&5
1.1.1.3 root 8063: sed 's/^/| /' conftest.$ac_ext >&5
8064:
1.1.1.6 root 8065: eval "$as_ac_var=no"
1.1 root 8066: fi
1.1.1.6 root 8067:
1.1.1.9 ! root 8068: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.1.1.3 root 8069: conftest$ac_exeext conftest.$ac_ext
1.1 root 8070: fi
1.1.1.6 root 8071: ac_res=`eval echo '${'$as_ac_var'}'`
8072: { echo "$as_me:$LINENO: result: $ac_res" >&5
8073: echo "${ECHO_T}$ac_res" >&6; }
1.1 root 8074: if test `eval echo '${'$as_ac_var'}'` = yes; then
8075: cat >>confdefs.h <<_ACEOF
8076: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8077: _ACEOF
8078:
8079: else
8080: { { echo "$as_me:$LINENO: error: A necessary function could not be found." >&5
8081: echo "$as_me: error: A necessary function could not be found." >&2;}
8082: { (exit 1); exit 1; }; }
8083: fi
8084: done
8085:
8086:
8087:
1.1.1.6 root 8088: for ac_func in cfmakeraw setenv
8089: do
8090: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8091: { echo "$as_me:$LINENO: checking for $ac_func" >&5
8092: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8093: if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8094: echo $ECHO_N "(cached) $ECHO_C" >&6
8095: else
8096: cat >conftest.$ac_ext <<_ACEOF
8097: /* confdefs.h. */
8098: _ACEOF
8099: cat confdefs.h >>conftest.$ac_ext
8100: cat >>conftest.$ac_ext <<_ACEOF
8101: /* end confdefs.h. */
8102: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8103: For example, HP-UX 11i <limits.h> declares gettimeofday. */
8104: #define $ac_func innocuous_$ac_func
8105:
8106: /* System header to define __stub macros and hopefully few prototypes,
8107: which can conflict with char $ac_func (); below.
8108: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8109: <limits.h> exists even on freestanding compilers. */
8110:
8111: #ifdef __STDC__
8112: # include <limits.h>
8113: #else
8114: # include <assert.h>
8115: #endif
8116:
8117: #undef $ac_func
8118:
8119: /* Override any GCC internal prototype to avoid an error.
8120: Use char because int might match the return type of a GCC
8121: builtin and then its argument prototype would still apply. */
8122: #ifdef __cplusplus
8123: extern "C"
8124: #endif
8125: char $ac_func ();
8126: /* The GNU C library defines this for functions which it implements
8127: to always fail with ENOSYS. Some functions are actually named
8128: something starting with __ and the normal name is an alias. */
8129: #if defined __stub_$ac_func || defined __stub___$ac_func
8130: choke me
8131: #endif
8132:
8133: int
8134: main ()
8135: {
8136: return $ac_func ();
8137: ;
8138: return 0;
8139: }
8140: _ACEOF
8141: rm -f conftest.$ac_objext conftest$ac_exeext
8142: if { (ac_try="$ac_link"
8143: case "(($ac_try" in
8144: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8145: *) ac_try_echo=$ac_try;;
8146: esac
8147: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8148: (eval "$ac_link") 2>conftest.er1
8149: ac_status=$?
8150: grep -v '^ *+' conftest.er1 >conftest.err
8151: rm -f conftest.er1
8152: cat conftest.err >&5
8153: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.9 ! root 8154: (exit $ac_status); } && {
! 8155: test -z "$ac_c_werror_flag" ||
! 8156: test ! -s conftest.err
! 8157: } && test -s conftest$ac_exeext &&
! 8158: $as_test_x conftest$ac_exeext; then
! 8159: eval "$as_ac_var=yes"
! 8160: else
! 8161: echo "$as_me: failed program was:" >&5
! 8162: sed 's/^/| /' conftest.$ac_ext >&5
! 8163:
! 8164: eval "$as_ac_var=no"
! 8165: fi
! 8166:
! 8167: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 8168: conftest$ac_exeext conftest.$ac_ext
! 8169: fi
! 8170: ac_res=`eval echo '${'$as_ac_var'}'`
! 8171: { echo "$as_me:$LINENO: result: $ac_res" >&5
! 8172: echo "${ECHO_T}$ac_res" >&6; }
! 8173: if test `eval echo '${'$as_ac_var'}'` = yes; then
! 8174: cat >>confdefs.h <<_ACEOF
! 8175: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
! 8176: _ACEOF
! 8177:
! 8178: fi
! 8179: done
! 8180:
! 8181:
! 8182:
! 8183:
! 8184: for ac_func in posix_memalign memalign valloc
! 8185: do
! 8186: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
! 8187: { echo "$as_me:$LINENO: checking for $ac_func" >&5
! 8188: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
! 8189: if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
! 8190: echo $ECHO_N "(cached) $ECHO_C" >&6
! 8191: else
! 8192: cat >conftest.$ac_ext <<_ACEOF
! 8193: /* confdefs.h. */
! 8194: _ACEOF
! 8195: cat confdefs.h >>conftest.$ac_ext
! 8196: cat >>conftest.$ac_ext <<_ACEOF
! 8197: /* end confdefs.h. */
! 8198: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
! 8199: For example, HP-UX 11i <limits.h> declares gettimeofday. */
! 8200: #define $ac_func innocuous_$ac_func
! 8201:
! 8202: /* System header to define __stub macros and hopefully few prototypes,
! 8203: which can conflict with char $ac_func (); below.
! 8204: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
! 8205: <limits.h> exists even on freestanding compilers. */
! 8206:
! 8207: #ifdef __STDC__
! 8208: # include <limits.h>
! 8209: #else
! 8210: # include <assert.h>
! 8211: #endif
! 8212:
! 8213: #undef $ac_func
! 8214:
! 8215: /* Override any GCC internal prototype to avoid an error.
! 8216: Use char because int might match the return type of a GCC
! 8217: builtin and then its argument prototype would still apply. */
! 8218: #ifdef __cplusplus
! 8219: extern "C"
! 8220: #endif
! 8221: char $ac_func ();
! 8222: /* The GNU C library defines this for functions which it implements
! 8223: to always fail with ENOSYS. Some functions are actually named
! 8224: something starting with __ and the normal name is an alias. */
! 8225: #if defined __stub_$ac_func || defined __stub___$ac_func
! 8226: choke me
! 8227: #endif
! 8228:
! 8229: int
! 8230: main ()
! 8231: {
! 8232: return $ac_func ();
! 8233: ;
! 8234: return 0;
! 8235: }
! 8236: _ACEOF
! 8237: rm -f conftest.$ac_objext conftest$ac_exeext
! 8238: if { (ac_try="$ac_link"
! 8239: case "(($ac_try" in
1.1.1.8 root 8240: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8241: *) ac_try_echo=$ac_try;;
8242: esac
8243: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.1.1.9 ! root 8244: (eval "$ac_link") 2>conftest.er1
1.1.1.8 root 8245: ac_status=$?
1.1.1.9 ! root 8246: grep -v '^ *+' conftest.er1 >conftest.err
! 8247: rm -f conftest.er1
! 8248: cat conftest.err >&5
1.1.1.8 root 8249: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.9 ! root 8250: (exit $ac_status); } && {
! 8251: test -z "$ac_c_werror_flag" ||
! 8252: test ! -s conftest.err
! 8253: } && test -s conftest$ac_exeext &&
! 8254: $as_test_x conftest$ac_exeext; then
1.1.1.6 root 8255: eval "$as_ac_var=yes"
8256: else
8257: echo "$as_me: failed program was:" >&5
8258: sed 's/^/| /' conftest.$ac_ext >&5
8259:
8260: eval "$as_ac_var=no"
8261: fi
8262:
1.1.1.9 ! root 8263: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.1.1.6 root 8264: conftest$ac_exeext conftest.$ac_ext
8265: fi
8266: ac_res=`eval echo '${'$as_ac_var'}'`
8267: { echo "$as_me:$LINENO: result: $ac_res" >&5
8268: echo "${ECHO_T}$ac_res" >&6; }
8269: if test `eval echo '${'$as_ac_var'}'` = yes; then
8270: cat >>confdefs.h <<_ACEOF
8271: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8272: _ACEOF
8273:
8274: fi
8275: done
8276:
8277:
1.1.1.8 root 8278: { echo "$as_me:$LINENO: checking for unix domain sockets" >&5
8279: echo $ECHO_N "checking for unix domain sockets... $ECHO_C" >&6; }
8280: cat >conftest.$ac_ext <<_ACEOF
8281:
8282: #include <sys/socket.h>
8283: #include <sys/un.h>
8284: int main() { return socket(AF_UNIX, SOCK_STREAM, 0); }
8285: _ACEOF
8286: rm -f conftest.$ac_objext
8287: if { (ac_try="$ac_compile"
8288: case "(($ac_try" in
8289: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8290: *) ac_try_echo=$ac_try;;
8291: esac
8292: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8293: (eval "$ac_compile") 2>conftest.er1
8294: ac_status=$?
8295: grep -v '^ *+' conftest.er1 >conftest.err
8296: rm -f conftest.er1
8297: cat conftest.err >&5
8298: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.9 ! root 8299: (exit $ac_status); } && {
! 8300: test -z "$ac_c_werror_flag" ||
! 8301: test ! -s conftest.err
! 8302: } && test -s conftest.$ac_objext; then
1.1.1.8 root 8303: { echo "$as_me:$LINENO: result: yes" >&5
8304: echo "${ECHO_T}yes" >&6; }
8305: cat >>confdefs.h <<\_ACEOF
8306: #define HAVE_UNIX_DOMAIN_SOCKETS 1
8307: _ACEOF
8308:
8309: else
8310: echo "$as_me: failed program was:" >&5
8311: sed 's/^/| /' conftest.$ac_ext >&5
8312:
8313: { echo "$as_me:$LINENO: result: no" >&5
8314: echo "${ECHO_T}no" >&6; }
8315: fi
8316:
8317: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8318:
1.1 root 8319:
8320:
1.1.1.6 root 8321: # Convert e.g. /usr/share to /usr/share/hatari :
1.1 root 8322: if test "${datadir}" = '${prefix}/share'; then
8323: datadir='${prefix}/share/hatari'
8324: fi
1.1.1.6 root 8325: if test "${datadir}" = '${datarootdir}'; then
8326: datadir='${datarootdir}/hatari'
8327: fi
8328:
8329: for _lcl_i in bindir:datadir:bin2datadir; do
8330: _lcl_from=\$`echo "$_lcl_i" | sed 's,:.*$,,'`
8331: _lcl_to=\$`echo "$_lcl_i" | sed 's,^[^:]*:,,' | sed 's,:[^:]*$,,'`
8332: _lcl_result_var=`echo "$_lcl_i" | sed 's,^.*:,,'`
8333: _lcl_receval="$_lcl_from"
8334: _lcl_from=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
8335: test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
8336: _lcl_receval_old=''
8337: while test "$_lcl_receval_old" != "$_lcl_receval"; do
8338: _lcl_receval_old="$_lcl_receval"
8339: eval _lcl_receval="\"$_lcl_receval\""
8340: done
8341: echo "$_lcl_receval")`
8342: _lcl_receval="$_lcl_to"
8343: _lcl_to=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
8344: test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
8345: _lcl_receval_old=''
8346: while test "$_lcl_receval_old" != "$_lcl_receval"; do
8347: _lcl_receval_old="$_lcl_receval"
8348: eval _lcl_receval="\"$_lcl_receval\""
8349: done
8350: echo "$_lcl_receval")`
8351: _lcl_notation="$_lcl_from$_lcl_to"
8352: case ":$_lcl_from:" in
8353: # change empty paths to '.'
8354: ::) _lcl_from='.' ;;
8355: # strip trailing slashes
8356: :*[\\/]:) _lcl_from=`echo "$_lcl_from" | sed 's,[\\/]*$,,'` ;;
8357: :*:) ;;
8358: esac
8359: # squeze repeated slashes
8360: case '/' in
8361: # if the path contains any backslashes, turn slashes into backslashes
8362: *\\*) _lcl_from=`echo "$_lcl_from" | sed 's,\(.\)[\\/][\\/]*,\1\\\\,g'` ;;
8363: # if the path contains slashes, also turn backslashes into slashes
8364: *) _lcl_from=`echo "$_lcl_from" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
8365: esac
8366: case ":$_lcl_to:" in
8367: # change empty paths to '.'
8368: ::) _lcl_to='.' ;;
8369: # strip trailing slashes
8370: :*[\\/]:) _lcl_to=`echo "$_lcl_to" | sed 's,[\\/]*$,,'` ;;
8371: :*:) ;;
8372: esac
8373: # squeze repeated slashes
8374: case '/' in
8375: # if the path contains any backslashes, turn slashes into backslashes
8376: *\\*) _lcl_to=`echo "$_lcl_to" | sed 's,\(.\)[\\/][\\/]*,\1\\\\,g'` ;;
8377: # if the path contains slashes, also turn backslashes into slashes
8378: *) _lcl_to=`echo "$_lcl_to" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
8379: esac
8380: _lcl_common_prefix=''
8381: _lcl_second_prefix_match=''
8382: while test "$_lcl_second_prefix_match" != 0; do
8383: _lcl_first_prefix=`expr "x$_lcl_from" : "x\($_lcl_common_prefix/*[^/]*\)"`
8384: _lcl_second_prefix_match=`expr "x$_lcl_to" : "x$_lcl_first_prefix"`
8385: if test "$_lcl_second_prefix_match" != 0; then
8386: if test "$_lcl_first_prefix" != "$_lcl_common_prefix"; then
8387: _lcl_common_prefix="$_lcl_first_prefix"
8388: else
8389: _lcl_second_prefix_match=0
8390: fi
8391: fi
8392: done
8393: _lcl_first_suffix=`expr "x$_lcl_from" : "x$_lcl_common_prefix/*\(.*\)"`
8394: _lcl_first_rel=''
8395: _lcl_tmp='xxx'
8396: while test "$_lcl_tmp" != ''; do
8397: _lcl_tmp=`expr "x$_lcl_first_suffix" : "x[^/]*/*\(.*\)"`
8398: if test "$_lcl_first_suffix" != ''; then
8399: _lcl_first_suffix="$_lcl_tmp"
8400: _lcl_first_rel="../$_lcl_first_rel"
8401: fi
8402: done
8403: _lcl_second_suffix=`expr "x$_lcl_to" : "x$_lcl_common_prefix/*\(.*\)"`
8404: _lcl_result_tmp="$_lcl_first_rel$_lcl_second_suffix"
8405: case ":$_lcl_result_tmp:" in
8406: # change empty paths to '.'
8407: ::) _lcl_result_tmp='.' ;;
8408: # strip trailing slashes
8409: :*[\\/]:) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,[\\/]*$,,'` ;;
8410: :*:) ;;
8411: esac
8412: # squeze repeated slashes
8413: case "$_lcl_notation" in
8414: # if the path contains any backslashes, turn slashes into backslashes
8415: *\\*) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,\(.\)[\\/][\\/]*,\1\\\\,g'` ;;
8416: # if the path contains slashes, also turn backslashes into slashes
8417: *) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
8418: esac
8419: eval $_lcl_result_var='$_lcl_result_tmp'
8420: done
8421:
8422: cat >>confdefs.h <<_ACEOF
8423: #define BIN2DATADIR "${bin2datadir}"
8424: _ACEOF
8425:
1.1 root 8426:
8427:
8428:
8429:
8430:
1.1.1.6 root 8431: ac_config_files="$ac_config_files Makefile.cnf"
8432:
1.1 root 8433: cat >confcache <<\_ACEOF
8434: # This file is a shell script that caches the results of configure
8435: # tests run on this system so they can be shared between configure
8436: # scripts and configure runs, see configure's option --config-cache.
8437: # It is not useful on other systems. If it contains results you don't
8438: # want to keep, you may remove or edit it.
8439: #
8440: # config.status only pays attention to the cache file if you give it
8441: # the --recheck option to rerun configure.
8442: #
1.1.1.3 root 8443: # `ac_cv_env_foo' variables (set or unset) will be overridden when
1.1 root 8444: # loading this file, other *unset* `ac_cv_foo' will be assigned the
8445: # following values.
8446:
8447: _ACEOF
8448:
8449: # The following way of writing the cache mishandles newlines in values,
8450: # but we know of no workaround that is simple, portable, and efficient.
1.1.1.6 root 8451: # So, we kill variables containing newlines.
1.1 root 8452: # Ultrix sh set writes to stderr and can't be redirected directly,
8453: # and sets the high bit in the cache file unless we assign to the vars.
1.1.1.6 root 8454: (
8455: for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
8456: eval ac_val=\$$ac_var
8457: case $ac_val in #(
8458: *${as_nl}*)
8459: case $ac_var in #(
8460: *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
8461: echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
8462: esac
8463: case $ac_var in #(
8464: _ | IFS | as_nl) ;; #(
8465: *) $as_unset $ac_var ;;
8466: esac ;;
8467: esac
8468: done
8469:
1.1 root 8470: (set) 2>&1 |
1.1.1.6 root 8471: case $as_nl`(ac_space=' '; set) 2>&1` in #(
8472: *${as_nl}ac_space=\ *)
1.1 root 8473: # `set' does not quote correctly, so add quotes (double-quote
8474: # substitution turns \\\\ into \\, and sed turns \\ into \).
8475: sed -n \
1.1.1.3 root 8476: "s/'/'\\\\''/g;
8477: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
1.1.1.6 root 8478: ;; #(
1.1 root 8479: *)
8480: # `set' quotes correctly as required by POSIX, so do not add quotes.
1.1.1.6 root 8481: sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1.1 root 8482: ;;
1.1.1.6 root 8483: esac |
8484: sort
8485: ) |
1.1 root 8486: sed '
1.1.1.6 root 8487: /^ac_cv_env_/b end
1.1 root 8488: t clear
1.1.1.6 root 8489: :clear
1.1 root 8490: s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8491: t end
1.1.1.6 root 8492: s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8493: :end' >>confcache
8494: if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
8495: if test -w "$cache_file"; then
8496: test "x$cache_file" != "x/dev/null" &&
8497: { echo "$as_me:$LINENO: updating cache $cache_file" >&5
8498: echo "$as_me: updating cache $cache_file" >&6;}
1.1 root 8499: cat confcache >$cache_file
8500: else
1.1.1.6 root 8501: { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
8502: echo "$as_me: not updating unwritable cache $cache_file" >&6;}
1.1 root 8503: fi
8504: fi
8505: rm -f confcache
8506:
8507: test "x$prefix" = xNONE && prefix=$ac_default_prefix
8508: # Let make expand exec_prefix.
8509: test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8510:
1.1.1.6 root 8511: DEFS=-DHAVE_CONFIG_H
1.1 root 8512:
1.1.1.3 root 8513: ac_libobjs=
8514: ac_ltlibobjs=
8515: for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
8516: # 1. Remove the extension, and $U if already installed.
1.1.1.6 root 8517: ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
8518: ac_i=`echo "$ac_i" | sed "$ac_script"`
8519: # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
8520: # will be set to the directory where LIBOBJS objects are built.
8521: ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
8522: ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
1.1.1.3 root 8523: done
8524: LIBOBJS=$ac_libobjs
8525:
8526: LTLIBOBJS=$ac_ltlibobjs
8527:
8528:
1.1 root 8529:
8530: : ${CONFIG_STATUS=./config.status}
8531: ac_clean_files_save=$ac_clean_files
8532: ac_clean_files="$ac_clean_files $CONFIG_STATUS"
8533: { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
8534: echo "$as_me: creating $CONFIG_STATUS" >&6;}
8535: cat >$CONFIG_STATUS <<_ACEOF
8536: #! $SHELL
8537: # Generated by $as_me.
8538: # Run this file to recreate the current configuration.
8539: # Compiler output produced by configure, useful for debugging
8540: # configure, is in config.log if it exists.
8541:
8542: debug=false
1.1.1.3 root 8543: ac_cs_recheck=false
8544: ac_cs_silent=false
1.1 root 8545: SHELL=\${CONFIG_SHELL-$SHELL}
8546: _ACEOF
8547:
8548: cat >>$CONFIG_STATUS <<\_ACEOF
8549: ## --------------------- ##
8550: ## M4sh Initialization. ##
8551: ## --------------------- ##
8552:
1.1.1.9 ! root 8553: # Be more Bourne compatible
! 8554: DUALCASE=1; export DUALCASE # for MKS sh
1.1 root 8555: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
8556: emulate sh
8557: NULLCMD=:
1.1.1.3 root 8558: # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
8559: # is contrary to our usage. Disable this feature.
8560: alias -g '${1+"$@"}'='"$@"'
1.1.1.6 root 8561: setopt NO_GLOB_SUBST
8562: else
1.1.1.9 ! root 8563: case `(set -o) 2>/dev/null` in
! 8564: *posix*) set -o posix ;;
! 8565: esac
! 8566:
1.1.1.6 root 8567: fi
1.1.1.9 ! root 8568:
! 8569:
1.1.1.6 root 8570:
8571:
8572: # PATH needs CR
8573: # Avoid depending upon Character Ranges.
8574: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
8575: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8576: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
8577: as_cr_digits='0123456789'
8578: as_cr_alnum=$as_cr_Letters$as_cr_digits
8579:
8580: # The user is always right.
8581: if test "${PATH_SEPARATOR+set}" != set; then
8582: echo "#! /bin/sh" >conf$$.sh
8583: echo "exit 0" >>conf$$.sh
8584: chmod +x conf$$.sh
8585: if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
8586: PATH_SEPARATOR=';'
8587: else
8588: PATH_SEPARATOR=:
8589: fi
8590: rm -f conf$$.sh
1.1 root 8591: fi
8592:
8593: # Support unset when possible.
1.1.1.3 root 8594: if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
1.1 root 8595: as_unset=unset
8596: else
8597: as_unset=false
8598: fi
8599:
1.1.1.3 root 8600:
1.1.1.6 root 8601: # IFS
8602: # We need space, tab and new line, in precisely that order. Quoting is
8603: # there to prevent editors from complaining about space-tab.
8604: # (If _AS_PATH_WALK were called with IFS unset, it would disable word
8605: # splitting by setting IFS to empty value.)
8606: as_nl='
8607: '
8608: IFS=" "" $as_nl"
8609:
8610: # Find who we are. Look in the path if we contain no directory separator.
8611: case $0 in
8612: *[\\/]* ) as_myself=$0 ;;
8613: *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8614: for as_dir in $PATH
8615: do
8616: IFS=$as_save_IFS
8617: test -z "$as_dir" && as_dir=.
8618: test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
8619: done
8620: IFS=$as_save_IFS
8621:
8622: ;;
8623: esac
8624: # We did not find ourselves, most probably we were run as `sh COMMAND'
8625: # in which case we are not to be found in the path.
8626: if test "x$as_myself" = x; then
8627: as_myself=$0
8628: fi
8629: if test ! -f "$as_myself"; then
8630: echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
8631: { (exit 1); exit 1; }
8632: fi
8633:
1.1.1.3 root 8634: # Work around bugs in pre-3.0 UWIN ksh.
1.1.1.6 root 8635: for as_var in ENV MAIL MAILPATH
8636: do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
8637: done
1.1.1.3 root 8638: PS1='$ '
8639: PS2='> '
8640: PS4='+ '
8641:
8642: # NLS nuisances.
8643: for as_var in \
8644: LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
8645: LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
8646: LC_TELEPHONE LC_TIME
8647: do
8648: if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
8649: eval $as_var=C; export $as_var
8650: else
1.1.1.6 root 8651: ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
1.1.1.3 root 8652: fi
8653: done
8654:
8655: # Required to use basename.
1.1.1.6 root 8656: if expr a : '\(a\)' >/dev/null 2>&1 &&
8657: test "X`expr 00001 : '.*\(...\)'`" = X001; then
1.1.1.3 root 8658: as_expr=expr
8659: else
8660: as_expr=false
8661: fi
8662:
1.1.1.6 root 8663: if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
1.1.1.3 root 8664: as_basename=basename
8665: else
8666: as_basename=false
8667: fi
1.1 root 8668:
8669:
8670: # Name of the executable.
1.1.1.6 root 8671: as_me=`$as_basename -- "$0" ||
1.1 root 8672: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8673: X"$0" : 'X\(//\)$' \| \
1.1.1.6 root 8674: X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1.1 root 8675: echo X/"$0" |
1.1.1.6 root 8676: sed '/^.*\/\([^/][^/]*\)\/*$/{
8677: s//\1/
8678: q
8679: }
8680: /^X\/\(\/\/\)$/{
8681: s//\1/
8682: q
8683: }
8684: /^X\/\(\/\).*/{
8685: s//\1/
8686: q
8687: }
8688: s/.*/./; q'`
1.1 root 8689:
1.1.1.6 root 8690: # CDPATH.
8691: $as_unset CDPATH
1.1 root 8692:
8693:
8694:
8695: as_lineno_1=$LINENO
8696: as_lineno_2=$LINENO
8697: test "x$as_lineno_1" != "x$as_lineno_2" &&
1.1.1.6 root 8698: test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
1.1 root 8699:
8700: # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
8701: # uniformly replaced by the line number. The first 'sed' inserts a
1.1.1.6 root 8702: # line-number line after each line using $LINENO; the second 'sed'
8703: # does the real work. The second script uses 'N' to pair each
8704: # line-number line with the line containing $LINENO, and appends
8705: # trailing '-' during substitution so that $LINENO is not a special
8706: # case at line end.
1.1 root 8707: # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
1.1.1.6 root 8708: # scripts with optimization help from Paolo Bonzini. Blame Lee
8709: # E. McMahon (1931-1989) for sed's syntax. :-)
8710: sed -n '
8711: p
8712: /[$]LINENO/=
8713: ' <$as_myself |
1.1 root 8714: sed '
1.1.1.6 root 8715: s/[$]LINENO.*/&-/
8716: t lineno
8717: b
8718: :lineno
1.1 root 8719: N
1.1.1.6 root 8720: :loop
8721: s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
1.1 root 8722: t loop
1.1.1.6 root 8723: s/-\n.*//
1.1 root 8724: ' >$as_me.lineno &&
1.1.1.6 root 8725: chmod +x "$as_me.lineno" ||
8726: { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
1.1 root 8727: { (exit 1); exit 1; }; }
8728:
8729: # Don't try to exec as it changes $[0], causing all sort of problems
8730: # (the dirname of $[0] is not the place where we might find the
1.1.1.6 root 8731: # original and so on. Autoconf is especially sensitive to this).
8732: . "./$as_me.lineno"
1.1 root 8733: # Exit status is that of the last command.
8734: exit
8735: }
8736:
8737:
1.1.1.6 root 8738: if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
8739: as_dirname=dirname
8740: else
8741: as_dirname=false
8742: fi
8743:
8744: ECHO_C= ECHO_N= ECHO_T=
8745: case `echo -n x` in
8746: -n*)
8747: case `echo 'x\c'` in
8748: *c*) ECHO_T=' ';; # ECHO_T is single tab character.
8749: *) ECHO_C='\c';;
8750: esac;;
8751: *)
8752: ECHO_N='-n';;
1.1 root 8753: esac
8754:
1.1.1.6 root 8755: if expr a : '\(a\)' >/dev/null 2>&1 &&
8756: test "X`expr 00001 : '.*\(...\)'`" = X001; then
1.1 root 8757: as_expr=expr
8758: else
8759: as_expr=false
8760: fi
8761:
8762: rm -f conf$$ conf$$.exe conf$$.file
1.1.1.6 root 8763: if test -d conf$$.dir; then
8764: rm -f conf$$.dir/conf$$.file
8765: else
8766: rm -f conf$$.dir
8767: mkdir conf$$.dir
8768: fi
1.1 root 8769: echo >conf$$.file
8770: if ln -s conf$$.file conf$$ 2>/dev/null; then
1.1.1.6 root 8771: as_ln_s='ln -s'
8772: # ... but there are two gotchas:
8773: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
8774: # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
8775: # In both cases, we have to default to `cp -p'.
8776: ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
1.1 root 8777: as_ln_s='cp -p'
8778: elif ln conf$$.file conf$$ 2>/dev/null; then
8779: as_ln_s=ln
8780: else
8781: as_ln_s='cp -p'
8782: fi
1.1.1.6 root 8783: rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
8784: rmdir conf$$.dir 2>/dev/null
1.1 root 8785:
1.1.1.3 root 8786: if mkdir -p . 2>/dev/null; then
8787: as_mkdir_p=:
8788: else
8789: test -d ./-p && rmdir ./-p
8790: as_mkdir_p=false
8791: fi
8792:
1.1.1.9 ! root 8793: if test -x / >/dev/null 2>&1; then
! 8794: as_test_x='test -x'
1.1.1.6 root 8795: else
1.1.1.9 ! root 8796: if ls -dL / >/dev/null 2>&1; then
! 8797: as_ls_L_option=L
! 8798: else
! 8799: as_ls_L_option=
! 8800: fi
! 8801: as_test_x='
! 8802: eval sh -c '\''
! 8803: if test -d "$1"; then
! 8804: test -d "$1/.";
! 8805: else
! 8806: case $1 in
! 8807: -*)set "./$1";;
! 8808: esac;
! 8809: case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
! 8810: ???[sx]*):;;*)false;;esac;fi
! 8811: '\'' sh
! 8812: '
1.1.1.6 root 8813: fi
1.1.1.9 ! root 8814: as_executable_p=$as_test_x
1.1 root 8815:
8816: # Sed expression to map a string onto a valid CPP name.
1.1.1.3 root 8817: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
1.1 root 8818:
8819: # Sed expression to map a string onto a valid variable name.
1.1.1.3 root 8820: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
1.1 root 8821:
8822:
8823: exec 6>&1
8824:
1.1.1.6 root 8825: # Save the log message, to keep $[0] and so on meaningful, and to
1.1 root 8826: # report actual input values of CONFIG_FILES etc. instead of their
1.1.1.6 root 8827: # values after options handling.
8828: ac_log="
1.1.1.9 ! root 8829: This file was extended by hatari $as_me 1.2.0, which was
! 8830: generated by GNU Autoconf 2.61. Invocation command line was
1.1 root 8831:
8832: CONFIG_FILES = $CONFIG_FILES
8833: CONFIG_HEADERS = $CONFIG_HEADERS
8834: CONFIG_LINKS = $CONFIG_LINKS
8835: CONFIG_COMMANDS = $CONFIG_COMMANDS
8836: $ $0 $@
8837:
1.1.1.6 root 8838: on `(hostname || uname -n) 2>/dev/null | sed 1q`
8839: "
8840:
1.1 root 8841: _ACEOF
8842:
1.1.1.6 root 8843: cat >>$CONFIG_STATUS <<_ACEOF
1.1 root 8844: # Files that config.status was made for.
1.1.1.6 root 8845: config_files="$ac_config_files"
8846: config_headers="$ac_config_headers"
1.1 root 8847:
1.1.1.6 root 8848: _ACEOF
1.1 root 8849:
8850: cat >>$CONFIG_STATUS <<\_ACEOF
8851: ac_cs_usage="\
8852: \`$as_me' instantiates files from templates according to the
8853: current configuration.
8854:
8855: Usage: $0 [OPTIONS] [FILE]...
8856:
8857: -h, --help print this help, then exit
1.1.1.9 ! root 8858: -V, --version print version number and configuration settings, then exit
1.1.1.3 root 8859: -q, --quiet do not print progress messages
1.1 root 8860: -d, --debug don't remove temporary files
8861: --recheck update $as_me by reconfiguring in the same conditions
8862: --file=FILE[:TEMPLATE]
1.1.1.3 root 8863: instantiate the configuration file FILE
1.1.1.6 root 8864: --header=FILE[:TEMPLATE]
8865: instantiate the configuration header FILE
1.1 root 8866:
8867: Configuration files:
8868: $config_files
8869:
1.1.1.6 root 8870: Configuration headers:
8871: $config_headers
8872:
1.1 root 8873: Report bugs to <[email protected]>."
8874:
1.1.1.6 root 8875: _ACEOF
1.1 root 8876: cat >>$CONFIG_STATUS <<_ACEOF
8877: ac_cs_version="\\
1.1.1.9 ! root 8878: hatari config.status 1.2.0
! 8879: configured by $0, generated by GNU Autoconf 2.61,
1.1.1.6 root 8880: with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
1.1 root 8881:
1.1.1.6 root 8882: Copyright (C) 2006 Free Software Foundation, Inc.
1.1 root 8883: This config.status script is free software; the Free Software Foundation
8884: gives unlimited permission to copy, distribute and modify it."
1.1.1.6 root 8885:
8886: ac_pwd='$ac_pwd'
8887: srcdir='$srcdir'
8888: INSTALL='$INSTALL'
1.1 root 8889: _ACEOF
8890:
8891: cat >>$CONFIG_STATUS <<\_ACEOF
8892: # If no file are specified by the user, then we need to provide default
8893: # value. By we need to know if files were specified by the user.
8894: ac_need_defaults=:
8895: while test $# != 0
8896: do
8897: case $1 in
8898: --*=*)
1.1.1.6 root 8899: ac_option=`expr "X$1" : 'X\([^=]*\)='`
8900: ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
1.1.1.3 root 8901: ac_shift=:
8902: ;;
1.1.1.6 root 8903: *)
1.1.1.3 root 8904: ac_option=$1
8905: ac_optarg=$2
8906: ac_shift=shift
1.1 root 8907: ;;
8908: esac
8909:
1.1.1.3 root 8910: case $ac_option in
1.1 root 8911: # Handling of the options.
1.1.1.3 root 8912: -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8913: ac_cs_recheck=: ;;
1.1.1.6 root 8914: --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
8915: echo "$ac_cs_version"; exit ;;
8916: --debug | --debu | --deb | --de | --d | -d )
1.1 root 8917: debug=: ;;
8918: --file | --fil | --fi | --f )
1.1.1.3 root 8919: $ac_shift
8920: CONFIG_FILES="$CONFIG_FILES $ac_optarg"
1.1 root 8921: ac_need_defaults=false;;
8922: --header | --heade | --head | --hea )
1.1.1.3 root 8923: $ac_shift
8924: CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
1.1 root 8925: ac_need_defaults=false;;
1.1.1.6 root 8926: --he | --h)
8927: # Conflict between --help and --header
8928: { echo "$as_me: error: ambiguous option: $1
8929: Try \`$0 --help' for more information." >&2
8930: { (exit 1); exit 1; }; };;
8931: --help | --hel | -h )
8932: echo "$ac_cs_usage"; exit ;;
1.1.1.3 root 8933: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
8934: | -silent | --silent | --silen | --sile | --sil | --si | --s)
8935: ac_cs_silent=: ;;
1.1 root 8936:
8937: # This is an error.
1.1.1.6 root 8938: -*) { echo "$as_me: error: unrecognized option: $1
8939: Try \`$0 --help' for more information." >&2
1.1 root 8940: { (exit 1); exit 1; }; } ;;
8941:
1.1.1.6 root 8942: *) ac_config_targets="$ac_config_targets $1"
8943: ac_need_defaults=false ;;
1.1 root 8944:
8945: esac
8946: shift
8947: done
8948:
1.1.1.3 root 8949: ac_configure_extra_args=
8950:
8951: if $ac_cs_silent; then
8952: exec 6>/dev/null
8953: ac_configure_extra_args="$ac_configure_extra_args --silent"
8954: fi
8955:
8956: _ACEOF
8957: cat >>$CONFIG_STATUS <<_ACEOF
8958: if \$ac_cs_recheck; then
1.1.1.6 root 8959: echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
8960: CONFIG_SHELL=$SHELL
8961: export CONFIG_SHELL
8962: exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
1.1.1.3 root 8963: fi
8964:
1.1 root 8965: _ACEOF
1.1.1.6 root 8966: cat >>$CONFIG_STATUS <<\_ACEOF
8967: exec 5>>config.log
8968: {
8969: echo
8970: sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8971: ## Running $as_me. ##
8972: _ASBOX
8973: echo "$ac_log"
8974: } >&5
1.1 root 8975:
1.1.1.6 root 8976: _ACEOF
8977: cat >>$CONFIG_STATUS <<_ACEOF
8978: _ACEOF
1.1 root 8979:
8980: cat >>$CONFIG_STATUS <<\_ACEOF
1.1.1.6 root 8981:
8982: # Handling of arguments.
1.1 root 8983: for ac_config_target in $ac_config_targets
8984: do
1.1.1.6 root 8985: case $ac_config_target in
8986: "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
8987: "Makefile.cnf") CONFIG_FILES="$CONFIG_FILES Makefile.cnf" ;;
8988:
1.1 root 8989: *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
8990: echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
8991: { (exit 1); exit 1; }; };;
8992: esac
8993: done
8994:
1.1.1.6 root 8995:
1.1 root 8996: # If the user did not use the arguments to specify the items to instantiate,
8997: # then the envvar interface is used. Set only those that are not.
8998: # We use the long form for the default assignment because of an extremely
8999: # bizarre bug on SunOS 4.1.3.
9000: if $ac_need_defaults; then
9001: test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
1.1.1.6 root 9002: test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
1.1 root 9003: fi
9004:
1.1.1.3 root 9005: # Have a temporary directory for convenience. Make it in the build tree
1.1.1.6 root 9006: # simply because there is no reason against having it here, and in addition,
1.1.1.3 root 9007: # creating and moving files from /tmp can sometimes cause problems.
1.1.1.6 root 9008: # Hook for its removal unless debugging.
9009: # Note that there is a small window in which the directory will not be cleaned:
9010: # after its creation but before its name has been assigned to `$tmp'.
1.1 root 9011: $debug ||
9012: {
1.1.1.6 root 9013: tmp=
9014: trap 'exit_status=$?
9015: { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
9016: ' 0
1.1 root 9017: trap '{ (exit 1); exit 1; }' 1 2 13 15
9018: }
9019: # Create a (secure) tmp directory for tmp files.
1.1.1.3 root 9020:
1.1 root 9021: {
1.1.1.6 root 9022: tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
1.1 root 9023: test -n "$tmp" && test -d "$tmp"
9024: } ||
9025: {
1.1.1.6 root 9026: tmp=./conf$$-$RANDOM
9027: (umask 077 && mkdir "$tmp")
1.1 root 9028: } ||
9029: {
1.1.1.3 root 9030: echo "$me: cannot create a temporary directory in ." >&2
1.1 root 9031: { (exit 1); exit 1; }
9032: }
9033:
9034: #
1.1.1.6 root 9035: # Set up the sed scripts for CONFIG_FILES section.
1.1 root 9036: #
9037:
9038: # No need to generate the scripts if there are no CONFIG_FILES.
9039: # This happens for instance when ./config.status config.h
1.1.1.6 root 9040: if test -n "$CONFIG_FILES"; then
9041:
9042: _ACEOF
9043:
9044:
9045:
9046: ac_delim='%!_!# '
9047: for ac_last_try in false false false false false :; do
9048: cat >conf$$subs.sed <<_ACEOF
9049: SHELL!$SHELL$ac_delim
9050: PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
9051: PACKAGE_NAME!$PACKAGE_NAME$ac_delim
9052: PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
9053: PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
9054: PACKAGE_STRING!$PACKAGE_STRING$ac_delim
9055: PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
9056: exec_prefix!$exec_prefix$ac_delim
9057: prefix!$prefix$ac_delim
9058: program_transform_name!$program_transform_name$ac_delim
9059: bindir!$bindir$ac_delim
9060: sbindir!$sbindir$ac_delim
9061: libexecdir!$libexecdir$ac_delim
9062: datarootdir!$datarootdir$ac_delim
9063: datadir!$datadir$ac_delim
9064: sysconfdir!$sysconfdir$ac_delim
9065: sharedstatedir!$sharedstatedir$ac_delim
9066: localstatedir!$localstatedir$ac_delim
9067: includedir!$includedir$ac_delim
9068: oldincludedir!$oldincludedir$ac_delim
9069: docdir!$docdir$ac_delim
9070: infodir!$infodir$ac_delim
9071: htmldir!$htmldir$ac_delim
9072: dvidir!$dvidir$ac_delim
9073: pdfdir!$pdfdir$ac_delim
9074: psdir!$psdir$ac_delim
9075: libdir!$libdir$ac_delim
9076: localedir!$localedir$ac_delim
9077: mandir!$mandir$ac_delim
9078: DEFS!$DEFS$ac_delim
9079: ECHO_C!$ECHO_C$ac_delim
9080: ECHO_N!$ECHO_N$ac_delim
9081: ECHO_T!$ECHO_T$ac_delim
9082: LIBS!$LIBS$ac_delim
9083: build_alias!$build_alias$ac_delim
9084: host_alias!$host_alias$ac_delim
9085: target_alias!$target_alias$ac_delim
9086: build!$build$ac_delim
9087: build_cpu!$build_cpu$ac_delim
9088: build_vendor!$build_vendor$ac_delim
9089: build_os!$build_os$ac_delim
9090: host!$host$ac_delim
9091: host_cpu!$host_cpu$ac_delim
9092: host_vendor!$host_vendor$ac_delim
9093: host_os!$host_os$ac_delim
9094: target!$target$ac_delim
9095: target_cpu!$target_cpu$ac_delim
9096: target_vendor!$target_vendor$ac_delim
9097: target_os!$target_os$ac_delim
9098: CC!$CC$ac_delim
9099: CFLAGS!$CFLAGS$ac_delim
9100: LDFLAGS!$LDFLAGS$ac_delim
9101: CPPFLAGS!$CPPFLAGS$ac_delim
9102: ac_ct_CC!$ac_ct_CC$ac_delim
9103: EXEEXT!$EXEEXT$ac_delim
9104: OBJEXT!$OBJEXT$ac_delim
9105: INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
9106: INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
9107: INSTALL_DATA!$INSTALL_DATA$ac_delim
9108: RANLIB!$RANLIB$ac_delim
9109: CPP!$CPP$ac_delim
9110: GREP!$GREP$ac_delim
9111: EGREP!$EGREP$ac_delim
1.1.1.8 root 9112: SDL_CONFIG!$SDL_CONFIG$ac_delim
9113: SDL_CFLAGS!$SDL_CFLAGS$ac_delim
9114: SDL_LIBS!$SDL_LIBS$ac_delim
1.1.1.6 root 9115: HAVE_PKG_CONFIG!$HAVE_PKG_CONFIG$ac_delim
9116: PKG_CONFIG!$PKG_CONFIG$ac_delim
9117: X_CFLAGS!$X_CFLAGS$ac_delim
9118: X_LIBS!$X_LIBS$ac_delim
9119: XMKMF!$XMKMF$ac_delim
9120: X_PRE_LIBS!$X_PRE_LIBS$ac_delim
9121: X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
9122: LIBOBJS!$LIBOBJS$ac_delim
9123: HOSTCC!$HOSTCC$ac_delim
9124: HOSTCFLAGS!$HOSTCFLAGS$ac_delim
9125: HOSTLDFLAGS!$HOSTLDFLAGS$ac_delim
9126: LTLIBOBJS!$LTLIBOBJS$ac_delim
9127: _ACEOF
9128:
9129: if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 78; then
9130: break
9131: elif $ac_last_try; then
9132: { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
9133: echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
9134: { (exit 1); exit 1; }; }
9135: else
9136: ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
1.1 root 9137: fi
1.1.1.6 root 9138: done
9139:
9140: ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
9141: if test -n "$ac_eof"; then
9142: ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
9143: ac_eof=`expr $ac_eof + 1`
9144: fi
1.1 root 9145:
1.1.1.6 root 9146: cat >>$CONFIG_STATUS <<_ACEOF
9147: cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
9148: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
1.1 root 9149: _ACEOF
1.1.1.6 root 9150: sed '
9151: s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
9152: s/^/s,@/; s/!/@,|#_!!_#|/
9153: :n
9154: t n
9155: s/'"$ac_delim"'$/,g/; t
9156: s/$/\\/; p
9157: N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
9158: ' >>$CONFIG_STATUS <conf$$subs.sed
9159: rm -f conf$$subs.sed
9160: cat >>$CONFIG_STATUS <<_ACEOF
9161: :end
9162: s/|#_!!_#|//g
9163: CEOF$ac_eof
9164: _ACEOF
9165:
9166:
9167: # VPATH may cause trouble with some makes, so we remove $(srcdir),
9168: # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
9169: # trailing colons and then remove the whole line if VPATH becomes empty
9170: # (actually we leave an empty line to preserve line numbers).
9171: if test "x$srcdir" = x.; then
9172: ac_vpsub='/^[ ]*VPATH[ ]*=/{
9173: s/:*\$(srcdir):*/:/
9174: s/:*\${srcdir}:*/:/
9175: s/:*@srcdir@:*/:/
9176: s/^\([^=]*=[ ]*\):*/\1/
9177: s/:*$//
9178: s/^[^=]*=[ ]*$//
9179: }'
9180: fi
9181:
1.1 root 9182: cat >>$CONFIG_STATUS <<\_ACEOF
1.1.1.6 root 9183: fi # test -n "$CONFIG_FILES"
9184:
9185:
9186: for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS
9187: do
9188: case $ac_tag in
9189: :[FHLC]) ac_mode=$ac_tag; continue;;
9190: esac
9191: case $ac_mode$ac_tag in
9192: :[FHL]*:*);;
9193: :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
9194: echo "$as_me: error: Invalid tag $ac_tag." >&2;}
9195: { (exit 1); exit 1; }; };;
9196: :[FH]-) ac_tag=-:-;;
9197: :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
9198: esac
9199: ac_save_IFS=$IFS
9200: IFS=:
9201: set x $ac_tag
9202: IFS=$ac_save_IFS
9203: shift
9204: ac_file=$1
9205: shift
9206:
9207: case $ac_mode in
9208: :L) ac_source=$1;;
9209: :[FH])
9210: ac_file_inputs=
9211: for ac_f
9212: do
9213: case $ac_f in
9214: -) ac_f="$tmp/stdin";;
9215: *) # Look for the file first in the build tree, then in the source tree
9216: # (if the path is not absolute). The absolute path cannot be DOS-style,
9217: # because $ac_f cannot contain `:'.
9218: test -f "$ac_f" ||
9219: case $ac_f in
9220: [\\/$]*) false;;
9221: *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
9222: esac ||
9223: { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
9224: echo "$as_me: error: cannot find input file: $ac_f" >&2;}
9225: { (exit 1); exit 1; }; };;
9226: esac
9227: ac_file_inputs="$ac_file_inputs $ac_f"
9228: done
9229:
9230: # Let's still pretend it is `configure' which instantiates (i.e., don't
9231: # use $as_me), people would be surprised to read:
9232: # /* config.h. Generated by config.status. */
9233: configure_input="Generated from "`IFS=:
9234: echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
9235: if test x"$ac_file" != x-; then
9236: configure_input="$ac_file. $configure_input"
9237: { echo "$as_me:$LINENO: creating $ac_file" >&5
9238: echo "$as_me: creating $ac_file" >&6;}
9239: fi
9240:
9241: case $ac_tag in
9242: *:-:* | *:-) cat >"$tmp/stdin";;
9243: esac
9244: ;;
1.1 root 9245: esac
9246:
1.1.1.6 root 9247: ac_dir=`$as_dirname -- "$ac_file" ||
1.1 root 9248: $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1.1.1.3 root 9249: X"$ac_file" : 'X\(//\)[^/]' \| \
9250: X"$ac_file" : 'X\(//\)$' \| \
1.1.1.6 root 9251: X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
1.1 root 9252: echo X"$ac_file" |
1.1.1.6 root 9253: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9254: s//\1/
9255: q
9256: }
9257: /^X\(\/\/\)[^/].*/{
9258: s//\1/
9259: q
9260: }
9261: /^X\(\/\/\)$/{
9262: s//\1/
9263: q
9264: }
9265: /^X\(\/\).*/{
9266: s//\1/
9267: q
9268: }
9269: s/.*/./; q'`
9270: { as_dir="$ac_dir"
9271: case $as_dir in #(
9272: -*) as_dir=./$as_dir;;
9273: esac
9274: test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
1.1.1.3 root 9275: as_dirs=
1.1.1.6 root 9276: while :; do
9277: case $as_dir in #(
9278: *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
9279: *) as_qdir=$as_dir;;
9280: esac
9281: as_dirs="'$as_qdir' $as_dirs"
9282: as_dir=`$as_dirname -- "$as_dir" ||
1.1.1.3 root 9283: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9284: X"$as_dir" : 'X\(//\)[^/]' \| \
9285: X"$as_dir" : 'X\(//\)$' \| \
1.1.1.6 root 9286: X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
1.1.1.3 root 9287: echo X"$as_dir" |
1.1.1.6 root 9288: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9289: s//\1/
9290: q
9291: }
9292: /^X\(\/\/\)[^/].*/{
9293: s//\1/
9294: q
9295: }
9296: /^X\(\/\/\)$/{
9297: s//\1/
9298: q
9299: }
9300: /^X\(\/\).*/{
9301: s//\1/
9302: q
9303: }
9304: s/.*/./; q'`
9305: test -d "$as_dir" && break
1.1.1.3 root 9306: done
1.1.1.6 root 9307: test -z "$as_dirs" || eval "mkdir $as_dirs"
9308: } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
9309: echo "$as_me: error: cannot create directory $as_dir" >&2;}
1.1.1.3 root 9310: { (exit 1); exit 1; }; }; }
1.1 root 9311: ac_builddir=.
9312:
1.1.1.6 root 9313: case "$ac_dir" in
9314: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
9315: *)
1.1 root 9316: ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1.1.1.6 root 9317: # A ".." for each directory in $ac_dir_suffix.
9318: ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
9319: case $ac_top_builddir_sub in
9320: "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
9321: *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
9322: esac ;;
9323: esac
9324: ac_abs_top_builddir=$ac_pwd
9325: ac_abs_builddir=$ac_pwd$ac_dir_suffix
9326: # for backward compatibility:
9327: ac_top_builddir=$ac_top_build_prefix
1.1 root 9328:
9329: case $srcdir in
1.1.1.6 root 9330: .) # We are building in place.
1.1 root 9331: ac_srcdir=.
1.1.1.6 root 9332: ac_top_srcdir=$ac_top_builddir_sub
9333: ac_abs_top_srcdir=$ac_pwd ;;
9334: [\\/]* | ?:[\\/]* ) # Absolute name.
1.1 root 9335: ac_srcdir=$srcdir$ac_dir_suffix;
1.1.1.6 root 9336: ac_top_srcdir=$srcdir
9337: ac_abs_top_srcdir=$srcdir ;;
9338: *) # Relative name.
9339: ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
9340: ac_top_srcdir=$ac_top_build_prefix$srcdir
9341: ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1.1 root 9342: esac
1.1.1.6 root 9343: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1.1.1.3 root 9344:
1.1 root 9345:
1.1.1.6 root 9346: case $ac_mode in
9347: :F)
9348: #
9349: # CONFIG_FILE
9350: #
1.1 root 9351:
9352: case $INSTALL in
9353: [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
1.1.1.6 root 9354: *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
1.1 root 9355: esac
1.1.1.6 root 9356: _ACEOF
1.1 root 9357:
1.1.1.6 root 9358: cat >>$CONFIG_STATUS <<\_ACEOF
9359: # If the template does not know about datarootdir, expand it.
9360: # FIXME: This hack should be removed a few years after 2.60.
9361: ac_datarootdir_hack=; ac_datarootdir_seen=
9362:
9363: case `sed -n '/datarootdir/ {
9364: p
9365: q
9366: }
9367: /@datadir@/p
9368: /@docdir@/p
9369: /@infodir@/p
9370: /@localedir@/p
9371: /@mandir@/p
9372: ' $ac_file_inputs` in
9373: *datarootdir*) ac_datarootdir_seen=yes;;
9374: *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
9375: { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
9376: echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
1.1 root 9377: _ACEOF
9378: cat >>$CONFIG_STATUS <<_ACEOF
1.1.1.6 root 9379: ac_datarootdir_hack='
9380: s&@datadir@&$datadir&g
9381: s&@docdir@&$docdir&g
9382: s&@infodir@&$infodir&g
9383: s&@localedir@&$localedir&g
9384: s&@mandir@&$mandir&g
9385: s&\\\${datarootdir}&$datarootdir&g' ;;
9386: esac
9387: _ACEOF
9388:
9389: # Neutralize VPATH when `$srcdir' = `.'.
9390: # Shell code in configure.ac might set extrasub.
9391: # FIXME: do we really want to maintain this feature?
9392: cat >>$CONFIG_STATUS <<_ACEOF
1.1 root 9393: sed "$ac_vpsub
9394: $extrasub
9395: _ACEOF
9396: cat >>$CONFIG_STATUS <<\_ACEOF
9397: :t
9398: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
1.1.1.6 root 9399: s&@configure_input@&$configure_input&;t t
9400: s&@top_builddir@&$ac_top_builddir_sub&;t t
9401: s&@srcdir@&$ac_srcdir&;t t
9402: s&@abs_srcdir@&$ac_abs_srcdir&;t t
9403: s&@top_srcdir@&$ac_top_srcdir&;t t
9404: s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
9405: s&@builddir@&$ac_builddir&;t t
9406: s&@abs_builddir@&$ac_abs_builddir&;t t
9407: s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
9408: s&@INSTALL@&$ac_INSTALL&;t t
9409: $ac_datarootdir_hack
9410: " $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out
9411:
9412: test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
9413: { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
9414: { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
9415: { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
9416: which seems to be undefined. Please make sure it is defined." >&5
9417: echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
9418: which seems to be undefined. Please make sure it is defined." >&2;}
9419:
9420: rm -f "$tmp/stdin"
9421: case $ac_file in
9422: -) cat "$tmp/out"; rm -f "$tmp/out";;
9423: *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
9424: esac
9425: ;;
9426: :H)
9427: #
9428: # CONFIG_HEADER
9429: #
9430: _ACEOF
9431:
9432: # Transform confdefs.h into a sed script `conftest.defines', that
9433: # substitutes the proper values into config.h.in to produce config.h.
9434: rm -f conftest.defines conftest.tail
9435: # First, append a space to every undef/define line, to ease matching.
9436: echo 's/$/ /' >conftest.defines
9437: # Then, protect against being on the right side of a sed subst, or in
9438: # an unquoted here document, in config.status. If some macros were
9439: # called several times there might be several #defines for the same
9440: # symbol, which is useless. But do not sort them, since the last
9441: # AC_DEFINE must be honored.
9442: ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
9443: # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
9444: # NAME is the cpp macro being defined, VALUE is the value it is being given.
9445: # PARAMS is the parameter list in the macro definition--in most cases, it's
9446: # just an empty string.
9447: ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
9448: ac_dB='\\)[ (].*,\\1define\\2'
9449: ac_dC=' '
9450: ac_dD=' ,'
9451:
9452: uniq confdefs.h |
9453: sed -n '
9454: t rset
9455: :rset
9456: s/^[ ]*#[ ]*define[ ][ ]*//
9457: t ok
9458: d
9459: :ok
9460: s/[\\&,]/\\&/g
9461: s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
9462: s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
9463: ' >>conftest.defines
9464:
9465: # Remove the space that was appended to ease matching.
9466: # Then replace #undef with comments. This is necessary, for
9467: # example, in the case of _POSIX_SOURCE, which is predefined and required
9468: # on some systems where configure will not decide to define it.
9469: # (The regexp can be short, since the line contains either #define or #undef.)
9470: echo 's/ $//
9471: s,^[ #]*u.*,/* & */,' >>conftest.defines
9472:
9473: # Break up conftest.defines:
9474: ac_max_sed_lines=50
9475:
9476: # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
9477: # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
9478: # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
9479: # et cetera.
9480: ac_in='$ac_file_inputs'
9481: ac_out='"$tmp/out1"'
9482: ac_nxt='"$tmp/out2"'
9483:
9484: while :
9485: do
9486: # Write a here document:
9487: cat >>$CONFIG_STATUS <<_ACEOF
9488: # First, check the format of the line:
9489: cat >"\$tmp/defines.sed" <<\\CEOF
9490: /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
9491: /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
9492: b
9493: :def
9494: _ACEOF
9495: sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
9496: echo 'CEOF
9497: sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
9498: ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
9499: sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
9500: grep . conftest.tail >/dev/null || break
9501: rm -f conftest.defines
9502: mv conftest.tail conftest.defines
9503: done
9504: rm -f conftest.defines conftest.tail
9505:
9506: echo "ac_result=$ac_in" >>$CONFIG_STATUS
9507: cat >>$CONFIG_STATUS <<\_ACEOF
1.1 root 9508: if test x"$ac_file" != x-; then
1.1.1.6 root 9509: echo "/* $configure_input */" >"$tmp/config.h"
9510: cat "$ac_result" >>"$tmp/config.h"
9511: if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
9512: { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
9513: echo "$as_me: $ac_file is unchanged" >&6;}
9514: else
9515: rm -f $ac_file
9516: mv "$tmp/config.h" $ac_file
9517: fi
1.1 root 9518: else
1.1.1.6 root 9519: echo "/* $configure_input */"
9520: cat "$ac_result"
1.1 root 9521: fi
1.1.1.6 root 9522: rm -f "$tmp/out12"
9523: ;;
1.1 root 9524:
9525:
1.1.1.6 root 9526: esac
9527:
9528: done # for ac_tag
9529:
1.1 root 9530:
9531: { (exit 0); exit 0; }
9532: _ACEOF
9533: chmod +x $CONFIG_STATUS
9534: ac_clean_files=$ac_clean_files_save
9535:
9536:
9537: # configure is writing to config.log, and then calls config.status.
9538: # config.status does its own redirection, appending to config.log.
9539: # Unfortunately, on DOS this fails, as config.log is still kept open
9540: # by configure, so config.status won't be able to write to it; its
9541: # output is simply discarded. So we exec the FD to /dev/null,
9542: # effectively closing config.log, so it can be properly (re)opened and
9543: # appended to by config.status. When coming back to configure, we
9544: # need to make the FD available again.
9545: if test "$no_create" != yes; then
9546: ac_cs_success=:
1.1.1.3 root 9547: ac_config_status_args=
9548: test "$silent" = yes &&
9549: ac_config_status_args="$ac_config_status_args --quiet"
1.1 root 9550: exec 5>/dev/null
1.1.1.3 root 9551: $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
1.1 root 9552: exec 5>>config.log
9553: # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9554: # would make configure fail if this is the last instruction.
9555: $ac_cs_success || { (exit 1); exit 1; }
9556: fi
9557:
9558:
9559:
9560: { echo "$as_me:$LINENO: +-----------------------------------------------------+" >&5
9561: echo "$as_me: +-----------------------------------------------------+" >&6;}
9562: { echo "$as_me:$LINENO: | |" >&5
9563: echo "$as_me: | |" >&6;}
9564: { echo "$as_me:$LINENO: | Configuration finished. Now you can compile Hatari. |" >&5
9565: echo "$as_me: | Configuration finished. Now you can compile Hatari. |" >&6;}
9566: { echo "$as_me:$LINENO: | Note that you have to use GNU-Make to build it. |" >&5
9567: echo "$as_me: | Note that you have to use GNU-Make to build it. |" >&6;}
9568: { echo "$as_me:$LINENO: | |" >&5
9569: echo "$as_me: | |" >&6;}
9570: { echo "$as_me:$LINENO: | - If you are using Linux then type: make |" >&5
9571: echo "$as_me: | - If you are using Linux then type: make |" >&6;}
9572: { echo "$as_me:$LINENO: | - If you are using *BSD then try : gmake |" >&5
9573: echo "$as_me: | - If you are using *BSD then try : gmake |" >&6;}
9574: { echo "$as_me:$LINENO: | |" >&5
9575: echo "$as_me: | |" >&6;}
9576: { echo "$as_me:$LINENO: | After compiling, you can install the program by |" >&5
9577: echo "$as_me: | After compiling, you can install the program by |" >&6;}
9578: { echo "$as_me:$LINENO: | typing: make install (or: gmake install) |" >&5
9579: echo "$as_me: | typing: make install (or: gmake install) |" >&6;}
9580: { echo "$as_me:$LINENO: | |" >&5
9581: echo "$as_me: | |" >&6;}
9582: { echo "$as_me:$LINENO: | For information about the configuration variables, |" >&5
9583: echo "$as_me: | For information about the configuration variables, |" >&6;}
1.1.1.6 root 9584: { echo "$as_me:$LINENO: | please have a look at Makefile.cnf and config.h. |" >&5
9585: echo "$as_me: | please have a look at Makefile.cnf and config.h. |" >&6;}
1.1 root 9586: { echo "$as_me:$LINENO: | |" >&5
9587: echo "$as_me: | |" >&6;}
9588: { echo "$as_me:$LINENO: +-----------------------------------------------------+" >&5
9589: echo "$as_me: +-----------------------------------------------------+" >&6;}
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.