|
|
1.1 root 1: #! /bin/sh
2: # Guess values for system-dependent variables and create Makefiles.
1.1.1.24! root 3: # Generated by GNU Autoconf 2.61 for UAE 0.8.28.
1.1 root 4: #
1.1.1.22 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.
1.1.1.19 root 9: ## --------------------- ##
10: ## M4sh Initialization. ##
11: ## --------------------- ##
12:
1.1.1.22 root 13: # Be more Bourne compatible
14: DUALCASE=1; export DUALCASE # for MKS sh
1.1.1.19 root 15: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16: emulate sh
17: NULLCMD=:
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.22 root 21: setopt NO_GLOB_SUBST
22: else
23: case `(set -o) 2>/dev/null` in
24: *posix*) set -o posix ;;
25: esac
26:
27: fi
28:
29:
30:
31:
32: # PATH needs CR
33: # Avoid depending upon Character Ranges.
34: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37: as_cr_digits='0123456789'
38: as_cr_alnum=$as_cr_Letters$as_cr_digits
39:
40: # The user is always right.
41: if test "${PATH_SEPARATOR+set}" != set; then
42: echo "#! /bin/sh" >conf$$.sh
43: echo "exit 0" >>conf$$.sh
44: chmod +x conf$$.sh
45: if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46: PATH_SEPARATOR=';'
47: else
48: PATH_SEPARATOR=:
49: fi
50: rm -f conf$$.sh
1.1.1.19 root 51: fi
52:
53: # Support unset when possible.
54: if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55: as_unset=unset
56: else
57: as_unset=false
58: fi
59:
60:
1.1.1.22 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.19 root 94: # Work around bugs in pre-3.0 UWIN ksh.
1.1.1.22 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.19 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.22 root 111: ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
1.1.1.19 root 112: fi
113: done
114:
115: # Required to use basename.
1.1.1.22 root 116: if expr a : '\(a\)' >/dev/null 2>&1 &&
117: test "X`expr 00001 : '.*\(...\)'`" = X001; then
1.1.1.19 root 118: as_expr=expr
119: else
120: as_expr=false
121: fi
122:
1.1.1.22 root 123: if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
1.1.1.19 root 124: as_basename=basename
125: else
126: as_basename=false
127: fi
128:
129:
130: # Name of the executable.
1.1.1.22 root 131: as_me=`$as_basename -- "$0" ||
1.1.1.19 root 132: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133: X"$0" : 'X\(//\)$' \| \
1.1.1.22 root 134: X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1.1.1.19 root 135: echo X/"$0" |
1.1.1.22 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.1.19 root 149:
1.1.1.22 root 150: # CDPATH.
151: $as_unset CDPATH
1.1.1.19 root 152:
153:
1.1.1.22 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.1.19 root 184: fi
185:
1.1.1.22 root 186: if as_func_failure; then
187: exitcode=1
188: echo as_func_failure succeeded.
189: fi
1.1.1.19 root 190:
1.1.1.22 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.1.19 root 197:
1.1.1.22 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.1.19 root 221: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222: for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223: do
224: IFS=$as_save_IFS
225: test -z "$as_dir" && as_dir=.
1.1.1.22 root 226: case $as_dir in
1.1.1.19 root 227: /*)
1.1.1.22 root 228: for as_base in sh bash ksh sh5; do
229: as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230: done;;
231: esac
232: done
233: IFS=$as_save_IFS
234:
235:
236: for as_shell in $as_candidate_shells $SHELL; do
237: # Try only shells that exist, to save several forks.
238: if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239: { ("$as_shell") 2> /dev/null <<\_ASEOF
240: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
241: emulate sh
242: NULLCMD=:
243: # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244: # is contrary to our usage. Disable this feature.
245: alias -g '${1+"$@"}'='"$@"'
246: setopt NO_GLOB_SUBST
247: else
248: case `(set -o) 2>/dev/null` in
249: *posix*) set -o posix ;;
250: esac
251:
252: fi
253:
254:
255: :
256: _ASEOF
257: }; then
258: CONFIG_SHELL=$as_shell
259: as_have_required=yes
260: if { "$as_shell" 2> /dev/null <<\_ASEOF
261: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262: emulate sh
263: NULLCMD=:
264: # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265: # is contrary to our usage. Disable this feature.
266: alias -g '${1+"$@"}'='"$@"'
267: setopt NO_GLOB_SUBST
268: else
269: case `(set -o) 2>/dev/null` in
270: *posix*) set -o posix ;;
271: esac
272:
273: fi
274:
275:
276: :
277: (as_func_return () {
278: (exit $1)
279: }
280: as_func_success () {
281: as_func_return 0
282: }
283: as_func_failure () {
284: as_func_return 1
285: }
286: as_func_ret_success () {
287: return 0
288: }
289: as_func_ret_failure () {
290: return 1
291: }
292:
293: exitcode=0
294: if as_func_success; then
295: :
296: else
297: exitcode=1
298: echo as_func_success failed.
299: fi
300:
301: if as_func_failure; then
302: exitcode=1
303: echo as_func_failure succeeded.
304: fi
305:
306: if as_func_ret_success; then
307: :
308: else
309: exitcode=1
310: echo as_func_ret_success failed.
311: fi
312:
313: if as_func_ret_failure; then
314: exitcode=1
315: echo as_func_ret_failure succeeded.
316: fi
317:
318: if ( set x; as_func_ret_success y && test x = "$1" ); then
319: :
320: else
321: exitcode=1
322: echo positional parameters were not saved.
323: fi
324:
325: test $exitcode = 0) || { (exit 1); exit 1; }
326:
327: (
1.1.1.19 root 328: as_lineno_1=$LINENO
329: as_lineno_2=$LINENO
330: test "x$as_lineno_1" != "x$as_lineno_2" &&
1.1.1.22 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.1.19 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.22 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.1.19 root 435: # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
1.1.1.22 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.1.19 root 442: sed '
1.1.1.22 root 443: s/[$]LINENO.*/&-/
444: t lineno
445: b
446: :lineno
1.1.1.19 root 447: N
1.1.1.22 root 448: :loop
449: s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
1.1.1.19 root 450: t loop
1.1.1.22 root 451: s/-\n.*//
1.1.1.19 root 452: ' >$as_me.lineno &&
1.1.1.22 root 453: chmod +x "$as_me.lineno" ||
1.1.1.19 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.22 root 459: # original and so on. Autoconf is especially sensitive to this).
460: . "./$as_me.lineno"
1.1.1.19 root 461: # Exit status is that of the last command.
462: exit
463: }
464:
465:
1.1.1.22 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.1.19 root 481: esac
1.1 root 482:
1.1.1.22 root 483: if expr a : '\(a\)' >/dev/null 2>&1 &&
484: test "X`expr 00001 : '.*\(...\)'`" = X001; then
1.1.1.19 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.22 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.1.19 root 497: echo >conf$$.file
498: if ln -s conf$$.file conf$$ 2>/dev/null; then
1.1.1.22 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.1.19 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.22 root 511: rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512: rmdir conf$$.dir 2>/dev/null
1.1.1.19 root 513:
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.22 root 521: if test -x / >/dev/null 2>&1; then
522: as_test_x='test -x'
523: else
524: if ls -dL / >/dev/null 2>&1; then
525: as_ls_L_option=L
526: else
527: as_ls_L_option=
528: fi
529: as_test_x='
530: eval sh -c '\''
531: if test -d "$1"; then
532: test -d "$1/.";
533: else
534: case $1 in
535: -*)set "./$1";;
536: esac;
537: case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538: ???[sx]*):;;*)false;;esac;fi
539: '\'' sh
540: '
541: fi
542: as_executable_p=$as_test_x
1.1.1.19 root 543:
544: # Sed expression to map a string onto a valid CPP name.
545: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
546:
547: # Sed expression to map a string onto a valid variable name.
548: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
549:
550:
551:
1.1.1.22 root 552: exec 7<&0 </dev/null 6>&1
1.1.1.19 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: #
1.1 root 562: ac_default_prefix=/usr/local
1.1.1.22 root 563: ac_clean_files=
1.1.1.19 root 564: ac_config_libobj_dir=.
1.1.1.22 root 565: LIBOBJS=
1.1.1.19 root 566: cross_compiling=no
567: subdirs=
568: MFLAGS=
569: MAKEFLAGS=
570: SHELL=${CONFIG_SHELL-/bin/sh}
571:
572: # Identity of this package.
1.1.1.22 root 573: PACKAGE_NAME='UAE'
574: PACKAGE_TARNAME='uae'
1.1.1.24! root 575: PACKAGE_VERSION='0.8.28'
! 576: PACKAGE_STRING='UAE 0.8.28'
1.1.1.22 root 577: PACKAGE_BUGREPORT=''
1.1.1.19 root 578:
579: ac_unique_file="amiga/source/transdisk.c"
580: # Factoring default headers for most tests.
581: ac_includes_default="\
582: #include <stdio.h>
1.1.1.22 root 583: #ifdef HAVE_SYS_TYPES_H
1.1.1.19 root 584: # include <sys/types.h>
585: #endif
1.1.1.22 root 586: #ifdef HAVE_SYS_STAT_H
1.1.1.19 root 587: # include <sys/stat.h>
588: #endif
1.1.1.22 root 589: #ifdef STDC_HEADERS
1.1.1.19 root 590: # include <stdlib.h>
591: # include <stddef.h>
592: #else
1.1.1.22 root 593: # ifdef HAVE_STDLIB_H
1.1.1.19 root 594: # include <stdlib.h>
595: # endif
596: #endif
1.1.1.22 root 597: #ifdef HAVE_STRING_H
598: # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
1.1.1.19 root 599: # include <memory.h>
600: # endif
601: # include <string.h>
602: #endif
1.1.1.22 root 603: #ifdef HAVE_STRINGS_H
1.1.1.19 root 604: # include <strings.h>
605: #endif
1.1.1.22 root 606: #ifdef HAVE_INTTYPES_H
1.1.1.19 root 607: # include <inttypes.h>
608: #endif
1.1.1.22 root 609: #ifdef HAVE_STDINT_H
610: # include <stdint.h>
611: #endif
612: #ifdef HAVE_UNISTD_H
1.1.1.19 root 613: # include <unistd.h>
614: #endif"
615:
1.1.1.22 root 616: ac_header_list=
617: ac_subst_vars='SHELL
618: PATH_SEPARATOR
619: PACKAGE_NAME
620: PACKAGE_TARNAME
621: PACKAGE_VERSION
622: PACKAGE_STRING
623: PACKAGE_BUGREPORT
624: exec_prefix
625: prefix
626: program_transform_name
627: bindir
628: sbindir
629: libexecdir
630: datarootdir
631: datadir
632: sysconfdir
633: sharedstatedir
634: localstatedir
635: includedir
636: oldincludedir
637: docdir
638: infodir
639: htmldir
640: dvidir
641: pdfdir
642: psdir
643: libdir
644: localedir
645: mandir
646: DEFS
647: ECHO_C
648: ECHO_N
649: ECHO_T
650: LIBS
651: build_alias
652: host_alias
653: target_alias
654: CC
655: CFLAGS
656: LDFLAGS
657: CPPFLAGS
658: ac_ct_CC
659: EXEEXT
660: OBJEXT
661: CPP
1.1.1.23 root 662: INSTALL_PROGRAM
663: INSTALL_SCRIPT
664: INSTALL_DATA
1.1.1.22 root 665: SET_MAKE
666: MAKEDEPPRG
667: FILEPRG
668: WRCPRG
669: RCLPRG
670: SDL_CONFIG
671: GREP
672: EGREP
673: build
674: build_cpu
675: build_vendor
676: build_os
677: host
678: host_cpu
679: host_vendor
680: host_os
681: XMKMF
682: X_CFLAGS
683: X_PRE_LIBS
684: X_LIBS
685: X_EXTRA_LIBS
686: LIBOBJS
687: PKG_CONFIG
688: GTK_CFLAGS
689: GTK_LIBS
690: ac_cv_c_inline
691: NO_SCHED_CFLAGS
692: NO_REORDER_CFLAGS
693: LIBRARIES
694: TARGET
695: GFXOBJS
1.1.1.23 root 696: GUIOBJS
1.1.1.22 root 697: RESOBJS
698: ASMOBJS
699: SCSIOBJS
700: CPUOBJS
701: DEBUGOBJS
702: FSDBOBJS
703: MATHLIB
704: SHM_SUPPORT_LINKS
705: top_srcdir
706: LTLIBOBJS'
1.1.1.19 root 707: ac_subst_files=''
1.1.1.22 root 708: ac_precious_vars='build_alias
709: host_alias
710: target_alias
711: CC
712: CFLAGS
713: LDFLAGS
714: LIBS
715: CPPFLAGS
716: CPP
717: XMKMF'
718:
1.1 root 719:
720: # Initialize some variables set by options.
1.1.1.19 root 721: ac_init_help=
722: ac_init_version=false
1.1 root 723: # The variables have the same names as the options, with
724: # dashes changed to underlines.
1.1.1.19 root 725: cache_file=/dev/null
1.1 root 726: exec_prefix=NONE
727: no_create=
728: no_recursion=
729: prefix=NONE
730: program_prefix=NONE
731: program_suffix=NONE
732: program_transform_name=s,x,x,
733: silent=
734: site=
735: srcdir=
736: verbose=
737: x_includes=NONE
738: x_libraries=NONE
1.1.1.19 root 739:
740: # Installation directory options.
741: # These are left unexpanded so users can "make install exec_prefix=/foo"
742: # and all the variables that are supposed to be based on exec_prefix
743: # by default will actually change.
744: # Use braces instead of parens because sh, perl, etc. also accept them.
1.1.1.22 root 745: # (The list follows the same order as the GNU Coding Standards.)
1.1 root 746: bindir='${exec_prefix}/bin'
747: sbindir='${exec_prefix}/sbin'
748: libexecdir='${exec_prefix}/libexec'
1.1.1.22 root 749: datarootdir='${prefix}/share'
750: datadir='${datarootdir}'
1.1 root 751: sysconfdir='${prefix}/etc'
752: sharedstatedir='${prefix}/com'
753: localstatedir='${prefix}/var'
754: includedir='${prefix}/include'
755: oldincludedir='/usr/include'
1.1.1.22 root 756: docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
757: infodir='${datarootdir}/info'
758: htmldir='${docdir}'
759: dvidir='${docdir}'
760: pdfdir='${docdir}'
761: psdir='${docdir}'
762: libdir='${exec_prefix}/lib'
763: localedir='${datarootdir}/locale'
764: mandir='${datarootdir}/man'
1.1 root 765:
766: ac_prev=
1.1.1.22 root 767: ac_dashdash=
1.1 root 768: for ac_option
769: do
770: # If the previous option needs an argument, assign it.
771: if test -n "$ac_prev"; then
1.1.1.22 root 772: eval $ac_prev=\$ac_option
1.1 root 773: ac_prev=
774: continue
775: fi
776:
1.1.1.22 root 777: case $ac_option in
778: *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
779: *) ac_optarg=yes ;;
780: esac
1.1 root 781:
782: # Accept the important Cygnus configure options, so we can diagnose typos.
783:
1.1.1.22 root 784: case $ac_dashdash$ac_option in
785: --)
786: ac_dashdash=yes ;;
1.1 root 787:
788: -bindir | --bindir | --bindi | --bind | --bin | --bi)
789: ac_prev=bindir ;;
790: -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1.1.1.19 root 791: bindir=$ac_optarg ;;
1.1 root 792:
793: -build | --build | --buil | --bui | --bu)
1.1.1.19 root 794: ac_prev=build_alias ;;
1.1 root 795: -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1.1.1.19 root 796: build_alias=$ac_optarg ;;
1.1 root 797:
798: -cache-file | --cache-file | --cache-fil | --cache-fi \
799: | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
800: ac_prev=cache_file ;;
801: -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
802: | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1.1.1.19 root 803: cache_file=$ac_optarg ;;
804:
805: --config-cache | -C)
806: cache_file=config.cache ;;
1.1 root 807:
1.1.1.22 root 808: -datadir | --datadir | --datadi | --datad)
1.1 root 809: ac_prev=datadir ;;
1.1.1.22 root 810: -datadir=* | --datadir=* | --datadi=* | --datad=*)
1.1.1.19 root 811: datadir=$ac_optarg ;;
1.1 root 812:
1.1.1.22 root 813: -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
814: | --dataroo | --dataro | --datar)
815: ac_prev=datarootdir ;;
816: -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
817: | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
818: datarootdir=$ac_optarg ;;
819:
1.1 root 820: -disable-* | --disable-*)
1.1.1.19 root 821: ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1.1 root 822: # Reject names that are not valid shell variable names.
1.1.1.22 root 823: expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1.1.1.19 root 824: { echo "$as_me: error: invalid feature name: $ac_feature" >&2
825: { (exit 1); exit 1; }; }
1.1.1.22 root 826: ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
827: eval enable_$ac_feature=no ;;
828:
829: -docdir | --docdir | --docdi | --doc | --do)
830: ac_prev=docdir ;;
831: -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
832: docdir=$ac_optarg ;;
833:
834: -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
835: ac_prev=dvidir ;;
836: -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
837: dvidir=$ac_optarg ;;
1.1 root 838:
839: -enable-* | --enable-*)
1.1.1.19 root 840: ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1.1 root 841: # Reject names that are not valid shell variable names.
1.1.1.22 root 842: expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1.1.1.19 root 843: { echo "$as_me: error: invalid feature name: $ac_feature" >&2
844: { (exit 1); exit 1; }; }
1.1.1.22 root 845: ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
846: eval enable_$ac_feature=\$ac_optarg ;;
1.1 root 847:
848: -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
849: | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
850: | --exec | --exe | --ex)
851: ac_prev=exec_prefix ;;
852: -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
853: | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
854: | --exec=* | --exe=* | --ex=*)
1.1.1.19 root 855: exec_prefix=$ac_optarg ;;
1.1 root 856:
857: -gas | --gas | --ga | --g)
858: # Obsolete; use --with-gas.
859: with_gas=yes ;;
860:
1.1.1.19 root 861: -help | --help | --hel | --he | -h)
862: ac_init_help=long ;;
863: -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
864: ac_init_help=recursive ;;
865: -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
866: ac_init_help=short ;;
1.1 root 867:
868: -host | --host | --hos | --ho)
1.1.1.19 root 869: ac_prev=host_alias ;;
1.1 root 870: -host=* | --host=* | --hos=* | --ho=*)
1.1.1.19 root 871: host_alias=$ac_optarg ;;
1.1 root 872:
1.1.1.22 root 873: -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
874: ac_prev=htmldir ;;
875: -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
876: | --ht=*)
877: htmldir=$ac_optarg ;;
878:
1.1 root 879: -includedir | --includedir | --includedi | --included | --include \
880: | --includ | --inclu | --incl | --inc)
881: ac_prev=includedir ;;
882: -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
883: | --includ=* | --inclu=* | --incl=* | --inc=*)
1.1.1.19 root 884: includedir=$ac_optarg ;;
1.1 root 885:
886: -infodir | --infodir | --infodi | --infod | --info | --inf)
887: ac_prev=infodir ;;
888: -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1.1.1.19 root 889: infodir=$ac_optarg ;;
1.1 root 890:
891: -libdir | --libdir | --libdi | --libd)
892: ac_prev=libdir ;;
893: -libdir=* | --libdir=* | --libdi=* | --libd=*)
1.1.1.19 root 894: libdir=$ac_optarg ;;
1.1 root 895:
896: -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
897: | --libexe | --libex | --libe)
898: ac_prev=libexecdir ;;
899: -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
900: | --libexe=* | --libex=* | --libe=*)
1.1.1.19 root 901: libexecdir=$ac_optarg ;;
1.1 root 902:
1.1.1.22 root 903: -localedir | --localedir | --localedi | --localed | --locale)
904: ac_prev=localedir ;;
905: -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
906: localedir=$ac_optarg ;;
907:
1.1 root 908: -localstatedir | --localstatedir | --localstatedi | --localstated \
1.1.1.22 root 909: | --localstate | --localstat | --localsta | --localst | --locals)
1.1 root 910: ac_prev=localstatedir ;;
911: -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1.1.1.22 root 912: | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1.1.1.19 root 913: localstatedir=$ac_optarg ;;
1.1 root 914:
915: -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
916: ac_prev=mandir ;;
917: -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1.1.1.19 root 918: mandir=$ac_optarg ;;
1.1 root 919:
920: -nfp | --nfp | --nf)
921: # Obsolete; use --without-fp.
922: with_fp=no ;;
923:
924: -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1.1.1.19 root 925: | --no-cr | --no-c | -n)
1.1 root 926: no_create=yes ;;
927:
928: -no-recursion | --no-recursion | --no-recursio | --no-recursi \
929: | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
930: no_recursion=yes ;;
931:
932: -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
933: | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
934: | --oldin | --oldi | --old | --ol | --o)
935: ac_prev=oldincludedir ;;
936: -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
937: | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
938: | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1.1.1.19 root 939: oldincludedir=$ac_optarg ;;
1.1 root 940:
941: -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
942: ac_prev=prefix ;;
943: -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1.1.1.19 root 944: prefix=$ac_optarg ;;
1.1 root 945:
946: -program-prefix | --program-prefix | --program-prefi | --program-pref \
947: | --program-pre | --program-pr | --program-p)
948: ac_prev=program_prefix ;;
949: -program-prefix=* | --program-prefix=* | --program-prefi=* \
950: | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1.1.1.19 root 951: program_prefix=$ac_optarg ;;
1.1 root 952:
953: -program-suffix | --program-suffix | --program-suffi | --program-suff \
954: | --program-suf | --program-su | --program-s)
955: ac_prev=program_suffix ;;
956: -program-suffix=* | --program-suffix=* | --program-suffi=* \
957: | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1.1.1.19 root 958: program_suffix=$ac_optarg ;;
1.1 root 959:
960: -program-transform-name | --program-transform-name \
961: | --program-transform-nam | --program-transform-na \
962: | --program-transform-n | --program-transform- \
963: | --program-transform | --program-transfor \
964: | --program-transfo | --program-transf \
965: | --program-trans | --program-tran \
966: | --progr-tra | --program-tr | --program-t)
967: ac_prev=program_transform_name ;;
968: -program-transform-name=* | --program-transform-name=* \
969: | --program-transform-nam=* | --program-transform-na=* \
970: | --program-transform-n=* | --program-transform-=* \
971: | --program-transform=* | --program-transfor=* \
972: | --program-transfo=* | --program-transf=* \
973: | --program-trans=* | --program-tran=* \
974: | --progr-tra=* | --program-tr=* | --program-t=*)
1.1.1.19 root 975: program_transform_name=$ac_optarg ;;
1.1 root 976:
1.1.1.22 root 977: -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
978: ac_prev=pdfdir ;;
979: -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
980: pdfdir=$ac_optarg ;;
981:
982: -psdir | --psdir | --psdi | --psd | --ps)
983: ac_prev=psdir ;;
984: -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
985: psdir=$ac_optarg ;;
986:
1.1 root 987: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
988: | -silent | --silent | --silen | --sile | --sil)
989: silent=yes ;;
990:
991: -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
992: ac_prev=sbindir ;;
993: -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
994: | --sbi=* | --sb=*)
1.1.1.19 root 995: sbindir=$ac_optarg ;;
1.1 root 996:
997: -sharedstatedir | --sharedstatedir | --sharedstatedi \
998: | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
999: | --sharedst | --shareds | --shared | --share | --shar \
1000: | --sha | --sh)
1001: ac_prev=sharedstatedir ;;
1002: -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1003: | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1004: | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1005: | --sha=* | --sh=*)
1.1.1.19 root 1006: sharedstatedir=$ac_optarg ;;
1.1 root 1007:
1008: -site | --site | --sit)
1009: ac_prev=site ;;
1010: -site=* | --site=* | --sit=*)
1.1.1.19 root 1011: site=$ac_optarg ;;
1.1 root 1012:
1013: -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1014: ac_prev=srcdir ;;
1015: -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1.1.1.19 root 1016: srcdir=$ac_optarg ;;
1.1 root 1017:
1018: -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1019: | --syscon | --sysco | --sysc | --sys | --sy)
1020: ac_prev=sysconfdir ;;
1021: -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1022: | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1.1.1.19 root 1023: sysconfdir=$ac_optarg ;;
1.1 root 1024:
1025: -target | --target | --targe | --targ | --tar | --ta | --t)
1.1.1.19 root 1026: ac_prev=target_alias ;;
1.1 root 1027: -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1.1.1.19 root 1028: target_alias=$ac_optarg ;;
1.1 root 1029:
1030: -v | -verbose | --verbose | --verbos | --verbo | --verb)
1031: verbose=yes ;;
1032:
1.1.1.19 root 1033: -version | --version | --versio | --versi | --vers | -V)
1034: ac_init_version=: ;;
1.1 root 1035:
1036: -with-* | --with-*)
1.1.1.19 root 1037: ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1.1 root 1038: # Reject names that are not valid shell variable names.
1.1.1.22 root 1039: expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1.1.1.19 root 1040: { echo "$as_me: error: invalid package name: $ac_package" >&2
1041: { (exit 1); exit 1; }; }
1.1.1.22 root 1042: ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1043: eval with_$ac_package=\$ac_optarg ;;
1.1 root 1044:
1045: -without-* | --without-*)
1.1.1.19 root 1046: ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1.1 root 1047: # Reject names that are not valid shell variable names.
1.1.1.22 root 1048: expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1.1.1.19 root 1049: { echo "$as_me: error: invalid package name: $ac_package" >&2
1050: { (exit 1); exit 1; }; }
1.1.1.22 root 1051: ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1052: eval with_$ac_package=no ;;
1.1 root 1053:
1054: --x)
1055: # Obsolete; use --with-x.
1056: with_x=yes ;;
1057:
1058: -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1059: | --x-incl | --x-inc | --x-in | --x-i)
1060: ac_prev=x_includes ;;
1061: -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1062: | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1.1.1.19 root 1063: x_includes=$ac_optarg ;;
1.1 root 1064:
1065: -x-libraries | --x-libraries | --x-librarie | --x-librari \
1066: | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1067: ac_prev=x_libraries ;;
1068: -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1069: | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1.1.1.19 root 1070: x_libraries=$ac_optarg ;;
1.1 root 1071:
1.1.1.19 root 1072: -*) { echo "$as_me: error: unrecognized option: $ac_option
1073: Try \`$0 --help' for more information." >&2
1074: { (exit 1); exit 1; }; }
1.1 root 1075: ;;
1076:
1.1.1.19 root 1077: *=*)
1078: ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1079: # Reject names that are not valid shell variable names.
1080: expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1081: { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1082: { (exit 1); exit 1; }; }
1.1.1.22 root 1083: eval $ac_envvar=\$ac_optarg
1.1.1.19 root 1084: export $ac_envvar ;;
1085:
1.1 root 1086: *)
1.1.1.19 root 1087: # FIXME: should be removed in autoconf 3.0.
1088: echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1089: expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1090: echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1091: : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1.1 root 1092: ;;
1093:
1094: esac
1095: done
1096:
1097: if test -n "$ac_prev"; then
1.1.1.19 root 1098: ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1099: { echo "$as_me: error: missing argument to $ac_option" >&2
1100: { (exit 1); exit 1; }; }
1.1 root 1101: fi
1102:
1.1.1.22 root 1103: # Be sure to have absolute directory names.
1104: for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1105: datadir sysconfdir sharedstatedir localstatedir includedir \
1106: oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1107: libdir localedir mandir
1.1 root 1108: do
1.1.1.22 root 1109: eval ac_val=\$$ac_var
1.1.1.19 root 1110: case $ac_val in
1.1.1.22 root 1111: [\\/$]* | ?:[\\/]* ) continue;;
1112: NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1.1 root 1113: esac
1.1.1.22 root 1114: { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1115: { (exit 1); exit 1; }; }
1.1 root 1116: done
1117:
1.1.1.19 root 1118: # There might be people who depend on the old broken behavior: `$host'
1119: # used to hold the argument of --host etc.
1120: # FIXME: To remove some day.
1121: build=$build_alias
1122: host=$host_alias
1123: target=$target_alias
1124:
1125: # FIXME: To remove some day.
1126: if test "x$host_alias" != x; then
1127: if test "x$build_alias" = x; then
1128: cross_compiling=maybe
1129: echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1130: If a cross compiler is detected then cross compile mode will be used." >&2
1131: elif test "x$build_alias" != "x$host_alias"; then
1132: cross_compiling=yes
1133: fi
1134: fi
1.1 root 1135:
1.1.1.19 root 1136: ac_tool_prefix=
1137: test -n "$host_alias" && ac_tool_prefix=$host_alias-
1138:
1139: test "$silent" = yes && exec 6>/dev/null
1.1 root 1140:
1141:
1.1.1.22 root 1142: ac_pwd=`pwd` && test -n "$ac_pwd" &&
1143: ac_ls_di=`ls -di .` &&
1144: ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1145: { echo "$as_me: error: Working directory cannot be determined" >&2
1146: { (exit 1); exit 1; }; }
1147: test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1148: { echo "$as_me: error: pwd does not report name of working directory" >&2
1149: { (exit 1); exit 1; }; }
1150:
1151:
1.1 root 1152: # Find the source files, if location was not specified.
1153: if test -z "$srcdir"; then
1154: ac_srcdir_defaulted=yes
1.1.1.22 root 1155: # Try the directory containing this script, then the parent directory.
1156: ac_confdir=`$as_dirname -- "$0" ||
1.1.1.19 root 1157: $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1158: X"$0" : 'X\(//\)[^/]' \| \
1159: X"$0" : 'X\(//\)$' \| \
1.1.1.22 root 1160: X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1.1.1.19 root 1161: echo X"$0" |
1.1.1.22 root 1162: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1163: s//\1/
1164: q
1165: }
1166: /^X\(\/\/\)[^/].*/{
1167: s//\1/
1168: q
1169: }
1170: /^X\(\/\/\)$/{
1171: s//\1/
1172: q
1173: }
1174: /^X\(\/\).*/{
1175: s//\1/
1176: q
1177: }
1178: s/.*/./; q'`
1.1 root 1179: srcdir=$ac_confdir
1.1.1.22 root 1180: if test ! -r "$srcdir/$ac_unique_file"; then
1.1 root 1181: srcdir=..
1182: fi
1183: else
1184: ac_srcdir_defaulted=no
1185: fi
1.1.1.22 root 1186: if test ! -r "$srcdir/$ac_unique_file"; then
1187: test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1188: { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1189: { (exit 1); exit 1; }; }
1190: fi
1191: ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1192: ac_abs_confdir=`(
1193: cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1194: { (exit 1); exit 1; }; }
1195: pwd)`
1196: # When building in place, set srcdir=.
1197: if test "$ac_abs_confdir" = "$ac_pwd"; then
1198: srcdir=.
1199: fi
1200: # Remove unnecessary trailing slashes from srcdir.
1201: # Double slashes in file names in object file debugging info
1202: # mess up M-x gdb in Emacs.
1203: case $srcdir in
1204: */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1205: esac
1206: for ac_var in $ac_precious_vars; do
1207: eval ac_env_${ac_var}_set=\${${ac_var}+set}
1208: eval ac_env_${ac_var}_value=\$${ac_var}
1209: eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1210: eval ac_cv_env_${ac_var}_value=\$${ac_var}
1211: done
1.1.1.19 root 1212:
1213: #
1214: # Report the --help message.
1215: #
1216: if test "$ac_init_help" = "long"; then
1217: # Omit some internal or obsolete options to make the list less imposing.
1218: # This message is too long to be a string in the A/UX 3.1 sh.
1219: cat <<_ACEOF
1.1.1.24! root 1220: \`configure' configures UAE 0.8.28 to adapt to many kinds of systems.
1.1.1.19 root 1221:
1222: Usage: $0 [OPTION]... [VAR=VALUE]...
1223:
1224: To assign environment variables (e.g., CC, CFLAGS...), specify them as
1225: VAR=VALUE. See below for descriptions of some of the useful variables.
1226:
1227: Defaults for the options are specified in brackets.
1228:
1229: Configuration:
1230: -h, --help display this help and exit
1231: --help=short display options specific to this package
1232: --help=recursive display the short help of all the included packages
1233: -V, --version display version information and exit
1234: -q, --quiet, --silent do not print \`checking...' messages
1235: --cache-file=FILE cache test results in FILE [disabled]
1236: -C, --config-cache alias for \`--cache-file=config.cache'
1237: -n, --no-create do not create output files
1238: --srcdir=DIR find the sources in DIR [configure dir or \`..']
1239:
1240: Installation directories:
1241: --prefix=PREFIX install architecture-independent files in PREFIX
1242: [$ac_default_prefix]
1243: --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1244: [PREFIX]
1245:
1246: By default, \`make install' will install all the files in
1247: \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1248: an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1249: for instance \`--prefix=\$HOME'.
1250:
1251: For better control, use the options below.
1252:
1253: Fine tuning of the installation directories:
1254: --bindir=DIR user executables [EPREFIX/bin]
1255: --sbindir=DIR system admin executables [EPREFIX/sbin]
1256: --libexecdir=DIR program executables [EPREFIX/libexec]
1257: --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1258: --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1259: --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1260: --libdir=DIR object code libraries [EPREFIX/lib]
1261: --includedir=DIR C header files [PREFIX/include]
1262: --oldincludedir=DIR C header files for non-gcc [/usr/include]
1.1.1.22 root 1263: --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1264: --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1265: --infodir=DIR info documentation [DATAROOTDIR/info]
1266: --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1267: --mandir=DIR man documentation [DATAROOTDIR/man]
1268: --docdir=DIR documentation root [DATAROOTDIR/doc/uae]
1269: --htmldir=DIR html documentation [DOCDIR]
1270: --dvidir=DIR dvi documentation [DOCDIR]
1271: --pdfdir=DIR pdf documentation [DOCDIR]
1272: --psdir=DIR ps documentation [DOCDIR]
1.1.1.19 root 1273: _ACEOF
1274:
1275: cat <<\_ACEOF
1276:
1277: X features:
1278: --x-includes=DIR X include files are in DIR
1279: --x-libraries=DIR X library files are in DIR
1280:
1281: System types:
1282: --build=BUILD configure for building on BUILD [guessed]
1283: --host=HOST cross-compile to build programs to run on HOST [BUILD]
1284: _ACEOF
1285: fi
1286:
1287: if test -n "$ac_init_help"; then
1.1.1.22 root 1288: case $ac_init_help in
1.1.1.24! root 1289: short | recursive ) echo "Configuration of UAE 0.8.28:";;
1.1.1.22 root 1290: esac
1.1.1.19 root 1291: cat <<\_ACEOF
1292:
1293: Optional Features:
1294: --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1295: --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1296: --enable-profiling Build a profiling (SLOW!) version
1297: --enable-dga X11 version: Use the DGA extension
1298: --enable-vidmode X11 version: Use the XF86VidMode extension
1299: --enable-ui Use a user interface if possible (default on)
1.1.1.20 root 1300: --disable-gtktest do not try to compile and run a test GTK+ program
1.1.1.19 root 1301: --enable-threads Enable some generally useful thread support
1302: --enable-file-sound Enable sound output to file
1303: --enable-scsi-device Enable the uaescsi.device
1304:
1305: Optional Packages:
1306: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1307: --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1308: --with-x use the X Window System
1309: --with-svgalib Use SVGAlib for graphics output
1310: --with-sdl Use SDL library for low-level functions
1311: --with-sdl-sound Use SDL library for sound
1312: --with-sdl-gfx Use SDL library for graphics
1.1.1.23 root 1313: --with-oss-sound Use OSS interface sound (default)
1.1.1.19 root 1314: --with-alsa Use ALSA library for sound
1315: --with-asciiart Use ncurses ascii art for graphics output
1316: --with-hostcc=x Use a x as compiler for the host system
1317:
1318: Some influential environment variables:
1319: CC C compiler command
1320: CFLAGS C compiler flags
1321: LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1322: nonstandard directory <lib dir>
1.1.1.22 root 1323: LIBS libraries to pass to the linker, e.g. -l<library>
1324: CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1325: you have headers in a nonstandard directory <include dir>
1.1.1.19 root 1326: CPP C preprocessor
1.1.1.22 root 1327: XMKMF Path to xmkmf, Makefile generator for X Window System
1.1.1.19 root 1328:
1329: Use these variables to override the choices made by `configure' or to help
1330: it to find libraries and programs with nonstandard names/locations.
1331:
1332: _ACEOF
1.1.1.22 root 1333: ac_status=$?
1.1.1.19 root 1334: fi
1335:
1336: if test "$ac_init_help" = "recursive"; then
1337: # If there are subdirs, report their specific --help.
1338: for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1.1.1.22 root 1339: test -d "$ac_dir" || continue
1.1.1.19 root 1340: ac_builddir=.
1341:
1.1.1.22 root 1342: case "$ac_dir" in
1343: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1344: *)
1.1.1.19 root 1345: ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1.1.1.22 root 1346: # A ".." for each directory in $ac_dir_suffix.
1347: ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1348: case $ac_top_builddir_sub in
1349: "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1350: *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1351: esac ;;
1352: esac
1353: ac_abs_top_builddir=$ac_pwd
1354: ac_abs_builddir=$ac_pwd$ac_dir_suffix
1355: # for backward compatibility:
1356: ac_top_builddir=$ac_top_build_prefix
1.1.1.19 root 1357:
1358: case $srcdir in
1.1.1.22 root 1359: .) # We are building in place.
1.1.1.19 root 1360: ac_srcdir=.
1.1.1.22 root 1361: ac_top_srcdir=$ac_top_builddir_sub
1362: ac_abs_top_srcdir=$ac_pwd ;;
1363: [\\/]* | ?:[\\/]* ) # Absolute name.
1.1.1.19 root 1364: ac_srcdir=$srcdir$ac_dir_suffix;
1.1.1.22 root 1365: ac_top_srcdir=$srcdir
1366: ac_abs_top_srcdir=$srcdir ;;
1367: *) # Relative name.
1368: ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1369: ac_top_srcdir=$ac_top_build_prefix$srcdir
1370: ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1371: esac
1372: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1373:
1374: cd "$ac_dir" || { ac_status=$?; continue; }
1375: # Check for guested configure.
1376: if test -f "$ac_srcdir/configure.gnu"; then
1377: echo &&
1378: $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1379: elif test -f "$ac_srcdir/configure"; then
1380: echo &&
1381: $SHELL "$ac_srcdir/configure" --help=recursive
1.1.1.19 root 1382: else
1383: echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1.1.1.22 root 1384: fi || ac_status=$?
1385: cd "$ac_pwd" || { ac_status=$?; break; }
1.1.1.19 root 1386: done
1387: fi
1388:
1.1.1.22 root 1389: test -n "$ac_init_help" && exit $ac_status
1.1.1.19 root 1390: if $ac_init_version; then
1391: cat <<\_ACEOF
1.1.1.24! root 1392: UAE configure 0.8.28
1.1.1.22 root 1393: generated by GNU Autoconf 2.61
1.1.1.19 root 1394:
1.1.1.22 root 1395: Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1396: 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1.1.1.19 root 1397: This configure script is free software; the Free Software Foundation
1398: gives unlimited permission to copy, distribute and modify it.
1399: _ACEOF
1.1.1.22 root 1400: exit
1.1.1.19 root 1401: fi
1.1.1.22 root 1402: cat >config.log <<_ACEOF
1.1.1.19 root 1403: This file contains any messages produced by compilers while
1404: running configure, to aid debugging if configure makes a mistake.
1405:
1.1.1.24! root 1406: It was created by UAE $as_me 0.8.28, which was
1.1.1.22 root 1407: generated by GNU Autoconf 2.61. Invocation command line was
1.1.1.19 root 1408:
1409: $ $0 $@
1410:
1411: _ACEOF
1.1.1.22 root 1412: exec 5>>config.log
1.1.1.19 root 1413: {
1414: cat <<_ASUNAME
1415: ## --------- ##
1416: ## Platform. ##
1417: ## --------- ##
1418:
1419: hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1420: uname -m = `(uname -m) 2>/dev/null || echo unknown`
1421: uname -r = `(uname -r) 2>/dev/null || echo unknown`
1422: uname -s = `(uname -s) 2>/dev/null || echo unknown`
1423: uname -v = `(uname -v) 2>/dev/null || echo unknown`
1424:
1425: /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1426: /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1427:
1428: /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1429: /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1430: /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1.1.1.22 root 1431: /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1.1.1.19 root 1432: /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1433: /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1434: /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1435:
1436: _ASUNAME
1437:
1438: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1439: for as_dir in $PATH
1440: do
1441: IFS=$as_save_IFS
1442: test -z "$as_dir" && as_dir=.
1443: echo "PATH: $as_dir"
1444: done
1.1.1.22 root 1445: IFS=$as_save_IFS
1.1.1.19 root 1446:
1447: } >&5
1448:
1449: cat >&5 <<_ACEOF
1450:
1451:
1452: ## ----------- ##
1453: ## Core tests. ##
1454: ## ----------- ##
1455:
1456: _ACEOF
1457:
1458:
1459: # Keep a trace of the command line.
1460: # Strip out --no-create and --no-recursion so they do not pile up.
1461: # Strip out --silent because we don't want to record it for future runs.
1462: # Also quote any args containing shell meta-characters.
1463: # Make two passes to allow for proper duplicate-argument suppression.
1464: ac_configure_args=
1465: ac_configure_args0=
1466: ac_configure_args1=
1467: ac_must_keep_next=false
1468: for ac_pass in 1 2
1469: do
1470: for ac_arg
1471: do
1472: case $ac_arg in
1473: -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1474: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1475: | -silent | --silent | --silen | --sile | --sil)
1476: continue ;;
1.1.1.22 root 1477: *\'*)
1.1.1.19 root 1478: ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1479: esac
1480: case $ac_pass in
1481: 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1482: 2)
1483: ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1484: if test $ac_must_keep_next = true; then
1485: ac_must_keep_next=false # Got value, back to normal.
1486: else
1487: case $ac_arg in
1488: *=* | --config-cache | -C | -disable-* | --disable-* \
1489: | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1490: | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1491: | -with-* | --with-* | -without-* | --without-* | --x)
1492: case "$ac_configure_args0 " in
1493: "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1494: esac
1495: ;;
1496: -* ) ac_must_keep_next=true ;;
1497: esac
1498: fi
1.1.1.22 root 1499: ac_configure_args="$ac_configure_args '$ac_arg'"
1.1.1.19 root 1500: ;;
1501: esac
1502: done
1503: done
1504: $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1505: $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1506:
1507: # When interrupted or exit'd, cleanup temporary files, and complete
1508: # config.log. We remove comments because anyway the quotes in there
1509: # would cause problems or look ugly.
1.1.1.22 root 1510: # WARNING: Use '\'' to represent an apostrophe within the trap.
1511: # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1.1.1.19 root 1512: trap 'exit_status=$?
1513: # Save into config.log some information that might help in debugging.
1514: {
1515: echo
1516:
1517: cat <<\_ASBOX
1518: ## ---------------- ##
1519: ## Cache variables. ##
1520: ## ---------------- ##
1521: _ASBOX
1522: echo
1523: # The following way of writing the cache mishandles newlines in values,
1.1.1.22 root 1524: (
1525: for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1526: eval ac_val=\$$ac_var
1527: case $ac_val in #(
1528: *${as_nl}*)
1529: case $ac_var in #(
1530: *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1531: echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1532: esac
1533: case $ac_var in #(
1534: _ | IFS | as_nl) ;; #(
1535: *) $as_unset $ac_var ;;
1536: esac ;;
1537: esac
1538: done
1.1.1.19 root 1539: (set) 2>&1 |
1.1.1.22 root 1540: case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1541: *${as_nl}ac_space=\ *)
1.1.1.19 root 1542: sed -n \
1.1.1.22 root 1543: "s/'\''/'\''\\\\'\'''\''/g;
1544: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1545: ;; #(
1.1.1.19 root 1546: *)
1.1.1.22 root 1547: sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1.1.1.19 root 1548: ;;
1.1.1.22 root 1549: esac |
1550: sort
1551: )
1.1.1.19 root 1552: echo
1553:
1554: cat <<\_ASBOX
1555: ## ----------------- ##
1556: ## Output variables. ##
1557: ## ----------------- ##
1558: _ASBOX
1559: echo
1560: for ac_var in $ac_subst_vars
1561: do
1.1.1.22 root 1562: eval ac_val=\$$ac_var
1563: case $ac_val in
1564: *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1565: esac
1566: echo "$ac_var='\''$ac_val'\''"
1.1.1.19 root 1567: done | sort
1568: echo
1569:
1570: if test -n "$ac_subst_files"; then
1571: cat <<\_ASBOX
1.1.1.22 root 1572: ## ------------------- ##
1573: ## File substitutions. ##
1574: ## ------------------- ##
1.1.1.19 root 1575: _ASBOX
1576: echo
1577: for ac_var in $ac_subst_files
1578: do
1.1.1.22 root 1579: eval ac_val=\$$ac_var
1580: case $ac_val in
1581: *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1582: esac
1583: echo "$ac_var='\''$ac_val'\''"
1.1.1.19 root 1584: done | sort
1585: echo
1586: fi
1587:
1588: if test -s confdefs.h; then
1589: cat <<\_ASBOX
1590: ## ----------- ##
1591: ## confdefs.h. ##
1592: ## ----------- ##
1593: _ASBOX
1594: echo
1.1.1.22 root 1595: cat confdefs.h
1.1.1.19 root 1596: echo
1597: fi
1598: test "$ac_signal" != 0 &&
1599: echo "$as_me: caught signal $ac_signal"
1600: echo "$as_me: exit $exit_status"
1601: } >&5
1.1.1.22 root 1602: rm -f core *.core core.conftest.* &&
1603: rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1.1.1.19 root 1604: exit $exit_status
1.1.1.22 root 1605: ' 0
1.1.1.19 root 1606: for ac_signal in 1 2 13 15; do
1607: trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1608: done
1609: ac_signal=0
1610:
1611: # confdefs.h avoids OS command line length limits that DEFS can exceed.
1.1.1.22 root 1612: rm -f -r conftest* confdefs.h
1.1.1.19 root 1613:
1614: # Predefined preprocessor variables.
1615:
1616: cat >>confdefs.h <<_ACEOF
1617: #define PACKAGE_NAME "$PACKAGE_NAME"
1618: _ACEOF
1619:
1620:
1621: cat >>confdefs.h <<_ACEOF
1622: #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1623: _ACEOF
1624:
1625:
1626: cat >>confdefs.h <<_ACEOF
1627: #define PACKAGE_VERSION "$PACKAGE_VERSION"
1628: _ACEOF
1629:
1.1 root 1630:
1.1.1.19 root 1631: cat >>confdefs.h <<_ACEOF
1632: #define PACKAGE_STRING "$PACKAGE_STRING"
1633: _ACEOF
1634:
1635:
1636: cat >>confdefs.h <<_ACEOF
1637: #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1638: _ACEOF
1639:
1640:
1641: # Let the site file select an alternate cache file if it wants to.
1.1 root 1642: # Prefer explicitly selected file to automatically selected ones.
1.1.1.22 root 1643: if test -n "$CONFIG_SITE"; then
1644: set x "$CONFIG_SITE"
1645: elif test "x$prefix" != xNONE; then
1646: set x "$prefix/share/config.site" "$prefix/etc/config.site"
1647: else
1648: set x "$ac_default_prefix/share/config.site" \
1649: "$ac_default_prefix/etc/config.site"
1.1 root 1650: fi
1.1.1.22 root 1651: shift
1652: for ac_site_file
1653: do
1.1 root 1654: if test -r "$ac_site_file"; then
1.1.1.19 root 1655: { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1656: echo "$as_me: loading site script $ac_site_file" >&6;}
1657: sed 's/^/| /' "$ac_site_file" >&5
1.1 root 1658: . "$ac_site_file"
1659: fi
1660: done
1661:
1662: if test -r "$cache_file"; then
1.1.1.19 root 1663: # Some versions of bash will fail to source /dev/null (special
1664: # files actually), so we avoid doing that.
1665: if test -f "$cache_file"; then
1666: { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1667: echo "$as_me: loading cache $cache_file" >&6;}
1668: case $cache_file in
1.1.1.22 root 1669: [\\/]* | ?:[\\/]* ) . "$cache_file";;
1670: *) . "./$cache_file";;
1.1.1.19 root 1671: esac
1672: fi
1.1 root 1673: else
1.1.1.19 root 1674: { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1675: echo "$as_me: creating cache $cache_file" >&6;}
1676: >$cache_file
1677: fi
1678:
1.1.1.22 root 1679: ac_header_list="$ac_header_list utime.h"
1.1.1.19 root 1680: # Check that the precious variables saved in the cache have kept the same
1681: # value.
1682: ac_cache_corrupted=false
1.1.1.22 root 1683: for ac_var in $ac_precious_vars; do
1.1.1.19 root 1684: eval ac_old_set=\$ac_cv_env_${ac_var}_set
1685: eval ac_new_set=\$ac_env_${ac_var}_set
1.1.1.22 root 1686: eval ac_old_val=\$ac_cv_env_${ac_var}_value
1687: eval ac_new_val=\$ac_env_${ac_var}_value
1.1.1.19 root 1688: case $ac_old_set,$ac_new_set in
1689: set,)
1690: { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1691: echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1692: ac_cache_corrupted=: ;;
1693: ,set)
1694: { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1695: echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1696: ac_cache_corrupted=: ;;
1697: ,);;
1698: *)
1699: if test "x$ac_old_val" != "x$ac_new_val"; then
1700: { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1701: echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1702: { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1703: echo "$as_me: former value: $ac_old_val" >&2;}
1704: { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1705: echo "$as_me: current value: $ac_new_val" >&2;}
1706: ac_cache_corrupted=:
1707: fi;;
1708: esac
1709: # Pass precious variables to config.status.
1710: if test "$ac_new_set" = set; then
1711: case $ac_new_val in
1.1.1.22 root 1712: *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1.1.1.19 root 1713: *) ac_arg=$ac_var=$ac_new_val ;;
1714: esac
1715: case " $ac_configure_args " in
1716: *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1717: *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1718: esac
1719: fi
1720: done
1721: if $ac_cache_corrupted; then
1722: { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1723: echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1724: { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1725: echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1726: { (exit 1); exit 1; }; }
1.1 root 1727: fi
1728:
1729:
1730:
1731:
1732:
1.1.1.4 root 1733:
1.1.1.19 root 1734:
1735:
1736:
1737:
1738:
1739:
1740:
1741:
1742:
1743:
1744:
1745:
1746:
1747:
1748:
1749:
1750:
1.1.1.22 root 1751:
1752:
1753: ac_ext=c
1754: ac_cpp='$CPP $CPPFLAGS'
1755: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1756: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1757: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1758:
1759:
1760:
1761:
1762:
1.1.1.19 root 1763: ac_ext=c
1764: ac_cpp='$CPP $CPPFLAGS'
1765: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1766: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1767: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1768: if test -n "$ac_tool_prefix"; then
1769: # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1770: set dummy ${ac_tool_prefix}gcc; ac_word=$2
1.1.1.22 root 1771: { echo "$as_me:$LINENO: checking for $ac_word" >&5
1772: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1.1.1.19 root 1773: if test "${ac_cv_prog_CC+set}" = set; then
1774: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 root 1775: else
1776: if test -n "$CC"; then
1777: ac_cv_prog_CC="$CC" # Let the user override the test.
1778: else
1.1.1.19 root 1779: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1780: for as_dir in $PATH
1781: do
1782: IFS=$as_save_IFS
1783: test -z "$as_dir" && as_dir=.
1784: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.22 root 1785: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.1.1.19 root 1786: ac_cv_prog_CC="${ac_tool_prefix}gcc"
1787: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1788: break 2
1789: fi
1790: done
1791: done
1.1.1.22 root 1792: IFS=$as_save_IFS
1.1.1.19 root 1793:
1.1 root 1794: fi
1795: fi
1.1.1.19 root 1796: CC=$ac_cv_prog_CC
1.1 root 1797: if test -n "$CC"; then
1.1.1.22 root 1798: { echo "$as_me:$LINENO: result: $CC" >&5
1799: echo "${ECHO_T}$CC" >&6; }
1.1 root 1800: else
1.1.1.22 root 1801: { echo "$as_me:$LINENO: result: no" >&5
1802: echo "${ECHO_T}no" >&6; }
1.1 root 1803: fi
1804:
1.1.1.22 root 1805:
1.1.1.19 root 1806: fi
1807: if test -z "$ac_cv_prog_CC"; then
1808: ac_ct_CC=$CC
1809: # Extract the first word of "gcc", so it can be a program name with args.
1810: set dummy gcc; ac_word=$2
1.1.1.22 root 1811: { echo "$as_me:$LINENO: checking for $ac_word" >&5
1812: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1.1.1.19 root 1813: if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1814: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 root 1815: else
1.1.1.19 root 1816: if test -n "$ac_ct_CC"; then
1817: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1.1 root 1818: else
1.1.1.19 root 1819: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1820: for as_dir in $PATH
1821: do
1822: IFS=$as_save_IFS
1823: test -z "$as_dir" && as_dir=.
1824: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.22 root 1825: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.1.1.19 root 1826: ac_cv_prog_ac_ct_CC="gcc"
1827: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1828: break 2
1829: fi
1830: done
1831: done
1.1.1.22 root 1832: IFS=$as_save_IFS
1.1.1.19 root 1833:
1834: fi
1835: fi
1836: ac_ct_CC=$ac_cv_prog_ac_ct_CC
1837: if test -n "$ac_ct_CC"; then
1.1.1.22 root 1838: { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1839: echo "${ECHO_T}$ac_ct_CC" >&6; }
1.1.1.19 root 1840: else
1.1.1.22 root 1841: { echo "$as_me:$LINENO: result: no" >&5
1842: echo "${ECHO_T}no" >&6; }
1.1.1.19 root 1843: fi
1844:
1.1.1.22 root 1845: if test "x$ac_ct_CC" = x; then
1846: CC=""
1847: else
1848: case $cross_compiling:$ac_tool_warned in
1849: yes:)
1850: { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
1851: whose name does not start with the host triplet. If you think this
1852: configuration is useful to you, please write to [email protected]." >&5
1853: echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
1854: whose name does not start with the host triplet. If you think this
1855: configuration is useful to you, please write to [email protected]." >&2;}
1856: ac_tool_warned=yes ;;
1857: esac
1858: CC=$ac_ct_CC
1859: fi
1.1.1.19 root 1860: else
1861: CC="$ac_cv_prog_CC"
1862: fi
1863:
1864: if test -z "$CC"; then
1.1.1.22 root 1865: if test -n "$ac_tool_prefix"; then
1866: # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1.1.1.19 root 1867: set dummy ${ac_tool_prefix}cc; ac_word=$2
1.1.1.22 root 1868: { echo "$as_me:$LINENO: checking for $ac_word" >&5
1869: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1.1.1.19 root 1870: if test "${ac_cv_prog_CC+set}" = set; then
1871: echo $ECHO_N "(cached) $ECHO_C" >&6
1872: else
1873: if test -n "$CC"; then
1874: ac_cv_prog_CC="$CC" # Let the user override the test.
1875: else
1876: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1877: for as_dir in $PATH
1878: do
1879: IFS=$as_save_IFS
1880: test -z "$as_dir" && as_dir=.
1881: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.22 root 1882: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.1.1.19 root 1883: ac_cv_prog_CC="${ac_tool_prefix}cc"
1884: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1885: break 2
1886: fi
1887: done
1888: done
1.1.1.22 root 1889: IFS=$as_save_IFS
1.1.1.19 root 1890:
1891: fi
1892: fi
1893: CC=$ac_cv_prog_CC
1894: if test -n "$CC"; then
1.1.1.22 root 1895: { echo "$as_me:$LINENO: result: $CC" >&5
1896: echo "${ECHO_T}$CC" >&6; }
1.1.1.19 root 1897: else
1.1.1.22 root 1898: { echo "$as_me:$LINENO: result: no" >&5
1899: echo "${ECHO_T}no" >&6; }
1.1.1.19 root 1900: fi
1901:
1902:
1.1.1.22 root 1903: fi
1.1.1.19 root 1904: fi
1905: if test -z "$CC"; then
1906: # Extract the first word of "cc", so it can be a program name with args.
1907: set dummy cc; ac_word=$2
1.1.1.22 root 1908: { echo "$as_me:$LINENO: checking for $ac_word" >&5
1909: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1.1.1.19 root 1910: if test "${ac_cv_prog_CC+set}" = set; then
1911: echo $ECHO_N "(cached) $ECHO_C" >&6
1912: else
1913: if test -n "$CC"; then
1914: ac_cv_prog_CC="$CC" # Let the user override the test.
1915: else
1916: ac_prog_rejected=no
1917: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1918: for as_dir in $PATH
1919: do
1920: IFS=$as_save_IFS
1921: test -z "$as_dir" && as_dir=.
1922: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.22 root 1923: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.1.1.19 root 1924: if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1925: ac_prog_rejected=yes
1926: continue
1927: fi
1928: ac_cv_prog_CC="cc"
1929: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1930: break 2
1931: fi
1932: done
1933: done
1.1.1.22 root 1934: IFS=$as_save_IFS
1.1.1.19 root 1935:
1936: if test $ac_prog_rejected = yes; then
1937: # We found a bogon in the path, so make sure we never use it.
1938: set dummy $ac_cv_prog_CC
1.1 root 1939: shift
1.1.1.19 root 1940: if test $# != 0; then
1.1 root 1941: # We chose a different compiler from the bogus one.
1942: # However, it has the same basename, so the bogon will be chosen
1943: # first if we set CC to just the basename; use the full file name.
1944: shift
1.1.1.19 root 1945: ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1.1 root 1946: fi
1947: fi
1948: fi
1949: fi
1.1.1.19 root 1950: CC=$ac_cv_prog_CC
1.1 root 1951: if test -n "$CC"; then
1.1.1.22 root 1952: { echo "$as_me:$LINENO: result: $CC" >&5
1953: echo "${ECHO_T}$CC" >&6; }
1.1 root 1954: else
1.1.1.22 root 1955: { echo "$as_me:$LINENO: result: no" >&5
1956: echo "${ECHO_T}no" >&6; }
1.1 root 1957: fi
1958:
1.1.1.22 root 1959:
1.1.1.19 root 1960: fi
1961: if test -z "$CC"; then
1962: if test -n "$ac_tool_prefix"; then
1.1.1.22 root 1963: for ac_prog in cl.exe
1.1.1.19 root 1964: do
1965: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1966: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1.1.1.22 root 1967: { echo "$as_me:$LINENO: checking for $ac_word" >&5
1968: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1.1.1.19 root 1969: if test "${ac_cv_prog_CC+set}" = set; then
1970: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1.1.9 root 1971: else
1972: if test -n "$CC"; then
1973: ac_cv_prog_CC="$CC" # Let the user override the test.
1974: else
1.1.1.19 root 1975: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1976: for as_dir in $PATH
1977: do
1978: IFS=$as_save_IFS
1979: test -z "$as_dir" && as_dir=.
1980: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.22 root 1981: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.1.1.19 root 1982: ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1983: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1984: break 2
1985: fi
1986: done
1987: done
1.1.1.22 root 1988: IFS=$as_save_IFS
1.1.1.19 root 1989:
1.1.1.9 root 1990: fi
1991: fi
1.1.1.19 root 1992: CC=$ac_cv_prog_CC
1.1.1.9 root 1993: if test -n "$CC"; then
1.1.1.22 root 1994: { echo "$as_me:$LINENO: result: $CC" >&5
1995: echo "${ECHO_T}$CC" >&6; }
1.1.1.9 root 1996: else
1.1.1.22 root 1997: { echo "$as_me:$LINENO: result: no" >&5
1998: echo "${ECHO_T}no" >&6; }
1.1.1.9 root 1999: fi
1.1.1.19 root 2000:
1.1.1.22 root 2001:
1.1.1.19 root 2002: test -n "$CC" && break
2003: done
2004: fi
2005: if test -z "$CC"; then
2006: ac_ct_CC=$CC
1.1.1.22 root 2007: for ac_prog in cl.exe
1.1.1.19 root 2008: do
2009: # Extract the first word of "$ac_prog", so it can be a program name with args.
2010: set dummy $ac_prog; ac_word=$2
1.1.1.22 root 2011: { echo "$as_me:$LINENO: checking for $ac_word" >&5
2012: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1.1.1.19 root 2013: if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2014: echo $ECHO_N "(cached) $ECHO_C" >&6
2015: else
2016: if test -n "$ac_ct_CC"; then
2017: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2018: else
2019: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2020: for as_dir in $PATH
2021: do
2022: IFS=$as_save_IFS
2023: test -z "$as_dir" && as_dir=.
2024: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.22 root 2025: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.1.1.19 root 2026: ac_cv_prog_ac_ct_CC="$ac_prog"
2027: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2028: break 2
1.1.1.9 root 2029: fi
1.1.1.19 root 2030: done
2031: done
1.1.1.22 root 2032: IFS=$as_save_IFS
1.1.1.19 root 2033:
1.1 root 2034: fi
1.1.1.19 root 2035: fi
2036: ac_ct_CC=$ac_cv_prog_ac_ct_CC
2037: if test -n "$ac_ct_CC"; then
1.1.1.22 root 2038: { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2039: echo "${ECHO_T}$ac_ct_CC" >&6; }
1.1.1.19 root 2040: else
1.1.1.22 root 2041: { echo "$as_me:$LINENO: result: no" >&5
2042: echo "${ECHO_T}no" >&6; }
1.1.1.19 root 2043: fi
2044:
1.1.1.22 root 2045:
1.1.1.19 root 2046: test -n "$ac_ct_CC" && break
2047: done
1.1 root 2048:
1.1.1.22 root 2049: if test "x$ac_ct_CC" = x; then
2050: CC=""
2051: else
2052: case $cross_compiling:$ac_tool_warned in
2053: yes:)
2054: { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2055: whose name does not start with the host triplet. If you think this
2056: configuration is useful to you, please write to [email protected]." >&5
2057: echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2058: whose name does not start with the host triplet. If you think this
2059: configuration is useful to you, please write to [email protected]." >&2;}
2060: ac_tool_warned=yes ;;
2061: esac
2062: CC=$ac_ct_CC
2063: fi
1.1.1.19 root 2064: fi
1.1.1.4 root 2065:
1.1.1.19 root 2066: fi
1.1.1.4 root 2067:
1.1.1.9 root 2068:
1.1.1.19 root 2069: test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2070: See \`config.log' for more details." >&5
2071: echo "$as_me: error: no acceptable C compiler found in \$PATH
2072: See \`config.log' for more details." >&2;}
2073: { (exit 1); exit 1; }; }
2074:
2075: # Provide some information about the compiler.
1.1.1.22 root 2076: echo "$as_me:$LINENO: checking for C compiler version" >&5
1.1.1.19 root 2077: ac_compiler=`set X $ac_compile; echo $2`
1.1.1.22 root 2078: { (ac_try="$ac_compiler --version >&5"
2079: case "(($ac_try" in
2080: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2081: *) ac_try_echo=$ac_try;;
2082: esac
2083: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2084: (eval "$ac_compiler --version >&5") 2>&5
1.1.1.19 root 2085: ac_status=$?
2086: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2087: (exit $ac_status); }
1.1.1.22 root 2088: { (ac_try="$ac_compiler -v >&5"
2089: case "(($ac_try" in
2090: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2091: *) ac_try_echo=$ac_try;;
2092: esac
2093: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2094: (eval "$ac_compiler -v >&5") 2>&5
1.1.1.19 root 2095: ac_status=$?
2096: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2097: (exit $ac_status); }
1.1.1.22 root 2098: { (ac_try="$ac_compiler -V >&5"
2099: case "(($ac_try" in
2100: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2101: *) ac_try_echo=$ac_try;;
2102: esac
2103: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2104: (eval "$ac_compiler -V >&5") 2>&5
1.1.1.19 root 2105: ac_status=$?
2106: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2107: (exit $ac_status); }
2108:
2109: cat >conftest.$ac_ext <<_ACEOF
2110: /* confdefs.h. */
2111: _ACEOF
2112: cat confdefs.h >>conftest.$ac_ext
2113: cat >>conftest.$ac_ext <<_ACEOF
2114: /* end confdefs.h. */
1.1.1.9 root 2115:
1.1.1.19 root 2116: int
2117: main ()
2118: {
2119:
2120: ;
2121: return 0;
2122: }
2123: _ACEOF
2124: ac_clean_files_save=$ac_clean_files
2125: ac_clean_files="$ac_clean_files a.out a.exe b.out"
2126: # Try to create an executable without -o first, disregard a.out.
2127: # It will help us diagnose broken compilers, and finding out an intuition
2128: # of exeext.
1.1.1.22 root 2129: { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2130: echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
1.1.1.19 root 2131: ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1.1.1.22 root 2132: #
2133: # List of possible output files, starting from the most likely.
2134: # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2135: # only as a last resort. b.out is created by i960 compilers.
2136: ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2137: #
2138: # The IRIX 6 linker writes into existing files which may not be
2139: # executable, retaining their permissions. Remove them first so a
2140: # subsequent execution test works.
2141: ac_rmfiles=
2142: for ac_file in $ac_files
2143: do
2144: case $ac_file in
2145: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2146: * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2147: esac
2148: done
2149: rm -f $ac_rmfiles
2150:
2151: if { (ac_try="$ac_link_default"
2152: case "(($ac_try" in
2153: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2154: *) ac_try_echo=$ac_try;;
2155: esac
2156: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2157: (eval "$ac_link_default") 2>&5
1.1.1.19 root 2158: ac_status=$?
2159: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2160: (exit $ac_status); }; then
1.1.1.22 root 2161: # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2162: # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2163: # in a Makefile. We should not override ac_cv_exeext if it was cached,
2164: # so that the user can short-circuit this test for compilers unknown to
2165: # Autoconf.
2166: for ac_file in $ac_files ''
1.1.1.19 root 2167: do
2168: test -f "$ac_file" || continue
2169: case $ac_file in
1.1.1.22 root 2170: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
1.1.1.19 root 2171: ;;
2172: [ab].out )
2173: # We found the default executable, but exeext='' is most
2174: # certainly right.
2175: break;;
2176: *.* )
1.1.1.22 root 2177: if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2178: then :; else
2179: ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2180: fi
2181: # We set ac_cv_exeext here because the later test for it is not
2182: # safe: cross compilers may not add the suffix if given an `-o'
2183: # argument, so we may need to know it at that point already.
2184: # Even if this section looks crufty: it has the advantage of
2185: # actually working.
1.1.1.19 root 2186: break;;
2187: * )
2188: break;;
2189: esac
2190: done
1.1.1.22 root 2191: test "$ac_cv_exeext" = no && ac_cv_exeext=
2192:
1.1.1.19 root 2193: else
1.1.1.22 root 2194: ac_file=''
2195: fi
2196:
2197: { echo "$as_me:$LINENO: result: $ac_file" >&5
2198: echo "${ECHO_T}$ac_file" >&6; }
2199: if test -z "$ac_file"; then
1.1.1.19 root 2200: echo "$as_me: failed program was:" >&5
2201: sed 's/^/| /' conftest.$ac_ext >&5
2202:
2203: { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2204: See \`config.log' for more details." >&5
2205: echo "$as_me: error: C compiler cannot create executables
2206: See \`config.log' for more details." >&2;}
2207: { (exit 77); exit 77; }; }
2208: fi
2209:
2210: ac_exeext=$ac_cv_exeext
2211:
1.1.1.22 root 2212: # Check that the compiler produces executables we can run. If not, either
1.1.1.19 root 2213: # the compiler is broken, or we cross compile.
1.1.1.22 root 2214: { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2215: echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
1.1.1.19 root 2216: # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2217: # If not cross compiling, check that we can run a simple program.
2218: if test "$cross_compiling" != yes; then
2219: if { ac_try='./$ac_file'
1.1.1.22 root 2220: { (case "(($ac_try" in
2221: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2222: *) ac_try_echo=$ac_try;;
2223: esac
2224: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2225: (eval "$ac_try") 2>&5
1.1.1.19 root 2226: ac_status=$?
2227: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2228: (exit $ac_status); }; }; then
2229: cross_compiling=no
1.1.1.4 root 2230: else
1.1.1.19 root 2231: if test "$cross_compiling" = maybe; then
2232: cross_compiling=yes
2233: else
2234: { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2235: If you meant to cross compile, use \`--host'.
2236: See \`config.log' for more details." >&5
2237: echo "$as_me: error: cannot run C compiled programs.
2238: If you meant to cross compile, use \`--host'.
2239: See \`config.log' for more details." >&2;}
2240: { (exit 1); exit 1; }; }
2241: fi
1.1.1.4 root 2242: fi
2243: fi
1.1.1.22 root 2244: { echo "$as_me:$LINENO: result: yes" >&5
2245: echo "${ECHO_T}yes" >&6; }
1.1.1.19 root 2246:
2247: rm -f a.out a.exe conftest$ac_cv_exeext b.out
2248: ac_clean_files=$ac_clean_files_save
1.1.1.22 root 2249: # Check that the compiler produces executables we can run. If not, either
1.1.1.19 root 2250: # the compiler is broken, or we cross compile.
1.1.1.22 root 2251: { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2252: echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2253: { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2254: echo "${ECHO_T}$cross_compiling" >&6; }
2255:
2256: { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2257: echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2258: if { (ac_try="$ac_link"
2259: case "(($ac_try" in
2260: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2261: *) ac_try_echo=$ac_try;;
2262: esac
2263: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2264: (eval "$ac_link") 2>&5
1.1.1.19 root 2265: ac_status=$?
2266: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2267: (exit $ac_status); }; then
2268: # If both `conftest.exe' and `conftest' are `present' (well, observable)
2269: # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2270: # work properly (i.e., refer to `conftest.exe'), while it won't with
2271: # `rm'.
2272: for ac_file in conftest.exe conftest conftest.*; do
2273: test -f "$ac_file" || continue
2274: case $ac_file in
1.1.1.22 root 2275: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1.1.1.19 root 2276: *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2277: break;;
2278: * ) break;;
2279: esac
2280: done
1.1 root 2281: else
1.1.1.19 root 2282: { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2283: See \`config.log' for more details." >&5
2284: echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2285: See \`config.log' for more details." >&2;}
2286: { (exit 1); exit 1; }; }
2287: fi
2288:
2289: rm -f conftest$ac_cv_exeext
1.1.1.22 root 2290: { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2291: echo "${ECHO_T}$ac_cv_exeext" >&6; }
1.1.1.19 root 2292:
2293: rm -f conftest.$ac_ext
2294: EXEEXT=$ac_cv_exeext
2295: ac_exeext=$EXEEXT
1.1.1.22 root 2296: { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2297: echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
1.1.1.19 root 2298: if test "${ac_cv_objext+set}" = set; then
2299: echo $ECHO_N "(cached) $ECHO_C" >&6
2300: else
2301: cat >conftest.$ac_ext <<_ACEOF
2302: /* confdefs.h. */
2303: _ACEOF
2304: cat confdefs.h >>conftest.$ac_ext
2305: cat >>conftest.$ac_ext <<_ACEOF
2306: /* end confdefs.h. */
1.1 root 2307:
1.1.1.19 root 2308: int
2309: main ()
2310: {
1.1.1.4 root 2311:
1.1.1.19 root 2312: ;
2313: return 0;
2314: }
2315: _ACEOF
2316: rm -f conftest.o conftest.obj
1.1.1.22 root 2317: if { (ac_try="$ac_compile"
2318: case "(($ac_try" in
2319: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2320: *) ac_try_echo=$ac_try;;
2321: esac
2322: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2323: (eval "$ac_compile") 2>&5
1.1.1.19 root 2324: ac_status=$?
2325: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2326: (exit $ac_status); }; then
1.1.1.22 root 2327: for ac_file in conftest.o conftest.obj conftest.*; do
2328: test -f "$ac_file" || continue;
1.1.1.19 root 2329: case $ac_file in
1.1.1.22 root 2330: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
1.1.1.19 root 2331: *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2332: break;;
2333: esac
2334: done
1.1.1.9 root 2335: else
1.1.1.19 root 2336: echo "$as_me: failed program was:" >&5
2337: sed 's/^/| /' conftest.$ac_ext >&5
1.1.1.9 root 2338:
1.1.1.19 root 2339: { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2340: See \`config.log' for more details." >&5
2341: echo "$as_me: error: cannot compute suffix of object files: cannot compile
2342: See \`config.log' for more details." >&2;}
2343: { (exit 1); exit 1; }; }
2344: fi
2345:
2346: rm -f conftest.$ac_cv_objext conftest.$ac_ext
2347: fi
1.1.1.22 root 2348: { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2349: echo "${ECHO_T}$ac_cv_objext" >&6; }
1.1.1.19 root 2350: OBJEXT=$ac_cv_objext
2351: ac_objext=$OBJEXT
1.1.1.22 root 2352: { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2353: echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
1.1.1.19 root 2354: if test "${ac_cv_c_compiler_gnu+set}" = set; then
2355: echo $ECHO_N "(cached) $ECHO_C" >&6
2356: else
2357: cat >conftest.$ac_ext <<_ACEOF
2358: /* confdefs.h. */
2359: _ACEOF
2360: cat confdefs.h >>conftest.$ac_ext
2361: cat >>conftest.$ac_ext <<_ACEOF
2362: /* end confdefs.h. */
2363:
2364: int
2365: main ()
2366: {
2367: #ifndef __GNUC__
2368: choke me
2369: #endif
2370:
2371: ;
2372: return 0;
2373: }
2374: _ACEOF
2375: rm -f conftest.$ac_objext
1.1.1.22 root 2376: if { (ac_try="$ac_compile"
2377: case "(($ac_try" in
2378: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2379: *) ac_try_echo=$ac_try;;
2380: esac
2381: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2382: (eval "$ac_compile") 2>conftest.er1
1.1.1.19 root 2383: ac_status=$?
2384: grep -v '^ *+' conftest.er1 >conftest.err
2385: rm -f conftest.er1
2386: cat conftest.err >&5
2387: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.22 root 2388: (exit $ac_status); } && {
2389: test -z "$ac_c_werror_flag" ||
2390: test ! -s conftest.err
2391: } && test -s conftest.$ac_objext; then
1.1.1.19 root 2392: ac_compiler_gnu=yes
2393: else
2394: echo "$as_me: failed program was:" >&5
2395: sed 's/^/| /' conftest.$ac_ext >&5
2396:
1.1.1.22 root 2397: ac_compiler_gnu=no
1.1.1.19 root 2398: fi
1.1.1.22 root 2399:
2400: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1.1.19 root 2401: ac_cv_c_compiler_gnu=$ac_compiler_gnu
2402:
2403: fi
1.1.1.22 root 2404: { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2405: echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
1.1.1.19 root 2406: GCC=`test $ac_compiler_gnu = yes && echo yes`
2407: ac_test_CFLAGS=${CFLAGS+set}
2408: ac_save_CFLAGS=$CFLAGS
1.1.1.22 root 2409: { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2410: echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
1.1.1.19 root 2411: if test "${ac_cv_prog_cc_g+set}" = set; then
2412: echo $ECHO_N "(cached) $ECHO_C" >&6
2413: else
1.1.1.22 root 2414: ac_save_c_werror_flag=$ac_c_werror_flag
2415: ac_c_werror_flag=yes
2416: ac_cv_prog_cc_g=no
2417: CFLAGS="-g"
2418: cat >conftest.$ac_ext <<_ACEOF
1.1.1.19 root 2419: /* confdefs.h. */
2420: _ACEOF
2421: cat confdefs.h >>conftest.$ac_ext
2422: cat >>conftest.$ac_ext <<_ACEOF
2423: /* end confdefs.h. */
2424:
2425: int
2426: main ()
2427: {
2428:
2429: ;
2430: return 0;
2431: }
2432: _ACEOF
2433: rm -f conftest.$ac_objext
1.1.1.22 root 2434: if { (ac_try="$ac_compile"
2435: case "(($ac_try" in
2436: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2437: *) ac_try_echo=$ac_try;;
2438: esac
2439: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2440: (eval "$ac_compile") 2>conftest.er1
1.1.1.19 root 2441: ac_status=$?
2442: grep -v '^ *+' conftest.er1 >conftest.err
2443: rm -f conftest.er1
2444: cat conftest.err >&5
2445: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.22 root 2446: (exit $ac_status); } && {
2447: test -z "$ac_c_werror_flag" ||
2448: test ! -s conftest.err
2449: } && test -s conftest.$ac_objext; then
2450: ac_cv_prog_cc_g=yes
2451: else
2452: echo "$as_me: failed program was:" >&5
2453: sed 's/^/| /' conftest.$ac_ext >&5
2454:
2455: CFLAGS=""
2456: cat >conftest.$ac_ext <<_ACEOF
2457: /* confdefs.h. */
2458: _ACEOF
2459: cat confdefs.h >>conftest.$ac_ext
2460: cat >>conftest.$ac_ext <<_ACEOF
2461: /* end confdefs.h. */
2462:
2463: int
2464: main ()
2465: {
2466:
2467: ;
2468: return 0;
2469: }
2470: _ACEOF
2471: rm -f conftest.$ac_objext
2472: if { (ac_try="$ac_compile"
2473: case "(($ac_try" in
2474: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2475: *) ac_try_echo=$ac_try;;
2476: esac
2477: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2478: (eval "$ac_compile") 2>conftest.er1
1.1.1.19 root 2479: ac_status=$?
1.1.1.22 root 2480: grep -v '^ *+' conftest.er1 >conftest.err
2481: rm -f conftest.er1
2482: cat conftest.err >&5
1.1.1.19 root 2483: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.22 root 2484: (exit $ac_status); } && {
2485: test -z "$ac_c_werror_flag" ||
2486: test ! -s conftest.err
2487: } && test -s conftest.$ac_objext; then
2488: :
2489: else
2490: echo "$as_me: failed program was:" >&5
2491: sed 's/^/| /' conftest.$ac_ext >&5
2492:
2493: ac_c_werror_flag=$ac_save_c_werror_flag
2494: CFLAGS="-g"
2495: cat >conftest.$ac_ext <<_ACEOF
2496: /* confdefs.h. */
2497: _ACEOF
2498: cat confdefs.h >>conftest.$ac_ext
2499: cat >>conftest.$ac_ext <<_ACEOF
2500: /* end confdefs.h. */
2501:
2502: int
2503: main ()
2504: {
2505:
2506: ;
2507: return 0;
2508: }
2509: _ACEOF
2510: rm -f conftest.$ac_objext
2511: if { (ac_try="$ac_compile"
2512: case "(($ac_try" in
2513: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2514: *) ac_try_echo=$ac_try;;
2515: esac
2516: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2517: (eval "$ac_compile") 2>conftest.er1
1.1.1.19 root 2518: ac_status=$?
1.1.1.22 root 2519: grep -v '^ *+' conftest.er1 >conftest.err
2520: rm -f conftest.er1
2521: cat conftest.err >&5
1.1.1.19 root 2522: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.22 root 2523: (exit $ac_status); } && {
2524: test -z "$ac_c_werror_flag" ||
2525: test ! -s conftest.err
2526: } && test -s conftest.$ac_objext; then
1.1.1.4 root 2527: ac_cv_prog_cc_g=yes
1.1 root 2528: else
1.1.1.19 root 2529: echo "$as_me: failed program was:" >&5
2530: sed 's/^/| /' conftest.$ac_ext >&5
1.1 root 2531:
1.1.1.22 root 2532:
2533: fi
2534:
2535: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2536: fi
2537:
2538: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1 root 2539: fi
1.1.1.22 root 2540:
2541: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2542: ac_c_werror_flag=$ac_save_c_werror_flag
1.1.1.19 root 2543: fi
1.1.1.22 root 2544: { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2545: echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
1.1.1.9 root 2546: if test "$ac_test_CFLAGS" = set; then
1.1.1.19 root 2547: CFLAGS=$ac_save_CFLAGS
1.1.1.9 root 2548: elif test $ac_cv_prog_cc_g = yes; then
2549: if test "$GCC" = yes; then
1.1.1.4 root 2550: CFLAGS="-g -O2"
2551: else
1.1.1.9 root 2552: CFLAGS="-g"
1.1 root 2553: fi
2554: else
1.1.1.9 root 2555: if test "$GCC" = yes; then
2556: CFLAGS="-O2"
2557: else
2558: CFLAGS=
2559: fi
1.1 root 2560: fi
1.1.1.22 root 2561: { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2562: echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2563: if test "${ac_cv_prog_cc_c89+set}" = set; then
1.1.1.19 root 2564: echo $ECHO_N "(cached) $ECHO_C" >&6
2565: else
1.1.1.22 root 2566: ac_cv_prog_cc_c89=no
1.1.1.19 root 2567: ac_save_CC=$CC
2568: cat >conftest.$ac_ext <<_ACEOF
2569: /* confdefs.h. */
2570: _ACEOF
2571: cat confdefs.h >>conftest.$ac_ext
2572: cat >>conftest.$ac_ext <<_ACEOF
2573: /* end confdefs.h. */
2574: #include <stdarg.h>
2575: #include <stdio.h>
2576: #include <sys/types.h>
2577: #include <sys/stat.h>
2578: /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2579: struct buf { int x; };
2580: FILE * (*rcsopen) (struct buf *, struct stat *, int);
2581: static char *e (p, i)
2582: char **p;
2583: int i;
2584: {
2585: return p[i];
2586: }
2587: static char *f (char * (*g) (char **, int), char **p, ...)
2588: {
2589: char *s;
2590: va_list v;
2591: va_start (v,p);
2592: s = g (p, va_arg (v,int));
2593: va_end (v);
2594: return s;
2595: }
2596:
2597: /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2598: function prototypes and stuff, but not '\xHH' hex character constants.
2599: These don't provoke an error unfortunately, instead are silently treated
1.1.1.22 root 2600: as 'x'. The following induces an error, until -std is added to get
1.1.1.19 root 2601: proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2602: array size at least. It's necessary to write '\x00'==0 to get something
1.1.1.22 root 2603: that's true only with -std. */
1.1.1.19 root 2604: int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2605:
1.1.1.22 root 2606: /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2607: inside strings and character constants. */
2608: #define FOO(x) 'x'
2609: int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2610:
1.1.1.19 root 2611: int test (int i, double x);
2612: struct s1 {int (*f) (int a);};
2613: struct s2 {int (*f) (double a);};
2614: int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2615: int argc;
2616: char **argv;
2617: int
2618: main ()
2619: {
2620: return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2621: ;
2622: return 0;
2623: }
2624: _ACEOF
1.1.1.22 root 2625: for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2626: -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1.1.1.19 root 2627: do
2628: CC="$ac_save_CC $ac_arg"
2629: rm -f conftest.$ac_objext
1.1.1.22 root 2630: if { (ac_try="$ac_compile"
2631: case "(($ac_try" in
2632: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2633: *) ac_try_echo=$ac_try;;
2634: esac
2635: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2636: (eval "$ac_compile") 2>conftest.er1
1.1.1.19 root 2637: ac_status=$?
2638: grep -v '^ *+' conftest.er1 >conftest.err
2639: rm -f conftest.er1
2640: cat conftest.err >&5
2641: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.22 root 2642: (exit $ac_status); } && {
2643: test -z "$ac_c_werror_flag" ||
2644: test ! -s conftest.err
2645: } && test -s conftest.$ac_objext; then
2646: ac_cv_prog_cc_c89=$ac_arg
1.1.1.19 root 2647: else
2648: echo "$as_me: failed program was:" >&5
2649: sed 's/^/| /' conftest.$ac_ext >&5
2650:
1.1.1.22 root 2651:
1.1.1.19 root 2652: fi
1.1.1.22 root 2653:
2654: rm -f core conftest.err conftest.$ac_objext
2655: test "x$ac_cv_prog_cc_c89" != "xno" && break
1.1.1.19 root 2656: done
1.1.1.22 root 2657: rm -f conftest.$ac_ext
1.1.1.19 root 2658: CC=$ac_save_CC
2659:
2660: fi
1.1.1.22 root 2661: # AC_CACHE_VAL
2662: case "x$ac_cv_prog_cc_c89" in
2663: x)
2664: { echo "$as_me:$LINENO: result: none needed" >&5
2665: echo "${ECHO_T}none needed" >&6; } ;;
2666: xno)
2667: { echo "$as_me:$LINENO: result: unsupported" >&5
2668: echo "${ECHO_T}unsupported" >&6; } ;;
1.1.1.19 root 2669: *)
1.1.1.22 root 2670: CC="$CC $ac_cv_prog_cc_c89"
2671: { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2672: echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
1.1.1.19 root 2673: esac
2674:
1.1.1.22 root 2675:
2676: ac_ext=c
2677: ac_cpp='$CPP $CPPFLAGS'
2678: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2679: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2680: ac_compiler_gnu=$ac_cv_c_compiler_gnu
2681:
2682:
2683: ac_ext=c
2684: ac_cpp='$CPP $CPPFLAGS'
2685: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2686: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2687: ac_compiler_gnu=$ac_cv_c_compiler_gnu
2688: { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2689: echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
2690: # On Suns, sometimes $CPP names a directory.
2691: if test -n "$CPP" && test -d "$CPP"; then
2692: CPP=
2693: fi
2694: if test -z "$CPP"; then
2695: if test "${ac_cv_prog_CPP+set}" = set; then
2696: echo $ECHO_N "(cached) $ECHO_C" >&6
2697: else
2698: # Double quotes because CPP needs to be expanded
2699: for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2700: do
2701: ac_preproc_ok=false
2702: for ac_c_preproc_warn_flag in '' yes
1.1.1.19 root 2703: do
1.1.1.22 root 2704: # Use a header file that comes with gcc, so configuring glibc
2705: # with a fresh cross-compiler works.
2706: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2707: # <limits.h> exists even on freestanding compilers.
2708: # On the NeXT, cc -E runs the code through the compiler's parser,
2709: # not just through cpp. "Syntax error" is here to catch this case.
1.1.1.19 root 2710: cat >conftest.$ac_ext <<_ACEOF
2711: /* confdefs.h. */
2712: _ACEOF
2713: cat confdefs.h >>conftest.$ac_ext
2714: cat >>conftest.$ac_ext <<_ACEOF
2715: /* end confdefs.h. */
2716: #ifdef __STDC__
2717: # include <limits.h>
2718: #else
2719: # include <assert.h>
2720: #endif
2721: Syntax error
2722: _ACEOF
1.1.1.22 root 2723: if { (ac_try="$ac_cpp conftest.$ac_ext"
2724: case "(($ac_try" in
2725: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2726: *) ac_try_echo=$ac_try;;
2727: esac
2728: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2729: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
1.1.1.19 root 2730: ac_status=$?
2731: grep -v '^ *+' conftest.er1 >conftest.err
2732: rm -f conftest.er1
2733: cat conftest.err >&5
2734: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.22 root 2735: (exit $ac_status); } >/dev/null && {
2736: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2737: test ! -s conftest.err
2738: }; then
1.1.1.9 root 2739: :
2740: else
1.1.1.19 root 2741: echo "$as_me: failed program was:" >&5
2742: sed 's/^/| /' conftest.$ac_ext >&5
2743:
2744: # Broken: fails on valid input.
2745: continue
2746: fi
1.1.1.22 root 2747:
1.1.1.19 root 2748: rm -f conftest.err conftest.$ac_ext
2749:
1.1.1.22 root 2750: # OK, works on sane cases. Now check whether nonexistent headers
1.1.1.19 root 2751: # can be detected and how.
2752: cat >conftest.$ac_ext <<_ACEOF
2753: /* confdefs.h. */
2754: _ACEOF
2755: cat confdefs.h >>conftest.$ac_ext
2756: cat >>conftest.$ac_ext <<_ACEOF
2757: /* end confdefs.h. */
2758: #include <ac_nonexistent.h>
2759: _ACEOF
1.1.1.22 root 2760: if { (ac_try="$ac_cpp conftest.$ac_ext"
2761: case "(($ac_try" in
2762: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2763: *) ac_try_echo=$ac_try;;
2764: esac
2765: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2766: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
1.1.1.19 root 2767: ac_status=$?
2768: grep -v '^ *+' conftest.er1 >conftest.err
2769: rm -f conftest.er1
2770: cat conftest.err >&5
2771: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.22 root 2772: (exit $ac_status); } >/dev/null && {
2773: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2774: test ! -s conftest.err
2775: }; then
1.1.1.19 root 2776: # Broken: success on invalid input.
2777: continue
2778: else
2779: echo "$as_me: failed program was:" >&5
2780: sed 's/^/| /' conftest.$ac_ext >&5
2781:
2782: # Passes both tests.
2783: ac_preproc_ok=:
2784: break
1.1 root 2785: fi
1.1.1.22 root 2786:
1.1.1.19 root 2787: rm -f conftest.err conftest.$ac_ext
2788:
2789: done
2790: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2791: rm -f conftest.err conftest.$ac_ext
2792: if $ac_preproc_ok; then
2793: break
1.1.1.9 root 2794: fi
1.1.1.19 root 2795:
2796: done
2797: ac_cv_prog_CPP=$CPP
2798:
2799: fi
2800: CPP=$ac_cv_prog_CPP
2801: else
2802: ac_cv_prog_CPP=$CPP
2803: fi
1.1.1.22 root 2804: { echo "$as_me:$LINENO: result: $CPP" >&5
2805: echo "${ECHO_T}$CPP" >&6; }
1.1.1.19 root 2806: ac_preproc_ok=false
2807: for ac_c_preproc_warn_flag in '' yes
2808: do
2809: # Use a header file that comes with gcc, so configuring glibc
2810: # with a fresh cross-compiler works.
2811: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2812: # <limits.h> exists even on freestanding compilers.
2813: # On the NeXT, cc -E runs the code through the compiler's parser,
2814: # not just through cpp. "Syntax error" is here to catch this case.
2815: cat >conftest.$ac_ext <<_ACEOF
2816: /* confdefs.h. */
2817: _ACEOF
2818: cat confdefs.h >>conftest.$ac_ext
2819: cat >>conftest.$ac_ext <<_ACEOF
2820: /* end confdefs.h. */
2821: #ifdef __STDC__
2822: # include <limits.h>
2823: #else
2824: # include <assert.h>
2825: #endif
2826: Syntax error
2827: _ACEOF
1.1.1.22 root 2828: if { (ac_try="$ac_cpp conftest.$ac_ext"
2829: case "(($ac_try" in
2830: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2831: *) ac_try_echo=$ac_try;;
2832: esac
2833: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2834: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
1.1.1.19 root 2835: ac_status=$?
2836: grep -v '^ *+' conftest.er1 >conftest.err
2837: rm -f conftest.er1
2838: cat conftest.err >&5
2839: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.22 root 2840: (exit $ac_status); } >/dev/null && {
2841: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2842: test ! -s conftest.err
2843: }; then
1.1.1.19 root 2844: :
2845: else
2846: echo "$as_me: failed program was:" >&5
2847: sed 's/^/| /' conftest.$ac_ext >&5
2848:
2849: # Broken: fails on valid input.
2850: continue
2851: fi
1.1.1.22 root 2852:
1.1.1.19 root 2853: rm -f conftest.err conftest.$ac_ext
2854:
1.1.1.22 root 2855: # OK, works on sane cases. Now check whether nonexistent headers
1.1.1.19 root 2856: # can be detected and how.
2857: cat >conftest.$ac_ext <<_ACEOF
2858: /* confdefs.h. */
2859: _ACEOF
2860: cat confdefs.h >>conftest.$ac_ext
2861: cat >>conftest.$ac_ext <<_ACEOF
2862: /* end confdefs.h. */
2863: #include <ac_nonexistent.h>
2864: _ACEOF
1.1.1.22 root 2865: if { (ac_try="$ac_cpp conftest.$ac_ext"
2866: case "(($ac_try" in
2867: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2868: *) ac_try_echo=$ac_try;;
2869: esac
2870: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2871: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
1.1.1.19 root 2872: ac_status=$?
2873: grep -v '^ *+' conftest.er1 >conftest.err
2874: rm -f conftest.er1
2875: cat conftest.err >&5
2876: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.22 root 2877: (exit $ac_status); } >/dev/null && {
2878: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2879: test ! -s conftest.err
2880: }; then
1.1.1.19 root 2881: # Broken: success on invalid input.
2882: continue
1.1 root 2883: else
1.1.1.19 root 2884: echo "$as_me: failed program was:" >&5
2885: sed 's/^/| /' conftest.$ac_ext >&5
2886:
2887: # Passes both tests.
2888: ac_preproc_ok=:
2889: break
2890: fi
1.1.1.22 root 2891:
1.1.1.19 root 2892: rm -f conftest.err conftest.$ac_ext
2893:
2894: done
2895: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2896: rm -f conftest.err conftest.$ac_ext
2897: if $ac_preproc_ok; then
2898: :
2899: else
2900: { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2901: See \`config.log' for more details." >&5
2902: echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2903: See \`config.log' for more details." >&2;}
2904: { (exit 1); exit 1; }; }
1.1 root 2905: fi
2906:
1.1.1.19 root 2907: ac_ext=c
2908: ac_cpp='$CPP $CPPFLAGS'
2909: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2910: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2911: ac_compiler_gnu=$ac_cv_c_compiler_gnu
2912:
1.1.1.23 root 2913: ac_aux_dir=
2914: for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2915: if test -f "$ac_dir/install-sh"; then
2916: ac_aux_dir=$ac_dir
2917: ac_install_sh="$ac_aux_dir/install-sh -c"
2918: break
2919: elif test -f "$ac_dir/install.sh"; then
2920: ac_aux_dir=$ac_dir
2921: ac_install_sh="$ac_aux_dir/install.sh -c"
2922: break
2923: elif test -f "$ac_dir/shtool"; then
2924: ac_aux_dir=$ac_dir
2925: ac_install_sh="$ac_aux_dir/shtool install -c"
2926: break
2927: fi
2928: done
2929: if test -z "$ac_aux_dir"; then
2930: { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2931: echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2932: { (exit 1); exit 1; }; }
2933: fi
2934:
2935: # These three variables are undocumented and unsupported,
2936: # and are intended to be withdrawn in a future Autoconf release.
2937: # They can cause serious problems if a builder's source tree is in a directory
2938: # whose full name contains unusual characters.
2939: ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2940: ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2941: ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2942:
2943:
2944: # Find a good install program. We prefer a C program (faster),
2945: # so one script is as good as another. But avoid the broken or
2946: # incompatible versions:
2947: # SysV /etc/install, /usr/sbin/install
2948: # SunOS /usr/etc/install
2949: # IRIX /sbin/install
2950: # AIX /bin/install
2951: # AmigaOS /C/install, which installs bootblocks on floppy discs
2952: # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2953: # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2954: # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2955: # OS/2's system install, which has a completely different semantic
2956: # ./install, which can be erroneously created by make from ./install.sh.
2957: { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2958: echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2959: if test -z "$INSTALL"; then
2960: if test "${ac_cv_path_install+set}" = set; then
2961: echo $ECHO_N "(cached) $ECHO_C" >&6
2962: else
2963: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2964: for as_dir in $PATH
2965: do
2966: IFS=$as_save_IFS
2967: test -z "$as_dir" && as_dir=.
2968: # Account for people who put trailing slashes in PATH elements.
2969: case $as_dir/ in
2970: ./ | .// | /cC/* | \
2971: /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2972: ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2973: /usr/ucb/* ) ;;
2974: *)
2975: # OSF1 and SCO ODT 3.0 have their own names for install.
2976: # Don't use installbsd from OSF since it installs stuff as root
2977: # by default.
2978: for ac_prog in ginstall scoinst install; do
2979: for ac_exec_ext in '' $ac_executable_extensions; do
2980: if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2981: if test $ac_prog = install &&
2982: grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2983: # AIX install. It has an incompatible calling convention.
2984: :
2985: elif test $ac_prog = install &&
2986: grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2987: # program-specific install script used by HP pwplus--don't use.
2988: :
2989: else
2990: ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2991: break 3
2992: fi
2993: fi
2994: done
2995: done
2996: ;;
2997: esac
2998: done
2999: IFS=$as_save_IFS
3000:
3001:
3002: fi
3003: if test "${ac_cv_path_install+set}" = set; then
3004: INSTALL=$ac_cv_path_install
3005: else
3006: # As a last resort, use the slow shell script. Don't cache a
3007: # value for INSTALL within a source directory, because that will
3008: # break other packages using the cache if that directory is
3009: # removed, or if the value is a relative name.
3010: INSTALL=$ac_install_sh
3011: fi
3012: fi
3013: { echo "$as_me:$LINENO: result: $INSTALL" >&5
3014: echo "${ECHO_T}$INSTALL" >&6; }
3015:
3016: # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3017: # It thinks the first close brace ends the variable substitution.
3018: test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3019:
3020: test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3021:
3022: test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3023:
1.1.1.22 root 3024: { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3025: echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
3026: set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3027: if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
1.1.1.19 root 3028: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 root 3029: else
1.1.1.19 root 3030: cat >conftest.make <<\_ACEOF
1.1.1.22 root 3031: SHELL = /bin/sh
1.1 root 3032: all:
1.1.1.22 root 3033: @echo '@@@%%%=$(MAKE)=@@@%%%'
1.1.1.19 root 3034: _ACEOF
1.1 root 3035: # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1.1.1.22 root 3036: case `${MAKE-make} -f conftest.make 2>/dev/null` in
3037: *@@@%%%=?*=@@@%%%*)
3038: eval ac_cv_prog_make_${ac_make}_set=yes;;
3039: *)
3040: eval ac_cv_prog_make_${ac_make}_set=no;;
3041: esac
1.1.1.19 root 3042: rm -f conftest.make
1.1 root 3043: fi
1.1.1.22 root 3044: if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3045: { echo "$as_me:$LINENO: result: yes" >&5
3046: echo "${ECHO_T}yes" >&6; }
1.1 root 3047: SET_MAKE=
3048: else
1.1.1.22 root 3049: { echo "$as_me:$LINENO: result: no" >&5
3050: echo "${ECHO_T}no" >&6; }
1.1 root 3051: SET_MAKE="MAKE=${MAKE-make}"
3052: fi
3053:
1.1.1.11 root 3054: # Extract the first word of "makedepend", so it can be a program name with args.
3055: set dummy makedepend; ac_word=$2
1.1.1.22 root 3056: { echo "$as_me:$LINENO: checking for $ac_word" >&5
3057: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1.1.1.19 root 3058: if test "${ac_cv_path_MAKEDEPPRG+set}" = set; then
3059: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1.1.11 root 3060: else
1.1.1.19 root 3061: case $MAKEDEPPRG in
3062: [\\/]* | ?:[\\/]*)
1.1.1.11 root 3063: ac_cv_path_MAKEDEPPRG="$MAKEDEPPRG" # Let the user override the test with a path.
3064: ;;
3065: *)
1.1.1.19 root 3066: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3067: for as_dir in $PATH
3068: do
3069: IFS=$as_save_IFS
3070: test -z "$as_dir" && as_dir=.
3071: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.22 root 3072: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.1.1.19 root 3073: ac_cv_path_MAKEDEPPRG="$as_dir/$ac_word$ac_exec_ext"
3074: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3075: break 2
3076: fi
3077: done
3078: done
1.1.1.22 root 3079: IFS=$as_save_IFS
1.1.1.19 root 3080:
3081: test -z "$ac_cv_path_MAKEDEPPRG" && ac_cv_path_MAKEDEPPRG="not-found"
3082: ;;
3083: esac
3084: fi
3085: MAKEDEPPRG=$ac_cv_path_MAKEDEPPRG
1.1.1.11 root 3086: if test -n "$MAKEDEPPRG"; then
1.1.1.22 root 3087: { echo "$as_me:$LINENO: result: $MAKEDEPPRG" >&5
3088: echo "${ECHO_T}$MAKEDEPPRG" >&6; }
1.1.1.11 root 3089: else
1.1.1.22 root 3090: { echo "$as_me:$LINENO: result: no" >&5
3091: echo "${ECHO_T}no" >&6; }
1.1.1.11 root 3092: fi
3093:
1.1.1.22 root 3094:
1.1.1.4 root 3095: # Extract the first word of "file", so it can be a program name with args.
3096: set dummy file; ac_word=$2
1.1.1.22 root 3097: { echo "$as_me:$LINENO: checking for $ac_word" >&5
3098: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1.1.1.19 root 3099: if test "${ac_cv_path_FILEPRG+set}" = set; then
3100: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1.1.4 root 3101: else
1.1.1.19 root 3102: case $FILEPRG in
3103: [\\/]* | ?:[\\/]*)
1.1.1.4 root 3104: ac_cv_path_FILEPRG="$FILEPRG" # Let the user override the test with a path.
3105: ;;
3106: *)
1.1.1.19 root 3107: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3108: for as_dir in $PATH
3109: do
3110: IFS=$as_save_IFS
3111: test -z "$as_dir" && as_dir=.
3112: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.22 root 3113: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.1.1.19 root 3114: ac_cv_path_FILEPRG="$as_dir/$ac_word$ac_exec_ext"
3115: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3116: break 2
3117: fi
3118: done
3119: done
1.1.1.22 root 3120: IFS=$as_save_IFS
1.1.1.19 root 3121:
1.1.1.4 root 3122: test -z "$ac_cv_path_FILEPRG" && ac_cv_path_FILEPRG="not-found"
3123: ;;
3124: esac
3125: fi
1.1.1.19 root 3126: FILEPRG=$ac_cv_path_FILEPRG
1.1.1.4 root 3127: if test -n "$FILEPRG"; then
1.1.1.22 root 3128: { echo "$as_me:$LINENO: result: $FILEPRG" >&5
3129: echo "${ECHO_T}$FILEPRG" >&6; }
1.1.1.4 root 3130: else
1.1.1.22 root 3131: { echo "$as_me:$LINENO: result: no" >&5
3132: echo "${ECHO_T}no" >&6; }
1.1.1.4 root 3133: fi
3134:
1.1.1.22 root 3135:
1.1.1.6 root 3136: # Extract the first word of "wrc", so it can be a program name with args.
3137: set dummy wrc; ac_word=$2
1.1.1.22 root 3138: { echo "$as_me:$LINENO: checking for $ac_word" >&5
3139: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1.1.1.19 root 3140: if test "${ac_cv_path_WRCPRG+set}" = set; then
3141: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1.1.6 root 3142: else
1.1.1.19 root 3143: case $WRCPRG in
3144: [\\/]* | ?:[\\/]*)
1.1.1.6 root 3145: ac_cv_path_WRCPRG="$WRCPRG" # Let the user override the test with a path.
3146: ;;
3147: *)
1.1.1.19 root 3148: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3149: for as_dir in $PATH
3150: do
3151: IFS=$as_save_IFS
3152: test -z "$as_dir" && as_dir=.
3153: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.22 root 3154: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.1.1.19 root 3155: ac_cv_path_WRCPRG="$as_dir/$ac_word$ac_exec_ext"
3156: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3157: break 2
3158: fi
3159: done
3160: done
1.1.1.22 root 3161: IFS=$as_save_IFS
1.1.1.19 root 3162:
1.1.1.6 root 3163: test -z "$ac_cv_path_WRCPRG" && ac_cv_path_WRCPRG="not-found"
3164: ;;
3165: esac
3166: fi
1.1.1.19 root 3167: WRCPRG=$ac_cv_path_WRCPRG
1.1.1.6 root 3168: if test -n "$WRCPRG"; then
1.1.1.22 root 3169: { echo "$as_me:$LINENO: result: $WRCPRG" >&5
3170: echo "${ECHO_T}$WRCPRG" >&6; }
1.1.1.6 root 3171: else
1.1.1.22 root 3172: { echo "$as_me:$LINENO: result: no" >&5
3173: echo "${ECHO_T}no" >&6; }
1.1.1.6 root 3174: fi
3175:
1.1.1.22 root 3176:
1.1.1.6 root 3177: # Extract the first word of "rcl", so it can be a program name with args.
3178: set dummy rcl; ac_word=$2
1.1.1.22 root 3179: { echo "$as_me:$LINENO: checking for $ac_word" >&5
3180: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1.1.1.19 root 3181: if test "${ac_cv_path_RCLPRG+set}" = set; then
3182: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1.1.6 root 3183: else
1.1.1.19 root 3184: case $RCLPRG in
3185: [\\/]* | ?:[\\/]*)
1.1.1.6 root 3186: ac_cv_path_RCLPRG="$RCLPRG" # Let the user override the test with a path.
3187: ;;
3188: *)
1.1.1.19 root 3189: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3190: for as_dir in $PATH
3191: do
3192: IFS=$as_save_IFS
3193: test -z "$as_dir" && as_dir=.
3194: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.22 root 3195: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.1.1.19 root 3196: ac_cv_path_RCLPRG="$as_dir/$ac_word$ac_exec_ext"
3197: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3198: break 2
3199: fi
3200: done
3201: done
1.1.1.22 root 3202: IFS=$as_save_IFS
1.1.1.19 root 3203:
1.1.1.6 root 3204: test -z "$ac_cv_path_RCLPRG" && ac_cv_path_RCLPRG="not-found"
3205: ;;
3206: esac
3207: fi
1.1.1.19 root 3208: RCLPRG=$ac_cv_path_RCLPRG
1.1.1.6 root 3209: if test -n "$RCLPRG"; then
1.1.1.22 root 3210: { echo "$as_me:$LINENO: result: $RCLPRG" >&5
3211: echo "${ECHO_T}$RCLPRG" >&6; }
1.1.1.6 root 3212: else
1.1.1.22 root 3213: { echo "$as_me:$LINENO: result: no" >&5
3214: echo "${ECHO_T}no" >&6; }
1.1.1.6 root 3215: fi
3216:
1.1.1.22 root 3217:
1.1.1.16 root 3218: # Extract the first word of "sdl-config", so it can be a program name with args.
3219: set dummy sdl-config; ac_word=$2
1.1.1.22 root 3220: { echo "$as_me:$LINENO: checking for $ac_word" >&5
3221: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1.1.1.19 root 3222: if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
3223: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1.1.16 root 3224: else
1.1.1.19 root 3225: case $SDL_CONFIG in
3226: [\\/]* | ?:[\\/]*)
1.1.1.16 root 3227: ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
3228: ;;
3229: *)
1.1.1.19 root 3230: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3231: for as_dir in $PATH
3232: do
3233: IFS=$as_save_IFS
3234: test -z "$as_dir" && as_dir=.
3235: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.22 root 3236: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.1.1.19 root 3237: ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
3238: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3239: break 2
3240: fi
3241: done
3242: done
1.1.1.22 root 3243: IFS=$as_save_IFS
1.1.1.19 root 3244:
1.1.1.16 root 3245: test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="not-found"
3246: ;;
3247: esac
3248: fi
1.1.1.19 root 3249: SDL_CONFIG=$ac_cv_path_SDL_CONFIG
1.1.1.16 root 3250: if test -n "$SDL_CONFIG"; then
1.1.1.22 root 3251: { echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
3252: echo "${ECHO_T}$SDL_CONFIG" >&6; }
3253: else
3254: { echo "$as_me:$LINENO: result: no" >&5
3255: echo "${ECHO_T}no" >&6; }
3256: fi
3257:
3258:
3259:
3260:
3261:
3262: { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3263: echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3264: if test "${ac_cv_path_GREP+set}" = set; then
3265: echo $ECHO_N "(cached) $ECHO_C" >&6
3266: else
3267: # Extract the first word of "grep ggrep" to use in msg output
3268: if test -z "$GREP"; then
3269: set dummy grep ggrep; ac_prog_name=$2
3270: if test "${ac_cv_path_GREP+set}" = set; then
3271: echo $ECHO_N "(cached) $ECHO_C" >&6
3272: else
3273: ac_path_GREP_found=false
3274: # Loop through the user's path and test for each of PROGNAME-LIST
3275: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3276: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3277: do
3278: IFS=$as_save_IFS
3279: test -z "$as_dir" && as_dir=.
3280: for ac_prog in grep ggrep; do
3281: for ac_exec_ext in '' $ac_executable_extensions; do
3282: ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3283: { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3284: # Check for GNU ac_path_GREP and select it if it is found.
3285: # Check for GNU $ac_path_GREP
3286: case `"$ac_path_GREP" --version 2>&1` in
3287: *GNU*)
3288: ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3289: *)
3290: ac_count=0
3291: echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3292: while :
3293: do
3294: cat "conftest.in" "conftest.in" >"conftest.tmp"
3295: mv "conftest.tmp" "conftest.in"
3296: cp "conftest.in" "conftest.nl"
3297: echo 'GREP' >> "conftest.nl"
3298: "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3299: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3300: ac_count=`expr $ac_count + 1`
3301: if test $ac_count -gt ${ac_path_GREP_max-0}; then
3302: # Best one so far, save it but keep looking for a better one
3303: ac_cv_path_GREP="$ac_path_GREP"
3304: ac_path_GREP_max=$ac_count
3305: fi
3306: # 10*(2^10) chars as input seems more than enough
3307: test $ac_count -gt 10 && break
3308: done
3309: rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3310: esac
3311:
3312:
3313: $ac_path_GREP_found && break 3
3314: done
3315: done
3316:
3317: done
3318: IFS=$as_save_IFS
3319:
3320:
3321: fi
3322:
3323: GREP="$ac_cv_path_GREP"
3324: if test -z "$GREP"; then
3325: { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3326: echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3327: { (exit 1); exit 1; }; }
3328: fi
3329:
1.1.1.16 root 3330: else
1.1.1.22 root 3331: ac_cv_path_GREP=$GREP
1.1.1.16 root 3332: fi
3333:
1.1 root 3334:
1.1.1.22 root 3335: fi
3336: { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3337: echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3338: GREP="$ac_cv_path_GREP"
1.1.1.19 root 3339:
3340:
1.1.1.22 root 3341: { echo "$as_me:$LINENO: checking for egrep" >&5
3342: echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3343: if test "${ac_cv_path_EGREP+set}" = set; then
3344: echo $ECHO_N "(cached) $ECHO_C" >&6
3345: else
3346: if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3347: then ac_cv_path_EGREP="$GREP -E"
3348: else
3349: # Extract the first word of "egrep" to use in msg output
3350: if test -z "$EGREP"; then
3351: set dummy egrep; ac_prog_name=$2
3352: if test "${ac_cv_path_EGREP+set}" = set; then
1.1.1.19 root 3353: echo $ECHO_N "(cached) $ECHO_C" >&6
3354: else
1.1.1.22 root 3355: ac_path_EGREP_found=false
3356: # Loop through the user's path and test for each of PROGNAME-LIST
3357: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3358: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3359: do
3360: IFS=$as_save_IFS
3361: test -z "$as_dir" && as_dir=.
3362: for ac_prog in egrep; do
3363: for ac_exec_ext in '' $ac_executable_extensions; do
3364: ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3365: { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3366: # Check for GNU ac_path_EGREP and select it if it is found.
3367: # Check for GNU $ac_path_EGREP
3368: case `"$ac_path_EGREP" --version 2>&1` in
3369: *GNU*)
3370: ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3371: *)
3372: ac_count=0
3373: echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3374: while :
3375: do
3376: cat "conftest.in" "conftest.in" >"conftest.tmp"
3377: mv "conftest.tmp" "conftest.in"
3378: cp "conftest.in" "conftest.nl"
3379: echo 'EGREP' >> "conftest.nl"
3380: "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3381: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3382: ac_count=`expr $ac_count + 1`
3383: if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3384: # Best one so far, save it but keep looking for a better one
3385: ac_cv_path_EGREP="$ac_path_EGREP"
3386: ac_path_EGREP_max=$ac_count
1.1.1.19 root 3387: fi
1.1.1.22 root 3388: # 10*(2^10) chars as input seems more than enough
3389: test $ac_count -gt 10 && break
3390: done
3391: rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3392: esac
3393:
3394:
3395: $ac_path_EGREP_found && break 3
3396: done
3397: done
3398:
3399: done
3400: IFS=$as_save_IFS
3401:
3402:
3403: fi
3404:
3405: EGREP="$ac_cv_path_EGREP"
3406: if test -z "$EGREP"; then
3407: { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3408: echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3409: { (exit 1); exit 1; }; }
1.1.1.19 root 3410: fi
1.1.1.22 root 3411:
3412: else
3413: ac_cv_path_EGREP=$EGREP
3414: fi
3415:
3416:
3417: fi
3418: fi
3419: { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3420: echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3421: EGREP="$ac_cv_path_EGREP"
1.1.1.19 root 3422:
3423:
3424:
1.1.1.22 root 3425: { echo "$as_me:$LINENO: checking for AIX" >&5
3426: echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
1.1.1.19 root 3427: cat >conftest.$ac_ext <<_ACEOF
3428: /* confdefs.h. */
3429: _ACEOF
3430: cat confdefs.h >>conftest.$ac_ext
3431: cat >>conftest.$ac_ext <<_ACEOF
3432: /* end confdefs.h. */
1.1 root 3433: #ifdef _AIX
3434: yes
3435: #endif
3436:
1.1.1.19 root 3437: _ACEOF
1.1 root 3438: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1.1.1.19 root 3439: $EGREP "yes" >/dev/null 2>&1; then
1.1.1.22 root 3440: { echo "$as_me:$LINENO: result: yes" >&5
3441: echo "${ECHO_T}yes" >&6; }
1.1.1.19 root 3442: cat >>confdefs.h <<\_ACEOF
1.1 root 3443: #define _ALL_SOURCE 1
1.1.1.19 root 3444: _ACEOF
1.1 root 3445:
3446: else
1.1.1.22 root 3447: { echo "$as_me:$LINENO: result: no" >&5
3448: echo "${ECHO_T}no" >&6; }
1.1 root 3449: fi
3450: rm -f conftest*
3451:
3452:
1.1.1.22 root 3453: { echo "$as_me:$LINENO: checking for library containing strerror" >&5
3454: echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; }
1.1.1.19 root 3455: if test "${ac_cv_search_strerror+set}" = set; then
3456: echo $ECHO_N "(cached) $ECHO_C" >&6
3457: else
3458: ac_func_search_save_LIBS=$LIBS
3459: cat >conftest.$ac_ext <<_ACEOF
3460: /* confdefs.h. */
3461: _ACEOF
3462: cat confdefs.h >>conftest.$ac_ext
3463: cat >>conftest.$ac_ext <<_ACEOF
3464: /* end confdefs.h. */
1.1 root 3465:
1.1.1.22 root 3466: /* Override any GCC internal prototype to avoid an error.
3467: Use char because int might match the return type of a GCC
3468: builtin and then its argument prototype would still apply. */
1.1.1.19 root 3469: #ifdef __cplusplus
3470: extern "C"
3471: #endif
3472: char strerror ();
3473: int
3474: main ()
3475: {
1.1.1.22 root 3476: return strerror ();
1.1.1.19 root 3477: ;
3478: return 0;
3479: }
3480: _ACEOF
1.1.1.22 root 3481: for ac_lib in '' cposix; do
3482: if test -z "$ac_lib"; then
3483: ac_res="none required"
3484: else
3485: ac_res=-l$ac_lib
3486: LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3487: fi
3488: rm -f conftest.$ac_objext conftest$ac_exeext
3489: if { (ac_try="$ac_link"
3490: case "(($ac_try" in
3491: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3492: *) ac_try_echo=$ac_try;;
3493: esac
3494: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3495: (eval "$ac_link") 2>conftest.er1
1.1.1.19 root 3496: ac_status=$?
3497: grep -v '^ *+' conftest.er1 >conftest.err
3498: rm -f conftest.er1
3499: cat conftest.err >&5
3500: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.22 root 3501: (exit $ac_status); } && {
3502: test -z "$ac_c_werror_flag" ||
3503: test ! -s conftest.err
3504: } && test -s conftest$ac_exeext &&
3505: $as_test_x conftest$ac_exeext; then
3506: ac_cv_search_strerror=$ac_res
1.1.1.19 root 3507: else
3508: echo "$as_me: failed program was:" >&5
3509: sed 's/^/| /' conftest.$ac_ext >&5
3510:
3511:
1.1.1.22 root 3512: fi
1.1.1.19 root 3513:
1.1.1.22 root 3514: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3515: conftest$ac_exeext
3516: if test "${ac_cv_search_strerror+set}" = set; then
3517: break
1.1.1.19 root 3518: fi
1.1.1.22 root 3519: done
3520: if test "${ac_cv_search_strerror+set}" = set; then
3521: :
3522: else
3523: ac_cv_search_strerror=no
1.1.1.19 root 3524: fi
1.1.1.22 root 3525: rm conftest.$ac_ext
1.1.1.19 root 3526: LIBS=$ac_func_search_save_LIBS
1.1 root 3527: fi
1.1.1.22 root 3528: { echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
3529: echo "${ECHO_T}$ac_cv_search_strerror" >&6; }
3530: ac_res=$ac_cv_search_strerror
3531: if test "$ac_res" != no; then
3532: test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
1.1 root 3533:
1.1.1.19 root 3534: fi
1.1 root 3535:
1.1.1.19 root 3536:
1.1.1.22 root 3537: { echo "$as_me:$LINENO: checking for Watcom C" >&5
3538: echo $ECHO_N "checking for Watcom C... $ECHO_C" >&6; }
1.1.1.19 root 3539: cat >conftest.$ac_ext <<_ACEOF
3540: /* confdefs.h. */
3541: _ACEOF
3542: cat confdefs.h >>conftest.$ac_ext
3543: cat >>conftest.$ac_ext <<_ACEOF
3544: /* end confdefs.h. */
1.1.1.6 root 3545: #ifdef __WATCOMC__
3546: yes
3547: #endif
3548:
1.1.1.19 root 3549: _ACEOF
1.1.1.6 root 3550: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1.1.1.19 root 3551: $EGREP "yes" >/dev/null 2>&1; then
1.1.1.6 root 3552: uae_cv_prog_cc_watcom=yes
3553: else
3554: uae_cv_prog_cc_watcom=no
3555: fi
3556: rm -f conftest*
3557:
1.1.1.22 root 3558: { echo "$as_me:$LINENO: result: $uae_cv_prog_cc_watcom" >&5
3559: echo "${ECHO_T}$uae_cv_prog_cc_watcom" >&6; }
1.1.1.6 root 3560:
1.1.1.19 root 3561: # Make sure we can run config.sub.
1.1.1.22 root 3562: $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3563: { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3564: echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1.1.1.19 root 3565: { (exit 1); exit 1; }; }
3566:
1.1.1.22 root 3567: { echo "$as_me:$LINENO: checking build system type" >&5
3568: echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1.1.1.19 root 3569: if test "${ac_cv_build+set}" = set; then
3570: echo $ECHO_N "(cached) $ECHO_C" >&6
3571: else
1.1.1.22 root 3572: ac_build_alias=$build_alias
3573: test "x$ac_build_alias" = x &&
3574: ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3575: test "x$ac_build_alias" = x &&
1.1.1.19 root 3576: { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3577: echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3578: { (exit 1); exit 1; }; }
1.1.1.22 root 3579: ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3580: { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3581: echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1.1.1.19 root 3582: { (exit 1); exit 1; }; }
3583:
3584: fi
1.1.1.22 root 3585: { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3586: echo "${ECHO_T}$ac_cv_build" >&6; }
3587: case $ac_cv_build in
3588: *-*-*) ;;
3589: *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3590: echo "$as_me: error: invalid value of canonical build" >&2;}
3591: { (exit 1); exit 1; }; };;
3592: esac
1.1.1.19 root 3593: build=$ac_cv_build
1.1.1.22 root 3594: ac_save_IFS=$IFS; IFS='-'
3595: set x $ac_cv_build
3596: shift
3597: build_cpu=$1
3598: build_vendor=$2
3599: shift; shift
3600: # Remember, the first character of IFS is used to create $*,
3601: # except with old shells:
3602: build_os=$*
3603: IFS=$ac_save_IFS
3604: case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1.1.1.19 root 3605:
3606:
1.1.1.22 root 3607: { echo "$as_me:$LINENO: checking host system type" >&5
3608: echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1.1.1.19 root 3609: if test "${ac_cv_host+set}" = set; then
3610: echo $ECHO_N "(cached) $ECHO_C" >&6
3611: else
1.1.1.22 root 3612: if test "x$host_alias" = x; then
3613: ac_cv_host=$ac_cv_build
3614: else
3615: ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3616: { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3617: echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1.1.1.19 root 3618: { (exit 1); exit 1; }; }
1.1.1.22 root 3619: fi
1.1.1.19 root 3620:
3621: fi
1.1.1.22 root 3622: { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3623: echo "${ECHO_T}$ac_cv_host" >&6; }
3624: case $ac_cv_host in
3625: *-*-*) ;;
3626: *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3627: echo "$as_me: error: invalid value of canonical host" >&2;}
3628: { (exit 1); exit 1; }; };;
3629: esac
1.1.1.19 root 3630: host=$ac_cv_host
1.1.1.22 root 3631: ac_save_IFS=$IFS; IFS='-'
3632: set x $ac_cv_host
3633: shift
3634: host_cpu=$1
3635: host_vendor=$2
3636: shift; shift
3637: # Remember, the first character of IFS is used to create $*,
3638: # except with old shells:
3639: host_os=$*
3640: IFS=$ac_save_IFS
3641: case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
1.1.1.19 root 3642:
3643:
3644: case $host_os in
3645: *cygwin* ) CYGWIN=yes;;
3646: * ) CYGWIN=no;;
3647: esac
1.1.1.6 root 3648:
1.1.1.19 root 3649: case $host_os in
3650: *mingw32* ) MINGW32=yes;;
3651: * ) MINGW32=no;;
3652: esac
1.1.1.6 root 3653:
3654:
3655:
1.1.1.4 root 3656: NR_WARNINGS=0
3657: NR_ERRORS=0
3658:
1.1.1.6 root 3659: tmp_save_dir=`pwd`
3660: cd $srcdir
3661: abssrcdir=`pwd`
3662: cd $tmp_save_dir
3663:
1.1.1.4 root 3664: NEED_THREAD_SUPPORT=no
3665:
3666: ADDITIONAL_CFLAGS=
3667: OPTIMIZE_CFLAGS=
3668: WARNING_CFLAGS=
3669: DEBUG_CFLAGS=
3670: NO_SCHED_CFLAGS=
1.1.1.19 root 3671: NO_REORDER_CFLAGS=
1.1.1.14 root 3672: LDFLAGS="$LDFLAGS -L."
1.1.1.4 root 3673:
3674: HAVE_BEOS=no
1.1.1.22 root 3675: { echo "$as_me:$LINENO: checking for main in -lMedia_s" >&5
3676: echo $ECHO_N "checking for main in -lMedia_s... $ECHO_C" >&6; }
1.1.1.19 root 3677: if test "${ac_cv_lib_Media_s_main+set}" = set; then
3678: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 root 3679: else
1.1.1.19 root 3680: ac_check_lib_save_LIBS=$LIBS
1.1 root 3681: LIBS="-lMedia_s $LIBS"
1.1.1.19 root 3682: cat >conftest.$ac_ext <<_ACEOF
3683: /* confdefs.h. */
3684: _ACEOF
3685: cat confdefs.h >>conftest.$ac_ext
3686: cat >>conftest.$ac_ext <<_ACEOF
3687: /* end confdefs.h. */
1.1 root 3688:
3689:
1.1.1.19 root 3690: int
3691: main ()
3692: {
1.1.1.22 root 3693: return main ();
1.1.1.19 root 3694: ;
3695: return 0;
3696: }
3697: _ACEOF
3698: rm -f conftest.$ac_objext conftest$ac_exeext
1.1.1.22 root 3699: if { (ac_try="$ac_link"
3700: case "(($ac_try" in
3701: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3702: *) ac_try_echo=$ac_try;;
3703: esac
3704: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3705: (eval "$ac_link") 2>conftest.er1
1.1.1.19 root 3706: ac_status=$?
3707: grep -v '^ *+' conftest.er1 >conftest.err
3708: rm -f conftest.er1
3709: cat conftest.err >&5
3710: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.22 root 3711: (exit $ac_status); } && {
3712: test -z "$ac_c_werror_flag" ||
3713: test ! -s conftest.err
3714: } && test -s conftest$ac_exeext &&
3715: $as_test_x conftest$ac_exeext; then
1.1.1.19 root 3716: ac_cv_lib_Media_s_main=yes
3717: else
3718: echo "$as_me: failed program was:" >&5
3719: sed 's/^/| /' conftest.$ac_ext >&5
3720:
1.1.1.22 root 3721: ac_cv_lib_Media_s_main=no
1.1.1.19 root 3722: fi
1.1.1.22 root 3723:
3724: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.1.1.19 root 3725: conftest$ac_exeext conftest.$ac_ext
3726: LIBS=$ac_check_lib_save_LIBS
3727: fi
1.1.1.22 root 3728: { echo "$as_me:$LINENO: result: $ac_cv_lib_Media_s_main" >&5
3729: echo "${ECHO_T}$ac_cv_lib_Media_s_main" >&6; }
1.1.1.19 root 3730: if test $ac_cv_lib_Media_s_main = yes; then
1.1.1.4 root 3731: HAVE_MEDIA_LIB=yes
1.1 root 3732: else
1.1.1.19 root 3733: HAVE_MEDIA_LIB=no
1.1 root 3734: fi
3735:
1.1.1.22 root 3736: { echo "$as_me:$LINENO: checking for main in -lNeXT_s" >&5
3737: echo $ECHO_N "checking for main in -lNeXT_s... $ECHO_C" >&6; }
1.1.1.19 root 3738: if test "${ac_cv_lib_NeXT_s_main+set}" = set; then
3739: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 root 3740: else
1.1.1.19 root 3741: ac_check_lib_save_LIBS=$LIBS
1.1 root 3742: LIBS="-lNeXT_s $LIBS"
1.1.1.19 root 3743: cat >conftest.$ac_ext <<_ACEOF
3744: /* confdefs.h. */
3745: _ACEOF
3746: cat confdefs.h >>conftest.$ac_ext
3747: cat >>conftest.$ac_ext <<_ACEOF
3748: /* end confdefs.h. */
1.1 root 3749:
3750:
1.1.1.19 root 3751: int
3752: main ()
3753: {
1.1.1.22 root 3754: return main ();
1.1.1.19 root 3755: ;
3756: return 0;
3757: }
3758: _ACEOF
3759: rm -f conftest.$ac_objext conftest$ac_exeext
1.1.1.22 root 3760: if { (ac_try="$ac_link"
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_link") 2>conftest.er1
1.1.1.19 root 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.22 root 3772: (exit $ac_status); } && {
3773: test -z "$ac_c_werror_flag" ||
3774: test ! -s conftest.err
3775: } && test -s conftest$ac_exeext &&
3776: $as_test_x conftest$ac_exeext; then
1.1.1.19 root 3777: ac_cv_lib_NeXT_s_main=yes
3778: else
3779: echo "$as_me: failed program was:" >&5
3780: sed 's/^/| /' conftest.$ac_ext >&5
3781:
1.1.1.22 root 3782: ac_cv_lib_NeXT_s_main=no
1.1.1.19 root 3783: fi
1.1.1.22 root 3784:
3785: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.1.1.19 root 3786: conftest$ac_exeext conftest.$ac_ext
3787: LIBS=$ac_check_lib_save_LIBS
3788: fi
1.1.1.22 root 3789: { echo "$as_me:$LINENO: result: $ac_cv_lib_NeXT_s_main" >&5
3790: echo "${ECHO_T}$ac_cv_lib_NeXT_s_main" >&6; }
1.1.1.19 root 3791: if test $ac_cv_lib_NeXT_s_main = yes; then
1.1.1.4 root 3792: HAVE_NEXT_LIB=yes
1.1 root 3793: else
1.1.1.19 root 3794: HAVE_NEXT_LIB=no
1.1 root 3795: fi
3796:
1.1.1.22 root 3797: { echo "$as_me:$LINENO: checking for cos in -lmoto" >&5
3798: echo $ECHO_N "checking for cos in -lmoto... $ECHO_C" >&6; }
1.1.1.19 root 3799: if test "${ac_cv_lib_moto_cos+set}" = set; then
3800: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1.1.11 root 3801: else
1.1.1.19 root 3802: ac_check_lib_save_LIBS=$LIBS
1.1.1.11 root 3803: LIBS="-lmoto $LIBS"
1.1.1.19 root 3804: cat >conftest.$ac_ext <<_ACEOF
3805: /* confdefs.h. */
3806: _ACEOF
3807: cat confdefs.h >>conftest.$ac_ext
3808: cat >>conftest.$ac_ext <<_ACEOF
3809: /* end confdefs.h. */
3810:
1.1.1.22 root 3811: /* Override any GCC internal prototype to avoid an error.
3812: Use char because int might match the return type of a GCC
3813: builtin and then its argument prototype would still apply. */
1.1.1.19 root 3814: #ifdef __cplusplus
3815: extern "C"
3816: #endif
3817: char cos ();
3818: int
3819: main ()
3820: {
1.1.1.22 root 3821: return cos ();
1.1.1.19 root 3822: ;
3823: return 0;
3824: }
3825: _ACEOF
3826: rm -f conftest.$ac_objext conftest$ac_exeext
1.1.1.22 root 3827: if { (ac_try="$ac_link"
3828: case "(($ac_try" in
3829: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3830: *) ac_try_echo=$ac_try;;
3831: esac
3832: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3833: (eval "$ac_link") 2>conftest.er1
1.1.1.19 root 3834: ac_status=$?
3835: grep -v '^ *+' conftest.er1 >conftest.err
3836: rm -f conftest.er1
3837: cat conftest.err >&5
3838: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.22 root 3839: (exit $ac_status); } && {
3840: test -z "$ac_c_werror_flag" ||
3841: test ! -s conftest.err
3842: } && test -s conftest$ac_exeext &&
3843: $as_test_x conftest$ac_exeext; then
1.1.1.19 root 3844: ac_cv_lib_moto_cos=yes
3845: else
3846: echo "$as_me: failed program was:" >&5
3847: sed 's/^/| /' conftest.$ac_ext >&5
3848:
1.1.1.22 root 3849: ac_cv_lib_moto_cos=no
1.1.1.19 root 3850: fi
1.1.1.22 root 3851:
3852: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.1.1.19 root 3853: conftest$ac_exeext conftest.$ac_ext
3854: LIBS=$ac_check_lib_save_LIBS
3855: fi
1.1.1.22 root 3856: { echo "$as_me:$LINENO: result: $ac_cv_lib_moto_cos" >&5
3857: echo "${ECHO_T}$ac_cv_lib_moto_cos" >&6; }
1.1.1.19 root 3858: if test $ac_cv_lib_moto_cos = yes; then
1.1.1.11 root 3859: HAVE_MOTO_LIB=yes
3860: else
1.1.1.19 root 3861: HAVE_MOTO_LIB=no
1.1.1.11 root 3862: fi
3863:
1.1.1.22 root 3864: { echo "$as_me:$LINENO: checking for OpenLibrary in -lamiga" >&5
3865: echo $ECHO_N "checking for OpenLibrary in -lamiga... $ECHO_C" >&6; }
1.1.1.19 root 3866: if test "${ac_cv_lib_amiga_OpenLibrary+set}" = set; then
3867: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1.1.3 root 3868: else
1.1.1.19 root 3869: ac_check_lib_save_LIBS=$LIBS
1.1.1.3 root 3870: LIBS="-lamiga $LIBS"
1.1.1.19 root 3871: cat >conftest.$ac_ext <<_ACEOF
3872: /* confdefs.h. */
3873: _ACEOF
3874: cat confdefs.h >>conftest.$ac_ext
3875: cat >>conftest.$ac_ext <<_ACEOF
3876: /* end confdefs.h. */
3877:
1.1.1.22 root 3878: /* Override any GCC internal prototype to avoid an error.
3879: Use char because int might match the return type of a GCC
3880: builtin and then its argument prototype would still apply. */
1.1.1.19 root 3881: #ifdef __cplusplus
3882: extern "C"
3883: #endif
3884: char OpenLibrary ();
3885: int
3886: main ()
3887: {
1.1.1.22 root 3888: return OpenLibrary ();
1.1.1.19 root 3889: ;
3890: return 0;
3891: }
3892: _ACEOF
3893: rm -f conftest.$ac_objext conftest$ac_exeext
1.1.1.22 root 3894: if { (ac_try="$ac_link"
3895: case "(($ac_try" in
3896: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3897: *) ac_try_echo=$ac_try;;
3898: esac
3899: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3900: (eval "$ac_link") 2>conftest.er1
1.1.1.19 root 3901: ac_status=$?
3902: grep -v '^ *+' conftest.er1 >conftest.err
3903: rm -f conftest.er1
3904: cat conftest.err >&5
3905: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.22 root 3906: (exit $ac_status); } && {
3907: test -z "$ac_c_werror_flag" ||
3908: test ! -s conftest.err
3909: } && test -s conftest$ac_exeext &&
3910: $as_test_x conftest$ac_exeext; then
1.1.1.19 root 3911: ac_cv_lib_amiga_OpenLibrary=yes
3912: else
3913: echo "$as_me: failed program was:" >&5
3914: sed 's/^/| /' conftest.$ac_ext >&5
3915:
1.1.1.22 root 3916: ac_cv_lib_amiga_OpenLibrary=no
1.1.1.19 root 3917: fi
1.1.1.22 root 3918:
3919: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.1.1.19 root 3920: conftest$ac_exeext conftest.$ac_ext
3921: LIBS=$ac_check_lib_save_LIBS
3922: fi
1.1.1.22 root 3923: { echo "$as_me:$LINENO: result: $ac_cv_lib_amiga_OpenLibrary" >&5
3924: echo "${ECHO_T}$ac_cv_lib_amiga_OpenLibrary" >&6; }
1.1.1.19 root 3925: if test $ac_cv_lib_amiga_OpenLibrary = yes; then
1.1.1.4 root 3926: HAVE_AMIGA_LIB=yes
1.1.1.3 root 3927: else
1.1.1.19 root 3928: HAVE_AMIGA_LIB=n
1.1.1.3 root 3929: fi
3930:
1.1.1.22 root 3931: { echo "$as_me:$LINENO: checking for vga_setmode in -lvga" >&5
3932: echo $ECHO_N "checking for vga_setmode in -lvga... $ECHO_C" >&6; }
1.1.1.19 root 3933: if test "${ac_cv_lib_vga_vga_setmode+set}" = set; then
3934: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 root 3935: else
1.1.1.19 root 3936: ac_check_lib_save_LIBS=$LIBS
1.1 root 3937: LIBS="-lvga $LIBS"
1.1.1.19 root 3938: cat >conftest.$ac_ext <<_ACEOF
3939: /* confdefs.h. */
3940: _ACEOF
3941: cat confdefs.h >>conftest.$ac_ext
3942: cat >>conftest.$ac_ext <<_ACEOF
3943: /* end confdefs.h. */
3944:
1.1.1.22 root 3945: /* Override any GCC internal prototype to avoid an error.
3946: Use char because int might match the return type of a GCC
3947: builtin and then its argument prototype would still apply. */
1.1.1.19 root 3948: #ifdef __cplusplus
3949: extern "C"
3950: #endif
3951: char vga_setmode ();
3952: int
3953: main ()
3954: {
1.1.1.22 root 3955: return vga_setmode ();
1.1.1.19 root 3956: ;
3957: return 0;
3958: }
3959: _ACEOF
3960: rm -f conftest.$ac_objext conftest$ac_exeext
1.1.1.22 root 3961: if { (ac_try="$ac_link"
3962: case "(($ac_try" in
3963: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3964: *) ac_try_echo=$ac_try;;
3965: esac
3966: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3967: (eval "$ac_link") 2>conftest.er1
1.1.1.19 root 3968: ac_status=$?
3969: grep -v '^ *+' conftest.er1 >conftest.err
3970: rm -f conftest.er1
3971: cat conftest.err >&5
3972: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.22 root 3973: (exit $ac_status); } && {
3974: test -z "$ac_c_werror_flag" ||
3975: test ! -s conftest.err
3976: } && test -s conftest$ac_exeext &&
3977: $as_test_x conftest$ac_exeext; then
1.1.1.19 root 3978: ac_cv_lib_vga_vga_setmode=yes
3979: else
3980: echo "$as_me: failed program was:" >&5
3981: sed 's/^/| /' conftest.$ac_ext >&5
3982:
1.1.1.22 root 3983: ac_cv_lib_vga_vga_setmode=no
1.1.1.19 root 3984: fi
1.1.1.22 root 3985:
3986: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.1.1.19 root 3987: conftest$ac_exeext conftest.$ac_ext
3988: LIBS=$ac_check_lib_save_LIBS
3989: fi
1.1.1.22 root 3990: { echo "$as_me:$LINENO: result: $ac_cv_lib_vga_vga_setmode" >&5
3991: echo "${ECHO_T}$ac_cv_lib_vga_vga_setmode" >&6; }
1.1.1.19 root 3992: if test $ac_cv_lib_vga_vga_setmode = yes; then
1.1.1.4 root 3993: HAVE_SVGA_LIB=yes
1.1 root 3994: else
1.1.1.19 root 3995: HAVE_SVGA_LIB=no
1.1 root 3996: fi
3997:
1.1.1.22 root 3998: { echo "$as_me:$LINENO: checking for waveOutGetNumDevs in -lmme" >&5
3999: echo $ECHO_N "checking for waveOutGetNumDevs in -lmme... $ECHO_C" >&6; }
1.1.1.19 root 4000: if test "${ac_cv_lib_mme_waveOutGetNumDevs+set}" = set; then
4001: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1.1.6 root 4002: else
1.1.1.19 root 4003: ac_check_lib_save_LIBS=$LIBS
1.1.1.6 root 4004: LIBS="-lmme $LIBS"
1.1.1.19 root 4005: cat >conftest.$ac_ext <<_ACEOF
4006: /* confdefs.h. */
4007: _ACEOF
4008: cat confdefs.h >>conftest.$ac_ext
4009: cat >>conftest.$ac_ext <<_ACEOF
4010: /* end confdefs.h. */
4011:
1.1.1.22 root 4012: /* Override any GCC internal prototype to avoid an error.
4013: Use char because int might match the return type of a GCC
4014: builtin and then its argument prototype would still apply. */
1.1.1.19 root 4015: #ifdef __cplusplus
4016: extern "C"
4017: #endif
4018: char waveOutGetNumDevs ();
4019: int
4020: main ()
4021: {
1.1.1.22 root 4022: return waveOutGetNumDevs ();
1.1.1.19 root 4023: ;
4024: return 0;
4025: }
4026: _ACEOF
4027: rm -f conftest.$ac_objext conftest$ac_exeext
1.1.1.22 root 4028: if { (ac_try="$ac_link"
4029: case "(($ac_try" in
4030: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4031: *) ac_try_echo=$ac_try;;
4032: esac
4033: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4034: (eval "$ac_link") 2>conftest.er1
1.1.1.19 root 4035: ac_status=$?
4036: grep -v '^ *+' conftest.er1 >conftest.err
4037: rm -f conftest.er1
4038: cat conftest.err >&5
4039: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.22 root 4040: (exit $ac_status); } && {
4041: test -z "$ac_c_werror_flag" ||
4042: test ! -s conftest.err
4043: } && test -s conftest$ac_exeext &&
4044: $as_test_x conftest$ac_exeext; then
1.1.1.19 root 4045: ac_cv_lib_mme_waveOutGetNumDevs=yes
4046: else
4047: echo "$as_me: failed program was:" >&5
4048: sed 's/^/| /' conftest.$ac_ext >&5
4049:
1.1.1.22 root 4050: ac_cv_lib_mme_waveOutGetNumDevs=no
1.1.1.19 root 4051: fi
1.1.1.22 root 4052:
4053: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.1.1.19 root 4054: conftest$ac_exeext conftest.$ac_ext
4055: LIBS=$ac_check_lib_save_LIBS
4056: fi
1.1.1.22 root 4057: { echo "$as_me:$LINENO: result: $ac_cv_lib_mme_waveOutGetNumDevs" >&5
4058: echo "${ECHO_T}$ac_cv_lib_mme_waveOutGetNumDevs" >&6; }
1.1.1.19 root 4059: if test $ac_cv_lib_mme_waveOutGetNumDevs = yes; then
1.1.1.6 root 4060: HAVE_MME_LIB=yes
4061: else
1.1.1.19 root 4062: HAVE_MME_LIB=no
1.1.1.6 root 4063: fi
4064:
1.1.1.22 root 4065: { echo "$as_me:$LINENO: checking for waddch in -lncurses" >&5
4066: echo $ECHO_N "checking for waddch in -lncurses... $ECHO_C" >&6; }
1.1.1.19 root 4067: if test "${ac_cv_lib_ncurses_waddch+set}" = set; then
4068: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1.1.4 root 4069: else
1.1.1.19 root 4070: ac_check_lib_save_LIBS=$LIBS
1.1.1.4 root 4071: LIBS="-lncurses $LIBS"
1.1.1.19 root 4072: cat >conftest.$ac_ext <<_ACEOF
4073: /* confdefs.h. */
4074: _ACEOF
4075: cat confdefs.h >>conftest.$ac_ext
4076: cat >>conftest.$ac_ext <<_ACEOF
4077: /* end confdefs.h. */
4078:
1.1.1.22 root 4079: /* Override any GCC internal prototype to avoid an error.
4080: Use char because int might match the return type of a GCC
4081: builtin and then its argument prototype would still apply. */
1.1.1.19 root 4082: #ifdef __cplusplus
4083: extern "C"
4084: #endif
4085: char waddch ();
4086: int
4087: main ()
4088: {
1.1.1.22 root 4089: return waddch ();
1.1.1.19 root 4090: ;
4091: return 0;
4092: }
4093: _ACEOF
4094: rm -f conftest.$ac_objext conftest$ac_exeext
1.1.1.22 root 4095: if { (ac_try="$ac_link"
4096: case "(($ac_try" in
4097: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4098: *) ac_try_echo=$ac_try;;
4099: esac
4100: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4101: (eval "$ac_link") 2>conftest.er1
1.1.1.19 root 4102: ac_status=$?
4103: grep -v '^ *+' conftest.er1 >conftest.err
4104: rm -f conftest.er1
4105: cat conftest.err >&5
4106: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.22 root 4107: (exit $ac_status); } && {
4108: test -z "$ac_c_werror_flag" ||
4109: test ! -s conftest.err
4110: } && test -s conftest$ac_exeext &&
4111: $as_test_x conftest$ac_exeext; then
1.1.1.19 root 4112: ac_cv_lib_ncurses_waddch=yes
4113: else
4114: echo "$as_me: failed program was:" >&5
4115: sed 's/^/| /' conftest.$ac_ext >&5
4116:
1.1.1.22 root 4117: ac_cv_lib_ncurses_waddch=no
1.1.1.19 root 4118: fi
1.1.1.22 root 4119:
4120: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.1.1.19 root 4121: conftest$ac_exeext conftest.$ac_ext
4122: LIBS=$ac_check_lib_save_LIBS
4123: fi
1.1.1.22 root 4124: { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_waddch" >&5
4125: echo "${ECHO_T}$ac_cv_lib_ncurses_waddch" >&6; }
1.1.1.19 root 4126: if test $ac_cv_lib_ncurses_waddch = yes; then
1.1.1.4 root 4127: HAVE_NCURSES_LIB=yes
4128: else
1.1.1.19 root 4129: HAVE_NCURSES_LIB=no
1.1.1.4 root 4130: fi
4131:
1.1.1.22 root 4132: { echo "$as_me:$LINENO: checking for sem_init in -lposix4" >&5
4133: echo $ECHO_N "checking for sem_init in -lposix4... $ECHO_C" >&6; }
1.1.1.19 root 4134: if test "${ac_cv_lib_posix4_sem_init+set}" = set; then
4135: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1.1.4 root 4136: else
1.1.1.19 root 4137: ac_check_lib_save_LIBS=$LIBS
1.1.1.6 root 4138: LIBS="-lposix4 $LIBS"
1.1.1.19 root 4139: cat >conftest.$ac_ext <<_ACEOF
4140: /* confdefs.h. */
4141: _ACEOF
4142: cat confdefs.h >>conftest.$ac_ext
4143: cat >>conftest.$ac_ext <<_ACEOF
4144: /* end confdefs.h. */
4145:
1.1.1.22 root 4146: /* Override any GCC internal prototype to avoid an error.
4147: Use char because int might match the return type of a GCC
4148: builtin and then its argument prototype would still apply. */
1.1.1.19 root 4149: #ifdef __cplusplus
4150: extern "C"
4151: #endif
4152: char sem_init ();
4153: int
4154: main ()
4155: {
1.1.1.22 root 4156: return sem_init ();
1.1.1.19 root 4157: ;
4158: return 0;
4159: }
4160: _ACEOF
4161: rm -f conftest.$ac_objext conftest$ac_exeext
1.1.1.22 root 4162: if { (ac_try="$ac_link"
4163: case "(($ac_try" in
4164: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4165: *) ac_try_echo=$ac_try;;
4166: esac
4167: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4168: (eval "$ac_link") 2>conftest.er1
1.1.1.19 root 4169: ac_status=$?
4170: grep -v '^ *+' conftest.er1 >conftest.err
4171: rm -f conftest.er1
4172: cat conftest.err >&5
4173: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.22 root 4174: (exit $ac_status); } && {
4175: test -z "$ac_c_werror_flag" ||
4176: test ! -s conftest.err
4177: } && test -s conftest$ac_exeext &&
4178: $as_test_x conftest$ac_exeext; then
1.1.1.19 root 4179: ac_cv_lib_posix4_sem_init=yes
4180: else
4181: echo "$as_me: failed program was:" >&5
4182: sed 's/^/| /' conftest.$ac_ext >&5
4183:
1.1.1.22 root 4184: ac_cv_lib_posix4_sem_init=no
1.1.1.19 root 4185: fi
1.1.1.22 root 4186:
4187: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.1.1.19 root 4188: conftest$ac_exeext conftest.$ac_ext
4189: LIBS=$ac_check_lib_save_LIBS
4190: fi
1.1.1.22 root 4191: { echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sem_init" >&5
4192: echo "${ECHO_T}$ac_cv_lib_posix4_sem_init" >&6; }
1.1.1.19 root 4193: if test $ac_cv_lib_posix4_sem_init = yes; then
1.1.1.6 root 4194: HAVE_POSIX4_LIB=yes
1.1.1.4 root 4195: else
1.1.1.19 root 4196: HAVE_POSIX4_LIB=no
1.1.1.4 root 4197: fi
4198:
1.1.1.22 root 4199: { echo "$as_me:$LINENO: checking for sem_init in -lrt" >&5
4200: echo $ECHO_N "checking for sem_init in -lrt... $ECHO_C" >&6; }
1.1.1.19 root 4201: if test "${ac_cv_lib_rt_sem_init+set}" = set; then
4202: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1.1.4 root 4203: else
1.1.1.19 root 4204: ac_check_lib_save_LIBS=$LIBS
1.1.1.6 root 4205: LIBS="-lrt $LIBS"
1.1.1.19 root 4206: cat >conftest.$ac_ext <<_ACEOF
4207: /* confdefs.h. */
4208: _ACEOF
4209: cat confdefs.h >>conftest.$ac_ext
4210: cat >>conftest.$ac_ext <<_ACEOF
4211: /* end confdefs.h. */
4212:
1.1.1.22 root 4213: /* Override any GCC internal prototype to avoid an error.
4214: Use char because int might match the return type of a GCC
4215: builtin and then its argument prototype would still apply. */
1.1.1.19 root 4216: #ifdef __cplusplus
4217: extern "C"
4218: #endif
4219: char sem_init ();
4220: int
4221: main ()
4222: {
1.1.1.22 root 4223: return sem_init ();
1.1.1.19 root 4224: ;
4225: return 0;
4226: }
4227: _ACEOF
4228: rm -f conftest.$ac_objext conftest$ac_exeext
1.1.1.22 root 4229: if { (ac_try="$ac_link"
4230: case "(($ac_try" in
4231: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4232: *) ac_try_echo=$ac_try;;
4233: esac
4234: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4235: (eval "$ac_link") 2>conftest.er1
1.1.1.19 root 4236: ac_status=$?
4237: grep -v '^ *+' conftest.er1 >conftest.err
4238: rm -f conftest.er1
4239: cat conftest.err >&5
4240: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.22 root 4241: (exit $ac_status); } && {
4242: test -z "$ac_c_werror_flag" ||
4243: test ! -s conftest.err
4244: } && test -s conftest$ac_exeext &&
4245: $as_test_x conftest$ac_exeext; then
1.1.1.19 root 4246: ac_cv_lib_rt_sem_init=yes
4247: else
4248: echo "$as_me: failed program was:" >&5
4249: sed 's/^/| /' conftest.$ac_ext >&5
4250:
1.1.1.22 root 4251: ac_cv_lib_rt_sem_init=no
1.1.1.19 root 4252: fi
1.1.1.22 root 4253:
4254: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.1.1.19 root 4255: conftest$ac_exeext conftest.$ac_ext
4256: LIBS=$ac_check_lib_save_LIBS
4257: fi
1.1.1.22 root 4258: { echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sem_init" >&5
4259: echo "${ECHO_T}$ac_cv_lib_rt_sem_init" >&6; }
1.1.1.19 root 4260: if test $ac_cv_lib_rt_sem_init = yes; then
1.1.1.6 root 4261: HAVE_RT_LIB=yes
1.1.1.4 root 4262: else
1.1.1.19 root 4263: HAVE_RT_LIB=no
1.1.1.4 root 4264: fi
4265:
1.1.1.22 root 4266: { echo "$as_me:$LINENO: checking for alOpenPort in -laudio" >&5
4267: echo $ECHO_N "checking for alOpenPort in -laudio... $ECHO_C" >&6; }
1.1.1.19 root 4268: if test "${ac_cv_lib_audio_alOpenPort+set}" = set; then
4269: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1.1.8 root 4270: else
1.1.1.19 root 4271: ac_check_lib_save_LIBS=$LIBS
1.1.1.8 root 4272: LIBS="-laudio $LIBS"
1.1.1.19 root 4273: cat >conftest.$ac_ext <<_ACEOF
4274: /* confdefs.h. */
4275: _ACEOF
4276: cat confdefs.h >>conftest.$ac_ext
4277: cat >>conftest.$ac_ext <<_ACEOF
4278: /* end confdefs.h. */
4279:
1.1.1.22 root 4280: /* Override any GCC internal prototype to avoid an error.
4281: Use char because int might match the return type of a GCC
4282: builtin and then its argument prototype would still apply. */
1.1.1.19 root 4283: #ifdef __cplusplus
4284: extern "C"
4285: #endif
4286: char alOpenPort ();
4287: int
4288: main ()
4289: {
1.1.1.22 root 4290: return alOpenPort ();
1.1.1.19 root 4291: ;
4292: return 0;
4293: }
4294: _ACEOF
4295: rm -f conftest.$ac_objext conftest$ac_exeext
1.1.1.22 root 4296: if { (ac_try="$ac_link"
4297: case "(($ac_try" in
4298: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4299: *) ac_try_echo=$ac_try;;
4300: esac
4301: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4302: (eval "$ac_link") 2>conftest.er1
1.1.1.19 root 4303: ac_status=$?
4304: grep -v '^ *+' conftest.er1 >conftest.err
4305: rm -f conftest.er1
4306: cat conftest.err >&5
4307: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.22 root 4308: (exit $ac_status); } && {
4309: test -z "$ac_c_werror_flag" ||
4310: test ! -s conftest.err
4311: } && test -s conftest$ac_exeext &&
4312: $as_test_x conftest$ac_exeext; then
1.1.1.19 root 4313: ac_cv_lib_audio_alOpenPort=yes
4314: else
4315: echo "$as_me: failed program was:" >&5
4316: sed 's/^/| /' conftest.$ac_ext >&5
4317:
1.1.1.22 root 4318: ac_cv_lib_audio_alOpenPort=no
1.1.1.19 root 4319: fi
1.1.1.22 root 4320:
4321: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.1.1.19 root 4322: conftest$ac_exeext conftest.$ac_ext
4323: LIBS=$ac_check_lib_save_LIBS
4324: fi
1.1.1.22 root 4325: { echo "$as_me:$LINENO: result: $ac_cv_lib_audio_alOpenPort" >&5
4326: echo "${ECHO_T}$ac_cv_lib_audio_alOpenPort" >&6; }
1.1.1.19 root 4327: if test $ac_cv_lib_audio_alOpenPort = yes; then
1.1.1.8 root 4328: HAVE_SGIAUDIO_LIB=yes
4329: else
1.1.1.19 root 4330: HAVE_SGIAUDIO_LIB=no
1.1.1.8 root 4331: fi
4332:
1.1.1.23 root 4333: { echo "$as_me:$LINENO: checking for snd_pcm_open in -lasound" >&5
4334: echo $ECHO_N "checking for snd_pcm_open in -lasound... $ECHO_C" >&6; }
4335: if test "${ac_cv_lib_asound_snd_pcm_open+set}" = set; then
4336: echo $ECHO_N "(cached) $ECHO_C" >&6
4337: else
4338: ac_check_lib_save_LIBS=$LIBS
4339: LIBS="-lasound $LIBS"
4340: cat >conftest.$ac_ext <<_ACEOF
4341: /* confdefs.h. */
4342: _ACEOF
4343: cat confdefs.h >>conftest.$ac_ext
4344: cat >>conftest.$ac_ext <<_ACEOF
4345: /* end confdefs.h. */
4346:
4347: /* Override any GCC internal prototype to avoid an error.
4348: Use char because int might match the return type of a GCC
4349: builtin and then its argument prototype would still apply. */
4350: #ifdef __cplusplus
4351: extern "C"
4352: #endif
4353: char snd_pcm_open ();
4354: int
4355: main ()
4356: {
4357: return snd_pcm_open ();
4358: ;
4359: return 0;
4360: }
4361: _ACEOF
4362: rm -f conftest.$ac_objext conftest$ac_exeext
4363: if { (ac_try="$ac_link"
4364: case "(($ac_try" in
4365: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4366: *) ac_try_echo=$ac_try;;
4367: esac
4368: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4369: (eval "$ac_link") 2>conftest.er1
4370: ac_status=$?
4371: grep -v '^ *+' conftest.er1 >conftest.err
4372: rm -f conftest.er1
4373: cat conftest.err >&5
4374: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4375: (exit $ac_status); } && {
4376: test -z "$ac_c_werror_flag" ||
4377: test ! -s conftest.err
4378: } && test -s conftest$ac_exeext &&
4379: $as_test_x conftest$ac_exeext; then
4380: ac_cv_lib_asound_snd_pcm_open=yes
4381: else
4382: echo "$as_me: failed program was:" >&5
4383: sed 's/^/| /' conftest.$ac_ext >&5
4384:
4385: ac_cv_lib_asound_snd_pcm_open=no
4386: fi
4387:
4388: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4389: conftest$ac_exeext conftest.$ac_ext
4390: LIBS=$ac_check_lib_save_LIBS
4391: fi
4392: { echo "$as_me:$LINENO: result: $ac_cv_lib_asound_snd_pcm_open" >&5
4393: echo "${ECHO_T}$ac_cv_lib_asound_snd_pcm_open" >&6; }
4394: if test $ac_cv_lib_asound_snd_pcm_open = yes; then
4395: HAVE_ALSA=yes
4396: else
4397: HAVE_ALSA=no
4398: fi
4399:
1.1 root 4400:
1.1.1.22 root 4401: { echo "$as_me:$LINENO: checking for X" >&5
4402: echo $ECHO_N "checking for X... $ECHO_C" >&6; }
1.1.1.19 root 4403:
1.1 root 4404:
1.1.1.22 root 4405: # Check whether --with-x was given.
1.1 root 4406: if test "${with_x+set}" = set; then
1.1.1.22 root 4407: withval=$with_x;
4408: fi
1.1 root 4409:
4410: # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
4411: if test "x$with_x" = xno; then
4412: # The user explicitly disabled X.
4413: have_x=disabled
4414: else
1.1.1.22 root 4415: case $x_includes,$x_libraries in #(
4416: *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
4417: echo "$as_me: error: Cannot use X directory names containing '" >&2;}
4418: { (exit 1); exit 1; }; };; #(
4419: *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
1.1.1.19 root 4420: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 root 4421: else
4422: # One or both of the vars are not set, and there is no cached value.
1.1.1.19 root 4423: ac_x_includes=no ac_x_libraries=no
1.1.1.22 root 4424: rm -f -r conftest.dir
1.1.1.19 root 4425: if mkdir conftest.dir; then
4426: cd conftest.dir
4427: cat >Imakefile <<'_ACEOF'
1.1.1.22 root 4428: incroot:
4429: @echo incroot='${INCROOT}'
4430: usrlibdir:
4431: @echo usrlibdir='${USRLIBDIR}'
4432: libdir:
4433: @echo libdir='${LIBDIR}'
1.1.1.19 root 4434: _ACEOF
1.1.1.22 root 4435: if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
1.1 root 4436: # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1.1.1.22 root 4437: for ac_var in incroot usrlibdir libdir; do
4438: eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
4439: done
1.1 root 4440: # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
4441: for ac_extension in a so sl; do
1.1.1.22 root 4442: if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
4443: test -f "$ac_im_libdir/libX11.$ac_extension"; then
1.1.1.19 root 4444: ac_im_usrlibdir=$ac_im_libdir; break
1.1 root 4445: fi
4446: done
1.1.1.4 root 4447: # Screen out bogus values from the imake configuration. They are
4448: # bogus both because they are the default anyway, and because
4449: # using them would break gcc on systems where it needs fixed includes.
1.1.1.19 root 4450: case $ac_im_incroot in
1.1.1.22 root 4451: /usr/include) ac_x_includes= ;;
1.1.1.19 root 4452: *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
1.1 root 4453: esac
1.1.1.19 root 4454: case $ac_im_usrlibdir in
1.1 root 4455: /usr/lib | /lib) ;;
1.1.1.19 root 4456: *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
1.1 root 4457: esac
4458: fi
4459: cd ..
1.1.1.22 root 4460: rm -f -r conftest.dir
1.1 root 4461: fi
4462:
1.1.1.19 root 4463: # Standard set of common directories for X headers.
4464: # Check X11 before X11Rn because it is often a symlink to the current release.
4465: ac_x_header_dirs='
4466: /usr/X11/include
4467: /usr/X11R6/include
4468: /usr/X11R5/include
4469: /usr/X11R4/include
4470:
4471: /usr/include/X11
4472: /usr/include/X11R6
4473: /usr/include/X11R5
4474: /usr/include/X11R4
4475:
4476: /usr/local/X11/include
4477: /usr/local/X11R6/include
4478: /usr/local/X11R5/include
4479: /usr/local/X11R4/include
4480:
4481: /usr/local/include/X11
4482: /usr/local/include/X11R6
4483: /usr/local/include/X11R5
4484: /usr/local/include/X11R4
4485:
4486: /usr/X386/include
4487: /usr/x386/include
4488: /usr/XFree86/include/X11
4489:
4490: /usr/include
4491: /usr/local/include
4492: /usr/unsupported/include
4493: /usr/athena/include
4494: /usr/local/x11r5/include
4495: /usr/lpp/Xamples/include
4496:
4497: /usr/openwin/include
4498: /usr/openwin/share/include'
1.1 root 4499:
1.1.1.19 root 4500: if test "$ac_x_includes" = no; then
1.1.1.22 root 4501: # Guess where to find include files, by looking for Xlib.h.
1.1 root 4502: # First, try using that file with no special directory specified.
1.1.1.19 root 4503: cat >conftest.$ac_ext <<_ACEOF
4504: /* confdefs.h. */
4505: _ACEOF
4506: cat confdefs.h >>conftest.$ac_ext
4507: cat >>conftest.$ac_ext <<_ACEOF
4508: /* end confdefs.h. */
1.1.1.22 root 4509: #include <X11/Xlib.h>
1.1.1.19 root 4510: _ACEOF
1.1.1.22 root 4511: if { (ac_try="$ac_cpp conftest.$ac_ext"
4512: case "(($ac_try" in
4513: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4514: *) ac_try_echo=$ac_try;;
4515: esac
4516: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4517: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
1.1.1.19 root 4518: ac_status=$?
4519: grep -v '^ *+' conftest.er1 >conftest.err
4520: rm -f conftest.er1
4521: cat conftest.err >&5
4522: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.22 root 4523: (exit $ac_status); } >/dev/null && {
4524: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4525: test ! -s conftest.err
4526: }; then
1.1.1.19 root 4527: # We can compile using X headers with no special include directory.
4528: ac_x_includes=
4529: else
4530: echo "$as_me: failed program was:" >&5
4531: sed 's/^/| /' conftest.$ac_ext >&5
1.1 root 4532:
1.1.1.19 root 4533: for ac_dir in $ac_x_header_dirs; do
1.1.1.22 root 4534: if test -r "$ac_dir/X11/Xlib.h"; then
1.1.1.19 root 4535: ac_x_includes=$ac_dir
4536: break
4537: fi
4538: done
4539: fi
1.1.1.22 root 4540:
1.1.1.19 root 4541: rm -f conftest.err conftest.$ac_ext
4542: fi # $ac_x_includes = no
1.1 root 4543:
1.1.1.19 root 4544: if test "$ac_x_libraries" = no; then
4545: # Check for the libraries.
1.1 root 4546: # See if we find them without any special options.
4547: # Don't add to $LIBS permanently.
1.1.1.19 root 4548: ac_save_LIBS=$LIBS
1.1.1.22 root 4549: LIBS="-lX11 $LIBS"
1.1.1.19 root 4550: cat >conftest.$ac_ext <<_ACEOF
4551: /* confdefs.h. */
4552: _ACEOF
4553: cat confdefs.h >>conftest.$ac_ext
4554: cat >>conftest.$ac_ext <<_ACEOF
4555: /* end confdefs.h. */
1.1.1.22 root 4556: #include <X11/Xlib.h>
1.1.1.19 root 4557: int
4558: main ()
4559: {
1.1.1.22 root 4560: XrmInitialize ()
1.1.1.19 root 4561: ;
4562: return 0;
4563: }
4564: _ACEOF
4565: rm -f conftest.$ac_objext conftest$ac_exeext
1.1.1.22 root 4566: if { (ac_try="$ac_link"
4567: case "(($ac_try" in
4568: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4569: *) ac_try_echo=$ac_try;;
4570: esac
4571: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4572: (eval "$ac_link") 2>conftest.er1
1.1.1.19 root 4573: ac_status=$?
4574: grep -v '^ *+' conftest.er1 >conftest.err
4575: rm -f conftest.er1
4576: cat conftest.err >&5
4577: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.22 root 4578: (exit $ac_status); } && {
4579: test -z "$ac_c_werror_flag" ||
4580: test ! -s conftest.err
4581: } && test -s conftest$ac_exeext &&
4582: $as_test_x conftest$ac_exeext; then
1.1.1.19 root 4583: LIBS=$ac_save_LIBS
1.1 root 4584: # We can link X programs with no special library path.
4585: ac_x_libraries=
4586: else
1.1.1.19 root 4587: echo "$as_me: failed program was:" >&5
4588: sed 's/^/| /' conftest.$ac_ext >&5
4589:
1.1.1.22 root 4590: LIBS=$ac_save_LIBS
1.1.1.19 root 4591: for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
1.1 root 4592: do
1.1.1.19 root 4593: # Don't even attempt the hair of trying to link an X program!
1.1 root 4594: for ac_extension in a so sl; do
1.1.1.22 root 4595: if test -r "$ac_dir/libX11.$ac_extension"; then
1.1 root 4596: ac_x_libraries=$ac_dir
4597: break 2
4598: fi
4599: done
4600: done
4601: fi
1.1.1.22 root 4602:
4603: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.1.1.19 root 4604: conftest$ac_exeext conftest.$ac_ext
4605: fi # $ac_x_libraries = no
1.1 root 4606:
1.1.1.22 root 4607: case $ac_x_includes,$ac_x_libraries in #(
4608: no,* | *,no | *\'*)
4609: # Didn't find X, or a directory has "'" in its name.
4610: ac_cv_have_x="have_x=no";; #(
4611: *)
4612: # Record where we found X for the cache.
4613: ac_cv_have_x="have_x=yes\
4614: ac_x_includes='$ac_x_includes'\
4615: ac_x_libraries='$ac_x_libraries'"
4616: esac
1.1 root 4617: fi
1.1.1.22 root 4618: ;; #(
4619: *) have_x=yes;;
4620: esac
1.1 root 4621: eval "$ac_cv_have_x"
4622: fi # $with_x != no
4623:
4624: if test "$have_x" != yes; then
1.1.1.22 root 4625: { echo "$as_me:$LINENO: result: $have_x" >&5
4626: echo "${ECHO_T}$have_x" >&6; }
1.1 root 4627: no_x=yes
4628: else
4629: # If each of the values was on the command line, it overrides each guess.
4630: test "x$x_includes" = xNONE && x_includes=$ac_x_includes
4631: test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
4632: # Update the cache value to reflect the command line values.
1.1.1.22 root 4633: ac_cv_have_x="have_x=yes\
4634: ac_x_includes='$x_includes'\
4635: ac_x_libraries='$x_libraries'"
4636: { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
4637: echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
1.1 root 4638: fi
4639:
4640: if test "$no_x" = yes; then
4641: # Not all programs may use this symbol, but it does not hurt to define it.
1.1.1.19 root 4642:
4643: cat >>confdefs.h <<\_ACEOF
1.1.1.4 root 4644: #define X_DISPLAY_MISSING 1
1.1.1.19 root 4645: _ACEOF
1.1.1.4 root 4646:
4647: X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
1.1 root 4648: else
4649: if test -n "$x_includes"; then
4650: X_CFLAGS="$X_CFLAGS -I$x_includes"
4651: fi
4652:
4653: # It would also be nice to do this for all -L options, not just this one.
4654: if test -n "$x_libraries"; then
4655: X_LIBS="$X_LIBS -L$x_libraries"
1.1.1.4 root 4656: # For Solaris; some versions of Sun CC require a space after -R and
4657: # others require no space. Words are not sufficient . . . .
1.1.1.22 root 4658: { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
4659: echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
4660: ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
4661: ac_xsave_c_werror_flag=$ac_c_werror_flag
4662: ac_c_werror_flag=yes
4663: cat >conftest.$ac_ext <<_ACEOF
1.1.1.19 root 4664: /* confdefs.h. */
4665: _ACEOF
4666: cat confdefs.h >>conftest.$ac_ext
4667: cat >>conftest.$ac_ext <<_ACEOF
4668: /* end confdefs.h. */
1.1 root 4669:
1.1.1.19 root 4670: int
4671: main ()
4672: {
1.1 root 4673:
1.1.1.19 root 4674: ;
4675: return 0;
4676: }
4677: _ACEOF
4678: rm -f conftest.$ac_objext conftest$ac_exeext
1.1.1.22 root 4679: if { (ac_try="$ac_link"
4680: case "(($ac_try" in
4681: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4682: *) ac_try_echo=$ac_try;;
4683: esac
4684: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4685: (eval "$ac_link") 2>conftest.er1
1.1.1.19 root 4686: ac_status=$?
4687: grep -v '^ *+' conftest.er1 >conftest.err
4688: rm -f conftest.er1
4689: cat conftest.err >&5
4690: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.22 root 4691: (exit $ac_status); } && {
4692: test -z "$ac_c_werror_flag" ||
4693: test ! -s conftest.err
4694: } && test -s conftest$ac_exeext &&
4695: $as_test_x conftest$ac_exeext; then
4696: { echo "$as_me:$LINENO: result: no" >&5
4697: echo "${ECHO_T}no" >&6; }
4698: X_LIBS="$X_LIBS -R$x_libraries"
1.1 root 4699: else
1.1.1.19 root 4700: echo "$as_me: failed program was:" >&5
4701: sed 's/^/| /' conftest.$ac_ext >&5
4702:
1.1.1.4 root 4703: LIBS="$ac_xsave_LIBS -R $x_libraries"
1.1.1.22 root 4704: cat >conftest.$ac_ext <<_ACEOF
1.1.1.19 root 4705: /* confdefs.h. */
4706: _ACEOF
4707: cat confdefs.h >>conftest.$ac_ext
4708: cat >>conftest.$ac_ext <<_ACEOF
4709: /* end confdefs.h. */
1.1 root 4710:
1.1.1.19 root 4711: int
4712: main ()
4713: {
1.1.1.4 root 4714:
1.1.1.19 root 4715: ;
4716: return 0;
4717: }
4718: _ACEOF
4719: rm -f conftest.$ac_objext conftest$ac_exeext
1.1.1.22 root 4720: if { (ac_try="$ac_link"
4721: case "(($ac_try" in
4722: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4723: *) ac_try_echo=$ac_try;;
4724: esac
4725: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4726: (eval "$ac_link") 2>conftest.er1
1.1.1.19 root 4727: ac_status=$?
4728: grep -v '^ *+' conftest.er1 >conftest.err
4729: rm -f conftest.er1
4730: cat conftest.err >&5
4731: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.22 root 4732: (exit $ac_status); } && {
4733: test -z "$ac_c_werror_flag" ||
4734: test ! -s conftest.err
4735: } && test -s conftest$ac_exeext &&
4736: $as_test_x conftest$ac_exeext; then
4737: { echo "$as_me:$LINENO: result: yes" >&5
4738: echo "${ECHO_T}yes" >&6; }
4739: X_LIBS="$X_LIBS -R $x_libraries"
1.1 root 4740: else
1.1.1.19 root 4741: echo "$as_me: failed program was:" >&5
4742: sed 's/^/| /' conftest.$ac_ext >&5
4743:
1.1.1.22 root 4744: { echo "$as_me:$LINENO: result: neither works" >&5
4745: echo "${ECHO_T}neither works" >&6; }
1.1 root 4746: fi
1.1.1.22 root 4747:
4748: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.1.1.19 root 4749: conftest$ac_exeext conftest.$ac_ext
1.1.1.22 root 4750: fi
4751:
4752: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4753: conftest$ac_exeext conftest.$ac_ext
4754: ac_c_werror_flag=$ac_xsave_c_werror_flag
4755: LIBS=$ac_xsave_LIBS
1.1.1.4 root 4756: fi
1.1 root 4757:
4758: # Check for system-dependent libraries X programs must link with.
1.1.1.4 root 4759: # Do this before checking for the system-independent R6 libraries
4760: # (-lICE), since we may need -lsocket or whatever for X linking.
1.1 root 4761:
4762: if test "$ISC" = yes; then
4763: X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
4764: else
1.1.1.19 root 4765: # Martyn Johnson says this is needed for Ultrix, if the X
4766: # libraries were built with DECnet support. And Karl Berry says
1.1 root 4767: # the Alpha needs dnet_stub (dnet does not exist).
1.1.1.19 root 4768: ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
4769: cat >conftest.$ac_ext <<_ACEOF
4770: /* confdefs.h. */
4771: _ACEOF
4772: cat confdefs.h >>conftest.$ac_ext
4773: cat >>conftest.$ac_ext <<_ACEOF
4774: /* end confdefs.h. */
4775:
1.1.1.22 root 4776: /* Override any GCC internal prototype to avoid an error.
4777: Use char because int might match the return type of a GCC
4778: builtin and then its argument prototype would still apply. */
1.1.1.19 root 4779: #ifdef __cplusplus
4780: extern "C"
4781: #endif
4782: char XOpenDisplay ();
4783: int
4784: main ()
4785: {
1.1.1.22 root 4786: return XOpenDisplay ();
1.1.1.19 root 4787: ;
4788: return 0;
4789: }
4790: _ACEOF
4791: rm -f conftest.$ac_objext conftest$ac_exeext
1.1.1.22 root 4792: if { (ac_try="$ac_link"
4793: case "(($ac_try" in
4794: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4795: *) ac_try_echo=$ac_try;;
4796: esac
4797: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4798: (eval "$ac_link") 2>conftest.er1
1.1.1.19 root 4799: ac_status=$?
4800: grep -v '^ *+' conftest.er1 >conftest.err
4801: rm -f conftest.er1
4802: cat conftest.err >&5
4803: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.22 root 4804: (exit $ac_status); } && {
4805: test -z "$ac_c_werror_flag" ||
4806: test ! -s conftest.err
4807: } && test -s conftest$ac_exeext &&
4808: $as_test_x conftest$ac_exeext; then
1.1.1.19 root 4809: :
4810: else
4811: echo "$as_me: failed program was:" >&5
4812: sed 's/^/| /' conftest.$ac_ext >&5
1.1 root 4813:
1.1.1.22 root 4814: { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
4815: echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
1.1.1.19 root 4816: if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
4817: echo $ECHO_N "(cached) $ECHO_C" >&6
4818: else
4819: ac_check_lib_save_LIBS=$LIBS
4820: LIBS="-ldnet $LIBS"
4821: cat >conftest.$ac_ext <<_ACEOF
4822: /* confdefs.h. */
4823: _ACEOF
4824: cat confdefs.h >>conftest.$ac_ext
4825: cat >>conftest.$ac_ext <<_ACEOF
4826: /* end confdefs.h. */
1.1 root 4827:
1.1.1.22 root 4828: /* Override any GCC internal prototype to avoid an error.
4829: Use char because int might match the return type of a GCC
4830: builtin and then its argument prototype would still apply. */
1.1.1.19 root 4831: #ifdef __cplusplus
4832: extern "C"
4833: #endif
4834: char dnet_ntoa ();
4835: int
4836: main ()
4837: {
1.1.1.22 root 4838: return dnet_ntoa ();
1.1.1.19 root 4839: ;
4840: return 0;
4841: }
4842: _ACEOF
4843: rm -f conftest.$ac_objext conftest$ac_exeext
1.1.1.22 root 4844: if { (ac_try="$ac_link"
4845: case "(($ac_try" in
4846: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4847: *) ac_try_echo=$ac_try;;
4848: esac
4849: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4850: (eval "$ac_link") 2>conftest.er1
1.1.1.19 root 4851: ac_status=$?
4852: grep -v '^ *+' conftest.er1 >conftest.err
4853: rm -f conftest.er1
4854: cat conftest.err >&5
4855: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.22 root 4856: (exit $ac_status); } && {
4857: test -z "$ac_c_werror_flag" ||
4858: test ! -s conftest.err
4859: } && test -s conftest$ac_exeext &&
4860: $as_test_x conftest$ac_exeext; then
1.1.1.19 root 4861: ac_cv_lib_dnet_dnet_ntoa=yes
4862: else
4863: echo "$as_me: failed program was:" >&5
4864: sed 's/^/| /' conftest.$ac_ext >&5
4865:
1.1.1.22 root 4866: ac_cv_lib_dnet_dnet_ntoa=no
1.1.1.19 root 4867: fi
1.1.1.22 root 4868:
4869: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.1.1.19 root 4870: conftest$ac_exeext conftest.$ac_ext
4871: LIBS=$ac_check_lib_save_LIBS
4872: fi
1.1.1.22 root 4873: { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
4874: echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
1.1.1.19 root 4875: if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
1.1 root 4876: X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
4877: fi
4878:
4879: if test $ac_cv_lib_dnet_dnet_ntoa = no; then
1.1.1.22 root 4880: { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
4881: echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
1.1.1.19 root 4882: if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
4883: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 root 4884: else
1.1.1.19 root 4885: ac_check_lib_save_LIBS=$LIBS
1.1 root 4886: LIBS="-ldnet_stub $LIBS"
1.1.1.19 root 4887: cat >conftest.$ac_ext <<_ACEOF
4888: /* confdefs.h. */
4889: _ACEOF
4890: cat confdefs.h >>conftest.$ac_ext
4891: cat >>conftest.$ac_ext <<_ACEOF
4892: /* end confdefs.h. */
4893:
1.1.1.22 root 4894: /* Override any GCC internal prototype to avoid an error.
4895: Use char because int might match the return type of a GCC
4896: builtin and then its argument prototype would still apply. */
1.1.1.19 root 4897: #ifdef __cplusplus
4898: extern "C"
4899: #endif
4900: char dnet_ntoa ();
4901: int
4902: main ()
4903: {
1.1.1.22 root 4904: return dnet_ntoa ();
1.1.1.19 root 4905: ;
4906: return 0;
4907: }
4908: _ACEOF
4909: rm -f conftest.$ac_objext conftest$ac_exeext
1.1.1.22 root 4910: if { (ac_try="$ac_link"
4911: case "(($ac_try" in
4912: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4913: *) ac_try_echo=$ac_try;;
4914: esac
4915: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4916: (eval "$ac_link") 2>conftest.er1
1.1.1.19 root 4917: ac_status=$?
4918: grep -v '^ *+' conftest.er1 >conftest.err
4919: rm -f conftest.er1
4920: cat conftest.err >&5
4921: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.22 root 4922: (exit $ac_status); } && {
4923: test -z "$ac_c_werror_flag" ||
4924: test ! -s conftest.err
4925: } && test -s conftest$ac_exeext &&
4926: $as_test_x conftest$ac_exeext; then
1.1.1.19 root 4927: ac_cv_lib_dnet_stub_dnet_ntoa=yes
4928: else
4929: echo "$as_me: failed program was:" >&5
4930: sed 's/^/| /' conftest.$ac_ext >&5
4931:
1.1.1.22 root 4932: ac_cv_lib_dnet_stub_dnet_ntoa=no
1.1.1.19 root 4933: fi
1.1.1.22 root 4934:
4935: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.1.1.19 root 4936: conftest$ac_exeext conftest.$ac_ext
4937: LIBS=$ac_check_lib_save_LIBS
4938: fi
1.1.1.22 root 4939: { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
4940: echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
1.1.1.19 root 4941: if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
1.1 root 4942: X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
4943: fi
4944:
4945: fi
1.1.1.19 root 4946: fi
1.1.1.22 root 4947:
4948: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.1.1.19 root 4949: conftest$ac_exeext conftest.$ac_ext
4950: LIBS="$ac_xsave_LIBS"
1.1 root 4951:
4952: # [email protected] says -lnsl (and -lsocket) are needed for his 386/AT,
4953: # to get the SysV transport functions.
1.1.1.19 root 4954: # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
1.1.1.4 root 4955: # needs -lnsl.
4956: # The nsl library prevents programs from opening the X display
1.1.1.19 root 4957: # on Irix 5.2, according to T.E. Dickey.
4958: # The functions gethostbyname, getservbyname, and inet_addr are
4959: # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
1.1.1.22 root 4960: { echo "$as_me:$LINENO: checking for gethostbyname" >&5
4961: echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
1.1.1.19 root 4962: if test "${ac_cv_func_gethostbyname+set}" = set; then
4963: echo $ECHO_N "(cached) $ECHO_C" >&6
4964: else
4965: cat >conftest.$ac_ext <<_ACEOF
4966: /* confdefs.h. */
4967: _ACEOF
4968: cat confdefs.h >>conftest.$ac_ext
4969: cat >>conftest.$ac_ext <<_ACEOF
4970: /* end confdefs.h. */
4971: /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
4972: For example, HP-UX 11i <limits.h> declares gettimeofday. */
4973: #define gethostbyname innocuous_gethostbyname
4974:
1.1.1.4 root 4975: /* System header to define __stub macros and hopefully few prototypes,
1.1.1.19 root 4976: which can conflict with char gethostbyname (); below.
4977: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4978: <limits.h> exists even on freestanding compilers. */
1.1.1.4 root 4979:
1.1.1.19 root 4980: #ifdef __STDC__
4981: # include <limits.h>
4982: #else
4983: # include <assert.h>
4984: #endif
1.1.1.4 root 4985:
1.1.1.19 root 4986: #undef gethostbyname
4987:
1.1.1.22 root 4988: /* Override any GCC internal prototype to avoid an error.
4989: Use char because int might match the return type of a GCC
4990: builtin and then its argument prototype would still apply. */
1.1.1.19 root 4991: #ifdef __cplusplus
4992: extern "C"
4993: #endif
4994: char gethostbyname ();
1.1.1.4 root 4995: /* The GNU C library defines this for functions which it implements
4996: to always fail with ENOSYS. Some functions are actually named
4997: something starting with __ and the normal name is an alias. */
1.1.1.22 root 4998: #if defined __stub_gethostbyname || defined __stub___gethostbyname
1.1.1.4 root 4999: choke me
5000: #endif
5001:
1.1.1.19 root 5002: int
5003: main ()
5004: {
1.1.1.22 root 5005: return gethostbyname ();
1.1.1.19 root 5006: ;
5007: return 0;
5008: }
5009: _ACEOF
5010: rm -f conftest.$ac_objext conftest$ac_exeext
1.1.1.22 root 5011: if { (ac_try="$ac_link"
5012: case "(($ac_try" in
5013: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5014: *) ac_try_echo=$ac_try;;
5015: esac
5016: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5017: (eval "$ac_link") 2>conftest.er1
1.1.1.19 root 5018: ac_status=$?
5019: grep -v '^ *+' conftest.er1 >conftest.err
5020: rm -f conftest.er1
5021: cat conftest.err >&5
5022: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.22 root 5023: (exit $ac_status); } && {
5024: test -z "$ac_c_werror_flag" ||
5025: test ! -s conftest.err
5026: } && test -s conftest$ac_exeext &&
5027: $as_test_x conftest$ac_exeext; then
1.1.1.19 root 5028: ac_cv_func_gethostbyname=yes
5029: else
5030: echo "$as_me: failed program was:" >&5
5031: sed 's/^/| /' conftest.$ac_ext >&5
1.1.1.4 root 5032:
1.1.1.22 root 5033: ac_cv_func_gethostbyname=no
1.1.1.4 root 5034: fi
1.1.1.22 root 5035:
5036: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.1.1.19 root 5037: conftest$ac_exeext conftest.$ac_ext
5038: fi
1.1.1.22 root 5039: { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
5040: echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
1.1.1.4 root 5041:
5042: if test $ac_cv_func_gethostbyname = no; then
1.1.1.22 root 5043: { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
5044: echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
1.1.1.19 root 5045: if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
5046: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 root 5047: else
1.1.1.19 root 5048: ac_check_lib_save_LIBS=$LIBS
1.1 root 5049: LIBS="-lnsl $LIBS"
1.1.1.19 root 5050: cat >conftest.$ac_ext <<_ACEOF
5051: /* confdefs.h. */
5052: _ACEOF
5053: cat confdefs.h >>conftest.$ac_ext
5054: cat >>conftest.$ac_ext <<_ACEOF
5055: /* end confdefs.h. */
5056:
1.1.1.22 root 5057: /* Override any GCC internal prototype to avoid an error.
5058: Use char because int might match the return type of a GCC
5059: builtin and then its argument prototype would still apply. */
1.1.1.19 root 5060: #ifdef __cplusplus
5061: extern "C"
5062: #endif
5063: char gethostbyname ();
5064: int
5065: main ()
5066: {
1.1.1.22 root 5067: return gethostbyname ();
1.1.1.19 root 5068: ;
5069: return 0;
5070: }
5071: _ACEOF
5072: rm -f conftest.$ac_objext conftest$ac_exeext
1.1.1.22 root 5073: if { (ac_try="$ac_link"
5074: case "(($ac_try" in
5075: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5076: *) ac_try_echo=$ac_try;;
5077: esac
5078: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5079: (eval "$ac_link") 2>conftest.er1
1.1.1.19 root 5080: ac_status=$?
5081: grep -v '^ *+' conftest.er1 >conftest.err
5082: rm -f conftest.er1
5083: cat conftest.err >&5
5084: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.22 root 5085: (exit $ac_status); } && {
5086: test -z "$ac_c_werror_flag" ||
5087: test ! -s conftest.err
5088: } && test -s conftest$ac_exeext &&
5089: $as_test_x conftest$ac_exeext; then
1.1.1.19 root 5090: ac_cv_lib_nsl_gethostbyname=yes
5091: else
5092: echo "$as_me: failed program was:" >&5
5093: sed 's/^/| /' conftest.$ac_ext >&5
5094:
1.1.1.22 root 5095: ac_cv_lib_nsl_gethostbyname=no
1.1.1.19 root 5096: fi
1.1.1.22 root 5097:
5098: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.1.1.19 root 5099: conftest$ac_exeext conftest.$ac_ext
5100: LIBS=$ac_check_lib_save_LIBS
5101: fi
1.1.1.22 root 5102: { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
5103: echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
1.1.1.19 root 5104: if test $ac_cv_lib_nsl_gethostbyname = yes; then
5105: X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
1.1 root 5106: fi
5107:
1.1.1.19 root 5108: if test $ac_cv_lib_nsl_gethostbyname = no; then
1.1.1.22 root 5109: { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
5110: echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
1.1.1.19 root 5111: if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
5112: echo $ECHO_N "(cached) $ECHO_C" >&6
5113: else
5114: ac_check_lib_save_LIBS=$LIBS
5115: LIBS="-lbsd $LIBS"
5116: cat >conftest.$ac_ext <<_ACEOF
5117: /* confdefs.h. */
5118: _ACEOF
5119: cat confdefs.h >>conftest.$ac_ext
5120: cat >>conftest.$ac_ext <<_ACEOF
5121: /* end confdefs.h. */
5122:
1.1.1.22 root 5123: /* Override any GCC internal prototype to avoid an error.
5124: Use char because int might match the return type of a GCC
5125: builtin and then its argument prototype would still apply. */
1.1.1.19 root 5126: #ifdef __cplusplus
5127: extern "C"
5128: #endif
5129: char gethostbyname ();
5130: int
5131: main ()
5132: {
1.1.1.22 root 5133: return gethostbyname ();
1.1.1.19 root 5134: ;
5135: return 0;
5136: }
5137: _ACEOF
5138: rm -f conftest.$ac_objext conftest$ac_exeext
1.1.1.22 root 5139: if { (ac_try="$ac_link"
5140: case "(($ac_try" in
5141: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5142: *) ac_try_echo=$ac_try;;
5143: esac
5144: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5145: (eval "$ac_link") 2>conftest.er1
1.1.1.19 root 5146: ac_status=$?
5147: grep -v '^ *+' conftest.er1 >conftest.err
5148: rm -f conftest.er1
5149: cat conftest.err >&5
5150: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.22 root 5151: (exit $ac_status); } && {
5152: test -z "$ac_c_werror_flag" ||
5153: test ! -s conftest.err
5154: } && test -s conftest$ac_exeext &&
5155: $as_test_x conftest$ac_exeext; then
1.1.1.19 root 5156: ac_cv_lib_bsd_gethostbyname=yes
5157: else
5158: echo "$as_me: failed program was:" >&5
5159: sed 's/^/| /' conftest.$ac_ext >&5
5160:
1.1.1.22 root 5161: ac_cv_lib_bsd_gethostbyname=no
1.1.1.19 root 5162: fi
1.1.1.22 root 5163:
5164: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.1.1.19 root 5165: conftest$ac_exeext conftest.$ac_ext
5166: LIBS=$ac_check_lib_save_LIBS
5167: fi
1.1.1.22 root 5168: { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
5169: echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
1.1.1.19 root 5170: if test $ac_cv_lib_bsd_gethostbyname = yes; then
5171: X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
1.1 root 5172: fi
5173:
1.1.1.19 root 5174: fi
1.1.1.4 root 5175: fi
1.1 root 5176:
5177: # [email protected] says without -lsocket,
1.1.1.4 root 5178: # socket/setsockopt and other routines are undefined under SCO ODT
5179: # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
1.1.1.19 root 5180: # on later versions), says Simon Leinen: it contains gethostby*
5181: # variants that don't use the name server (or something). -lsocket
5182: # must be given before -lnsl if both are needed. We assume that
5183: # if connect needs -lnsl, so does gethostbyname.
1.1.1.22 root 5184: { echo "$as_me:$LINENO: checking for connect" >&5
5185: echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
1.1.1.19 root 5186: if test "${ac_cv_func_connect+set}" = set; then
5187: echo $ECHO_N "(cached) $ECHO_C" >&6
5188: else
5189: cat >conftest.$ac_ext <<_ACEOF
5190: /* confdefs.h. */
5191: _ACEOF
5192: cat confdefs.h >>conftest.$ac_ext
5193: cat >>conftest.$ac_ext <<_ACEOF
5194: /* end confdefs.h. */
5195: /* Define connect to an innocuous variant, in case <limits.h> declares connect.
5196: For example, HP-UX 11i <limits.h> declares gettimeofday. */
5197: #define connect innocuous_connect
5198:
1.1.1.4 root 5199: /* System header to define __stub macros and hopefully few prototypes,
1.1.1.19 root 5200: which can conflict with char connect (); below.
5201: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5202: <limits.h> exists even on freestanding compilers. */
5203:
5204: #ifdef __STDC__
5205: # include <limits.h>
5206: #else
5207: # include <assert.h>
5208: #endif
1.1.1.4 root 5209:
1.1.1.19 root 5210: #undef connect
1.1.1.4 root 5211:
1.1.1.22 root 5212: /* Override any GCC internal prototype to avoid an error.
5213: Use char because int might match the return type of a GCC
5214: builtin and then its argument prototype would still apply. */
1.1.1.19 root 5215: #ifdef __cplusplus
5216: extern "C"
5217: #endif
5218: char connect ();
1.1.1.4 root 5219: /* The GNU C library defines this for functions which it implements
5220: to always fail with ENOSYS. Some functions are actually named
5221: something starting with __ and the normal name is an alias. */
1.1.1.22 root 5222: #if defined __stub_connect || defined __stub___connect
1.1.1.4 root 5223: choke me
5224: #endif
5225:
1.1.1.19 root 5226: int
5227: main ()
5228: {
1.1.1.22 root 5229: return connect ();
1.1.1.19 root 5230: ;
5231: return 0;
5232: }
5233: _ACEOF
5234: rm -f conftest.$ac_objext conftest$ac_exeext
1.1.1.22 root 5235: if { (ac_try="$ac_link"
5236: case "(($ac_try" in
5237: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5238: *) ac_try_echo=$ac_try;;
5239: esac
5240: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5241: (eval "$ac_link") 2>conftest.er1
1.1.1.19 root 5242: ac_status=$?
5243: grep -v '^ *+' conftest.er1 >conftest.err
5244: rm -f conftest.er1
5245: cat conftest.err >&5
5246: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.22 root 5247: (exit $ac_status); } && {
5248: test -z "$ac_c_werror_flag" ||
5249: test ! -s conftest.err
5250: } && test -s conftest$ac_exeext &&
5251: $as_test_x conftest$ac_exeext; then
1.1.1.19 root 5252: ac_cv_func_connect=yes
5253: else
5254: echo "$as_me: failed program was:" >&5
5255: sed 's/^/| /' conftest.$ac_ext >&5
1.1.1.4 root 5256:
1.1.1.22 root 5257: ac_cv_func_connect=no
1.1.1.19 root 5258: fi
1.1.1.22 root 5259:
5260: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.1.1.19 root 5261: conftest$ac_exeext conftest.$ac_ext
1.1.1.4 root 5262: fi
1.1.1.22 root 5263: { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
5264: echo "${ECHO_T}$ac_cv_func_connect" >&6; }
1.1.1.4 root 5265:
5266: if test $ac_cv_func_connect = no; then
1.1.1.22 root 5267: { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
5268: echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
1.1.1.19 root 5269: if test "${ac_cv_lib_socket_connect+set}" = set; then
5270: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 root 5271: else
1.1.1.19 root 5272: ac_check_lib_save_LIBS=$LIBS
1.1.1.4 root 5273: LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
1.1.1.19 root 5274: cat >conftest.$ac_ext <<_ACEOF
5275: /* confdefs.h. */
5276: _ACEOF
5277: cat confdefs.h >>conftest.$ac_ext
5278: cat >>conftest.$ac_ext <<_ACEOF
5279: /* end confdefs.h. */
5280:
1.1.1.22 root 5281: /* Override any GCC internal prototype to avoid an error.
5282: Use char because int might match the return type of a GCC
5283: builtin and then its argument prototype would still apply. */
1.1.1.19 root 5284: #ifdef __cplusplus
5285: extern "C"
5286: #endif
5287: char connect ();
5288: int
5289: main ()
5290: {
1.1.1.22 root 5291: return connect ();
1.1.1.19 root 5292: ;
5293: return 0;
5294: }
5295: _ACEOF
5296: rm -f conftest.$ac_objext conftest$ac_exeext
1.1.1.22 root 5297: if { (ac_try="$ac_link"
5298: case "(($ac_try" in
5299: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5300: *) ac_try_echo=$ac_try;;
5301: esac
5302: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5303: (eval "$ac_link") 2>conftest.er1
1.1.1.19 root 5304: ac_status=$?
5305: grep -v '^ *+' conftest.er1 >conftest.err
5306: rm -f conftest.er1
5307: cat conftest.err >&5
5308: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.22 root 5309: (exit $ac_status); } && {
5310: test -z "$ac_c_werror_flag" ||
5311: test ! -s conftest.err
5312: } && test -s conftest$ac_exeext &&
5313: $as_test_x conftest$ac_exeext; then
1.1.1.19 root 5314: ac_cv_lib_socket_connect=yes
5315: else
5316: echo "$as_me: failed program was:" >&5
5317: sed 's/^/| /' conftest.$ac_ext >&5
5318:
1.1.1.22 root 5319: ac_cv_lib_socket_connect=no
1.1.1.19 root 5320: fi
1.1.1.22 root 5321:
5322: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.1.1.19 root 5323: conftest$ac_exeext conftest.$ac_ext
5324: LIBS=$ac_check_lib_save_LIBS
5325: fi
1.1.1.22 root 5326: { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
5327: echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
1.1.1.19 root 5328: if test $ac_cv_lib_socket_connect = yes; then
1.1.1.4 root 5329: X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
5330: fi
5331:
5332: fi
5333:
1.1.1.19 root 5334: # Guillermo Gomez says -lposix is necessary on A/UX.
1.1.1.22 root 5335: { echo "$as_me:$LINENO: checking for remove" >&5
5336: echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
1.1.1.19 root 5337: if test "${ac_cv_func_remove+set}" = set; then
5338: echo $ECHO_N "(cached) $ECHO_C" >&6
5339: else
5340: cat >conftest.$ac_ext <<_ACEOF
5341: /* confdefs.h. */
5342: _ACEOF
5343: cat confdefs.h >>conftest.$ac_ext
5344: cat >>conftest.$ac_ext <<_ACEOF
5345: /* end confdefs.h. */
5346: /* Define remove to an innocuous variant, in case <limits.h> declares remove.
5347: For example, HP-UX 11i <limits.h> declares gettimeofday. */
5348: #define remove innocuous_remove
5349:
1.1.1.4 root 5350: /* System header to define __stub macros and hopefully few prototypes,
1.1.1.19 root 5351: which can conflict with char remove (); below.
5352: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5353: <limits.h> exists even on freestanding compilers. */
5354:
5355: #ifdef __STDC__
5356: # include <limits.h>
5357: #else
5358: # include <assert.h>
5359: #endif
1.1.1.4 root 5360:
1.1.1.19 root 5361: #undef remove
1.1.1.4 root 5362:
1.1.1.22 root 5363: /* Override any GCC internal prototype to avoid an error.
5364: Use char because int might match the return type of a GCC
5365: builtin and then its argument prototype would still apply. */
1.1.1.19 root 5366: #ifdef __cplusplus
5367: extern "C"
5368: #endif
5369: char remove ();
1.1.1.4 root 5370: /* The GNU C library defines this for functions which it implements
5371: to always fail with ENOSYS. Some functions are actually named
5372: something starting with __ and the normal name is an alias. */
1.1.1.22 root 5373: #if defined __stub_remove || defined __stub___remove
1.1.1.4 root 5374: choke me
5375: #endif
5376:
1.1.1.19 root 5377: int
5378: main ()
5379: {
1.1.1.22 root 5380: return remove ();
1.1.1.19 root 5381: ;
5382: return 0;
5383: }
5384: _ACEOF
5385: rm -f conftest.$ac_objext conftest$ac_exeext
1.1.1.22 root 5386: if { (ac_try="$ac_link"
5387: case "(($ac_try" in
5388: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5389: *) ac_try_echo=$ac_try;;
5390: esac
5391: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5392: (eval "$ac_link") 2>conftest.er1
1.1.1.19 root 5393: ac_status=$?
5394: grep -v '^ *+' conftest.er1 >conftest.err
5395: rm -f conftest.er1
5396: cat conftest.err >&5
5397: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.22 root 5398: (exit $ac_status); } && {
5399: test -z "$ac_c_werror_flag" ||
5400: test ! -s conftest.err
5401: } && test -s conftest$ac_exeext &&
5402: $as_test_x conftest$ac_exeext; then
1.1.1.19 root 5403: ac_cv_func_remove=yes
5404: else
5405: echo "$as_me: failed program was:" >&5
5406: sed 's/^/| /' conftest.$ac_ext >&5
1.1.1.4 root 5407:
1.1.1.22 root 5408: ac_cv_func_remove=no
1.1.1.19 root 5409: fi
1.1.1.22 root 5410:
5411: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.1.1.19 root 5412: conftest$ac_exeext conftest.$ac_ext
1.1.1.4 root 5413: fi
1.1.1.22 root 5414: { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
5415: echo "${ECHO_T}$ac_cv_func_remove" >&6; }
1.1.1.4 root 5416:
5417: if test $ac_cv_func_remove = no; then
1.1.1.22 root 5418: { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
5419: echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
1.1.1.19 root 5420: if test "${ac_cv_lib_posix_remove+set}" = set; then
5421: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1.1.4 root 5422: else
1.1.1.19 root 5423: ac_check_lib_save_LIBS=$LIBS
1.1.1.4 root 5424: LIBS="-lposix $LIBS"
1.1.1.19 root 5425: cat >conftest.$ac_ext <<_ACEOF
5426: /* confdefs.h. */
5427: _ACEOF
5428: cat confdefs.h >>conftest.$ac_ext
5429: cat >>conftest.$ac_ext <<_ACEOF
5430: /* end confdefs.h. */
5431:
1.1.1.22 root 5432: /* Override any GCC internal prototype to avoid an error.
5433: Use char because int might match the return type of a GCC
5434: builtin and then its argument prototype would still apply. */
1.1.1.19 root 5435: #ifdef __cplusplus
5436: extern "C"
5437: #endif
5438: char remove ();
5439: int
5440: main ()
5441: {
1.1.1.22 root 5442: return remove ();
1.1.1.19 root 5443: ;
5444: return 0;
5445: }
5446: _ACEOF
5447: rm -f conftest.$ac_objext conftest$ac_exeext
1.1.1.22 root 5448: if { (ac_try="$ac_link"
5449: case "(($ac_try" in
5450: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5451: *) ac_try_echo=$ac_try;;
5452: esac
5453: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5454: (eval "$ac_link") 2>conftest.er1
1.1.1.19 root 5455: ac_status=$?
5456: grep -v '^ *+' conftest.er1 >conftest.err
5457: rm -f conftest.er1
5458: cat conftest.err >&5
5459: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.22 root 5460: (exit $ac_status); } && {
5461: test -z "$ac_c_werror_flag" ||
5462: test ! -s conftest.err
5463: } && test -s conftest$ac_exeext &&
5464: $as_test_x conftest$ac_exeext; then
1.1.1.19 root 5465: ac_cv_lib_posix_remove=yes
5466: else
5467: echo "$as_me: failed program was:" >&5
5468: sed 's/^/| /' conftest.$ac_ext >&5
5469:
1.1.1.22 root 5470: ac_cv_lib_posix_remove=no
1.1.1.19 root 5471: fi
1.1.1.22 root 5472:
5473: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.1.1.19 root 5474: conftest$ac_exeext conftest.$ac_ext
5475: LIBS=$ac_check_lib_save_LIBS
5476: fi
1.1.1.22 root 5477: { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
5478: echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
1.1.1.19 root 5479: if test $ac_cv_lib_posix_remove = yes; then
1.1.1.4 root 5480: X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
5481: fi
5482:
5483: fi
5484:
5485: # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
1.1.1.22 root 5486: { echo "$as_me:$LINENO: checking for shmat" >&5
5487: echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
1.1.1.19 root 5488: if test "${ac_cv_func_shmat+set}" = set; then
5489: echo $ECHO_N "(cached) $ECHO_C" >&6
5490: else
5491: cat >conftest.$ac_ext <<_ACEOF
5492: /* confdefs.h. */
5493: _ACEOF
5494: cat confdefs.h >>conftest.$ac_ext
5495: cat >>conftest.$ac_ext <<_ACEOF
5496: /* end confdefs.h. */
5497: /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
5498: For example, HP-UX 11i <limits.h> declares gettimeofday. */
5499: #define shmat innocuous_shmat
5500:
1.1.1.4 root 5501: /* System header to define __stub macros and hopefully few prototypes,
1.1.1.19 root 5502: which can conflict with char shmat (); below.
5503: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5504: <limits.h> exists even on freestanding compilers. */
5505:
5506: #ifdef __STDC__
5507: # include <limits.h>
5508: #else
5509: # include <assert.h>
5510: #endif
1.1.1.4 root 5511:
1.1.1.19 root 5512: #undef shmat
1.1.1.4 root 5513:
1.1.1.22 root 5514: /* Override any GCC internal prototype to avoid an error.
5515: Use char because int might match the return type of a GCC
5516: builtin and then its argument prototype would still apply. */
1.1.1.19 root 5517: #ifdef __cplusplus
5518: extern "C"
5519: #endif
5520: char shmat ();
1.1.1.4 root 5521: /* The GNU C library defines this for functions which it implements
5522: to always fail with ENOSYS. Some functions are actually named
5523: something starting with __ and the normal name is an alias. */
1.1.1.22 root 5524: #if defined __stub_shmat || defined __stub___shmat
1.1.1.4 root 5525: choke me
5526: #endif
5527:
1.1.1.19 root 5528: int
5529: main ()
5530: {
1.1.1.22 root 5531: return shmat ();
1.1.1.19 root 5532: ;
5533: return 0;
5534: }
5535: _ACEOF
5536: rm -f conftest.$ac_objext conftest$ac_exeext
1.1.1.22 root 5537: if { (ac_try="$ac_link"
5538: case "(($ac_try" in
5539: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5540: *) ac_try_echo=$ac_try;;
5541: esac
5542: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5543: (eval "$ac_link") 2>conftest.er1
1.1.1.19 root 5544: ac_status=$?
5545: grep -v '^ *+' conftest.er1 >conftest.err
5546: rm -f conftest.er1
5547: cat conftest.err >&5
5548: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.22 root 5549: (exit $ac_status); } && {
5550: test -z "$ac_c_werror_flag" ||
5551: test ! -s conftest.err
5552: } && test -s conftest$ac_exeext &&
5553: $as_test_x conftest$ac_exeext; then
1.1.1.19 root 5554: ac_cv_func_shmat=yes
5555: else
5556: echo "$as_me: failed program was:" >&5
5557: sed 's/^/| /' conftest.$ac_ext >&5
1.1.1.4 root 5558:
1.1.1.22 root 5559: ac_cv_func_shmat=no
1.1.1.19 root 5560: fi
1.1.1.22 root 5561:
5562: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.1.1.19 root 5563: conftest$ac_exeext conftest.$ac_ext
1.1.1.4 root 5564: fi
1.1.1.22 root 5565: { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
5566: echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
1.1.1.4 root 5567:
5568: if test $ac_cv_func_shmat = no; then
1.1.1.22 root 5569: { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
5570: echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
1.1.1.19 root 5571: if test "${ac_cv_lib_ipc_shmat+set}" = set; then
5572: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1.1.4 root 5573: else
1.1.1.19 root 5574: ac_check_lib_save_LIBS=$LIBS
1.1.1.4 root 5575: LIBS="-lipc $LIBS"
1.1.1.19 root 5576: cat >conftest.$ac_ext <<_ACEOF
5577: /* confdefs.h. */
5578: _ACEOF
5579: cat confdefs.h >>conftest.$ac_ext
5580: cat >>conftest.$ac_ext <<_ACEOF
5581: /* end confdefs.h. */
5582:
1.1.1.22 root 5583: /* Override any GCC internal prototype to avoid an error.
5584: Use char because int might match the return type of a GCC
5585: builtin and then its argument prototype would still apply. */
1.1.1.19 root 5586: #ifdef __cplusplus
5587: extern "C"
5588: #endif
5589: char shmat ();
5590: int
5591: main ()
5592: {
1.1.1.22 root 5593: return shmat ();
1.1.1.19 root 5594: ;
5595: return 0;
5596: }
5597: _ACEOF
5598: rm -f conftest.$ac_objext conftest$ac_exeext
1.1.1.22 root 5599: if { (ac_try="$ac_link"
5600: case "(($ac_try" in
5601: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5602: *) ac_try_echo=$ac_try;;
5603: esac
5604: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5605: (eval "$ac_link") 2>conftest.er1
1.1.1.19 root 5606: ac_status=$?
5607: grep -v '^ *+' conftest.er1 >conftest.err
5608: rm -f conftest.er1
5609: cat conftest.err >&5
5610: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.22 root 5611: (exit $ac_status); } && {
5612: test -z "$ac_c_werror_flag" ||
5613: test ! -s conftest.err
5614: } && test -s conftest$ac_exeext &&
5615: $as_test_x conftest$ac_exeext; then
1.1.1.19 root 5616: ac_cv_lib_ipc_shmat=yes
5617: else
5618: echo "$as_me: failed program was:" >&5
5619: sed 's/^/| /' conftest.$ac_ext >&5
5620:
1.1.1.22 root 5621: ac_cv_lib_ipc_shmat=no
1.1.1.19 root 5622: fi
1.1.1.22 root 5623:
5624: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.1.1.19 root 5625: conftest$ac_exeext conftest.$ac_ext
5626: LIBS=$ac_check_lib_save_LIBS
5627: fi
1.1.1.22 root 5628: { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
5629: echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
1.1.1.19 root 5630: if test $ac_cv_lib_ipc_shmat = yes; then
1.1.1.4 root 5631: X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
1.1 root 5632: fi
5633:
5634: fi
5635: fi
1.1.1.4 root 5636:
5637: # Check for libraries that X11R6 Xt/Xaw programs need.
1.1.1.19 root 5638: ac_save_LDFLAGS=$LDFLAGS
1.1.1.4 root 5639: test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
5640: # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
5641: # check for ICE first), but we must link in the order -lSM -lICE or
5642: # we get undefined symbols. So assume we have SM if we have ICE.
5643: # These have to be linked with before -lX11, unlike the other
5644: # libraries we check for below, so use a different variable.
1.1.1.19 root 5645: # John Interrante, Karl Berry
1.1.1.22 root 5646: { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
5647: echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
1.1.1.19 root 5648: if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
5649: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1.1.4 root 5650: else
1.1.1.19 root 5651: ac_check_lib_save_LIBS=$LIBS
1.1.1.9 root 5652: LIBS="-lICE $X_EXTRA_LIBS $LIBS"
1.1.1.19 root 5653: cat >conftest.$ac_ext <<_ACEOF
5654: /* confdefs.h. */
5655: _ACEOF
5656: cat confdefs.h >>conftest.$ac_ext
5657: cat >>conftest.$ac_ext <<_ACEOF
5658: /* end confdefs.h. */
5659:
1.1.1.22 root 5660: /* Override any GCC internal prototype to avoid an error.
5661: Use char because int might match the return type of a GCC
5662: builtin and then its argument prototype would still apply. */
1.1.1.19 root 5663: #ifdef __cplusplus
5664: extern "C"
5665: #endif
5666: char IceConnectionNumber ();
5667: int
5668: main ()
5669: {
1.1.1.22 root 5670: return IceConnectionNumber ();
1.1.1.19 root 5671: ;
5672: return 0;
5673: }
5674: _ACEOF
5675: rm -f conftest.$ac_objext conftest$ac_exeext
1.1.1.22 root 5676: if { (ac_try="$ac_link"
5677: case "(($ac_try" in
5678: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5679: *) ac_try_echo=$ac_try;;
5680: esac
5681: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5682: (eval "$ac_link") 2>conftest.er1
1.1.1.19 root 5683: ac_status=$?
5684: grep -v '^ *+' conftest.er1 >conftest.err
5685: rm -f conftest.er1
5686: cat conftest.err >&5
5687: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.22 root 5688: (exit $ac_status); } && {
5689: test -z "$ac_c_werror_flag" ||
5690: test ! -s conftest.err
5691: } && test -s conftest$ac_exeext &&
5692: $as_test_x conftest$ac_exeext; then
1.1.1.19 root 5693: ac_cv_lib_ICE_IceConnectionNumber=yes
5694: else
5695: echo "$as_me: failed program was:" >&5
5696: sed 's/^/| /' conftest.$ac_ext >&5
5697:
1.1.1.22 root 5698: ac_cv_lib_ICE_IceConnectionNumber=no
1.1.1.19 root 5699: fi
1.1.1.22 root 5700:
5701: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.1.1.19 root 5702: conftest$ac_exeext conftest.$ac_ext
5703: LIBS=$ac_check_lib_save_LIBS
5704: fi
1.1.1.22 root 5705: { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
5706: echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
1.1.1.19 root 5707: if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
1.1.1.4 root 5708: X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
5709: fi
1.1 root 5710:
1.1.1.19 root 5711: LDFLAGS=$ac_save_LDFLAGS
1.1 root 5712:
1.1.1.3 root 5713: fi
5714:
1.1.1.22 root 5715: ac_config_headers="$ac_config_headers src/sysconfig.h"
1.1.1.19 root 5716:
5717:
5718:
5719:
5720:
1.1.1.3 root 5721:
1.1.1.4 root 5722:
1.1 root 5723: ac_header_dirent=no
1.1.1.19 root 5724: for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5725: as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
1.1.1.22 root 5726: { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
5727: echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
5728: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1.1.1.19 root 5729: echo $ECHO_N "(cached) $ECHO_C" >&6
5730: else
5731: cat >conftest.$ac_ext <<_ACEOF
5732: /* confdefs.h. */
5733: _ACEOF
5734: cat confdefs.h >>conftest.$ac_ext
5735: cat >>conftest.$ac_ext <<_ACEOF
5736: /* end confdefs.h. */
1.1 root 5737: #include <sys/types.h>
5738: #include <$ac_hdr>
1.1.1.19 root 5739:
5740: int
5741: main ()
5742: {
5743: if ((DIR *) 0)
5744: return 0;
5745: ;
5746: return 0;
5747: }
5748: _ACEOF
5749: rm -f conftest.$ac_objext
1.1.1.22 root 5750: if { (ac_try="$ac_compile"
5751: case "(($ac_try" in
5752: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5753: *) ac_try_echo=$ac_try;;
5754: esac
5755: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5756: (eval "$ac_compile") 2>conftest.er1
1.1.1.19 root 5757: ac_status=$?
5758: grep -v '^ *+' conftest.er1 >conftest.err
5759: rm -f conftest.er1
5760: cat conftest.err >&5
5761: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.22 root 5762: (exit $ac_status); } && {
5763: test -z "$ac_c_werror_flag" ||
5764: test ! -s conftest.err
5765: } && test -s conftest.$ac_objext; then
1.1.1.19 root 5766: eval "$as_ac_Header=yes"
5767: else
5768: echo "$as_me: failed program was:" >&5
5769: sed 's/^/| /' conftest.$ac_ext >&5
5770:
1.1.1.22 root 5771: eval "$as_ac_Header=no"
1.1.1.19 root 5772: fi
1.1.1.22 root 5773:
5774: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1.1.19 root 5775: fi
1.1.1.22 root 5776: ac_res=`eval echo '${'$as_ac_Header'}'`
5777: { echo "$as_me:$LINENO: result: $ac_res" >&5
5778: echo "${ECHO_T}$ac_res" >&6; }
1.1.1.19 root 5779: if test `eval echo '${'$as_ac_Header'}'` = yes; then
5780: cat >>confdefs.h <<_ACEOF
5781: #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
5782: _ACEOF
5783:
5784: ac_header_dirent=$ac_hdr; break
1.1 root 5785: fi
1.1.1.19 root 5786:
1.1 root 5787: done
5788: # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5789: if test $ac_header_dirent = dirent.h; then
1.1.1.22 root 5790: { echo "$as_me:$LINENO: checking for library containing opendir" >&5
5791: echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
1.1.1.19 root 5792: if test "${ac_cv_search_opendir+set}" = set; then
5793: echo $ECHO_N "(cached) $ECHO_C" >&6
5794: else
5795: ac_func_search_save_LIBS=$LIBS
5796: cat >conftest.$ac_ext <<_ACEOF
5797: /* confdefs.h. */
5798: _ACEOF
5799: cat confdefs.h >>conftest.$ac_ext
5800: cat >>conftest.$ac_ext <<_ACEOF
5801: /* end confdefs.h. */
5802:
1.1.1.22 root 5803: /* Override any GCC internal prototype to avoid an error.
5804: Use char because int might match the return type of a GCC
5805: builtin and then its argument prototype would still apply. */
1.1.1.19 root 5806: #ifdef __cplusplus
5807: extern "C"
5808: #endif
5809: char opendir ();
5810: int
5811: main ()
5812: {
1.1.1.22 root 5813: return opendir ();
1.1.1.19 root 5814: ;
5815: return 0;
5816: }
5817: _ACEOF
1.1.1.22 root 5818: for ac_lib in '' dir; do
5819: if test -z "$ac_lib"; then
5820: ac_res="none required"
5821: else
5822: ac_res=-l$ac_lib
5823: LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5824: fi
5825: rm -f conftest.$ac_objext conftest$ac_exeext
5826: if { (ac_try="$ac_link"
5827: case "(($ac_try" in
5828: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5829: *) ac_try_echo=$ac_try;;
5830: esac
5831: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5832: (eval "$ac_link") 2>conftest.er1
1.1.1.19 root 5833: ac_status=$?
5834: grep -v '^ *+' conftest.er1 >conftest.err
5835: rm -f conftest.er1
5836: cat conftest.err >&5
5837: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.22 root 5838: (exit $ac_status); } && {
5839: test -z "$ac_c_werror_flag" ||
5840: test ! -s conftest.err
5841: } && test -s conftest$ac_exeext &&
5842: $as_test_x conftest$ac_exeext; then
5843: ac_cv_search_opendir=$ac_res
1.1.1.19 root 5844: else
5845: echo "$as_me: failed program was:" >&5
5846: sed 's/^/| /' conftest.$ac_ext >&5
5847:
1.1 root 5848:
1.1.1.22 root 5849: fi
1.1 root 5850:
1.1.1.22 root 5851: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5852: conftest$ac_exeext
5853: if test "${ac_cv_search_opendir+set}" = set; then
5854: break
1.1 root 5855: fi
1.1.1.22 root 5856: done
5857: if test "${ac_cv_search_opendir+set}" = set; then
5858: :
5859: else
5860: ac_cv_search_opendir=no
1.1.1.19 root 5861: fi
1.1.1.22 root 5862: rm conftest.$ac_ext
1.1.1.19 root 5863: LIBS=$ac_func_search_save_LIBS
5864: fi
1.1.1.22 root 5865: { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5866: echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
5867: ac_res=$ac_cv_search_opendir
5868: if test "$ac_res" != no; then
5869: test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
1.1.1.19 root 5870:
1.1 root 5871: fi
5872:
5873: else
1.1.1.22 root 5874: { echo "$as_me:$LINENO: checking for library containing opendir" >&5
5875: echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
1.1.1.19 root 5876: if test "${ac_cv_search_opendir+set}" = set; then
5877: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 root 5878: else
1.1.1.19 root 5879: ac_func_search_save_LIBS=$LIBS
5880: cat >conftest.$ac_ext <<_ACEOF
5881: /* confdefs.h. */
5882: _ACEOF
5883: cat confdefs.h >>conftest.$ac_ext
5884: cat >>conftest.$ac_ext <<_ACEOF
5885: /* end confdefs.h. */
5886:
1.1.1.22 root 5887: /* Override any GCC internal prototype to avoid an error.
5888: Use char because int might match the return type of a GCC
5889: builtin and then its argument prototype would still apply. */
1.1.1.19 root 5890: #ifdef __cplusplus
5891: extern "C"
5892: #endif
5893: char opendir ();
5894: int
5895: main ()
5896: {
1.1.1.22 root 5897: return opendir ();
1.1.1.19 root 5898: ;
5899: return 0;
5900: }
5901: _ACEOF
1.1.1.22 root 5902: for ac_lib in '' x; do
5903: if test -z "$ac_lib"; then
5904: ac_res="none required"
5905: else
5906: ac_res=-l$ac_lib
5907: LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5908: fi
5909: rm -f conftest.$ac_objext conftest$ac_exeext
5910: if { (ac_try="$ac_link"
5911: case "(($ac_try" in
5912: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5913: *) ac_try_echo=$ac_try;;
5914: esac
5915: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5916: (eval "$ac_link") 2>conftest.er1
1.1.1.19 root 5917: ac_status=$?
5918: grep -v '^ *+' conftest.er1 >conftest.err
5919: rm -f conftest.er1
5920: cat conftest.err >&5
5921: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.22 root 5922: (exit $ac_status); } && {
5923: test -z "$ac_c_werror_flag" ||
5924: test ! -s conftest.err
5925: } && test -s conftest$ac_exeext &&
5926: $as_test_x conftest$ac_exeext; then
5927: ac_cv_search_opendir=$ac_res
1.1.1.19 root 5928: else
5929: echo "$as_me: failed program was:" >&5
5930: sed 's/^/| /' conftest.$ac_ext >&5
5931:
1.1 root 5932:
1.1.1.22 root 5933: fi
1.1 root 5934:
1.1.1.22 root 5935: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5936: conftest$ac_exeext
5937: if test "${ac_cv_search_opendir+set}" = set; then
5938: break
1.1 root 5939: fi
1.1.1.22 root 5940: done
5941: if test "${ac_cv_search_opendir+set}" = set; then
5942: :
5943: else
5944: ac_cv_search_opendir=no
1.1.1.19 root 5945: fi
1.1.1.22 root 5946: rm conftest.$ac_ext
1.1.1.19 root 5947: LIBS=$ac_func_search_save_LIBS
5948: fi
1.1.1.22 root 5949: { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5950: echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
5951: ac_res=$ac_cv_search_opendir
5952: if test "$ac_res" != no; then
5953: test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
1.1.1.19 root 5954:
1.1 root 5955: fi
5956:
5957: fi
5958:
1.1.1.22 root 5959: { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5960: echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
1.1.1.19 root 5961: if test "${ac_cv_header_stdc+set}" = set; then
5962: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 root 5963: else
1.1.1.19 root 5964: cat >conftest.$ac_ext <<_ACEOF
5965: /* confdefs.h. */
5966: _ACEOF
5967: cat confdefs.h >>conftest.$ac_ext
5968: cat >>conftest.$ac_ext <<_ACEOF
5969: /* end confdefs.h. */
1.1 root 5970: #include <stdlib.h>
5971: #include <stdarg.h>
5972: #include <string.h>
5973: #include <float.h>
1.1.1.19 root 5974:
5975: int
5976: main ()
5977: {
5978:
5979: ;
5980: return 0;
5981: }
5982: _ACEOF
5983: rm -f conftest.$ac_objext
1.1.1.22 root 5984: if { (ac_try="$ac_compile"
5985: case "(($ac_try" in
5986: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5987: *) ac_try_echo=$ac_try;;
5988: esac
5989: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5990: (eval "$ac_compile") 2>conftest.er1
1.1.1.19 root 5991: ac_status=$?
5992: grep -v '^ *+' conftest.er1 >conftest.err
5993: rm -f conftest.er1
5994: cat conftest.err >&5
5995: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.22 root 5996: (exit $ac_status); } && {
5997: test -z "$ac_c_werror_flag" ||
5998: test ! -s conftest.err
5999: } && test -s conftest.$ac_objext; then
1.1 root 6000: ac_cv_header_stdc=yes
6001: else
1.1.1.19 root 6002: echo "$as_me: failed program was:" >&5
6003: sed 's/^/| /' conftest.$ac_ext >&5
6004:
1.1.1.22 root 6005: ac_cv_header_stdc=no
1.1 root 6006: fi
1.1.1.22 root 6007:
6008: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1 root 6009:
6010: if test $ac_cv_header_stdc = yes; then
6011: # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1.1.1.19 root 6012: cat >conftest.$ac_ext <<_ACEOF
6013: /* confdefs.h. */
6014: _ACEOF
6015: cat confdefs.h >>conftest.$ac_ext
6016: cat >>conftest.$ac_ext <<_ACEOF
6017: /* end confdefs.h. */
1.1 root 6018: #include <string.h>
1.1.1.19 root 6019:
6020: _ACEOF
1.1 root 6021: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1.1.1.19 root 6022: $EGREP "memchr" >/dev/null 2>&1; then
1.1 root 6023: :
6024: else
6025: ac_cv_header_stdc=no
6026: fi
6027: rm -f conftest*
6028:
6029: fi
6030:
6031: if test $ac_cv_header_stdc = yes; then
6032: # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1.1.1.19 root 6033: cat >conftest.$ac_ext <<_ACEOF
6034: /* confdefs.h. */
6035: _ACEOF
6036: cat confdefs.h >>conftest.$ac_ext
6037: cat >>conftest.$ac_ext <<_ACEOF
6038: /* end confdefs.h. */
1.1 root 6039: #include <stdlib.h>
1.1.1.19 root 6040:
6041: _ACEOF
1.1 root 6042: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1.1.1.19 root 6043: $EGREP "free" >/dev/null 2>&1; then
1.1 root 6044: :
6045: else
6046: ac_cv_header_stdc=no
6047: fi
6048: rm -f conftest*
6049:
6050: fi
6051:
6052: if test $ac_cv_header_stdc = yes; then
6053: # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1.1.1.19 root 6054: if test "$cross_compiling" = yes; then
1.1 root 6055: :
6056: else
1.1.1.19 root 6057: cat >conftest.$ac_ext <<_ACEOF
6058: /* confdefs.h. */
6059: _ACEOF
6060: cat confdefs.h >>conftest.$ac_ext
6061: cat >>conftest.$ac_ext <<_ACEOF
6062: /* end confdefs.h. */
1.1 root 6063: #include <ctype.h>
1.1.1.22 root 6064: #include <stdlib.h>
1.1.1.19 root 6065: #if ((' ' & 0x0FF) == 0x020)
6066: # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6067: # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6068: #else
6069: # define ISLOWER(c) \
6070: (('a' <= (c) && (c) <= 'i') \
6071: || ('j' <= (c) && (c) <= 'r') \
6072: || ('s' <= (c) && (c) <= 'z'))
6073: # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6074: #endif
1.1 root 6075:
1.1.1.19 root 6076: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6077: int
6078: main ()
6079: {
6080: int i;
6081: for (i = 0; i < 256; i++)
6082: if (XOR (islower (i), ISLOWER (i))
6083: || toupper (i) != TOUPPER (i))
1.1.1.22 root 6084: return 2;
6085: return 0;
1.1.1.19 root 6086: }
6087: _ACEOF
6088: rm -f conftest$ac_exeext
1.1.1.22 root 6089: if { (ac_try="$ac_link"
6090: case "(($ac_try" in
6091: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6092: *) ac_try_echo=$ac_try;;
6093: esac
6094: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6095: (eval "$ac_link") 2>&5
1.1.1.19 root 6096: ac_status=$?
6097: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6098: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
1.1.1.22 root 6099: { (case "(($ac_try" in
6100: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6101: *) ac_try_echo=$ac_try;;
6102: esac
6103: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6104: (eval "$ac_try") 2>&5
1.1.1.19 root 6105: ac_status=$?
6106: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6107: (exit $ac_status); }; }; then
1.1 root 6108: :
6109: else
1.1.1.19 root 6110: echo "$as_me: program exited with status $ac_status" >&5
6111: echo "$as_me: failed program was:" >&5
6112: sed 's/^/| /' conftest.$ac_ext >&5
6113:
6114: ( exit $ac_status )
6115: ac_cv_header_stdc=no
1.1 root 6116: fi
1.1.1.22 root 6117: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.1 root 6118: fi
1.1.1.22 root 6119:
6120:
1.1.1.4 root 6121: fi
1.1 root 6122: fi
1.1.1.22 root 6123: { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6124: echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
1.1 root 6125: if test $ac_cv_header_stdc = yes; then
1.1.1.19 root 6126:
6127: cat >>confdefs.h <<\_ACEOF
1.1 root 6128: #define STDC_HEADERS 1
1.1.1.19 root 6129: _ACEOF
1.1 root 6130:
6131: fi
6132:
1.1.1.4 root 6133:
1.1.1.19 root 6134: # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6135:
6136:
6137:
6138:
6139:
6140:
6141:
6142:
6143:
6144: for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6145: inttypes.h stdint.h unistd.h
1.1.1.4 root 6146: do
1.1.1.19 root 6147: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
1.1.1.22 root 6148: { echo "$as_me:$LINENO: checking for $ac_header" >&5
6149: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6150: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1.1.1.19 root 6151: echo $ECHO_N "(cached) $ECHO_C" >&6
6152: else
6153: cat >conftest.$ac_ext <<_ACEOF
6154: /* confdefs.h. */
6155: _ACEOF
6156: cat confdefs.h >>conftest.$ac_ext
6157: cat >>conftest.$ac_ext <<_ACEOF
6158: /* end confdefs.h. */
6159: $ac_includes_default
6160:
6161: #include <$ac_header>
6162: _ACEOF
6163: rm -f conftest.$ac_objext
1.1.1.22 root 6164: if { (ac_try="$ac_compile"
6165: case "(($ac_try" in
6166: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6167: *) ac_try_echo=$ac_try;;
6168: esac
6169: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6170: (eval "$ac_compile") 2>conftest.er1
1.1.1.19 root 6171: ac_status=$?
6172: grep -v '^ *+' conftest.er1 >conftest.err
6173: rm -f conftest.er1
6174: cat conftest.err >&5
6175: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.22 root 6176: (exit $ac_status); } && {
6177: test -z "$ac_c_werror_flag" ||
6178: test ! -s conftest.err
6179: } && test -s conftest.$ac_objext; then
1.1.1.19 root 6180: eval "$as_ac_Header=yes"
6181: else
6182: echo "$as_me: failed program was:" >&5
6183: sed 's/^/| /' conftest.$ac_ext >&5
6184:
1.1.1.22 root 6185: eval "$as_ac_Header=no"
1.1.1.19 root 6186: fi
1.1.1.22 root 6187:
6188: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1.1.19 root 6189: fi
1.1.1.22 root 6190: ac_res=`eval echo '${'$as_ac_Header'}'`
6191: { echo "$as_me:$LINENO: result: $ac_res" >&5
6192: echo "${ECHO_T}$ac_res" >&6; }
1.1.1.19 root 6193: if test `eval echo '${'$as_ac_Header'}'` = yes; then
6194: cat >>confdefs.h <<_ACEOF
6195: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6196: _ACEOF
6197:
1.1.1.4 root 6198: fi
1.1.1.19 root 6199:
1.1.1.4 root 6200: done
6201:
1.1.1.19 root 6202:
6203:
6204:
6205:
6206:
6207:
6208:
6209:
6210:
6211:
6212:
6213: for ac_header in unistd.h fcntl.h sys/time.h sys/types.h utime.h string.h strings.h values.h ncurses.h curses.h
1.1 root 6214: do
1.1.1.19 root 6215: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
1.1.1.22 root 6216: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6217: { echo "$as_me:$LINENO: checking for $ac_header" >&5
6218: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6219: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1.1.1.19 root 6220: echo $ECHO_N "(cached) $ECHO_C" >&6
6221: fi
1.1.1.22 root 6222: ac_res=`eval echo '${'$as_ac_Header'}'`
6223: { echo "$as_me:$LINENO: result: $ac_res" >&5
6224: echo "${ECHO_T}$ac_res" >&6; }
1.1.1.19 root 6225: else
6226: # Is the header compilable?
1.1.1.22 root 6227: { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6228: echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
1.1.1.19 root 6229: cat >conftest.$ac_ext <<_ACEOF
6230: /* confdefs.h. */
6231: _ACEOF
6232: cat confdefs.h >>conftest.$ac_ext
6233: cat >>conftest.$ac_ext <<_ACEOF
6234: /* end confdefs.h. */
6235: $ac_includes_default
6236: #include <$ac_header>
6237: _ACEOF
6238: rm -f conftest.$ac_objext
1.1.1.22 root 6239: if { (ac_try="$ac_compile"
6240: case "(($ac_try" in
6241: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6242: *) ac_try_echo=$ac_try;;
6243: esac
6244: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6245: (eval "$ac_compile") 2>conftest.er1
1.1.1.19 root 6246: ac_status=$?
6247: grep -v '^ *+' conftest.er1 >conftest.err
6248: rm -f conftest.er1
6249: cat conftest.err >&5
6250: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.22 root 6251: (exit $ac_status); } && {
6252: test -z "$ac_c_werror_flag" ||
6253: test ! -s conftest.err
6254: } && test -s conftest.$ac_objext; then
1.1.1.19 root 6255: ac_header_compiler=yes
6256: else
6257: echo "$as_me: failed program was:" >&5
6258: sed 's/^/| /' conftest.$ac_ext >&5
6259:
1.1.1.22 root 6260: ac_header_compiler=no
1.1.1.19 root 6261: fi
1.1.1.22 root 6262:
6263: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6264: { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6265: echo "${ECHO_T}$ac_header_compiler" >&6; }
1.1.1.19 root 6266:
6267: # Is the header present?
1.1.1.22 root 6268: { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6269: echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
1.1.1.19 root 6270: cat >conftest.$ac_ext <<_ACEOF
6271: /* confdefs.h. */
6272: _ACEOF
6273: cat confdefs.h >>conftest.$ac_ext
6274: cat >>conftest.$ac_ext <<_ACEOF
6275: /* end confdefs.h. */
6276: #include <$ac_header>
6277: _ACEOF
1.1.1.22 root 6278: if { (ac_try="$ac_cpp conftest.$ac_ext"
6279: case "(($ac_try" in
6280: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6281: *) ac_try_echo=$ac_try;;
6282: esac
6283: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6284: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
1.1.1.19 root 6285: ac_status=$?
6286: grep -v '^ *+' conftest.er1 >conftest.err
6287: rm -f conftest.er1
6288: cat conftest.err >&5
6289: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.22 root 6290: (exit $ac_status); } >/dev/null && {
6291: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6292: test ! -s conftest.err
6293: }; then
1.1.1.19 root 6294: ac_header_preproc=yes
1.1 root 6295: else
1.1.1.19 root 6296: echo "$as_me: failed program was:" >&5
6297: sed 's/^/| /' conftest.$ac_ext >&5
6298:
6299: ac_header_preproc=no
1.1 root 6300: fi
1.1.1.22 root 6301:
1.1.1.19 root 6302: rm -f conftest.err conftest.$ac_ext
1.1.1.22 root 6303: { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6304: echo "${ECHO_T}$ac_header_preproc" >&6; }
1.1 root 6305:
1.1.1.19 root 6306: # So? What about this header?
6307: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6308: yes:no: )
6309: { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6310: echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6311: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6312: echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6313: ac_header_preproc=yes
6314: ;;
6315: no:yes:* )
6316: { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6317: echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6318: { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6319: echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6320: { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6321: echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6322: { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6323: echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6324: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6325: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6326: { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6327: echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
1.1.1.22 root 6328:
1.1.1.19 root 6329: ;;
6330: esac
1.1.1.22 root 6331: { echo "$as_me:$LINENO: checking for $ac_header" >&5
6332: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6333: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1.1.1.19 root 6334: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 root 6335: else
1.1.1.19 root 6336: eval "$as_ac_Header=\$ac_header_preproc"
1.1 root 6337: fi
1.1.1.22 root 6338: ac_res=`eval echo '${'$as_ac_Header'}'`
6339: { echo "$as_me:$LINENO: result: $ac_res" >&5
6340: echo "${ECHO_T}$ac_res" >&6; }
1.1.1.19 root 6341:
1.1 root 6342: fi
1.1.1.19 root 6343: if test `eval echo '${'$as_ac_Header'}'` = yes; then
6344: cat >>confdefs.h <<_ACEOF
6345: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6346: _ACEOF
6347:
1.1 root 6348: fi
1.1.1.19 root 6349:
1.1 root 6350: done
6351:
1.1.1.19 root 6352:
6353:
6354:
6355:
6356:
6357:
6358:
6359: for ac_header in sys/soundcard.h machine/soundcard.h sun/audioio.h sys/audioio.h getopt.h features.h sys/termios.h
1.1.1.4 root 6360: do
1.1.1.19 root 6361: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
1.1.1.22 root 6362: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6363: { echo "$as_me:$LINENO: checking for $ac_header" >&5
6364: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6365: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1.1.1.19 root 6366: echo $ECHO_N "(cached) $ECHO_C" >&6
6367: fi
1.1.1.22 root 6368: ac_res=`eval echo '${'$as_ac_Header'}'`
6369: { echo "$as_me:$LINENO: result: $ac_res" >&5
6370: echo "${ECHO_T}$ac_res" >&6; }
1.1.1.19 root 6371: else
6372: # Is the header compilable?
1.1.1.22 root 6373: { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6374: echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
1.1.1.19 root 6375: cat >conftest.$ac_ext <<_ACEOF
6376: /* confdefs.h. */
6377: _ACEOF
6378: cat confdefs.h >>conftest.$ac_ext
6379: cat >>conftest.$ac_ext <<_ACEOF
6380: /* end confdefs.h. */
6381: $ac_includes_default
6382: #include <$ac_header>
6383: _ACEOF
6384: rm -f conftest.$ac_objext
1.1.1.22 root 6385: if { (ac_try="$ac_compile"
6386: case "(($ac_try" in
6387: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6388: *) ac_try_echo=$ac_try;;
6389: esac
6390: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6391: (eval "$ac_compile") 2>conftest.er1
1.1.1.19 root 6392: ac_status=$?
6393: grep -v '^ *+' conftest.er1 >conftest.err
6394: rm -f conftest.er1
6395: cat conftest.err >&5
6396: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.22 root 6397: (exit $ac_status); } && {
6398: test -z "$ac_c_werror_flag" ||
6399: test ! -s conftest.err
6400: } && test -s conftest.$ac_objext; then
1.1.1.19 root 6401: ac_header_compiler=yes
6402: else
6403: echo "$as_me: failed program was:" >&5
6404: sed 's/^/| /' conftest.$ac_ext >&5
6405:
1.1.1.22 root 6406: ac_header_compiler=no
1.1.1.19 root 6407: fi
1.1.1.22 root 6408:
6409: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6410: { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6411: echo "${ECHO_T}$ac_header_compiler" >&6; }
1.1.1.19 root 6412:
6413: # Is the header present?
1.1.1.22 root 6414: { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6415: echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
1.1.1.19 root 6416: cat >conftest.$ac_ext <<_ACEOF
6417: /* confdefs.h. */
6418: _ACEOF
6419: cat confdefs.h >>conftest.$ac_ext
6420: cat >>conftest.$ac_ext <<_ACEOF
6421: /* end confdefs.h. */
6422: #include <$ac_header>
6423: _ACEOF
1.1.1.22 root 6424: if { (ac_try="$ac_cpp conftest.$ac_ext"
6425: case "(($ac_try" in
6426: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6427: *) ac_try_echo=$ac_try;;
6428: esac
6429: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6430: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
1.1.1.19 root 6431: ac_status=$?
6432: grep -v '^ *+' conftest.er1 >conftest.err
6433: rm -f conftest.er1
6434: cat conftest.err >&5
6435: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.22 root 6436: (exit $ac_status); } >/dev/null && {
6437: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6438: test ! -s conftest.err
6439: }; then
1.1.1.19 root 6440: ac_header_preproc=yes
1.1.1.4 root 6441: else
1.1.1.19 root 6442: echo "$as_me: failed program was:" >&5
6443: sed 's/^/| /' conftest.$ac_ext >&5
6444:
6445: ac_header_preproc=no
1.1.1.4 root 6446: fi
1.1.1.22 root 6447:
1.1.1.19 root 6448: rm -f conftest.err conftest.$ac_ext
1.1.1.22 root 6449: { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6450: echo "${ECHO_T}$ac_header_preproc" >&6; }
1.1 root 6451:
1.1.1.19 root 6452: # So? What about this header?
6453: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6454: yes:no: )
6455: { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6456: echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6457: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6458: echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6459: ac_header_preproc=yes
6460: ;;
6461: no:yes:* )
6462: { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6463: echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6464: { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6465: echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6466: { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6467: echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6468: { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6469: echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6470: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6471: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6472: { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6473: echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
1.1.1.22 root 6474:
1.1.1.19 root 6475: ;;
6476: esac
1.1.1.22 root 6477: { echo "$as_me:$LINENO: checking for $ac_header" >&5
6478: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6479: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1.1.1.19 root 6480: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1.1.4 root 6481: else
1.1.1.19 root 6482: eval "$as_ac_Header=\$ac_header_preproc"
1.1.1.4 root 6483: fi
1.1.1.22 root 6484: ac_res=`eval echo '${'$as_ac_Header'}'`
6485: { echo "$as_me:$LINENO: result: $ac_res" >&5
6486: echo "${ECHO_T}$ac_res" >&6; }
1.1.1.19 root 6487:
1.1.1.4 root 6488: fi
1.1.1.19 root 6489: if test `eval echo '${'$as_ac_Header'}'` = yes; then
6490: cat >>confdefs.h <<_ACEOF
6491: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6492: _ACEOF
6493:
1.1 root 6494: fi
6495:
1.1.1.19 root 6496: done
6497:
6498:
6499:
6500:
6501:
6502:
6503:
6504: for ac_header in posix_opt.h sys/ioctl.h sys/ipc.h sys/shm.h sys/stat.h sys/utime.h
1.1.1.6 root 6505: do
1.1.1.19 root 6506: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
1.1.1.22 root 6507: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6508: { echo "$as_me:$LINENO: checking for $ac_header" >&5
6509: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6510: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1.1.1.19 root 6511: echo $ECHO_N "(cached) $ECHO_C" >&6
6512: fi
1.1.1.22 root 6513: ac_res=`eval echo '${'$as_ac_Header'}'`
6514: { echo "$as_me:$LINENO: result: $ac_res" >&5
6515: echo "${ECHO_T}$ac_res" >&6; }
1.1.1.19 root 6516: else
6517: # Is the header compilable?
1.1.1.22 root 6518: { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6519: echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
1.1.1.19 root 6520: cat >conftest.$ac_ext <<_ACEOF
6521: /* confdefs.h. */
6522: _ACEOF
6523: cat confdefs.h >>conftest.$ac_ext
6524: cat >>conftest.$ac_ext <<_ACEOF
6525: /* end confdefs.h. */
6526: $ac_includes_default
6527: #include <$ac_header>
6528: _ACEOF
6529: rm -f conftest.$ac_objext
1.1.1.22 root 6530: if { (ac_try="$ac_compile"
6531: case "(($ac_try" in
6532: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6533: *) ac_try_echo=$ac_try;;
6534: esac
6535: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6536: (eval "$ac_compile") 2>conftest.er1
1.1.1.19 root 6537: ac_status=$?
6538: grep -v '^ *+' conftest.er1 >conftest.err
6539: rm -f conftest.er1
6540: cat conftest.err >&5
6541: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.22 root 6542: (exit $ac_status); } && {
6543: test -z "$ac_c_werror_flag" ||
6544: test ! -s conftest.err
6545: } && test -s conftest.$ac_objext; then
1.1.1.19 root 6546: ac_header_compiler=yes
6547: else
6548: echo "$as_me: failed program was:" >&5
6549: sed 's/^/| /' conftest.$ac_ext >&5
6550:
1.1.1.22 root 6551: ac_header_compiler=no
1.1.1.19 root 6552: fi
1.1.1.22 root 6553:
6554: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6555: { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6556: echo "${ECHO_T}$ac_header_compiler" >&6; }
1.1.1.19 root 6557:
6558: # Is the header present?
1.1.1.22 root 6559: { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6560: echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
1.1.1.19 root 6561: cat >conftest.$ac_ext <<_ACEOF
6562: /* confdefs.h. */
6563: _ACEOF
6564: cat confdefs.h >>conftest.$ac_ext
6565: cat >>conftest.$ac_ext <<_ACEOF
6566: /* end confdefs.h. */
6567: #include <$ac_header>
6568: _ACEOF
1.1.1.22 root 6569: if { (ac_try="$ac_cpp conftest.$ac_ext"
6570: case "(($ac_try" in
6571: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6572: *) ac_try_echo=$ac_try;;
6573: esac
6574: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6575: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
1.1.1.19 root 6576: ac_status=$?
6577: grep -v '^ *+' conftest.er1 >conftest.err
6578: rm -f conftest.er1
6579: cat conftest.err >&5
6580: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.22 root 6581: (exit $ac_status); } >/dev/null && {
6582: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6583: test ! -s conftest.err
6584: }; then
1.1.1.19 root 6585: ac_header_preproc=yes
1.1.1.6 root 6586: else
1.1.1.19 root 6587: echo "$as_me: failed program was:" >&5
6588: sed 's/^/| /' conftest.$ac_ext >&5
6589:
6590: ac_header_preproc=no
1.1.1.6 root 6591: fi
1.1.1.22 root 6592:
1.1.1.19 root 6593: rm -f conftest.err conftest.$ac_ext
1.1.1.22 root 6594: { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6595: echo "${ECHO_T}$ac_header_preproc" >&6; }
1.1 root 6596:
1.1.1.19 root 6597: # So? What about this header?
6598: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6599: yes:no: )
6600: { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6601: echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6602: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6603: echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6604: ac_header_preproc=yes
6605: ;;
6606: no:yes:* )
6607: { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6608: echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6609: { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6610: echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6611: { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6612: echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6613: { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6614: echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6615: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6616: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6617: { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6618: echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
1.1.1.22 root 6619:
1.1.1.19 root 6620: ;;
6621: esac
1.1.1.22 root 6622: { echo "$as_me:$LINENO: checking for $ac_header" >&5
6623: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6624: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1.1.1.19 root 6625: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 root 6626: else
1.1.1.19 root 6627: eval "$as_ac_Header=\$ac_header_preproc"
1.1.1.8 root 6628: fi
1.1.1.22 root 6629: ac_res=`eval echo '${'$as_ac_Header'}'`
6630: { echo "$as_me:$LINENO: result: $ac_res" >&5
6631: echo "${ECHO_T}$ac_res" >&6; }
1.1.1.19 root 6632:
1.1.1.8 root 6633: fi
1.1.1.19 root 6634: if test `eval echo '${'$as_ac_Header'}'` = yes; then
6635: cat >>confdefs.h <<_ACEOF
6636: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6637: _ACEOF
6638:
1.1.1.8 root 6639: fi
1.1.1.19 root 6640:
1.1.1.8 root 6641: done
6642:
1.1.1.19 root 6643:
6644:
6645: for ac_header in windows.h ddraw.h
1.1.1.8 root 6646: do
1.1.1.19 root 6647: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
1.1.1.22 root 6648: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6649: { echo "$as_me:$LINENO: checking for $ac_header" >&5
6650: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6651: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1.1.1.19 root 6652: echo $ECHO_N "(cached) $ECHO_C" >&6
6653: fi
1.1.1.22 root 6654: ac_res=`eval echo '${'$as_ac_Header'}'`
6655: { echo "$as_me:$LINENO: result: $ac_res" >&5
6656: echo "${ECHO_T}$ac_res" >&6; }
1.1.1.19 root 6657: else
6658: # Is the header compilable?
1.1.1.22 root 6659: { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6660: echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
1.1.1.19 root 6661: cat >conftest.$ac_ext <<_ACEOF
6662: /* confdefs.h. */
6663: _ACEOF
6664: cat confdefs.h >>conftest.$ac_ext
6665: cat >>conftest.$ac_ext <<_ACEOF
6666: /* end confdefs.h. */
6667: $ac_includes_default
6668: #include <$ac_header>
6669: _ACEOF
6670: rm -f conftest.$ac_objext
1.1.1.22 root 6671: if { (ac_try="$ac_compile"
6672: case "(($ac_try" in
6673: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6674: *) ac_try_echo=$ac_try;;
6675: esac
6676: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6677: (eval "$ac_compile") 2>conftest.er1
1.1.1.19 root 6678: ac_status=$?
6679: grep -v '^ *+' conftest.er1 >conftest.err
6680: rm -f conftest.er1
6681: cat conftest.err >&5
6682: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.22 root 6683: (exit $ac_status); } && {
6684: test -z "$ac_c_werror_flag" ||
6685: test ! -s conftest.err
6686: } && test -s conftest.$ac_objext; then
1.1.1.19 root 6687: ac_header_compiler=yes
6688: else
6689: echo "$as_me: failed program was:" >&5
6690: sed 's/^/| /' conftest.$ac_ext >&5
6691:
1.1.1.22 root 6692: ac_header_compiler=no
1.1.1.19 root 6693: fi
1.1.1.22 root 6694:
6695: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6696: { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6697: echo "${ECHO_T}$ac_header_compiler" >&6; }
1.1.1.19 root 6698:
6699: # Is the header present?
1.1.1.22 root 6700: { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6701: echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
1.1.1.19 root 6702: cat >conftest.$ac_ext <<_ACEOF
6703: /* confdefs.h. */
6704: _ACEOF
6705: cat confdefs.h >>conftest.$ac_ext
6706: cat >>conftest.$ac_ext <<_ACEOF
6707: /* end confdefs.h. */
6708: #include <$ac_header>
6709: _ACEOF
1.1.1.22 root 6710: if { (ac_try="$ac_cpp conftest.$ac_ext"
6711: case "(($ac_try" in
6712: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6713: *) ac_try_echo=$ac_try;;
6714: esac
6715: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6716: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
1.1.1.19 root 6717: ac_status=$?
6718: grep -v '^ *+' conftest.er1 >conftest.err
6719: rm -f conftest.er1
6720: cat conftest.err >&5
6721: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.22 root 6722: (exit $ac_status); } >/dev/null && {
6723: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6724: test ! -s conftest.err
6725: }; then
1.1.1.19 root 6726: ac_header_preproc=yes
1.1.1.6 root 6727: else
1.1.1.19 root 6728: echo "$as_me: failed program was:" >&5
6729: sed 's/^/| /' conftest.$ac_ext >&5
6730:
6731: ac_header_preproc=no
1.1.1.6 root 6732: fi
1.1.1.22 root 6733:
1.1.1.19 root 6734: rm -f conftest.err conftest.$ac_ext
1.1.1.22 root 6735: { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6736: echo "${ECHO_T}$ac_header_preproc" >&6; }
1.1.1.6 root 6737:
1.1.1.19 root 6738: # So? What about this header?
6739: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6740: yes:no: )
6741: { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6742: echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6743: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6744: echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6745: ac_header_preproc=yes
6746: ;;
6747: no:yes:* )
6748: { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6749: echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6750: { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6751: echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6752: { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6753: echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6754: { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6755: echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6756: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6757: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6758: { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6759: echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
1.1.1.22 root 6760:
1.1.1.19 root 6761: ;;
6762: esac
1.1.1.22 root 6763: { echo "$as_me:$LINENO: checking for $ac_header" >&5
6764: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6765: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1.1.1.19 root 6766: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1.1.6 root 6767: else
1.1.1.19 root 6768: eval "$as_ac_Header=\$ac_header_preproc"
1.1.1.6 root 6769: fi
1.1.1.22 root 6770: ac_res=`eval echo '${'$as_ac_Header'}'`
6771: { echo "$as_me:$LINENO: result: $ac_res" >&5
6772: echo "${ECHO_T}$ac_res" >&6; }
1.1.1.19 root 6773:
1.1.1.6 root 6774: fi
1.1.1.19 root 6775: if test `eval echo '${'$as_ac_Header'}'` = yes; then
6776: cat >>confdefs.h <<_ACEOF
6777: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6778: _ACEOF
6779:
1.1.1.6 root 6780: fi
6781:
1.1.1.19 root 6782: done
1.1.1.6 root 6783:
1.1.1.19 root 6784: if test "${ac_cv_header_be_math_h+set}" = set; then
1.1.1.22 root 6785: { echo "$as_me:$LINENO: checking for be_math.h" >&5
6786: echo $ECHO_N "checking for be_math.h... $ECHO_C" >&6; }
1.1.1.19 root 6787: if test "${ac_cv_header_be_math_h+set}" = set; then
6788: echo $ECHO_N "(cached) $ECHO_C" >&6
6789: fi
1.1.1.22 root 6790: { echo "$as_me:$LINENO: result: $ac_cv_header_be_math_h" >&5
6791: echo "${ECHO_T}$ac_cv_header_be_math_h" >&6; }
1.1.1.19 root 6792: else
6793: # Is the header compilable?
1.1.1.22 root 6794: { echo "$as_me:$LINENO: checking be_math.h usability" >&5
6795: echo $ECHO_N "checking be_math.h usability... $ECHO_C" >&6; }
1.1.1.19 root 6796: cat >conftest.$ac_ext <<_ACEOF
6797: /* confdefs.h. */
6798: _ACEOF
6799: cat confdefs.h >>conftest.$ac_ext
6800: cat >>conftest.$ac_ext <<_ACEOF
6801: /* end confdefs.h. */
6802: $ac_includes_default
6803: #include <be_math.h>
6804: _ACEOF
6805: rm -f conftest.$ac_objext
1.1.1.22 root 6806: if { (ac_try="$ac_compile"
6807: case "(($ac_try" in
6808: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6809: *) ac_try_echo=$ac_try;;
6810: esac
6811: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6812: (eval "$ac_compile") 2>conftest.er1
1.1.1.19 root 6813: ac_status=$?
6814: grep -v '^ *+' conftest.er1 >conftest.err
6815: rm -f conftest.er1
6816: cat conftest.err >&5
6817: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.22 root 6818: (exit $ac_status); } && {
6819: test -z "$ac_c_werror_flag" ||
6820: test ! -s conftest.err
6821: } && test -s conftest.$ac_objext; then
1.1.1.19 root 6822: ac_header_compiler=yes
6823: else
6824: echo "$as_me: failed program was:" >&5
6825: sed 's/^/| /' conftest.$ac_ext >&5
6826:
1.1.1.22 root 6827: ac_header_compiler=no
1.1.1.19 root 6828: fi
1.1.1.22 root 6829:
6830: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6831: { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6832: echo "${ECHO_T}$ac_header_compiler" >&6; }
1.1.1.19 root 6833:
6834: # Is the header present?
1.1.1.22 root 6835: { echo "$as_me:$LINENO: checking be_math.h presence" >&5
6836: echo $ECHO_N "checking be_math.h presence... $ECHO_C" >&6; }
1.1.1.19 root 6837: cat >conftest.$ac_ext <<_ACEOF
6838: /* confdefs.h. */
6839: _ACEOF
6840: cat confdefs.h >>conftest.$ac_ext
6841: cat >>conftest.$ac_ext <<_ACEOF
6842: /* end confdefs.h. */
6843: #include <be_math.h>
6844: _ACEOF
1.1.1.22 root 6845: if { (ac_try="$ac_cpp conftest.$ac_ext"
6846: case "(($ac_try" in
6847: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6848: *) ac_try_echo=$ac_try;;
6849: esac
6850: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6851: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
1.1.1.19 root 6852: ac_status=$?
6853: grep -v '^ *+' conftest.er1 >conftest.err
6854: rm -f conftest.er1
6855: cat conftest.err >&5
6856: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.22 root 6857: (exit $ac_status); } >/dev/null && {
6858: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6859: test ! -s conftest.err
6860: }; then
1.1.1.19 root 6861: ac_header_preproc=yes
1.1.1.6 root 6862: else
1.1.1.19 root 6863: echo "$as_me: failed program was:" >&5
6864: sed 's/^/| /' conftest.$ac_ext >&5
6865:
6866: ac_header_preproc=no
6867: fi
1.1.1.22 root 6868:
1.1.1.19 root 6869: rm -f conftest.err conftest.$ac_ext
1.1.1.22 root 6870: { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6871: echo "${ECHO_T}$ac_header_preproc" >&6; }
1.1.1.19 root 6872:
6873: # So? What about this header?
6874: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6875: yes:no: )
6876: { echo "$as_me:$LINENO: WARNING: be_math.h: accepted by the compiler, rejected by the preprocessor!" >&5
6877: echo "$as_me: WARNING: be_math.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6878: { echo "$as_me:$LINENO: WARNING: be_math.h: proceeding with the compiler's result" >&5
6879: echo "$as_me: WARNING: be_math.h: proceeding with the compiler's result" >&2;}
6880: ac_header_preproc=yes
6881: ;;
6882: no:yes:* )
6883: { echo "$as_me:$LINENO: WARNING: be_math.h: present but cannot be compiled" >&5
6884: echo "$as_me: WARNING: be_math.h: present but cannot be compiled" >&2;}
6885: { echo "$as_me:$LINENO: WARNING: be_math.h: check for missing prerequisite headers?" >&5
6886: echo "$as_me: WARNING: be_math.h: check for missing prerequisite headers?" >&2;}
6887: { echo "$as_me:$LINENO: WARNING: be_math.h: see the Autoconf documentation" >&5
6888: echo "$as_me: WARNING: be_math.h: see the Autoconf documentation" >&2;}
6889: { echo "$as_me:$LINENO: WARNING: be_math.h: section \"Present But Cannot Be Compiled\"" >&5
6890: echo "$as_me: WARNING: be_math.h: section \"Present But Cannot Be Compiled\"" >&2;}
6891: { echo "$as_me:$LINENO: WARNING: be_math.h: proceeding with the preprocessor's result" >&5
6892: echo "$as_me: WARNING: be_math.h: proceeding with the preprocessor's result" >&2;}
6893: { echo "$as_me:$LINENO: WARNING: be_math.h: in the future, the compiler will take precedence" >&5
6894: echo "$as_me: WARNING: be_math.h: in the future, the compiler will take precedence" >&2;}
1.1.1.22 root 6895:
1.1.1.19 root 6896: ;;
6897: esac
1.1.1.22 root 6898: { echo "$as_me:$LINENO: checking for be_math.h" >&5
6899: echo $ECHO_N "checking for be_math.h... $ECHO_C" >&6; }
1.1.1.19 root 6900: if test "${ac_cv_header_be_math_h+set}" = set; then
6901: echo $ECHO_N "(cached) $ECHO_C" >&6
6902: else
6903: ac_cv_header_be_math_h=$ac_header_preproc
6904: fi
1.1.1.22 root 6905: { echo "$as_me:$LINENO: result: $ac_cv_header_be_math_h" >&5
6906: echo "${ECHO_T}$ac_cv_header_be_math_h" >&6; }
1.1.1.19 root 6907:
6908: fi
6909: if test $ac_cv_header_be_math_h = yes; then
6910: HAVE_BEOS=yes
6911: else
6912: HAVE_BEOS=no
6913: fi
6914:
6915:
6916:
6917: for ac_header in machine/joystick.h
6918: do
6919: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
1.1.1.22 root 6920: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6921: { echo "$as_me:$LINENO: checking for $ac_header" >&5
6922: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6923: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1.1.1.19 root 6924: echo $ECHO_N "(cached) $ECHO_C" >&6
6925: fi
1.1.1.22 root 6926: ac_res=`eval echo '${'$as_ac_Header'}'`
6927: { echo "$as_me:$LINENO: result: $ac_res" >&5
6928: echo "${ECHO_T}$ac_res" >&6; }
1.1.1.19 root 6929: else
6930: # Is the header compilable?
1.1.1.22 root 6931: { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6932: echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
1.1.1.19 root 6933: cat >conftest.$ac_ext <<_ACEOF
6934: /* confdefs.h. */
6935: _ACEOF
6936: cat confdefs.h >>conftest.$ac_ext
6937: cat >>conftest.$ac_ext <<_ACEOF
6938: /* end confdefs.h. */
6939: $ac_includes_default
6940: #include <$ac_header>
6941: _ACEOF
6942: rm -f conftest.$ac_objext
1.1.1.22 root 6943: if { (ac_try="$ac_compile"
6944: case "(($ac_try" in
6945: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6946: *) ac_try_echo=$ac_try;;
6947: esac
6948: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6949: (eval "$ac_compile") 2>conftest.er1
1.1.1.19 root 6950: ac_status=$?
6951: grep -v '^ *+' conftest.er1 >conftest.err
6952: rm -f conftest.er1
6953: cat conftest.err >&5
6954: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.22 root 6955: (exit $ac_status); } && {
6956: test -z "$ac_c_werror_flag" ||
6957: test ! -s conftest.err
6958: } && test -s conftest.$ac_objext; then
1.1.1.19 root 6959: ac_header_compiler=yes
6960: else
6961: echo "$as_me: failed program was:" >&5
6962: sed 's/^/| /' conftest.$ac_ext >&5
6963:
1.1.1.22 root 6964: ac_header_compiler=no
1.1.1.19 root 6965: fi
1.1.1.22 root 6966:
6967: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6968: { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6969: echo "${ECHO_T}$ac_header_compiler" >&6; }
1.1.1.19 root 6970:
6971: # Is the header present?
1.1.1.22 root 6972: { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6973: echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
1.1.1.19 root 6974: cat >conftest.$ac_ext <<_ACEOF
6975: /* confdefs.h. */
6976: _ACEOF
6977: cat confdefs.h >>conftest.$ac_ext
6978: cat >>conftest.$ac_ext <<_ACEOF
6979: /* end confdefs.h. */
6980: #include <$ac_header>
6981: _ACEOF
1.1.1.22 root 6982: if { (ac_try="$ac_cpp conftest.$ac_ext"
6983: case "(($ac_try" in
6984: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6985: *) ac_try_echo=$ac_try;;
6986: esac
6987: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6988: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
1.1.1.19 root 6989: ac_status=$?
6990: grep -v '^ *+' conftest.er1 >conftest.err
6991: rm -f conftest.er1
6992: cat conftest.err >&5
6993: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.22 root 6994: (exit $ac_status); } >/dev/null && {
6995: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6996: test ! -s conftest.err
6997: }; then
1.1.1.19 root 6998: ac_header_preproc=yes
6999: else
7000: echo "$as_me: failed program was:" >&5
7001: sed 's/^/| /' conftest.$ac_ext >&5
7002:
7003: ac_header_preproc=no
7004: fi
1.1.1.22 root 7005:
1.1.1.19 root 7006: rm -f conftest.err conftest.$ac_ext
1.1.1.22 root 7007: { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7008: echo "${ECHO_T}$ac_header_preproc" >&6; }
1.1.1.19 root 7009:
7010: # So? What about this header?
7011: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7012: yes:no: )
7013: { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7014: echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7015: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7016: echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7017: ac_header_preproc=yes
7018: ;;
7019: no:yes:* )
7020: { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7021: echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7022: { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7023: echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7024: { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7025: echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7026: { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7027: echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7028: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7029: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7030: { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7031: echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
1.1.1.22 root 7032:
1.1.1.19 root 7033: ;;
7034: esac
1.1.1.22 root 7035: { echo "$as_me:$LINENO: checking for $ac_header" >&5
7036: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7037: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1.1.1.19 root 7038: echo $ECHO_N "(cached) $ECHO_C" >&6
7039: else
7040: eval "$as_ac_Header=\$ac_header_preproc"
7041: fi
1.1.1.22 root 7042: ac_res=`eval echo '${'$as_ac_Header'}'`
7043: { echo "$as_me:$LINENO: result: $ac_res" >&5
7044: echo "${ECHO_T}$ac_res" >&6; }
1.1.1.19 root 7045:
7046: fi
7047: if test `eval echo '${'$as_ac_Header'}'` = yes; then
7048: cat >>confdefs.h <<_ACEOF
7049: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7050: _ACEOF
7051:
7052: fi
7053:
7054: done
7055:
7056:
7057: for ac_header in devices/ahi.h
7058: do
7059: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
1.1.1.22 root 7060: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7061: { echo "$as_me:$LINENO: checking for $ac_header" >&5
7062: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7063: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1.1.1.19 root 7064: echo $ECHO_N "(cached) $ECHO_C" >&6
7065: fi
1.1.1.22 root 7066: ac_res=`eval echo '${'$as_ac_Header'}'`
7067: { echo "$as_me:$LINENO: result: $ac_res" >&5
7068: echo "${ECHO_T}$ac_res" >&6; }
1.1.1.19 root 7069: else
7070: # Is the header compilable?
1.1.1.22 root 7071: { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7072: echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
1.1.1.19 root 7073: cat >conftest.$ac_ext <<_ACEOF
7074: /* confdefs.h. */
7075: _ACEOF
7076: cat confdefs.h >>conftest.$ac_ext
7077: cat >>conftest.$ac_ext <<_ACEOF
7078: /* end confdefs.h. */
7079: $ac_includes_default
7080: #include <$ac_header>
7081: _ACEOF
7082: rm -f conftest.$ac_objext
1.1.1.22 root 7083: if { (ac_try="$ac_compile"
7084: case "(($ac_try" in
7085: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7086: *) ac_try_echo=$ac_try;;
7087: esac
7088: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7089: (eval "$ac_compile") 2>conftest.er1
1.1.1.19 root 7090: ac_status=$?
7091: grep -v '^ *+' conftest.er1 >conftest.err
7092: rm -f conftest.er1
7093: cat conftest.err >&5
7094: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.22 root 7095: (exit $ac_status); } && {
7096: test -z "$ac_c_werror_flag" ||
7097: test ! -s conftest.err
7098: } && test -s conftest.$ac_objext; then
1.1.1.19 root 7099: ac_header_compiler=yes
7100: else
7101: echo "$as_me: failed program was:" >&5
7102: sed 's/^/| /' conftest.$ac_ext >&5
7103:
1.1.1.22 root 7104: ac_header_compiler=no
1.1.1.19 root 7105: fi
1.1.1.22 root 7106:
7107: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7108: { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7109: echo "${ECHO_T}$ac_header_compiler" >&6; }
1.1.1.19 root 7110:
7111: # Is the header present?
1.1.1.22 root 7112: { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7113: echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
1.1.1.19 root 7114: cat >conftest.$ac_ext <<_ACEOF
7115: /* confdefs.h. */
7116: _ACEOF
7117: cat confdefs.h >>conftest.$ac_ext
7118: cat >>conftest.$ac_ext <<_ACEOF
7119: /* end confdefs.h. */
7120: #include <$ac_header>
7121: _ACEOF
1.1.1.22 root 7122: if { (ac_try="$ac_cpp conftest.$ac_ext"
7123: case "(($ac_try" in
7124: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7125: *) ac_try_echo=$ac_try;;
7126: esac
7127: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7128: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
1.1.1.19 root 7129: ac_status=$?
7130: grep -v '^ *+' conftest.er1 >conftest.err
7131: rm -f conftest.er1
7132: cat conftest.err >&5
7133: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.22 root 7134: (exit $ac_status); } >/dev/null && {
7135: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7136: test ! -s conftest.err
7137: }; then
1.1.1.19 root 7138: ac_header_preproc=yes
7139: else
7140: echo "$as_me: failed program was:" >&5
7141: sed 's/^/| /' conftest.$ac_ext >&5
7142:
7143: ac_header_preproc=no
7144: fi
1.1.1.22 root 7145:
1.1.1.19 root 7146: rm -f conftest.err conftest.$ac_ext
1.1.1.22 root 7147: { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7148: echo "${ECHO_T}$ac_header_preproc" >&6; }
1.1.1.19 root 7149:
7150: # So? What about this header?
7151: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7152: yes:no: )
7153: { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7154: echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7155: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7156: echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7157: ac_header_preproc=yes
7158: ;;
7159: no:yes:* )
7160: { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7161: echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7162: { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7163: echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7164: { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7165: echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7166: { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7167: echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7168: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7169: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7170: { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7171: echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
1.1.1.22 root 7172:
1.1.1.19 root 7173: ;;
7174: esac
1.1.1.22 root 7175: { echo "$as_me:$LINENO: checking for $ac_header" >&5
7176: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7177: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1.1.1.19 root 7178: echo $ECHO_N "(cached) $ECHO_C" >&6
7179: else
7180: eval "$as_ac_Header=\$ac_header_preproc"
7181: fi
1.1.1.22 root 7182: ac_res=`eval echo '${'$as_ac_Header'}'`
7183: { echo "$as_me:$LINENO: result: $ac_res" >&5
7184: echo "${ECHO_T}$ac_res" >&6; }
1.1.1.19 root 7185:
7186: fi
7187: if test `eval echo '${'$as_ac_Header'}'` = yes; then
7188: cat >>confdefs.h <<_ACEOF
7189: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7190: _ACEOF
7191:
7192: fi
7193:
7194: done
7195:
7196:
7197:
7198: for ac_header in libraries/cybergraphics.h cybergraphx/cybergraphics.h
7199: do
7200: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
1.1.1.22 root 7201: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7202: { echo "$as_me:$LINENO: checking for $ac_header" >&5
7203: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7204: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1.1.1.19 root 7205: echo $ECHO_N "(cached) $ECHO_C" >&6
7206: fi
1.1.1.22 root 7207: ac_res=`eval echo '${'$as_ac_Header'}'`
7208: { echo "$as_me:$LINENO: result: $ac_res" >&5
7209: echo "${ECHO_T}$ac_res" >&6; }
1.1.1.19 root 7210: else
7211: # Is the header compilable?
1.1.1.22 root 7212: { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7213: echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
1.1.1.19 root 7214: cat >conftest.$ac_ext <<_ACEOF
7215: /* confdefs.h. */
7216: _ACEOF
7217: cat confdefs.h >>conftest.$ac_ext
7218: cat >>conftest.$ac_ext <<_ACEOF
7219: /* end confdefs.h. */
7220: $ac_includes_default
7221: #include <$ac_header>
7222: _ACEOF
7223: rm -f conftest.$ac_objext
1.1.1.22 root 7224: if { (ac_try="$ac_compile"
7225: case "(($ac_try" in
7226: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7227: *) ac_try_echo=$ac_try;;
7228: esac
7229: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7230: (eval "$ac_compile") 2>conftest.er1
1.1.1.19 root 7231: ac_status=$?
7232: grep -v '^ *+' conftest.er1 >conftest.err
7233: rm -f conftest.er1
7234: cat conftest.err >&5
7235: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.22 root 7236: (exit $ac_status); } && {
7237: test -z "$ac_c_werror_flag" ||
7238: test ! -s conftest.err
7239: } && test -s conftest.$ac_objext; then
1.1.1.19 root 7240: ac_header_compiler=yes
7241: else
7242: echo "$as_me: failed program was:" >&5
7243: sed 's/^/| /' conftest.$ac_ext >&5
7244:
1.1.1.22 root 7245: ac_header_compiler=no
1.1.1.19 root 7246: fi
1.1.1.22 root 7247:
7248: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7249: { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7250: echo "${ECHO_T}$ac_header_compiler" >&6; }
1.1.1.19 root 7251:
7252: # Is the header present?
1.1.1.22 root 7253: { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7254: echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
1.1.1.19 root 7255: cat >conftest.$ac_ext <<_ACEOF
7256: /* confdefs.h. */
7257: _ACEOF
7258: cat confdefs.h >>conftest.$ac_ext
7259: cat >>conftest.$ac_ext <<_ACEOF
7260: /* end confdefs.h. */
7261: #include <$ac_header>
7262: _ACEOF
1.1.1.22 root 7263: if { (ac_try="$ac_cpp conftest.$ac_ext"
7264: case "(($ac_try" in
7265: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7266: *) ac_try_echo=$ac_try;;
7267: esac
7268: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7269: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
1.1.1.19 root 7270: ac_status=$?
7271: grep -v '^ *+' conftest.er1 >conftest.err
7272: rm -f conftest.er1
7273: cat conftest.err >&5
7274: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.22 root 7275: (exit $ac_status); } >/dev/null && {
7276: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7277: test ! -s conftest.err
7278: }; then
1.1.1.19 root 7279: ac_header_preproc=yes
7280: else
7281: echo "$as_me: failed program was:" >&5
7282: sed 's/^/| /' conftest.$ac_ext >&5
7283:
7284: ac_header_preproc=no
7285: fi
1.1.1.22 root 7286:
1.1.1.19 root 7287: rm -f conftest.err conftest.$ac_ext
1.1.1.22 root 7288: { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7289: echo "${ECHO_T}$ac_header_preproc" >&6; }
1.1.1.19 root 7290:
7291: # So? What about this header?
7292: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7293: yes:no: )
7294: { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7295: echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7296: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7297: echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7298: ac_header_preproc=yes
7299: ;;
7300: no:yes:* )
7301: { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7302: echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7303: { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7304: echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7305: { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7306: echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7307: { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7308: echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7309: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7310: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7311: { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7312: echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
1.1.1.22 root 7313:
1.1.1.19 root 7314: ;;
7315: esac
1.1.1.22 root 7316: { echo "$as_me:$LINENO: checking for $ac_header" >&5
7317: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7318: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1.1.1.19 root 7319: echo $ECHO_N "(cached) $ECHO_C" >&6
7320: else
7321: eval "$as_ac_Header=\$ac_header_preproc"
7322: fi
1.1.1.22 root 7323: ac_res=`eval echo '${'$as_ac_Header'}'`
7324: { echo "$as_me:$LINENO: result: $ac_res" >&5
7325: echo "${ECHO_T}$ac_res" >&6; }
1.1.1.19 root 7326:
7327: fi
7328: if test `eval echo '${'$as_ac_Header'}'` = yes; then
7329: cat >>confdefs.h <<_ACEOF
7330: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7331: _ACEOF
7332:
7333: fi
7334:
7335: done
7336:
7337:
1.1.1.22 root 7338: { echo "$as_me:$LINENO: checking for char" >&5
7339: echo $ECHO_N "checking for char... $ECHO_C" >&6; }
1.1.1.19 root 7340: if test "${ac_cv_type_char+set}" = set; then
7341: echo $ECHO_N "(cached) $ECHO_C" >&6
7342: else
7343: cat >conftest.$ac_ext <<_ACEOF
7344: /* confdefs.h. */
7345: _ACEOF
7346: cat confdefs.h >>conftest.$ac_ext
7347: cat >>conftest.$ac_ext <<_ACEOF
7348: /* end confdefs.h. */
7349: $ac_includes_default
1.1.1.22 root 7350: typedef char ac__type_new_;
1.1.1.19 root 7351: int
7352: main ()
7353: {
1.1.1.22 root 7354: if ((ac__type_new_ *) 0)
1.1.1.19 root 7355: return 0;
1.1.1.22 root 7356: if (sizeof (ac__type_new_))
1.1.1.19 root 7357: return 0;
7358: ;
7359: return 0;
7360: }
7361: _ACEOF
7362: rm -f conftest.$ac_objext
1.1.1.22 root 7363: if { (ac_try="$ac_compile"
7364: case "(($ac_try" in
7365: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7366: *) ac_try_echo=$ac_try;;
7367: esac
7368: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7369: (eval "$ac_compile") 2>conftest.er1
1.1.1.19 root 7370: ac_status=$?
7371: grep -v '^ *+' conftest.er1 >conftest.err
7372: rm -f conftest.er1
7373: cat conftest.err >&5
7374: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.22 root 7375: (exit $ac_status); } && {
7376: test -z "$ac_c_werror_flag" ||
7377: test ! -s conftest.err
7378: } && test -s conftest.$ac_objext; then
1.1.1.19 root 7379: ac_cv_type_char=yes
7380: else
7381: echo "$as_me: failed program was:" >&5
7382: sed 's/^/| /' conftest.$ac_ext >&5
7383:
1.1.1.22 root 7384: ac_cv_type_char=no
1.1.1.19 root 7385: fi
1.1.1.22 root 7386:
7387: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1.1.19 root 7388: fi
1.1.1.22 root 7389: { echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
7390: echo "${ECHO_T}$ac_cv_type_char" >&6; }
1.1.1.19 root 7391:
1.1.1.22 root 7392: # The cast to long int works around a bug in the HP C Compiler
7393: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7394: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7395: # This bug is HP SR number 8606223364.
7396: { echo "$as_me:$LINENO: checking size of char" >&5
7397: echo $ECHO_N "checking size of char... $ECHO_C" >&6; }
1.1.1.19 root 7398: if test "${ac_cv_sizeof_char+set}" = set; then
7399: echo $ECHO_N "(cached) $ECHO_C" >&6
7400: else
7401: if test "$cross_compiling" = yes; then
7402: # Depending upon the size, compute the lo and hi bounds.
7403: cat >conftest.$ac_ext <<_ACEOF
7404: /* confdefs.h. */
7405: _ACEOF
7406: cat confdefs.h >>conftest.$ac_ext
7407: cat >>conftest.$ac_ext <<_ACEOF
7408: /* end confdefs.h. */
7409: $ac_includes_default
1.1.1.22 root 7410: typedef char ac__type_sizeof_;
1.1.1.19 root 7411: int
7412: main ()
7413: {
1.1.1.22 root 7414: static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
1.1.1.19 root 7415: test_array [0] = 0
7416:
7417: ;
7418: return 0;
7419: }
7420: _ACEOF
7421: rm -f conftest.$ac_objext
1.1.1.22 root 7422: if { (ac_try="$ac_compile"
7423: case "(($ac_try" in
7424: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7425: *) ac_try_echo=$ac_try;;
7426: esac
7427: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7428: (eval "$ac_compile") 2>conftest.er1
1.1.1.19 root 7429: ac_status=$?
7430: grep -v '^ *+' conftest.er1 >conftest.err
7431: rm -f conftest.er1
7432: cat conftest.err >&5
7433: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.22 root 7434: (exit $ac_status); } && {
7435: test -z "$ac_c_werror_flag" ||
7436: test ! -s conftest.err
7437: } && test -s conftest.$ac_objext; then
1.1.1.19 root 7438: ac_lo=0 ac_mid=0
7439: while :; do
7440: cat >conftest.$ac_ext <<_ACEOF
7441: /* confdefs.h. */
7442: _ACEOF
7443: cat confdefs.h >>conftest.$ac_ext
7444: cat >>conftest.$ac_ext <<_ACEOF
7445: /* end confdefs.h. */
7446: $ac_includes_default
1.1.1.22 root 7447: typedef char ac__type_sizeof_;
1.1.1.19 root 7448: int
7449: main ()
7450: {
1.1.1.22 root 7451: static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
1.1.1.19 root 7452: test_array [0] = 0
7453:
7454: ;
7455: return 0;
7456: }
7457: _ACEOF
7458: rm -f conftest.$ac_objext
1.1.1.22 root 7459: if { (ac_try="$ac_compile"
7460: case "(($ac_try" in
7461: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7462: *) ac_try_echo=$ac_try;;
7463: esac
7464: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7465: (eval "$ac_compile") 2>conftest.er1
1.1.1.19 root 7466: ac_status=$?
7467: grep -v '^ *+' conftest.er1 >conftest.err
7468: rm -f conftest.er1
7469: cat conftest.err >&5
7470: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.22 root 7471: (exit $ac_status); } && {
7472: test -z "$ac_c_werror_flag" ||
7473: test ! -s conftest.err
7474: } && test -s conftest.$ac_objext; then
1.1.1.19 root 7475: ac_hi=$ac_mid; break
7476: else
7477: echo "$as_me: failed program was:" >&5
7478: sed 's/^/| /' conftest.$ac_ext >&5
7479:
1.1.1.22 root 7480: ac_lo=`expr $ac_mid + 1`
7481: if test $ac_lo -le $ac_mid; then
7482: ac_lo= ac_hi=
7483: break
7484: fi
7485: ac_mid=`expr 2 '*' $ac_mid + 1`
1.1.1.19 root 7486: fi
1.1.1.22 root 7487:
7488: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1.1.19 root 7489: done
7490: else
7491: echo "$as_me: failed program was:" >&5
7492: sed 's/^/| /' conftest.$ac_ext >&5
7493:
1.1.1.22 root 7494: cat >conftest.$ac_ext <<_ACEOF
1.1.1.19 root 7495: /* confdefs.h. */
7496: _ACEOF
7497: cat confdefs.h >>conftest.$ac_ext
7498: cat >>conftest.$ac_ext <<_ACEOF
7499: /* end confdefs.h. */
7500: $ac_includes_default
1.1.1.22 root 7501: typedef char ac__type_sizeof_;
1.1.1.19 root 7502: int
7503: main ()
7504: {
1.1.1.22 root 7505: static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
1.1.1.19 root 7506: test_array [0] = 0
7507:
7508: ;
7509: return 0;
7510: }
7511: _ACEOF
7512: rm -f conftest.$ac_objext
1.1.1.22 root 7513: if { (ac_try="$ac_compile"
7514: case "(($ac_try" in
7515: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7516: *) ac_try_echo=$ac_try;;
7517: esac
7518: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7519: (eval "$ac_compile") 2>conftest.er1
1.1.1.19 root 7520: ac_status=$?
7521: grep -v '^ *+' conftest.er1 >conftest.err
7522: rm -f conftest.er1
7523: cat conftest.err >&5
7524: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.22 root 7525: (exit $ac_status); } && {
7526: test -z "$ac_c_werror_flag" ||
7527: test ! -s conftest.err
7528: } && test -s conftest.$ac_objext; then
1.1.1.19 root 7529: ac_hi=-1 ac_mid=-1
7530: while :; do
7531: cat >conftest.$ac_ext <<_ACEOF
7532: /* confdefs.h. */
7533: _ACEOF
7534: cat confdefs.h >>conftest.$ac_ext
7535: cat >>conftest.$ac_ext <<_ACEOF
7536: /* end confdefs.h. */
7537: $ac_includes_default
1.1.1.22 root 7538: typedef char ac__type_sizeof_;
1.1.1.19 root 7539: int
7540: main ()
7541: {
1.1.1.22 root 7542: static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
1.1.1.19 root 7543: test_array [0] = 0
7544:
7545: ;
7546: return 0;
7547: }
7548: _ACEOF
7549: rm -f conftest.$ac_objext
1.1.1.22 root 7550: if { (ac_try="$ac_compile"
7551: case "(($ac_try" in
7552: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7553: *) ac_try_echo=$ac_try;;
7554: esac
7555: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7556: (eval "$ac_compile") 2>conftest.er1
1.1.1.19 root 7557: ac_status=$?
7558: grep -v '^ *+' conftest.er1 >conftest.err
7559: rm -f conftest.er1
7560: cat conftest.err >&5
7561: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.22 root 7562: (exit $ac_status); } && {
7563: test -z "$ac_c_werror_flag" ||
7564: test ! -s conftest.err
7565: } && test -s conftest.$ac_objext; then
1.1.1.19 root 7566: ac_lo=$ac_mid; break
7567: else
7568: echo "$as_me: failed program was:" >&5
7569: sed 's/^/| /' conftest.$ac_ext >&5
7570:
1.1.1.22 root 7571: ac_hi=`expr '(' $ac_mid ')' - 1`
7572: if test $ac_mid -le $ac_hi; then
7573: ac_lo= ac_hi=
7574: break
7575: fi
7576: ac_mid=`expr 2 '*' $ac_mid`
1.1.1.19 root 7577: fi
1.1.1.22 root 7578:
7579: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1.1.19 root 7580: done
7581: else
7582: echo "$as_me: failed program was:" >&5
7583: sed 's/^/| /' conftest.$ac_ext >&5
7584:
1.1.1.22 root 7585: ac_lo= ac_hi=
1.1.1.19 root 7586: fi
1.1.1.22 root 7587:
7588: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1.1.19 root 7589: fi
1.1.1.22 root 7590:
7591: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1.1.19 root 7592: # Binary search between lo and hi bounds.
7593: while test "x$ac_lo" != "x$ac_hi"; do
7594: ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7595: cat >conftest.$ac_ext <<_ACEOF
7596: /* confdefs.h. */
7597: _ACEOF
7598: cat confdefs.h >>conftest.$ac_ext
7599: cat >>conftest.$ac_ext <<_ACEOF
7600: /* end confdefs.h. */
7601: $ac_includes_default
1.1.1.22 root 7602: typedef char ac__type_sizeof_;
1.1.1.19 root 7603: int
7604: main ()
7605: {
1.1.1.22 root 7606: static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
1.1.1.19 root 7607: test_array [0] = 0
7608:
7609: ;
7610: return 0;
7611: }
7612: _ACEOF
7613: rm -f conftest.$ac_objext
1.1.1.22 root 7614: if { (ac_try="$ac_compile"
7615: case "(($ac_try" in
7616: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7617: *) ac_try_echo=$ac_try;;
7618: esac
7619: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7620: (eval "$ac_compile") 2>conftest.er1
1.1.1.19 root 7621: ac_status=$?
7622: grep -v '^ *+' conftest.er1 >conftest.err
7623: rm -f conftest.er1
7624: cat conftest.err >&5
7625: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.22 root 7626: (exit $ac_status); } && {
7627: test -z "$ac_c_werror_flag" ||
7628: test ! -s conftest.err
7629: } && test -s conftest.$ac_objext; then
1.1.1.19 root 7630: ac_hi=$ac_mid
7631: else
7632: echo "$as_me: failed program was:" >&5
7633: sed 's/^/| /' conftest.$ac_ext >&5
7634:
1.1.1.22 root 7635: ac_lo=`expr '(' $ac_mid ')' + 1`
1.1.1.19 root 7636: fi
1.1.1.22 root 7637:
7638: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1.1.19 root 7639: done
7640: case $ac_lo in
7641: ?*) ac_cv_sizeof_char=$ac_lo;;
1.1.1.22 root 7642: '') if test "$ac_cv_type_char" = yes; then
7643: { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
1.1.1.19 root 7644: See \`config.log' for more details." >&5
1.1.1.22 root 7645: echo "$as_me: error: cannot compute sizeof (char)
1.1.1.19 root 7646: See \`config.log' for more details." >&2;}
1.1.1.22 root 7647: { (exit 77); exit 77; }; }
7648: else
7649: ac_cv_sizeof_char=0
7650: fi ;;
1.1.1.19 root 7651: esac
7652: else
7653: cat >conftest.$ac_ext <<_ACEOF
7654: /* confdefs.h. */
7655: _ACEOF
7656: cat confdefs.h >>conftest.$ac_ext
7657: cat >>conftest.$ac_ext <<_ACEOF
7658: /* end confdefs.h. */
7659: $ac_includes_default
1.1.1.22 root 7660: typedef char ac__type_sizeof_;
7661: static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
7662: static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
1.1.1.6 root 7663: #include <stdio.h>
1.1.1.19 root 7664: #include <stdlib.h>
7665: int
7666: main ()
1.1.1.6 root 7667: {
1.1.1.19 root 7668:
7669: FILE *f = fopen ("conftest.val", "w");
7670: if (! f)
1.1.1.22 root 7671: return 1;
7672: if (((long int) (sizeof (ac__type_sizeof_))) < 0)
1.1.1.19 root 7673: {
1.1.1.22 root 7674: long int i = longval ();
7675: if (i != ((long int) (sizeof (ac__type_sizeof_))))
7676: return 1;
1.1.1.19 root 7677: fprintf (f, "%ld\n", i);
7678: }
7679: else
7680: {
1.1.1.22 root 7681: unsigned long int i = ulongval ();
7682: if (i != ((long int) (sizeof (ac__type_sizeof_))))
7683: return 1;
1.1.1.19 root 7684: fprintf (f, "%lu\n", i);
7685: }
1.1.1.22 root 7686: return ferror (f) || fclose (f) != 0;
1.1.1.19 root 7687:
7688: ;
7689: return 0;
1.1.1.6 root 7690: }
1.1.1.19 root 7691: _ACEOF
7692: rm -f conftest$ac_exeext
1.1.1.22 root 7693: if { (ac_try="$ac_link"
7694: case "(($ac_try" in
7695: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7696: *) ac_try_echo=$ac_try;;
7697: esac
7698: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7699: (eval "$ac_link") 2>&5
1.1.1.19 root 7700: ac_status=$?
7701: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7702: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
1.1.1.22 root 7703: { (case "(($ac_try" in
7704: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7705: *) ac_try_echo=$ac_try;;
7706: esac
7707: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7708: (eval "$ac_try") 2>&5
1.1.1.19 root 7709: ac_status=$?
7710: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7711: (exit $ac_status); }; }; then
7712: ac_cv_sizeof_char=`cat conftest.val`
7713: else
7714: echo "$as_me: program exited with status $ac_status" >&5
7715: echo "$as_me: failed program was:" >&5
7716: sed 's/^/| /' conftest.$ac_ext >&5
7717:
7718: ( exit $ac_status )
1.1.1.22 root 7719: if test "$ac_cv_type_char" = yes; then
7720: { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
1.1.1.19 root 7721: See \`config.log' for more details." >&5
1.1.1.22 root 7722: echo "$as_me: error: cannot compute sizeof (char)
1.1.1.19 root 7723: See \`config.log' for more details." >&2;}
1.1.1.22 root 7724: { (exit 77); exit 77; }; }
7725: else
7726: ac_cv_sizeof_char=0
7727: fi
1.1.1.19 root 7728: fi
1.1.1.22 root 7729: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.1.1.19 root 7730: fi
7731: rm -f conftest.val
1.1.1.6 root 7732: fi
1.1.1.22 root 7733: { echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
7734: echo "${ECHO_T}$ac_cv_sizeof_char" >&6; }
7735:
7736:
7737:
1.1.1.19 root 7738: cat >>confdefs.h <<_ACEOF
7739: #define SIZEOF_CHAR $ac_cv_sizeof_char
7740: _ACEOF
7741:
7742:
1.1.1.22 root 7743: { echo "$as_me:$LINENO: checking for short" >&5
7744: echo $ECHO_N "checking for short... $ECHO_C" >&6; }
1.1.1.19 root 7745: if test "${ac_cv_type_short+set}" = set; then
7746: echo $ECHO_N "(cached) $ECHO_C" >&6
7747: else
7748: cat >conftest.$ac_ext <<_ACEOF
7749: /* confdefs.h. */
7750: _ACEOF
7751: cat confdefs.h >>conftest.$ac_ext
7752: cat >>conftest.$ac_ext <<_ACEOF
7753: /* end confdefs.h. */
7754: $ac_includes_default
1.1.1.22 root 7755: typedef short ac__type_new_;
1.1.1.19 root 7756: int
7757: main ()
7758: {
1.1.1.22 root 7759: if ((ac__type_new_ *) 0)
1.1.1.19 root 7760: return 0;
1.1.1.22 root 7761: if (sizeof (ac__type_new_))
1.1.1.19 root 7762: return 0;
7763: ;
7764: return 0;
7765: }
7766: _ACEOF
7767: rm -f conftest.$ac_objext
1.1.1.22 root 7768: if { (ac_try="$ac_compile"
7769: case "(($ac_try" in
7770: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7771: *) ac_try_echo=$ac_try;;
7772: esac
7773: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7774: (eval "$ac_compile") 2>conftest.er1
1.1.1.19 root 7775: ac_status=$?
7776: grep -v '^ *+' conftest.er1 >conftest.err
7777: rm -f conftest.er1
7778: cat conftest.err >&5
7779: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.22 root 7780: (exit $ac_status); } && {
7781: test -z "$ac_c_werror_flag" ||
7782: test ! -s conftest.err
7783: } && test -s conftest.$ac_objext; then
1.1.1.19 root 7784: ac_cv_type_short=yes
7785: else
7786: echo "$as_me: failed program was:" >&5
7787: sed 's/^/| /' conftest.$ac_ext >&5
7788:
1.1.1.22 root 7789: ac_cv_type_short=no
1.1.1.19 root 7790: fi
1.1.1.22 root 7791:
7792: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1.1.19 root 7793: fi
1.1.1.22 root 7794: { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
7795: echo "${ECHO_T}$ac_cv_type_short" >&6; }
1.1.1.19 root 7796:
1.1.1.22 root 7797: # The cast to long int works around a bug in the HP C Compiler
7798: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7799: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7800: # This bug is HP SR number 8606223364.
7801: { echo "$as_me:$LINENO: checking size of short" >&5
7802: echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
1.1.1.19 root 7803: if test "${ac_cv_sizeof_short+set}" = set; then
7804: echo $ECHO_N "(cached) $ECHO_C" >&6
7805: else
7806: if test "$cross_compiling" = yes; then
7807: # Depending upon the size, compute the lo and hi bounds.
7808: cat >conftest.$ac_ext <<_ACEOF
7809: /* confdefs.h. */
7810: _ACEOF
7811: cat confdefs.h >>conftest.$ac_ext
7812: cat >>conftest.$ac_ext <<_ACEOF
7813: /* end confdefs.h. */
7814: $ac_includes_default
1.1.1.22 root 7815: typedef short ac__type_sizeof_;
1.1.1.19 root 7816: int
7817: main ()
7818: {
1.1.1.22 root 7819: static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
1.1.1.19 root 7820: test_array [0] = 0
7821:
7822: ;
7823: return 0;
7824: }
7825: _ACEOF
7826: rm -f conftest.$ac_objext
1.1.1.22 root 7827: if { (ac_try="$ac_compile"
7828: case "(($ac_try" in
7829: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7830: *) ac_try_echo=$ac_try;;
7831: esac
7832: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7833: (eval "$ac_compile") 2>conftest.er1
1.1.1.19 root 7834: ac_status=$?
7835: grep -v '^ *+' conftest.er1 >conftest.err
7836: rm -f conftest.er1
7837: cat conftest.err >&5
7838: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.22 root 7839: (exit $ac_status); } && {
7840: test -z "$ac_c_werror_flag" ||
7841: test ! -s conftest.err
7842: } && test -s conftest.$ac_objext; then
1.1.1.19 root 7843: ac_lo=0 ac_mid=0
7844: while :; do
7845: cat >conftest.$ac_ext <<_ACEOF
7846: /* confdefs.h. */
7847: _ACEOF
7848: cat confdefs.h >>conftest.$ac_ext
7849: cat >>conftest.$ac_ext <<_ACEOF
7850: /* end confdefs.h. */
7851: $ac_includes_default
1.1.1.22 root 7852: typedef short ac__type_sizeof_;
1.1.1.19 root 7853: int
7854: main ()
7855: {
1.1.1.22 root 7856: static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
1.1.1.19 root 7857: test_array [0] = 0
1.1.1.6 root 7858:
1.1.1.19 root 7859: ;
7860: return 0;
7861: }
7862: _ACEOF
7863: rm -f conftest.$ac_objext
1.1.1.22 root 7864: if { (ac_try="$ac_compile"
7865: case "(($ac_try" in
7866: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7867: *) ac_try_echo=$ac_try;;
7868: esac
7869: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7870: (eval "$ac_compile") 2>conftest.er1
1.1.1.19 root 7871: ac_status=$?
7872: grep -v '^ *+' conftest.er1 >conftest.err
7873: rm -f conftest.er1
7874: cat conftest.err >&5
7875: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.22 root 7876: (exit $ac_status); } && {
7877: test -z "$ac_c_werror_flag" ||
7878: test ! -s conftest.err
7879: } && test -s conftest.$ac_objext; then
1.1.1.19 root 7880: ac_hi=$ac_mid; break
7881: else
7882: echo "$as_me: failed program was:" >&5
7883: sed 's/^/| /' conftest.$ac_ext >&5
7884:
1.1.1.22 root 7885: ac_lo=`expr $ac_mid + 1`
7886: if test $ac_lo -le $ac_mid; then
7887: ac_lo= ac_hi=
7888: break
7889: fi
7890: ac_mid=`expr 2 '*' $ac_mid + 1`
1.1.1.6 root 7891: fi
1.1.1.22 root 7892:
7893: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1.1.19 root 7894: done
7895: else
7896: echo "$as_me: failed program was:" >&5
7897: sed 's/^/| /' conftest.$ac_ext >&5
1.1.1.6 root 7898:
1.1.1.22 root 7899: cat >conftest.$ac_ext <<_ACEOF
1.1.1.19 root 7900: /* confdefs.h. */
7901: _ACEOF
7902: cat confdefs.h >>conftest.$ac_ext
7903: cat >>conftest.$ac_ext <<_ACEOF
7904: /* end confdefs.h. */
7905: $ac_includes_default
1.1.1.22 root 7906: typedef short ac__type_sizeof_;
1.1.1.19 root 7907: int
7908: main ()
7909: {
1.1.1.22 root 7910: static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
1.1.1.19 root 7911: test_array [0] = 0
1.1.1.6 root 7912:
1.1.1.19 root 7913: ;
7914: return 0;
7915: }
7916: _ACEOF
7917: rm -f conftest.$ac_objext
1.1.1.22 root 7918: if { (ac_try="$ac_compile"
7919: case "(($ac_try" in
7920: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7921: *) ac_try_echo=$ac_try;;
7922: esac
7923: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7924: (eval "$ac_compile") 2>conftest.er1
1.1.1.19 root 7925: ac_status=$?
7926: grep -v '^ *+' conftest.er1 >conftest.err
7927: rm -f conftest.er1
7928: cat conftest.err >&5
7929: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.22 root 7930: (exit $ac_status); } && {
7931: test -z "$ac_c_werror_flag" ||
7932: test ! -s conftest.err
7933: } && test -s conftest.$ac_objext; then
1.1.1.19 root 7934: ac_hi=-1 ac_mid=-1
7935: while :; do
7936: cat >conftest.$ac_ext <<_ACEOF
7937: /* confdefs.h. */
7938: _ACEOF
7939: cat confdefs.h >>conftest.$ac_ext
7940: cat >>conftest.$ac_ext <<_ACEOF
7941: /* end confdefs.h. */
7942: $ac_includes_default
1.1.1.22 root 7943: typedef short ac__type_sizeof_;
1.1.1.19 root 7944: int
7945: main ()
7946: {
1.1.1.22 root 7947: static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
1.1.1.19 root 7948: test_array [0] = 0
7949:
7950: ;
7951: return 0;
7952: }
7953: _ACEOF
7954: rm -f conftest.$ac_objext
1.1.1.22 root 7955: if { (ac_try="$ac_compile"
7956: case "(($ac_try" in
7957: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7958: *) ac_try_echo=$ac_try;;
7959: esac
7960: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7961: (eval "$ac_compile") 2>conftest.er1
1.1.1.19 root 7962: ac_status=$?
7963: grep -v '^ *+' conftest.er1 >conftest.err
7964: rm -f conftest.er1
7965: cat conftest.err >&5
7966: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.22 root 7967: (exit $ac_status); } && {
7968: test -z "$ac_c_werror_flag" ||
7969: test ! -s conftest.err
7970: } && test -s conftest.$ac_objext; then
1.1.1.19 root 7971: ac_lo=$ac_mid; break
7972: else
7973: echo "$as_me: failed program was:" >&5
7974: sed 's/^/| /' conftest.$ac_ext >&5
7975:
1.1.1.22 root 7976: ac_hi=`expr '(' $ac_mid ')' - 1`
7977: if test $ac_mid -le $ac_hi; then
7978: ac_lo= ac_hi=
7979: break
7980: fi
7981: ac_mid=`expr 2 '*' $ac_mid`
1.1.1.19 root 7982: fi
1.1.1.22 root 7983:
7984: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1.1.19 root 7985: done
1.1.1.6 root 7986: else
1.1.1.19 root 7987: echo "$as_me: failed program was:" >&5
7988: sed 's/^/| /' conftest.$ac_ext >&5
7989:
1.1.1.22 root 7990: ac_lo= ac_hi=
1.1.1.19 root 7991: fi
1.1.1.22 root 7992:
7993: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1.1.19 root 7994: fi
1.1.1.22 root 7995:
7996: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1.1.19 root 7997: # Binary search between lo and hi bounds.
7998: while test "x$ac_lo" != "x$ac_hi"; do
7999: ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8000: cat >conftest.$ac_ext <<_ACEOF
8001: /* confdefs.h. */
8002: _ACEOF
8003: cat confdefs.h >>conftest.$ac_ext
8004: cat >>conftest.$ac_ext <<_ACEOF
8005: /* end confdefs.h. */
8006: $ac_includes_default
1.1.1.22 root 8007: typedef short ac__type_sizeof_;
1.1.1.19 root 8008: int
8009: main ()
8010: {
1.1.1.22 root 8011: static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
1.1.1.19 root 8012: test_array [0] = 0
8013:
8014: ;
8015: return 0;
8016: }
8017: _ACEOF
8018: rm -f conftest.$ac_objext
1.1.1.22 root 8019: if { (ac_try="$ac_compile"
8020: case "(($ac_try" in
8021: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8022: *) ac_try_echo=$ac_try;;
8023: esac
8024: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8025: (eval "$ac_compile") 2>conftest.er1
1.1.1.19 root 8026: ac_status=$?
8027: grep -v '^ *+' conftest.er1 >conftest.err
8028: rm -f conftest.er1
8029: cat conftest.err >&5
8030: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.22 root 8031: (exit $ac_status); } && {
8032: test -z "$ac_c_werror_flag" ||
8033: test ! -s conftest.err
8034: } && test -s conftest.$ac_objext; then
1.1.1.19 root 8035: ac_hi=$ac_mid
1.1.1.6 root 8036: else
1.1.1.19 root 8037: echo "$as_me: failed program was:" >&5
8038: sed 's/^/| /' conftest.$ac_ext >&5
8039:
1.1.1.22 root 8040: ac_lo=`expr '(' $ac_mid ')' + 1`
1.1.1.19 root 8041: fi
1.1.1.22 root 8042:
8043: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1.1.19 root 8044: done
8045: case $ac_lo in
8046: ?*) ac_cv_sizeof_short=$ac_lo;;
1.1.1.22 root 8047: '') if test "$ac_cv_type_short" = yes; then
8048: { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
1.1.1.19 root 8049: See \`config.log' for more details." >&5
1.1.1.22 root 8050: echo "$as_me: error: cannot compute sizeof (short)
1.1.1.19 root 8051: See \`config.log' for more details." >&2;}
1.1.1.22 root 8052: { (exit 77); exit 77; }; }
8053: else
8054: ac_cv_sizeof_short=0
8055: fi ;;
1.1.1.19 root 8056: esac
8057: else
8058: cat >conftest.$ac_ext <<_ACEOF
8059: /* confdefs.h. */
8060: _ACEOF
8061: cat confdefs.h >>conftest.$ac_ext
8062: cat >>conftest.$ac_ext <<_ACEOF
8063: /* end confdefs.h. */
8064: $ac_includes_default
1.1.1.22 root 8065: typedef short ac__type_sizeof_;
8066: static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
8067: static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
1.1.1.6 root 8068: #include <stdio.h>
1.1.1.19 root 8069: #include <stdlib.h>
8070: int
8071: main ()
1.1.1.6 root 8072: {
1.1.1.19 root 8073:
8074: FILE *f = fopen ("conftest.val", "w");
8075: if (! f)
1.1.1.22 root 8076: return 1;
8077: if (((long int) (sizeof (ac__type_sizeof_))) < 0)
1.1.1.19 root 8078: {
1.1.1.22 root 8079: long int i = longval ();
8080: if (i != ((long int) (sizeof (ac__type_sizeof_))))
8081: return 1;
1.1.1.19 root 8082: fprintf (f, "%ld\n", i);
8083: }
8084: else
8085: {
1.1.1.22 root 8086: unsigned long int i = ulongval ();
8087: if (i != ((long int) (sizeof (ac__type_sizeof_))))
8088: return 1;
1.1.1.19 root 8089: fprintf (f, "%lu\n", i);
8090: }
1.1.1.22 root 8091: return ferror (f) || fclose (f) != 0;
1.1.1.19 root 8092:
8093: ;
8094: return 0;
1.1.1.6 root 8095: }
1.1.1.19 root 8096: _ACEOF
8097: rm -f conftest$ac_exeext
1.1.1.22 root 8098: if { (ac_try="$ac_link"
8099: case "(($ac_try" in
8100: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8101: *) ac_try_echo=$ac_try;;
8102: esac
8103: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8104: (eval "$ac_link") 2>&5
1.1.1.19 root 8105: ac_status=$?
8106: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8107: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
1.1.1.22 root 8108: { (case "(($ac_try" in
8109: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8110: *) ac_try_echo=$ac_try;;
8111: esac
8112: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8113: (eval "$ac_try") 2>&5
1.1.1.19 root 8114: ac_status=$?
8115: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8116: (exit $ac_status); }; }; then
8117: ac_cv_sizeof_short=`cat conftest.val`
8118: else
8119: echo "$as_me: program exited with status $ac_status" >&5
8120: echo "$as_me: failed program was:" >&5
8121: sed 's/^/| /' conftest.$ac_ext >&5
8122:
8123: ( exit $ac_status )
1.1.1.22 root 8124: if test "$ac_cv_type_short" = yes; then
8125: { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
1.1.1.19 root 8126: See \`config.log' for more details." >&5
1.1.1.22 root 8127: echo "$as_me: error: cannot compute sizeof (short)
1.1.1.19 root 8128: See \`config.log' for more details." >&2;}
1.1.1.22 root 8129: { (exit 77); exit 77; }; }
8130: else
8131: ac_cv_sizeof_short=0
8132: fi
1.1.1.19 root 8133: fi
1.1.1.22 root 8134: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.1.1.19 root 8135: fi
8136: rm -f conftest.val
1.1 root 8137: fi
1.1.1.22 root 8138: { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
8139: echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
8140:
8141:
8142:
1.1.1.19 root 8143: cat >>confdefs.h <<_ACEOF
8144: #define SIZEOF_SHORT $ac_cv_sizeof_short
8145: _ACEOF
1.1.1.4 root 8146:
1.1.1.19 root 8147:
1.1.1.22 root 8148: { echo "$as_me:$LINENO: checking for int" >&5
8149: echo $ECHO_N "checking for int... $ECHO_C" >&6; }
1.1.1.19 root 8150: if test "${ac_cv_type_int+set}" = set; then
8151: echo $ECHO_N "(cached) $ECHO_C" >&6
8152: else
8153: cat >conftest.$ac_ext <<_ACEOF
8154: /* confdefs.h. */
8155: _ACEOF
8156: cat confdefs.h >>conftest.$ac_ext
8157: cat >>conftest.$ac_ext <<_ACEOF
8158: /* end confdefs.h. */
8159: $ac_includes_default
1.1.1.22 root 8160: typedef int ac__type_new_;
1.1.1.19 root 8161: int
8162: main ()
8163: {
1.1.1.22 root 8164: if ((ac__type_new_ *) 0)
1.1.1.19 root 8165: return 0;
1.1.1.22 root 8166: if (sizeof (ac__type_new_))
1.1.1.19 root 8167: return 0;
8168: ;
8169: return 0;
8170: }
8171: _ACEOF
8172: rm -f conftest.$ac_objext
1.1.1.22 root 8173: if { (ac_try="$ac_compile"
8174: case "(($ac_try" in
8175: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8176: *) ac_try_echo=$ac_try;;
8177: esac
8178: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8179: (eval "$ac_compile") 2>conftest.er1
1.1.1.19 root 8180: ac_status=$?
8181: grep -v '^ *+' conftest.er1 >conftest.err
8182: rm -f conftest.er1
8183: cat conftest.err >&5
8184: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.22 root 8185: (exit $ac_status); } && {
8186: test -z "$ac_c_werror_flag" ||
8187: test ! -s conftest.err
8188: } && test -s conftest.$ac_objext; then
1.1.1.19 root 8189: ac_cv_type_int=yes
8190: else
8191: echo "$as_me: failed program was:" >&5
8192: sed 's/^/| /' conftest.$ac_ext >&5
8193:
1.1.1.22 root 8194: ac_cv_type_int=no
1.1.1.19 root 8195: fi
1.1.1.22 root 8196:
8197: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1.1.19 root 8198: fi
1.1.1.22 root 8199: { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
8200: echo "${ECHO_T}$ac_cv_type_int" >&6; }
1.1.1.19 root 8201:
1.1.1.22 root 8202: # The cast to long int works around a bug in the HP C Compiler
8203: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8204: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8205: # This bug is HP SR number 8606223364.
8206: { echo "$as_me:$LINENO: checking size of int" >&5
8207: echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
1.1.1.19 root 8208: if test "${ac_cv_sizeof_int+set}" = set; then
8209: echo $ECHO_N "(cached) $ECHO_C" >&6
8210: else
8211: if test "$cross_compiling" = yes; then
8212: # Depending upon the size, compute the lo and hi bounds.
8213: cat >conftest.$ac_ext <<_ACEOF
8214: /* confdefs.h. */
8215: _ACEOF
8216: cat confdefs.h >>conftest.$ac_ext
8217: cat >>conftest.$ac_ext <<_ACEOF
8218: /* end confdefs.h. */
8219: $ac_includes_default
1.1.1.22 root 8220: typedef int ac__type_sizeof_;
1.1.1.19 root 8221: int
8222: main ()
8223: {
1.1.1.22 root 8224: static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
1.1.1.19 root 8225: test_array [0] = 0
8226:
8227: ;
8228: return 0;
8229: }
8230: _ACEOF
8231: rm -f conftest.$ac_objext
1.1.1.22 root 8232: if { (ac_try="$ac_compile"
8233: case "(($ac_try" in
8234: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8235: *) ac_try_echo=$ac_try;;
8236: esac
8237: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8238: (eval "$ac_compile") 2>conftest.er1
1.1.1.19 root 8239: ac_status=$?
8240: grep -v '^ *+' conftest.er1 >conftest.err
8241: rm -f conftest.er1
8242: cat conftest.err >&5
8243: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.22 root 8244: (exit $ac_status); } && {
8245: test -z "$ac_c_werror_flag" ||
8246: test ! -s conftest.err
8247: } && test -s conftest.$ac_objext; then
1.1.1.19 root 8248: ac_lo=0 ac_mid=0
8249: while :; do
8250: cat >conftest.$ac_ext <<_ACEOF
8251: /* confdefs.h. */
8252: _ACEOF
8253: cat confdefs.h >>conftest.$ac_ext
8254: cat >>conftest.$ac_ext <<_ACEOF
8255: /* end confdefs.h. */
8256: $ac_includes_default
1.1.1.22 root 8257: typedef int ac__type_sizeof_;
1.1.1.19 root 8258: int
8259: main ()
8260: {
1.1.1.22 root 8261: static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
1.1.1.19 root 8262: test_array [0] = 0
8263:
8264: ;
8265: return 0;
8266: }
8267: _ACEOF
8268: rm -f conftest.$ac_objext
1.1.1.22 root 8269: if { (ac_try="$ac_compile"
8270: case "(($ac_try" in
8271: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8272: *) ac_try_echo=$ac_try;;
8273: esac
8274: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8275: (eval "$ac_compile") 2>conftest.er1
1.1.1.19 root 8276: ac_status=$?
8277: grep -v '^ *+' conftest.er1 >conftest.err
8278: rm -f conftest.er1
8279: cat conftest.err >&5
8280: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.22 root 8281: (exit $ac_status); } && {
8282: test -z "$ac_c_werror_flag" ||
8283: test ! -s conftest.err
8284: } && test -s conftest.$ac_objext; then
1.1.1.19 root 8285: ac_hi=$ac_mid; break
8286: else
8287: echo "$as_me: failed program was:" >&5
8288: sed 's/^/| /' conftest.$ac_ext >&5
8289:
1.1.1.22 root 8290: ac_lo=`expr $ac_mid + 1`
8291: if test $ac_lo -le $ac_mid; then
8292: ac_lo= ac_hi=
8293: break
8294: fi
8295: ac_mid=`expr 2 '*' $ac_mid + 1`
1.1.1.4 root 8296: fi
1.1.1.22 root 8297:
8298: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1.1.19 root 8299: done
8300: else
8301: echo "$as_me: failed program was:" >&5
8302: sed 's/^/| /' conftest.$ac_ext >&5
1.1 root 8303:
1.1.1.22 root 8304: cat >conftest.$ac_ext <<_ACEOF
1.1.1.19 root 8305: /* confdefs.h. */
8306: _ACEOF
8307: cat confdefs.h >>conftest.$ac_ext
8308: cat >>conftest.$ac_ext <<_ACEOF
8309: /* end confdefs.h. */
8310: $ac_includes_default
1.1.1.22 root 8311: typedef int ac__type_sizeof_;
1.1.1.19 root 8312: int
8313: main ()
8314: {
1.1.1.22 root 8315: static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
1.1.1.19 root 8316: test_array [0] = 0
1.1 root 8317:
1.1.1.19 root 8318: ;
8319: return 0;
8320: }
8321: _ACEOF
8322: rm -f conftest.$ac_objext
1.1.1.22 root 8323: if { (ac_try="$ac_compile"
8324: case "(($ac_try" in
8325: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8326: *) ac_try_echo=$ac_try;;
8327: esac
8328: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8329: (eval "$ac_compile") 2>conftest.er1
1.1.1.19 root 8330: ac_status=$?
8331: grep -v '^ *+' conftest.er1 >conftest.err
8332: rm -f conftest.er1
8333: cat conftest.err >&5
8334: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.22 root 8335: (exit $ac_status); } && {
8336: test -z "$ac_c_werror_flag" ||
8337: test ! -s conftest.err
8338: } && test -s conftest.$ac_objext; then
1.1.1.19 root 8339: ac_hi=-1 ac_mid=-1
8340: while :; do
8341: cat >conftest.$ac_ext <<_ACEOF
8342: /* confdefs.h. */
8343: _ACEOF
8344: cat confdefs.h >>conftest.$ac_ext
8345: cat >>conftest.$ac_ext <<_ACEOF
8346: /* end confdefs.h. */
8347: $ac_includes_default
1.1.1.22 root 8348: typedef int ac__type_sizeof_;
1.1.1.19 root 8349: int
8350: main ()
8351: {
1.1.1.22 root 8352: static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
1.1.1.19 root 8353: test_array [0] = 0
8354:
8355: ;
8356: return 0;
8357: }
8358: _ACEOF
8359: rm -f conftest.$ac_objext
1.1.1.22 root 8360: if { (ac_try="$ac_compile"
8361: case "(($ac_try" in
8362: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8363: *) ac_try_echo=$ac_try;;
8364: esac
8365: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8366: (eval "$ac_compile") 2>conftest.er1
1.1.1.19 root 8367: ac_status=$?
8368: grep -v '^ *+' conftest.er1 >conftest.err
8369: rm -f conftest.er1
8370: cat conftest.err >&5
8371: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.22 root 8372: (exit $ac_status); } && {
8373: test -z "$ac_c_werror_flag" ||
8374: test ! -s conftest.err
8375: } && test -s conftest.$ac_objext; then
1.1.1.19 root 8376: ac_lo=$ac_mid; break
8377: else
8378: echo "$as_me: failed program was:" >&5
8379: sed 's/^/| /' conftest.$ac_ext >&5
8380:
1.1.1.22 root 8381: ac_hi=`expr '(' $ac_mid ')' - 1`
8382: if test $ac_mid -le $ac_hi; then
8383: ac_lo= ac_hi=
8384: break
8385: fi
8386: ac_mid=`expr 2 '*' $ac_mid`
1.1.1.19 root 8387: fi
1.1.1.22 root 8388:
8389: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1.1.19 root 8390: done
1.1 root 8391: else
1.1.1.19 root 8392: echo "$as_me: failed program was:" >&5
8393: sed 's/^/| /' conftest.$ac_ext >&5
8394:
1.1.1.22 root 8395: ac_lo= ac_hi=
1.1.1.19 root 8396: fi
1.1.1.22 root 8397:
8398: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1.1.19 root 8399: fi
1.1.1.22 root 8400:
8401: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1.1.19 root 8402: # Binary search between lo and hi bounds.
8403: while test "x$ac_lo" != "x$ac_hi"; do
8404: ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8405: cat >conftest.$ac_ext <<_ACEOF
8406: /* confdefs.h. */
8407: _ACEOF
8408: cat confdefs.h >>conftest.$ac_ext
8409: cat >>conftest.$ac_ext <<_ACEOF
8410: /* end confdefs.h. */
8411: $ac_includes_default
1.1.1.22 root 8412: typedef int ac__type_sizeof_;
1.1.1.19 root 8413: int
8414: main ()
8415: {
1.1.1.22 root 8416: static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
1.1.1.19 root 8417: test_array [0] = 0
8418:
8419: ;
8420: return 0;
8421: }
8422: _ACEOF
8423: rm -f conftest.$ac_objext
1.1.1.22 root 8424: if { (ac_try="$ac_compile"
8425: case "(($ac_try" in
8426: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8427: *) ac_try_echo=$ac_try;;
8428: esac
8429: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8430: (eval "$ac_compile") 2>conftest.er1
1.1.1.19 root 8431: ac_status=$?
8432: grep -v '^ *+' conftest.er1 >conftest.err
8433: rm -f conftest.er1
8434: cat conftest.err >&5
8435: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.22 root 8436: (exit $ac_status); } && {
8437: test -z "$ac_c_werror_flag" ||
8438: test ! -s conftest.err
8439: } && test -s conftest.$ac_objext; then
1.1.1.19 root 8440: ac_hi=$ac_mid
1.1 root 8441: else
1.1.1.19 root 8442: echo "$as_me: failed program was:" >&5
8443: sed 's/^/| /' conftest.$ac_ext >&5
8444:
1.1.1.22 root 8445: ac_lo=`expr '(' $ac_mid ')' + 1`
1.1.1.19 root 8446: fi
1.1.1.22 root 8447:
8448: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1.1.19 root 8449: done
8450: case $ac_lo in
8451: ?*) ac_cv_sizeof_int=$ac_lo;;
1.1.1.22 root 8452: '') if test "$ac_cv_type_int" = yes; then
8453: { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
1.1.1.19 root 8454: See \`config.log' for more details." >&5
1.1.1.22 root 8455: echo "$as_me: error: cannot compute sizeof (int)
1.1.1.19 root 8456: See \`config.log' for more details." >&2;}
1.1.1.22 root 8457: { (exit 77); exit 77; }; }
8458: else
8459: ac_cv_sizeof_int=0
8460: fi ;;
1.1.1.19 root 8461: esac
8462: else
8463: cat >conftest.$ac_ext <<_ACEOF
8464: /* confdefs.h. */
8465: _ACEOF
8466: cat confdefs.h >>conftest.$ac_ext
8467: cat >>conftest.$ac_ext <<_ACEOF
8468: /* end confdefs.h. */
8469: $ac_includes_default
1.1.1.22 root 8470: typedef int ac__type_sizeof_;
8471: static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
8472: static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
1.1 root 8473: #include <stdio.h>
1.1.1.19 root 8474: #include <stdlib.h>
8475: int
8476: main ()
1.1 root 8477: {
1.1.1.19 root 8478:
8479: FILE *f = fopen ("conftest.val", "w");
8480: if (! f)
1.1.1.22 root 8481: return 1;
8482: if (((long int) (sizeof (ac__type_sizeof_))) < 0)
1.1.1.19 root 8483: {
1.1.1.22 root 8484: long int i = longval ();
8485: if (i != ((long int) (sizeof (ac__type_sizeof_))))
8486: return 1;
1.1.1.19 root 8487: fprintf (f, "%ld\n", i);
8488: }
8489: else
8490: {
1.1.1.22 root 8491: unsigned long int i = ulongval ();
8492: if (i != ((long int) (sizeof (ac__type_sizeof_))))
8493: return 1;
1.1.1.19 root 8494: fprintf (f, "%lu\n", i);
8495: }
1.1.1.22 root 8496: return ferror (f) || fclose (f) != 0;
1.1.1.19 root 8497:
8498: ;
8499: return 0;
1.1 root 8500: }
1.1.1.19 root 8501: _ACEOF
8502: rm -f conftest$ac_exeext
1.1.1.22 root 8503: if { (ac_try="$ac_link"
8504: case "(($ac_try" in
8505: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8506: *) ac_try_echo=$ac_try;;
8507: esac
8508: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8509: (eval "$ac_link") 2>&5
1.1.1.19 root 8510: ac_status=$?
8511: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8512: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
1.1.1.22 root 8513: { (case "(($ac_try" in
8514: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8515: *) ac_try_echo=$ac_try;;
8516: esac
8517: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8518: (eval "$ac_try") 2>&5
1.1.1.19 root 8519: ac_status=$?
8520: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8521: (exit $ac_status); }; }; then
8522: ac_cv_sizeof_int=`cat conftest.val`
8523: else
8524: echo "$as_me: program exited with status $ac_status" >&5
8525: echo "$as_me: failed program was:" >&5
8526: sed 's/^/| /' conftest.$ac_ext >&5
8527:
8528: ( exit $ac_status )
1.1.1.22 root 8529: if test "$ac_cv_type_int" = yes; then
8530: { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
1.1.1.19 root 8531: See \`config.log' for more details." >&5
1.1.1.22 root 8532: echo "$as_me: error: cannot compute sizeof (int)
1.1.1.19 root 8533: See \`config.log' for more details." >&2;}
1.1.1.22 root 8534: { (exit 77); exit 77; }; }
8535: else
8536: ac_cv_sizeof_int=0
8537: fi
1.1.1.19 root 8538: fi
1.1.1.22 root 8539: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.1.1.19 root 8540: fi
8541: rm -f conftest.val
1.1 root 8542: fi
1.1.1.22 root 8543: { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
8544: echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
8545:
8546:
8547:
1.1.1.19 root 8548: cat >>confdefs.h <<_ACEOF
8549: #define SIZEOF_INT $ac_cv_sizeof_int
8550: _ACEOF
8551:
8552:
1.1.1.22 root 8553: { echo "$as_me:$LINENO: checking for long" >&5
8554: echo $ECHO_N "checking for long... $ECHO_C" >&6; }
1.1.1.19 root 8555: if test "${ac_cv_type_long+set}" = set; then
8556: echo $ECHO_N "(cached) $ECHO_C" >&6
8557: else
8558: cat >conftest.$ac_ext <<_ACEOF
8559: /* confdefs.h. */
8560: _ACEOF
8561: cat confdefs.h >>conftest.$ac_ext
8562: cat >>conftest.$ac_ext <<_ACEOF
8563: /* end confdefs.h. */
8564: $ac_includes_default
1.1.1.22 root 8565: typedef long ac__type_new_;
1.1.1.19 root 8566: int
8567: main ()
8568: {
1.1.1.22 root 8569: if ((ac__type_new_ *) 0)
1.1.1.19 root 8570: return 0;
1.1.1.22 root 8571: if (sizeof (ac__type_new_))
1.1.1.19 root 8572: return 0;
8573: ;
8574: return 0;
8575: }
8576: _ACEOF
8577: rm -f conftest.$ac_objext
1.1.1.22 root 8578: if { (ac_try="$ac_compile"
8579: case "(($ac_try" in
8580: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8581: *) ac_try_echo=$ac_try;;
8582: esac
8583: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8584: (eval "$ac_compile") 2>conftest.er1
1.1.1.19 root 8585: ac_status=$?
8586: grep -v '^ *+' conftest.er1 >conftest.err
8587: rm -f conftest.er1
8588: cat conftest.err >&5
8589: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.22 root 8590: (exit $ac_status); } && {
8591: test -z "$ac_c_werror_flag" ||
8592: test ! -s conftest.err
8593: } && test -s conftest.$ac_objext; then
1.1.1.19 root 8594: ac_cv_type_long=yes
8595: else
8596: echo "$as_me: failed program was:" >&5
8597: sed 's/^/| /' conftest.$ac_ext >&5
8598:
1.1.1.22 root 8599: ac_cv_type_long=no
1.1.1.19 root 8600: fi
1.1.1.22 root 8601:
8602: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1.1.19 root 8603: fi
1.1.1.22 root 8604: { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
8605: echo "${ECHO_T}$ac_cv_type_long" >&6; }
1.1.1.19 root 8606:
1.1.1.22 root 8607: # The cast to long int works around a bug in the HP C Compiler
8608: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8609: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8610: # This bug is HP SR number 8606223364.
8611: { echo "$as_me:$LINENO: checking size of long" >&5
8612: echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
1.1.1.19 root 8613: if test "${ac_cv_sizeof_long+set}" = set; then
8614: echo $ECHO_N "(cached) $ECHO_C" >&6
8615: else
8616: if test "$cross_compiling" = yes; then
8617: # Depending upon the size, compute the lo and hi bounds.
8618: cat >conftest.$ac_ext <<_ACEOF
8619: /* confdefs.h. */
8620: _ACEOF
8621: cat confdefs.h >>conftest.$ac_ext
8622: cat >>conftest.$ac_ext <<_ACEOF
8623: /* end confdefs.h. */
8624: $ac_includes_default
1.1.1.22 root 8625: typedef long ac__type_sizeof_;
1.1.1.19 root 8626: int
8627: main ()
8628: {
1.1.1.22 root 8629: static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
1.1.1.19 root 8630: test_array [0] = 0
1.1.1.4 root 8631:
1.1.1.19 root 8632: ;
8633: return 0;
8634: }
8635: _ACEOF
8636: rm -f conftest.$ac_objext
1.1.1.22 root 8637: if { (ac_try="$ac_compile"
8638: case "(($ac_try" in
8639: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8640: *) ac_try_echo=$ac_try;;
8641: esac
8642: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8643: (eval "$ac_compile") 2>conftest.er1
1.1.1.19 root 8644: ac_status=$?
8645: grep -v '^ *+' conftest.er1 >conftest.err
8646: rm -f conftest.er1
8647: cat conftest.err >&5
8648: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.22 root 8649: (exit $ac_status); } && {
8650: test -z "$ac_c_werror_flag" ||
8651: test ! -s conftest.err
8652: } && test -s conftest.$ac_objext; then
1.1.1.19 root 8653: ac_lo=0 ac_mid=0
8654: while :; do
8655: cat >conftest.$ac_ext <<_ACEOF
8656: /* confdefs.h. */
8657: _ACEOF
8658: cat confdefs.h >>conftest.$ac_ext
8659: cat >>conftest.$ac_ext <<_ACEOF
8660: /* end confdefs.h. */
8661: $ac_includes_default
1.1.1.22 root 8662: typedef long ac__type_sizeof_;
1.1.1.19 root 8663: int
8664: main ()
8665: {
1.1.1.22 root 8666: static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
1.1.1.19 root 8667: test_array [0] = 0
8668:
8669: ;
8670: return 0;
8671: }
8672: _ACEOF
8673: rm -f conftest.$ac_objext
1.1.1.22 root 8674: if { (ac_try="$ac_compile"
8675: case "(($ac_try" in
8676: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8677: *) ac_try_echo=$ac_try;;
8678: esac
8679: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8680: (eval "$ac_compile") 2>conftest.er1
1.1.1.19 root 8681: ac_status=$?
8682: grep -v '^ *+' conftest.er1 >conftest.err
8683: rm -f conftest.er1
8684: cat conftest.err >&5
8685: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.22 root 8686: (exit $ac_status); } && {
8687: test -z "$ac_c_werror_flag" ||
8688: test ! -s conftest.err
8689: } && test -s conftest.$ac_objext; then
1.1.1.19 root 8690: ac_hi=$ac_mid; break
8691: else
8692: echo "$as_me: failed program was:" >&5
8693: sed 's/^/| /' conftest.$ac_ext >&5
8694:
1.1.1.22 root 8695: ac_lo=`expr $ac_mid + 1`
8696: if test $ac_lo -le $ac_mid; then
8697: ac_lo= ac_hi=
8698: break
8699: fi
8700: ac_mid=`expr 2 '*' $ac_mid + 1`
1.1.1.4 root 8701: fi
1.1.1.22 root 8702:
8703: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1.1.19 root 8704: done
8705: else
8706: echo "$as_me: failed program was:" >&5
8707: sed 's/^/| /' conftest.$ac_ext >&5
1.1 root 8708:
1.1.1.22 root 8709: cat >conftest.$ac_ext <<_ACEOF
1.1.1.19 root 8710: /* confdefs.h. */
8711: _ACEOF
8712: cat confdefs.h >>conftest.$ac_ext
8713: cat >>conftest.$ac_ext <<_ACEOF
8714: /* end confdefs.h. */
8715: $ac_includes_default
1.1.1.22 root 8716: typedef long ac__type_sizeof_;
1.1.1.19 root 8717: int
8718: main ()
8719: {
1.1.1.22 root 8720: static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
1.1.1.19 root 8721: test_array [0] = 0
1.1 root 8722:
1.1.1.19 root 8723: ;
8724: return 0;
8725: }
8726: _ACEOF
8727: rm -f conftest.$ac_objext
1.1.1.22 root 8728: if { (ac_try="$ac_compile"
8729: case "(($ac_try" in
8730: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8731: *) ac_try_echo=$ac_try;;
8732: esac
8733: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8734: (eval "$ac_compile") 2>conftest.er1
1.1.1.19 root 8735: ac_status=$?
8736: grep -v '^ *+' conftest.er1 >conftest.err
8737: rm -f conftest.er1
8738: cat conftest.err >&5
8739: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.22 root 8740: (exit $ac_status); } && {
8741: test -z "$ac_c_werror_flag" ||
8742: test ! -s conftest.err
8743: } && test -s conftest.$ac_objext; then
1.1.1.19 root 8744: ac_hi=-1 ac_mid=-1
8745: while :; do
8746: cat >conftest.$ac_ext <<_ACEOF
8747: /* confdefs.h. */
8748: _ACEOF
8749: cat confdefs.h >>conftest.$ac_ext
8750: cat >>conftest.$ac_ext <<_ACEOF
8751: /* end confdefs.h. */
8752: $ac_includes_default
1.1.1.22 root 8753: typedef long ac__type_sizeof_;
1.1.1.19 root 8754: int
8755: main ()
8756: {
1.1.1.22 root 8757: static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
1.1.1.19 root 8758: test_array [0] = 0
8759:
8760: ;
8761: return 0;
8762: }
8763: _ACEOF
8764: rm -f conftest.$ac_objext
1.1.1.22 root 8765: if { (ac_try="$ac_compile"
8766: case "(($ac_try" in
8767: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8768: *) ac_try_echo=$ac_try;;
8769: esac
8770: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8771: (eval "$ac_compile") 2>conftest.er1
1.1.1.19 root 8772: ac_status=$?
8773: grep -v '^ *+' conftest.er1 >conftest.err
8774: rm -f conftest.er1
8775: cat conftest.err >&5
8776: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.22 root 8777: (exit $ac_status); } && {
8778: test -z "$ac_c_werror_flag" ||
8779: test ! -s conftest.err
8780: } && test -s conftest.$ac_objext; then
1.1.1.19 root 8781: ac_lo=$ac_mid; break
8782: else
8783: echo "$as_me: failed program was:" >&5
8784: sed 's/^/| /' conftest.$ac_ext >&5
8785:
1.1.1.22 root 8786: ac_hi=`expr '(' $ac_mid ')' - 1`
8787: if test $ac_mid -le $ac_hi; then
8788: ac_lo= ac_hi=
8789: break
8790: fi
8791: ac_mid=`expr 2 '*' $ac_mid`
1.1.1.19 root 8792: fi
1.1.1.22 root 8793:
8794: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1.1.19 root 8795: done
1.1 root 8796: else
1.1.1.19 root 8797: echo "$as_me: failed program was:" >&5
8798: sed 's/^/| /' conftest.$ac_ext >&5
8799:
1.1.1.22 root 8800: ac_lo= ac_hi=
1.1.1.19 root 8801: fi
1.1.1.22 root 8802:
8803: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1.1.19 root 8804: fi
1.1.1.22 root 8805:
8806: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1.1.19 root 8807: # Binary search between lo and hi bounds.
8808: while test "x$ac_lo" != "x$ac_hi"; do
8809: ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8810: cat >conftest.$ac_ext <<_ACEOF
8811: /* confdefs.h. */
8812: _ACEOF
8813: cat confdefs.h >>conftest.$ac_ext
8814: cat >>conftest.$ac_ext <<_ACEOF
8815: /* end confdefs.h. */
8816: $ac_includes_default
1.1.1.22 root 8817: typedef long ac__type_sizeof_;
1.1.1.19 root 8818: int
8819: main ()
8820: {
1.1.1.22 root 8821: static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
1.1.1.19 root 8822: test_array [0] = 0
8823:
8824: ;
8825: return 0;
8826: }
8827: _ACEOF
8828: rm -f conftest.$ac_objext
1.1.1.22 root 8829: if { (ac_try="$ac_compile"
8830: case "(($ac_try" in
8831: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8832: *) ac_try_echo=$ac_try;;
8833: esac
8834: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8835: (eval "$ac_compile") 2>conftest.er1
1.1.1.19 root 8836: ac_status=$?
8837: grep -v '^ *+' conftest.er1 >conftest.err
8838: rm -f conftest.er1
8839: cat conftest.err >&5
8840: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.22 root 8841: (exit $ac_status); } && {
8842: test -z "$ac_c_werror_flag" ||
8843: test ! -s conftest.err
8844: } && test -s conftest.$ac_objext; then
1.1.1.19 root 8845: ac_hi=$ac_mid
1.1 root 8846: else
1.1.1.19 root 8847: echo "$as_me: failed program was:" >&5
8848: sed 's/^/| /' conftest.$ac_ext >&5
8849:
1.1.1.22 root 8850: ac_lo=`expr '(' $ac_mid ')' + 1`
1.1.1.19 root 8851: fi
1.1.1.22 root 8852:
8853: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1.1.19 root 8854: done
8855: case $ac_lo in
8856: ?*) ac_cv_sizeof_long=$ac_lo;;
1.1.1.22 root 8857: '') if test "$ac_cv_type_long" = yes; then
8858: { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
1.1.1.19 root 8859: See \`config.log' for more details." >&5
1.1.1.22 root 8860: echo "$as_me: error: cannot compute sizeof (long)
1.1.1.19 root 8861: See \`config.log' for more details." >&2;}
1.1.1.22 root 8862: { (exit 77); exit 77; }; }
8863: else
8864: ac_cv_sizeof_long=0
8865: fi ;;
1.1.1.19 root 8866: esac
8867: else
8868: cat >conftest.$ac_ext <<_ACEOF
8869: /* confdefs.h. */
8870: _ACEOF
8871: cat confdefs.h >>conftest.$ac_ext
8872: cat >>conftest.$ac_ext <<_ACEOF
8873: /* end confdefs.h. */
8874: $ac_includes_default
1.1.1.22 root 8875: typedef long ac__type_sizeof_;
8876: static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
8877: static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
1.1 root 8878: #include <stdio.h>
1.1.1.19 root 8879: #include <stdlib.h>
8880: int
8881: main ()
1.1 root 8882: {
1.1.1.19 root 8883:
8884: FILE *f = fopen ("conftest.val", "w");
8885: if (! f)
1.1.1.22 root 8886: return 1;
8887: if (((long int) (sizeof (ac__type_sizeof_))) < 0)
1.1.1.19 root 8888: {
1.1.1.22 root 8889: long int i = longval ();
8890: if (i != ((long int) (sizeof (ac__type_sizeof_))))
8891: return 1;
1.1.1.19 root 8892: fprintf (f, "%ld\n", i);
8893: }
8894: else
8895: {
1.1.1.22 root 8896: unsigned long int i = ulongval ();
8897: if (i != ((long int) (sizeof (ac__type_sizeof_))))
8898: return 1;
1.1.1.19 root 8899: fprintf (f, "%lu\n", i);
8900: }
1.1.1.22 root 8901: return ferror (f) || fclose (f) != 0;
1.1.1.19 root 8902:
8903: ;
8904: return 0;
1.1 root 8905: }
1.1.1.19 root 8906: _ACEOF
8907: rm -f conftest$ac_exeext
1.1.1.22 root 8908: if { (ac_try="$ac_link"
8909: case "(($ac_try" in
8910: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8911: *) ac_try_echo=$ac_try;;
8912: esac
8913: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8914: (eval "$ac_link") 2>&5
1.1.1.19 root 8915: ac_status=$?
8916: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8917: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
1.1.1.22 root 8918: { (case "(($ac_try" in
8919: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8920: *) ac_try_echo=$ac_try;;
8921: esac
8922: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8923: (eval "$ac_try") 2>&5
1.1.1.19 root 8924: ac_status=$?
8925: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8926: (exit $ac_status); }; }; then
8927: ac_cv_sizeof_long=`cat conftest.val`
8928: else
8929: echo "$as_me: program exited with status $ac_status" >&5
8930: echo "$as_me: failed program was:" >&5
8931: sed 's/^/| /' conftest.$ac_ext >&5
8932:
8933: ( exit $ac_status )
1.1.1.22 root 8934: if test "$ac_cv_type_long" = yes; then
8935: { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
1.1.1.19 root 8936: See \`config.log' for more details." >&5
1.1.1.22 root 8937: echo "$as_me: error: cannot compute sizeof (long)
1.1.1.19 root 8938: See \`config.log' for more details." >&2;}
1.1.1.22 root 8939: { (exit 77); exit 77; }; }
8940: else
8941: ac_cv_sizeof_long=0
8942: fi
1.1.1.19 root 8943: fi
1.1.1.22 root 8944: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.1.1.19 root 8945: fi
8946: rm -f conftest.val
1.1 root 8947: fi
1.1.1.22 root 8948: { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
8949: echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
8950:
8951:
8952:
1.1.1.19 root 8953: cat >>confdefs.h <<_ACEOF
8954: #define SIZEOF_LONG $ac_cv_sizeof_long
8955: _ACEOF
1.1.1.4 root 8956:
1.1.1.19 root 8957:
1.1.1.23 root 8958: { echo "$as_me:$LINENO: checking for void *" >&5
8959: echo $ECHO_N "checking for void *... $ECHO_C" >&6; }
8960: if test "${ac_cv_type_void_p+set}" = set; then
1.1.1.19 root 8961: echo $ECHO_N "(cached) $ECHO_C" >&6
8962: else
8963: cat >conftest.$ac_ext <<_ACEOF
8964: /* confdefs.h. */
8965: _ACEOF
8966: cat confdefs.h >>conftest.$ac_ext
8967: cat >>conftest.$ac_ext <<_ACEOF
8968: /* end confdefs.h. */
8969: $ac_includes_default
1.1.1.23 root 8970: typedef void * ac__type_new_;
1.1.1.19 root 8971: int
8972: main ()
8973: {
1.1.1.22 root 8974: if ((ac__type_new_ *) 0)
1.1.1.19 root 8975: return 0;
1.1.1.22 root 8976: if (sizeof (ac__type_new_))
1.1.1.19 root 8977: return 0;
8978: ;
8979: return 0;
8980: }
8981: _ACEOF
8982: rm -f conftest.$ac_objext
1.1.1.22 root 8983: if { (ac_try="$ac_compile"
8984: case "(($ac_try" in
8985: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8986: *) ac_try_echo=$ac_try;;
8987: esac
8988: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8989: (eval "$ac_compile") 2>conftest.er1
1.1.1.19 root 8990: ac_status=$?
8991: grep -v '^ *+' conftest.er1 >conftest.err
8992: rm -f conftest.er1
8993: cat conftest.err >&5
8994: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.22 root 8995: (exit $ac_status); } && {
8996: test -z "$ac_c_werror_flag" ||
8997: test ! -s conftest.err
8998: } && test -s conftest.$ac_objext; then
1.1.1.23 root 8999: ac_cv_type_void_p=yes
1.1.1.19 root 9000: else
9001: echo "$as_me: failed program was:" >&5
9002: sed 's/^/| /' conftest.$ac_ext >&5
9003:
1.1.1.23 root 9004: ac_cv_type_void_p=no
1.1.1.19 root 9005: fi
1.1.1.22 root 9006:
9007: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1.1.19 root 9008: fi
1.1.1.23 root 9009: { echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
9010: echo "${ECHO_T}$ac_cv_type_void_p" >&6; }
1.1.1.19 root 9011:
1.1.1.22 root 9012: # The cast to long int works around a bug in the HP C Compiler
9013: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9014: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9015: # This bug is HP SR number 8606223364.
1.1.1.23 root 9016: { echo "$as_me:$LINENO: checking size of void *" >&5
9017: echo $ECHO_N "checking size of void *... $ECHO_C" >&6; }
9018: if test "${ac_cv_sizeof_void_p+set}" = set; then
1.1.1.19 root 9019: echo $ECHO_N "(cached) $ECHO_C" >&6
9020: else
9021: if test "$cross_compiling" = yes; then
9022: # Depending upon the size, compute the lo and hi bounds.
9023: cat >conftest.$ac_ext <<_ACEOF
9024: /* confdefs.h. */
9025: _ACEOF
9026: cat confdefs.h >>conftest.$ac_ext
9027: cat >>conftest.$ac_ext <<_ACEOF
9028: /* end confdefs.h. */
9029: $ac_includes_default
1.1.1.23 root 9030: typedef void * ac__type_sizeof_;
1.1.1.19 root 9031: int
9032: main ()
9033: {
1.1.1.22 root 9034: static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
1.1.1.19 root 9035: test_array [0] = 0
9036:
9037: ;
9038: return 0;
9039: }
9040: _ACEOF
9041: rm -f conftest.$ac_objext
1.1.1.22 root 9042: if { (ac_try="$ac_compile"
9043: case "(($ac_try" in
9044: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9045: *) ac_try_echo=$ac_try;;
9046: esac
9047: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9048: (eval "$ac_compile") 2>conftest.er1
1.1.1.19 root 9049: ac_status=$?
9050: grep -v '^ *+' conftest.er1 >conftest.err
9051: rm -f conftest.er1
9052: cat conftest.err >&5
9053: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.22 root 9054: (exit $ac_status); } && {
9055: test -z "$ac_c_werror_flag" ||
9056: test ! -s conftest.err
9057: } && test -s conftest.$ac_objext; then
1.1.1.19 root 9058: ac_lo=0 ac_mid=0
9059: while :; do
9060: cat >conftest.$ac_ext <<_ACEOF
9061: /* confdefs.h. */
9062: _ACEOF
9063: cat confdefs.h >>conftest.$ac_ext
9064: cat >>conftest.$ac_ext <<_ACEOF
9065: /* end confdefs.h. */
9066: $ac_includes_default
1.1.1.23 root 9067: typedef void * ac__type_sizeof_;
1.1.1.19 root 9068: int
9069: main ()
9070: {
1.1.1.22 root 9071: static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
1.1.1.19 root 9072: test_array [0] = 0
9073:
9074: ;
9075: return 0;
9076: }
9077: _ACEOF
9078: rm -f conftest.$ac_objext
1.1.1.22 root 9079: if { (ac_try="$ac_compile"
9080: case "(($ac_try" in
9081: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9082: *) ac_try_echo=$ac_try;;
9083: esac
9084: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9085: (eval "$ac_compile") 2>conftest.er1
1.1.1.19 root 9086: ac_status=$?
9087: grep -v '^ *+' conftest.er1 >conftest.err
9088: rm -f conftest.er1
9089: cat conftest.err >&5
9090: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.22 root 9091: (exit $ac_status); } && {
9092: test -z "$ac_c_werror_flag" ||
9093: test ! -s conftest.err
9094: } && test -s conftest.$ac_objext; then
1.1.1.19 root 9095: ac_hi=$ac_mid; break
9096: else
9097: echo "$as_me: failed program was:" >&5
9098: sed 's/^/| /' conftest.$ac_ext >&5
9099:
1.1.1.22 root 9100: ac_lo=`expr $ac_mid + 1`
9101: if test $ac_lo -le $ac_mid; then
9102: ac_lo= ac_hi=
9103: break
9104: fi
9105: ac_mid=`expr 2 '*' $ac_mid + 1`
1.1.1.4 root 9106: fi
1.1.1.22 root 9107:
9108: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1.1.19 root 9109: done
9110: else
9111: echo "$as_me: failed program was:" >&5
9112: sed 's/^/| /' conftest.$ac_ext >&5
9113:
1.1.1.22 root 9114: cat >conftest.$ac_ext <<_ACEOF
1.1.1.19 root 9115: /* confdefs.h. */
9116: _ACEOF
9117: cat confdefs.h >>conftest.$ac_ext
9118: cat >>conftest.$ac_ext <<_ACEOF
9119: /* end confdefs.h. */
9120: $ac_includes_default
1.1.1.23 root 9121: typedef void * ac__type_sizeof_;
1.1.1.19 root 9122: int
9123: main ()
9124: {
1.1.1.22 root 9125: static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
1.1.1.19 root 9126: test_array [0] = 0
1.1 root 9127:
1.1.1.19 root 9128: ;
9129: return 0;
9130: }
9131: _ACEOF
9132: rm -f conftest.$ac_objext
1.1.1.22 root 9133: if { (ac_try="$ac_compile"
9134: case "(($ac_try" in
9135: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9136: *) ac_try_echo=$ac_try;;
9137: esac
9138: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9139: (eval "$ac_compile") 2>conftest.er1
1.1.1.19 root 9140: ac_status=$?
9141: grep -v '^ *+' conftest.er1 >conftest.err
9142: rm -f conftest.er1
9143: cat conftest.err >&5
9144: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.22 root 9145: (exit $ac_status); } && {
9146: test -z "$ac_c_werror_flag" ||
9147: test ! -s conftest.err
9148: } && test -s conftest.$ac_objext; then
1.1.1.19 root 9149: ac_hi=-1 ac_mid=-1
9150: while :; do
9151: cat >conftest.$ac_ext <<_ACEOF
9152: /* confdefs.h. */
9153: _ACEOF
9154: cat confdefs.h >>conftest.$ac_ext
9155: cat >>conftest.$ac_ext <<_ACEOF
9156: /* end confdefs.h. */
9157: $ac_includes_default
1.1.1.23 root 9158: typedef void * ac__type_sizeof_;
1.1.1.19 root 9159: int
9160: main ()
9161: {
1.1.1.22 root 9162: static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
1.1.1.19 root 9163: test_array [0] = 0
1.1 root 9164:
1.1.1.19 root 9165: ;
9166: return 0;
9167: }
9168: _ACEOF
9169: rm -f conftest.$ac_objext
1.1.1.22 root 9170: if { (ac_try="$ac_compile"
9171: case "(($ac_try" in
9172: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9173: *) ac_try_echo=$ac_try;;
9174: esac
9175: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9176: (eval "$ac_compile") 2>conftest.er1
1.1.1.19 root 9177: ac_status=$?
9178: grep -v '^ *+' conftest.er1 >conftest.err
9179: rm -f conftest.er1
9180: cat conftest.err >&5
9181: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.22 root 9182: (exit $ac_status); } && {
9183: test -z "$ac_c_werror_flag" ||
9184: test ! -s conftest.err
9185: } && test -s conftest.$ac_objext; then
1.1.1.19 root 9186: ac_lo=$ac_mid; break
9187: else
9188: echo "$as_me: failed program was:" >&5
9189: sed 's/^/| /' conftest.$ac_ext >&5
9190:
1.1.1.22 root 9191: ac_hi=`expr '(' $ac_mid ')' - 1`
9192: if test $ac_mid -le $ac_hi; then
9193: ac_lo= ac_hi=
9194: break
9195: fi
9196: ac_mid=`expr 2 '*' $ac_mid`
1.1.1.19 root 9197: fi
1.1.1.22 root 9198:
9199: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1.1.19 root 9200: done
1.1 root 9201: else
1.1.1.19 root 9202: echo "$as_me: failed program was:" >&5
9203: sed 's/^/| /' conftest.$ac_ext >&5
9204:
1.1.1.22 root 9205: ac_lo= ac_hi=
1.1.1.19 root 9206: fi
1.1.1.22 root 9207:
9208: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1.1.19 root 9209: fi
1.1.1.22 root 9210:
9211: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1.1.19 root 9212: # Binary search between lo and hi bounds.
9213: while test "x$ac_lo" != "x$ac_hi"; do
9214: ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9215: cat >conftest.$ac_ext <<_ACEOF
9216: /* confdefs.h. */
9217: _ACEOF
9218: cat confdefs.h >>conftest.$ac_ext
9219: cat >>conftest.$ac_ext <<_ACEOF
9220: /* end confdefs.h. */
9221: $ac_includes_default
1.1.1.23 root 9222: typedef void * ac__type_sizeof_;
1.1.1.19 root 9223: int
9224: main ()
9225: {
1.1.1.22 root 9226: static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
1.1.1.19 root 9227: test_array [0] = 0
9228:
9229: ;
9230: return 0;
9231: }
9232: _ACEOF
9233: rm -f conftest.$ac_objext
1.1.1.22 root 9234: if { (ac_try="$ac_compile"
9235: case "(($ac_try" in
9236: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9237: *) ac_try_echo=$ac_try;;
9238: esac
9239: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9240: (eval "$ac_compile") 2>conftest.er1
1.1.1.19 root 9241: ac_status=$?
9242: grep -v '^ *+' conftest.er1 >conftest.err
9243: rm -f conftest.er1
9244: cat conftest.err >&5
9245: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.22 root 9246: (exit $ac_status); } && {
9247: test -z "$ac_c_werror_flag" ||
9248: test ! -s conftest.err
9249: } && test -s conftest.$ac_objext; then
1.1.1.19 root 9250: ac_hi=$ac_mid
1.1 root 9251: else
1.1.1.19 root 9252: echo "$as_me: failed program was:" >&5
9253: sed 's/^/| /' conftest.$ac_ext >&5
9254:
1.1.1.22 root 9255: ac_lo=`expr '(' $ac_mid ')' + 1`
1.1.1.19 root 9256: fi
1.1.1.22 root 9257:
9258: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1.1.19 root 9259: done
9260: case $ac_lo in
1.1.1.23 root 9261: ?*) ac_cv_sizeof_void_p=$ac_lo;;
9262: '') if test "$ac_cv_type_void_p" = yes; then
9263: { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
1.1.1.19 root 9264: See \`config.log' for more details." >&5
1.1.1.23 root 9265: echo "$as_me: error: cannot compute sizeof (void *)
1.1.1.19 root 9266: See \`config.log' for more details." >&2;}
1.1.1.22 root 9267: { (exit 77); exit 77; }; }
9268: else
1.1.1.23 root 9269: ac_cv_sizeof_void_p=0
1.1.1.22 root 9270: fi ;;
1.1.1.19 root 9271: esac
9272: else
9273: cat >conftest.$ac_ext <<_ACEOF
9274: /* confdefs.h. */
9275: _ACEOF
9276: cat confdefs.h >>conftest.$ac_ext
9277: cat >>conftest.$ac_ext <<_ACEOF
9278: /* end confdefs.h. */
9279: $ac_includes_default
1.1.1.23 root 9280: typedef void * ac__type_sizeof_;
1.1.1.22 root 9281: static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
9282: static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
1.1 root 9283: #include <stdio.h>
1.1.1.19 root 9284: #include <stdlib.h>
9285: int
9286: main ()
9287: {
9288:
9289: FILE *f = fopen ("conftest.val", "w");
9290: if (! f)
1.1.1.22 root 9291: return 1;
9292: if (((long int) (sizeof (ac__type_sizeof_))) < 0)
1.1.1.19 root 9293: {
1.1.1.22 root 9294: long int i = longval ();
9295: if (i != ((long int) (sizeof (ac__type_sizeof_))))
9296: return 1;
1.1.1.19 root 9297: fprintf (f, "%ld\n", i);
9298: }
9299: else
9300: {
1.1.1.22 root 9301: unsigned long int i = ulongval ();
9302: if (i != ((long int) (sizeof (ac__type_sizeof_))))
9303: return 1;
1.1.1.19 root 9304: fprintf (f, "%lu\n", i);
9305: }
1.1.1.22 root 9306: return ferror (f) || fclose (f) != 0;
1.1.1.19 root 9307:
9308: ;
9309: return 0;
9310: }
9311: _ACEOF
9312: rm -f conftest$ac_exeext
1.1.1.22 root 9313: if { (ac_try="$ac_link"
9314: case "(($ac_try" in
9315: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9316: *) ac_try_echo=$ac_try;;
9317: esac
9318: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9319: (eval "$ac_link") 2>&5
1.1.1.19 root 9320: ac_status=$?
9321: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9322: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
1.1.1.22 root 9323: { (case "(($ac_try" in
9324: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9325: *) ac_try_echo=$ac_try;;
9326: esac
9327: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9328: (eval "$ac_try") 2>&5
1.1.1.19 root 9329: ac_status=$?
9330: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9331: (exit $ac_status); }; }; then
1.1.1.23 root 9332: ac_cv_sizeof_void_p=`cat conftest.val`
1.1.1.19 root 9333: else
9334: echo "$as_me: program exited with status $ac_status" >&5
9335: echo "$as_me: failed program was:" >&5
9336: sed 's/^/| /' conftest.$ac_ext >&5
9337:
9338: ( exit $ac_status )
1.1.1.23 root 9339: if test "$ac_cv_type_void_p" = yes; then
9340: { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
1.1.1.19 root 9341: See \`config.log' for more details." >&5
1.1.1.23 root 9342: echo "$as_me: error: cannot compute sizeof (void *)
1.1.1.19 root 9343: See \`config.log' for more details." >&2;}
1.1.1.22 root 9344: { (exit 77); exit 77; }; }
9345: else
1.1.1.23 root 9346: ac_cv_sizeof_void_p=0
1.1.1.22 root 9347: fi
1.1.1.19 root 9348: fi
1.1.1.22 root 9349: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.1.1.19 root 9350: fi
9351: rm -f conftest.val
9352: fi
1.1.1.23 root 9353: { echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
9354: echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6; }
1.1.1.22 root 9355:
9356:
9357:
1.1.1.19 root 9358: cat >>confdefs.h <<_ACEOF
1.1.1.23 root 9359: #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
1.1.1.19 root 9360: _ACEOF
9361:
9362:
1.1.1.23 root 9363: { echo "$as_me:$LINENO: checking for long long" >&5
9364: echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
9365: if test "${ac_cv_type_long_long+set}" = set; then
1.1.1.19 root 9366: echo $ECHO_N "(cached) $ECHO_C" >&6
9367: else
9368: cat >conftest.$ac_ext <<_ACEOF
9369: /* confdefs.h. */
9370: _ACEOF
9371: cat confdefs.h >>conftest.$ac_ext
9372: cat >>conftest.$ac_ext <<_ACEOF
9373: /* end confdefs.h. */
9374: $ac_includes_default
1.1.1.23 root 9375: typedef long long ac__type_new_;
1.1.1.19 root 9376: int
9377: main ()
9378: {
1.1.1.22 root 9379: if ((ac__type_new_ *) 0)
1.1.1.19 root 9380: return 0;
1.1.1.22 root 9381: if (sizeof (ac__type_new_))
1.1.1.19 root 9382: return 0;
9383: ;
9384: return 0;
9385: }
9386: _ACEOF
9387: rm -f conftest.$ac_objext
1.1.1.22 root 9388: if { (ac_try="$ac_compile"
9389: case "(($ac_try" in
9390: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9391: *) ac_try_echo=$ac_try;;
9392: esac
9393: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9394: (eval "$ac_compile") 2>conftest.er1
1.1.1.19 root 9395: ac_status=$?
9396: grep -v '^ *+' conftest.er1 >conftest.err
9397: rm -f conftest.er1
9398: cat conftest.err >&5
9399: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.22 root 9400: (exit $ac_status); } && {
9401: test -z "$ac_c_werror_flag" ||
9402: test ! -s conftest.err
9403: } && test -s conftest.$ac_objext; then
1.1.1.23 root 9404: ac_cv_type_long_long=yes
1.1.1.19 root 9405: else
9406: echo "$as_me: failed program was:" >&5
9407: sed 's/^/| /' conftest.$ac_ext >&5
9408:
1.1.1.23 root 9409: ac_cv_type_long_long=no
1.1.1.19 root 9410: fi
1.1.1.22 root 9411:
9412: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1.1.19 root 9413: fi
1.1.1.23 root 9414: { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
9415: echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
1.1.1.19 root 9416:
1.1.1.22 root 9417: # The cast to long int works around a bug in the HP C Compiler
9418: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9419: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9420: # This bug is HP SR number 8606223364.
1.1.1.23 root 9421: { echo "$as_me:$LINENO: checking size of long long" >&5
9422: echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
9423: if test "${ac_cv_sizeof_long_long+set}" = set; then
1.1.1.19 root 9424: echo $ECHO_N "(cached) $ECHO_C" >&6
9425: else
9426: if test "$cross_compiling" = yes; then
9427: # Depending upon the size, compute the lo and hi bounds.
9428: cat >conftest.$ac_ext <<_ACEOF
9429: /* confdefs.h. */
9430: _ACEOF
9431: cat confdefs.h >>conftest.$ac_ext
9432: cat >>conftest.$ac_ext <<_ACEOF
9433: /* end confdefs.h. */
9434: $ac_includes_default
1.1.1.23 root 9435: typedef long long ac__type_sizeof_;
1.1.1.19 root 9436: int
9437: main ()
9438: {
1.1.1.22 root 9439: static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
1.1.1.19 root 9440: test_array [0] = 0
9441:
9442: ;
9443: return 0;
9444: }
9445: _ACEOF
9446: rm -f conftest.$ac_objext
1.1.1.22 root 9447: if { (ac_try="$ac_compile"
9448: case "(($ac_try" in
9449: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9450: *) ac_try_echo=$ac_try;;
9451: esac
9452: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9453: (eval "$ac_compile") 2>conftest.er1
1.1.1.19 root 9454: ac_status=$?
9455: grep -v '^ *+' conftest.er1 >conftest.err
9456: rm -f conftest.er1
9457: cat conftest.err >&5
9458: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.22 root 9459: (exit $ac_status); } && {
9460: test -z "$ac_c_werror_flag" ||
9461: test ! -s conftest.err
9462: } && test -s conftest.$ac_objext; then
1.1.1.19 root 9463: ac_lo=0 ac_mid=0
9464: while :; do
9465: cat >conftest.$ac_ext <<_ACEOF
9466: /* confdefs.h. */
9467: _ACEOF
9468: cat confdefs.h >>conftest.$ac_ext
9469: cat >>conftest.$ac_ext <<_ACEOF
9470: /* end confdefs.h. */
9471: $ac_includes_default
1.1.1.23 root 9472: typedef long long ac__type_sizeof_;
1.1.1.19 root 9473: int
9474: main ()
9475: {
1.1.1.22 root 9476: static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
1.1.1.19 root 9477: test_array [0] = 0
9478:
9479: ;
9480: return 0;
9481: }
9482: _ACEOF
9483: rm -f conftest.$ac_objext
1.1.1.22 root 9484: if { (ac_try="$ac_compile"
9485: case "(($ac_try" in
9486: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9487: *) ac_try_echo=$ac_try;;
9488: esac
9489: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9490: (eval "$ac_compile") 2>conftest.er1
1.1.1.19 root 9491: ac_status=$?
9492: grep -v '^ *+' conftest.er1 >conftest.err
9493: rm -f conftest.er1
9494: cat conftest.err >&5
9495: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.22 root 9496: (exit $ac_status); } && {
9497: test -z "$ac_c_werror_flag" ||
9498: test ! -s conftest.err
9499: } && test -s conftest.$ac_objext; then
1.1.1.19 root 9500: ac_hi=$ac_mid; break
9501: else
9502: echo "$as_me: failed program was:" >&5
9503: sed 's/^/| /' conftest.$ac_ext >&5
9504:
1.1.1.22 root 9505: ac_lo=`expr $ac_mid + 1`
9506: if test $ac_lo -le $ac_mid; then
9507: ac_lo= ac_hi=
9508: break
9509: fi
9510: ac_mid=`expr 2 '*' $ac_mid + 1`
1.1.1.19 root 9511: fi
1.1.1.22 root 9512:
9513: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1.1.19 root 9514: done
9515: else
9516: echo "$as_me: failed program was:" >&5
9517: sed 's/^/| /' conftest.$ac_ext >&5
9518:
1.1.1.22 root 9519: cat >conftest.$ac_ext <<_ACEOF
1.1.1.19 root 9520: /* confdefs.h. */
9521: _ACEOF
9522: cat confdefs.h >>conftest.$ac_ext
9523: cat >>conftest.$ac_ext <<_ACEOF
9524: /* end confdefs.h. */
9525: $ac_includes_default
1.1.1.23 root 9526: typedef long long ac__type_sizeof_;
1.1.1.19 root 9527: int
9528: main ()
1.1 root 9529: {
1.1.1.22 root 9530: static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
1.1.1.19 root 9531: test_array [0] = 0
9532:
9533: ;
9534: return 0;
1.1 root 9535: }
1.1.1.19 root 9536: _ACEOF
9537: rm -f conftest.$ac_objext
1.1.1.22 root 9538: if { (ac_try="$ac_compile"
9539: case "(($ac_try" in
9540: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9541: *) ac_try_echo=$ac_try;;
9542: esac
9543: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9544: (eval "$ac_compile") 2>conftest.er1
1.1.1.19 root 9545: ac_status=$?
9546: grep -v '^ *+' conftest.er1 >conftest.err
9547: rm -f conftest.er1
9548: cat conftest.err >&5
9549: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.22 root 9550: (exit $ac_status); } && {
9551: test -z "$ac_c_werror_flag" ||
9552: test ! -s conftest.err
9553: } && test -s conftest.$ac_objext; then
1.1.1.19 root 9554: ac_hi=-1 ac_mid=-1
9555: while :; do
9556: cat >conftest.$ac_ext <<_ACEOF
9557: /* confdefs.h. */
9558: _ACEOF
9559: cat confdefs.h >>conftest.$ac_ext
9560: cat >>conftest.$ac_ext <<_ACEOF
9561: /* end confdefs.h. */
9562: $ac_includes_default
1.1.1.23 root 9563: typedef long long ac__type_sizeof_;
1.1.1.19 root 9564: int
9565: main ()
9566: {
1.1.1.22 root 9567: static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
1.1.1.19 root 9568: test_array [0] = 0
9569:
9570: ;
9571: return 0;
9572: }
9573: _ACEOF
9574: rm -f conftest.$ac_objext
1.1.1.22 root 9575: if { (ac_try="$ac_compile"
9576: case "(($ac_try" in
9577: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9578: *) ac_try_echo=$ac_try;;
9579: esac
9580: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9581: (eval "$ac_compile") 2>conftest.er1
1.1.1.19 root 9582: ac_status=$?
9583: grep -v '^ *+' conftest.er1 >conftest.err
9584: rm -f conftest.er1
9585: cat conftest.err >&5
9586: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.22 root 9587: (exit $ac_status); } && {
9588: test -z "$ac_c_werror_flag" ||
9589: test ! -s conftest.err
9590: } && test -s conftest.$ac_objext; then
1.1.1.19 root 9591: ac_lo=$ac_mid; break
9592: else
9593: echo "$as_me: failed program was:" >&5
9594: sed 's/^/| /' conftest.$ac_ext >&5
9595:
1.1.1.22 root 9596: ac_hi=`expr '(' $ac_mid ')' - 1`
9597: if test $ac_mid -le $ac_hi; then
9598: ac_lo= ac_hi=
9599: break
9600: fi
9601: ac_mid=`expr 2 '*' $ac_mid`
1.1 root 9602: fi
1.1.1.22 root 9603:
9604: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1.1.19 root 9605: done
9606: else
9607: echo "$as_me: failed program was:" >&5
9608: sed 's/^/| /' conftest.$ac_ext >&5
1.1.1.4 root 9609:
1.1.1.22 root 9610: ac_lo= ac_hi=
1.1.1.4 root 9611: fi
1.1.1.22 root 9612:
9613: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1.1.19 root 9614: fi
1.1.1.22 root 9615:
9616: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1.1.19 root 9617: # Binary search between lo and hi bounds.
9618: while test "x$ac_lo" != "x$ac_hi"; do
9619: ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9620: cat >conftest.$ac_ext <<_ACEOF
9621: /* confdefs.h. */
9622: _ACEOF
9623: cat confdefs.h >>conftest.$ac_ext
9624: cat >>conftest.$ac_ext <<_ACEOF
9625: /* end confdefs.h. */
9626: $ac_includes_default
1.1.1.23 root 9627: typedef long long ac__type_sizeof_;
1.1.1.19 root 9628: int
9629: main ()
9630: {
1.1.1.22 root 9631: static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
1.1.1.19 root 9632: test_array [0] = 0
1.1 root 9633:
1.1.1.19 root 9634: ;
9635: return 0;
9636: }
9637: _ACEOF
9638: rm -f conftest.$ac_objext
1.1.1.22 root 9639: if { (ac_try="$ac_compile"
9640: case "(($ac_try" in
9641: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9642: *) ac_try_echo=$ac_try;;
9643: esac
9644: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9645: (eval "$ac_compile") 2>conftest.er1
1.1.1.19 root 9646: ac_status=$?
9647: grep -v '^ *+' conftest.er1 >conftest.err
9648: rm -f conftest.er1
9649: cat conftest.err >&5
9650: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.22 root 9651: (exit $ac_status); } && {
9652: test -z "$ac_c_werror_flag" ||
9653: test ! -s conftest.err
9654: } && test -s conftest.$ac_objext; then
1.1.1.19 root 9655: ac_hi=$ac_mid
9656: else
9657: echo "$as_me: failed program was:" >&5
9658: sed 's/^/| /' conftest.$ac_ext >&5
1.1 root 9659:
1.1.1.22 root 9660: ac_lo=`expr '(' $ac_mid ')' + 1`
1.1.1.19 root 9661: fi
1.1.1.22 root 9662:
9663: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1.1.19 root 9664: done
9665: case $ac_lo in
1.1.1.23 root 9666: ?*) ac_cv_sizeof_long_long=$ac_lo;;
9667: '') if test "$ac_cv_type_long_long" = yes; then
9668: { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
1.1.1.19 root 9669: See \`config.log' for more details." >&5
1.1.1.23 root 9670: echo "$as_me: error: cannot compute sizeof (long long)
1.1.1.19 root 9671: See \`config.log' for more details." >&2;}
1.1.1.22 root 9672: { (exit 77); exit 77; }; }
9673: else
1.1.1.23 root 9674: ac_cv_sizeof_long_long=0
1.1.1.22 root 9675: fi ;;
1.1.1.19 root 9676: esac
1.1.1.6 root 9677: else
1.1.1.19 root 9678: cat >conftest.$ac_ext <<_ACEOF
9679: /* confdefs.h. */
9680: _ACEOF
9681: cat confdefs.h >>conftest.$ac_ext
9682: cat >>conftest.$ac_ext <<_ACEOF
9683: /* end confdefs.h. */
9684: $ac_includes_default
1.1.1.23 root 9685: typedef long long ac__type_sizeof_;
1.1.1.22 root 9686: static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
9687: static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
1.1.1.6 root 9688: #include <stdio.h>
1.1.1.19 root 9689: #include <stdlib.h>
9690: int
9691: main ()
1.1.1.6 root 9692: {
1.1.1.19 root 9693:
9694: FILE *f = fopen ("conftest.val", "w");
9695: if (! f)
1.1.1.22 root 9696: return 1;
9697: if (((long int) (sizeof (ac__type_sizeof_))) < 0)
1.1.1.19 root 9698: {
1.1.1.22 root 9699: long int i = longval ();
9700: if (i != ((long int) (sizeof (ac__type_sizeof_))))
9701: return 1;
1.1.1.19 root 9702: fprintf (f, "%ld\n", i);
9703: }
9704: else
9705: {
1.1.1.22 root 9706: unsigned long int i = ulongval ();
9707: if (i != ((long int) (sizeof (ac__type_sizeof_))))
9708: return 1;
1.1.1.19 root 9709: fprintf (f, "%lu\n", i);
9710: }
1.1.1.22 root 9711: return ferror (f) || fclose (f) != 0;
1.1.1.19 root 9712:
9713: ;
9714: return 0;
1.1.1.6 root 9715: }
1.1.1.19 root 9716: _ACEOF
9717: rm -f conftest$ac_exeext
1.1.1.22 root 9718: if { (ac_try="$ac_link"
9719: case "(($ac_try" in
9720: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9721: *) ac_try_echo=$ac_try;;
9722: esac
9723: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9724: (eval "$ac_link") 2>&5
1.1.1.19 root 9725: ac_status=$?
9726: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9727: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
1.1.1.22 root 9728: { (case "(($ac_try" in
9729: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9730: *) ac_try_echo=$ac_try;;
9731: esac
9732: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9733: (eval "$ac_try") 2>&5
1.1.1.19 root 9734: ac_status=$?
9735: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9736: (exit $ac_status); }; }; then
1.1.1.23 root 9737: ac_cv_sizeof_long_long=`cat conftest.val`
1.1.1.19 root 9738: else
9739: echo "$as_me: program exited with status $ac_status" >&5
9740: echo "$as_me: failed program was:" >&5
9741: sed 's/^/| /' conftest.$ac_ext >&5
9742:
9743: ( exit $ac_status )
1.1.1.23 root 9744: if test "$ac_cv_type_long_long" = yes; then
9745: { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
1.1.1.19 root 9746: See \`config.log' for more details." >&5
1.1.1.23 root 9747: echo "$as_me: error: cannot compute sizeof (long long)
1.1.1.19 root 9748: See \`config.log' for more details." >&2;}
1.1.1.22 root 9749: { (exit 77); exit 77; }; }
9750: else
1.1.1.23 root 9751: ac_cv_sizeof_long_long=0
1.1.1.22 root 9752: fi
1.1.1.19 root 9753: fi
1.1.1.22 root 9754: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.1.1.19 root 9755: fi
9756: rm -f conftest.val
1.1.1.6 root 9757: fi
1.1.1.23 root 9758: { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
9759: echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
1.1.1.22 root 9760:
9761:
9762:
1.1.1.19 root 9763: cat >>confdefs.h <<_ACEOF
1.1.1.23 root 9764: #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
1.1.1.19 root 9765: _ACEOF
1.1.1.6 root 9766:
9767:
1.1.1.23 root 9768: { echo "$as_me:$LINENO: checking for __int64" >&5
9769: echo $ECHO_N "checking for __int64... $ECHO_C" >&6; }
9770: if test "${ac_cv_type___int64+set}" = set; then
1.1.1.19 root 9771: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 root 9772: else
1.1.1.19 root 9773: cat >conftest.$ac_ext <<_ACEOF
9774: /* confdefs.h. */
9775: _ACEOF
9776: cat confdefs.h >>conftest.$ac_ext
9777: cat >>conftest.$ac_ext <<_ACEOF
9778: /* end confdefs.h. */
1.1.1.23 root 9779: $ac_includes_default
9780: typedef __int64 ac__type_new_;
1.1.1.19 root 9781: int
9782: main ()
9783: {
1.1.1.23 root 9784: if ((ac__type_new_ *) 0)
9785: return 0;
9786: if (sizeof (ac__type_new_))
9787: return 0;
9788: ;
9789: return 0;
9790: }
9791: _ACEOF
9792: rm -f conftest.$ac_objext
9793: if { (ac_try="$ac_compile"
9794: case "(($ac_try" in
9795: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9796: *) ac_try_echo=$ac_try;;
9797: esac
9798: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9799: (eval "$ac_compile") 2>conftest.er1
9800: ac_status=$?
9801: grep -v '^ *+' conftest.er1 >conftest.err
9802: rm -f conftest.er1
9803: cat conftest.err >&5
9804: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9805: (exit $ac_status); } && {
9806: test -z "$ac_c_werror_flag" ||
9807: test ! -s conftest.err
9808: } && test -s conftest.$ac_objext; then
9809: ac_cv_type___int64=yes
9810: else
9811: echo "$as_me: failed program was:" >&5
9812: sed 's/^/| /' conftest.$ac_ext >&5
9813:
9814: ac_cv_type___int64=no
9815: fi
9816:
9817: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9818: fi
9819: { echo "$as_me:$LINENO: result: $ac_cv_type___int64" >&5
9820: echo "${ECHO_T}$ac_cv_type___int64" >&6; }
9821:
9822: # The cast to long int works around a bug in the HP C Compiler
9823: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9824: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9825: # This bug is HP SR number 8606223364.
9826: { echo "$as_me:$LINENO: checking size of __int64" >&5
9827: echo $ECHO_N "checking size of __int64... $ECHO_C" >&6; }
9828: if test "${ac_cv_sizeof___int64+set}" = set; then
9829: echo $ECHO_N "(cached) $ECHO_C" >&6
9830: else
9831: if test "$cross_compiling" = yes; then
9832: # Depending upon the size, compute the lo and hi bounds.
9833: cat >conftest.$ac_ext <<_ACEOF
9834: /* confdefs.h. */
9835: _ACEOF
9836: cat confdefs.h >>conftest.$ac_ext
9837: cat >>conftest.$ac_ext <<_ACEOF
9838: /* end confdefs.h. */
9839: $ac_includes_default
9840: typedef __int64 ac__type_sizeof_;
9841: int
9842: main ()
9843: {
9844: static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
9845: test_array [0] = 0
9846:
9847: ;
9848: return 0;
9849: }
9850: _ACEOF
9851: rm -f conftest.$ac_objext
9852: if { (ac_try="$ac_compile"
9853: case "(($ac_try" in
9854: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9855: *) ac_try_echo=$ac_try;;
9856: esac
9857: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9858: (eval "$ac_compile") 2>conftest.er1
9859: ac_status=$?
9860: grep -v '^ *+' conftest.er1 >conftest.err
9861: rm -f conftest.er1
9862: cat conftest.err >&5
9863: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9864: (exit $ac_status); } && {
9865: test -z "$ac_c_werror_flag" ||
9866: test ! -s conftest.err
9867: } && test -s conftest.$ac_objext; then
9868: ac_lo=0 ac_mid=0
9869: while :; do
9870: cat >conftest.$ac_ext <<_ACEOF
9871: /* confdefs.h. */
9872: _ACEOF
9873: cat confdefs.h >>conftest.$ac_ext
9874: cat >>conftest.$ac_ext <<_ACEOF
9875: /* end confdefs.h. */
9876: $ac_includes_default
9877: typedef __int64 ac__type_sizeof_;
9878: int
9879: main ()
9880: {
9881: static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9882: test_array [0] = 0
9883:
9884: ;
9885: return 0;
9886: }
9887: _ACEOF
9888: rm -f conftest.$ac_objext
9889: if { (ac_try="$ac_compile"
9890: case "(($ac_try" in
9891: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9892: *) ac_try_echo=$ac_try;;
9893: esac
9894: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9895: (eval "$ac_compile") 2>conftest.er1
9896: ac_status=$?
9897: grep -v '^ *+' conftest.er1 >conftest.err
9898: rm -f conftest.er1
9899: cat conftest.err >&5
9900: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9901: (exit $ac_status); } && {
9902: test -z "$ac_c_werror_flag" ||
9903: test ! -s conftest.err
9904: } && test -s conftest.$ac_objext; then
9905: ac_hi=$ac_mid; break
9906: else
9907: echo "$as_me: failed program was:" >&5
9908: sed 's/^/| /' conftest.$ac_ext >&5
9909:
9910: ac_lo=`expr $ac_mid + 1`
9911: if test $ac_lo -le $ac_mid; then
9912: ac_lo= ac_hi=
9913: break
9914: fi
9915: ac_mid=`expr 2 '*' $ac_mid + 1`
9916: fi
9917:
9918: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9919: done
9920: else
9921: echo "$as_me: failed program was:" >&5
9922: sed 's/^/| /' conftest.$ac_ext >&5
9923:
9924: cat >conftest.$ac_ext <<_ACEOF
9925: /* confdefs.h. */
9926: _ACEOF
9927: cat confdefs.h >>conftest.$ac_ext
9928: cat >>conftest.$ac_ext <<_ACEOF
9929: /* end confdefs.h. */
9930: $ac_includes_default
9931: typedef __int64 ac__type_sizeof_;
9932: int
9933: main ()
9934: {
9935: static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
9936: test_array [0] = 0
9937:
9938: ;
9939: return 0;
9940: }
9941: _ACEOF
9942: rm -f conftest.$ac_objext
9943: if { (ac_try="$ac_compile"
9944: case "(($ac_try" in
9945: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9946: *) ac_try_echo=$ac_try;;
9947: esac
9948: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9949: (eval "$ac_compile") 2>conftest.er1
9950: ac_status=$?
9951: grep -v '^ *+' conftest.er1 >conftest.err
9952: rm -f conftest.er1
9953: cat conftest.err >&5
9954: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9955: (exit $ac_status); } && {
9956: test -z "$ac_c_werror_flag" ||
9957: test ! -s conftest.err
9958: } && test -s conftest.$ac_objext; then
9959: ac_hi=-1 ac_mid=-1
9960: while :; do
9961: cat >conftest.$ac_ext <<_ACEOF
9962: /* confdefs.h. */
9963: _ACEOF
9964: cat confdefs.h >>conftest.$ac_ext
9965: cat >>conftest.$ac_ext <<_ACEOF
9966: /* end confdefs.h. */
9967: $ac_includes_default
9968: typedef __int64 ac__type_sizeof_;
9969: int
9970: main ()
9971: {
9972: static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
9973: test_array [0] = 0
9974:
9975: ;
9976: return 0;
9977: }
9978: _ACEOF
9979: rm -f conftest.$ac_objext
9980: if { (ac_try="$ac_compile"
9981: case "(($ac_try" in
9982: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9983: *) ac_try_echo=$ac_try;;
9984: esac
9985: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9986: (eval "$ac_compile") 2>conftest.er1
9987: ac_status=$?
9988: grep -v '^ *+' conftest.er1 >conftest.err
9989: rm -f conftest.er1
9990: cat conftest.err >&5
9991: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9992: (exit $ac_status); } && {
9993: test -z "$ac_c_werror_flag" ||
9994: test ! -s conftest.err
9995: } && test -s conftest.$ac_objext; then
9996: ac_lo=$ac_mid; break
9997: else
9998: echo "$as_me: failed program was:" >&5
9999: sed 's/^/| /' conftest.$ac_ext >&5
10000:
10001: ac_hi=`expr '(' $ac_mid ')' - 1`
10002: if test $ac_mid -le $ac_hi; then
10003: ac_lo= ac_hi=
10004: break
10005: fi
10006: ac_mid=`expr 2 '*' $ac_mid`
10007: fi
10008:
10009: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10010: done
10011: else
10012: echo "$as_me: failed program was:" >&5
10013: sed 's/^/| /' conftest.$ac_ext >&5
10014:
10015: ac_lo= ac_hi=
10016: fi
10017:
10018: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10019: fi
10020:
10021: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10022: # Binary search between lo and hi bounds.
10023: while test "x$ac_lo" != "x$ac_hi"; do
10024: ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10025: cat >conftest.$ac_ext <<_ACEOF
10026: /* confdefs.h. */
10027: _ACEOF
10028: cat confdefs.h >>conftest.$ac_ext
10029: cat >>conftest.$ac_ext <<_ACEOF
10030: /* end confdefs.h. */
10031: $ac_includes_default
10032: typedef __int64 ac__type_sizeof_;
10033: int
10034: main ()
10035: {
10036: static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10037: test_array [0] = 0
10038:
10039: ;
10040: return 0;
10041: }
10042: _ACEOF
10043: rm -f conftest.$ac_objext
10044: if { (ac_try="$ac_compile"
10045: case "(($ac_try" in
10046: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10047: *) ac_try_echo=$ac_try;;
10048: esac
10049: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10050: (eval "$ac_compile") 2>conftest.er1
10051: ac_status=$?
10052: grep -v '^ *+' conftest.er1 >conftest.err
10053: rm -f conftest.er1
10054: cat conftest.err >&5
10055: echo "$as_me:$LINENO: \$? = $ac_status" >&5
10056: (exit $ac_status); } && {
10057: test -z "$ac_c_werror_flag" ||
10058: test ! -s conftest.err
10059: } && test -s conftest.$ac_objext; then
10060: ac_hi=$ac_mid
10061: else
10062: echo "$as_me: failed program was:" >&5
10063: sed 's/^/| /' conftest.$ac_ext >&5
10064:
10065: ac_lo=`expr '(' $ac_mid ')' + 1`
10066: fi
10067:
10068: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10069: done
10070: case $ac_lo in
10071: ?*) ac_cv_sizeof___int64=$ac_lo;;
10072: '') if test "$ac_cv_type___int64" = yes; then
10073: { { echo "$as_me:$LINENO: error: cannot compute sizeof (__int64)
10074: See \`config.log' for more details." >&5
10075: echo "$as_me: error: cannot compute sizeof (__int64)
10076: See \`config.log' for more details." >&2;}
10077: { (exit 77); exit 77; }; }
10078: else
10079: ac_cv_sizeof___int64=0
10080: fi ;;
10081: esac
10082: else
10083: cat >conftest.$ac_ext <<_ACEOF
10084: /* confdefs.h. */
10085: _ACEOF
10086: cat confdefs.h >>conftest.$ac_ext
10087: cat >>conftest.$ac_ext <<_ACEOF
10088: /* end confdefs.h. */
10089: $ac_includes_default
10090: typedef __int64 ac__type_sizeof_;
10091: static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
10092: static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
10093: #include <stdio.h>
10094: #include <stdlib.h>
10095: int
10096: main ()
10097: {
10098:
10099: FILE *f = fopen ("conftest.val", "w");
10100: if (! f)
10101: return 1;
10102: if (((long int) (sizeof (ac__type_sizeof_))) < 0)
10103: {
10104: long int i = longval ();
10105: if (i != ((long int) (sizeof (ac__type_sizeof_))))
10106: return 1;
10107: fprintf (f, "%ld\n", i);
10108: }
10109: else
10110: {
10111: unsigned long int i = ulongval ();
10112: if (i != ((long int) (sizeof (ac__type_sizeof_))))
10113: return 1;
10114: fprintf (f, "%lu\n", i);
10115: }
10116: return ferror (f) || fclose (f) != 0;
10117:
10118: ;
10119: return 0;
10120: }
10121: _ACEOF
10122: rm -f conftest$ac_exeext
10123: if { (ac_try="$ac_link"
10124: case "(($ac_try" in
10125: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10126: *) ac_try_echo=$ac_try;;
10127: esac
10128: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10129: (eval "$ac_link") 2>&5
10130: ac_status=$?
10131: echo "$as_me:$LINENO: \$? = $ac_status" >&5
10132: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10133: { (case "(($ac_try" in
10134: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10135: *) ac_try_echo=$ac_try;;
10136: esac
10137: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10138: (eval "$ac_try") 2>&5
10139: ac_status=$?
10140: echo "$as_me:$LINENO: \$? = $ac_status" >&5
10141: (exit $ac_status); }; }; then
10142: ac_cv_sizeof___int64=`cat conftest.val`
10143: else
10144: echo "$as_me: program exited with status $ac_status" >&5
10145: echo "$as_me: failed program was:" >&5
10146: sed 's/^/| /' conftest.$ac_ext >&5
10147:
10148: ( exit $ac_status )
10149: if test "$ac_cv_type___int64" = yes; then
10150: { { echo "$as_me:$LINENO: error: cannot compute sizeof (__int64)
10151: See \`config.log' for more details." >&5
10152: echo "$as_me: error: cannot compute sizeof (__int64)
10153: See \`config.log' for more details." >&2;}
10154: { (exit 77); exit 77; }; }
10155: else
10156: ac_cv_sizeof___int64=0
10157: fi
10158: fi
10159: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10160: fi
10161: rm -f conftest.val
10162: fi
10163: { echo "$as_me:$LINENO: result: $ac_cv_sizeof___int64" >&5
10164: echo "${ECHO_T}$ac_cv_sizeof___int64" >&6; }
10165:
10166:
10167:
10168: cat >>confdefs.h <<_ACEOF
10169: #define SIZEOF___INT64 $ac_cv_sizeof___int64
10170: _ACEOF
10171:
10172:
10173:
10174: { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
10175: echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
10176: if test "${ac_cv_c_const+set}" = set; then
10177: echo $ECHO_N "(cached) $ECHO_C" >&6
10178: else
10179: cat >conftest.$ac_ext <<_ACEOF
10180: /* confdefs.h. */
10181: _ACEOF
10182: cat confdefs.h >>conftest.$ac_ext
10183: cat >>conftest.$ac_ext <<_ACEOF
10184: /* end confdefs.h. */
10185:
10186: int
10187: main ()
10188: {
10189: /* FIXME: Include the comments suggested by Paul. */
10190: #ifndef __cplusplus
10191: /* Ultrix mips cc rejects this. */
10192: typedef int charset[2];
10193: const charset cs;
10194: /* SunOS 4.1.1 cc rejects this. */
10195: char const *const *pcpcc;
10196: char **ppc;
10197: /* NEC SVR4.0.2 mips cc rejects this. */
10198: struct point {int x, y;};
10199: static struct point const zero = {0,0};
10200: /* AIX XL C 1.02.0.0 rejects this.
10201: It does not let you subtract one const X* pointer from another in
10202: an arm of an if-expression whose if-part is not a constant
10203: expression */
1.1.1.19 root 10204: const char *g = "string";
1.1.1.22 root 10205: pcpcc = &g + (g ? g-g : 0);
1.1.1.19 root 10206: /* HPUX 7.0 cc rejects these. */
1.1.1.22 root 10207: ++pcpcc;
10208: ppc = (char**) pcpcc;
10209: pcpcc = (char const *const *) ppc;
1.1.1.19 root 10210: { /* SCO 3.2v4 cc rejects this. */
10211: char *t;
10212: char const *s = 0 ? (char *) 0 : (char const *) 0;
10213:
10214: *t++ = 0;
1.1.1.22 root 10215: if (s) return 0;
1.1.1.19 root 10216: }
10217: { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
10218: int x[] = {25, 17};
10219: const int *foo = &x[0];
10220: ++foo;
10221: }
10222: { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
10223: typedef const int *iptr;
10224: iptr p = 0;
10225: ++p;
10226: }
10227: { /* AIX XL C 1.02.0.0 rejects this saying
10228: "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
10229: struct s { int j; const int *ap[3]; };
10230: struct s *b; b->j = 5;
10231: }
10232: { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
10233: const int foo = 10;
1.1.1.22 root 10234: if (!foo) return 0;
1.1.1.19 root 10235: }
1.1.1.22 root 10236: return !cs[0] && !zero.x;
1.1.1.19 root 10237: #endif
1.1 root 10238:
1.1.1.19 root 10239: ;
10240: return 0;
1.1 root 10241: }
1.1.1.19 root 10242: _ACEOF
10243: rm -f conftest.$ac_objext
1.1.1.22 root 10244: if { (ac_try="$ac_compile"
10245: case "(($ac_try" in
10246: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10247: *) ac_try_echo=$ac_try;;
10248: esac
10249: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10250: (eval "$ac_compile") 2>conftest.er1
1.1.1.19 root 10251: ac_status=$?
10252: grep -v '^ *+' conftest.er1 >conftest.err
10253: rm -f conftest.er1
10254: cat conftest.err >&5
10255: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.22 root 10256: (exit $ac_status); } && {
10257: test -z "$ac_c_werror_flag" ||
10258: test ! -s conftest.err
10259: } && test -s conftest.$ac_objext; then
1.1 root 10260: ac_cv_c_const=yes
10261: else
1.1.1.19 root 10262: echo "$as_me: failed program was:" >&5
10263: sed 's/^/| /' conftest.$ac_ext >&5
10264:
1.1.1.22 root 10265: ac_cv_c_const=no
1.1 root 10266: fi
1.1.1.22 root 10267:
10268: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1 root 10269: fi
1.1.1.22 root 10270: { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
10271: echo "${ECHO_T}$ac_cv_c_const" >&6; }
1.1 root 10272: if test $ac_cv_c_const = no; then
1.1.1.19 root 10273:
10274: cat >>confdefs.h <<\_ACEOF
10275: #define const
10276: _ACEOF
1.1 root 10277:
10278: fi
10279:
1.1.1.22 root 10280: { echo "$as_me:$LINENO: checking for inline" >&5
10281: echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
1.1.1.19 root 10282: if test "${ac_cv_c_inline+set}" = set; then
10283: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 root 10284: else
10285: ac_cv_c_inline=no
10286: for ac_kw in inline __inline__ __inline; do
1.1.1.19 root 10287: cat >conftest.$ac_ext <<_ACEOF
10288: /* confdefs.h. */
10289: _ACEOF
10290: cat confdefs.h >>conftest.$ac_ext
10291: cat >>conftest.$ac_ext <<_ACEOF
10292: /* end confdefs.h. */
10293: #ifndef __cplusplus
10294: typedef int foo_t;
10295: static $ac_kw foo_t static_foo () {return 0; }
10296: $ac_kw foo_t foo () {return 0; }
10297: #endif
1.1 root 10298:
1.1.1.19 root 10299: _ACEOF
10300: rm -f conftest.$ac_objext
1.1.1.22 root 10301: if { (ac_try="$ac_compile"
10302: case "(($ac_try" in
10303: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10304: *) ac_try_echo=$ac_try;;
10305: esac
10306: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10307: (eval "$ac_compile") 2>conftest.er1
1.1.1.19 root 10308: ac_status=$?
10309: grep -v '^ *+' conftest.er1 >conftest.err
10310: rm -f conftest.er1
10311: cat conftest.err >&5
10312: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.22 root 10313: (exit $ac_status); } && {
10314: test -z "$ac_c_werror_flag" ||
10315: test ! -s conftest.err
10316: } && test -s conftest.$ac_objext; then
10317: ac_cv_c_inline=$ac_kw
1.1.1.4 root 10318: else
1.1.1.19 root 10319: echo "$as_me: failed program was:" >&5
10320: sed 's/^/| /' conftest.$ac_ext >&5
10321:
1.1.1.22 root 10322:
1.1 root 10323: fi
1.1.1.22 root 10324:
10325: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10326: test "$ac_cv_c_inline" != no && break
1.1 root 10327: done
10328:
10329: fi
1.1.1.22 root 10330: { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
10331: echo "${ECHO_T}$ac_cv_c_inline" >&6; }
1.1 root 10332:
1.1.1.19 root 10333:
10334: case $ac_cv_c_inline in
1.1 root 10335: inline | yes) ;;
1.1.1.19 root 10336: *)
10337: case $ac_cv_c_inline in
10338: no) ac_val=;;
10339: *) ac_val=$ac_cv_c_inline;;
10340: esac
10341: cat >>confdefs.h <<_ACEOF
10342: #ifndef __cplusplus
10343: #define inline $ac_val
10344: #endif
10345: _ACEOF
10346: ;;
1.1 root 10347: esac
10348:
1.1.1.4 root 10349: if [ "x$ac_cv_c_inline" = "xno" ]; then
10350: ac_cv_c_inline=
10351: fi
1.1.1.22 root 10352: { echo "$as_me:$LINENO: checking for mode_t" >&5
10353: echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
1.1.1.19 root 10354: if test "${ac_cv_type_mode_t+set}" = set; then
10355: echo $ECHO_N "(cached) $ECHO_C" >&6
10356: else
10357: cat >conftest.$ac_ext <<_ACEOF
10358: /* confdefs.h. */
10359: _ACEOF
10360: cat confdefs.h >>conftest.$ac_ext
10361: cat >>conftest.$ac_ext <<_ACEOF
10362: /* end confdefs.h. */
10363: $ac_includes_default
1.1.1.22 root 10364: typedef mode_t ac__type_new_;
1.1.1.19 root 10365: int
10366: main ()
10367: {
1.1.1.22 root 10368: if ((ac__type_new_ *) 0)
1.1.1.19 root 10369: return 0;
1.1.1.22 root 10370: if (sizeof (ac__type_new_))
1.1.1.19 root 10371: return 0;
10372: ;
10373: return 0;
10374: }
10375: _ACEOF
10376: rm -f conftest.$ac_objext
1.1.1.22 root 10377: if { (ac_try="$ac_compile"
10378: case "(($ac_try" in
10379: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10380: *) ac_try_echo=$ac_try;;
10381: esac
10382: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10383: (eval "$ac_compile") 2>conftest.er1
1.1.1.19 root 10384: ac_status=$?
10385: grep -v '^ *+' conftest.er1 >conftest.err
10386: rm -f conftest.er1
10387: cat conftest.err >&5
10388: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.22 root 10389: (exit $ac_status); } && {
10390: test -z "$ac_c_werror_flag" ||
10391: test ! -s conftest.err
10392: } && test -s conftest.$ac_objext; then
1.1 root 10393: ac_cv_type_mode_t=yes
10394: else
1.1.1.19 root 10395: echo "$as_me: failed program was:" >&5
10396: sed 's/^/| /' conftest.$ac_ext >&5
1.1 root 10397:
1.1.1.22 root 10398: ac_cv_type_mode_t=no
1.1 root 10399: fi
1.1.1.22 root 10400:
10401: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1.1.19 root 10402: fi
1.1.1.22 root 10403: { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
10404: echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
1.1.1.19 root 10405: if test $ac_cv_type_mode_t = yes; then
10406: :
10407: else
10408:
10409: cat >>confdefs.h <<_ACEOF
1.1 root 10410: #define mode_t int
1.1.1.19 root 10411: _ACEOF
1.1 root 10412:
10413: fi
10414:
1.1.1.22 root 10415: { echo "$as_me:$LINENO: checking for off_t" >&5
10416: echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
1.1.1.19 root 10417: if test "${ac_cv_type_off_t+set}" = set; then
10418: echo $ECHO_N "(cached) $ECHO_C" >&6
10419: else
10420: cat >conftest.$ac_ext <<_ACEOF
10421: /* confdefs.h. */
10422: _ACEOF
10423: cat confdefs.h >>conftest.$ac_ext
10424: cat >>conftest.$ac_ext <<_ACEOF
10425: /* end confdefs.h. */
10426: $ac_includes_default
1.1.1.22 root 10427: typedef off_t ac__type_new_;
1.1.1.19 root 10428: int
10429: main ()
10430: {
1.1.1.22 root 10431: if ((ac__type_new_ *) 0)
1.1.1.19 root 10432: return 0;
1.1.1.22 root 10433: if (sizeof (ac__type_new_))
1.1.1.19 root 10434: return 0;
10435: ;
10436: return 0;
10437: }
10438: _ACEOF
10439: rm -f conftest.$ac_objext
1.1.1.22 root 10440: if { (ac_try="$ac_compile"
10441: case "(($ac_try" in
10442: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10443: *) ac_try_echo=$ac_try;;
10444: esac
10445: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10446: (eval "$ac_compile") 2>conftest.er1
1.1.1.19 root 10447: ac_status=$?
10448: grep -v '^ *+' conftest.er1 >conftest.err
10449: rm -f conftest.er1
10450: cat conftest.err >&5
10451: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.22 root 10452: (exit $ac_status); } && {
10453: test -z "$ac_c_werror_flag" ||
10454: test ! -s conftest.err
10455: } && test -s conftest.$ac_objext; then
1.1 root 10456: ac_cv_type_off_t=yes
10457: else
1.1.1.19 root 10458: echo "$as_me: failed program was:" >&5
10459: sed 's/^/| /' conftest.$ac_ext >&5
1.1 root 10460:
1.1.1.22 root 10461: ac_cv_type_off_t=no
1.1 root 10462: fi
1.1.1.22 root 10463:
10464: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1.1.19 root 10465: fi
1.1.1.22 root 10466: { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
10467: echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
1.1.1.19 root 10468: if test $ac_cv_type_off_t = yes; then
10469: :
10470: else
10471:
10472: cat >>confdefs.h <<_ACEOF
1.1.1.22 root 10473: #define off_t long int
1.1.1.19 root 10474: _ACEOF
1.1 root 10475:
10476: fi
10477:
1.1.1.22 root 10478: { echo "$as_me:$LINENO: checking for pid_t" >&5
10479: echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
1.1.1.19 root 10480: if test "${ac_cv_type_pid_t+set}" = set; then
10481: echo $ECHO_N "(cached) $ECHO_C" >&6
10482: else
10483: cat >conftest.$ac_ext <<_ACEOF
10484: /* confdefs.h. */
10485: _ACEOF
10486: cat confdefs.h >>conftest.$ac_ext
10487: cat >>conftest.$ac_ext <<_ACEOF
10488: /* end confdefs.h. */
10489: $ac_includes_default
1.1.1.22 root 10490: typedef pid_t ac__type_new_;
1.1.1.19 root 10491: int
10492: main ()
10493: {
1.1.1.22 root 10494: if ((ac__type_new_ *) 0)
1.1.1.19 root 10495: return 0;
1.1.1.22 root 10496: if (sizeof (ac__type_new_))
1.1.1.19 root 10497: return 0;
10498: ;
10499: return 0;
10500: }
10501: _ACEOF
10502: rm -f conftest.$ac_objext
1.1.1.22 root 10503: if { (ac_try="$ac_compile"
10504: case "(($ac_try" in
10505: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10506: *) ac_try_echo=$ac_try;;
10507: esac
10508: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10509: (eval "$ac_compile") 2>conftest.er1
1.1.1.19 root 10510: ac_status=$?
10511: grep -v '^ *+' conftest.er1 >conftest.err
10512: rm -f conftest.er1
10513: cat conftest.err >&5
10514: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.22 root 10515: (exit $ac_status); } && {
10516: test -z "$ac_c_werror_flag" ||
10517: test ! -s conftest.err
10518: } && test -s conftest.$ac_objext; then
1.1 root 10519: ac_cv_type_pid_t=yes
10520: else
1.1.1.19 root 10521: echo "$as_me: failed program was:" >&5
10522: sed 's/^/| /' conftest.$ac_ext >&5
1.1 root 10523:
1.1.1.22 root 10524: ac_cv_type_pid_t=no
1.1 root 10525: fi
1.1.1.22 root 10526:
10527: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1.1.19 root 10528: fi
1.1.1.22 root 10529: { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
10530: echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
1.1.1.19 root 10531: if test $ac_cv_type_pid_t = yes; then
10532: :
10533: else
10534:
10535: cat >>confdefs.h <<_ACEOF
1.1 root 10536: #define pid_t int
1.1.1.19 root 10537: _ACEOF
1.1 root 10538:
10539: fi
10540:
1.1.1.22 root 10541: { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
10542: echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
1.1.1.19 root 10543: if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
10544: echo $ECHO_N "(cached) $ECHO_C" >&6
10545: else
10546: cat >conftest.$ac_ext <<_ACEOF
10547: /* confdefs.h. */
10548: _ACEOF
10549: cat confdefs.h >>conftest.$ac_ext
10550: cat >>conftest.$ac_ext <<_ACEOF
10551: /* end confdefs.h. */
10552: $ac_includes_default
10553: int
10554: main ()
10555: {
10556: static struct stat ac_aggr;
10557: if (ac_aggr.st_blocks)
10558: return 0;
10559: ;
10560: return 0;
10561: }
10562: _ACEOF
10563: rm -f conftest.$ac_objext
1.1.1.22 root 10564: if { (ac_try="$ac_compile"
10565: case "(($ac_try" in
10566: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10567: *) ac_try_echo=$ac_try;;
10568: esac
10569: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10570: (eval "$ac_compile") 2>conftest.er1
1.1.1.19 root 10571: ac_status=$?
10572: grep -v '^ *+' conftest.er1 >conftest.err
10573: rm -f conftest.er1
10574: cat conftest.err >&5
10575: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.22 root 10576: (exit $ac_status); } && {
10577: test -z "$ac_c_werror_flag" ||
10578: test ! -s conftest.err
10579: } && test -s conftest.$ac_objext; then
1.1.1.19 root 10580: ac_cv_member_struct_stat_st_blocks=yes
10581: else
10582: echo "$as_me: failed program was:" >&5
10583: sed 's/^/| /' conftest.$ac_ext >&5
10584:
1.1.1.22 root 10585: cat >conftest.$ac_ext <<_ACEOF
1.1.1.19 root 10586: /* confdefs.h. */
10587: _ACEOF
10588: cat confdefs.h >>conftest.$ac_ext
10589: cat >>conftest.$ac_ext <<_ACEOF
10590: /* end confdefs.h. */
10591: $ac_includes_default
10592: int
10593: main ()
10594: {
10595: static struct stat ac_aggr;
10596: if (sizeof ac_aggr.st_blocks)
10597: return 0;
10598: ;
10599: return 0;
10600: }
10601: _ACEOF
10602: rm -f conftest.$ac_objext
1.1.1.22 root 10603: if { (ac_try="$ac_compile"
10604: case "(($ac_try" in
10605: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10606: *) ac_try_echo=$ac_try;;
10607: esac
10608: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10609: (eval "$ac_compile") 2>conftest.er1
1.1.1.19 root 10610: ac_status=$?
10611: grep -v '^ *+' conftest.er1 >conftest.err
10612: rm -f conftest.er1
10613: cat conftest.err >&5
10614: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.22 root 10615: (exit $ac_status); } && {
10616: test -z "$ac_c_werror_flag" ||
10617: test ! -s conftest.err
10618: } && test -s conftest.$ac_objext; then
1.1.1.19 root 10619: ac_cv_member_struct_stat_st_blocks=yes
10620: else
10621: echo "$as_me: failed program was:" >&5
10622: sed 's/^/| /' conftest.$ac_ext >&5
10623:
1.1.1.22 root 10624: ac_cv_member_struct_stat_st_blocks=no
1.1.1.19 root 10625: fi
1.1.1.22 root 10626:
10627: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1.1.19 root 10628: fi
1.1.1.22 root 10629:
10630: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1.1.19 root 10631: fi
1.1.1.22 root 10632: { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
10633: echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
1.1.1.19 root 10634: if test $ac_cv_member_struct_stat_st_blocks = yes; then
10635:
10636: cat >>confdefs.h <<_ACEOF
10637: #define HAVE_STRUCT_STAT_ST_BLOCKS 1
10638: _ACEOF
10639:
1.1 root 10640:
1.1.1.19 root 10641: cat >>confdefs.h <<\_ACEOF
1.1 root 10642: #define HAVE_ST_BLOCKS 1
1.1.1.19 root 10643: _ACEOF
1.1 root 10644:
10645: else
1.1.1.22 root 10646: case " $LIBOBJS " in
1.1.1.19 root 10647: *" fileblocks.$ac_objext "* ) ;;
1.1.1.22 root 10648: *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
10649: ;;
1.1.1.19 root 10650: esac
10651:
1.1 root 10652: fi
10653:
1.1.1.19 root 10654:
1.1.1.22 root 10655: { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
10656: echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
1.1.1.19 root 10657: if test "${ac_cv_header_time+set}" = set; then
10658: echo $ECHO_N "(cached) $ECHO_C" >&6
10659: else
10660: cat >conftest.$ac_ext <<_ACEOF
10661: /* confdefs.h. */
10662: _ACEOF
10663: cat confdefs.h >>conftest.$ac_ext
10664: cat >>conftest.$ac_ext <<_ACEOF
10665: /* end confdefs.h. */
1.1 root 10666: #include <sys/types.h>
10667: #include <sys/time.h>
10668: #include <time.h>
1.1.1.19 root 10669:
10670: int
10671: main ()
10672: {
10673: if ((struct tm *) 0)
10674: return 0;
10675: ;
10676: return 0;
10677: }
10678: _ACEOF
10679: rm -f conftest.$ac_objext
1.1.1.22 root 10680: if { (ac_try="$ac_compile"
10681: case "(($ac_try" in
10682: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10683: *) ac_try_echo=$ac_try;;
10684: esac
10685: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10686: (eval "$ac_compile") 2>conftest.er1
1.1.1.19 root 10687: ac_status=$?
10688: grep -v '^ *+' conftest.er1 >conftest.err
10689: rm -f conftest.er1
10690: cat conftest.err >&5
10691: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.22 root 10692: (exit $ac_status); } && {
10693: test -z "$ac_c_werror_flag" ||
10694: test ! -s conftest.err
10695: } && test -s conftest.$ac_objext; then
1.1 root 10696: ac_cv_header_time=yes
10697: else
1.1.1.19 root 10698: echo "$as_me: failed program was:" >&5
10699: sed 's/^/| /' conftest.$ac_ext >&5
10700:
1.1.1.22 root 10701: ac_cv_header_time=no
1.1 root 10702: fi
1.1.1.22 root 10703:
10704: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1 root 10705: fi
1.1.1.22 root 10706: { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
10707: echo "${ECHO_T}$ac_cv_header_time" >&6; }
1.1 root 10708: if test $ac_cv_header_time = yes; then
1.1.1.19 root 10709:
10710: cat >>confdefs.h <<\_ACEOF
1.1 root 10711: #define TIME_WITH_SYS_TIME 1
1.1.1.19 root 10712: _ACEOF
1.1 root 10713:
10714: fi
10715:
1.1.1.22 root 10716: { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
10717: echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
1.1.1.19 root 10718: if test "${ac_cv_struct_tm+set}" = set; then
10719: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 root 10720: else
1.1.1.19 root 10721: cat >conftest.$ac_ext <<_ACEOF
10722: /* confdefs.h. */
10723: _ACEOF
10724: cat confdefs.h >>conftest.$ac_ext
10725: cat >>conftest.$ac_ext <<_ACEOF
10726: /* end confdefs.h. */
1.1 root 10727: #include <sys/types.h>
10728: #include <time.h>
1.1.1.19 root 10729:
10730: int
10731: main ()
10732: {
1.1.1.22 root 10733: struct tm tm;
10734: int *p = &tm.tm_sec;
10735: return !p;
1.1.1.19 root 10736: ;
10737: return 0;
10738: }
10739: _ACEOF
10740: rm -f conftest.$ac_objext
1.1.1.22 root 10741: if { (ac_try="$ac_compile"
10742: case "(($ac_try" in
10743: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10744: *) ac_try_echo=$ac_try;;
10745: esac
10746: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10747: (eval "$ac_compile") 2>conftest.er1
1.1.1.19 root 10748: ac_status=$?
10749: grep -v '^ *+' conftest.er1 >conftest.err
10750: rm -f conftest.er1
10751: cat conftest.err >&5
10752: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.22 root 10753: (exit $ac_status); } && {
10754: test -z "$ac_c_werror_flag" ||
10755: test ! -s conftest.err
10756: } && test -s conftest.$ac_objext; then
1.1 root 10757: ac_cv_struct_tm=time.h
10758: else
1.1.1.19 root 10759: echo "$as_me: failed program was:" >&5
10760: sed 's/^/| /' conftest.$ac_ext >&5
10761:
1.1.1.22 root 10762: ac_cv_struct_tm=sys/time.h
1.1 root 10763: fi
1.1.1.22 root 10764:
10765: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1 root 10766: fi
1.1.1.22 root 10767: { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
10768: echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
1.1 root 10769: if test $ac_cv_struct_tm = sys/time.h; then
1.1.1.19 root 10770:
10771: cat >>confdefs.h <<\_ACEOF
1.1 root 10772: #define TM_IN_SYS_TIME 1
1.1.1.19 root 10773: _ACEOF
1.1 root 10774:
10775: fi
10776:
10777:
1.1.1.19 root 10778: if test $ac_cv_c_compiler_gnu = yes; then
1.1.1.22 root 10779: { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
10780: echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
1.1.1.19 root 10781: if test "${ac_cv_prog_gcc_traditional+set}" = set; then
10782: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 root 10783: else
10784: ac_pattern="Autoconf.*'x'"
1.1.1.19 root 10785: cat >conftest.$ac_ext <<_ACEOF
10786: /* confdefs.h. */
10787: _ACEOF
10788: cat confdefs.h >>conftest.$ac_ext
10789: cat >>conftest.$ac_ext <<_ACEOF
10790: /* end confdefs.h. */
1.1 root 10791: #include <sgtty.h>
10792: Autoconf TIOCGETP
1.1.1.19 root 10793: _ACEOF
1.1 root 10794: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1.1.1.19 root 10795: $EGREP "$ac_pattern" >/dev/null 2>&1; then
1.1 root 10796: ac_cv_prog_gcc_traditional=yes
10797: else
10798: ac_cv_prog_gcc_traditional=no
10799: fi
10800: rm -f conftest*
10801:
10802:
10803: if test $ac_cv_prog_gcc_traditional = no; then
1.1.1.19 root 10804: cat >conftest.$ac_ext <<_ACEOF
10805: /* confdefs.h. */
10806: _ACEOF
10807: cat confdefs.h >>conftest.$ac_ext
10808: cat >>conftest.$ac_ext <<_ACEOF
10809: /* end confdefs.h. */
1.1 root 10810: #include <termio.h>
10811: Autoconf TCGETA
1.1.1.19 root 10812: _ACEOF
1.1 root 10813: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1.1.1.19 root 10814: $EGREP "$ac_pattern" >/dev/null 2>&1; then
1.1 root 10815: ac_cv_prog_gcc_traditional=yes
10816: fi
10817: rm -f conftest*
10818:
10819: fi
10820: fi
1.1.1.22 root 10821: { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
10822: echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
1.1 root 10823: if test $ac_cv_prog_gcc_traditional = yes; then
10824: CC="$CC -traditional"
10825: fi
10826: fi
10827:
1.1.1.22 root 10828: { echo "$as_me:$LINENO: checking for working memcmp" >&5
10829: echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; }
1.1.1.19 root 10830: if test "${ac_cv_func_memcmp_working+set}" = set; then
10831: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 root 10832: else
10833: if test "$cross_compiling" = yes; then
1.1.1.19 root 10834: ac_cv_func_memcmp_working=no
1.1 root 10835: else
1.1.1.19 root 10836: cat >conftest.$ac_ext <<_ACEOF
10837: /* confdefs.h. */
10838: _ACEOF
10839: cat confdefs.h >>conftest.$ac_ext
10840: cat >>conftest.$ac_ext <<_ACEOF
10841: /* end confdefs.h. */
10842: $ac_includes_default
10843: int
10844: main ()
1.1 root 10845: {
1.1.1.19 root 10846:
10847: /* Some versions of memcmp are not 8-bit clean. */
1.1.1.22 root 10848: char c0 = '\100', c1 = '\200', c2 = '\201';
1.1.1.19 root 10849: if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
1.1.1.22 root 10850: return 1;
1.1 root 10851:
1.1.1.19 root 10852: /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
10853: or more and with at least one buffer not starting on a 4-byte boundary.
10854: William Lewis provided this test program. */
10855: {
10856: char foo[21];
10857: char bar[21];
10858: int i;
10859: for (i = 0; i < 4; i++)
10860: {
10861: char *a = foo + i;
10862: char *b = bar + i;
10863: strcpy (a, "--------01111111");
10864: strcpy (b, "--------10000000");
10865: if (memcmp (a, b, 16) >= 0)
1.1.1.22 root 10866: return 1;
1.1.1.19 root 10867: }
1.1.1.22 root 10868: return 0;
1.1.1.19 root 10869: }
1.1 root 10870:
1.1.1.19 root 10871: ;
10872: return 0;
10873: }
10874: _ACEOF
10875: rm -f conftest$ac_exeext
1.1.1.22 root 10876: if { (ac_try="$ac_link"
10877: case "(($ac_try" in
10878: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10879: *) ac_try_echo=$ac_try;;
10880: esac
10881: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10882: (eval "$ac_link") 2>&5
1.1.1.19 root 10883: ac_status=$?
10884: echo "$as_me:$LINENO: \$? = $ac_status" >&5
10885: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
1.1.1.22 root 10886: { (case "(($ac_try" in
10887: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10888: *) ac_try_echo=$ac_try;;
10889: esac
10890: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10891: (eval "$ac_try") 2>&5
1.1.1.19 root 10892: ac_status=$?
10893: echo "$as_me:$LINENO: \$? = $ac_status" >&5
10894: (exit $ac_status); }; }; then
10895: ac_cv_func_memcmp_working=yes
10896: else
10897: echo "$as_me: program exited with status $ac_status" >&5
10898: echo "$as_me: failed program was:" >&5
10899: sed 's/^/| /' conftest.$ac_ext >&5
10900:
10901: ( exit $ac_status )
10902: ac_cv_func_memcmp_working=no
10903: fi
1.1.1.22 root 10904: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.1.1.19 root 10905: fi
1.1.1.22 root 10906:
10907:
1.1.1.19 root 10908: fi
1.1.1.22 root 10909: { echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
10910: echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; }
10911: test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
1.1.1.19 root 10912: *" memcmp.$ac_objext "* ) ;;
1.1.1.22 root 10913: *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
10914: ;;
1.1.1.19 root 10915: esac
1.1.1.4 root 10916:
1.1 root 10917:
1.1.1.22 root 10918: { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
10919: echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
1.1.1.19 root 10920: if test "${ac_cv_type_signal+set}" = set; then
10921: echo $ECHO_N "(cached) $ECHO_C" >&6
10922: else
10923: cat >conftest.$ac_ext <<_ACEOF
10924: /* confdefs.h. */
10925: _ACEOF
10926: cat confdefs.h >>conftest.$ac_ext
10927: cat >>conftest.$ac_ext <<_ACEOF
10928: /* end confdefs.h. */
1.1 root 10929: #include <sys/types.h>
10930: #include <signal.h>
10931:
1.1.1.19 root 10932: int
10933: main ()
10934: {
1.1.1.22 root 10935: return *(signal (0, 0)) (0) == 1;
1.1.1.19 root 10936: ;
10937: return 0;
10938: }
10939: _ACEOF
10940: rm -f conftest.$ac_objext
1.1.1.22 root 10941: if { (ac_try="$ac_compile"
10942: case "(($ac_try" in
10943: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10944: *) ac_try_echo=$ac_try;;
10945: esac
10946: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10947: (eval "$ac_compile") 2>conftest.er1
1.1.1.19 root 10948: ac_status=$?
10949: grep -v '^ *+' conftest.er1 >conftest.err
10950: rm -f conftest.er1
10951: cat conftest.err >&5
10952: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.22 root 10953: (exit $ac_status); } && {
10954: test -z "$ac_c_werror_flag" ||
10955: test ! -s conftest.err
10956: } && test -s conftest.$ac_objext; then
10957: ac_cv_type_signal=int
1.1 root 10958: else
1.1.1.19 root 10959: echo "$as_me: failed program was:" >&5
10960: sed 's/^/| /' conftest.$ac_ext >&5
10961:
1.1.1.22 root 10962: ac_cv_type_signal=void
1.1 root 10963: fi
1.1.1.22 root 10964:
10965: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1 root 10966: fi
1.1.1.22 root 10967: { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
10968: echo "${ECHO_T}$ac_cv_type_signal" >&6; }
1.1 root 10969:
1.1.1.19 root 10970: cat >>confdefs.h <<_ACEOF
1.1 root 10971: #define RETSIGTYPE $ac_cv_type_signal
1.1.1.19 root 10972: _ACEOF
1.1 root 10973:
10974:
1.1.1.22 root 10975:
10976:
10977:
10978:
10979: for ac_header in $ac_header_list
10980: do
10981: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10982: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10983: { echo "$as_me:$LINENO: checking for $ac_header" >&5
10984: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10985: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10986: echo $ECHO_N "(cached) $ECHO_C" >&6
10987: fi
10988: ac_res=`eval echo '${'$as_ac_Header'}'`
10989: { echo "$as_me:$LINENO: result: $ac_res" >&5
10990: echo "${ECHO_T}$ac_res" >&6; }
10991: else
10992: # Is the header compilable?
10993: { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10994: echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10995: cat >conftest.$ac_ext <<_ACEOF
10996: /* confdefs.h. */
10997: _ACEOF
10998: cat confdefs.h >>conftest.$ac_ext
10999: cat >>conftest.$ac_ext <<_ACEOF
11000: /* end confdefs.h. */
11001: $ac_includes_default
11002: #include <$ac_header>
11003: _ACEOF
11004: rm -f conftest.$ac_objext
11005: if { (ac_try="$ac_compile"
11006: case "(($ac_try" in
11007: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11008: *) ac_try_echo=$ac_try;;
11009: esac
11010: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11011: (eval "$ac_compile") 2>conftest.er1
11012: ac_status=$?
11013: grep -v '^ *+' conftest.er1 >conftest.err
11014: rm -f conftest.er1
11015: cat conftest.err >&5
11016: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11017: (exit $ac_status); } && {
11018: test -z "$ac_c_werror_flag" ||
11019: test ! -s conftest.err
11020: } && test -s conftest.$ac_objext; then
11021: ac_header_compiler=yes
11022: else
11023: echo "$as_me: failed program was:" >&5
11024: sed 's/^/| /' conftest.$ac_ext >&5
11025:
11026: ac_header_compiler=no
11027: fi
11028:
11029: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11030: { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11031: echo "${ECHO_T}$ac_header_compiler" >&6; }
11032:
11033: # Is the header present?
11034: { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11035: echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11036: cat >conftest.$ac_ext <<_ACEOF
11037: /* confdefs.h. */
11038: _ACEOF
11039: cat confdefs.h >>conftest.$ac_ext
11040: cat >>conftest.$ac_ext <<_ACEOF
11041: /* end confdefs.h. */
11042: #include <$ac_header>
11043: _ACEOF
11044: if { (ac_try="$ac_cpp conftest.$ac_ext"
11045: case "(($ac_try" in
11046: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11047: *) ac_try_echo=$ac_try;;
11048: esac
11049: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11050: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11051: ac_status=$?
11052: grep -v '^ *+' conftest.er1 >conftest.err
11053: rm -f conftest.er1
11054: cat conftest.err >&5
11055: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11056: (exit $ac_status); } >/dev/null && {
11057: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11058: test ! -s conftest.err
11059: }; then
11060: ac_header_preproc=yes
11061: else
11062: echo "$as_me: failed program was:" >&5
11063: sed 's/^/| /' conftest.$ac_ext >&5
11064:
11065: ac_header_preproc=no
11066: fi
11067:
11068: rm -f conftest.err conftest.$ac_ext
11069: { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11070: echo "${ECHO_T}$ac_header_preproc" >&6; }
11071:
11072: # So? What about this header?
11073: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11074: yes:no: )
11075: { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11076: echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11077: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11078: echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11079: ac_header_preproc=yes
11080: ;;
11081: no:yes:* )
11082: { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11083: echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11084: { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11085: echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11086: { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11087: echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11088: { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11089: echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11090: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11091: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11092: { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11093: echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11094:
11095: ;;
11096: esac
11097: { echo "$as_me:$LINENO: checking for $ac_header" >&5
11098: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11099: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11100: echo $ECHO_N "(cached) $ECHO_C" >&6
11101: else
11102: eval "$as_ac_Header=\$ac_header_preproc"
11103: fi
11104: ac_res=`eval echo '${'$as_ac_Header'}'`
11105: { echo "$as_me:$LINENO: result: $ac_res" >&5
11106: echo "${ECHO_T}$ac_res" >&6; }
11107:
11108: fi
11109: if test `eval echo '${'$as_ac_Header'}'` = yes; then
11110: cat >>confdefs.h <<_ACEOF
11111: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11112: _ACEOF
11113:
11114: fi
11115:
11116: done
11117:
11118:
11119:
11120:
11121:
11122:
11123:
11124:
11125:
11126: { echo "$as_me:$LINENO: checking whether utime accepts a null argument" >&5
11127: echo $ECHO_N "checking whether utime accepts a null argument... $ECHO_C" >&6; }
11128: if test "${ac_cv_func_utime_null+set}" = set; then
11129: echo $ECHO_N "(cached) $ECHO_C" >&6
11130: else
11131: rm -f conftest.data; >conftest.data
1.1 root 11132: # Sequent interprets utime(file, 0) to mean use start of epoch. Wrong.
11133: if test "$cross_compiling" = yes; then
11134: ac_cv_func_utime_null=no
11135: else
1.1.1.19 root 11136: cat >conftest.$ac_ext <<_ACEOF
11137: /* confdefs.h. */
11138: _ACEOF
11139: cat confdefs.h >>conftest.$ac_ext
11140: cat >>conftest.$ac_ext <<_ACEOF
11141: /* end confdefs.h. */
11142: $ac_includes_default
1.1.1.22 root 11143: #ifdef HAVE_UTIME_H
11144: # include <utime.h>
11145: #endif
1.1.1.19 root 11146: int
11147: main ()
11148: {
1.1 root 11149: struct stat s, t;
1.1.1.22 root 11150: return ! (stat ("conftest.data", &s) == 0
11151: && utime ("conftest.data", 0) == 0
11152: && stat ("conftest.data", &t) == 0
11153: && t.st_mtime >= s.st_mtime
11154: && t.st_mtime - s.st_mtime < 120);
1.1.1.19 root 11155: ;
11156: return 0;
1.1 root 11157: }
1.1.1.19 root 11158: _ACEOF
11159: rm -f conftest$ac_exeext
1.1.1.22 root 11160: if { (ac_try="$ac_link"
11161: case "(($ac_try" in
11162: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11163: *) ac_try_echo=$ac_try;;
11164: esac
11165: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11166: (eval "$ac_link") 2>&5
1.1.1.19 root 11167: ac_status=$?
11168: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11169: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
1.1.1.22 root 11170: { (case "(($ac_try" in
11171: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11172: *) ac_try_echo=$ac_try;;
11173: esac
11174: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11175: (eval "$ac_try") 2>&5
1.1.1.19 root 11176: ac_status=$?
11177: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11178: (exit $ac_status); }; }; then
1.1 root 11179: ac_cv_func_utime_null=yes
11180: else
1.1.1.19 root 11181: echo "$as_me: program exited with status $ac_status" >&5
11182: echo "$as_me: failed program was:" >&5
11183: sed 's/^/| /' conftest.$ac_ext >&5
11184:
11185: ( exit $ac_status )
11186: ac_cv_func_utime_null=no
1.1 root 11187: fi
1.1.1.22 root 11188: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.1.1.4 root 11189: fi
1.1.1.22 root 11190:
11191:
1.1 root 11192: fi
1.1.1.22 root 11193: { echo "$as_me:$LINENO: result: $ac_cv_func_utime_null" >&5
11194: echo "${ECHO_T}$ac_cv_func_utime_null" >&6; }
1.1 root 11195: if test $ac_cv_func_utime_null = yes; then
1.1.1.19 root 11196:
11197: cat >>confdefs.h <<\_ACEOF
1.1 root 11198: #define HAVE_UTIME_NULL 1
1.1.1.19 root 11199: _ACEOF
1.1 root 11200:
11201: fi
1.1.1.19 root 11202: rm -f conftest.data
11203:
11204:
11205:
11206:
11207:
11208:
11209:
1.1 root 11210:
1.1.1.16 root 11211: for ac_func in getcwd getopt strdup gettimeofday sigaction mkdir rmdir
11212: do
1.1.1.19 root 11213: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
1.1.1.22 root 11214: { echo "$as_me:$LINENO: checking for $ac_func" >&5
11215: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11216: if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
1.1.1.19 root 11217: echo $ECHO_N "(cached) $ECHO_C" >&6
11218: else
11219: cat >conftest.$ac_ext <<_ACEOF
11220: /* confdefs.h. */
11221: _ACEOF
11222: cat confdefs.h >>conftest.$ac_ext
11223: cat >>conftest.$ac_ext <<_ACEOF
11224: /* end confdefs.h. */
11225: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11226: For example, HP-UX 11i <limits.h> declares gettimeofday. */
11227: #define $ac_func innocuous_$ac_func
11228:
1.1.1.16 root 11229: /* System header to define __stub macros and hopefully few prototypes,
1.1.1.19 root 11230: which can conflict with char $ac_func (); below.
11231: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11232: <limits.h> exists even on freestanding compilers. */
11233:
11234: #ifdef __STDC__
11235: # include <limits.h>
11236: #else
11237: # include <assert.h>
11238: #endif
1.1.1.16 root 11239:
1.1.1.19 root 11240: #undef $ac_func
1.1.1.16 root 11241:
1.1.1.22 root 11242: /* Override any GCC internal prototype to avoid an error.
11243: Use char because int might match the return type of a GCC
11244: builtin and then its argument prototype would still apply. */
1.1.1.19 root 11245: #ifdef __cplusplus
11246: extern "C"
11247: #endif
11248: char $ac_func ();
1.1.1.16 root 11249: /* The GNU C library defines this for functions which it implements
11250: to always fail with ENOSYS. Some functions are actually named
11251: something starting with __ and the normal name is an alias. */
1.1.1.22 root 11252: #if defined __stub_$ac_func || defined __stub___$ac_func
1.1.1.16 root 11253: choke me
11254: #endif
11255:
1.1.1.19 root 11256: int
11257: main ()
11258: {
1.1.1.22 root 11259: return $ac_func ();
1.1.1.19 root 11260: ;
11261: return 0;
11262: }
11263: _ACEOF
11264: rm -f conftest.$ac_objext conftest$ac_exeext
1.1.1.22 root 11265: if { (ac_try="$ac_link"
11266: case "(($ac_try" in
11267: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11268: *) ac_try_echo=$ac_try;;
11269: esac
11270: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11271: (eval "$ac_link") 2>conftest.er1
1.1.1.19 root 11272: ac_status=$?
11273: grep -v '^ *+' conftest.er1 >conftest.err
11274: rm -f conftest.er1
11275: cat conftest.err >&5
11276: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.22 root 11277: (exit $ac_status); } && {
11278: test -z "$ac_c_werror_flag" ||
11279: test ! -s conftest.err
11280: } && test -s conftest$ac_exeext &&
11281: $as_test_x conftest$ac_exeext; then
1.1.1.19 root 11282: eval "$as_ac_var=yes"
11283: else
11284: echo "$as_me: failed program was:" >&5
11285: sed 's/^/| /' conftest.$ac_ext >&5
11286:
1.1.1.22 root 11287: eval "$as_ac_var=no"
1.1.1.19 root 11288: fi
1.1.1.22 root 11289:
11290: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.1.1.19 root 11291: conftest$ac_exeext conftest.$ac_ext
11292: fi
1.1.1.22 root 11293: ac_res=`eval echo '${'$as_ac_var'}'`
11294: { echo "$as_me:$LINENO: result: $ac_res" >&5
11295: echo "${ECHO_T}$ac_res" >&6; }
1.1.1.19 root 11296: if test `eval echo '${'$as_ac_var'}'` = yes; then
11297: cat >>confdefs.h <<_ACEOF
11298: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11299: _ACEOF
1.1.1.16 root 11300:
11301: fi
11302: done
11303:
1.1.1.19 root 11304:
11305:
11306:
11307:
11308:
11309:
1.1.1.16 root 11310: for ac_func in select strerror strstr isnan isinf setitimer
1.1.1.6 root 11311: do
1.1.1.19 root 11312: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
1.1.1.22 root 11313: { echo "$as_me:$LINENO: checking for $ac_func" >&5
11314: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11315: if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
1.1.1.19 root 11316: echo $ECHO_N "(cached) $ECHO_C" >&6
11317: else
11318: cat >conftest.$ac_ext <<_ACEOF
11319: /* confdefs.h. */
11320: _ACEOF
11321: cat confdefs.h >>conftest.$ac_ext
11322: cat >>conftest.$ac_ext <<_ACEOF
11323: /* end confdefs.h. */
11324: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11325: For example, HP-UX 11i <limits.h> declares gettimeofday. */
11326: #define $ac_func innocuous_$ac_func
11327:
1.1.1.6 root 11328: /* System header to define __stub macros and hopefully few prototypes,
1.1.1.19 root 11329: which can conflict with char $ac_func (); below.
11330: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11331: <limits.h> exists even on freestanding compilers. */
11332:
11333: #ifdef __STDC__
11334: # include <limits.h>
11335: #else
11336: # include <assert.h>
11337: #endif
1.1.1.6 root 11338:
1.1.1.19 root 11339: #undef $ac_func
1.1.1.6 root 11340:
1.1.1.22 root 11341: /* Override any GCC internal prototype to avoid an error.
11342: Use char because int might match the return type of a GCC
11343: builtin and then its argument prototype would still apply. */
1.1.1.19 root 11344: #ifdef __cplusplus
11345: extern "C"
11346: #endif
11347: char $ac_func ();
1.1.1.6 root 11348: /* The GNU C library defines this for functions which it implements
11349: to always fail with ENOSYS. Some functions are actually named
11350: something starting with __ and the normal name is an alias. */
1.1.1.22 root 11351: #if defined __stub_$ac_func || defined __stub___$ac_func
1.1.1.6 root 11352: choke me
11353: #endif
11354:
1.1.1.19 root 11355: int
11356: main ()
11357: {
1.1.1.22 root 11358: return $ac_func ();
1.1.1.19 root 11359: ;
11360: return 0;
11361: }
11362: _ACEOF
11363: rm -f conftest.$ac_objext conftest$ac_exeext
1.1.1.22 root 11364: if { (ac_try="$ac_link"
11365: case "(($ac_try" in
11366: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11367: *) ac_try_echo=$ac_try;;
11368: esac
11369: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11370: (eval "$ac_link") 2>conftest.er1
1.1.1.19 root 11371: ac_status=$?
11372: grep -v '^ *+' conftest.er1 >conftest.err
11373: rm -f conftest.er1
11374: cat conftest.err >&5
11375: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.22 root 11376: (exit $ac_status); } && {
11377: test -z "$ac_c_werror_flag" ||
11378: test ! -s conftest.err
11379: } && test -s conftest$ac_exeext &&
11380: $as_test_x conftest$ac_exeext; then
1.1.1.19 root 11381: eval "$as_ac_var=yes"
11382: else
11383: echo "$as_me: failed program was:" >&5
11384: sed 's/^/| /' conftest.$ac_ext >&5
11385:
1.1.1.22 root 11386: eval "$as_ac_var=no"
1.1.1.19 root 11387: fi
1.1.1.22 root 11388:
11389: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.1.1.19 root 11390: conftest$ac_exeext conftest.$ac_ext
11391: fi
1.1.1.22 root 11392: ac_res=`eval echo '${'$as_ac_var'}'`
11393: { echo "$as_me:$LINENO: result: $ac_res" >&5
11394: echo "${ECHO_T}$ac_res" >&6; }
1.1.1.19 root 11395: if test `eval echo '${'$as_ac_var'}'` = yes; then
11396: cat >>confdefs.h <<_ACEOF
11397: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11398: _ACEOF
1.1.1.6 root 11399:
11400: fi
11401: done
11402:
1.1.1.19 root 11403:
11404:
11405:
11406:
11407:
11408:
1.1.1.6 root 11409: for ac_func in tcgetattr cfmakeraw readdir_r vprintf vsprintf vfprintf
1.1 root 11410: do
1.1.1.19 root 11411: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
1.1.1.22 root 11412: { echo "$as_me:$LINENO: checking for $ac_func" >&5
11413: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11414: if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
1.1.1.19 root 11415: echo $ECHO_N "(cached) $ECHO_C" >&6
11416: else
11417: cat >conftest.$ac_ext <<_ACEOF
11418: /* confdefs.h. */
11419: _ACEOF
11420: cat confdefs.h >>conftest.$ac_ext
11421: cat >>conftest.$ac_ext <<_ACEOF
11422: /* end confdefs.h. */
11423: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11424: For example, HP-UX 11i <limits.h> declares gettimeofday. */
11425: #define $ac_func innocuous_$ac_func
11426:
1.1 root 11427: /* System header to define __stub macros and hopefully few prototypes,
1.1.1.19 root 11428: which can conflict with char $ac_func (); below.
11429: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11430: <limits.h> exists even on freestanding compilers. */
11431:
11432: #ifdef __STDC__
11433: # include <limits.h>
11434: #else
11435: # include <assert.h>
11436: #endif
1.1 root 11437:
1.1.1.19 root 11438: #undef $ac_func
1.1 root 11439:
1.1.1.22 root 11440: /* Override any GCC internal prototype to avoid an error.
11441: Use char because int might match the return type of a GCC
11442: builtin and then its argument prototype would still apply. */
1.1.1.19 root 11443: #ifdef __cplusplus
11444: extern "C"
11445: #endif
11446: char $ac_func ();
1.1 root 11447: /* The GNU C library defines this for functions which it implements
11448: to always fail with ENOSYS. Some functions are actually named
11449: something starting with __ and the normal name is an alias. */
1.1.1.22 root 11450: #if defined __stub_$ac_func || defined __stub___$ac_func
1.1 root 11451: choke me
11452: #endif
11453:
1.1.1.19 root 11454: int
11455: main ()
11456: {
1.1.1.22 root 11457: return $ac_func ();
1.1.1.19 root 11458: ;
11459: return 0;
11460: }
11461: _ACEOF
11462: rm -f conftest.$ac_objext conftest$ac_exeext
1.1.1.22 root 11463: if { (ac_try="$ac_link"
11464: case "(($ac_try" in
11465: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11466: *) ac_try_echo=$ac_try;;
11467: esac
11468: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11469: (eval "$ac_link") 2>conftest.er1
1.1.1.19 root 11470: ac_status=$?
11471: grep -v '^ *+' conftest.er1 >conftest.err
11472: rm -f conftest.er1
11473: cat conftest.err >&5
11474: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.22 root 11475: (exit $ac_status); } && {
11476: test -z "$ac_c_werror_flag" ||
11477: test ! -s conftest.err
11478: } && test -s conftest$ac_exeext &&
11479: $as_test_x conftest$ac_exeext; then
1.1.1.19 root 11480: eval "$as_ac_var=yes"
11481: else
11482: echo "$as_me: failed program was:" >&5
11483: sed 's/^/| /' conftest.$ac_ext >&5
11484:
1.1.1.22 root 11485: eval "$as_ac_var=no"
1.1.1.19 root 11486: fi
1.1.1.22 root 11487:
11488: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.1.1.19 root 11489: conftest$ac_exeext conftest.$ac_ext
11490: fi
1.1.1.22 root 11491: ac_res=`eval echo '${'$as_ac_var'}'`
11492: { echo "$as_me:$LINENO: result: $ac_res" >&5
11493: echo "${ECHO_T}$ac_res" >&6; }
1.1.1.19 root 11494: if test `eval echo '${'$as_ac_var'}'` = yes; then
11495: cat >>confdefs.h <<_ACEOF
11496: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11497: _ACEOF
1.1.1.4 root 11498:
11499: fi
1.1.1.6 root 11500: done
11501:
11502:
11503: DO_FILEUTILS_CHECK=yes
1.1.1.19 root 11504: if test $uae_cv_prog_cc_watcom = yes -o $MINGW32 = yes; then
1.1.1.6 root 11505: DO_FILEUTILS_CHECK=no
11506: fi
11507: if test $DO_FILEUTILS_CHECK = yes; then
1.1.1.19 root 11508:
11509:
11510:
11511:
11512:
11513:
11514:
11515:
11516:
11517:
11518:
11519:
11520:
11521: for ac_header in fcntl.h sys/param.h sys/statfs.h sys/fstyp.h \
1.1.1.6 root 11522: mnttab.h mntent.h sys/statvfs.h sys/vfs.h sys/mount.h \
11523: sys/filsys.h sys/fs_types.h sys/fs/s5param.h
11524: do
1.1.1.19 root 11525: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
1.1.1.22 root 11526: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11527: { echo "$as_me:$LINENO: checking for $ac_header" >&5
11528: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11529: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1.1.1.19 root 11530: echo $ECHO_N "(cached) $ECHO_C" >&6
11531: fi
1.1.1.22 root 11532: ac_res=`eval echo '${'$as_ac_Header'}'`
11533: { echo "$as_me:$LINENO: result: $ac_res" >&5
11534: echo "${ECHO_T}$ac_res" >&6; }
1.1.1.19 root 11535: else
11536: # Is the header compilable?
1.1.1.22 root 11537: { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11538: echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
1.1.1.19 root 11539: cat >conftest.$ac_ext <<_ACEOF
11540: /* confdefs.h. */
11541: _ACEOF
11542: cat confdefs.h >>conftest.$ac_ext
11543: cat >>conftest.$ac_ext <<_ACEOF
11544: /* end confdefs.h. */
11545: $ac_includes_default
11546: #include <$ac_header>
11547: _ACEOF
11548: rm -f conftest.$ac_objext
1.1.1.22 root 11549: if { (ac_try="$ac_compile"
11550: case "(($ac_try" in
11551: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11552: *) ac_try_echo=$ac_try;;
11553: esac
11554: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11555: (eval "$ac_compile") 2>conftest.er1
1.1.1.19 root 11556: ac_status=$?
11557: grep -v '^ *+' conftest.er1 >conftest.err
11558: rm -f conftest.er1
11559: cat conftest.err >&5
11560: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.22 root 11561: (exit $ac_status); } && {
11562: test -z "$ac_c_werror_flag" ||
11563: test ! -s conftest.err
11564: } && test -s conftest.$ac_objext; then
1.1.1.19 root 11565: ac_header_compiler=yes
11566: else
11567: echo "$as_me: failed program was:" >&5
11568: sed 's/^/| /' conftest.$ac_ext >&5
11569:
1.1.1.22 root 11570: ac_header_compiler=no
1.1.1.19 root 11571: fi
1.1.1.22 root 11572:
11573: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11574: { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11575: echo "${ECHO_T}$ac_header_compiler" >&6; }
1.1.1.19 root 11576:
11577: # Is the header present?
1.1.1.22 root 11578: { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11579: echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
1.1.1.19 root 11580: cat >conftest.$ac_ext <<_ACEOF
11581: /* confdefs.h. */
11582: _ACEOF
11583: cat confdefs.h >>conftest.$ac_ext
11584: cat >>conftest.$ac_ext <<_ACEOF
11585: /* end confdefs.h. */
11586: #include <$ac_header>
11587: _ACEOF
1.1.1.22 root 11588: if { (ac_try="$ac_cpp conftest.$ac_ext"
11589: case "(($ac_try" in
11590: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11591: *) ac_try_echo=$ac_try;;
11592: esac
11593: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11594: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
1.1.1.19 root 11595: ac_status=$?
11596: grep -v '^ *+' conftest.er1 >conftest.err
11597: rm -f conftest.er1
11598: cat conftest.err >&5
11599: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.22 root 11600: (exit $ac_status); } >/dev/null && {
11601: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11602: test ! -s conftest.err
11603: }; then
1.1.1.19 root 11604: ac_header_preproc=yes
11605: else
11606: echo "$as_me: failed program was:" >&5
11607: sed 's/^/| /' conftest.$ac_ext >&5
11608:
11609: ac_header_preproc=no
1.1.1.6 root 11610: fi
1.1.1.22 root 11611:
1.1.1.19 root 11612: rm -f conftest.err conftest.$ac_ext
1.1.1.22 root 11613: { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11614: echo "${ECHO_T}$ac_header_preproc" >&6; }
1.1.1.19 root 11615:
11616: # So? What about this header?
11617: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11618: yes:no: )
11619: { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11620: echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11621: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11622: echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11623: ac_header_preproc=yes
11624: ;;
11625: no:yes:* )
11626: { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11627: echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11628: { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11629: echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11630: { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11631: echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11632: { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11633: echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11634: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11635: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11636: { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11637: echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
1.1.1.22 root 11638:
1.1.1.19 root 11639: ;;
11640: esac
1.1.1.22 root 11641: { echo "$as_me:$LINENO: checking for $ac_header" >&5
11642: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11643: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1.1.1.19 root 11644: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1.1.6 root 11645: else
1.1.1.19 root 11646: eval "$as_ac_Header=\$ac_header_preproc"
11647: fi
1.1.1.22 root 11648: ac_res=`eval echo '${'$as_ac_Header'}'`
11649: { echo "$as_me:$LINENO: result: $ac_res" >&5
11650: echo "${ECHO_T}$ac_res" >&6; }
1.1.1.19 root 11651:
11652: fi
11653: if test `eval echo '${'$as_ac_Header'}'` = yes; then
11654: cat >>confdefs.h <<_ACEOF
11655: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11656: _ACEOF
11657:
1.1.1.6 root 11658: fi
1.1.1.19 root 11659:
1.1.1.6 root 11660: done
11661:
11662:
1.1.1.19 root 11663:
11664:
11665:
11666:
11667:
11668:
11669:
11670:
11671:
11672:
11673:
11674:
11675:
11676:
11677:
11678:
11679:
1.1.1.6 root 11680: for ac_func in bcopy endgrent endpwent fchdir ftime ftruncate \
11681: getcwd getmntinfo gettimeofday isascii lchown \
11682: listmntent memcpy mkfifo strchr strerror strrchr
11683: do
1.1.1.19 root 11684: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
1.1.1.22 root 11685: { echo "$as_me:$LINENO: checking for $ac_func" >&5
11686: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11687: if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
1.1.1.19 root 11688: echo $ECHO_N "(cached) $ECHO_C" >&6
11689: else
11690: cat >conftest.$ac_ext <<_ACEOF
11691: /* confdefs.h. */
11692: _ACEOF
11693: cat confdefs.h >>conftest.$ac_ext
11694: cat >>conftest.$ac_ext <<_ACEOF
11695: /* end confdefs.h. */
11696: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11697: For example, HP-UX 11i <limits.h> declares gettimeofday. */
11698: #define $ac_func innocuous_$ac_func
11699:
1.1.1.6 root 11700: /* System header to define __stub macros and hopefully few prototypes,
1.1.1.19 root 11701: which can conflict with char $ac_func (); below.
11702: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11703: <limits.h> exists even on freestanding compilers. */
11704:
11705: #ifdef __STDC__
11706: # include <limits.h>
11707: #else
11708: # include <assert.h>
11709: #endif
1.1.1.6 root 11710:
1.1.1.19 root 11711: #undef $ac_func
1.1.1.6 root 11712:
1.1.1.22 root 11713: /* Override any GCC internal prototype to avoid an error.
11714: Use char because int might match the return type of a GCC
11715: builtin and then its argument prototype would still apply. */
1.1.1.19 root 11716: #ifdef __cplusplus
11717: extern "C"
11718: #endif
11719: char $ac_func ();
1.1.1.6 root 11720: /* The GNU C library defines this for functions which it implements
11721: to always fail with ENOSYS. Some functions are actually named
11722: something starting with __ and the normal name is an alias. */
1.1.1.22 root 11723: #if defined __stub_$ac_func || defined __stub___$ac_func
1.1.1.6 root 11724: choke me
11725: #endif
11726:
1.1.1.19 root 11727: int
11728: main ()
11729: {
1.1.1.22 root 11730: return $ac_func ();
1.1.1.19 root 11731: ;
11732: return 0;
11733: }
11734: _ACEOF
11735: rm -f conftest.$ac_objext conftest$ac_exeext
1.1.1.22 root 11736: if { (ac_try="$ac_link"
11737: case "(($ac_try" in
11738: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11739: *) ac_try_echo=$ac_try;;
11740: esac
11741: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11742: (eval "$ac_link") 2>conftest.er1
1.1.1.19 root 11743: ac_status=$?
11744: grep -v '^ *+' conftest.er1 >conftest.err
11745: rm -f conftest.er1
11746: cat conftest.err >&5
11747: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.22 root 11748: (exit $ac_status); } && {
11749: test -z "$ac_c_werror_flag" ||
11750: test ! -s conftest.err
11751: } && test -s conftest$ac_exeext &&
11752: $as_test_x conftest$ac_exeext; then
1.1.1.19 root 11753: eval "$as_ac_var=yes"
11754: else
11755: echo "$as_me: failed program was:" >&5
11756: sed 's/^/| /' conftest.$ac_ext >&5
11757:
1.1.1.22 root 11758: eval "$as_ac_var=no"
1.1.1.19 root 11759: fi
1.1.1.22 root 11760:
11761: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.1.1.19 root 11762: conftest$ac_exeext conftest.$ac_ext
11763: fi
1.1.1.22 root 11764: ac_res=`eval echo '${'$as_ac_var'}'`
11765: { echo "$as_me:$LINENO: result: $ac_res" >&5
11766: echo "${ECHO_T}$ac_res" >&6; }
1.1.1.19 root 11767: if test `eval echo '${'$as_ac_var'}'` = yes; then
11768: cat >>confdefs.h <<_ACEOF
11769: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11770: _ACEOF
1.1.1.6 root 11771:
11772: fi
11773: done
11774:
11775:
11776: # Determine how to get the list of mounted filesystems.
11777: list_mounted_fs=
11778:
11779: # If the getmntent function is available but not in the standard library,
11780: # make sure LIBS contains -lsun (on Irix4) or -lseq (on PTX).
1.1.1.22 root 11781: # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
11782: # -lseq on Dynix/PTX, -lgen on Unixware.
11783: { echo "$as_me:$LINENO: checking for library containing getmntent" >&5
11784: echo $ECHO_N "checking for library containing getmntent... $ECHO_C" >&6; }
11785: if test "${ac_cv_search_getmntent+set}" = set; then
1.1.1.19 root 11786: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1.1.6 root 11787: else
1.1.1.22 root 11788: ac_func_search_save_LIBS=$LIBS
1.1.1.19 root 11789: cat >conftest.$ac_ext <<_ACEOF
11790: /* confdefs.h. */
11791: _ACEOF
11792: cat confdefs.h >>conftest.$ac_ext
11793: cat >>conftest.$ac_ext <<_ACEOF
11794: /* end confdefs.h. */
11795:
1.1.1.22 root 11796: /* Override any GCC internal prototype to avoid an error.
11797: Use char because int might match the return type of a GCC
11798: builtin and then its argument prototype would still apply. */
1.1.1.19 root 11799: #ifdef __cplusplus
11800: extern "C"
11801: #endif
11802: char getmntent ();
11803: int
11804: main ()
11805: {
1.1.1.22 root 11806: return getmntent ();
1.1.1.19 root 11807: ;
11808: return 0;
11809: }
11810: _ACEOF
1.1.1.22 root 11811: for ac_lib in '' sun seq gen; do
11812: if test -z "$ac_lib"; then
11813: ac_res="none required"
11814: else
11815: ac_res=-l$ac_lib
11816: LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11817: fi
11818: rm -f conftest.$ac_objext conftest$ac_exeext
11819: if { (ac_try="$ac_link"
11820: case "(($ac_try" in
11821: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11822: *) ac_try_echo=$ac_try;;
11823: esac
11824: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11825: (eval "$ac_link") 2>conftest.er1
1.1.1.19 root 11826: ac_status=$?
11827: grep -v '^ *+' conftest.er1 >conftest.err
11828: rm -f conftest.er1
11829: cat conftest.err >&5
11830: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.22 root 11831: (exit $ac_status); } && {
11832: test -z "$ac_c_werror_flag" ||
11833: test ! -s conftest.err
11834: } && test -s conftest$ac_exeext &&
11835: $as_test_x conftest$ac_exeext; then
11836: ac_cv_search_getmntent=$ac_res
1.1.1.19 root 11837: else
11838: echo "$as_me: failed program was:" >&5
11839: sed 's/^/| /' conftest.$ac_ext >&5
11840:
1.1.1.22 root 11841:
1.1.1.19 root 11842: fi
1.1.1.22 root 11843:
11844: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11845: conftest$ac_exeext
11846: if test "${ac_cv_search_getmntent+set}" = set; then
11847: break
11848: fi
11849: done
11850: if test "${ac_cv_search_getmntent+set}" = set; then
11851: :
11852: else
11853: ac_cv_search_getmntent=no
11854: fi
11855: rm conftest.$ac_ext
11856: LIBS=$ac_func_search_save_LIBS
11857: fi
11858: { echo "$as_me:$LINENO: result: $ac_cv_search_getmntent" >&5
11859: echo "${ECHO_T}$ac_cv_search_getmntent" >&6; }
11860: ac_res=$ac_cv_search_getmntent
11861: if test "$ac_res" != no; then
11862: test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11863: ac_cv_func_getmntent=yes
11864:
11865: cat >>confdefs.h <<\_ACEOF
11866: #define HAVE_GETMNTENT
11867: _ACEOF
11868:
11869: else
11870: ac_cv_func_getmntent=no
1.1.1.19 root 11871: fi
1.1.1.22 root 11872:
11873:
11874:
11875: # This test must precede the ones for getmntent because Unicos-9 is
11876: # reported to have the getmntent function, but its support is incompatible
11877: # with other getmntent implementations.
11878:
11879: # NOTE: Normally, I wouldn't use a check for system type as I've done for
11880: # `CRAY' below since that goes against the whole autoconf philosophy. But
11881: # I think there is too great a chance that some non-Cray system has a
11882: # function named listmntent to risk the false positive.
11883:
11884: if test -z "$list_mounted_fs"; then
11885: # Cray UNICOS 9
11886: { echo "$as_me:$LINENO: checking for listmntent of Cray/Unicos-9" >&5
11887: echo $ECHO_N "checking for listmntent of Cray/Unicos-9... $ECHO_C" >&6; }
11888: if test "${fu_cv_sys_mounted_cray_listmntent+set}" = set; then
1.1.1.19 root 11889: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1.1.6 root 11890: else
1.1.1.22 root 11891: fu_cv_sys_mounted_cray_listmntent=no
1.1.1.19 root 11892: cat >conftest.$ac_ext <<_ACEOF
11893: /* confdefs.h. */
11894: _ACEOF
11895: cat confdefs.h >>conftest.$ac_ext
11896: cat >>conftest.$ac_ext <<_ACEOF
11897: /* end confdefs.h. */
1.1.1.22 root 11898: #ifdef _CRAY
11899: yes
1.1.1.19 root 11900: #endif
1.1.1.22 root 11901:
1.1.1.19 root 11902: _ACEOF
1.1.1.6 root 11903: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1.1.1.19 root 11904: $EGREP "yes" >/dev/null 2>&1; then
1.1.1.6 root 11905: test $ac_cv_func_listmntent = yes \
11906: && fu_cv_sys_mounted_cray_listmntent=yes
11907:
11908: fi
11909: rm -f conftest*
11910:
11911:
11912:
11913: fi
11914:
1.1.1.22 root 11915: { echo "$as_me:$LINENO: result: $fu_cv_sys_mounted_cray_listmntent" >&5
11916: echo "${ECHO_T}$fu_cv_sys_mounted_cray_listmntent" >&6; }
1.1.1.6 root 11917: if test $fu_cv_sys_mounted_cray_listmntent = yes; then
11918: list_mounted_fs=found
1.1.1.19 root 11919: cat >>confdefs.h <<\_ACEOF
1.1.1.6 root 11920: #define MOUNTED_LISTMNTENT 1
1.1.1.19 root 11921: _ACEOF
1.1.1.6 root 11922:
11923: fi
11924: fi
11925:
11926: if test $ac_cv_func_getmntent = yes; then
11927:
11928: # This system has the getmntent function.
11929: # Determine whether it's the one-argument variant or the two-argument one.
11930:
11931: if test -z "$list_mounted_fs"; then
11932: # 4.3BSD, SunOS, HP-UX, Dynix, Irix
1.1.1.22 root 11933: { echo "$as_me:$LINENO: checking for one-argument getmntent function" >&5
11934: echo $ECHO_N "checking for one-argument getmntent function... $ECHO_C" >&6; }
1.1.1.19 root 11935: if test "${fu_cv_sys_mounted_getmntent1+set}" = set; then
11936: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1.1.6 root 11937: else
11938: test $ac_cv_header_mntent_h = yes \
11939: && fu_cv_sys_mounted_getmntent1=yes \
11940: || fu_cv_sys_mounted_getmntent1=no
11941: fi
11942:
1.1.1.22 root 11943: { echo "$as_me:$LINENO: result: $fu_cv_sys_mounted_getmntent1" >&5
11944: echo "${ECHO_T}$fu_cv_sys_mounted_getmntent1" >&6; }
1.1.1.6 root 11945: if test $fu_cv_sys_mounted_getmntent1 = yes; then
11946: list_mounted_fs=found
1.1.1.19 root 11947: cat >>confdefs.h <<\_ACEOF
1.1.1.6 root 11948: #define MOUNTED_GETMNTENT1 1
1.1.1.19 root 11949: _ACEOF
1.1.1.6 root 11950:
11951: fi
11952: fi
11953:
11954: if test -z "$list_mounted_fs"; then
11955: # SVR4
1.1.1.22 root 11956: { echo "$as_me:$LINENO: checking for two-argument getmntent function" >&5
11957: echo $ECHO_N "checking for two-argument getmntent function... $ECHO_C" >&6; }
1.1.1.19 root 11958: if test "${fu_cv_sys_mounted_getmntent2+set}" = set; then
11959: echo $ECHO_N "(cached) $ECHO_C" >&6
11960: else
11961: cat >conftest.$ac_ext <<_ACEOF
11962: /* confdefs.h. */
11963: _ACEOF
11964: cat confdefs.h >>conftest.$ac_ext
11965: cat >>conftest.$ac_ext <<_ACEOF
11966: /* end confdefs.h. */
1.1.1.6 root 11967: #include <sys/mnttab.h>
1.1.1.19 root 11968:
11969: _ACEOF
1.1.1.6 root 11970: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1.1.1.19 root 11971: $EGREP "getmntent" >/dev/null 2>&1; then
1.1.1.6 root 11972: fu_cv_sys_mounted_getmntent2=yes
11973: else
11974: fu_cv_sys_mounted_getmntent2=no
11975: fi
11976: rm -f conftest*
11977:
11978: fi
11979:
1.1.1.22 root 11980: { echo "$as_me:$LINENO: result: $fu_cv_sys_mounted_getmntent2" >&5
11981: echo "${ECHO_T}$fu_cv_sys_mounted_getmntent2" >&6; }
1.1.1.6 root 11982: if test $fu_cv_sys_mounted_getmntent2 = yes; then
11983: list_mounted_fs=found
1.1.1.19 root 11984: cat >>confdefs.h <<\_ACEOF
1.1.1.6 root 11985: #define MOUNTED_GETMNTENT2 1
1.1.1.19 root 11986: _ACEOF
1.1.1.6 root 11987:
11988: fi
11989: fi
11990:
11991: if test -z "$list_mounted_fs"; then
1.1.1.19 root 11992: { { echo "$as_me:$LINENO: error: could not determine how to read list of mounted filesystems" >&5
11993: echo "$as_me: error: could not determine how to read list of mounted filesystems" >&2;}
11994: { (exit 1); exit 1; }; }
1.1.1.6 root 11995: fi
11996:
11997: fi
11998:
11999: if test -z "$list_mounted_fs"; then
12000: # DEC Alpha running OSF/1.
1.1.1.22 root 12001: { echo "$as_me:$LINENO: checking for getfsstat function" >&5
12002: echo $ECHO_N "checking for getfsstat function... $ECHO_C" >&6; }
1.1.1.19 root 12003: if test "${fu_cv_sys_mounted_getsstat+set}" = set; then
12004: echo $ECHO_N "(cached) $ECHO_C" >&6
12005: else
12006: cat >conftest.$ac_ext <<_ACEOF
12007: /* confdefs.h. */
12008: _ACEOF
12009: cat confdefs.h >>conftest.$ac_ext
12010: cat >>conftest.$ac_ext <<_ACEOF
12011: /* end confdefs.h. */
1.1.1.6 root 12012:
12013: #include <sys/types.h>
12014: #include <sys/mount.h>
12015: #include <sys/fs_types.h>
1.1.1.19 root 12016: int
12017: main ()
12018: {
1.1.1.6 root 12019: struct statfs *stats;
1.1.1.19 root 12020: int numsys = getfsstat ((struct statfs *)0, 0L, MNT_WAIT);
12021: ;
12022: return 0;
12023: }
12024: _ACEOF
12025: rm -f conftest.$ac_objext conftest$ac_exeext
1.1.1.22 root 12026: if { (ac_try="$ac_link"
12027: case "(($ac_try" in
12028: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12029: *) ac_try_echo=$ac_try;;
12030: esac
12031: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12032: (eval "$ac_link") 2>conftest.er1
1.1.1.19 root 12033: ac_status=$?
12034: grep -v '^ *+' conftest.er1 >conftest.err
12035: rm -f conftest.er1
12036: cat conftest.err >&5
12037: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.22 root 12038: (exit $ac_status); } && {
12039: test -z "$ac_c_werror_flag" ||
12040: test ! -s conftest.err
12041: } && test -s conftest$ac_exeext &&
12042: $as_test_x conftest$ac_exeext; then
1.1.1.6 root 12043: fu_cv_sys_mounted_getsstat=yes
12044: else
1.1.1.19 root 12045: echo "$as_me: failed program was:" >&5
12046: sed 's/^/| /' conftest.$ac_ext >&5
12047:
1.1.1.22 root 12048: fu_cv_sys_mounted_getsstat=no
1.1.1.6 root 12049: fi
1.1.1.22 root 12050:
12051: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.1.1.19 root 12052: conftest$ac_exeext conftest.$ac_ext
1.1.1.6 root 12053: fi
12054:
1.1.1.22 root 12055: { echo "$as_me:$LINENO: result: $fu_cv_sys_mounted_getsstat" >&5
12056: echo "${ECHO_T}$fu_cv_sys_mounted_getsstat" >&6; }
1.1.1.6 root 12057: if test $fu_cv_sys_mounted_getsstat = yes; then
12058: list_mounted_fs=found
1.1.1.19 root 12059: cat >>confdefs.h <<\_ACEOF
1.1.1.6 root 12060: #define MOUNTED_GETFSSTAT 1
1.1.1.19 root 12061: _ACEOF
1.1.1.6 root 12062:
12063: fi
12064: fi
12065:
12066: if test -z "$list_mounted_fs"; then
12067: # AIX.
1.1.1.22 root 12068: { echo "$as_me:$LINENO: checking for mntctl function and struct vmount" >&5
12069: echo $ECHO_N "checking for mntctl function and struct vmount... $ECHO_C" >&6; }
1.1.1.19 root 12070: if test "${fu_cv_sys_mounted_vmount+set}" = set; then
12071: echo $ECHO_N "(cached) $ECHO_C" >&6
12072: else
12073: cat >conftest.$ac_ext <<_ACEOF
12074: /* confdefs.h. */
12075: _ACEOF
12076: cat confdefs.h >>conftest.$ac_ext
12077: cat >>conftest.$ac_ext <<_ACEOF
12078: /* end confdefs.h. */
1.1.1.6 root 12079: #include <fshelp.h>
1.1.1.19 root 12080: _ACEOF
1.1.1.22 root 12081: if { (ac_try="$ac_cpp conftest.$ac_ext"
12082: case "(($ac_try" in
12083: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12084: *) ac_try_echo=$ac_try;;
12085: esac
12086: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12087: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
1.1.1.19 root 12088: ac_status=$?
12089: grep -v '^ *+' conftest.er1 >conftest.err
12090: rm -f conftest.er1
12091: cat conftest.err >&5
12092: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.22 root 12093: (exit $ac_status); } >/dev/null && {
12094: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12095: test ! -s conftest.err
12096: }; then
1.1.1.6 root 12097: fu_cv_sys_mounted_vmount=yes
12098: else
1.1.1.19 root 12099: echo "$as_me: failed program was:" >&5
12100: sed 's/^/| /' conftest.$ac_ext >&5
12101:
1.1.1.6 root 12102: fu_cv_sys_mounted_vmount=no
12103: fi
1.1.1.22 root 12104:
1.1.1.19 root 12105: rm -f conftest.err conftest.$ac_ext
1.1.1.6 root 12106: fi
12107:
1.1.1.22 root 12108: { echo "$as_me:$LINENO: result: $fu_cv_sys_mounted_vmount" >&5
12109: echo "${ECHO_T}$fu_cv_sys_mounted_vmount" >&6; }
1.1.1.6 root 12110: if test $fu_cv_sys_mounted_vmount = yes; then
12111: list_mounted_fs=found
1.1.1.19 root 12112: cat >>confdefs.h <<\_ACEOF
1.1.1.6 root 12113: #define MOUNTED_VMOUNT 1
1.1.1.19 root 12114: _ACEOF
1.1.1.6 root 12115:
12116: fi
12117: fi
12118:
12119: if test -z "$list_mounted_fs"; then
12120: # SVR3
1.1.1.22 root 12121: { echo "$as_me:$LINENO: checking for FIXME existence of three headers" >&5
12122: echo $ECHO_N "checking for FIXME existence of three headers... $ECHO_C" >&6; }
1.1.1.19 root 12123: if test "${fu_cv_sys_mounted_fread_fstyp+set}" = set; then
12124: echo $ECHO_N "(cached) $ECHO_C" >&6
12125: else
12126: cat >conftest.$ac_ext <<_ACEOF
12127: /* confdefs.h. */
12128: _ACEOF
12129: cat confdefs.h >>conftest.$ac_ext
12130: cat >>conftest.$ac_ext <<_ACEOF
12131: /* end confdefs.h. */
1.1.1.6 root 12132:
12133: #include <sys/statfs.h>
12134: #include <sys/fstyp.h>
12135: #include <mnttab.h>
1.1.1.19 root 12136: _ACEOF
1.1.1.22 root 12137: if { (ac_try="$ac_cpp conftest.$ac_ext"
12138: case "(($ac_try" in
12139: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12140: *) ac_try_echo=$ac_try;;
12141: esac
12142: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12143: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
1.1.1.19 root 12144: ac_status=$?
12145: grep -v '^ *+' conftest.er1 >conftest.err
12146: rm -f conftest.er1
12147: cat conftest.err >&5
12148: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.22 root 12149: (exit $ac_status); } >/dev/null && {
12150: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12151: test ! -s conftest.err
12152: }; then
1.1.1.6 root 12153: fu_cv_sys_mounted_fread_fstyp=yes
12154: else
1.1.1.19 root 12155: echo "$as_me: failed program was:" >&5
12156: sed 's/^/| /' conftest.$ac_ext >&5
12157:
1.1.1.6 root 12158: fu_cv_sys_mounted_fread_fstyp=no
12159: fi
1.1.1.22 root 12160:
1.1.1.19 root 12161: rm -f conftest.err conftest.$ac_ext
1.1.1.6 root 12162: fi
12163:
1.1.1.22 root 12164: { echo "$as_me:$LINENO: result: $fu_cv_sys_mounted_fread_fstyp" >&5
12165: echo "${ECHO_T}$fu_cv_sys_mounted_fread_fstyp" >&6; }
1.1.1.6 root 12166: if test $fu_cv_sys_mounted_fread_fstyp = yes; then
12167: list_mounted_fs=found
1.1.1.19 root 12168: cat >>confdefs.h <<\_ACEOF
1.1.1.6 root 12169: #define MOUNTED_FREAD_FSTYP 1
1.1.1.19 root 12170: _ACEOF
1.1.1.6 root 12171:
12172: fi
12173: fi
12174:
12175: if test -z "$list_mounted_fs"; then
12176: # 4.4BSD and DEC OSF/1.
1.1.1.22 root 12177: { echo "$as_me:$LINENO: checking for getmntinfo function" >&5
12178: echo $ECHO_N "checking for getmntinfo function... $ECHO_C" >&6; }
1.1.1.19 root 12179: if test "${fu_cv_sys_mounted_getmntinfo+set}" = set; then
12180: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1.1.6 root 12181: else
1.1.1.19 root 12182:
1.1.1.6 root 12183: ok=
12184: if test $ac_cv_func_getmntinfo = yes; then
1.1.1.19 root 12185: cat >conftest.$ac_ext <<_ACEOF
12186: /* confdefs.h. */
12187: _ACEOF
12188: cat confdefs.h >>conftest.$ac_ext
12189: cat >>conftest.$ac_ext <<_ACEOF
12190: /* end confdefs.h. */
1.1.1.6 root 12191: #include <sys/mount.h>
1.1.1.19 root 12192:
12193: _ACEOF
1.1.1.6 root 12194: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1.1.1.19 root 12195: $EGREP "f_type;" >/dev/null 2>&1; then
1.1.1.6 root 12196: ok=yes
12197: fi
12198: rm -f conftest*
12199:
12200: fi
12201: test -n "$ok" \
12202: && fu_cv_sys_mounted_getmntinfo=yes \
12203: || fu_cv_sys_mounted_getmntinfo=no
12204:
12205: fi
12206:
1.1.1.22 root 12207: { echo "$as_me:$LINENO: result: $fu_cv_sys_mounted_getmntinfo" >&5
12208: echo "${ECHO_T}$fu_cv_sys_mounted_getmntinfo" >&6; }
1.1.1.6 root 12209: if test $fu_cv_sys_mounted_getmntinfo = yes; then
12210: list_mounted_fs=found
1.1.1.19 root 12211: cat >>confdefs.h <<\_ACEOF
1.1.1.6 root 12212: #define MOUNTED_GETMNTINFO 1
1.1.1.19 root 12213: _ACEOF
1.1.1.6 root 12214:
12215: fi
12216: fi
12217:
12218: # FIXME: add a test for netbsd-1.1 here
12219:
12220: if test -z "$list_mounted_fs"; then
12221: # Ultrix
1.1.1.22 root 12222: { echo "$as_me:$LINENO: checking for getmnt function" >&5
12223: echo $ECHO_N "checking for getmnt function... $ECHO_C" >&6; }
1.1.1.19 root 12224: if test "${fu_cv_sys_mounted_getmnt+set}" = set; then
12225: echo $ECHO_N "(cached) $ECHO_C" >&6
12226: else
12227: cat >conftest.$ac_ext <<_ACEOF
12228: /* confdefs.h. */
12229: _ACEOF
12230: cat confdefs.h >>conftest.$ac_ext
12231: cat >>conftest.$ac_ext <<_ACEOF
12232: /* end confdefs.h. */
1.1.1.6 root 12233:
12234: #include <sys/fs_types.h>
12235: #include <sys/mount.h>
1.1.1.19 root 12236: _ACEOF
1.1.1.22 root 12237: if { (ac_try="$ac_cpp conftest.$ac_ext"
12238: case "(($ac_try" in
12239: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12240: *) ac_try_echo=$ac_try;;
12241: esac
12242: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12243: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
1.1.1.19 root 12244: ac_status=$?
12245: grep -v '^ *+' conftest.er1 >conftest.err
12246: rm -f conftest.er1
12247: cat conftest.err >&5
12248: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.22 root 12249: (exit $ac_status); } >/dev/null && {
12250: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12251: test ! -s conftest.err
12252: }; then
1.1.1.6 root 12253: fu_cv_sys_mounted_getmnt=yes
12254: else
1.1.1.19 root 12255: echo "$as_me: failed program was:" >&5
12256: sed 's/^/| /' conftest.$ac_ext >&5
12257:
1.1.1.6 root 12258: fu_cv_sys_mounted_getmnt=no
12259: fi
1.1.1.22 root 12260:
1.1.1.19 root 12261: rm -f conftest.err conftest.$ac_ext
1.1.1.6 root 12262: fi
12263:
1.1.1.22 root 12264: { echo "$as_me:$LINENO: result: $fu_cv_sys_mounted_getmnt" >&5
12265: echo "${ECHO_T}$fu_cv_sys_mounted_getmnt" >&6; }
1.1.1.6 root 12266: if test $fu_cv_sys_mounted_getmnt = yes; then
12267: list_mounted_fs=found
1.1.1.19 root 12268: cat >>confdefs.h <<\_ACEOF
1.1.1.6 root 12269: #define MOUNTED_GETMNT 1
1.1.1.19 root 12270: _ACEOF
1.1.1.6 root 12271:
12272: fi
12273: fi
12274:
12275: if test -z "$list_mounted_fs"; then
12276: # SVR2
1.1.1.22 root 12277: { echo "$as_me:$LINENO: checking whether it is possible to resort to fread on /etc/mnttab" >&5
12278: echo $ECHO_N "checking whether it is possible to resort to fread on /etc/mnttab... $ECHO_C" >&6; }
1.1.1.19 root 12279: if test "${fu_cv_sys_mounted_fread+set}" = set; then
12280: echo $ECHO_N "(cached) $ECHO_C" >&6
12281: else
12282: cat >conftest.$ac_ext <<_ACEOF
12283: /* confdefs.h. */
12284: _ACEOF
12285: cat confdefs.h >>conftest.$ac_ext
12286: cat >>conftest.$ac_ext <<_ACEOF
12287: /* end confdefs.h. */
1.1.1.6 root 12288: #include <mnttab.h>
1.1.1.19 root 12289: _ACEOF
1.1.1.22 root 12290: if { (ac_try="$ac_cpp conftest.$ac_ext"
12291: case "(($ac_try" in
12292: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12293: *) ac_try_echo=$ac_try;;
12294: esac
12295: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12296: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
1.1.1.19 root 12297: ac_status=$?
12298: grep -v '^ *+' conftest.er1 >conftest.err
12299: rm -f conftest.er1
12300: cat conftest.err >&5
12301: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.22 root 12302: (exit $ac_status); } >/dev/null && {
12303: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12304: test ! -s conftest.err
12305: }; then
1.1.1.6 root 12306: fu_cv_sys_mounted_fread=yes
12307: else
1.1.1.19 root 12308: echo "$as_me: failed program was:" >&5
12309: sed 's/^/| /' conftest.$ac_ext >&5
12310:
1.1.1.6 root 12311: fu_cv_sys_mounted_fread=no
12312: fi
1.1.1.22 root 12313:
1.1.1.19 root 12314: rm -f conftest.err conftest.$ac_ext
1.1.1.6 root 12315: fi
12316:
1.1.1.22 root 12317: { echo "$as_me:$LINENO: result: $fu_cv_sys_mounted_fread" >&5
12318: echo "${ECHO_T}$fu_cv_sys_mounted_fread" >&6; }
1.1.1.6 root 12319: if test $fu_cv_sys_mounted_fread = yes; then
12320: list_mounted_fs=found
1.1.1.19 root 12321: cat >>confdefs.h <<\_ACEOF
1.1.1.6 root 12322: #define MOUNTED_FREAD 1
1.1.1.19 root 12323: _ACEOF
1.1.1.6 root 12324:
12325: fi
12326: fi
12327:
12328: if test -z "$list_mounted_fs"; then
1.1.1.19 root 12329: { { echo "$as_me:$LINENO: error: could not determine how to read list of mounted filesystems" >&5
12330: echo "$as_me: error: could not determine how to read list of mounted filesystems" >&2;}
12331: { (exit 1); exit 1; }; }
1.1.1.6 root 12332: # FIXME -- no need to abort building the whole package
12333: # Can't build mountlist.c or anything that needs its functions
12334: fi
12335:
1.1.1.19 root 12336: { echo "$as_me:$LINENO: checking how to get filesystem space usage..." >&5
12337: echo "$as_me: checking how to get filesystem space usage..." >&6;}
1.1.1.6 root 12338: space=no
12339:
12340: # Perform only the link test since it seems there are no variants of the
12341: # statvfs function. This check is more than just AC_CHECK_FUNCS(statvfs)
12342: # because that got a false positive on SCO OSR5. Adding the declaration
12343: # of a `struct statvfs' causes this test to fail (as it should) on such
12344: # systems. That system is reported to work fine with STAT_STATFS4 which
12345: # is what it gets when this test fails.
12346: if test $space = no; then
12347: # SVR4
1.1.1.22 root 12348: { echo "$as_me:$LINENO: checking statvfs function (SVR4)" >&5
12349: echo $ECHO_N "checking statvfs function (SVR4)... $ECHO_C" >&6; }
1.1.1.19 root 12350: if test "${fu_cv_sys_stat_statvfs+set}" = set; then
12351: echo $ECHO_N "(cached) $ECHO_C" >&6
12352: else
12353: cat >conftest.$ac_ext <<_ACEOF
12354: /* confdefs.h. */
12355: _ACEOF
12356: cat confdefs.h >>conftest.$ac_ext
12357: cat >>conftest.$ac_ext <<_ACEOF
12358: /* end confdefs.h. */
1.1.1.6 root 12359: #include <sys/types.h>
12360: #include <sys/statvfs.h>
1.1.1.19 root 12361: int
12362: main ()
12363: {
1.1.1.6 root 12364: struct statvfs fsd; statvfs (0, &fsd);
1.1.1.19 root 12365: ;
12366: return 0;
12367: }
12368: _ACEOF
12369: rm -f conftest.$ac_objext conftest$ac_exeext
1.1.1.22 root 12370: if { (ac_try="$ac_link"
12371: case "(($ac_try" in
12372: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12373: *) ac_try_echo=$ac_try;;
12374: esac
12375: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12376: (eval "$ac_link") 2>conftest.er1
1.1.1.19 root 12377: ac_status=$?
12378: grep -v '^ *+' conftest.er1 >conftest.err
12379: rm -f conftest.er1
12380: cat conftest.err >&5
12381: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.22 root 12382: (exit $ac_status); } && {
12383: test -z "$ac_c_werror_flag" ||
12384: test ! -s conftest.err
12385: } && test -s conftest$ac_exeext &&
12386: $as_test_x conftest$ac_exeext; then
1.1.1.6 root 12387: fu_cv_sys_stat_statvfs=yes
12388: else
1.1.1.19 root 12389: echo "$as_me: failed program was:" >&5
12390: sed 's/^/| /' conftest.$ac_ext >&5
12391:
1.1.1.22 root 12392: fu_cv_sys_stat_statvfs=no
1.1.1.6 root 12393: fi
1.1.1.22 root 12394:
12395: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.1.1.19 root 12396: conftest$ac_exeext conftest.$ac_ext
1.1.1.6 root 12397: fi
1.1.1.22 root 12398: { echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statvfs" >&5
12399: echo "${ECHO_T}$fu_cv_sys_stat_statvfs" >&6; }
1.1.1.6 root 12400: if test $fu_cv_sys_stat_statvfs = yes; then
12401: space=yes
1.1.1.19 root 12402: cat >>confdefs.h <<\_ACEOF
1.1.1.6 root 12403: #define STAT_STATVFS 1
1.1.1.19 root 12404: _ACEOF
1.1.1.6 root 12405:
12406: fi
12407: fi
12408:
12409: if test $space = no; then
12410: # DEC Alpha running OSF/1
1.1.1.22 root 12411: { echo "$as_me:$LINENO: checking for 3-argument statfs function (DEC OSF/1)" >&5
12412: echo $ECHO_N "checking for 3-argument statfs function (DEC OSF/1)... $ECHO_C" >&6; }
1.1.1.19 root 12413: if test "${fu_cv_sys_stat_statfs3_osf1+set}" = set; then
12414: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1.1.6 root 12415: else
12416: if test "$cross_compiling" = yes; then
12417: fu_cv_sys_stat_statfs3_osf1=no
12418: else
1.1.1.19 root 12419: cat >conftest.$ac_ext <<_ACEOF
12420: /* confdefs.h. */
12421: _ACEOF
12422: cat confdefs.h >>conftest.$ac_ext
12423: cat >>conftest.$ac_ext <<_ACEOF
12424: /* end confdefs.h. */
1.1.1.6 root 12425:
12426: #include <sys/param.h>
12427: #include <sys/types.h>
12428: #include <sys/mount.h>
12429: main ()
12430: {
12431: struct statfs fsd;
12432: fsd.f_fsize = 0;
12433: exit (statfs (".", &fsd, sizeof (struct statfs)));
12434: }
1.1.1.19 root 12435: _ACEOF
12436: rm -f conftest$ac_exeext
1.1.1.22 root 12437: if { (ac_try="$ac_link"
12438: case "(($ac_try" in
12439: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12440: *) ac_try_echo=$ac_try;;
12441: esac
12442: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12443: (eval "$ac_link") 2>&5
1.1.1.19 root 12444: ac_status=$?
12445: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12446: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
1.1.1.22 root 12447: { (case "(($ac_try" in
12448: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12449: *) ac_try_echo=$ac_try;;
12450: esac
12451: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12452: (eval "$ac_try") 2>&5
1.1.1.19 root 12453: ac_status=$?
12454: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12455: (exit $ac_status); }; }; then
1.1.1.6 root 12456: fu_cv_sys_stat_statfs3_osf1=yes
12457: else
1.1.1.19 root 12458: echo "$as_me: program exited with status $ac_status" >&5
12459: echo "$as_me: failed program was:" >&5
12460: sed 's/^/| /' conftest.$ac_ext >&5
12461:
12462: ( exit $ac_status )
12463: fu_cv_sys_stat_statfs3_osf1=no
1.1.1.6 root 12464: fi
1.1.1.22 root 12465: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.1.1.6 root 12466: fi
1.1.1.22 root 12467:
12468:
1.1.1.6 root 12469: fi
12470:
1.1.1.22 root 12471: { echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statfs3_osf1" >&5
12472: echo "${ECHO_T}$fu_cv_sys_stat_statfs3_osf1" >&6; }
1.1.1.6 root 12473: if test $fu_cv_sys_stat_statfs3_osf1 = yes; then
12474: space=yes
1.1.1.19 root 12475: cat >>confdefs.h <<\_ACEOF
1.1.1.6 root 12476: #define STAT_STATFS3_OSF1 1
1.1.1.19 root 12477: _ACEOF
1.1.1.6 root 12478:
12479: fi
12480: fi
12481:
12482: if test $space = no; then
12483: # AIX
1.1.1.22 root 12484: { echo "$as_me:$LINENO: checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)" >&5
12485: echo $ECHO_N "checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)... $ECHO_C" >&6; }
1.1.1.19 root 12486: if test "${fu_cv_sys_stat_statfs2_bsize+set}" = set; then
12487: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1.1.6 root 12488: else
12489: if test "$cross_compiling" = yes; then
12490: fu_cv_sys_stat_statfs2_bsize=no
12491: else
1.1.1.19 root 12492: cat >conftest.$ac_ext <<_ACEOF
12493: /* confdefs.h. */
12494: _ACEOF
12495: cat confdefs.h >>conftest.$ac_ext
12496: cat >>conftest.$ac_ext <<_ACEOF
12497: /* end confdefs.h. */
1.1.1.6 root 12498:
12499: #ifdef HAVE_SYS_PARAM_H
12500: #include <sys/param.h>
12501: #endif
12502: #ifdef HAVE_SYS_MOUNT_H
12503: #include <sys/mount.h>
12504: #endif
12505: #ifdef HAVE_SYS_VFS_H
12506: #include <sys/vfs.h>
12507: #endif
12508: main ()
12509: {
12510: struct statfs fsd;
12511: fsd.f_bsize = 0;
12512: exit (statfs (".", &fsd));
12513: }
1.1.1.19 root 12514: _ACEOF
12515: rm -f conftest$ac_exeext
1.1.1.22 root 12516: if { (ac_try="$ac_link"
12517: case "(($ac_try" in
12518: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12519: *) ac_try_echo=$ac_try;;
12520: esac
12521: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12522: (eval "$ac_link") 2>&5
1.1.1.19 root 12523: ac_status=$?
12524: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12525: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
1.1.1.22 root 12526: { (case "(($ac_try" in
12527: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12528: *) ac_try_echo=$ac_try;;
12529: esac
12530: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12531: (eval "$ac_try") 2>&5
1.1.1.19 root 12532: ac_status=$?
12533: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12534: (exit $ac_status); }; }; then
1.1.1.6 root 12535: fu_cv_sys_stat_statfs2_bsize=yes
12536: else
1.1.1.19 root 12537: echo "$as_me: program exited with status $ac_status" >&5
12538: echo "$as_me: failed program was:" >&5
12539: sed 's/^/| /' conftest.$ac_ext >&5
12540:
12541: ( exit $ac_status )
12542: fu_cv_sys_stat_statfs2_bsize=no
1.1.1.6 root 12543: fi
1.1.1.22 root 12544: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.1.1.6 root 12545: fi
1.1.1.22 root 12546:
12547:
1.1.1.6 root 12548: fi
12549:
1.1.1.22 root 12550: { echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statfs2_bsize" >&5
12551: echo "${ECHO_T}$fu_cv_sys_stat_statfs2_bsize" >&6; }
1.1.1.6 root 12552: if test $fu_cv_sys_stat_statfs2_bsize = yes; then
12553: space=yes
1.1.1.19 root 12554: cat >>confdefs.h <<\_ACEOF
1.1.1.6 root 12555: #define STAT_STATFS2_BSIZE 1
1.1.1.19 root 12556: _ACEOF
1.1.1.6 root 12557:
12558: fi
12559: fi
12560:
12561: if test $space = no; then
12562: # SVR3
1.1.1.22 root 12563: { echo "$as_me:$LINENO: checking for four-argument statfs (AIX-3.2.5, SVR3)" >&5
12564: echo $ECHO_N "checking for four-argument statfs (AIX-3.2.5, SVR3)... $ECHO_C" >&6; }
1.1.1.19 root 12565: if test "${fu_cv_sys_stat_statfs4+set}" = set; then
12566: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1.1.6 root 12567: else
12568: if test "$cross_compiling" = yes; then
12569: fu_cv_sys_stat_statfs4=no
12570: else
1.1.1.19 root 12571: cat >conftest.$ac_ext <<_ACEOF
12572: /* confdefs.h. */
12573: _ACEOF
12574: cat confdefs.h >>conftest.$ac_ext
12575: cat >>conftest.$ac_ext <<_ACEOF
12576: /* end confdefs.h. */
1.1.1.6 root 12577: #include <sys/types.h>
12578: #include <sys/statfs.h>
12579: main ()
12580: {
12581: struct statfs fsd;
12582: exit (statfs (".", &fsd, sizeof fsd, 0));
12583: }
1.1.1.19 root 12584: _ACEOF
12585: rm -f conftest$ac_exeext
1.1.1.22 root 12586: if { (ac_try="$ac_link"
12587: case "(($ac_try" in
12588: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12589: *) ac_try_echo=$ac_try;;
12590: esac
12591: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12592: (eval "$ac_link") 2>&5
1.1.1.19 root 12593: ac_status=$?
12594: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12595: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
1.1.1.22 root 12596: { (case "(($ac_try" in
12597: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12598: *) ac_try_echo=$ac_try;;
12599: esac
12600: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12601: (eval "$ac_try") 2>&5
1.1.1.19 root 12602: ac_status=$?
12603: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12604: (exit $ac_status); }; }; then
1.1.1.6 root 12605: fu_cv_sys_stat_statfs4=yes
12606: else
1.1.1.19 root 12607: echo "$as_me: program exited with status $ac_status" >&5
12608: echo "$as_me: failed program was:" >&5
12609: sed 's/^/| /' conftest.$ac_ext >&5
12610:
12611: ( exit $ac_status )
12612: fu_cv_sys_stat_statfs4=no
1.1.1.6 root 12613: fi
1.1.1.22 root 12614: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.1.1.6 root 12615: fi
1.1.1.22 root 12616:
12617:
1.1.1.6 root 12618: fi
12619:
1.1.1.22 root 12620: { echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statfs4" >&5
12621: echo "${ECHO_T}$fu_cv_sys_stat_statfs4" >&6; }
1.1.1.6 root 12622: if test $fu_cv_sys_stat_statfs4 = yes; then
12623: space=yes
1.1.1.19 root 12624: cat >>confdefs.h <<\_ACEOF
1.1.1.6 root 12625: #define STAT_STATFS4 1
1.1.1.19 root 12626: _ACEOF
1.1.1.6 root 12627:
12628: fi
12629: fi
12630:
12631: if test $space = no; then
12632: # 4.4BSD and NetBSD
1.1.1.22 root 12633: { echo "$as_me:$LINENO: checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)" >&5
12634: echo $ECHO_N "checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)... $ECHO_C" >&6; }
1.1.1.19 root 12635: if test "${fu_cv_sys_stat_statfs2_fsize+set}" = set; then
12636: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1.1.6 root 12637: else
12638: if test "$cross_compiling" = yes; then
12639: fu_cv_sys_stat_statfs2_fsize=no
12640: else
1.1.1.19 root 12641: cat >conftest.$ac_ext <<_ACEOF
12642: /* confdefs.h. */
12643: _ACEOF
12644: cat confdefs.h >>conftest.$ac_ext
12645: cat >>conftest.$ac_ext <<_ACEOF
12646: /* end confdefs.h. */
1.1.1.6 root 12647: #include <sys/types.h>
12648: #ifdef HAVE_SYS_PARAM_H
12649: #include <sys/param.h>
12650: #endif
12651: #ifdef HAVE_SYS_MOUNT_H
12652: #include <sys/mount.h>
12653: #endif
12654: main ()
12655: {
12656: struct statfs fsd;
12657: fsd.f_fsize = 0;
12658: exit (statfs (".", &fsd));
12659: }
1.1.1.19 root 12660: _ACEOF
12661: rm -f conftest$ac_exeext
1.1.1.22 root 12662: if { (ac_try="$ac_link"
12663: case "(($ac_try" in
12664: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12665: *) ac_try_echo=$ac_try;;
12666: esac
12667: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12668: (eval "$ac_link") 2>&5
1.1.1.19 root 12669: ac_status=$?
12670: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12671: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
1.1.1.22 root 12672: { (case "(($ac_try" in
12673: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12674: *) ac_try_echo=$ac_try;;
12675: esac
12676: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12677: (eval "$ac_try") 2>&5
1.1.1.19 root 12678: ac_status=$?
12679: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12680: (exit $ac_status); }; }; then
1.1.1.6 root 12681: fu_cv_sys_stat_statfs2_fsize=yes
12682: else
1.1.1.19 root 12683: echo "$as_me: program exited with status $ac_status" >&5
12684: echo "$as_me: failed program was:" >&5
12685: sed 's/^/| /' conftest.$ac_ext >&5
12686:
12687: ( exit $ac_status )
12688: fu_cv_sys_stat_statfs2_fsize=no
1.1.1.6 root 12689: fi
1.1.1.22 root 12690: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.1.1.6 root 12691: fi
1.1.1.22 root 12692:
12693:
1.1.1.6 root 12694: fi
12695:
1.1.1.22 root 12696: { echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statfs2_fsize" >&5
12697: echo "${ECHO_T}$fu_cv_sys_stat_statfs2_fsize" >&6; }
1.1.1.6 root 12698: if test $fu_cv_sys_stat_statfs2_fsize = yes; then
12699: space=yes
1.1.1.19 root 12700: cat >>confdefs.h <<\_ACEOF
1.1.1.6 root 12701: #define STAT_STATFS2_FSIZE 1
1.1.1.19 root 12702: _ACEOF
1.1.1.6 root 12703:
12704: fi
12705: fi
12706:
12707: if test $space = no; then
12708: # Ultrix
1.1.1.22 root 12709: { echo "$as_me:$LINENO: checking for two-argument statfs with struct fs_data (Ultrix)" >&5
12710: echo $ECHO_N "checking for two-argument statfs with struct fs_data (Ultrix)... $ECHO_C" >&6; }
1.1.1.19 root 12711: if test "${fu_cv_sys_stat_fs_data+set}" = set; then
12712: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1.1.6 root 12713: else
12714: if test "$cross_compiling" = yes; then
12715: fu_cv_sys_stat_fs_data=no
12716: else
1.1.1.19 root 12717: cat >conftest.$ac_ext <<_ACEOF
12718: /* confdefs.h. */
12719: _ACEOF
12720: cat confdefs.h >>conftest.$ac_ext
12721: cat >>conftest.$ac_ext <<_ACEOF
12722: /* end confdefs.h. */
1.1.1.6 root 12723: #include <sys/types.h>
12724: #ifdef HAVE_SYS_PARAM_H
12725: #include <sys/param.h>
12726: #endif
12727: #ifdef HAVE_SYS_MOUNT_H
12728: #include <sys/mount.h>
12729: #endif
12730: #ifdef HAVE_SYS_FS_TYPES_H
12731: #include <sys/fs_types.h>
12732: #endif
12733: main ()
12734: {
12735: struct fs_data fsd;
12736: /* Ultrix's statfs returns 1 for success,
12737: 0 for not mounted, -1 for failure. */
12738: exit (statfs (".", &fsd) != 1);
12739: }
1.1.1.19 root 12740: _ACEOF
12741: rm -f conftest$ac_exeext
1.1.1.22 root 12742: if { (ac_try="$ac_link"
12743: case "(($ac_try" in
12744: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12745: *) ac_try_echo=$ac_try;;
12746: esac
12747: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12748: (eval "$ac_link") 2>&5
1.1.1.19 root 12749: ac_status=$?
12750: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12751: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
1.1.1.22 root 12752: { (case "(($ac_try" in
12753: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12754: *) ac_try_echo=$ac_try;;
12755: esac
12756: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12757: (eval "$ac_try") 2>&5
1.1.1.19 root 12758: ac_status=$?
12759: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12760: (exit $ac_status); }; }; then
1.1.1.6 root 12761: fu_cv_sys_stat_fs_data=yes
12762: else
1.1.1.19 root 12763: echo "$as_me: program exited with status $ac_status" >&5
12764: echo "$as_me: failed program was:" >&5
12765: sed 's/^/| /' conftest.$ac_ext >&5
12766:
12767: ( exit $ac_status )
12768: fu_cv_sys_stat_fs_data=no
1.1.1.6 root 12769: fi
1.1.1.22 root 12770: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.1.1.6 root 12771: fi
1.1.1.22 root 12772:
12773:
1.1.1.6 root 12774: fi
12775:
1.1.1.22 root 12776: { echo "$as_me:$LINENO: result: $fu_cv_sys_stat_fs_data" >&5
12777: echo "${ECHO_T}$fu_cv_sys_stat_fs_data" >&6; }
1.1.1.6 root 12778: if test $fu_cv_sys_stat_fs_data = yes; then
12779: space=yes
1.1.1.19 root 12780: cat >>confdefs.h <<\_ACEOF
1.1.1.6 root 12781: #define STAT_STATFS2_FS_DATA 1
1.1.1.19 root 12782: _ACEOF
1.1.1.6 root 12783:
12784: fi
12785: fi
12786:
12787: if test $space = no; then
12788: # SVR2
1.1.1.19 root 12789: cat >conftest.$ac_ext <<_ACEOF
12790: /* confdefs.h. */
12791: _ACEOF
12792: cat confdefs.h >>conftest.$ac_ext
12793: cat >>conftest.$ac_ext <<_ACEOF
12794: /* end confdefs.h. */
1.1.1.6 root 12795: #include <sys/filsys.h>
1.1.1.19 root 12796: _ACEOF
1.1.1.22 root 12797: if { (ac_try="$ac_cpp conftest.$ac_ext"
12798: case "(($ac_try" in
12799: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12800: *) ac_try_echo=$ac_try;;
12801: esac
12802: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12803: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
1.1.1.19 root 12804: ac_status=$?
12805: grep -v '^ *+' conftest.er1 >conftest.err
12806: rm -f conftest.er1
12807: cat conftest.err >&5
12808: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.22 root 12809: (exit $ac_status); } >/dev/null && {
12810: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12811: test ! -s conftest.err
12812: }; then
1.1.1.19 root 12813: cat >>confdefs.h <<\_ACEOF
1.1.1.6 root 12814: #define STAT_READ_FILSYS 1
1.1.1.19 root 12815: _ACEOF
1.1.1.6 root 12816: space=yes
12817: else
1.1.1.19 root 12818: echo "$as_me: failed program was:" >&5
12819: sed 's/^/| /' conftest.$ac_ext >&5
12820:
12821:
1.1.1.6 root 12822: fi
1.1.1.22 root 12823:
1.1.1.19 root 12824: rm -f conftest.err conftest.$ac_ext
1.1.1.6 root 12825: fi
12826:
12827: if test -n "$list_mounted_fs" && test $space != no; then
12828: DF_PROG="df"
1.1.1.22 root 12829: case " $LIBOBJS " in
1.1.1.19 root 12830: *" fsusage.$ac_objext "* ) ;;
1.1.1.22 root 12831: *) LIBOBJS="$LIBOBJS fsusage.$ac_objext"
12832: ;;
1.1.1.19 root 12833: esac
12834:
1.1.1.22 root 12835: case " $LIBOBJS " in
1.1.1.19 root 12836: *" mountlist.$ac_objext "* ) ;;
1.1.1.22 root 12837: *) LIBOBJS="$LIBOBJS mountlist.$ac_objext"
12838: ;;
1.1.1.19 root 12839: esac
12840:
1.1.1.6 root 12841: fi
1.1.1.4 root 12842:
1.1.1.19 root 12843:
1.1.1.6 root 12844: for ac_func in ftruncate
1.1.1.4 root 12845: do
1.1.1.19 root 12846: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
1.1.1.22 root 12847: { echo "$as_me:$LINENO: checking for $ac_func" >&5
12848: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12849: if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
1.1.1.19 root 12850: echo $ECHO_N "(cached) $ECHO_C" >&6
12851: else
12852: cat >conftest.$ac_ext <<_ACEOF
12853: /* confdefs.h. */
12854: _ACEOF
12855: cat confdefs.h >>conftest.$ac_ext
12856: cat >>conftest.$ac_ext <<_ACEOF
12857: /* end confdefs.h. */
12858: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12859: For example, HP-UX 11i <limits.h> declares gettimeofday. */
12860: #define $ac_func innocuous_$ac_func
12861:
1.1.1.4 root 12862: /* System header to define __stub macros and hopefully few prototypes,
1.1.1.19 root 12863: which can conflict with char $ac_func (); below.
12864: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12865: <limits.h> exists even on freestanding compilers. */
12866:
12867: #ifdef __STDC__
12868: # include <limits.h>
12869: #else
12870: # include <assert.h>
12871: #endif
1.1.1.4 root 12872:
1.1.1.19 root 12873: #undef $ac_func
1.1.1.4 root 12874:
1.1.1.22 root 12875: /* Override any GCC internal prototype to avoid an error.
12876: Use char because int might match the return type of a GCC
12877: builtin and then its argument prototype would still apply. */
1.1.1.19 root 12878: #ifdef __cplusplus
12879: extern "C"
12880: #endif
12881: char $ac_func ();
1.1.1.4 root 12882: /* The GNU C library defines this for functions which it implements
12883: to always fail with ENOSYS. Some functions are actually named
12884: something starting with __ and the normal name is an alias. */
1.1.1.22 root 12885: #if defined __stub_$ac_func || defined __stub___$ac_func
1.1.1.4 root 12886: choke me
12887: #endif
1.1 root 12888:
1.1.1.19 root 12889: int
12890: main ()
12891: {
1.1.1.22 root 12892: return $ac_func ();
1.1.1.19 root 12893: ;
12894: return 0;
12895: }
12896: _ACEOF
12897: rm -f conftest.$ac_objext conftest$ac_exeext
1.1.1.22 root 12898: if { (ac_try="$ac_link"
12899: case "(($ac_try" in
12900: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12901: *) ac_try_echo=$ac_try;;
12902: esac
12903: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12904: (eval "$ac_link") 2>conftest.er1
1.1.1.19 root 12905: ac_status=$?
12906: grep -v '^ *+' conftest.er1 >conftest.err
12907: rm -f conftest.er1
12908: cat conftest.err >&5
12909: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.22 root 12910: (exit $ac_status); } && {
12911: test -z "$ac_c_werror_flag" ||
12912: test ! -s conftest.err
12913: } && test -s conftest$ac_exeext &&
12914: $as_test_x conftest$ac_exeext; then
1.1.1.19 root 12915: eval "$as_ac_var=yes"
12916: else
12917: echo "$as_me: failed program was:" >&5
12918: sed 's/^/| /' conftest.$ac_ext >&5
12919:
1.1.1.22 root 12920: eval "$as_ac_var=no"
1.1.1.19 root 12921: fi
1.1.1.22 root 12922:
12923: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.1.1.19 root 12924: conftest$ac_exeext conftest.$ac_ext
12925: fi
1.1.1.22 root 12926: ac_res=`eval echo '${'$as_ac_var'}'`
12927: { echo "$as_me:$LINENO: result: $ac_res" >&5
12928: echo "${ECHO_T}$ac_res" >&6; }
1.1.1.19 root 12929: if test `eval echo '${'$as_ac_var'}'` = yes; then
12930: cat >>confdefs.h <<_ACEOF
12931: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12932: _ACEOF
1.1.1.4 root 12933:
1.1 root 12934: else
1.1.1.19 root 12935: ftruncate_missing=yes
1.1 root 12936: fi
12937: done
12938:
12939:
1.1.1.6 root 12940: if test "$ftruncate_missing" = yes; then
1.1.1.22 root 12941: { echo "$as_me:$LINENO: checking fcntl emulation of ftruncate" >&5
12942: echo $ECHO_N "checking fcntl emulation of ftruncate... $ECHO_C" >&6; }
1.1.1.19 root 12943: if test "${fu_cv_sys_ftruncate_emulation+set}" = set; then
12944: echo $ECHO_N "(cached) $ECHO_C" >&6
12945: else
12946: cat >conftest.$ac_ext <<_ACEOF
12947: /* confdefs.h. */
12948: _ACEOF
12949: cat confdefs.h >>conftest.$ac_ext
12950: cat >>conftest.$ac_ext <<_ACEOF
12951: /* end confdefs.h. */
1.1 root 12952:
1.1.1.2 root 12953: #include <sys/types.h>
1.1.1.6 root 12954: #include <fcntl.h>
1.1.1.19 root 12955: int
12956: main ()
12957: {
1.1.1.6 root 12958:
12959: #if !defined(F_CHSIZE) && !defined(F_FREESP)
12960: chsize();
12961: #endif
12962:
1.1.1.19 root 12963: ;
12964: return 0;
12965: }
12966: _ACEOF
12967: rm -f conftest.$ac_objext conftest$ac_exeext
1.1.1.22 root 12968: if { (ac_try="$ac_link"
12969: case "(($ac_try" in
12970: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12971: *) ac_try_echo=$ac_try;;
12972: esac
12973: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12974: (eval "$ac_link") 2>conftest.er1
1.1.1.19 root 12975: ac_status=$?
12976: grep -v '^ *+' conftest.er1 >conftest.err
12977: rm -f conftest.er1
12978: cat conftest.err >&5
12979: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.22 root 12980: (exit $ac_status); } && {
12981: test -z "$ac_c_werror_flag" ||
12982: test ! -s conftest.err
12983: } && test -s conftest$ac_exeext &&
12984: $as_test_x conftest$ac_exeext; then
1.1.1.6 root 12985: fu_cv_sys_ftruncate_emulation=yes
1.1 root 12986: else
1.1.1.19 root 12987: echo "$as_me: failed program was:" >&5
12988: sed 's/^/| /' conftest.$ac_ext >&5
12989:
1.1.1.22 root 12990: fu_cv_sys_ftruncate_emulation=no
1.1 root 12991: fi
1.1.1.22 root 12992:
12993: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.1.1.19 root 12994: conftest$ac_exeext conftest.$ac_ext
1.1 root 12995: fi
12996:
1.1.1.22 root 12997: { echo "$as_me:$LINENO: result: $fu_cv_sys_ftruncate_emulation" >&5
12998: echo "${ECHO_T}$fu_cv_sys_ftruncate_emulation" >&6; }
1.1.1.6 root 12999: if test $fu_cv_sys_ftruncate_emulation = yes; then
1.1.1.22 root 13000: case " $LIBOBJS " in
1.1.1.19 root 13001: *" ftruncate.$ac_objext "* ) ;;
1.1.1.22 root 13002: *) LIBOBJS="$LIBOBJS ftruncate.$ac_objext"
13003: ;;
1.1.1.19 root 13004: esac
13005:
1.1.1.6 root 13006: fi
13007: fi
13008:
13009: # Check for SunOS statfs brokenness wrt partitions 2GB and larger.
13010: # If <sys/vfs.h> exists and struct statfs has a member named f_spare,
13011: # enable the work-around code in fsusage.c.
1.1.1.22 root 13012: { echo "$as_me:$LINENO: checking for statfs that truncates block counts" >&5
13013: echo $ECHO_N "checking for statfs that truncates block counts... $ECHO_C" >&6; }
1.1.1.19 root 13014: if test "${fu_cv_sys_truncating_statfs+set}" = set; then
13015: echo $ECHO_N "(cached) $ECHO_C" >&6
13016: else
13017: cat >conftest.$ac_ext <<_ACEOF
13018: /* confdefs.h. */
13019: _ACEOF
13020: cat confdefs.h >>conftest.$ac_ext
13021: cat >>conftest.$ac_ext <<_ACEOF
13022: /* end confdefs.h. */
1.1 root 13023:
1.1.1.6 root 13024: #if !defined(sun) && !defined(__sun)
13025: choke -- this is a workaround for a Sun-specific problem
1.1 root 13026: #endif
1.1.1.6 root 13027: #include <sys/types.h>
1.1 root 13028: #include <sys/vfs.h>
1.1.1.19 root 13029: int
13030: main ()
13031: {
1.1.1.6 root 13032: struct statfs t; long c = *(t.f_spare);
1.1.1.19 root 13033: ;
13034: return 0;
13035: }
13036: _ACEOF
13037: rm -f conftest.$ac_objext
1.1.1.22 root 13038: if { (ac_try="$ac_compile"
13039: case "(($ac_try" in
13040: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13041: *) ac_try_echo=$ac_try;;
13042: esac
13043: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13044: (eval "$ac_compile") 2>conftest.er1
1.1.1.19 root 13045: ac_status=$?
13046: grep -v '^ *+' conftest.er1 >conftest.err
13047: rm -f conftest.er1
13048: cat conftest.err >&5
13049: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.22 root 13050: (exit $ac_status); } && {
13051: test -z "$ac_c_werror_flag" ||
13052: test ! -s conftest.err
13053: } && test -s conftest.$ac_objext; then
1.1.1.6 root 13054: fu_cv_sys_truncating_statfs=yes
1.1 root 13055: else
1.1.1.19 root 13056: echo "$as_me: failed program was:" >&5
13057: sed 's/^/| /' conftest.$ac_ext >&5
13058:
1.1.1.22 root 13059: fu_cv_sys_truncating_statfs=no
1.1.1.6 root 13060: fi
1.1.1.22 root 13061:
13062: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1.1.6 root 13063: fi
13064:
13065: if test $fu_cv_sys_truncating_statfs = yes; then
1.1.1.19 root 13066: cat >>confdefs.h <<\_ACEOF
1.1.1.6 root 13067: #define STATFS_TRUNCATES_BLOCK_COUNTS 1
1.1.1.19 root 13068: _ACEOF
1.1.1.6 root 13069:
13070: fi
1.1.1.22 root 13071: { echo "$as_me:$LINENO: result: $fu_cv_sys_truncating_statfs" >&5
13072: echo "${ECHO_T}$fu_cv_sys_truncating_statfs" >&6; }
1.1.1.6 root 13073:
1.1.1.19 root 13074: { echo "$as_me:$LINENO: checking for AFS..." >&5
13075: echo "$as_me: checking for AFS..." >&6;}
13076: test -d /afs && cat >>confdefs.h <<\_ACEOF
1.1.1.6 root 13077: #define AFS 1
1.1.1.19 root 13078: _ACEOF
1.1.1.6 root 13079:
13080:
13081: fi
13082:
1.1.1.16 root 13083: if test "$SDL_CONFIG" = "not-found" ; then
13084: HAVE_SDL_LIB=no
13085: else
13086: HAVE_SDL_LIB=yes
13087: SDL_CFLAGS=`$SDL_CONFIG --cflags`
13088: SDL_LIBS=`$SDL_CONFIG --libs`
13089: fi
13090:
13091:
1.1.1.2 root 13092:
1.1.1.4 root 13093: if [ "x$HAVE_NCURSES_LIB" = "xyes" ]; then
13094: if [ "x$ac_cv_header_ncurses_h" = "xno" -a "x$ac_cv_header_curses_h" = "xno" ]; then
13095: echo "Installation problem, found libncurses but neither curses.h nor ncurses.h!"
13096: HAVE_NCURSES_LIB=no
13097: NR_ERRORS=`expr $NR_ERRORS + 1`
13098: else
13099: if [ "x$ac_cv_header_ncurses_h" = "xno" ]; then
1.1.1.22 root 13100: { echo "$as_me:$LINENO: checking for attr_t in curses.h" >&5
13101: echo $ECHO_N "checking for attr_t in curses.h... $ECHO_C" >&6; }
1.1.1.19 root 13102: cat >conftest.$ac_ext <<_ACEOF
13103: /* confdefs.h. */
13104: _ACEOF
13105: cat confdefs.h >>conftest.$ac_ext
13106: cat >>conftest.$ac_ext <<_ACEOF
13107: /* end confdefs.h. */
1.1.1.4 root 13108: #include <curses.h>
1.1.1.19 root 13109: int
13110: main ()
13111: {
1.1.1.4 root 13112: { attr_t a; a = A_NORMAL; }
1.1.1.19 root 13113: ;
13114: return 0;
13115: }
13116: _ACEOF
13117: rm -f conftest.$ac_objext
1.1.1.22 root 13118: if { (ac_try="$ac_compile"
13119: case "(($ac_try" in
13120: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13121: *) ac_try_echo=$ac_try;;
13122: esac
13123: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13124: (eval "$ac_compile") 2>conftest.er1
1.1.1.19 root 13125: ac_status=$?
13126: grep -v '^ *+' conftest.er1 >conftest.err
13127: rm -f conftest.er1
13128: cat conftest.err >&5
13129: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.22 root 13130: (exit $ac_status); } && {
13131: test -z "$ac_c_werror_flag" ||
13132: test ! -s conftest.err
13133: } && test -s conftest.$ac_objext; then
13134: { echo "$as_me:$LINENO: result: yes" >&5
13135: echo "${ECHO_T}yes" >&6; }
1.1.1.19 root 13136: else
13137: echo "$as_me: failed program was:" >&5
13138: sed 's/^/| /' conftest.$ac_ext >&5
13139:
13140:
1.1.1.4 root 13141: ADDITIONAL_CFLAGS="$ADDITIONAL_CFLAGS -DDONT_HAVE_ATTR_T"
1.1.1.22 root 13142: { echo "$as_me:$LINENO: result: no" >&5
13143: echo "${ECHO_T}no" >&6; }
1.1.1.4 root 13144: NR_WARNINGS=`expr $NR_WARNINGS + 1`
13145: echo "Please install a newer version of libncurses if you can."
1.1.1.19 root 13146:
1.1.1.4 root 13147: fi
1.1.1.22 root 13148:
13149: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1.1.4 root 13150: else
1.1.1.22 root 13151: { echo "$as_me:$LINENO: checking for attr_t in ncurses.h" >&5
13152: echo $ECHO_N "checking for attr_t in ncurses.h... $ECHO_C" >&6; }
1.1.1.19 root 13153: cat >conftest.$ac_ext <<_ACEOF
13154: /* confdefs.h. */
13155: _ACEOF
13156: cat confdefs.h >>conftest.$ac_ext
13157: cat >>conftest.$ac_ext <<_ACEOF
13158: /* end confdefs.h. */
1.1.1.4 root 13159: #include <ncurses.h>
1.1.1.19 root 13160: int
13161: main ()
13162: {
1.1.1.4 root 13163: { attr_t a; a = A_NORMAL; }
1.1.1.19 root 13164: ;
13165: return 0;
13166: }
13167: _ACEOF
13168: rm -f conftest.$ac_objext
1.1.1.22 root 13169: if { (ac_try="$ac_compile"
13170: case "(($ac_try" in
13171: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13172: *) ac_try_echo=$ac_try;;
13173: esac
13174: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13175: (eval "$ac_compile") 2>conftest.er1
1.1.1.19 root 13176: ac_status=$?
13177: grep -v '^ *+' conftest.er1 >conftest.err
13178: rm -f conftest.er1
13179: cat conftest.err >&5
13180: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.22 root 13181: (exit $ac_status); } && {
13182: test -z "$ac_c_werror_flag" ||
13183: test ! -s conftest.err
13184: } && test -s conftest.$ac_objext; then
13185: { echo "$as_me:$LINENO: result: yes" >&5
13186: echo "${ECHO_T}yes" >&6; }
1.1.1.19 root 13187: else
13188: echo "$as_me: failed program was:" >&5
13189: sed 's/^/| /' conftest.$ac_ext >&5
13190:
13191:
1.1.1.4 root 13192: ADDITIONAL_CFLAGS="$ADDITIONAL_CFLAGS -DDONT_HAVE_ATTR_T"
1.1.1.22 root 13193: { echo "$as_me:$LINENO: result: no" >&5
13194: echo "${ECHO_T}no" >&6; }
1.1.1.4 root 13195: NR_WARNINGS=`expr $NR_WARNINGS + 1`
13196: echo "Please install a newer version of libncurses if you can."
1.1.1.19 root 13197:
1.1.1.4 root 13198: fi
1.1.1.22 root 13199:
13200: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1.1.2 root 13201: fi
1.1.1.4 root 13202: fi
1.1.1.2 root 13203: fi
1.1.1.4 root 13204:
1.1.1.22 root 13205: { echo "$as_me:$LINENO: checking for pthread library" >&5
13206: echo $ECHO_N "checking for pthread library... $ECHO_C" >&6; }
1.1.1.6 root 13207: TMP_SAVE_CFLAGS=$CFLAGS
13208: TMP_SAVE_LIBS=$LIBS
13209: LIBS="$LIBS -lpthread"
1.1.1.19 root 13210: cat >conftest.$ac_ext <<_ACEOF
13211: /* confdefs.h. */
13212: _ACEOF
13213: cat confdefs.h >>conftest.$ac_ext
13214: cat >>conftest.$ac_ext <<_ACEOF
13215: /* end confdefs.h. */
1.1.1.6 root 13216:
13217: #include "confdefs.h"
13218: #ifdef HAVE_SYS_TYPES_H
13219: #include <sys/types.h>
13220: #endif
13221: #include <pthread.h>
1.1.1.19 root 13222: int
13223: main ()
13224: {
1.1.1.6 root 13225:
13226: pthread_exit (0);
1.1.1.10 root 13227:
1.1.1.19 root 13228: ;
13229: return 0;
13230: }
13231: _ACEOF
13232: rm -f conftest.$ac_objext conftest$ac_exeext
1.1.1.22 root 13233: if { (ac_try="$ac_link"
13234: case "(($ac_try" in
13235: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13236: *) ac_try_echo=$ac_try;;
13237: esac
13238: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13239: (eval "$ac_link") 2>conftest.er1
1.1.1.19 root 13240: ac_status=$?
13241: grep -v '^ *+' conftest.er1 >conftest.err
13242: rm -f conftest.er1
13243: cat conftest.err >&5
13244: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.22 root 13245: (exit $ac_status); } && {
13246: test -z "$ac_c_werror_flag" ||
13247: test ! -s conftest.err
13248: } && test -s conftest$ac_exeext &&
13249: $as_test_x conftest$ac_exeext; then
1.1.1.6 root 13250: HAVE_PTHREAD_LIB=yes
1.1.1.22 root 13251: { echo "$as_me:$LINENO: result: yes" >&5
13252: echo "${ECHO_T}yes" >&6; }
1.1.1.6 root 13253: else
1.1.1.19 root 13254: echo "$as_me: failed program was:" >&5
13255: sed 's/^/| /' conftest.$ac_ext >&5
13256:
1.1.1.22 root 13257: HAVE_PTHREAD_LIB=no
13258: { echo "$as_me:$LINENO: result: no" >&5
13259: echo "${ECHO_T}no" >&6; }
1.1.1.6 root 13260: fi
1.1.1.22 root 13261:
13262: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.1.1.19 root 13263: conftest$ac_exeext conftest.$ac_ext
1.1.1.6 root 13264: CFLAGS=$TMP_SAVE_CFLAGS
13265: LIBS=$TMP_SAVE_LIBS
13266:
1.1.1.22 root 13267: { echo "$as_me:$LINENO: checking for DirectX" >&5
13268: echo $ECHO_N "checking for DirectX... $ECHO_C" >&6; }
1.1.1.6 root 13269: TMP_SAVE_CFLAGS=$CFLAGS
13270: TMP_SAVE_LIBS=$LIBS
13271: CFLAGS="$CFLAGS $X_CFLAGS"
13272: LIBS="$LIBS -lddraw"
1.1.1.19 root 13273: cat >conftest.$ac_ext <<_ACEOF
13274: /* confdefs.h. */
13275: _ACEOF
13276: cat confdefs.h >>conftest.$ac_ext
13277: cat >>conftest.$ac_ext <<_ACEOF
13278: /* end confdefs.h. */
1.1.1.6 root 13279:
13280: #include "confdefs.h"
13281: #ifdef HAVE_SYS_TYPES_H
13282: #include <sys/types.h>
13283: #endif
13284: #include <windows.h>
13285: #include <ddraw.h>
1.1.1.19 root 13286: int
13287: main ()
13288: {
1.1.1.6 root 13289:
13290: LPDIRECTDRAW lpDD;
13291: IDirectDraw_CreateSurface(lpDD, 0, 0, 0);
13292:
1.1.1.19 root 13293: ;
13294: return 0;
13295: }
13296: _ACEOF
13297: rm -f conftest.$ac_objext conftest$ac_exeext
1.1.1.22 root 13298: if { (ac_try="$ac_link"
13299: case "(($ac_try" in
13300: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13301: *) ac_try_echo=$ac_try;;
13302: esac
13303: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13304: (eval "$ac_link") 2>conftest.er1
1.1.1.19 root 13305: ac_status=$?
13306: grep -v '^ *+' conftest.er1 >conftest.err
13307: rm -f conftest.er1
13308: cat conftest.err >&5
13309: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.22 root 13310: (exit $ac_status); } && {
13311: test -z "$ac_c_werror_flag" ||
13312: test ! -s conftest.err
13313: } && test -s conftest$ac_exeext &&
13314: $as_test_x conftest$ac_exeext; then
1.1.1.6 root 13315: HAVE_DIRECTX=yes
1.1.1.22 root 13316: { echo "$as_me:$LINENO: result: yes" >&5
13317: echo "${ECHO_T}yes" >&6; }
1.1.1.6 root 13318: else
1.1.1.19 root 13319: echo "$as_me: failed program was:" >&5
13320: sed 's/^/| /' conftest.$ac_ext >&5
13321:
1.1.1.22 root 13322: HAVE_DIRECTX=no
13323: { echo "$as_me:$LINENO: result: no" >&5
13324: echo "${ECHO_T}no" >&6; }
1.1.1.6 root 13325: fi
1.1.1.22 root 13326:
13327: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.1.1.19 root 13328: conftest$ac_exeext conftest.$ac_ext
1.1.1.6 root 13329: CFLAGS=$TMP_SAVE_CFLAGS
13330: LIBS=$TMP_SAVE_LIBS
13331:
1.1.1.23 root 13332: HAVE_OSS_SOUND=no
13333: if [ "x$ac_cv_header_sys_soundcard_h" = "xyes" -o "x$ac_cv_header_machine_soundcard_h" = "xyes" ]; then
13334: { echo "$as_me:$LINENO: checking whether sys/soundcard.h or machine/soundcard.h works" >&5
13335: echo $ECHO_N "checking whether sys/soundcard.h or machine/soundcard.h works... $ECHO_C" >&6; }
13336: cat >conftest.$ac_ext <<_ACEOF
13337: /* confdefs.h. */
13338: _ACEOF
13339: cat confdefs.h >>conftest.$ac_ext
13340: cat >>conftest.$ac_ext <<_ACEOF
13341: /* end confdefs.h. */
13342:
13343: #include "confdefs.h"
13344: #ifdef HAVE_SYS_SOUNDCARD_H
13345: #include <sys/soundcard.h>
13346: #else
13347: #include <machine/soundcard.h>
13348: #endif
13349: #include <sys/ioctl.h>
13350:
13351: int
13352: main ()
13353: {
13354: int soundfd; ioctl (soundfd, SNDCTL_DSP_GETFMTS, 0);
13355: ;
13356: return 0;
13357: }
13358: _ACEOF
13359: rm -f conftest.$ac_objext
13360: if { (ac_try="$ac_compile"
13361: case "(($ac_try" in
13362: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13363: *) ac_try_echo=$ac_try;;
13364: esac
13365: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13366: (eval "$ac_compile") 2>conftest.er1
13367: ac_status=$?
13368: grep -v '^ *+' conftest.er1 >conftest.err
13369: rm -f conftest.er1
13370: cat conftest.err >&5
13371: echo "$as_me:$LINENO: \$? = $ac_status" >&5
13372: (exit $ac_status); } && {
13373: test -z "$ac_c_werror_flag" ||
13374: test ! -s conftest.err
13375: } && test -s conftest.$ac_objext; then
13376: { echo "$as_me:$LINENO: result: yes" >&5
13377: echo "${ECHO_T}yes" >&6; }
13378: HAVE_OSS_SOUND=yes
13379: else
13380: echo "$as_me: failed program was:" >&5
13381: sed 's/^/| /' conftest.$ac_ext >&5
13382:
13383: { echo "$as_me:$LINENO: result: no" >&5
13384: echo "${ECHO_T}no" >&6; }
13385: fi
13386:
13387: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13388: fi
13389:
1.1.1.4 root 13390: DO_PROFILING=no
13391: WANT_SVGALIB=dunno
13392: WANT_ASCIIART=dunno
13393: WANT_UI=dunno
13394: WANT_NCURSES_UI=no
13395: WANT_DGA=no
13396: WANT_VIDMODE=no
13397:
1.1.1.22 root 13398: # Check whether --enable-profiling was given.
1.1.1.4 root 13399: if test "${enable_profiling+set}" = set; then
1.1.1.22 root 13400: enableval=$enable_profiling; DO_PROFILING=$enableval
13401: fi
1.1.1.4 root 13402:
1.1.1.22 root 13403:
13404: # Check whether --with-svgalib was given.
1.1.1.4 root 13405: if test "${with_svgalib+set}" = set; then
1.1.1.22 root 13406: withval=$with_svgalib; WANT_SVGALIB=$withval
13407: fi
1.1.1.2 root 13408:
1.1.1.22 root 13409:
13410: # Check whether --with-sdl was given.
1.1.1.16 root 13411: if test "${with_sdl+set}" = set; then
1.1.1.22 root 13412: withval=$with_sdl; WANT_SDL=$withval
13413: fi
1.1.1.16 root 13414:
1.1.1.22 root 13415:
13416: # Check whether --with-sdl-sound was given.
1.1.1.17 root 13417: if test "${with_sdl_sound+set}" = set; then
1.1.1.22 root 13418: withval=$with_sdl_sound; WANT_SDLSND=$withval
13419: fi
1.1.1.17 root 13420:
1.1.1.22 root 13421:
13422: # Check whether --with-sdl-gfx was given.
1.1.1.17 root 13423: if test "${with_sdl_gfx+set}" = set; then
1.1.1.22 root 13424: withval=$with_sdl_gfx; WANT_SDLGFX=$withval
13425: fi
1.1.1.19 root 13426:
1.1.1.22 root 13427:
1.1.1.23 root 13428: # Check whether --with-oss-sound was given.
13429: if test "${with_oss_sound+set}" = set; then
13430: withval=$with_oss_sound; WANT_OSS=$withval
13431: fi
13432:
13433:
1.1.1.22 root 13434: # Check whether --with-alsa was given.
1.1.1.19 root 13435: if test "${with_alsa+set}" = set; then
1.1.1.22 root 13436: withval=$with_alsa; WANT_ALSA=$withval
13437: fi
1.1.1.17 root 13438:
1.1.1.22 root 13439:
13440: # Check whether --with-asciiart was given.
1.1.1.4 root 13441: if test "${with_asciiart+set}" = set; then
1.1.1.22 root 13442: withval=$with_asciiart; WANT_ASCIIART=$withval
13443: fi
13444:
13445: # Check whether --enable-dga was given.
1.1.1.4 root 13446: if test "${enable_dga+set}" = set; then
1.1.1.22 root 13447: enableval=$enable_dga; WANT_DGA=$enableval
13448: fi
13449:
13450: # Check whether --enable-vidmode was given.
1.1.1.4 root 13451: if test "${enable_vidmode+set}" = set; then
1.1.1.22 root 13452: enableval=$enable_vidmode; WANT_VIDMODE=$enableval
13453: fi
13454:
13455: # Check whether --enable-ui was given.
1.1.1.4 root 13456: if test "${enable_ui+set}" = set; then
1.1.1.22 root 13457: enableval=$enable_ui; WANT_UI=$enableval
13458: fi
1.1.1.4 root 13459:
1.1.1.22 root 13460:
13461: # Check whether --with-hostcc was given.
1.1.1.16 root 13462: if test "${with_hostcc+set}" = set; then
1.1.1.22 root 13463: withval=$with_hostcc; HOSTCC=$withval
1.1.1.16 root 13464: else
13465: HOSTCC=$CC
1.1.1.22 root 13466: fi
13467:
1.1.1.4 root 13468:
13469:
1.1.1.23 root 13470: mkdir -p src/tools
13471: progname=$0
13472: srcd=`echo ${progname} | sed -e 's,[^/]*$,,;s,/$,,;s,^$,.,'`
13473: topsrcdir=`cd $srcd; pwd`
13474: tcc=$CC
13475: CC=$HOSTCC
13476: (cd src/tools && $topsrcdir/src/tools/configure)
13477: CC=$tcc
13478:
13479:
13480: if [ "x$WANT_ALSA" = "xyes" ]; then
13481: if [ "x$HAVE_ALSA" = "xno" ]; then
13482: echo "Could not find libasound, disabling ALSA support."
13483: NR_ERRORS=`expr $NR_ERRORS + 1`
13484: WANT_ALSA=no
13485: else
13486: LIBS="$LIBS -lasound"
13487: fi
13488: fi
13489:
13490: if [ "x$WANT_OSS" = "xyes" ]; then
13491: if [ "x$HAVE_OSS_SOUND" = "xno" ]; then
13492: echo "Could not find OSS interface, disabling OSS support."
13493: NR_ERRORS=`expr $NR_ERRORS + 1`
13494: WANT_ALSA=no
13495: else
13496: LIBS="$LIBS -lasound"
13497: fi
13498: fi
13499:
13500: if [ "x$WANT_SDLSND" = "xyes" ]; then
13501: if [ "x$WANT_ALSA" = "xyes" -o "x$WANT_OSS" = "xyes" ]; then
13502: echo "Multiple sound backends selected; disabling SDL sound."
13503: WANT_SDLSND=no
13504: fi
13505: fi
13506:
13507: if [ "x$WANT_ALSA" = "xyes" ]; then
13508: if [ "x$WANT_OSS" = "xyes" ]; then
13509: echo "Multiple sound backends selected; disabling ALSA."
13510: WANT_ALSA=no
13511: fi
13512: fi
13513:
1.1.1.17 root 13514: if [ "x$WANT_SDLSND" = "xyes" -o "x$WANT_SDLGFX" = "xyes" ]; then
1.1.1.19 root 13515: WANT_SDL=yes
1.1.1.17 root 13516: fi
13517:
13518: if [ "x$WANT_SDL" = "xyes" ]; then
13519: if [ "x$HAVE_SDL_LIB" = "xno" ]; then
13520: echo "Could not find libSDL, disabling SDL support."
13521: NR_ERRORS=`expr $NR_ERRORS + 1`
13522: WANT_SDL=no
13523: WANT_SDLSND=no
13524: WANT_SDLGFX=no
13525: else
13526: LIBS="$LIBS $SDL_LIBS"
13527: ADDITIONAL_CFLAGS="$ADDITIONAL_CFLAGS $SDL_CFLAGS -DUSE_SDL"
13528: fi
13529: fi
13530:
1.1.1.4 root 13531: if [ "x$WANT_DGA" = "xyes" ]; then
1.1.1.17 root 13532: if [ "x$WANT_SVGALIB" = "xyes" -o "x$WANT_ASCIIART" = "xyes" -o "x$WANT_SDLGFX" = "xyes" ]; then
1.1.1.16 root 13533: echo "You can't enable DGA for SVGAlib, SDL and ncurses targets!"
13534: NR_ERRORS=`expr $NR_ERRORS + 1`
13535: WANT_DGA=no
13536: fi
13537: fi
13538:
13539: if [ "x$WANT_SVGALIB" = "xyes" ]; then
1.1.1.17 root 13540: if [ "x$WANT_ASCIIART" = "xyes" -o "x$WANT_SDLGFX" = "xyes" ]; then
1.1.1.16 root 13541: echo "You can't enable both SVGAlib and other targets!"
1.1.1.4 root 13542: NR_ERRORS=`expr $NR_ERRORS + 1`
13543: WANT_DGA=no
13544: fi
13545: fi
13546:
13547: if [ "x$WANT_DGA" = "xyes" -a "x$no_x" = "xyes" ]; then
13548: echo "Ignoring --enable-dga, since X was disabled or not found."
13549: NR_ERRORS=`expr $NR_ERRORS + 1`
13550: WANT_DGA=no
13551: fi
13552:
13553: if [ "x$WANT_DGA" = "xno" -a "x$WANT_VIDMODE" = "xyes" ]; then
13554: echo "The XF86VidMode extension can only be used in DGA mode. Disabling it."
13555: NR_ERRORS=`expr $NR_ERRORS + 1`
13556: WANT_VIDMODE=no
13557: fi
13558:
13559:
13560: if [ "x$WANT_SVGALIB" = "xyes" ]; then
13561: if [ "x$HAVE_SVGA_LIB" = "xno" ]; then
13562: echo "Could not find libsvga, disabling svgalib support."
13563: NR_ERRORS=`expr $NR_ERRORS + 1`
13564: WANT_SVGALIB=no
1.1 root 13565: else
1.1.1.4 root 13566: no_x=yes
13567: fi
13568: fi
13569:
13570: if [ "x$WANT_ASCIIART" = "xyes" ]; then
13571: if [ "x$HAVE_NCURSES_LIB" = "xno" ]; then
13572: echo "Could not find libncurses, disabling ascii art support."
13573: NR_ERRORS=`expr $NR_ERRORS + 1`
13574: WANT_ASCIIART=no
1.1.1.17 root 13575: else if [ "x$WANT_SVGALIB" = "xyes" -o "x$WANT_SDLGFX" = "xyes" ]; then
1.1.1.4 root 13576: echo "You can't configure for both ncurses and another target. Disabling ncurses."
13577: NR_ERRORS=`expr $NR_ERRORS + 1`
13578: WANT_ASCIIART=no
13579: else
13580: no_x=yes
13581: fi
13582: fi
13583: fi
13584:
13585:
13586: if [ "x$WANT_DGA" = "xyes" ]; then
13587: TMP_SAVE_LIBS=$LIBS
13588: LIBS="$X_LIBS $LIBS"
1.1.1.22 root 13589: { echo "$as_me:$LINENO: checking for XF86DGAQueryExtension in -lXxf86dga" >&5
13590: echo $ECHO_N "checking for XF86DGAQueryExtension in -lXxf86dga... $ECHO_C" >&6; }
1.1.1.19 root 13591: if test "${ac_cv_lib_Xxf86dga_XF86DGAQueryExtension+set}" = set; then
13592: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1.1.2 root 13593: else
1.1.1.19 root 13594: ac_check_lib_save_LIBS=$LIBS
1.1.1.4 root 13595: LIBS="-lXxf86dga $X_PRE_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
1.1.1.19 root 13596: cat >conftest.$ac_ext <<_ACEOF
13597: /* confdefs.h. */
13598: _ACEOF
13599: cat confdefs.h >>conftest.$ac_ext
13600: cat >>conftest.$ac_ext <<_ACEOF
13601: /* end confdefs.h. */
13602:
1.1.1.22 root 13603: /* Override any GCC internal prototype to avoid an error.
13604: Use char because int might match the return type of a GCC
13605: builtin and then its argument prototype would still apply. */
1.1.1.19 root 13606: #ifdef __cplusplus
13607: extern "C"
13608: #endif
13609: char XF86DGAQueryExtension ();
13610: int
13611: main ()
13612: {
1.1.1.22 root 13613: return XF86DGAQueryExtension ();
1.1.1.19 root 13614: ;
13615: return 0;
13616: }
13617: _ACEOF
13618: rm -f conftest.$ac_objext conftest$ac_exeext
1.1.1.22 root 13619: if { (ac_try="$ac_link"
13620: case "(($ac_try" in
13621: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13622: *) ac_try_echo=$ac_try;;
13623: esac
13624: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13625: (eval "$ac_link") 2>conftest.er1
1.1.1.19 root 13626: ac_status=$?
13627: grep -v '^ *+' conftest.er1 >conftest.err
13628: rm -f conftest.er1
13629: cat conftest.err >&5
13630: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.22 root 13631: (exit $ac_status); } && {
13632: test -z "$ac_c_werror_flag" ||
13633: test ! -s conftest.err
13634: } && test -s conftest$ac_exeext &&
13635: $as_test_x conftest$ac_exeext; then
1.1.1.19 root 13636: ac_cv_lib_Xxf86dga_XF86DGAQueryExtension=yes
13637: else
13638: echo "$as_me: failed program was:" >&5
13639: sed 's/^/| /' conftest.$ac_ext >&5
13640:
1.1.1.22 root 13641: ac_cv_lib_Xxf86dga_XF86DGAQueryExtension=no
1.1.1.19 root 13642: fi
1.1.1.22 root 13643:
13644: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.1.1.19 root 13645: conftest$ac_exeext conftest.$ac_ext
13646: LIBS=$ac_check_lib_save_LIBS
13647: fi
1.1.1.22 root 13648: { echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86dga_XF86DGAQueryExtension" >&5
13649: echo "${ECHO_T}$ac_cv_lib_Xxf86dga_XF86DGAQueryExtension" >&6; }
1.1.1.19 root 13650: if test $ac_cv_lib_Xxf86dga_XF86DGAQueryExtension = yes; then
1.1.1.4 root 13651: HAVE_DGA=yes
1.1.1.2 root 13652: else
1.1.1.19 root 13653: HAVE_DGA=no
1.1.1.2 root 13654: fi
13655:
1.1.1.4 root 13656: LIBS=$TMP_SAVE_LIBS
13657: if [ "x$HAVE_DGA" = "xno" ]; then
13658: echo "Could not find DGA extension, ignoring --enable-dga."
13659: NR_ERRORS=`expr $NR_ERRORS + 1`
13660: WANT_DGA=no
1.1.1.3 root 13661: fi
1.1.1.2 root 13662: fi
13663:
1.1.1.4 root 13664: if [ "x$WANT_VIDMODE" = "xyes" ]; then
13665: TMP_SAVE_LIBS=$LIBS
13666: LIBS="$X_LIBS $LIBS"
1.1.1.22 root 13667: { echo "$as_me:$LINENO: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
13668: echo $ECHO_N "checking for XF86VidModeQueryExtension in -lXxf86vm... $ECHO_C" >&6; }
1.1.1.19 root 13669: if test "${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+set}" = set; then
13670: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1.1.3 root 13671: else
1.1.1.19 root 13672: ac_check_lib_save_LIBS=$LIBS
1.1.1.4 root 13673: LIBS="-lXxf86vm $X_PRE_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
1.1.1.19 root 13674: cat >conftest.$ac_ext <<_ACEOF
13675: /* confdefs.h. */
13676: _ACEOF
13677: cat confdefs.h >>conftest.$ac_ext
13678: cat >>conftest.$ac_ext <<_ACEOF
13679: /* end confdefs.h. */
13680:
1.1.1.22 root 13681: /* Override any GCC internal prototype to avoid an error.
13682: Use char because int might match the return type of a GCC
13683: builtin and then its argument prototype would still apply. */
1.1.1.19 root 13684: #ifdef __cplusplus
13685: extern "C"
13686: #endif
13687: char XF86VidModeQueryExtension ();
13688: int
13689: main ()
13690: {
1.1.1.22 root 13691: return XF86VidModeQueryExtension ();
1.1.1.19 root 13692: ;
13693: return 0;
13694: }
13695: _ACEOF
13696: rm -f conftest.$ac_objext conftest$ac_exeext
1.1.1.22 root 13697: if { (ac_try="$ac_link"
13698: case "(($ac_try" in
13699: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13700: *) ac_try_echo=$ac_try;;
13701: esac
13702: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13703: (eval "$ac_link") 2>conftest.er1
1.1.1.19 root 13704: ac_status=$?
13705: grep -v '^ *+' conftest.er1 >conftest.err
13706: rm -f conftest.er1
13707: cat conftest.err >&5
13708: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.22 root 13709: (exit $ac_status); } && {
13710: test -z "$ac_c_werror_flag" ||
13711: test ! -s conftest.err
13712: } && test -s conftest$ac_exeext &&
13713: $as_test_x conftest$ac_exeext; then
1.1.1.19 root 13714: ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=yes
13715: else
13716: echo "$as_me: failed program was:" >&5
13717: sed 's/^/| /' conftest.$ac_ext >&5
13718:
1.1.1.22 root 13719: ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=no
1.1.1.19 root 13720: fi
1.1.1.22 root 13721:
13722: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.1.1.19 root 13723: conftest$ac_exeext conftest.$ac_ext
13724: LIBS=$ac_check_lib_save_LIBS
13725: fi
1.1.1.22 root 13726: { echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5
13727: echo "${ECHO_T}$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6; }
1.1.1.19 root 13728: if test $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension = yes; then
1.1.1.4 root 13729: HAVE_VIDMODE=yes
1.1.1.3 root 13730: else
1.1.1.19 root 13731: HAVE_VIDMODE=no
1.1.1.3 root 13732: fi
13733:
1.1.1.4 root 13734: LIBS=$TMP_SAVE_LIBS
13735: if [ "x$HAVE_VIDMODE" = "xno" ]; then
13736: echo "Could not find VidMode extension, ignoring --enable-vidmode."
13737: NR_ERRORS=`expr $NR_ERRORS + 1`
13738: WANT_VIDMODE=no
1.1.1.3 root 13739: fi
1.1.1.4 root 13740: fi
13741:
1.1.1.20 root 13742: #GTK_PACKAGES="gtk+-2.0"
1.1.1.23 root 13743: #GTK_REQUIRED_VERSION=2.4.0
1.1.1.20 root 13744: #PKG_CHECK_MODULES(DEPS, $GTK_PACKAGES >= $GTK_REQUIRED_VERSION)
13745: #GTK_CFLAGS=`$PKG_CONFIG --cflags $ATK_PACKAGES $GTK_PACKAGES $LIBGNOMECANVAS_PACKAGES`
13746: #GTK_LIBS=`$PKG_CONFIG --libs $ATK_PACKAGES $GTK_PACKAGES $LIBGNOMECANVAS_PACKAGES`
1.1.1.19 root 13747:
1.1.1.22 root 13748: # Check whether --enable-gtktest was given.
1.1.1.4 root 13749: if test "${enable_gtktest+set}" = set; then
1.1.1.22 root 13750: enableval=$enable_gtktest;
1.1.1.4 root 13751: else
13752: enable_gtktest=yes
1.1.1.22 root 13753: fi
13754:
1.1.1.4 root 13755:
1.1.1.20 root 13756: pkg_config_args=gtk+-2.0
1.1.1.19 root 13757: for module in .
13758: do
13759: case "$module" in
13760: gthread)
1.1.1.20 root 13761: pkg_config_args="$pkg_config_args gthread-2.0"
1.1.1.19 root 13762: ;;
13763: esac
13764: done
1.1.1.4 root 13765:
1.1.1.20 root 13766: no_gtk=""
1.1.1.4 root 13767:
1.1.1.20 root 13768: # Extract the first word of "pkg-config", so it can be a program name with args.
13769: set dummy pkg-config; ac_word=$2
1.1.1.22 root 13770: { echo "$as_me:$LINENO: checking for $ac_word" >&5
13771: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1.1.1.20 root 13772: if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
1.1.1.19 root 13773: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1.1.4 root 13774: else
1.1.1.20 root 13775: case $PKG_CONFIG in
1.1.1.19 root 13776: [\\/]* | ?:[\\/]*)
1.1.1.20 root 13777: ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
1.1.1.4 root 13778: ;;
13779: *)
1.1.1.19 root 13780: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13781: for as_dir in $PATH
13782: do
13783: IFS=$as_save_IFS
13784: test -z "$as_dir" && as_dir=.
13785: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.22 root 13786: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.1.1.20 root 13787: ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
1.1.1.19 root 13788: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13789: break 2
13790: fi
13791: done
13792: done
1.1.1.22 root 13793: IFS=$as_save_IFS
1.1.1.19 root 13794:
1.1.1.20 root 13795: test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
1.1.1.4 root 13796: ;;
13797: esac
13798: fi
1.1.1.20 root 13799: PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13800: if test -n "$PKG_CONFIG"; then
1.1.1.22 root 13801: { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13802: echo "${ECHO_T}$PKG_CONFIG" >&6; }
1.1.1.4 root 13803: else
1.1.1.22 root 13804: { echo "$as_me:$LINENO: result: no" >&5
13805: echo "${ECHO_T}no" >&6; }
1.1.1.4 root 13806: fi
13807:
1.1.1.20 root 13808:
1.1.1.22 root 13809:
1.1.1.20 root 13810: if test x$PKG_CONFIG != xno ; then
13811: if pkg-config --atleast-pkgconfig-version 0.7 ; then
13812: :
13813: else
1.1.1.22 root 13814: echo "*** pkg-config too old; version 0.7 or better required."
1.1.1.20 root 13815: no_gtk=yes
13816: PKG_CONFIG=no
13817: fi
1.1.1.4 root 13818: else
1.1.1.20 root 13819: no_gtk=yes
13820: fi
13821:
1.1.1.23 root 13822: min_gtk_version=2.4.0
1.1.1.22 root 13823: { echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5
13824: echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6; }
1.1.1.20 root 13825:
13826: if test x$PKG_CONFIG != xno ; then
13827: ## don't try to run the test against uninstalled libtool libs
13828: if $PKG_CONFIG --uninstalled $pkg_config_args; then
13829: echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
13830: enable_gtktest=no
13831: fi
13832:
13833: if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
13834: :
13835: else
13836: no_gtk=yes
13837: fi
13838: fi
13839:
13840: if test x"$no_gtk" = x ; then
13841: GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
13842: GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
13843: gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
1.1.1.4 root 13844: sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
1.1.1.20 root 13845: gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
1.1.1.4 root 13846: sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
1.1.1.20 root 13847: gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
1.1.1.4 root 13848: sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
13849: if test "x$enable_gtktest" = "xyes" ; then
13850: ac_save_CFLAGS="$CFLAGS"
13851: ac_save_LIBS="$LIBS"
13852: CFLAGS="$CFLAGS $GTK_CFLAGS"
1.1.1.19 root 13853: LIBS="$GTK_LIBS $LIBS"
1.1.1.4 root 13854: rm -f conf.gtktest
13855: if test "$cross_compiling" = yes; then
13856: echo $ac_n "cross compiling; assumed OK... $ac_c"
13857: else
1.1.1.19 root 13858: cat >conftest.$ac_ext <<_ACEOF
13859: /* confdefs.h. */
13860: _ACEOF
13861: cat confdefs.h >>conftest.$ac_ext
13862: cat >>conftest.$ac_ext <<_ACEOF
13863: /* end confdefs.h. */
1.1.1.4 root 13864:
13865: #include <gtk/gtk.h>
13866: #include <stdio.h>
1.1.1.19 root 13867: #include <stdlib.h>
1.1.1.4 root 13868:
1.1.1.19 root 13869: int
1.1.1.4 root 13870: main ()
1.1.1.3 root 13871: {
1.1.1.4 root 13872: int major, minor, micro;
1.1.1.19 root 13873: char *tmp_version;
1.1.1.4 root 13874:
13875: system ("touch conf.gtktest");
13876:
1.1.1.19 root 13877: /* HP/UX 9 (%@#!) writes to sscanf strings */
13878: tmp_version = g_strdup("$min_gtk_version");
13879: if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
1.1.1.4 root 13880: printf("%s, bad version string\n", "$min_gtk_version");
13881: exit(1);
13882: }
13883:
13884: if ((gtk_major_version != $gtk_config_major_version) ||
13885: (gtk_minor_version != $gtk_config_minor_version) ||
13886: (gtk_micro_version != $gtk_config_micro_version))
13887: {
1.1.1.20 root 13888: printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
1.1.1.4 root 13889: $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
13890: gtk_major_version, gtk_minor_version, gtk_micro_version);
1.1.1.20 root 13891: printf ("*** was found! If pkg-config was correct, then it is best\n");
1.1.1.4 root 13892: printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
13893: printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
13894: printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
13895: printf("*** required on your system.\n");
1.1.1.20 root 13896: printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
13897: printf("*** to point to the correct configuration files\n");
1.1.1.19 root 13898: }
13899: else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
13900: (gtk_minor_version != GTK_MINOR_VERSION) ||
13901: (gtk_micro_version != GTK_MICRO_VERSION))
13902: {
13903: printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
13904: GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
13905: printf("*** library (version %d.%d.%d)\n",
13906: gtk_major_version, gtk_minor_version, gtk_micro_version);
13907: }
1.1.1.4 root 13908: else
13909: {
13910: if ((gtk_major_version > major) ||
13911: ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
13912: ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
13913: {
13914: return 0;
13915: }
13916: else
13917: {
13918: printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
13919: gtk_major_version, gtk_minor_version, gtk_micro_version);
13920: printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
13921: major, minor, micro);
13922: printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
13923: printf("***\n");
13924: printf("*** If you have already installed a sufficiently new version, this error\n");
1.1.1.20 root 13925: printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
1.1.1.4 root 13926: printf("*** being found. The easiest way to fix this is to remove the old version\n");
1.1.1.20 root 13927: printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
13928: printf("*** correct copy of pkg-config. (In this case, you will have to\n");
1.1.1.4 root 13929: printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
13930: printf("*** so that the correct libraries are found at run-time))\n");
13931: }
13932: }
13933: return 1;
1.1.1.3 root 13934: }
1.1.1.4 root 13935:
1.1.1.19 root 13936: _ACEOF
13937: rm -f conftest$ac_exeext
1.1.1.22 root 13938: if { (ac_try="$ac_link"
13939: case "(($ac_try" in
13940: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13941: *) ac_try_echo=$ac_try;;
13942: esac
13943: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13944: (eval "$ac_link") 2>&5
1.1.1.19 root 13945: ac_status=$?
13946: echo "$as_me:$LINENO: \$? = $ac_status" >&5
13947: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
1.1.1.22 root 13948: { (case "(($ac_try" in
13949: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13950: *) ac_try_echo=$ac_try;;
13951: esac
13952: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13953: (eval "$ac_try") 2>&5
1.1.1.19 root 13954: ac_status=$?
13955: echo "$as_me:$LINENO: \$? = $ac_status" >&5
13956: (exit $ac_status); }; }; then
1.1.1.4 root 13957: :
13958: else
1.1.1.19 root 13959: echo "$as_me: program exited with status $ac_status" >&5
13960: echo "$as_me: failed program was:" >&5
13961: sed 's/^/| /' conftest.$ac_ext >&5
13962:
13963: ( exit $ac_status )
13964: no_gtk=yes
1.1.1.4 root 13965: fi
1.1.1.22 root 13966: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.1.1.4 root 13967: fi
1.1.1.22 root 13968:
13969:
1.1.1.4 root 13970: CFLAGS="$ac_save_CFLAGS"
13971: LIBS="$ac_save_LIBS"
13972: fi
13973: fi
13974: if test "x$no_gtk" = x ; then
1.1.1.22 root 13975: { echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
13976: echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6; }
1.1.1.19 root 13977: :
1.1.1.4 root 13978: else
1.1.1.22 root 13979: { echo "$as_me:$LINENO: result: no" >&5
13980: echo "${ECHO_T}no" >&6; }
1.1.1.20 root 13981: if test "$PKG_CONFIG" = "no" ; then
13982: echo "*** A new enough version of pkg-config was not found."
13983: echo "*** See http://pkgconfig.sourceforge.net"
1.1.1.4 root 13984: else
13985: if test -f conf.gtktest ; then
13986: :
13987: else
1.1.1.20 root 13988: echo "*** Could not run GTK+ test program, checking why..."
13989: ac_save_CFLAGS="$CFLAGS"
13990: ac_save_LIBS="$LIBS"
1.1.1.4 root 13991: CFLAGS="$CFLAGS $GTK_CFLAGS"
13992: LIBS="$LIBS $GTK_LIBS"
1.1.1.19 root 13993: cat >conftest.$ac_ext <<_ACEOF
13994: /* confdefs.h. */
13995: _ACEOF
13996: cat confdefs.h >>conftest.$ac_ext
13997: cat >>conftest.$ac_ext <<_ACEOF
13998: /* end confdefs.h. */
1.1.1.4 root 13999:
14000: #include <gtk/gtk.h>
14001: #include <stdio.h>
14002:
1.1.1.19 root 14003: int
14004: main ()
14005: {
14006: return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
14007: ;
14008: return 0;
14009: }
14010: _ACEOF
14011: rm -f conftest.$ac_objext conftest$ac_exeext
1.1.1.22 root 14012: if { (ac_try="$ac_link"
14013: case "(($ac_try" in
14014: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14015: *) ac_try_echo=$ac_try;;
14016: esac
14017: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14018: (eval "$ac_link") 2>conftest.er1
1.1.1.19 root 14019: ac_status=$?
14020: grep -v '^ *+' conftest.er1 >conftest.err
14021: rm -f conftest.er1
14022: cat conftest.err >&5
14023: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.22 root 14024: (exit $ac_status); } && {
14025: test -z "$ac_c_werror_flag" ||
14026: test ! -s conftest.err
14027: } && test -s conftest$ac_exeext &&
14028: $as_test_x conftest$ac_exeext; then
1.1.1.4 root 14029: echo "*** The test program compiled, but did not run. This usually means"
1.1.1.20 root 14030: echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
14031: echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
1.1.1.4 root 14032: echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
14033: echo "*** to the installed location Also, make sure you have run ldconfig if that"
14034: echo "*** is required on your system"
14035: echo "***"
14036: echo "*** If you have an old version installed, it is best to remove it, although"
14037: echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
14038: else
1.1.1.19 root 14039: echo "$as_me: failed program was:" >&5
14040: sed 's/^/| /' conftest.$ac_ext >&5
14041:
1.1.1.22 root 14042: echo "*** The test program failed to compile or link. See the file config.log for the"
1.1.1.20 root 14043: echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
1.1.1.4 root 14044: fi
1.1.1.22 root 14045:
14046: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.1.1.19 root 14047: conftest$ac_exeext conftest.$ac_ext
1.1.1.4 root 14048: CFLAGS="$ac_save_CFLAGS"
14049: LIBS="$ac_save_LIBS"
14050: fi
14051: fi
14052: GTK_CFLAGS=""
14053: GTK_LIBS=""
14054: :
1.1.1.3 root 14055: fi
1.1.1.19 root 14056:
14057:
1.1.1.4 root 14058: rm -f conf.gtktest
1.1.1.3 root 14059:
1.1.1.4 root 14060:
14061:
14062: SHM_SUPPORT_LINKS=0
1.1.1.6 root 14063: if [ "x$no_x" != "xyes" -a "x$ac_cv_header_sys_ipc_h" = "xyes" -a "x$ac_cv_header_sys_shm_h" = "xyes" ]; then
1.1.1.22 root 14064: { echo "$as_me:$LINENO: checking whether the X11 MIT-SHM extension can be compiled in" >&5
14065: echo $ECHO_N "checking whether the X11 MIT-SHM extension can be compiled in... $ECHO_C" >&6; }
1.1.1.4 root 14066: TMP_SAVE_CFLAGS=$CFLAGS
14067: TMP_SAVE_LIBS=$LIBS
14068: CFLAGS="$CFLAGS $X_CFLAGS"
14069: LIBS="$X_LIBS $LIBS $X_PRE_LIBS -lX11 -lXext $X_EXTRA_LIBS"
1.1.1.19 root 14070: cat >conftest.$ac_ext <<_ACEOF
14071: /* confdefs.h. */
14072: _ACEOF
14073: cat confdefs.h >>conftest.$ac_ext
14074: cat >>conftest.$ac_ext <<_ACEOF
14075: /* end confdefs.h. */
1.1.1.2 root 14076:
1.1.1.4 root 14077: #include "confdefs.h"
14078: #ifdef HAVE_SYS_TYPES_H
14079: #include <sys/types.h>
14080: #endif
14081: #include <X11/Xlib.h>
14082: #include <X11/Xutil.h>
14083: #include <X11/keysym.h>
14084: #include <X11/cursorfont.h>
14085: #include <sys/ipc.h>
14086: #include <sys/shm.h>
14087: #include <X11/extensions/XShm.h>
1.1.1.19 root 14088: int
14089: main ()
14090: {
1.1.1.4 root 14091:
14092: static XShmSegmentInfo shminfo;
14093: static Display *display;
14094: XShmAttach(display, &shminfo);
14095: XSync(display,0);
14096: shmctl(shminfo.shmid, IPC_RMID, 0);
1.1.1.10 root 14097:
1.1.1.19 root 14098: ;
14099: return 0;
14100: }
14101: _ACEOF
14102: rm -f conftest.$ac_objext conftest$ac_exeext
1.1.1.22 root 14103: if { (ac_try="$ac_link"
14104: case "(($ac_try" in
14105: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14106: *) ac_try_echo=$ac_try;;
14107: esac
14108: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14109: (eval "$ac_link") 2>conftest.er1
1.1.1.19 root 14110: ac_status=$?
14111: grep -v '^ *+' conftest.er1 >conftest.err
14112: rm -f conftest.er1
14113: cat conftest.err >&5
14114: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.22 root 14115: (exit $ac_status); } && {
14116: test -z "$ac_c_werror_flag" ||
14117: test ! -s conftest.err
14118: } && test -s conftest$ac_exeext &&
14119: $as_test_x conftest$ac_exeext; then
1.1.1.4 root 14120: SHM_SUPPORT_LINKS=1
1.1.1.22 root 14121: { echo "$as_me:$LINENO: result: yes" >&5
14122: echo "${ECHO_T}yes" >&6; }
1.1 root 14123: else
1.1.1.19 root 14124: echo "$as_me: failed program was:" >&5
14125: sed 's/^/| /' conftest.$ac_ext >&5
14126:
1.1.1.22 root 14127: SHM_SUPPORT_LINKS=0
14128: { echo "$as_me:$LINENO: result: no" >&5
14129: echo "${ECHO_T}no" >&6; }
1.1 root 14130: fi
1.1.1.22 root 14131:
14132: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.1.1.19 root 14133: conftest$ac_exeext conftest.$ac_ext
1.1.1.4 root 14134: CFLAGS=$TMP_SAVE_CFLAGS
14135: LIBS=$TMP_SAVE_LIBS
1.1 root 14136: fi
14137:
1.1.1.4 root 14138: MATHLIB=-lm
14139: DEBUGOBJS="debug.o"
14140:
1.1.1.23 root 14141: GUIDEP=gui-none
14142: GUIOBJS_IN=nogui.o
14143:
1.1.1.22 root 14144: { echo "$as_me:$LINENO: checking which target to use" >&5
14145: echo $ECHO_N "checking which target to use... $ECHO_C" >&6; }
1.1.1.4 root 14146:
1.1.1.17 root 14147: if [ "x$WANT_SDLGFX" = "xyes" ]; then
1.1.1.22 root 14148: { echo "$as_me:$LINENO: result: SDL" >&5
14149: echo "${ECHO_T}SDL" >&6; }
1.1.1.17 root 14150: MATHLIB=
14151: TARGET=x11
1.1.1.22 root 14152: GFXOBJS="sdlgfx.o sdlkeys.o rawkeys.o"
1.1.1.17 root 14153: # @@@ Kludge. This may get changed later.
14154: TARGETDEP=t-x11.h
14155: else if [ "x$HAVE_DIRECTX" = "xyes" ]; then
1.1.1.22 root 14156: { echo "$as_me:$LINENO: result: Win32/DirectX" >&5
14157: echo "${ECHO_T}Win32/DirectX" >&6; }
1.1.1.6 root 14158: MATHLIB=
14159: TARGET=win32
14160: TARGETDEP=t-win32.h
1.1.1.17 root 14161: GFXOBJS="osdep/win32.o osdep/parser.o osdep/keyboard.o osdep/posixemu.o"
1.1.1.6 root 14162: RESOBJS="osdep/winuae.res"
14163: else if [ "x$HAVE_BEOS" = "xyes" ]; then
1.1.1.22 root 14164: { echo "$as_me:$LINENO: result: BeOS" >&5
14165: echo "${ECHO_T}BeOS" >&6; }
1.1.1.4 root 14166: MATHLIB=
14167: TARGET=beos
14168: TARGETDEP=t-beos.h
14169: GFXOBJS=osdep/beos.o
14170: OPTIMIZE_CFLAGS=-O7
14171: else if [ "x$HAVE_AMIGA_LIB" = "xyes" ]; then
1.1.1.22 root 14172: { echo "$as_me:$LINENO: result: AmigaOS" >&5
14173: echo "${ECHO_T}AmigaOS" >&6; }
1.1.1.4 root 14174: TARGET=amigaos
14175: TARGETDEP=t-amiga.h
14176: GFXOBJS="osdep/ami-win.o osdep/ami-disk.o osdep/ami-rexx.o osdep/ami-appw.o"
14177: else if [ "x$HAVE_NEXT_LIB" = "xyes" ]; then
1.1.1.22 root 14178: { echo "$as_me:$LINENO: result: NeXTStep" >&5
14179: echo "${ECHO_T}NeXTStep" >&6; }
1.1.1.4 root 14180: MATHLIB=
14181: TARGET=next
14182: GFXOBJS="NeXTwin.o"
14183: TARGETDEP=t-next.h
14184: LIBRARIES="-sectcreate __ICON __header ../Uae.app/Uae.iconheader -segprot __ICON r r -sectcreate __ICON app ../Uae.app/Uae.tiff -lMedia_s -lNeXT_s"
14185: else
1.1.1.19 root 14186:
1.1.1.4 root 14187: if [ "x$no_x" = "xyes" ]; then
1.1.1.13 root 14188: if [ "x$WANT_SVGALIB" != "xyes" -a "x$WANT_ASCIIART" != "xyes" ]; then
1.1.1.4 root 14189: if [ "x$WANT_SVGALIB" != "xno" -a "x$HAVE_SVGA_LIB" = "xyes" ]; then
14190: WANT_SVGALIB=yes
14191: else if [ "x$WANT_ASCIIART" != "xno" -a "x$HAVE_NCURSES_LIB" = "xyes" ]; then
14192: WANT_ASCIIART=yes
14193: fi
14194: fi
14195: fi
1.1.1.3 root 14196: fi
1.1.1.4 root 14197:
1.1.1.13 root 14198: if [ "x$WANT_SVGALIB" = "xyes" ]; then
1.1.1.22 root 14199: { echo "$as_me:$LINENO: result: SVGAlib" >&5
14200: echo "${ECHO_T}SVGAlib" >&6; }
1.1.1.4 root 14201: TARGET=svgalib
14202: TARGETDEP=t-svgalib.h
14203: GFXOBJS=svga.o
14204: LIBRARIES="-lvga"
14205: WANT_NCURSES_UI=yes
14206: else if [ "x$WANT_ASCIIART" = "xyes" ]; then
1.1.1.22 root 14207: { echo "$as_me:$LINENO: result: ncurses ASCII art" >&5
14208: echo "${ECHO_T}ncurses ASCII art" >&6; }
1.1.1.4 root 14209: TARGET=asciiart
14210: TARGETDEP=t-ascii.h
14211: GFXOBJS="ncurses.o"
1.1.1.17 root 14212: WANT_NCURSES_UI=yes
1.1.1.4 root 14213: LIBRARIES="-lncurses"
14214: else if [ "x$no_x" = "xyes" ]; then
1.1.1.22 root 14215: { echo "$as_me:$LINENO: result: Ummm...." >&5
14216: echo "${ECHO_T}Ummm...." >&6; }
1.1.1.4 root 14217: echo "Fatal error: No graphics system found, don't know what target to use."
14218: exit 1
14219: else
1.1.1.22 root 14220: { echo "$as_me:$LINENO: result: X11" >&5
14221: echo "${ECHO_T}X11" >&6; }
1.1.1.4 root 14222: TARGET=x11
14223: TARGETDEP=t-x11.h
1.1.1.21 root 14224: GFXOBJS="xwin.o x11keys.o"
1.1.1.4 root 14225:
14226: LIBRARIES="$X_LIBS $X_PRE_LIBS"
14227: if [ "x$WANT_DGA" = "xyes" ]; then
14228: LIBRARIES="$LIBRARIES -lXxf86dga"
14229: X_CFLAGS="$X_CFLAGS -DUSE_DGA_EXTENSION"
14230: if [ "x$WANT_VIDMODE" = "xyes" ]; then
14231: LIBRARIES="$LIBRARIES -lXxf86vm"
14232: X_CFLAGS="$X_CFLAGS -DUSE_VIDMODE_EXTENSION"
14233: fi
14234: fi
14235: LIBRARIES="$LIBRARIES -lXext -lX11 $X_EXTRA_LIBS"
14236: fi
14237: fi
14238: fi
1.1 root 14239: fi
1.1.1.3 root 14240: fi
14241: fi
14242: fi
1.1.1.6 root 14243: fi
1.1 root 14244:
1.1.1.17 root 14245: if [ "x$HAVE_DIRECTX" = "xyes" ]; then
14246: TARGETDEP=t-win32.h
14247: TARGET=win32
14248: fi
14249:
14250: if [ "x$WANT_UI" != "xno" ]; then
14251: if [ "x$HAVE_DIRECTX" = "xyes" ]; then
14252: GUIOBJS=osdep/win32gui.o
14253: else if [ "x$HAVE_AMIGA_LIB" = "xyes" ]; then
14254: GUIOBJS="osdep/ami-gui.o"
14255: else if [ "x$WANT_NCURSES_UI" = "xyes" ]; then
14256: if [ "x$HAVE_NCURSES_LIB" = "xno" ]; then
1.1.1.4 root 14257: echo "ncurses is unavailable, can't provide a user interface"
1.1.1.17 root 14258: if [ "x$WANT_UI" = "xyes" ]; then
14259: NR_ERRORS=`expr $NR_ERRORS + 1`
14260: fi
14261: WANT_UI=no
14262: else
14263: GUIOBJS="tui.o svgancui.o"
14264: LIBRARIES="$LIBRARIES -lncurses"
14265: ADDITIONAL_CFLAGS="$ADDITIONAL_CFLAGS -DUSING_CURSES_UI"
14266: if [ "x$ac_cv_header_ncurses_h" = "xno" ]; then
14267: echo "Found libncurses, but no ncurses.h. This is normal with recent versions"
14268: echo "of ncurses, but it might indicate a problem with older versions."
14269: NR_WARNINGS=`expr $NR_WARNINGS + 1`
14270: fi
1.1.1.4 root 14271: fi
1.1.1.17 root 14272: else if [ "x$no_x" != "xno" ]; then
14273: if [ "x$no_gtk" = "xyes" ]; then
14274: echo "Did not find gtk+, disabling user interface"
14275: GTK_CFLAGS=
14276: if [ "x$WANT_UI" = "xyes" ]; then
14277: NR_ERRORS=`expr $NR_ERRORS + 1`
14278: fi
14279: else
14280: echo "Using gtk+ GUI."
14281: NEED_THREAD_SUPPORT=yes
1.1.1.23 root 14282: ADDITIONAL_CFLAGS="$ADDITIONAL_CFLAGS -DUSING_GTK_GUI -I$abssrcdir/src/gui-gtk"
14283: GUIDEP=gui-gtk
14284: GUIOBJS_IN="gtkui.o util.o"
1.1.1.17 root 14285: fi
1.1.1.19 root 14286: else
1.1.1.17 root 14287: if [ "x$WANT_UI" = "xyes" ]; then
14288: echo "GUI requested, but no suitable libraries found."
14289: NR_ERRORS=`expr $NR_ERRORS + 1`
1.1.1.4 root 14290: fi
1.1.1.17 root 14291: fi
14292: fi
14293: fi
14294: fi
1.1.1.3 root 14295: fi
1.1.1.17 root 14296:
1.1.1.4 root 14297:
1.1.1.22 root 14298:
14299: cat >>confdefs.h <<\_ACEOF
14300: #define MULTIPLICATION_PROFITABLE 1
14301: _ACEOF
14302:
14303:
14304:
1.1.1.4 root 14305: MACHDEP=md-generic
14306: OSDEP=od-generic
14307: THREADDEP=td-none
14308: SOUNDDEP=od-generic
14309:
1.1.1.11 root 14310: FPP_H=fpp-unknown.h
1.1.1.4 root 14311: USE_THREADS=no
14312: USE_FILE_SOUND=no
1.1.1.10 root 14313: USE_SCSI_DEVICE=no
1.1.1.4 root 14314:
1.1.1.6 root 14315: USE_UNDERSCORE=dunno
14316:
1.1.1.4 root 14317: HAVELINUX=no
1.1.1.6 root 14318: HAVEBSD=no
1.1.1.4 root 14319: HAVEGCC27=no
14320: HAVEI386=no
14321: HAVE68K=no
1.1.1.23 root 14322: HAVEPPC=no
1.1.1.3 root 14323:
1.1.1.23 root 14324: ASMOBJS=
14325: CPUOBJS=cpuemu.o
1.1.1.6 root 14326:
1.1.1.23 root 14327: { echo "$as_me:$LINENO: checking host cpu support" >&5
14328: echo $ECHO_N "checking host cpu support... $ECHO_C" >&6; }
1.1.1.6 root 14329:
1.1.1.23 root 14330: HOST_CPU=generic
14331: MDFPP_H=fpp-unknown.h
1.1.1.3 root 14332:
1.1.1.23 root 14333: case $host_cpu in
14334: i[3-6]86)
14335: HOST_CPU=i386
14336: MDFPP_H=fpp-ieee.h
14337: ;;
14338: amd64 | x86_64)
14339: HOST_CPU=amd64
14340: MDFPP_H=fpp-ieee.h
14341: ;;
14342: powerpc)
14343: HOST_CPU=ppc
14344: MDFPP_H=fpp-ieee.h
14345: ;;
14346: m68k)
14347: HOST_CPU=68k
14348: MDFPP_H=fpp-ieee.h
14349: ;;
14350: esac
14351:
14352: { echo "$as_me:$LINENO: result: $HOST_CPU" >&5
14353: echo "${ECHO_T}$HOST_CPU" >&6; }
14354: MACHDEP="md-$HOST_CPU"
14355:
14356: { echo "$as_me:$LINENO: checking for GCC 2.7 or higher" >&5
14357: echo $ECHO_N "checking for GCC 2.7 or higher... $ECHO_C" >&6; }
14358: cat >conftest.$ac_ext <<_ACEOF
1.1.1.19 root 14359: /* confdefs.h. */
14360: _ACEOF
14361: cat confdefs.h >>conftest.$ac_ext
14362: cat >>conftest.$ac_ext <<_ACEOF
14363: /* end confdefs.h. */
1.1.1.23 root 14364: #if __GNUC__ - 1 > 1 || __GNUC_MINOR__ - 1 > 5
1.1.1.6 root 14365: yes
1.1.1.4 root 14366: #endif
14367:
1.1.1.19 root 14368: _ACEOF
1.1.1.6 root 14369: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1.1.1.19 root 14370: $EGREP "yes" >/dev/null 2>&1; then
1.1.1.22 root 14371: { echo "$as_me:$LINENO: result: yes" >&5
1.1.1.23 root 14372: echo "${ECHO_T}yes" >&6; }; HAVEGCC27=yes
1.1.1.3 root 14373: else
1.1.1.22 root 14374: { echo "$as_me:$LINENO: result: no" >&5
14375: echo "${ECHO_T}no" >&6; }
1.1.1.4 root 14376: fi
1.1.1.6 root 14377: rm -f conftest*
14378:
1.1.1.4 root 14379:
1.1.1.19 root 14380: if test $ac_cv_c_compiler_gnu = yes; then
1.1.1.4 root 14381: WARNING_CFLAGS="-Wall -Wno-unused -Wno-format -W -Wmissing-prototypes -Wstrict-prototypes"
14382: OPTIMIZE_CFLAGS="-O2 -fomit-frame-pointer"
14383: CFLAGS=
14384: fi
14385:
14386: if [ "x$DO_PROFILING" = "xyes" ]; then
1.1.1.23 root 14387: if test $ac_cv_c_compiler_gnu = yes; then
1.1.1.4 root 14388: OPTIMIZE_CFLAGS="-O"
14389: DEBUG_CFLAGS="-g -fno-inline -fno-omit-frame-pointer -pg -DUSE_PROFILING"
14390: LDFLAGS="-pg"
14391: else
14392: DO_PROFILING=no
14393: echo "Don't know how to set up profiling for your compiler."
14394: NR_ERRORS=`expr $NR_ERRORS + 1`
1.1.1.3 root 14395: fi
14396: fi
14397:
1.1.1.4 root 14398: CFLAGS="$OPTIMIZE_CFLAGS $DEBUG_CFLAGS $WARNING_CFLAGS $CFLAGS $ADDITIONAL_CFLAGS"
14399:
1.1.1.23 root 14400: if test $ac_cv_c_compiler_gnu = yes; then
14401: if test $HAVEGCC27 != yes; then
14402: { echo "$as_me:$LINENO: WARNING: Version 2.7 or better of GCC is recommended" >&5
14403: echo "$as_me: WARNING: Version 2.7 or better of GCC is recommended" >&2;}
14404: NR_WARNINGS=`expr $NR_WARNINGS + 1`
14405: fi
1.1.1.11 root 14406: else
1.1.1.23 root 14407: if test $uae_cv_prog_cc_watcom != yes; then
14408: { echo "$as_me:$LINENO: WARNING: UAE may not compile and run correctly with your compiler" >&5
14409: echo "$as_me: WARNING: UAE may not compile and run correctly with your compiler" >&2;}
14410: NR_WARNINGS=`expr $NR_WARNINGS + 1`
14411: fi
1.1.1.11 root 14412: fi
14413:
1.1.1.23 root 14414: if test $ac_cv_c_compiler_gnu = yes; then
14415: if [ "$HOST_CPU" = i386 -o "$HOST_CPU" = ppc -o "$HOST_CPU" = amd64 ]; then
14416: MACHDEP="$MACHDEP-gcc"
14417: fi
1.1.1.4 root 14418: fi
14419:
1.1.1.3 root 14420:
1.1.1.22 root 14421: { echo "$as_me:$LINENO: checking whether assembler symbols need an underscore" >&5
14422: echo $ECHO_N "checking whether assembler symbols need an underscore... $ECHO_C" >&6; }
1.1.1.6 root 14423: cat >conftest1.S << EOF
14424: .text
14425: .globl _symbol
14426: _symbol:
14427: EOF
14428: cat >conftest2.c << EOF
14429: extern void symbol ();
14430: int main ()
14431: {
14432: symbol ();
14433: }
14434: EOF
14435: $CC conftest1.S -c -o conftest1.o >/dev/null 2>&1
14436: $CC conftest2.c -c -o conftest2.o >/dev/null 2>&1
14437: if $CC conftest1.o conftest2.o -o conftest >/dev/null 2>&1; then
14438: USE_UNDERSCORE=yes
14439: CFLAGS="$CFLAGS -DUSE_UNDERSCORE"
1.1.1.4 root 14440: else
1.1.1.6 root 14441: USE_UNDERSCORE=no
1.1.1.4 root 14442: fi
1.1.1.22 root 14443: { echo "$as_me:$LINENO: result: $USE_UNDERSCORE" >&5
14444: echo "${ECHO_T}$USE_UNDERSCORE" >&6; }
1.1.1.4 root 14445:
14446: rm -f conftest*
14447:
1.1.1.22 root 14448: # Check whether --enable-threads was given.
1.1.1.4 root 14449: if test "${enable_threads+set}" = set; then
1.1.1.22 root 14450: enableval=$enable_threads; USE_THREADS=$enableval
14451: fi
14452:
1.1.1.4 root 14453:
1.1.1.3 root 14454:
1.1.1.4 root 14455: if [ "x$HAVEGCC27" = "xyes" -a "x$HAVEI386" = "xyes" ]; then
14456: SAVECFLAGS=$CFLAGS
14457: CFLAGS="$CFLAGS -mno-schedule-prologue"
1.1.1.19 root 14458: cat >conftest.$ac_ext <<_ACEOF
14459: /* confdefs.h. */
14460: _ACEOF
14461: cat confdefs.h >>conftest.$ac_ext
14462: cat >>conftest.$ac_ext <<_ACEOF
14463: /* end confdefs.h. */
1.1.1.4 root 14464:
1.1.1.19 root 14465: int
14466: main ()
14467: {
14468: int main(){return 0;}
14469: ;
14470: return 0;
14471: }
14472: _ACEOF
14473: rm -f conftest.$ac_objext
1.1.1.22 root 14474: if { (ac_try="$ac_compile"
14475: case "(($ac_try" in
14476: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14477: *) ac_try_echo=$ac_try;;
14478: esac
14479: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14480: (eval "$ac_compile") 2>conftest.er1
1.1.1.19 root 14481: ac_status=$?
14482: grep -v '^ *+' conftest.er1 >conftest.err
14483: rm -f conftest.er1
14484: cat conftest.err >&5
14485: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.22 root 14486: (exit $ac_status); } && {
14487: test -z "$ac_c_werror_flag" ||
14488: test ! -s conftest.err
14489: } && test -s conftest.$ac_objext; then
1.1.1.19 root 14490: NO_SCHED_CFLAGS="-mno-schedule-prologue"
14491: else
14492: echo "$as_me: failed program was:" >&5
14493: sed 's/^/| /' conftest.$ac_ext >&5
14494:
1.1.1.22 root 14495:
1.1.1.19 root 14496: fi
1.1.1.22 root 14497:
14498: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1.1.19 root 14499: CFLAGS=$SAVECFLAGS
14500: fi
14501:
14502: if [ "x$HAVEGCC27" = "xyes" -a "x$HAVEI386" = "xyes" ]; then
14503: SAVECFLAGS=$CFLAGS
14504: CFLAGS="$CFLAGS -mpreferred-stack-boundary=2"
14505: cat >conftest.$ac_ext <<_ACEOF
14506: /* confdefs.h. */
14507: _ACEOF
14508: cat confdefs.h >>conftest.$ac_ext
14509: cat >>conftest.$ac_ext <<_ACEOF
14510: /* end confdefs.h. */
14511:
14512: int
14513: main ()
14514: {
1.1.1.4 root 14515: int main(){return 0;}
1.1.1.19 root 14516: ;
14517: return 0;
14518: }
14519: _ACEOF
14520: rm -f conftest.$ac_objext
1.1.1.22 root 14521: if { (ac_try="$ac_compile"
14522: case "(($ac_try" in
14523: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14524: *) ac_try_echo=$ac_try;;
14525: esac
14526: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14527: (eval "$ac_compile") 2>conftest.er1
1.1.1.19 root 14528: ac_status=$?
14529: grep -v '^ *+' conftest.er1 >conftest.err
14530: rm -f conftest.er1
14531: cat conftest.err >&5
14532: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.22 root 14533: (exit $ac_status); } && {
14534: test -z "$ac_c_werror_flag" ||
14535: test ! -s conftest.err
14536: } && test -s conftest.$ac_objext; then
1.1.1.19 root 14537: SAVECFLAGS=$CFLAGS
1.1.1.4 root 14538: else
1.1.1.19 root 14539: echo "$as_me: failed program was:" >&5
14540: sed 's/^/| /' conftest.$ac_ext >&5
14541:
1.1.1.22 root 14542:
1.1.1.4 root 14543: fi
1.1.1.22 root 14544:
14545: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1.1.4 root 14546: CFLAGS=$SAVECFLAGS
14547: fi
14548:
1.1.1.10 root 14549: if [ "x$HAVEGCC27" = "xyes" -a "x$HAVEI386" = "xyes" ]; then
14550: SAVECFLAGS=$CFLAGS
1.1.1.19 root 14551: CFLAGS="$CFLAGS -fno-reorder-blocks"
14552: cat >conftest.$ac_ext <<_ACEOF
14553: /* confdefs.h. */
14554: _ACEOF
14555: cat confdefs.h >>conftest.$ac_ext
14556: cat >>conftest.$ac_ext <<_ACEOF
14557: /* end confdefs.h. */
1.1.1.10 root 14558:
1.1.1.19 root 14559: int
14560: main ()
14561: {
1.1.1.10 root 14562: int main(){return 0;}
1.1.1.19 root 14563: ;
14564: return 0;
14565: }
14566: _ACEOF
14567: rm -f conftest.$ac_objext
1.1.1.22 root 14568: if { (ac_try="$ac_compile"
14569: case "(($ac_try" in
14570: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14571: *) ac_try_echo=$ac_try;;
14572: esac
14573: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14574: (eval "$ac_compile") 2>conftest.er1
1.1.1.19 root 14575: ac_status=$?
14576: grep -v '^ *+' conftest.er1 >conftest.err
14577: rm -f conftest.er1
14578: cat conftest.err >&5
14579: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.22 root 14580: (exit $ac_status); } && {
14581: test -z "$ac_c_werror_flag" ||
14582: test ! -s conftest.err
14583: } && test -s conftest.$ac_objext; then
1.1.1.19 root 14584: NO_REORDER_CFLAGS="-fno-reorder-blocks"
1.1.1.10 root 14585: else
1.1.1.19 root 14586: echo "$as_me: failed program was:" >&5
14587: sed 's/^/| /' conftest.$ac_ext >&5
14588:
1.1.1.22 root 14589:
1.1.1.10 root 14590: fi
1.1.1.22 root 14591:
14592: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1.1.10 root 14593: CFLAGS=$SAVECFLAGS
14594: fi
14595:
1.1.1.4 root 14596:
14597: if [ "x$HAVEGCC27" = "xyes" -a "x$HAVEI386" = "xyes" ]; then
14598: SAVECFLAGS=$CFLAGS
14599: CFLAGS="$CFLAGS -fno-exceptions"
14600: NOEXCEPTIONS=no
1.1.1.19 root 14601: cat >conftest.$ac_ext <<_ACEOF
14602: /* confdefs.h. */
14603: _ACEOF
14604: cat confdefs.h >>conftest.$ac_ext
14605: cat >>conftest.$ac_ext <<_ACEOF
14606: /* end confdefs.h. */
1.1.1.4 root 14607:
1.1.1.19 root 14608: int
14609: main ()
14610: {
1.1.1.4 root 14611: int main(){return 0;}
1.1.1.19 root 14612: ;
14613: return 0;
14614: }
14615: _ACEOF
14616: rm -f conftest.$ac_objext
1.1.1.22 root 14617: if { (ac_try="$ac_compile"
14618: case "(($ac_try" in
14619: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14620: *) ac_try_echo=$ac_try;;
14621: esac
14622: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14623: (eval "$ac_compile") 2>conftest.er1
1.1.1.19 root 14624: ac_status=$?
14625: grep -v '^ *+' conftest.er1 >conftest.err
14626: rm -f conftest.er1
14627: cat conftest.err >&5
14628: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.22 root 14629: (exit $ac_status); } && {
14630: test -z "$ac_c_werror_flag" ||
14631: test ! -s conftest.err
14632: } && test -s conftest.$ac_objext; then
1.1.1.4 root 14633: NOEXCEPTIONS=yes
14634: else
1.1.1.19 root 14635: echo "$as_me: failed program was:" >&5
14636: sed 's/^/| /' conftest.$ac_ext >&5
14637:
1.1.1.22 root 14638:
1.1.1.4 root 14639: fi
1.1.1.22 root 14640:
14641: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1.1.4 root 14642: if [ "x$NOEXCEPTIONS" = "xno" ]; then
14643: CFLAGS=$SAVECFLAGS
14644: fi
14645: fi
14646:
14647:
14648:
14649: if [ "x$HAVEGCC27" = "xyes" -a "x$HAVEI386" = "xyes" -a "x$DO_PROFILING" = "xno" ]; then
14650: MACHDEP=md-i386-gcc
1.1.1.6 root 14651: CFLAGS="$CFLAGS -DUNALIGNED_PROFITABLE -fno-strength-reduce -DREGPARAM=\"__attribute__((regparm(3)))\""
14652:
1.1.1.14 root 14653: CFLAGS="$CFLAGS -DX86_ASSEMBLY -DOPTIMIZED_FLAGS"
14654: ASMOBJS=md-X86.o
1.1.1.6 root 14655: else if test $uae_cv_prog_cc_watcom = yes; then
14656: MACHDEP=md-i386-watcom
14657: echo CFLAGS before: $CFLAGS
14658: CFLAGS=`echo $CFLAGS | sed 's, -g , ,' |sed 's,^-g ,,'`
14659: CFLAGS="$CFLAGS --/--bm --/--mf --/--w4 --/--s --/--ei --/--zp4 --/--5r"
14660: CFLAGS="$CFLAGS --/--oe=50 --/--oi --/--ok --/--ol --/--ot --/--oh --/--or --/--zq"
14661: CFLAGS="$CFLAGS -DREGPARAM= -DUNALIGNED_PROFITABLE"
14662: echo CFLAGS after: $CFLAGS
1.1.1.11 root 14663: else if [ "x$HAVEGCC27" = "xyes" -a "x$HAVEPPC" = "xyes" ]; then
14664: MACHDEP=md-ppc-gcc
14665: CFLAGS="$CFLAGS -DREGPARAM="
14666: if [ "x$HAVE_MOTO_LIB" = "xyes" ]; then
14667: MATHLIB="-lmoto $MATHLIB"
14668: fi
1.1.1.7 root 14669: else if [ "x$TARGET" = "xamigaos" ]; then
1.1.1.4 root 14670: OSDEP=od-amiga
1.1.1.7 root 14671: CPU=`uname -m`
14672: if [ "x$HAVEGCC27" = "xyes" -a "x$HAVE68K" = "xyes" ]; then
14673: MACHDEP=md-68k
14674: CFLAGS="$CFLAGS -DUNALIGNED_PROFITABLE -DREGPARAM=\"__attribute__((regparm(4)))\" -DM68K_FLAG_OPT=1"
14675: else if [ "x$HAVEGCC27" = "xyes" -a "x$CPU" = "xppc" ]; then
14676: MACHDEP=md-ppc-gcc
14677: else
14678: CFLAGS="$CFLAGS -O -DREGPARAM="
14679: fi
1.1.1.19 root 14680: CPUOBJS="cpuemu1.o cpuemu2.o cpuemu3.o cpuemu4.o cpuemu5.o cpuemu6.o cpuemu7.o cpuemu8.o"
1.1.1.7 root 14681: fi
1.1.1.4 root 14682: else if [ "x$HAVEGCC27" = "xyes" -a "x$HAVE68K" = "xyes" -a "x$DO_PROFILING" = "xno" ]; then
14683: MACHDEP=md-68k
14684: CFLAGS="$CFLAGS -DM68K_FLAG_OPT=1 -DREGPARAM="
14685: else if [ "x$TARGET" = "xbeos" ]; then
14686: MACHDEP=md-ppc
14687: CFLAGS="$CFLAGS -DREGPARAM="
14688: OSDEP=od-beos
1.1 root 14689: else
1.1.1.3 root 14690: CFLAGS="$CFLAGS -DREGPARAM="
14691: fi
14692: fi
1.1 root 14693: fi
1.1.1.4 root 14694: fi
14695: fi
14696: fi
14697:
1.1.1.16 root 14698: FSDBOBJS=fsdb_unix.o
1.1.1.6 root 14699: if [ "x$TARGET" = "xwin32" ]; then
14700: OSDEP=od-win32
1.1.1.16 root 14701: FSDBOBJS=osdep/fsdb_win32.o
1.1.1.19 root 14702: if test $ac_cv_c_compiler_gnu = yes; then
1.1.1.6 root 14703: LIBS="$LIBS -lddraw -lwinmm -lcomctl32 -lcomdlg32 -luser32 -lgdi32 -lkernel32 -ladvapi32 -lshell32"
14704: else if test $uae_cv_prog_cc_watcom = yes; then
14705: LIBS="$LIBS -lddraw -lwinmm -lcomctl32"
14706: fi
14707: fi
14708: else if [ "x$HAVELINUX" = "xyes" ]; then
1.1.1.4 root 14709: OSDEP=od-linux
14710: fi
1.1.1.6 root 14711: fi
1.1 root 14712:
1.1.1.4 root 14713: if [ "x$TARGET" = "xx11" -o "x$TARGET" = "xsvgalib" -o "x$TARGET" = "xamigaos" \
1.1.1.23 root 14714: -o "x$TARGET" = "xbeos" -o "x$TARGET" = "xasciiart" ]; then
1.1.1.2 root 14715: CFLAGS="$CFLAGS -DUSE_ZFILE"
14716: fi
14717:
1.1.1.22 root 14718: { echo "$as_me:$LINENO: checking which sound system to use" >&5
14719: echo $ECHO_N "checking which sound system to use... $ECHO_C" >&6; }
14720: # Check whether --enable-file-sound was given.
1.1.1.4 root 14721: if test "${enable_file_sound+set}" = set; then
1.1.1.22 root 14722: enableval=$enable_file_sound; USE_FILE_SOUND=$enableval
14723: fi
14724:
1.1.1.4 root 14725:
14726: if [ "x$USE_FILE_SOUND" = "xyes" ]; then
1.1.1.22 root 14727: { echo "$as_me:$LINENO: result: file output" >&5
14728: echo "${ECHO_T}file output" >&6; }
1.1.1.7 root 14729: SOUNDDEP=sd-file
1.1.1.19 root 14730: USE_SOUND=yes
1.1.1.17 root 14731: else if [ "x$WANT_SDLSND" = "xyes" ]; then
1.1.1.22 root 14732: { echo "$as_me:$LINENO: result: SDL" >&5
14733: echo "${ECHO_T}SDL" >&6; }
1.1.1.16 root 14734: SOUNDDEP=sd-sdl
14735: USE_SOUND=yes
14736: NEED_THREAD_SUPPORT=yes
1.1.1.23 root 14737: if [ "x$HAVE_ALSA" = "xyes" -o "x$HAVE_OSS_SOUND" = "xyes" ]; then
14738: NR_WARNINGS=`expr $NR_WARNINGS + 1`
14739: echo "SDL sound support was selected, but OSS or ALSA are more reliable."
14740: fi
1.1.1.19 root 14741: else if [ "x$WANT_ALSA" = "xyes" ]; then
1.1.1.22 root 14742: { echo "$as_me:$LINENO: result: ALSA" >&5
14743: echo "${ECHO_T}ALSA" >&6; }
1.1.1.19 root 14744: SOUNDDEP=sd-alsa
14745: USE_SOUND=yes
1.1.1.23 root 14746: else if [ "x$HAVE_OSS_SOUND" = "xyes" ]; then
14747: { echo "$as_me:$LINENO: result: OSS" >&5
14748: echo "${ECHO_T}OSS" >&6; }
1.1.1.7 root 14749: SOUNDDEP=sd-uss
1.1.1.4 root 14750: USE_SOUND=yes
1.1.1.7 root 14751: else if [ "x$ac_cv_header_sys_audioio_h" = "xyes" -o "x$ac_cv_header_sun_audioio_h" = "xyes" ]; then
1.1.1.22 root 14752: { echo "$as_me:$LINENO: result: Solaris/NetBSD" >&5
14753: echo "${ECHO_T}Solaris/NetBSD" >&6; }
1.1.1.7 root 14754: SOUNDDEP=sd-solaris
14755: USE_SOUND=yes
14756: else if [ "x$HAVE_MME_LIB" = "xyes" ]; then
1.1.1.22 root 14757: { echo "$as_me:$LINENO: result: MME sound" >&5
14758: echo "${ECHO_T}MME sound" >&6; }
1.1.1.7 root 14759: SOUNDDEP=sd-mme
14760: LIBS="$LIBS -lmme"
14761: USE_SOUND=yes
14762: else if [ "x$TARGET" = "xamigaos" ]; then
14763: if [ "x$ac_cv_header_devices_ahi_h" = "xyes" ]; then
1.1.1.22 root 14764: { echo "$as_me:$LINENO: result: Amiga AHI.device" >&5
14765: echo "${ECHO_T}Amiga AHI.device" >&6; }
1.1.1.4 root 14766: else
1.1.1.22 root 14767: { echo "$as_me:$LINENO: result: Amiga audio.device" >&5
14768: echo "${ECHO_T}Amiga audio.device" >&6; }
1.1.1.6 root 14769: fi
1.1.1.7 root 14770: SOUNDDEP=od-amiga
14771: USE_SOUND=yes
14772: else if [ "x$TARGET" = "xbeos" ]; then
1.1.1.22 root 14773: { echo "$as_me:$LINENO: result: BeOS sound" >&5
14774: echo "${ECHO_T}BeOS sound" >&6; }
1.1.1.7 root 14775: SOUNDDEP=od-beos
14776: USE_SOUND=yes
14777: else if [ "x$TARGET" = "xwin32" ]; then
1.1.1.22 root 14778: { echo "$as_me:$LINENO: result: Win32 sound" >&5
14779: echo "${ECHO_T}Win32 sound" >&6; }
1.1.1.7 root 14780: SOUNDDEP=od-win32
14781: USE_SOUND=yes
14782: else
14783: echo "no known sound system found"
14784: NR_ERRORS=`expr $NR_ERRORS + 1`
14785: fi
14786: fi
14787: fi
14788: fi
1.1.1.4 root 14789: fi
1.1.1.7 root 14790: fi
14791: fi
14792: fi
14793: fi
1.1.1.16 root 14794:
14795: if [ "x$NEED_THREAD_SUPPORT" = "xyes" ]; then
14796: if [ "x$USE_THREADS" != "xyes" ]; then
14797: echo "Threads are needed for this configuration; enabling thread support."
14798: fi
14799: fi
14800:
14801: if [ "x$USE_THREADS" = "xyes" -o "x$NEED_THREAD_SUPPORT" = "xyes" ]; then
14802: if [ "x$WANT_SDL" = "xyes" ]; then
14803: THREADDEP=td-sdl
1.1.1.23 root 14804: CFLAGS="$CFLAGS -DSUPPORT_THREADS -D_REENTRANT"
1.1.1.16 root 14805: else if [ "x$HAVE_PTHREAD_LIB" = "xyes" ]; then
14806: THREADDEP=td-posix
14807: CFLAGS="$CFLAGS -DSUPPORT_THREADS -D_REENTRANT"
14808: LIBS="$LIBS -lpthread"
14809: if [ "x$HAVE_POSIX4_LIB" = "xyes" ]; then
14810: LIBS="$LIBS -lposix4"
14811: fi
14812:
1.1.1.19 root 14813: if [ "x$USE_THREADS" = "xyes" ]; then
1.1.1.16 root 14814: CFLAGS="$CFLAGS -DUAE_FILESYS_THREADS"
14815: fi
14816:
14817: if [ "x$TARGET" = "xsvgalib" ]; then
14818: echo "If you didn't compile a fixed version of SVGAlib then thread support"
14819: echo "in UAE will lock your machine real hard."
14820: NR_WARNINGS=`expr $NR_WARNINGS + 1`
14821: fi
14822: else
14823: echo "You tried to enable threads, but I couldn't find a thread library!"
14824: NR_ERRORS=`expr $NR_ERRORS + 1`
14825: fi
14826: fi
14827: fi
1.1.1.7 root 14828:
1.1.1.10 root 14829: SCSIOBJS=scsi-none.o
1.1.1.22 root 14830: # Check whether --enable-scsi-device was given.
1.1.1.10 root 14831: if test "${enable_scsi_device+set}" = set; then
1.1.1.22 root 14832: enableval=$enable_scsi_device; USE_SCSI_DEVICE=$enableval
14833: fi
14834:
1.1.1.10 root 14835: if [ "x$USE_SCSI_DEVICE" = "xyes" ]; then
1.1.1.22 root 14836: { echo "$as_me:$LINENO: checking \"availability of libscg headers and lib\"" >&5
14837: echo $ECHO_N "checking \"availability of libscg headers and lib\"... $ECHO_C" >&6; }
1.1.1.13 root 14838: OLDLIBS="$LIBS"
1.1.1.14 root 14839: OLDCFLAGS="$CFLAGS"
14840: CFLAGS="$CFLAGS -Isrc/include"
14841: LIBS="-Lsrc $LIBS -lscg -lschily"
1.1.1.19 root 14842: cat >conftest.$ac_ext <<_ACEOF
14843: /* confdefs.h. */
14844: _ACEOF
14845: cat confdefs.h >>conftest.$ac_ext
14846: cat >>conftest.$ac_ext <<_ACEOF
14847: /* end confdefs.h. */
1.1.1.14 root 14848: typedef int BOOL;
1.1.1.13 root 14849: #include "scg/scgcmd.h"
14850: #include "scg/scsitransp.h"
14851: #include "scg/scsireg.h"
1.1.1.19 root 14852: int
14853: main ()
14854: {
1.1.1.13 root 14855: {SCSI *scgp = open_scsi ((void *)0, (void *)0, 0, 1, 1);}
1.1.1.19 root 14856: ;
14857: return 0;
14858: }
14859: _ACEOF
14860: rm -f conftest.$ac_objext conftest$ac_exeext
1.1.1.22 root 14861: if { (ac_try="$ac_link"
14862: case "(($ac_try" in
14863: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14864: *) ac_try_echo=$ac_try;;
14865: esac
14866: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14867: (eval "$ac_link") 2>conftest.er1
1.1.1.19 root 14868: ac_status=$?
14869: grep -v '^ *+' conftest.er1 >conftest.err
14870: rm -f conftest.er1
14871: cat conftest.err >&5
14872: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.22 root 14873: (exit $ac_status); } && {
14874: test -z "$ac_c_werror_flag" ||
14875: test ! -s conftest.err
14876: } && test -s conftest$ac_exeext &&
14877: $as_test_x conftest$ac_exeext; then
1.1.1.19 root 14878:
1.1.1.22 root 14879: { echo "$as_me:$LINENO: result: available" >&5
14880: echo "${ECHO_T}available" >&6; }
1.1.1.10 root 14881: SCSIOBJS=scsidev.o
1.1.1.19 root 14882:
1.1.1.13 root 14883: else
1.1.1.19 root 14884: echo "$as_me: failed program was:" >&5
14885: sed 's/^/| /' conftest.$ac_ext >&5
14886:
14887:
1.1.1.22 root 14888: { echo "$as_me:$LINENO: result: not available" >&5
14889: echo "${ECHO_T}not available" >&6; }
1.1.1.13 root 14890: NR_WARNINGS=`expr $NR_WARNINGS + 1`
14891: echo "Please refer to the UAE SCSI device section in docs/README for installation instructions."
14892: LIBS="$OLDLIBS"
1.1.1.19 root 14893:
1.1.1.13 root 14894: fi
1.1.1.22 root 14895:
14896: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.1.1.19 root 14897: conftest$ac_exeext conftest.$ac_ext
1.1.1.14 root 14898: CFLAGS="$OLDCFLAGS"
1.1.1.10 root 14899: fi
14900:
14901:
1.1.1.16 root 14902: if [ "x$WANT_SDL" = "xyes" ]; then
14903: OD_JOYSTICK=sdl-joystick.c
1.1.1.18 root 14904: else if [ "x$ac_cv_header_machine_joystick_h" = "xyes" ]; then
1.1.1.19 root 14905: cat >conftest.$ac_ext <<_ACEOF
14906: /* confdefs.h. */
14907: _ACEOF
14908: cat confdefs.h >>conftest.$ac_ext
14909: cat >>conftest.$ac_ext <<_ACEOF
14910: /* end confdefs.h. */
1.1.1.10 root 14911: #include <machine/joystick.h>
1.1.1.19 root 14912: int
14913: main ()
14914: {
1.1.1.10 root 14915: { struct joystick a; }
1.1.1.19 root 14916: ;
14917: return 0;
14918: }
14919: _ACEOF
14920: rm -f conftest.$ac_objext
1.1.1.22 root 14921: if { (ac_try="$ac_compile"
14922: case "(($ac_try" in
14923: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14924: *) ac_try_echo=$ac_try;;
14925: esac
14926: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14927: (eval "$ac_compile") 2>conftest.er1
1.1.1.19 root 14928: ac_status=$?
14929: grep -v '^ *+' conftest.er1 >conftest.err
14930: rm -f conftest.er1
14931: cat conftest.err >&5
14932: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.22 root 14933: (exit $ac_status); } && {
14934: test -z "$ac_c_werror_flag" ||
14935: test ! -s conftest.err
14936: } && test -s conftest.$ac_objext; then
1.1.1.10 root 14937: OD_JOYSTICK=od-linux/joystick.c
14938: else
1.1.1.19 root 14939: echo "$as_me: failed program was:" >&5
14940: sed 's/^/| /' conftest.$ac_ext >&5
14941:
1.1.1.22 root 14942:
1.1.1.10 root 14943: fi
1.1.1.22 root 14944:
14945: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1.1.10 root 14946: else
14947: OD_JOYSTICK=$OSDEP/joystick.c
14948: fi
1.1.1.16 root 14949: fi
1.1.1.4 root 14950:
14951: rm -f src/machdep
14952: rm -f src/osdep
1.1.1.23 root 14953: rm -rf src/guidep
1.1.1.4 root 14954: rm -f src/threaddep
14955: rm -f src/sounddep
1.1.1.10 root 14956: rm -f src/scsidep
1.1.1.4 root 14957: rm -f src/target.h
1.1.1.6 root 14958: rm -f src/sd-sound.c
14959: rm -f src/od-joy.c
14960: rm -f src/md-support.c
14961: rm -f src/md-X86.S
1.1.1.10 root 14962: rm -f src/scsi-support.c
1.1.1.3 root 14963:
1.1.1.23 root 14964: if [ "x$TARGET" = "xamigaos" ]; then
1.1.1.22 root 14965: { echo "$as_me:$LINENO: checking which CPU to use" >&5
14966: echo $ECHO_N "checking which CPU to use... $ECHO_C" >&6; }
1.1.1.3 root 14967: cpu=`cpu | cut -d' ' -f2`
1.1.1.22 root 14968: { echo "$as_me:$LINENO: result: $cpu" >&5
14969: echo "${ECHO_T}$cpu" >&6; }
1.1.1.3 root 14970: CFLAGS="$CFLAGS -m$cpu"
14971:
1.1.1.22 root 14972: { echo "$as_me:$LINENO: checking which FPU to use" >&5
14973: echo $ECHO_N "checking which FPU to use... $ECHO_C" >&6; }
1.1.1.4 root 14974: fpu=`cpu | cut -d' ' -f3 | grep '^688812$'`
14975: if [ "x$fpu" != "x" ]; then
1.1.1.22 root 14976: { echo "$as_me:$LINENO: result: 68881" >&5
14977: echo "${ECHO_T}68881" >&6; }
1.1.1.4 root 14978: CFLAGS="$CFLAGS -m68881"
1.1.1.3 root 14979: else
1.1.1.22 root 14980: { echo "$as_me:$LINENO: result: none" >&5
14981: echo "${ECHO_T}none" >&6; }
1.1.1.3 root 14982: fi
14983: fi
14984:
1.1.1.23 root 14985: if [ "x$DO_PROFILING" = "xyes" ]; then
14986: echo "Building a profiling version of UAE (select this option only if you know"
14987: echo "what you are doing)"
14988: fi
14989:
14990:
14991:
14992:
14993: if test -f $abssrcdir/src/target.h
14994: then
14995: echo
14996: echo "Fatal error: Can't configure in the current directory, because"
14997: echo "configure was run in the source directory. Go to the source"
14998: echo "directory, type"
14999: echo " make streifenfrei"
15000: echo "and try again."
15001: exit 1
15002: fi
15003:
15004: ac_config_links="$ac_config_links src/osdep:src/$OSDEP"
1.1.1.2 root 15005:
1.1.1.23 root 15006: ac_config_links="$ac_config_links src/sounddep:src/$SOUNDDEP"
1.1.1.2 root 15007:
1.1.1.23 root 15008: ac_config_links="$ac_config_links src/threaddep:src/$THREADDEP"
1.1 root 15009:
1.1.1.23 root 15010: ac_config_links="$ac_config_links src/machdep:src/$MACHDEP"
1.1 root 15011:
15012:
1.1.1.23 root 15013: mkdir src/guidep
15014: for x in $GUIOBJS_IN; do
15015: src=`echo $x |sed s,'\.o$,.c,'`
15016: ac_config_links="$ac_config_links src/guidep/$src:src/$GUIDEP/$src"
1.1 root 15017:
1.1.1.23 root 15018: GUIOBJS="$GUIOBJS guidep/$x"
15019: done
1.1 root 15020:
15021:
1.1.1.23 root 15022: echo "#include \"$abssrcdir/src/targets/$TARGETDEP\"" > src/target.h
1.1 root 15023:
1.1.1.23 root 15024: echo "#include \"$abssrcdir/src/$SOUNDDEP/sound.c\"" >src/sd-sound.c
15025: echo "#include \"$abssrcdir/src/$OD_JOYSTICK\"" >src/od-joy.c
15026: echo "#include \"$abssrcdir/src/$MACHDEP/support.c\"" >src/md-support.c
1.1 root 15027:
1.1.1.23 root 15028: if [ "x$MACHDEP" = "xmd-i386-gcc" ]; then
15029: echo "#include \"machdep/X86.S\"" >src/md-X86.S
15030: fi
15031: echo "#include \"$abssrcdir/src/include/$FPP_H\"" >src/md-fpp.h
1.1 root 15032:
1.1.1.23 root 15033: mkdir -p src/keymap
1.1.1.3 root 15034:
1.1.1.4 root 15035:
1.1.1.3 root 15036:
15037:
15038:
1.1.1.6 root 15039:
1.1.1.16 root 15040:
1.1.1.19 root 15041:
1.1.1.22 root 15042:
15043:
15044:
15045:
15046:
15047:
15048:
15049:
15050:
15051:
1.1.1.23 root 15052:
15053:
15054:
15055: ac_config_files="$ac_config_files src/Makefile Makefile"
1.1.1.22 root 15056:
1.1.1.19 root 15057:
15058: cat >confcache <<\_ACEOF
1.1 root 15059: # This file is a shell script that caches the results of configure
15060: # tests run on this system so they can be shared between configure
1.1.1.19 root 15061: # scripts and configure runs, see configure's option --config-cache.
15062: # It is not useful on other systems. If it contains results you don't
15063: # want to keep, you may remove or edit it.
1.1 root 15064: #
1.1.1.19 root 15065: # config.status only pays attention to the cache file if you give it
15066: # the --recheck option to rerun configure.
1.1 root 15067: #
1.1.1.19 root 15068: # `ac_cv_env_foo' variables (set or unset) will be overridden when
15069: # loading this file, other *unset* `ac_cv_foo' will be assigned the
15070: # following values.
15071:
15072: _ACEOF
15073:
1.1.1.4 root 15074: # The following way of writing the cache mishandles newlines in values,
15075: # but we know of no workaround that is simple, portable, and efficient.
1.1.1.22 root 15076: # So, we kill variables containing newlines.
1.1 root 15077: # Ultrix sh set writes to stderr and can't be redirected directly,
15078: # and sets the high bit in the cache file unless we assign to the vars.
1.1.1.22 root 15079: (
15080: for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15081: eval ac_val=\$$ac_var
15082: case $ac_val in #(
15083: *${as_nl}*)
15084: case $ac_var in #(
15085: *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
15086: echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
15087: esac
15088: case $ac_var in #(
15089: _ | IFS | as_nl) ;; #(
15090: *) $as_unset $ac_var ;;
15091: esac ;;
15092: esac
15093: done
15094:
1.1.1.19 root 15095: (set) 2>&1 |
1.1.1.22 root 15096: case $as_nl`(ac_space=' '; set) 2>&1` in #(
15097: *${as_nl}ac_space=\ *)
1.1.1.19 root 15098: # `set' does not quote correctly, so add quotes (double-quote
15099: # substitution turns \\\\ into \\, and sed turns \\ into \).
15100: sed -n \
15101: "s/'/'\\\\''/g;
15102: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
1.1.1.22 root 15103: ;; #(
1.1.1.19 root 15104: *)
15105: # `set' quotes correctly as required by POSIX, so do not add quotes.
1.1.1.22 root 15106: sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1.1.1.19 root 15107: ;;
1.1.1.22 root 15108: esac |
15109: sort
15110: ) |
1.1.1.19 root 15111: sed '
1.1.1.22 root 15112: /^ac_cv_env_/b end
1.1.1.19 root 15113: t clear
1.1.1.22 root 15114: :clear
1.1.1.19 root 15115: s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15116: t end
1.1.1.22 root 15117: s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15118: :end' >>confcache
15119: if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15120: if test -w "$cache_file"; then
15121: test "x$cache_file" != "x/dev/null" &&
15122: { echo "$as_me:$LINENO: updating cache $cache_file" >&5
15123: echo "$as_me: updating cache $cache_file" >&6;}
1.1.1.19 root 15124: cat confcache >$cache_file
1.1 root 15125: else
1.1.1.22 root 15126: { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
15127: echo "$as_me: not updating unwritable cache $cache_file" >&6;}
1.1 root 15128: fi
15129: fi
15130: rm -f confcache
15131:
15132: test "x$prefix" = xNONE && prefix=$ac_default_prefix
15133: # Let make expand exec_prefix.
15134: test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15135:
15136: DEFS=-DHAVE_CONFIG_H
15137:
1.1.1.19 root 15138: ac_libobjs=
15139: ac_ltlibobjs=
15140: for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15141: # 1. Remove the extension, and $U if already installed.
1.1.1.22 root 15142: ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15143: ac_i=`echo "$ac_i" | sed "$ac_script"`
15144: # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15145: # will be set to the directory where LIBOBJS objects are built.
15146: ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15147: ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
1.1.1.19 root 15148: done
15149: LIBOBJS=$ac_libobjs
15150:
15151: LTLIBOBJS=$ac_ltlibobjs
15152:
1.1 root 15153:
1.1.1.19 root 15154:
15155: : ${CONFIG_STATUS=./config.status}
15156: ac_clean_files_save=$ac_clean_files
15157: ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15158: { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
15159: echo "$as_me: creating $CONFIG_STATUS" >&6;}
15160: cat >$CONFIG_STATUS <<_ACEOF
15161: #! $SHELL
15162: # Generated by $as_me.
1.1 root 15163: # Run this file to recreate the current configuration.
15164: # Compiler output produced by configure, useful for debugging
1.1.1.19 root 15165: # configure, is in config.log if it exists.
1.1 root 15166:
1.1.1.19 root 15167: debug=false
15168: ac_cs_recheck=false
15169: ac_cs_silent=false
15170: SHELL=\${CONFIG_SHELL-$SHELL}
15171: _ACEOF
15172:
15173: cat >>$CONFIG_STATUS <<\_ACEOF
15174: ## --------------------- ##
15175: ## M4sh Initialization. ##
15176: ## --------------------- ##
15177:
1.1.1.22 root 15178: # Be more Bourne compatible
15179: DUALCASE=1; export DUALCASE # for MKS sh
1.1.1.19 root 15180: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15181: emulate sh
15182: NULLCMD=:
15183: # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
15184: # is contrary to our usage. Disable this feature.
15185: alias -g '${1+"$@"}'='"$@"'
1.1.1.22 root 15186: setopt NO_GLOB_SUBST
15187: else
15188: case `(set -o) 2>/dev/null` in
15189: *posix*) set -o posix ;;
15190: esac
15191:
15192: fi
15193:
15194:
15195:
15196:
15197: # PATH needs CR
15198: # Avoid depending upon Character Ranges.
15199: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15200: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15201: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15202: as_cr_digits='0123456789'
15203: as_cr_alnum=$as_cr_Letters$as_cr_digits
15204:
15205: # The user is always right.
15206: if test "${PATH_SEPARATOR+set}" != set; then
15207: echo "#! /bin/sh" >conf$$.sh
15208: echo "exit 0" >>conf$$.sh
15209: chmod +x conf$$.sh
15210: if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
15211: PATH_SEPARATOR=';'
15212: else
15213: PATH_SEPARATOR=:
15214: fi
15215: rm -f conf$$.sh
1.1.1.19 root 15216: fi
15217:
15218: # Support unset when possible.
15219: if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
15220: as_unset=unset
15221: else
15222: as_unset=false
15223: fi
15224:
15225:
1.1.1.22 root 15226: # IFS
15227: # We need space, tab and new line, in precisely that order. Quoting is
15228: # there to prevent editors from complaining about space-tab.
15229: # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15230: # splitting by setting IFS to empty value.)
15231: as_nl='
15232: '
15233: IFS=" "" $as_nl"
15234:
15235: # Find who we are. Look in the path if we contain no directory separator.
15236: case $0 in
15237: *[\\/]* ) as_myself=$0 ;;
15238: *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15239: for as_dir in $PATH
15240: do
15241: IFS=$as_save_IFS
15242: test -z "$as_dir" && as_dir=.
15243: test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15244: done
15245: IFS=$as_save_IFS
15246:
15247: ;;
15248: esac
15249: # We did not find ourselves, most probably we were run as `sh COMMAND'
15250: # in which case we are not to be found in the path.
15251: if test "x$as_myself" = x; then
15252: as_myself=$0
15253: fi
15254: if test ! -f "$as_myself"; then
15255: echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15256: { (exit 1); exit 1; }
15257: fi
15258:
1.1.1.19 root 15259: # Work around bugs in pre-3.0 UWIN ksh.
1.1.1.22 root 15260: for as_var in ENV MAIL MAILPATH
15261: do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
15262: done
1.1.1.19 root 15263: PS1='$ '
15264: PS2='> '
15265: PS4='+ '
15266:
15267: # NLS nuisances.
15268: for as_var in \
15269: LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
15270: LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
15271: LC_TELEPHONE LC_TIME
15272: do
15273: if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
15274: eval $as_var=C; export $as_var
15275: else
1.1.1.22 root 15276: ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
1.1.1.19 root 15277: fi
15278: done
15279:
15280: # Required to use basename.
1.1.1.22 root 15281: if expr a : '\(a\)' >/dev/null 2>&1 &&
15282: test "X`expr 00001 : '.*\(...\)'`" = X001; then
1.1.1.19 root 15283: as_expr=expr
15284: else
15285: as_expr=false
15286: fi
15287:
1.1.1.22 root 15288: if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
1.1.1.19 root 15289: as_basename=basename
15290: else
15291: as_basename=false
15292: fi
15293:
15294:
15295: # Name of the executable.
1.1.1.22 root 15296: as_me=`$as_basename -- "$0" ||
1.1.1.19 root 15297: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15298: X"$0" : 'X\(//\)$' \| \
1.1.1.22 root 15299: X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1.1.1.19 root 15300: echo X/"$0" |
1.1.1.22 root 15301: sed '/^.*\/\([^/][^/]*\)\/*$/{
15302: s//\1/
15303: q
15304: }
15305: /^X\/\(\/\/\)$/{
15306: s//\1/
15307: q
15308: }
15309: /^X\/\(\/\).*/{
15310: s//\1/
15311: q
15312: }
15313: s/.*/./; q'`
1.1.1.19 root 15314:
1.1.1.22 root 15315: # CDPATH.
15316: $as_unset CDPATH
1.1.1.19 root 15317:
15318:
15319:
15320: as_lineno_1=$LINENO
15321: as_lineno_2=$LINENO
15322: test "x$as_lineno_1" != "x$as_lineno_2" &&
1.1.1.22 root 15323: test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
1.1.1.19 root 15324:
15325: # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
15326: # uniformly replaced by the line number. The first 'sed' inserts a
1.1.1.22 root 15327: # line-number line after each line using $LINENO; the second 'sed'
15328: # does the real work. The second script uses 'N' to pair each
15329: # line-number line with the line containing $LINENO, and appends
15330: # trailing '-' during substitution so that $LINENO is not a special
15331: # case at line end.
1.1.1.19 root 15332: # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
1.1.1.22 root 15333: # scripts with optimization help from Paolo Bonzini. Blame Lee
15334: # E. McMahon (1931-1989) for sed's syntax. :-)
15335: sed -n '
15336: p
15337: /[$]LINENO/=
15338: ' <$as_myself |
1.1.1.19 root 15339: sed '
1.1.1.22 root 15340: s/[$]LINENO.*/&-/
15341: t lineno
15342: b
15343: :lineno
1.1.1.19 root 15344: N
1.1.1.22 root 15345: :loop
15346: s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
1.1.1.19 root 15347: t loop
1.1.1.22 root 15348: s/-\n.*//
1.1.1.19 root 15349: ' >$as_me.lineno &&
1.1.1.22 root 15350: chmod +x "$as_me.lineno" ||
15351: { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
1.1.1.19 root 15352: { (exit 1); exit 1; }; }
15353:
15354: # Don't try to exec as it changes $[0], causing all sort of problems
15355: # (the dirname of $[0] is not the place where we might find the
1.1.1.22 root 15356: # original and so on. Autoconf is especially sensitive to this).
15357: . "./$as_me.lineno"
1.1.1.19 root 15358: # Exit status is that of the last command.
15359: exit
15360: }
15361:
15362:
1.1.1.22 root 15363: if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15364: as_dirname=dirname
15365: else
15366: as_dirname=false
15367: fi
15368:
15369: ECHO_C= ECHO_N= ECHO_T=
15370: case `echo -n x` in
15371: -n*)
15372: case `echo 'x\c'` in
15373: *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15374: *) ECHO_C='\c';;
15375: esac;;
15376: *)
15377: ECHO_N='-n';;
1.1.1.19 root 15378: esac
15379:
1.1.1.22 root 15380: if expr a : '\(a\)' >/dev/null 2>&1 &&
15381: test "X`expr 00001 : '.*\(...\)'`" = X001; then
1.1.1.19 root 15382: as_expr=expr
15383: else
15384: as_expr=false
15385: fi
15386:
15387: rm -f conf$$ conf$$.exe conf$$.file
1.1.1.22 root 15388: if test -d conf$$.dir; then
15389: rm -f conf$$.dir/conf$$.file
15390: else
15391: rm -f conf$$.dir
15392: mkdir conf$$.dir
15393: fi
1.1.1.19 root 15394: echo >conf$$.file
15395: if ln -s conf$$.file conf$$ 2>/dev/null; then
1.1.1.22 root 15396: as_ln_s='ln -s'
15397: # ... but there are two gotchas:
15398: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15399: # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15400: # In both cases, we have to default to `cp -p'.
15401: ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
1.1.1.19 root 15402: as_ln_s='cp -p'
15403: elif ln conf$$.file conf$$ 2>/dev/null; then
15404: as_ln_s=ln
15405: else
15406: as_ln_s='cp -p'
15407: fi
1.1.1.22 root 15408: rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15409: rmdir conf$$.dir 2>/dev/null
1.1.1.19 root 15410:
15411: if mkdir -p . 2>/dev/null; then
15412: as_mkdir_p=:
15413: else
15414: test -d ./-p && rmdir ./-p
15415: as_mkdir_p=false
15416: fi
15417:
1.1.1.22 root 15418: if test -x / >/dev/null 2>&1; then
15419: as_test_x='test -x'
15420: else
15421: if ls -dL / >/dev/null 2>&1; then
15422: as_ls_L_option=L
15423: else
15424: as_ls_L_option=
15425: fi
15426: as_test_x='
15427: eval sh -c '\''
15428: if test -d "$1"; then
15429: test -d "$1/.";
15430: else
15431: case $1 in
15432: -*)set "./$1";;
15433: esac;
15434: case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
15435: ???[sx]*):;;*)false;;esac;fi
15436: '\'' sh
15437: '
15438: fi
15439: as_executable_p=$as_test_x
1.1.1.19 root 15440:
15441: # Sed expression to map a string onto a valid CPP name.
15442: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15443:
15444: # Sed expression to map a string onto a valid variable name.
15445: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15446:
15447:
15448: exec 6>&1
15449:
1.1.1.22 root 15450: # Save the log message, to keep $[0] and so on meaningful, and to
1.1.1.19 root 15451: # report actual input values of CONFIG_FILES etc. instead of their
1.1.1.22 root 15452: # values after options handling.
15453: ac_log="
1.1.1.24! root 15454: This file was extended by UAE $as_me 0.8.28, which was
1.1.1.22 root 15455: generated by GNU Autoconf 2.61. Invocation command line was
1.1.1.19 root 15456:
15457: CONFIG_FILES = $CONFIG_FILES
15458: CONFIG_HEADERS = $CONFIG_HEADERS
15459: CONFIG_LINKS = $CONFIG_LINKS
15460: CONFIG_COMMANDS = $CONFIG_COMMANDS
15461: $ $0 $@
15462:
1.1.1.22 root 15463: on `(hostname || uname -n) 2>/dev/null | sed 1q`
15464: "
15465:
1.1.1.19 root 15466: _ACEOF
15467:
1.1.1.22 root 15468: cat >>$CONFIG_STATUS <<_ACEOF
1.1.1.19 root 15469: # Files that config.status was made for.
1.1.1.22 root 15470: config_files="$ac_config_files"
15471: config_headers="$ac_config_headers"
15472: config_links="$ac_config_links"
1.1.1.19 root 15473:
1.1.1.22 root 15474: _ACEOF
1.1.1.19 root 15475:
15476: cat >>$CONFIG_STATUS <<\_ACEOF
15477: ac_cs_usage="\
15478: \`$as_me' instantiates files from templates according to the
15479: current configuration.
15480:
15481: Usage: $0 [OPTIONS] [FILE]...
15482:
15483: -h, --help print this help, then exit
1.1.1.22 root 15484: -V, --version print version number and configuration settings, then exit
1.1.1.19 root 15485: -q, --quiet do not print progress messages
15486: -d, --debug don't remove temporary files
15487: --recheck update $as_me by reconfiguring in the same conditions
15488: --file=FILE[:TEMPLATE]
15489: instantiate the configuration file FILE
15490: --header=FILE[:TEMPLATE]
15491: instantiate the configuration header FILE
15492:
15493: Configuration files:
15494: $config_files
15495:
15496: Configuration headers:
15497: $config_headers
15498:
1.1.1.22 root 15499: Configuration links:
15500: $config_links
15501:
1.1.1.19 root 15502: Report bugs to <[email protected]>."
15503:
1.1.1.22 root 15504: _ACEOF
1.1.1.19 root 15505: cat >>$CONFIG_STATUS <<_ACEOF
15506: ac_cs_version="\\
1.1.1.24! root 15507: UAE config.status 0.8.28
1.1.1.22 root 15508: configured by $0, generated by GNU Autoconf 2.61,
15509: with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
1.1.1.19 root 15510:
1.1.1.22 root 15511: Copyright (C) 2006 Free Software Foundation, Inc.
1.1.1.19 root 15512: This config.status script is free software; the Free Software Foundation
15513: gives unlimited permission to copy, distribute and modify it."
1.1.1.22 root 15514:
15515: ac_pwd='$ac_pwd'
15516: srcdir='$srcdir'
1.1.1.23 root 15517: INSTALL='$INSTALL'
1.1.1.19 root 15518: _ACEOF
15519:
15520: cat >>$CONFIG_STATUS <<\_ACEOF
15521: # If no file are specified by the user, then we need to provide default
15522: # value. By we need to know if files were specified by the user.
15523: ac_need_defaults=:
15524: while test $# != 0
1.1 root 15525: do
1.1.1.19 root 15526: case $1 in
15527: --*=*)
1.1.1.22 root 15528: ac_option=`expr "X$1" : 'X\([^=]*\)='`
15529: ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
1.1.1.19 root 15530: ac_shift=:
15531: ;;
1.1.1.22 root 15532: *)
1.1.1.19 root 15533: ac_option=$1
15534: ac_optarg=$2
15535: ac_shift=shift
15536: ;;
15537: esac
15538:
15539: case $ac_option in
15540: # Handling of the options.
1.1 root 15541: -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1.1.1.19 root 15542: ac_cs_recheck=: ;;
1.1.1.22 root 15543: --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15544: echo "$ac_cs_version"; exit ;;
15545: --debug | --debu | --deb | --de | --d | -d )
1.1.1.19 root 15546: debug=: ;;
15547: --file | --fil | --fi | --f )
15548: $ac_shift
15549: CONFIG_FILES="$CONFIG_FILES $ac_optarg"
15550: ac_need_defaults=false;;
15551: --header | --heade | --head | --hea )
15552: $ac_shift
15553: CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
15554: ac_need_defaults=false;;
1.1.1.22 root 15555: --he | --h)
15556: # Conflict between --help and --header
15557: { echo "$as_me: error: ambiguous option: $1
15558: Try \`$0 --help' for more information." >&2
15559: { (exit 1); exit 1; }; };;
15560: --help | --hel | -h )
15561: echo "$ac_cs_usage"; exit ;;
1.1.1.19 root 15562: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15563: | -silent | --silent | --silen | --sile | --sil | --si | --s)
15564: ac_cs_silent=: ;;
15565:
15566: # This is an error.
1.1.1.22 root 15567: -*) { echo "$as_me: error: unrecognized option: $1
15568: Try \`$0 --help' for more information." >&2
1.1.1.19 root 15569: { (exit 1); exit 1; }; } ;;
15570:
1.1.1.22 root 15571: *) ac_config_targets="$ac_config_targets $1"
15572: ac_need_defaults=false ;;
1.1.1.19 root 15573:
1.1 root 15574: esac
1.1.1.19 root 15575: shift
1.1 root 15576: done
15577:
1.1.1.19 root 15578: ac_configure_extra_args=
1.1 root 15579:
1.1.1.19 root 15580: if $ac_cs_silent; then
15581: exec 6>/dev/null
15582: ac_configure_extra_args="$ac_configure_extra_args --silent"
15583: fi
1.1 root 15584:
1.1.1.19 root 15585: _ACEOF
15586: cat >>$CONFIG_STATUS <<_ACEOF
15587: if \$ac_cs_recheck; then
1.1.1.22 root 15588: echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
15589: CONFIG_SHELL=$SHELL
15590: export CONFIG_SHELL
15591: exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
1.1.1.19 root 15592: fi
15593:
15594: _ACEOF
1.1.1.22 root 15595: cat >>$CONFIG_STATUS <<\_ACEOF
15596: exec 5>>config.log
15597: {
15598: echo
15599: sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15600: ## Running $as_me. ##
15601: _ASBOX
15602: echo "$ac_log"
15603: } >&5
1.1.1.19 root 15604:
1.1.1.22 root 15605: _ACEOF
15606: cat >>$CONFIG_STATUS <<_ACEOF
15607: _ACEOF
1.1.1.19 root 15608:
15609: cat >>$CONFIG_STATUS <<\_ACEOF
1.1.1.22 root 15610:
15611: # Handling of arguments.
1.1.1.19 root 15612: for ac_config_target in $ac_config_targets
15613: do
1.1.1.22 root 15614: case $ac_config_target in
15615: "src/sysconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS src/sysconfig.h" ;;
15616: "src/osdep") CONFIG_LINKS="$CONFIG_LINKS src/osdep:src/$OSDEP" ;;
15617: "src/sounddep") CONFIG_LINKS="$CONFIG_LINKS src/sounddep:src/$SOUNDDEP" ;;
15618: "src/threaddep") CONFIG_LINKS="$CONFIG_LINKS src/threaddep:src/$THREADDEP" ;;
15619: "src/machdep") CONFIG_LINKS="$CONFIG_LINKS src/machdep:src/$MACHDEP" ;;
1.1.1.23 root 15620: "src/guidep/$src") CONFIG_LINKS="$CONFIG_LINKS src/guidep/$src:src/$GUIDEP/$src" ;;
15621: "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
15622: "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
1.1.1.22 root 15623:
1.1.1.19 root 15624: *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
15625: echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
15626: { (exit 1); exit 1; }; };;
15627: esac
15628: done
15629:
1.1.1.22 root 15630:
1.1.1.19 root 15631: # If the user did not use the arguments to specify the items to instantiate,
15632: # then the envvar interface is used. Set only those that are not.
15633: # We use the long form for the default assignment because of an extremely
15634: # bizarre bug on SunOS 4.1.3.
15635: if $ac_need_defaults; then
15636: test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15637: test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
1.1.1.22 root 15638: test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
1.1.1.19 root 15639: fi
15640:
15641: # Have a temporary directory for convenience. Make it in the build tree
1.1.1.22 root 15642: # simply because there is no reason against having it here, and in addition,
1.1.1.19 root 15643: # creating and moving files from /tmp can sometimes cause problems.
1.1.1.22 root 15644: # Hook for its removal unless debugging.
15645: # Note that there is a small window in which the directory will not be cleaned:
15646: # after its creation but before its name has been assigned to `$tmp'.
1.1.1.19 root 15647: $debug ||
15648: {
1.1.1.22 root 15649: tmp=
15650: trap 'exit_status=$?
15651: { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15652: ' 0
1.1.1.19 root 15653: trap '{ (exit 1); exit 1; }' 1 2 13 15
15654: }
15655: # Create a (secure) tmp directory for tmp files.
15656:
15657: {
1.1.1.22 root 15658: tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
1.1.1.19 root 15659: test -n "$tmp" && test -d "$tmp"
15660: } ||
15661: {
1.1.1.22 root 15662: tmp=./conf$$-$RANDOM
15663: (umask 077 && mkdir "$tmp")
1.1.1.19 root 15664: } ||
15665: {
15666: echo "$me: cannot create a temporary directory in ." >&2
15667: { (exit 1); exit 1; }
15668: }
1.1 root 15669:
1.1.1.19 root 15670: #
1.1.1.22 root 15671: # Set up the sed scripts for CONFIG_FILES section.
1.1.1.19 root 15672: #
15673:
15674: # No need to generate the scripts if there are no CONFIG_FILES.
15675: # This happens for instance when ./config.status config.h
1.1.1.22 root 15676: if test -n "$CONFIG_FILES"; then
15677:
15678: _ACEOF
15679:
15680:
15681:
15682: ac_delim='%!_!# '
15683: for ac_last_try in false false false false false :; do
15684: cat >conf$$subs.sed <<_ACEOF
15685: SHELL!$SHELL$ac_delim
15686: PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
15687: PACKAGE_NAME!$PACKAGE_NAME$ac_delim
15688: PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
15689: PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
15690: PACKAGE_STRING!$PACKAGE_STRING$ac_delim
15691: PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
15692: exec_prefix!$exec_prefix$ac_delim
15693: prefix!$prefix$ac_delim
15694: program_transform_name!$program_transform_name$ac_delim
15695: bindir!$bindir$ac_delim
15696: sbindir!$sbindir$ac_delim
15697: libexecdir!$libexecdir$ac_delim
15698: datarootdir!$datarootdir$ac_delim
15699: datadir!$datadir$ac_delim
15700: sysconfdir!$sysconfdir$ac_delim
15701: sharedstatedir!$sharedstatedir$ac_delim
15702: localstatedir!$localstatedir$ac_delim
15703: includedir!$includedir$ac_delim
15704: oldincludedir!$oldincludedir$ac_delim
15705: docdir!$docdir$ac_delim
15706: infodir!$infodir$ac_delim
15707: htmldir!$htmldir$ac_delim
15708: dvidir!$dvidir$ac_delim
15709: pdfdir!$pdfdir$ac_delim
15710: psdir!$psdir$ac_delim
15711: libdir!$libdir$ac_delim
15712: localedir!$localedir$ac_delim
15713: mandir!$mandir$ac_delim
15714: DEFS!$DEFS$ac_delim
15715: ECHO_C!$ECHO_C$ac_delim
15716: ECHO_N!$ECHO_N$ac_delim
15717: ECHO_T!$ECHO_T$ac_delim
15718: LIBS!$LIBS$ac_delim
15719: build_alias!$build_alias$ac_delim
15720: host_alias!$host_alias$ac_delim
15721: target_alias!$target_alias$ac_delim
15722: CC!$CC$ac_delim
15723: CFLAGS!$CFLAGS$ac_delim
15724: LDFLAGS!$LDFLAGS$ac_delim
15725: CPPFLAGS!$CPPFLAGS$ac_delim
15726: ac_ct_CC!$ac_ct_CC$ac_delim
15727: EXEEXT!$EXEEXT$ac_delim
15728: OBJEXT!$OBJEXT$ac_delim
15729: CPP!$CPP$ac_delim
1.1.1.23 root 15730: INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
15731: INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
15732: INSTALL_DATA!$INSTALL_DATA$ac_delim
1.1.1.22 root 15733: SET_MAKE!$SET_MAKE$ac_delim
15734: MAKEDEPPRG!$MAKEDEPPRG$ac_delim
15735: FILEPRG!$FILEPRG$ac_delim
15736: WRCPRG!$WRCPRG$ac_delim
15737: RCLPRG!$RCLPRG$ac_delim
15738: SDL_CONFIG!$SDL_CONFIG$ac_delim
15739: GREP!$GREP$ac_delim
15740: EGREP!$EGREP$ac_delim
15741: build!$build$ac_delim
15742: build_cpu!$build_cpu$ac_delim
15743: build_vendor!$build_vendor$ac_delim
15744: build_os!$build_os$ac_delim
15745: host!$host$ac_delim
15746: host_cpu!$host_cpu$ac_delim
15747: host_vendor!$host_vendor$ac_delim
15748: host_os!$host_os$ac_delim
15749: XMKMF!$XMKMF$ac_delim
15750: X_CFLAGS!$X_CFLAGS$ac_delim
15751: X_PRE_LIBS!$X_PRE_LIBS$ac_delim
15752: X_LIBS!$X_LIBS$ac_delim
15753: X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
15754: LIBOBJS!$LIBOBJS$ac_delim
15755: PKG_CONFIG!$PKG_CONFIG$ac_delim
15756: GTK_CFLAGS!$GTK_CFLAGS$ac_delim
15757: GTK_LIBS!$GTK_LIBS$ac_delim
15758: ac_cv_c_inline!$ac_cv_c_inline$ac_delim
15759: NO_SCHED_CFLAGS!$NO_SCHED_CFLAGS$ac_delim
15760: NO_REORDER_CFLAGS!$NO_REORDER_CFLAGS$ac_delim
15761: LIBRARIES!$LIBRARIES$ac_delim
15762: TARGET!$TARGET$ac_delim
15763: GFXOBJS!$GFXOBJS$ac_delim
1.1.1.23 root 15764: GUIOBJS!$GUIOBJS$ac_delim
1.1.1.22 root 15765: RESOBJS!$RESOBJS$ac_delim
15766: ASMOBJS!$ASMOBJS$ac_delim
15767: SCSIOBJS!$SCSIOBJS$ac_delim
15768: CPUOBJS!$CPUOBJS$ac_delim
15769: DEBUGOBJS!$DEBUGOBJS$ac_delim
15770: FSDBOBJS!$FSDBOBJS$ac_delim
15771: MATHLIB!$MATHLIB$ac_delim
15772: SHM_SUPPORT_LINKS!$SHM_SUPPORT_LINKS$ac_delim
15773: top_srcdir!$top_srcdir$ac_delim
15774: LTLIBOBJS!$LTLIBOBJS$ac_delim
15775: _ACEOF
15776:
1.1.1.23 root 15777: if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 90; then
1.1.1.22 root 15778: break
15779: elif $ac_last_try; then
15780: { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
15781: echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
15782: { (exit 1); exit 1; }; }
15783: else
15784: ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
1.1.1.4 root 15785: fi
1.1.1.22 root 15786: done
15787:
15788: ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
15789: if test -n "$ac_eof"; then
15790: ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
15791: ac_eof=`expr $ac_eof + 1`
15792: fi
1.1 root 15793:
1.1.1.22 root 15794: cat >>$CONFIG_STATUS <<_ACEOF
15795: cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
15796: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
15797: _ACEOF
15798: sed '
15799: s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
15800: s/^/s,@/; s/!/@,|#_!!_#|/
15801: :n
15802: t n
15803: s/'"$ac_delim"'$/,g/; t
15804: s/$/\\/; p
15805: N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
15806: ' >>$CONFIG_STATUS <conf$$subs.sed
15807: rm -f conf$$subs.sed
15808: cat >>$CONFIG_STATUS <<_ACEOF
15809: :end
15810: s/|#_!!_#|//g
15811: CEOF$ac_eof
1.1.1.19 root 15812: _ACEOF
1.1.1.22 root 15813:
15814:
15815: # VPATH may cause trouble with some makes, so we remove $(srcdir),
15816: # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15817: # trailing colons and then remove the whole line if VPATH becomes empty
15818: # (actually we leave an empty line to preserve line numbers).
15819: if test "x$srcdir" = x.; then
15820: ac_vpsub='/^[ ]*VPATH[ ]*=/{
15821: s/:*\$(srcdir):*/:/
15822: s/:*\${srcdir}:*/:/
15823: s/:*@srcdir@:*/:/
15824: s/^\([^=]*=[ ]*\):*/\1/
15825: s/:*$//
15826: s/^[^=]*=[ ]*$//
15827: }'
15828: fi
15829:
1.1.1.19 root 15830: cat >>$CONFIG_STATUS <<\_ACEOF
1.1.1.22 root 15831: fi # test -n "$CONFIG_FILES"
15832:
15833:
15834: for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS
15835: do
15836: case $ac_tag in
15837: :[FHLC]) ac_mode=$ac_tag; continue;;
15838: esac
15839: case $ac_mode$ac_tag in
15840: :[FHL]*:*);;
15841: :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
15842: echo "$as_me: error: Invalid tag $ac_tag." >&2;}
15843: { (exit 1); exit 1; }; };;
15844: :[FH]-) ac_tag=-:-;;
15845: :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
1.1 root 15846: esac
1.1.1.22 root 15847: ac_save_IFS=$IFS
15848: IFS=:
15849: set x $ac_tag
15850: IFS=$ac_save_IFS
15851: shift
15852: ac_file=$1
15853: shift
1.1 root 15854:
1.1.1.22 root 15855: case $ac_mode in
15856: :L) ac_source=$1;;
15857: :[FH])
15858: ac_file_inputs=
15859: for ac_f
15860: do
15861: case $ac_f in
15862: -) ac_f="$tmp/stdin";;
15863: *) # Look for the file first in the build tree, then in the source tree
15864: # (if the path is not absolute). The absolute path cannot be DOS-style,
15865: # because $ac_f cannot contain `:'.
15866: test -f "$ac_f" ||
15867: case $ac_f in
15868: [\\/$]*) false;;
15869: *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15870: esac ||
15871: { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
15872: echo "$as_me: error: cannot find input file: $ac_f" >&2;}
15873: { (exit 1); exit 1; }; };;
15874: esac
15875: ac_file_inputs="$ac_file_inputs $ac_f"
15876: done
15877:
15878: # Let's still pretend it is `configure' which instantiates (i.e., don't
15879: # use $as_me), people would be surprised to read:
15880: # /* config.h. Generated by config.status. */
15881: configure_input="Generated from "`IFS=:
15882: echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
15883: if test x"$ac_file" != x-; then
15884: configure_input="$ac_file. $configure_input"
15885: { echo "$as_me:$LINENO: creating $ac_file" >&5
15886: echo "$as_me: creating $ac_file" >&6;}
15887: fi
15888:
15889: case $ac_tag in
15890: *:-:* | *:-) cat >"$tmp/stdin";;
15891: esac
15892: ;;
15893: esac
15894:
15895: ac_dir=`$as_dirname -- "$ac_file" ||
1.1.1.19 root 15896: $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15897: X"$ac_file" : 'X\(//\)[^/]' \| \
15898: X"$ac_file" : 'X\(//\)$' \| \
1.1.1.22 root 15899: X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
1.1.1.19 root 15900: echo X"$ac_file" |
1.1.1.22 root 15901: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15902: s//\1/
15903: q
15904: }
15905: /^X\(\/\/\)[^/].*/{
15906: s//\1/
15907: q
15908: }
15909: /^X\(\/\/\)$/{
15910: s//\1/
15911: q
15912: }
15913: /^X\(\/\).*/{
15914: s//\1/
15915: q
15916: }
15917: s/.*/./; q'`
15918: { as_dir="$ac_dir"
15919: case $as_dir in #(
15920: -*) as_dir=./$as_dir;;
15921: esac
15922: test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
1.1.1.19 root 15923: as_dirs=
1.1.1.22 root 15924: while :; do
15925: case $as_dir in #(
15926: *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
15927: *) as_qdir=$as_dir;;
15928: esac
15929: as_dirs="'$as_qdir' $as_dirs"
15930: as_dir=`$as_dirname -- "$as_dir" ||
1.1.1.19 root 15931: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15932: X"$as_dir" : 'X\(//\)[^/]' \| \
15933: X"$as_dir" : 'X\(//\)$' \| \
1.1.1.22 root 15934: X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
1.1.1.19 root 15935: echo X"$as_dir" |
1.1.1.22 root 15936: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15937: s//\1/
15938: q
15939: }
15940: /^X\(\/\/\)[^/].*/{
15941: s//\1/
15942: q
15943: }
15944: /^X\(\/\/\)$/{
15945: s//\1/
15946: q
15947: }
15948: /^X\(\/\).*/{
15949: s//\1/
15950: q
15951: }
15952: s/.*/./; q'`
15953: test -d "$as_dir" && break
1.1.1.19 root 15954: done
1.1.1.22 root 15955: test -z "$as_dirs" || eval "mkdir $as_dirs"
15956: } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
15957: echo "$as_me: error: cannot create directory $as_dir" >&2;}
1.1.1.19 root 15958: { (exit 1); exit 1; }; }; }
15959: ac_builddir=.
15960:
1.1.1.22 root 15961: case "$ac_dir" in
15962: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15963: *)
1.1.1.19 root 15964: ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1.1.1.22 root 15965: # A ".." for each directory in $ac_dir_suffix.
15966: ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
15967: case $ac_top_builddir_sub in
15968: "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15969: *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15970: esac ;;
15971: esac
15972: ac_abs_top_builddir=$ac_pwd
15973: ac_abs_builddir=$ac_pwd$ac_dir_suffix
15974: # for backward compatibility:
15975: ac_top_builddir=$ac_top_build_prefix
1.1.1.19 root 15976:
15977: case $srcdir in
1.1.1.22 root 15978: .) # We are building in place.
1.1.1.19 root 15979: ac_srcdir=.
1.1.1.22 root 15980: ac_top_srcdir=$ac_top_builddir_sub
15981: ac_abs_top_srcdir=$ac_pwd ;;
15982: [\\/]* | ?:[\\/]* ) # Absolute name.
1.1.1.19 root 15983: ac_srcdir=$srcdir$ac_dir_suffix;
1.1.1.22 root 15984: ac_top_srcdir=$srcdir
15985: ac_abs_top_srcdir=$srcdir ;;
15986: *) # Relative name.
15987: ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15988: ac_top_srcdir=$ac_top_build_prefix$srcdir
15989: ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15990: esac
15991: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1.1.1.19 root 15992:
1.1 root 15993:
1.1.1.22 root 15994: case $ac_mode in
15995: :F)
15996: #
15997: # CONFIG_FILE
15998: #
1.1.1.4 root 15999:
1.1.1.23 root 16000: case $INSTALL in
16001: [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16002: *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16003: esac
1.1.1.22 root 16004: _ACEOF
1.1.1.4 root 16005:
1.1.1.22 root 16006: cat >>$CONFIG_STATUS <<\_ACEOF
16007: # If the template does not know about datarootdir, expand it.
16008: # FIXME: This hack should be removed a few years after 2.60.
16009: ac_datarootdir_hack=; ac_datarootdir_seen=
16010:
16011: case `sed -n '/datarootdir/ {
16012: p
16013: q
16014: }
16015: /@datadir@/p
16016: /@docdir@/p
16017: /@infodir@/p
16018: /@localedir@/p
16019: /@mandir@/p
16020: ' $ac_file_inputs` in
16021: *datarootdir*) ac_datarootdir_seen=yes;;
16022: *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16023: { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16024: echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16025: _ACEOF
16026: cat >>$CONFIG_STATUS <<_ACEOF
16027: ac_datarootdir_hack='
16028: s&@datadir@&$datadir&g
16029: s&@docdir@&$docdir&g
16030: s&@infodir@&$infodir&g
16031: s&@localedir@&$localedir&g
16032: s&@mandir@&$mandir&g
16033: s&\\\${datarootdir}&$datarootdir&g' ;;
16034: esac
1.1.1.19 root 16035: _ACEOF
1.1.1.22 root 16036:
16037: # Neutralize VPATH when `$srcdir' = `.'.
16038: # Shell code in configure.ac might set extrasub.
16039: # FIXME: do we really want to maintain this feature?
1.1.1.19 root 16040: cat >>$CONFIG_STATUS <<_ACEOF
16041: sed "$ac_vpsub
16042: $extrasub
16043: _ACEOF
16044: cat >>$CONFIG_STATUS <<\_ACEOF
16045: :t
16046: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
1.1.1.22 root 16047: s&@configure_input@&$configure_input&;t t
16048: s&@top_builddir@&$ac_top_builddir_sub&;t t
16049: s&@srcdir@&$ac_srcdir&;t t
16050: s&@abs_srcdir@&$ac_abs_srcdir&;t t
16051: s&@top_srcdir@&$ac_top_srcdir&;t t
16052: s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16053: s&@builddir@&$ac_builddir&;t t
16054: s&@abs_builddir@&$ac_abs_builddir&;t t
16055: s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
1.1.1.23 root 16056: s&@INSTALL@&$ac_INSTALL&;t t
1.1.1.22 root 16057: $ac_datarootdir_hack
16058: " $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out
16059:
16060: test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16061: { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16062: { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
16063: { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16064: which seems to be undefined. Please make sure it is defined." >&5
16065: echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16066: which seems to be undefined. Please make sure it is defined." >&2;}
1.1.1.19 root 16067:
1.1.1.22 root 16068: rm -f "$tmp/stdin"
1.1.1.19 root 16069: case $ac_file in
1.1.1.22 root 16070: -) cat "$tmp/out"; rm -f "$tmp/out";;
16071: *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
1.1 root 16072: esac
1.1.1.22 root 16073: ;;
16074: :H)
16075: #
16076: # CONFIG_HEADER
16077: #
16078: _ACEOF
16079:
16080: # Transform confdefs.h into a sed script `conftest.defines', that
16081: # substitutes the proper values into config.h.in to produce config.h.
16082: rm -f conftest.defines conftest.tail
16083: # First, append a space to every undef/define line, to ease matching.
16084: echo 's/$/ /' >conftest.defines
16085: # Then, protect against being on the right side of a sed subst, or in
16086: # an unquoted here document, in config.status. If some macros were
16087: # called several times there might be several #defines for the same
16088: # symbol, which is useless. But do not sort them, since the last
16089: # AC_DEFINE must be honored.
16090: ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16091: # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
16092: # NAME is the cpp macro being defined, VALUE is the value it is being given.
16093: # PARAMS is the parameter list in the macro definition--in most cases, it's
16094: # just an empty string.
16095: ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
16096: ac_dB='\\)[ (].*,\\1define\\2'
16097: ac_dC=' '
16098: ac_dD=' ,'
1.1 root 16099:
1.1.1.22 root 16100: uniq confdefs.h |
16101: sed -n '
16102: t rset
16103: :rset
16104: s/^[ ]*#[ ]*define[ ][ ]*//
16105: t ok
16106: d
16107: :ok
16108: s/[\\&,]/\\&/g
16109: s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
16110: s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
16111: ' >>conftest.defines
1.1 root 16112:
1.1.1.22 root 16113: # Remove the space that was appended to ease matching.
16114: # Then replace #undef with comments. This is necessary, for
1.1 root 16115: # example, in the case of _POSIX_SOURCE, which is predefined and required
16116: # on some systems where configure will not decide to define it.
1.1.1.22 root 16117: # (The regexp can be short, since the line contains either #define or #undef.)
16118: echo 's/ $//
16119: s,^[ #]*u.*,/* & */,' >>conftest.defines
16120:
16121: # Break up conftest.defines:
16122: ac_max_sed_lines=50
16123:
16124: # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
16125: # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
16126: # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
16127: # et cetera.
16128: ac_in='$ac_file_inputs'
16129: ac_out='"$tmp/out1"'
16130: ac_nxt='"$tmp/out2"'
16131:
16132: while :
16133: do
16134: # Write a here document:
16135: cat >>$CONFIG_STATUS <<_ACEOF
16136: # First, check the format of the line:
16137: cat >"\$tmp/defines.sed" <<\\CEOF
16138: /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
16139: /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
16140: b
16141: :def
1.1.1.19 root 16142: _ACEOF
1.1.1.22 root 16143: sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
1.1 root 16144: echo 'CEOF
1.1.1.22 root 16145: sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
16146: ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
16147: sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
16148: grep . conftest.tail >/dev/null || break
1.1.1.19 root 16149: rm -f conftest.defines
16150: mv conftest.tail conftest.defines
16151: done
1.1.1.22 root 16152: rm -f conftest.defines conftest.tail
1.1.1.19 root 16153:
1.1.1.22 root 16154: echo "ac_result=$ac_in" >>$CONFIG_STATUS
1.1.1.19 root 16155: cat >>$CONFIG_STATUS <<\_ACEOF
16156: if test x"$ac_file" != x-; then
1.1.1.22 root 16157: echo "/* $configure_input */" >"$tmp/config.h"
16158: cat "$ac_result" >>"$tmp/config.h"
16159: if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
1.1.1.19 root 16160: { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
16161: echo "$as_me: $ac_file is unchanged" >&6;}
16162: else
16163: rm -f $ac_file
1.1.1.22 root 16164: mv "$tmp/config.h" $ac_file
1.1.1.19 root 16165: fi
16166: else
1.1.1.22 root 16167: echo "/* $configure_input */"
16168: cat "$ac_result"
1.1.1.19 root 16169: fi
1.1.1.22 root 16170: rm -f "$tmp/out12"
16171: ;;
16172: :L)
16173: #
16174: # CONFIG_LINK
16175: #
16176:
16177: { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_file" >&5
16178: echo "$as_me: linking $srcdir/$ac_source to $ac_file" >&6;}
16179:
16180: if test ! -r "$srcdir/$ac_source"; then
16181: { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
16182: echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
16183: { (exit 1); exit 1; }; }
16184: fi
16185: rm -f "$ac_file"
16186:
16187: # Try a relative symlink, then a hard link, then a copy.
16188: case $srcdir in
16189: [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
16190: *) ac_rel_source=$ac_top_build_prefix$srcdir/$ac_source ;;
16191: esac
16192: ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
16193: ln "$srcdir/$ac_source" "$ac_file" 2>/dev/null ||
16194: cp -p "$srcdir/$ac_source" "$ac_file" ||
16195: { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_file" >&5
16196: echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_file" >&2;}
16197: { (exit 1); exit 1; }; }
16198: ;;
16199:
16200: esac
16201:
16202: done # for ac_tag
1.1 root 16203:
16204:
1.1.1.19 root 16205: { (exit 0); exit 0; }
16206: _ACEOF
1.1 root 16207: chmod +x $CONFIG_STATUS
1.1.1.19 root 16208: ac_clean_files=$ac_clean_files_save
16209:
16210:
16211: # configure is writing to config.log, and then calls config.status.
16212: # config.status does its own redirection, appending to config.log.
16213: # Unfortunately, on DOS this fails, as config.log is still kept open
16214: # by configure, so config.status won't be able to write to it; its
16215: # output is simply discarded. So we exec the FD to /dev/null,
16216: # effectively closing config.log, so it can be properly (re)opened and
16217: # appended to by config.status. When coming back to configure, we
16218: # need to make the FD available again.
16219: if test "$no_create" != yes; then
16220: ac_cs_success=:
16221: ac_config_status_args=
16222: test "$silent" = yes &&
16223: ac_config_status_args="$ac_config_status_args --quiet"
16224: exec 5>/dev/null
16225: $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16226: exec 5>>config.log
16227: # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16228: # would make configure fail if this is the last instruction.
16229: $ac_cs_success || { (exit 1); exit 1; }
16230: fi
1.1 root 16231:
1.1.1.6 root 16232:
1.1.1.4 root 16233: echo
16234: echo
16235: if [ "x$NR_ERRORS" = "x0" ]; then
16236: if [ "x$NR_WARNINGS" = "x0" ]; then
16237: echo "Configuration was successful!"
16238: else
16239: echo "There were $NR_WARNINGS warnings. That is usually harmless, but read the output"
16240: echo "from configure carefully if you run into problems."
16241: fi
16242: else
16243: echo "There were $NR_ERRORS errors. UAE may still build and run cleanly, but you may"
16244: echo "not get all the features you asked for."
16245: fi
16246: echo
1.1.1.23 root 16247:
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.