Annotation of OpenXM_contrib2/asir2000/configure, Revision 1.48
1.14 noro 1: #! /bin/sh
2: # Guess values for system-dependent variables and create Makefiles.
1.43 ohara 3: # Generated by GNU Autoconf 2.62.
1.14 noro 4: #
1.37 ohara 5: # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1.43 ohara 6: # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1.14 noro 7: # This configure script is free software; the Free Software Foundation
8: # gives unlimited permission to copy, distribute and modify it.
9: ## --------------------- ##
10: ## M4sh Initialization. ##
11: ## --------------------- ##
12:
1.37 ohara 13: # Be more Bourne compatible
14: DUALCASE=1; export DUALCASE # for MKS sh
1.14 noro 15: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16: emulate sh
17: NULLCMD=:
1.43 ohara 18: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
1.32 noro 19: # is contrary to our usage. Disable this feature.
20: alias -g '${1+"$@"}'='"$@"'
1.37 ohara 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:
1.43 ohara 40: as_nl='
41: '
42: export as_nl
43: # Printing a long string crashes Solaris 7 /usr/bin/printf.
44: as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
45: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
46: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
47: if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48: as_echo='printf %s\n'
49: as_echo_n='printf %s'
50: else
51: if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52: as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53: as_echo_n='/usr/ucb/echo -n'
54: else
55: as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56: as_echo_n_body='eval
57: arg=$1;
58: case $arg in
59: *"$as_nl"*)
60: expr "X$arg" : "X\\(.*\\)$as_nl";
61: arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62: esac;
63: expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64: '
65: export as_echo_n_body
66: as_echo_n='sh -c $as_echo_n_body as_echo'
67: fi
68: export as_echo_body
69: as_echo='sh -c $as_echo_body as_echo'
70: fi
71:
1.37 ohara 72: # The user is always right.
73: if test "${PATH_SEPARATOR+set}" != set; then
1.43 ohara 74: PATH_SEPARATOR=:
75: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76: (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77: PATH_SEPARATOR=';'
78: }
1.14 noro 79: fi
80:
81: # Support unset when possible.
1.32 noro 82: if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
1.14 noro 83: as_unset=unset
84: else
85: as_unset=false
86: fi
87:
1.32 noro 88:
1.37 ohara 89: # IFS
90: # We need space, tab and new line, in precisely that order. Quoting is
91: # there to prevent editors from complaining about space-tab.
92: # (If _AS_PATH_WALK were called with IFS unset, it would disable word
93: # splitting by setting IFS to empty value.)
94: IFS=" "" $as_nl"
95:
96: # Find who we are. Look in the path if we contain no directory separator.
97: case $0 in
98: *[\\/]* ) as_myself=$0 ;;
99: *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
100: for as_dir in $PATH
101: do
102: IFS=$as_save_IFS
103: test -z "$as_dir" && as_dir=.
104: test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
105: done
106: IFS=$as_save_IFS
107:
108: ;;
109: esac
110: # We did not find ourselves, most probably we were run as `sh COMMAND'
111: # in which case we are not to be found in the path.
112: if test "x$as_myself" = x; then
113: as_myself=$0
114: fi
115: if test ! -f "$as_myself"; then
1.43 ohara 116: $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
1.37 ohara 117: { (exit 1); exit 1; }
118: fi
119:
1.32 noro 120: # Work around bugs in pre-3.0 UWIN ksh.
1.37 ohara 121: for as_var in ENV MAIL MAILPATH
122: do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
123: done
1.32 noro 124: PS1='$ '
125: PS2='> '
126: PS4='+ '
127:
128: # NLS nuisances.
1.43 ohara 129: LC_ALL=C
130: export LC_ALL
131: LANGUAGE=C
132: export LANGUAGE
1.32 noro 133:
134: # Required to use basename.
1.37 ohara 135: if expr a : '\(a\)' >/dev/null 2>&1 &&
136: test "X`expr 00001 : '.*\(...\)'`" = X001; then
1.32 noro 137: as_expr=expr
138: else
139: as_expr=false
140: fi
141:
1.37 ohara 142: if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
1.32 noro 143: as_basename=basename
144: else
145: as_basename=false
146: fi
1.14 noro 147:
148:
149: # Name of the executable.
1.37 ohara 150: as_me=`$as_basename -- "$0" ||
1.14 noro 151: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
152: X"$0" : 'X\(//\)$' \| \
1.37 ohara 153: X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1.43 ohara 154: $as_echo X/"$0" |
1.37 ohara 155: sed '/^.*\/\([^/][^/]*\)\/*$/{
156: s//\1/
157: q
158: }
159: /^X\/\(\/\/\)$/{
160: s//\1/
161: q
162: }
163: /^X\/\(\/\).*/{
164: s//\1/
165: q
166: }
167: s/.*/./; q'`
168:
169: # CDPATH.
170: $as_unset CDPATH
171:
172:
173: if test "x$CONFIG_SHELL" = x; then
174: if (eval ":") 2>/dev/null; then
175: as_have_required=yes
176: else
177: as_have_required=no
178: fi
179:
1.43 ohara 180: if test $as_have_required = yes && (eval ":
1.37 ohara 181: (as_func_return () {
182: (exit \$1)
183: }
184: as_func_success () {
185: as_func_return 0
186: }
187: as_func_failure () {
188: as_func_return 1
189: }
190: as_func_ret_success () {
191: return 0
192: }
193: as_func_ret_failure () {
194: return 1
195: }
1.14 noro 196:
1.37 ohara 197: exitcode=0
198: if as_func_success; then
199: :
200: else
201: exitcode=1
202: echo as_func_success failed.
203: fi
204:
205: if as_func_failure; then
206: exitcode=1
207: echo as_func_failure succeeded.
208: fi
1.32 noro 209:
1.37 ohara 210: if as_func_ret_success; then
211: :
212: else
213: exitcode=1
214: echo as_func_ret_success failed.
215: fi
1.14 noro 216:
1.37 ohara 217: if as_func_ret_failure; then
218: exitcode=1
219: echo as_func_ret_failure succeeded.
1.14 noro 220: fi
221:
1.37 ohara 222: if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
223: :
224: else
225: exitcode=1
226: echo positional parameters were not saved.
227: fi
1.14 noro 228:
1.37 ohara 229: test \$exitcode = 0) || { (exit 1); exit 1; }
1.14 noro 230:
1.37 ohara 231: (
232: as_lineno_1=\$LINENO
233: as_lineno_2=\$LINENO
234: test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
235: test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
236: ") 2> /dev/null; then
237: :
238: else
239: as_candidate_shells=
1.14 noro 240: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
241: for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
242: do
243: IFS=$as_save_IFS
244: test -z "$as_dir" && as_dir=.
1.37 ohara 245: case $as_dir in
1.14 noro 246: /*)
1.37 ohara 247: for as_base in sh bash ksh sh5; do
248: as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
249: done;;
250: esac
251: done
252: IFS=$as_save_IFS
253:
254:
255: for as_shell in $as_candidate_shells $SHELL; do
256: # Try only shells that exist, to save several forks.
257: if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
258: { ("$as_shell") 2> /dev/null <<\_ASEOF
259: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
260: emulate sh
261: NULLCMD=:
1.43 ohara 262: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
1.37 ohara 263: # is contrary to our usage. Disable this feature.
264: alias -g '${1+"$@"}'='"$@"'
265: setopt NO_GLOB_SUBST
266: else
267: case `(set -o) 2>/dev/null` in
268: *posix*) set -o posix ;;
269: esac
270:
271: fi
272:
273:
274: :
275: _ASEOF
276: }; then
277: CONFIG_SHELL=$as_shell
278: as_have_required=yes
279: if { "$as_shell" 2> /dev/null <<\_ASEOF
280: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
281: emulate sh
282: NULLCMD=:
1.43 ohara 283: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
1.37 ohara 284: # is contrary to our usage. Disable this feature.
285: alias -g '${1+"$@"}'='"$@"'
286: setopt NO_GLOB_SUBST
287: else
288: case `(set -o) 2>/dev/null` in
289: *posix*) set -o posix ;;
290: esac
291:
292: fi
293:
294:
295: :
296: (as_func_return () {
297: (exit $1)
298: }
299: as_func_success () {
300: as_func_return 0
301: }
302: as_func_failure () {
303: as_func_return 1
304: }
305: as_func_ret_success () {
306: return 0
307: }
308: as_func_ret_failure () {
309: return 1
310: }
311:
312: exitcode=0
313: if as_func_success; then
314: :
315: else
316: exitcode=1
317: echo as_func_success failed.
318: fi
319:
320: if as_func_failure; then
321: exitcode=1
322: echo as_func_failure succeeded.
323: fi
324:
325: if as_func_ret_success; then
326: :
327: else
328: exitcode=1
329: echo as_func_ret_success failed.
330: fi
331:
332: if as_func_ret_failure; then
333: exitcode=1
334: echo as_func_ret_failure succeeded.
335: fi
336:
337: if ( set x; as_func_ret_success y && test x = "$1" ); then
338: :
339: else
340: exitcode=1
341: echo positional parameters were not saved.
342: fi
343:
344: test $exitcode = 0) || { (exit 1); exit 1; }
345:
346: (
347: as_lineno_1=$LINENO
348: as_lineno_2=$LINENO
349: test "x$as_lineno_1" != "x$as_lineno_2" &&
350: test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
351:
352: _ASEOF
353: }; then
354: break
355: fi
356:
357: fi
358:
359: done
360:
361: if test "x$CONFIG_SHELL" != x; then
362: for as_var in BASH_ENV ENV
1.43 ohara 363: do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
364: done
365: export CONFIG_SHELL
366: exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
1.37 ohara 367: fi
368:
369:
370: if test $as_have_required = no; then
371: echo This script requires a shell more modern than all the
372: echo shells that I found on your system. Please install a
373: echo modern shell, or manually run the script under such a
374: echo shell if you do have one.
375: { (exit 1); exit 1; }
376: fi
377:
378:
379: fi
380:
381: fi
382:
383:
384:
385: (eval "as_func_return () {
386: (exit \$1)
387: }
388: as_func_success () {
389: as_func_return 0
390: }
391: as_func_failure () {
392: as_func_return 1
393: }
394: as_func_ret_success () {
395: return 0
396: }
397: as_func_ret_failure () {
398: return 1
399: }
400:
401: exitcode=0
402: if as_func_success; then
403: :
404: else
405: exitcode=1
406: echo as_func_success failed.
407: fi
408:
409: if as_func_failure; then
410: exitcode=1
411: echo as_func_failure succeeded.
412: fi
413:
414: if as_func_ret_success; then
415: :
416: else
417: exitcode=1
418: echo as_func_ret_success failed.
419: fi
420:
421: if as_func_ret_failure; then
422: exitcode=1
423: echo as_func_ret_failure succeeded.
424: fi
425:
426: if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
427: :
428: else
429: exitcode=1
430: echo positional parameters were not saved.
431: fi
432:
433: test \$exitcode = 0") || {
434: echo No shell found that supports shell functions.
1.43 ohara 435: echo Please tell bug-autoconf@gnu.org about your system,
436: echo including any error possibly output before this message.
437: echo This can help us improve future autoconf versions.
438: echo Configuration will now proceed without shell functions.
1.37 ohara 439: }
440:
441:
442:
1.14 noro 443: as_lineno_1=$LINENO
444: as_lineno_2=$LINENO
445: test "x$as_lineno_1" != "x$as_lineno_2" &&
1.37 ohara 446: test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
1.14 noro 447:
448: # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
449: # uniformly replaced by the line number. The first 'sed' inserts a
1.37 ohara 450: # line-number line after each line using $LINENO; the second 'sed'
451: # does the real work. The second script uses 'N' to pair each
452: # line-number line with the line containing $LINENO, and appends
453: # trailing '-' during substitution so that $LINENO is not a special
454: # case at line end.
1.14 noro 455: # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
1.37 ohara 456: # scripts with optimization help from Paolo Bonzini. Blame Lee
457: # E. McMahon (1931-1989) for sed's syntax. :-)
458: sed -n '
459: p
460: /[$]LINENO/=
461: ' <$as_myself |
1.14 noro 462: sed '
1.37 ohara 463: s/[$]LINENO.*/&-/
464: t lineno
465: b
466: :lineno
1.14 noro 467: N
1.37 ohara 468: :loop
469: s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
1.14 noro 470: t loop
1.37 ohara 471: s/-\n.*//
1.14 noro 472: ' >$as_me.lineno &&
1.37 ohara 473: chmod +x "$as_me.lineno" ||
1.43 ohara 474: { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
1.14 noro 475: { (exit 1); exit 1; }; }
476:
477: # Don't try to exec as it changes $[0], causing all sort of problems
478: # (the dirname of $[0] is not the place where we might find the
1.37 ohara 479: # original and so on. Autoconf is especially sensitive to this).
480: . "./$as_me.lineno"
1.14 noro 481: # Exit status is that of the last command.
482: exit
483: }
484:
485:
1.37 ohara 486: if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
487: as_dirname=dirname
488: else
489: as_dirname=false
490: fi
491:
492: ECHO_C= ECHO_N= ECHO_T=
493: case `echo -n x` in
494: -n*)
495: case `echo 'x\c'` in
496: *c*) ECHO_T=' ';; # ECHO_T is single tab character.
497: *) ECHO_C='\c';;
498: esac;;
499: *)
500: ECHO_N='-n';;
1.14 noro 501: esac
1.37 ohara 502: if expr a : '\(a\)' >/dev/null 2>&1 &&
503: test "X`expr 00001 : '.*\(...\)'`" = X001; then
1.14 noro 504: as_expr=expr
505: else
506: as_expr=false
507: fi
508:
509: rm -f conf$$ conf$$.exe conf$$.file
1.37 ohara 510: if test -d conf$$.dir; then
511: rm -f conf$$.dir/conf$$.file
512: else
513: rm -f conf$$.dir
1.43 ohara 514: mkdir conf$$.dir 2>/dev/null
1.37 ohara 515: fi
1.43 ohara 516: if (echo >conf$$.file) 2>/dev/null; then
517: if ln -s conf$$.file conf$$ 2>/dev/null; then
518: as_ln_s='ln -s'
519: # ... but there are two gotchas:
520: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
521: # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
522: # In both cases, we have to default to `cp -p'.
523: ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
524: as_ln_s='cp -p'
525: elif ln conf$$.file conf$$ 2>/dev/null; then
526: as_ln_s=ln
527: else
1.14 noro 528: as_ln_s='cp -p'
1.43 ohara 529: fi
1.14 noro 530: else
531: as_ln_s='cp -p'
532: fi
1.37 ohara 533: rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
534: rmdir conf$$.dir 2>/dev/null
1.14 noro 535:
1.32 noro 536: if mkdir -p . 2>/dev/null; then
537: as_mkdir_p=:
538: else
539: test -d ./-p && rmdir ./-p
540: as_mkdir_p=false
541: fi
542:
1.37 ohara 543: if test -x / >/dev/null 2>&1; then
544: as_test_x='test -x'
545: else
546: if ls -dL / >/dev/null 2>&1; then
547: as_ls_L_option=L
548: else
549: as_ls_L_option=
550: fi
551: as_test_x='
552: eval sh -c '\''
553: if test -d "$1"; then
1.43 ohara 554: test -d "$1/.";
1.37 ohara 555: else
556: case $1 in
1.43 ohara 557: -*)set "./$1";;
1.37 ohara 558: esac;
559: case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
560: ???[sx]*):;;*)false;;esac;fi
561: '\'' sh
562: '
563: fi
564: as_executable_p=$as_test_x
1.14 noro 565:
566: # Sed expression to map a string onto a valid CPP name.
1.32 noro 567: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
1.14 noro 568:
569: # Sed expression to map a string onto a valid variable name.
1.32 noro 570: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
1.14 noro 571:
572:
573:
1.37 ohara 574: exec 7<&0 </dev/null 6>&1
1.14 noro 575:
576: # Name of the host.
577: # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
578: # so uname gets run too.
579: ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
580:
581: #
582: # Initializations.
583: #
584: ac_default_prefix=/usr/local
1.37 ohara 585: ac_clean_files=
1.32 noro 586: ac_config_libobj_dir=.
1.37 ohara 587: LIBOBJS=
1.14 noro 588: cross_compiling=no
589: subdirs=
590: MFLAGS=
591: MAKEFLAGS=
592: SHELL=${CONFIG_SHELL-/bin/sh}
593:
594: # Identity of this package.
595: PACKAGE_NAME=
596: PACKAGE_TARNAME=
597: PACKAGE_VERSION=
598: PACKAGE_STRING=
599: PACKAGE_BUGREPORT=
600:
601: ac_unique_file="LICENSE"
602: # Factoring default headers for most tests.
603: ac_includes_default="\
604: #include <stdio.h>
1.37 ohara 605: #ifdef HAVE_SYS_TYPES_H
1.14 noro 606: # include <sys/types.h>
607: #endif
1.37 ohara 608: #ifdef HAVE_SYS_STAT_H
1.14 noro 609: # include <sys/stat.h>
610: #endif
1.37 ohara 611: #ifdef STDC_HEADERS
1.14 noro 612: # include <stdlib.h>
613: # include <stddef.h>
614: #else
1.37 ohara 615: # ifdef HAVE_STDLIB_H
1.14 noro 616: # include <stdlib.h>
617: # endif
618: #endif
1.37 ohara 619: #ifdef HAVE_STRING_H
620: # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
1.14 noro 621: # include <memory.h>
622: # endif
623: # include <string.h>
624: #endif
1.37 ohara 625: #ifdef HAVE_STRINGS_H
1.14 noro 626: # include <strings.h>
627: #endif
1.37 ohara 628: #ifdef HAVE_INTTYPES_H
1.14 noro 629: # include <inttypes.h>
630: #endif
1.37 ohara 631: #ifdef HAVE_STDINT_H
632: # include <stdint.h>
633: #endif
634: #ifdef HAVE_UNISTD_H
1.14 noro 635: # include <unistd.h>
636: #endif"
637:
1.37 ohara 638: ac_subst_vars='SHELL
639: PATH_SEPARATOR
640: PACKAGE_NAME
641: PACKAGE_TARNAME
642: PACKAGE_VERSION
643: PACKAGE_STRING
644: PACKAGE_BUGREPORT
645: exec_prefix
646: prefix
647: program_transform_name
648: bindir
649: sbindir
650: libexecdir
651: datarootdir
652: datadir
653: sysconfdir
654: sharedstatedir
655: localstatedir
656: includedir
657: oldincludedir
658: docdir
659: infodir
660: htmldir
661: dvidir
662: pdfdir
663: psdir
664: libdir
665: localedir
666: mandir
667: DEFS
668: ECHO_C
669: ECHO_N
670: ECHO_T
671: LIBS
672: build_alias
673: host_alias
674: target_alias
675: build
676: build_cpu
677: build_vendor
678: build_os
679: host
680: host_cpu
681: host_vendor
682: host_os
683: target
684: target_cpu
685: target_vendor
686: target_os
687: INSTALL_PROGRAM
688: INSTALL_SCRIPT
689: INSTALL_DATA
690: am__isrc
691: CYGPATH_W
692: PACKAGE
693: VERSION
694: ACLOCAL
695: AUTOCONF
696: AUTOMAKE
697: AUTOHEADER
698: MAKEINFO
699: install_sh
700: STRIP
701: INSTALL_STRIP_PROGRAM
1.43 ohara 702: MKDIR_P
1.37 ohara 703: mkdir_p
704: AWK
705: SET_MAKE
706: am__leading_dot
707: AMTAR
708: am__tar
709: am__untar
710: MAINTAINER_MODE_TRUE
711: MAINTAINER_MODE_FALSE
712: MAINT
713: CC
714: CFLAGS
715: LDFLAGS
716: CPPFLAGS
717: ac_ct_CC
718: EXEEXT
719: OBJEXT
720: DEPDIR
721: am__include
722: am__quote
723: AMDEP_TRUE
724: AMDEP_FALSE
725: AMDEPBACKSLASH
726: CCDEPMODE
727: am__fastdepCC_TRUE
728: am__fastdepCC_FALSE
729: LN_S
730: RANLIB
731: YACC
732: YFLAGS
733: XMKMF
734: CPP
735: X_CFLAGS
736: X_PRE_LIBS
737: X_LIBS
738: X_EXTRA_LIBS
1.43 ohara 739: ASIR_GCLIB
740: GCLIB
741: GCINC
1.37 ohara 742: GC
743: GC_CONFIGURE_ARGS
1.38 ohara 744: USE_GC7_TRUE
745: USE_GC7_FALSE
1.37 ohara 746: GC_DISTDIR
747: PARIINC
748: PARILIB
749: GREP
750: EGREP
751: XPMLIB
752: USE_PLOT_TRUE
753: USE_PLOT_FALSE
754: FEPLIB
755: LAPACKLIB
756: libasir_postfix
757: USE_GC_SPARC64
758: asm_obj
759: LIBOBJS
760: LTLIBOBJS'
1.32 noro 761: ac_subst_files=''
1.43 ohara 762: ac_user_opts='
763: enable_option_checking
764: enable_maintainer_mode
765: enable_dependency_tracking
766: with_x
767: enable_shared
768: with_asir_gc
769: with_gc7
770: with_distdir
771: with_pari
772: enable_plot
773: enable_interval
774: enable_fft_float
1.45 ohara 775: with_mpi
1.43 ohara 776: '
1.37 ohara 777: ac_precious_vars='build_alias
778: host_alias
779: target_alias
780: CC
781: CFLAGS
782: LDFLAGS
783: LIBS
784: CPPFLAGS
785: YACC
786: YFLAGS
787: XMKMF
788: CPP'
789:
1.14 noro 790:
791: # Initialize some variables set by options.
792: ac_init_help=
793: ac_init_version=false
1.43 ohara 794: ac_unrecognized_opts=
795: ac_unrecognized_sep=
1.14 noro 796: # The variables have the same names as the options, with
797: # dashes changed to underlines.
798: cache_file=/dev/null
799: exec_prefix=NONE
800: no_create=
801: no_recursion=
802: prefix=NONE
803: program_prefix=NONE
804: program_suffix=NONE
805: program_transform_name=s,x,x,
806: silent=
807: site=
808: srcdir=
809: verbose=
810: x_includes=NONE
811: x_libraries=NONE
812:
813: # Installation directory options.
814: # These are left unexpanded so users can "make install exec_prefix=/foo"
815: # and all the variables that are supposed to be based on exec_prefix
816: # by default will actually change.
817: # Use braces instead of parens because sh, perl, etc. also accept them.
1.37 ohara 818: # (The list follows the same order as the GNU Coding Standards.)
1.14 noro 819: bindir='${exec_prefix}/bin'
820: sbindir='${exec_prefix}/sbin'
821: libexecdir='${exec_prefix}/libexec'
1.37 ohara 822: datarootdir='${prefix}/share'
823: datadir='${datarootdir}'
1.14 noro 824: sysconfdir='${prefix}/etc'
825: sharedstatedir='${prefix}/com'
826: localstatedir='${prefix}/var'
827: includedir='${prefix}/include'
828: oldincludedir='/usr/include'
1.37 ohara 829: docdir='${datarootdir}/doc/${PACKAGE}'
830: infodir='${datarootdir}/info'
831: htmldir='${docdir}'
832: dvidir='${docdir}'
833: pdfdir='${docdir}'
834: psdir='${docdir}'
835: libdir='${exec_prefix}/lib'
836: localedir='${datarootdir}/locale'
837: mandir='${datarootdir}/man'
1.14 noro 838:
839: ac_prev=
1.37 ohara 840: ac_dashdash=
1.14 noro 841: for ac_option
842: do
843: # If the previous option needs an argument, assign it.
844: if test -n "$ac_prev"; then
1.37 ohara 845: eval $ac_prev=\$ac_option
1.14 noro 846: ac_prev=
847: continue
848: fi
849:
1.37 ohara 850: case $ac_option in
851: *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
852: *) ac_optarg=yes ;;
853: esac
1.14 noro 854:
855: # Accept the important Cygnus configure options, so we can diagnose typos.
856:
1.37 ohara 857: case $ac_dashdash$ac_option in
858: --)
859: ac_dashdash=yes ;;
1.14 noro 860:
861: -bindir | --bindir | --bindi | --bind | --bin | --bi)
862: ac_prev=bindir ;;
863: -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
864: bindir=$ac_optarg ;;
865:
866: -build | --build | --buil | --bui | --bu)
867: ac_prev=build_alias ;;
868: -build=* | --build=* | --buil=* | --bui=* | --bu=*)
869: build_alias=$ac_optarg ;;
870:
871: -cache-file | --cache-file | --cache-fil | --cache-fi \
872: | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
873: ac_prev=cache_file ;;
874: -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
875: | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
876: cache_file=$ac_optarg ;;
877:
878: --config-cache | -C)
879: cache_file=config.cache ;;
880:
1.37 ohara 881: -datadir | --datadir | --datadi | --datad)
1.14 noro 882: ac_prev=datadir ;;
1.37 ohara 883: -datadir=* | --datadir=* | --datadi=* | --datad=*)
1.14 noro 884: datadir=$ac_optarg ;;
885:
1.37 ohara 886: -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
887: | --dataroo | --dataro | --datar)
888: ac_prev=datarootdir ;;
889: -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
890: | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
891: datarootdir=$ac_optarg ;;
892:
1.14 noro 893: -disable-* | --disable-*)
1.43 ohara 894: ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1.14 noro 895: # Reject names that are not valid shell variable names.
1.43 ohara 896: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
897: { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1.14 noro 898: { (exit 1); exit 1; }; }
1.43 ohara 899: ac_useropt_orig=$ac_useropt
900: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
901: case $ac_user_opts in
902: *"
903: "enable_$ac_useropt"
904: "*) ;;
905: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
906: ac_unrecognized_sep=', ';;
907: esac
908: eval enable_$ac_useropt=no ;;
1.37 ohara 909:
910: -docdir | --docdir | --docdi | --doc | --do)
911: ac_prev=docdir ;;
912: -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
913: docdir=$ac_optarg ;;
914:
915: -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
916: ac_prev=dvidir ;;
917: -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
918: dvidir=$ac_optarg ;;
1.14 noro 919:
920: -enable-* | --enable-*)
1.43 ohara 921: ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1.14 noro 922: # Reject names that are not valid shell variable names.
1.43 ohara 923: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
924: { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1.14 noro 925: { (exit 1); exit 1; }; }
1.43 ohara 926: ac_useropt_orig=$ac_useropt
927: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
928: case $ac_user_opts in
929: *"
930: "enable_$ac_useropt"
931: "*) ;;
932: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
933: ac_unrecognized_sep=', ';;
934: esac
935: eval enable_$ac_useropt=\$ac_optarg ;;
1.14 noro 936:
937: -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
938: | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
939: | --exec | --exe | --ex)
940: ac_prev=exec_prefix ;;
941: -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
942: | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
943: | --exec=* | --exe=* | --ex=*)
944: exec_prefix=$ac_optarg ;;
945:
946: -gas | --gas | --ga | --g)
947: # Obsolete; use --with-gas.
948: with_gas=yes ;;
949:
950: -help | --help | --hel | --he | -h)
951: ac_init_help=long ;;
952: -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
953: ac_init_help=recursive ;;
954: -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
955: ac_init_help=short ;;
956:
957: -host | --host | --hos | --ho)
958: ac_prev=host_alias ;;
959: -host=* | --host=* | --hos=* | --ho=*)
960: host_alias=$ac_optarg ;;
961:
1.37 ohara 962: -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
963: ac_prev=htmldir ;;
964: -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
965: | --ht=*)
966: htmldir=$ac_optarg ;;
967:
1.14 noro 968: -includedir | --includedir | --includedi | --included | --include \
969: | --includ | --inclu | --incl | --inc)
970: ac_prev=includedir ;;
971: -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
972: | --includ=* | --inclu=* | --incl=* | --inc=*)
973: includedir=$ac_optarg ;;
974:
975: -infodir | --infodir | --infodi | --infod | --info | --inf)
976: ac_prev=infodir ;;
977: -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
978: infodir=$ac_optarg ;;
979:
980: -libdir | --libdir | --libdi | --libd)
981: ac_prev=libdir ;;
982: -libdir=* | --libdir=* | --libdi=* | --libd=*)
983: libdir=$ac_optarg ;;
984:
985: -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
986: | --libexe | --libex | --libe)
987: ac_prev=libexecdir ;;
988: -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
989: | --libexe=* | --libex=* | --libe=*)
990: libexecdir=$ac_optarg ;;
991:
1.37 ohara 992: -localedir | --localedir | --localedi | --localed | --locale)
993: ac_prev=localedir ;;
994: -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
995: localedir=$ac_optarg ;;
996:
1.14 noro 997: -localstatedir | --localstatedir | --localstatedi | --localstated \
1.37 ohara 998: | --localstate | --localstat | --localsta | --localst | --locals)
1.14 noro 999: ac_prev=localstatedir ;;
1000: -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1.37 ohara 1001: | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1.14 noro 1002: localstatedir=$ac_optarg ;;
1003:
1004: -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1005: ac_prev=mandir ;;
1006: -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1007: mandir=$ac_optarg ;;
1008:
1009: -nfp | --nfp | --nf)
1010: # Obsolete; use --without-fp.
1011: with_fp=no ;;
1012:
1013: -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1014: | --no-cr | --no-c | -n)
1015: no_create=yes ;;
1016:
1017: -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1018: | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1019: no_recursion=yes ;;
1020:
1021: -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1022: | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1023: | --oldin | --oldi | --old | --ol | --o)
1024: ac_prev=oldincludedir ;;
1025: -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1026: | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1027: | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1028: oldincludedir=$ac_optarg ;;
1029:
1030: -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1031: ac_prev=prefix ;;
1032: -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1033: prefix=$ac_optarg ;;
1034:
1035: -program-prefix | --program-prefix | --program-prefi | --program-pref \
1036: | --program-pre | --program-pr | --program-p)
1037: ac_prev=program_prefix ;;
1038: -program-prefix=* | --program-prefix=* | --program-prefi=* \
1039: | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1040: program_prefix=$ac_optarg ;;
1041:
1042: -program-suffix | --program-suffix | --program-suffi | --program-suff \
1043: | --program-suf | --program-su | --program-s)
1044: ac_prev=program_suffix ;;
1045: -program-suffix=* | --program-suffix=* | --program-suffi=* \
1046: | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1047: program_suffix=$ac_optarg ;;
1048:
1049: -program-transform-name | --program-transform-name \
1050: | --program-transform-nam | --program-transform-na \
1051: | --program-transform-n | --program-transform- \
1052: | --program-transform | --program-transfor \
1053: | --program-transfo | --program-transf \
1054: | --program-trans | --program-tran \
1055: | --progr-tra | --program-tr | --program-t)
1056: ac_prev=program_transform_name ;;
1057: -program-transform-name=* | --program-transform-name=* \
1058: | --program-transform-nam=* | --program-transform-na=* \
1059: | --program-transform-n=* | --program-transform-=* \
1060: | --program-transform=* | --program-transfor=* \
1061: | --program-transfo=* | --program-transf=* \
1062: | --program-trans=* | --program-tran=* \
1063: | --progr-tra=* | --program-tr=* | --program-t=*)
1064: program_transform_name=$ac_optarg ;;
1065:
1.37 ohara 1066: -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1067: ac_prev=pdfdir ;;
1068: -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1069: pdfdir=$ac_optarg ;;
1070:
1071: -psdir | --psdir | --psdi | --psd | --ps)
1072: ac_prev=psdir ;;
1073: -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1074: psdir=$ac_optarg ;;
1075:
1.14 noro 1076: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1077: | -silent | --silent | --silen | --sile | --sil)
1078: silent=yes ;;
1079:
1080: -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1081: ac_prev=sbindir ;;
1082: -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1083: | --sbi=* | --sb=*)
1084: sbindir=$ac_optarg ;;
1085:
1086: -sharedstatedir | --sharedstatedir | --sharedstatedi \
1087: | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1088: | --sharedst | --shareds | --shared | --share | --shar \
1089: | --sha | --sh)
1090: ac_prev=sharedstatedir ;;
1091: -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1092: | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1093: | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1094: | --sha=* | --sh=*)
1095: sharedstatedir=$ac_optarg ;;
1096:
1097: -site | --site | --sit)
1098: ac_prev=site ;;
1099: -site=* | --site=* | --sit=*)
1100: site=$ac_optarg ;;
1101:
1102: -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1103: ac_prev=srcdir ;;
1104: -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1105: srcdir=$ac_optarg ;;
1106:
1107: -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1108: | --syscon | --sysco | --sysc | --sys | --sy)
1109: ac_prev=sysconfdir ;;
1110: -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1111: | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1112: sysconfdir=$ac_optarg ;;
1113:
1114: -target | --target | --targe | --targ | --tar | --ta | --t)
1115: ac_prev=target_alias ;;
1116: -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1117: target_alias=$ac_optarg ;;
1118:
1119: -v | -verbose | --verbose | --verbos | --verbo | --verb)
1120: verbose=yes ;;
1121:
1122: -version | --version | --versio | --versi | --vers | -V)
1123: ac_init_version=: ;;
1124:
1125: -with-* | --with-*)
1.43 ohara 1126: ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1.14 noro 1127: # Reject names that are not valid shell variable names.
1.43 ohara 1128: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1129: { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1.14 noro 1130: { (exit 1); exit 1; }; }
1.43 ohara 1131: ac_useropt_orig=$ac_useropt
1132: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1133: case $ac_user_opts in
1134: *"
1135: "with_$ac_useropt"
1136: "*) ;;
1137: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1138: ac_unrecognized_sep=', ';;
1139: esac
1140: eval with_$ac_useropt=\$ac_optarg ;;
1.14 noro 1141:
1142: -without-* | --without-*)
1.43 ohara 1143: ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1.14 noro 1144: # Reject names that are not valid shell variable names.
1.43 ohara 1145: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1146: { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1.14 noro 1147: { (exit 1); exit 1; }; }
1.43 ohara 1148: ac_useropt_orig=$ac_useropt
1149: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1150: case $ac_user_opts in
1151: *"
1152: "with_$ac_useropt"
1153: "*) ;;
1154: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1155: ac_unrecognized_sep=', ';;
1156: esac
1157: eval with_$ac_useropt=no ;;
1.14 noro 1158:
1159: --x)
1160: # Obsolete; use --with-x.
1161: with_x=yes ;;
1162:
1163: -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1164: | --x-incl | --x-inc | --x-in | --x-i)
1165: ac_prev=x_includes ;;
1166: -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1167: | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1168: x_includes=$ac_optarg ;;
1169:
1170: -x-libraries | --x-libraries | --x-librarie | --x-librari \
1171: | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1172: ac_prev=x_libraries ;;
1173: -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1174: | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1175: x_libraries=$ac_optarg ;;
1176:
1.43 ohara 1177: -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1.14 noro 1178: Try \`$0 --help' for more information." >&2
1179: { (exit 1); exit 1; }; }
1180: ;;
1181:
1182: *=*)
1183: ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1184: # Reject names that are not valid shell variable names.
1185: expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1.43 ohara 1186: { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1.14 noro 1187: { (exit 1); exit 1; }; }
1.37 ohara 1188: eval $ac_envvar=\$ac_optarg
1.14 noro 1189: export $ac_envvar ;;
1190:
1191: *)
1192: # FIXME: should be removed in autoconf 3.0.
1.43 ohara 1193: $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1.14 noro 1194: expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1.43 ohara 1195: $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1.14 noro 1196: : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1197: ;;
1198:
1199: esac
1200: done
1201:
1202: if test -n "$ac_prev"; then
1203: ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1.43 ohara 1204: { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1.14 noro 1205: { (exit 1); exit 1; }; }
1206: fi
1207:
1.43 ohara 1208: if test -n "$ac_unrecognized_opts"; then
1209: case $enable_option_checking in
1210: no) ;;
1211: fatal) { $as_echo "$as_me: error: Unrecognized options: $ac_unrecognized_opts" >&2
1212: { (exit 1); exit 1; }; } ;;
1213: *) $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2 ;;
1214: esac
1215: fi
1216:
1217: # Check all directory arguments for consistency.
1.37 ohara 1218: for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1219: datadir sysconfdir sharedstatedir localstatedir includedir \
1220: oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1221: libdir localedir mandir
1.14 noro 1222: do
1.37 ohara 1223: eval ac_val=\$$ac_var
1.43 ohara 1224: # Remove trailing slashes.
1225: case $ac_val in
1226: */ )
1227: ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1228: eval $ac_var=\$ac_val;;
1229: esac
1230: # Be sure to have absolute directory names.
1.14 noro 1231: case $ac_val in
1.37 ohara 1232: [\\/$]* | ?:[\\/]* ) continue;;
1233: NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1.14 noro 1234: esac
1.43 ohara 1235: { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1.37 ohara 1236: { (exit 1); exit 1; }; }
1.14 noro 1237: done
1238:
1239: # There might be people who depend on the old broken behavior: `$host'
1240: # used to hold the argument of --host etc.
1241: # FIXME: To remove some day.
1242: build=$build_alias
1243: host=$host_alias
1244: target=$target_alias
1245:
1246: # FIXME: To remove some day.
1247: if test "x$host_alias" != x; then
1248: if test "x$build_alias" = x; then
1249: cross_compiling=maybe
1.43 ohara 1250: $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1.14 noro 1251: If a cross compiler is detected then cross compile mode will be used." >&2
1252: elif test "x$build_alias" != "x$host_alias"; then
1253: cross_compiling=yes
1254: fi
1255: fi
1256:
1257: ac_tool_prefix=
1258: test -n "$host_alias" && ac_tool_prefix=$host_alias-
1259:
1260: test "$silent" = yes && exec 6>/dev/null
1261:
1262:
1.37 ohara 1263: ac_pwd=`pwd` && test -n "$ac_pwd" &&
1264: ac_ls_di=`ls -di .` &&
1265: ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1.43 ohara 1266: { $as_echo "$as_me: error: Working directory cannot be determined" >&2
1.37 ohara 1267: { (exit 1); exit 1; }; }
1268: test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1.43 ohara 1269: { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1.37 ohara 1270: { (exit 1); exit 1; }; }
1271:
1272:
1.14 noro 1273: # Find the source files, if location was not specified.
1274: if test -z "$srcdir"; then
1275: ac_srcdir_defaulted=yes
1.37 ohara 1276: # Try the directory containing this script, then the parent directory.
1.43 ohara 1277: ac_confdir=`$as_dirname -- "$as_myself" ||
1278: $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1279: X"$as_myself" : 'X\(//\)[^/]' \| \
1280: X"$as_myself" : 'X\(//\)$' \| \
1281: X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1282: $as_echo X"$as_myself" |
1.37 ohara 1283: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1284: s//\1/
1285: q
1286: }
1287: /^X\(\/\/\)[^/].*/{
1288: s//\1/
1289: q
1290: }
1291: /^X\(\/\/\)$/{
1292: s//\1/
1293: q
1294: }
1295: /^X\(\/\).*/{
1296: s//\1/
1297: q
1298: }
1299: s/.*/./; q'`
1.14 noro 1300: srcdir=$ac_confdir
1.37 ohara 1301: if test ! -r "$srcdir/$ac_unique_file"; then
1.14 noro 1302: srcdir=..
1303: fi
1304: else
1305: ac_srcdir_defaulted=no
1306: fi
1.37 ohara 1307: if test ! -r "$srcdir/$ac_unique_file"; then
1308: test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1.43 ohara 1309: { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1.14 noro 1310: { (exit 1); exit 1; }; }
1311: fi
1.37 ohara 1312: ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1313: ac_abs_confdir=`(
1.43 ohara 1314: cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1.32 noro 1315: { (exit 1); exit 1; }; }
1.37 ohara 1316: pwd)`
1317: # When building in place, set srcdir=.
1318: if test "$ac_abs_confdir" = "$ac_pwd"; then
1319: srcdir=.
1320: fi
1321: # Remove unnecessary trailing slashes from srcdir.
1322: # Double slashes in file names in object file debugging info
1323: # mess up M-x gdb in Emacs.
1324: case $srcdir in
1325: */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1326: esac
1327: for ac_var in $ac_precious_vars; do
1328: eval ac_env_${ac_var}_set=\${${ac_var}+set}
1329: eval ac_env_${ac_var}_value=\$${ac_var}
1330: eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1331: eval ac_cv_env_${ac_var}_value=\$${ac_var}
1332: done
1.14 noro 1333:
1334: #
1335: # Report the --help message.
1336: #
1337: if test "$ac_init_help" = "long"; then
1338: # Omit some internal or obsolete options to make the list less imposing.
1339: # This message is too long to be a string in the A/UX 3.1 sh.
1340: cat <<_ACEOF
1341: \`configure' configures this package to adapt to many kinds of systems.
1342:
1343: Usage: $0 [OPTION]... [VAR=VALUE]...
1344:
1345: To assign environment variables (e.g., CC, CFLAGS...), specify them as
1346: VAR=VALUE. See below for descriptions of some of the useful variables.
1347:
1348: Defaults for the options are specified in brackets.
1349:
1350: Configuration:
1351: -h, --help display this help and exit
1352: --help=short display options specific to this package
1353: --help=recursive display the short help of all the included packages
1354: -V, --version display version information and exit
1355: -q, --quiet, --silent do not print \`checking...' messages
1356: --cache-file=FILE cache test results in FILE [disabled]
1357: -C, --config-cache alias for \`--cache-file=config.cache'
1358: -n, --no-create do not create output files
1359: --srcdir=DIR find the sources in DIR [configure dir or \`..']
1360:
1361: Installation directories:
1362: --prefix=PREFIX install architecture-independent files in PREFIX
1.43 ohara 1363: [$ac_default_prefix]
1.14 noro 1364: --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1.43 ohara 1365: [PREFIX]
1.14 noro 1366:
1367: By default, \`make install' will install all the files in
1368: \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1369: an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1370: for instance \`--prefix=\$HOME'.
1371:
1372: For better control, use the options below.
1373:
1374: Fine tuning of the installation directories:
1.43 ohara 1375: --bindir=DIR user executables [EPREFIX/bin]
1376: --sbindir=DIR system admin executables [EPREFIX/sbin]
1377: --libexecdir=DIR program executables [EPREFIX/libexec]
1378: --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1379: --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1380: --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1381: --libdir=DIR object code libraries [EPREFIX/lib]
1382: --includedir=DIR C header files [PREFIX/include]
1383: --oldincludedir=DIR C header files for non-gcc [/usr/include]
1384: --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1385: --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1386: --infodir=DIR info documentation [DATAROOTDIR/info]
1387: --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1388: --mandir=DIR man documentation [DATAROOTDIR/man]
1389: --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1390: --htmldir=DIR html documentation [DOCDIR]
1391: --dvidir=DIR dvi documentation [DOCDIR]
1392: --pdfdir=DIR pdf documentation [DOCDIR]
1393: --psdir=DIR ps documentation [DOCDIR]
1.14 noro 1394: _ACEOF
1395:
1396: cat <<\_ACEOF
1397:
1398: Program names:
1399: --program-prefix=PREFIX prepend PREFIX to installed program names
1400: --program-suffix=SUFFIX append SUFFIX to installed program names
1401: --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1402:
1403: X features:
1404: --x-includes=DIR X include files are in DIR
1405: --x-libraries=DIR X library files are in DIR
1406:
1407: System types:
1408: --build=BUILD configure for building on BUILD [guessed]
1409: --host=HOST cross-compile to build programs to run on HOST [BUILD]
1410: --target=TARGET configure for building compilers for TARGET [HOST]
1411: _ACEOF
1412: fi
1413:
1414: if test -n "$ac_init_help"; then
1415:
1416: cat <<\_ACEOF
1417:
1418: Optional Features:
1.43 ohara 1419: --disable-option-checking ignore unrecognized --enable/--with options
1.14 noro 1420: --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1421: --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1.37 ohara 1422: --enable-maintainer-mode enable make rules and dependencies not useful
1423: (and sometimes confusing) to the casual installer
1424: --disable-dependency-tracking speeds up one-time build
1425: --enable-dependency-tracking do not reject slow dependency extractors
1.14 noro 1426: --enable-shared enable linking shared libraries. [no]
1427: --enable-plot enable plot feature. [no]
1428: --enable-interval enable interval feature. [no]
1429: --enable-fft-float enable FFT-FLOAT feature. [no]
1430:
1431: Optional Packages:
1432: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1433: --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1434: --with-x use the X Window System
1.43 ohara 1435: --with-asir-gc modify Boehm's GC [yes]
1436: --with-gc7 use GC 7.x (if --with-asir-gc=yes) [no]
1.35 ohara 1437: --with-distdir specify the spool for fetching. [no]
1.14 noro 1438: --with-pari use the PARI library. [no]
1.45 ohara 1439: --with-mpi use the MPI library. [no]
1.14 noro 1440:
1441: Some influential environment variables:
1442: CC C compiler command
1443: CFLAGS C compiler flags
1444: LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1445: nonstandard directory <lib dir>
1.37 ohara 1446: LIBS libraries to pass to the linker, e.g. -l<library>
1447: CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1448: you have headers in a nonstandard directory <include dir>
1449: YACC The `Yet Another C Compiler' implementation to use. Defaults to
1450: the first program found out of: `bison -y', `byacc', `yacc'.
1451: YFLAGS The list of arguments that will be passed by default to $YACC.
1452: This script will default YFLAGS to the empty string to avoid a
1453: default value of `-d' given by some make applications.
1454: XMKMF Path to xmkmf, Makefile generator for X Window System
1.14 noro 1455: CPP C preprocessor
1456:
1457: Use these variables to override the choices made by `configure' or to help
1458: it to find libraries and programs with nonstandard names/locations.
1459:
1460: _ACEOF
1.37 ohara 1461: ac_status=$?
1.14 noro 1462: fi
1463:
1464: if test "$ac_init_help" = "recursive"; then
1465: # If there are subdirs, report their specific --help.
1466: for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1.43 ohara 1467: test -d "$ac_dir" ||
1468: { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1469: continue
1.14 noro 1470: ac_builddir=.
1471:
1.37 ohara 1472: case "$ac_dir" in
1473: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1474: *)
1.43 ohara 1475: ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1.37 ohara 1476: # A ".." for each directory in $ac_dir_suffix.
1.43 ohara 1477: ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1.37 ohara 1478: case $ac_top_builddir_sub in
1479: "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1480: *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1481: esac ;;
1482: esac
1483: ac_abs_top_builddir=$ac_pwd
1484: ac_abs_builddir=$ac_pwd$ac_dir_suffix
1485: # for backward compatibility:
1486: ac_top_builddir=$ac_top_build_prefix
1.14 noro 1487:
1488: case $srcdir in
1.37 ohara 1489: .) # We are building in place.
1.14 noro 1490: ac_srcdir=.
1.37 ohara 1491: ac_top_srcdir=$ac_top_builddir_sub
1492: ac_abs_top_srcdir=$ac_pwd ;;
1493: [\\/]* | ?:[\\/]* ) # Absolute name.
1.14 noro 1494: ac_srcdir=$srcdir$ac_dir_suffix;
1.37 ohara 1495: ac_top_srcdir=$srcdir
1496: ac_abs_top_srcdir=$srcdir ;;
1497: *) # Relative name.
1498: ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1499: ac_top_srcdir=$ac_top_build_prefix$srcdir
1500: ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1.32 noro 1501: esac
1.37 ohara 1502: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1.14 noro 1503:
1.37 ohara 1504: cd "$ac_dir" || { ac_status=$?; continue; }
1505: # Check for guested configure.
1506: if test -f "$ac_srcdir/configure.gnu"; then
1507: echo &&
1508: $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1509: elif test -f "$ac_srcdir/configure"; then
1510: echo &&
1511: $SHELL "$ac_srcdir/configure" --help=recursive
1.14 noro 1512: else
1.43 ohara 1513: $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1.37 ohara 1514: fi || ac_status=$?
1515: cd "$ac_pwd" || { ac_status=$?; break; }
1.14 noro 1516: done
1517: fi
1518:
1.37 ohara 1519: test -n "$ac_init_help" && exit $ac_status
1.14 noro 1520: if $ac_init_version; then
1521: cat <<\_ACEOF
1.37 ohara 1522: configure
1.43 ohara 1523: generated by GNU Autoconf 2.62
1.14 noro 1524:
1.37 ohara 1525: Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1.43 ohara 1526: 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1.14 noro 1527: This configure script is free software; the Free Software Foundation
1528: gives unlimited permission to copy, distribute and modify it.
1529: _ACEOF
1.37 ohara 1530: exit
1.14 noro 1531: fi
1.37 ohara 1532: cat >config.log <<_ACEOF
1.14 noro 1533: This file contains any messages produced by compilers while
1534: running configure, to aid debugging if configure makes a mistake.
1535:
1536: It was created by $as_me, which was
1.43 ohara 1537: generated by GNU Autoconf 2.62. Invocation command line was
1.14 noro 1538:
1539: $ $0 $@
1540:
1541: _ACEOF
1.37 ohara 1542: exec 5>>config.log
1.14 noro 1543: {
1544: cat <<_ASUNAME
1545: ## --------- ##
1546: ## Platform. ##
1547: ## --------- ##
1548:
1549: hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1550: uname -m = `(uname -m) 2>/dev/null || echo unknown`
1551: uname -r = `(uname -r) 2>/dev/null || echo unknown`
1552: uname -s = `(uname -s) 2>/dev/null || echo unknown`
1553: uname -v = `(uname -v) 2>/dev/null || echo unknown`
1554:
1555: /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1556: /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1557:
1558: /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1559: /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1560: /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1.37 ohara 1561: /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1.14 noro 1562: /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1563: /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1564: /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1565:
1566: _ASUNAME
1567:
1568: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1569: for as_dir in $PATH
1570: do
1571: IFS=$as_save_IFS
1572: test -z "$as_dir" && as_dir=.
1.43 ohara 1573: $as_echo "PATH: $as_dir"
1.14 noro 1574: done
1.37 ohara 1575: IFS=$as_save_IFS
1.14 noro 1576:
1577: } >&5
1578:
1579: cat >&5 <<_ACEOF
1580:
1581:
1582: ## ----------- ##
1583: ## Core tests. ##
1584: ## ----------- ##
1585:
1586: _ACEOF
1587:
1588:
1589: # Keep a trace of the command line.
1590: # Strip out --no-create and --no-recursion so they do not pile up.
1.32 noro 1591: # Strip out --silent because we don't want to record it for future runs.
1.14 noro 1592: # Also quote any args containing shell meta-characters.
1.32 noro 1593: # Make two passes to allow for proper duplicate-argument suppression.
1.14 noro 1594: ac_configure_args=
1.32 noro 1595: ac_configure_args0=
1596: ac_configure_args1=
1597: ac_must_keep_next=false
1598: for ac_pass in 1 2
1.14 noro 1599: do
1.32 noro 1600: for ac_arg
1601: do
1602: case $ac_arg in
1603: -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1604: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1605: | -silent | --silent | --silen | --sile | --sil)
1606: continue ;;
1.37 ohara 1607: *\'*)
1.43 ohara 1608: ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1.32 noro 1609: esac
1610: case $ac_pass in
1611: 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1612: 2)
1613: ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1614: if test $ac_must_keep_next = true; then
1615: ac_must_keep_next=false # Got value, back to normal.
1616: else
1617: case $ac_arg in
1618: *=* | --config-cache | -C | -disable-* | --disable-* \
1619: | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1620: | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1621: | -with-* | --with-* | -without-* | --without-* | --x)
1622: case "$ac_configure_args0 " in
1623: "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1624: esac
1625: ;;
1626: -* ) ac_must_keep_next=true ;;
1627: esac
1628: fi
1.37 ohara 1629: ac_configure_args="$ac_configure_args '$ac_arg'"
1.32 noro 1630: ;;
1631: esac
1632: done
1.14 noro 1633: done
1.32 noro 1634: $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1635: $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1.14 noro 1636:
1637: # When interrupted or exit'd, cleanup temporary files, and complete
1638: # config.log. We remove comments because anyway the quotes in there
1639: # would cause problems or look ugly.
1.37 ohara 1640: # WARNING: Use '\'' to represent an apostrophe within the trap.
1641: # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1.14 noro 1642: trap 'exit_status=$?
1643: # Save into config.log some information that might help in debugging.
1644: {
1645: echo
1.32 noro 1646:
1.14 noro 1647: cat <<\_ASBOX
1648: ## ---------------- ##
1649: ## Cache variables. ##
1650: ## ---------------- ##
1651: _ASBOX
1652: echo
1653: # The following way of writing the cache mishandles newlines in values,
1.37 ohara 1654: (
1655: for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1656: eval ac_val=\$$ac_var
1657: case $ac_val in #(
1658: *${as_nl}*)
1659: case $ac_var in #(
1.43 ohara 1660: *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1661: $as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1.37 ohara 1662: esac
1663: case $ac_var in #(
1664: _ | IFS | as_nl) ;; #(
1.43 ohara 1665: BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1.37 ohara 1666: *) $as_unset $ac_var ;;
1667: esac ;;
1668: esac
1669: done
1.14 noro 1670: (set) 2>&1 |
1.37 ohara 1671: case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1672: *${as_nl}ac_space=\ *)
1.14 noro 1673: sed -n \
1.37 ohara 1674: "s/'\''/'\''\\\\'\'''\''/g;
1675: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1676: ;; #(
1.14 noro 1677: *)
1.37 ohara 1678: sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1.14 noro 1679: ;;
1.37 ohara 1680: esac |
1681: sort
1682: )
1.14 noro 1683: echo
1.32 noro 1684:
1685: cat <<\_ASBOX
1686: ## ----------------- ##
1687: ## Output variables. ##
1688: ## ----------------- ##
1689: _ASBOX
1690: echo
1691: for ac_var in $ac_subst_vars
1692: do
1.37 ohara 1693: eval ac_val=\$$ac_var
1694: case $ac_val in
1.43 ohara 1695: *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1.37 ohara 1696: esac
1.43 ohara 1697: $as_echo "$ac_var='\''$ac_val'\''"
1.32 noro 1698: done | sort
1699: echo
1700:
1701: if test -n "$ac_subst_files"; then
1702: cat <<\_ASBOX
1.37 ohara 1703: ## ------------------- ##
1704: ## File substitutions. ##
1705: ## ------------------- ##
1.32 noro 1706: _ASBOX
1707: echo
1708: for ac_var in $ac_subst_files
1709: do
1.37 ohara 1710: eval ac_val=\$$ac_var
1711: case $ac_val in
1.43 ohara 1712: *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1.37 ohara 1713: esac
1.43 ohara 1714: $as_echo "$ac_var='\''$ac_val'\''"
1.32 noro 1715: done | sort
1716: echo
1717: fi
1718:
1.14 noro 1719: if test -s confdefs.h; then
1720: cat <<\_ASBOX
1721: ## ----------- ##
1722: ## confdefs.h. ##
1723: ## ----------- ##
1724: _ASBOX
1725: echo
1.37 ohara 1726: cat confdefs.h
1.14 noro 1727: echo
1728: fi
1729: test "$ac_signal" != 0 &&
1.43 ohara 1730: $as_echo "$as_me: caught signal $ac_signal"
1731: $as_echo "$as_me: exit $exit_status"
1.14 noro 1732: } >&5
1.37 ohara 1733: rm -f core *.core core.conftest.* &&
1734: rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1.14 noro 1735: exit $exit_status
1.37 ohara 1736: ' 0
1.14 noro 1737: for ac_signal in 1 2 13 15; do
1738: trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1739: done
1740: ac_signal=0
1741:
1742: # confdefs.h avoids OS command line length limits that DEFS can exceed.
1.37 ohara 1743: rm -f -r conftest* confdefs.h
1.14 noro 1744:
1745: # Predefined preprocessor variables.
1746:
1747: cat >>confdefs.h <<_ACEOF
1748: #define PACKAGE_NAME "$PACKAGE_NAME"
1749: _ACEOF
1750:
1751:
1752: cat >>confdefs.h <<_ACEOF
1753: #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1754: _ACEOF
1755:
1756:
1757: cat >>confdefs.h <<_ACEOF
1758: #define PACKAGE_VERSION "$PACKAGE_VERSION"
1759: _ACEOF
1760:
1761:
1762: cat >>confdefs.h <<_ACEOF
1763: #define PACKAGE_STRING "$PACKAGE_STRING"
1764: _ACEOF
1765:
1766:
1767: cat >>confdefs.h <<_ACEOF
1768: #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1769: _ACEOF
1770:
1771:
1772: # Let the site file select an alternate cache file if it wants to.
1.43 ohara 1773: # Prefer an explicitly selected file to automatically selected ones.
1774: ac_site_file1=NONE
1775: ac_site_file2=NONE
1.37 ohara 1776: if test -n "$CONFIG_SITE"; then
1.43 ohara 1777: ac_site_file1=$CONFIG_SITE
1.37 ohara 1778: elif test "x$prefix" != xNONE; then
1.43 ohara 1779: ac_site_file1=$prefix/share/config.site
1780: ac_site_file2=$prefix/etc/config.site
1.37 ohara 1781: else
1.43 ohara 1782: ac_site_file1=$ac_default_prefix/share/config.site
1783: ac_site_file2=$ac_default_prefix/etc/config.site
1.14 noro 1784: fi
1.43 ohara 1785: for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1.37 ohara 1786: do
1.43 ohara 1787: test "x$ac_site_file" = xNONE && continue
1.14 noro 1788: if test -r "$ac_site_file"; then
1.43 ohara 1789: { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1790: $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1.14 noro 1791: sed 's/^/| /' "$ac_site_file" >&5
1792: . "$ac_site_file"
1793: fi
1794: done
1795:
1796: if test -r "$cache_file"; then
1797: # Some versions of bash will fail to source /dev/null (special
1798: # files actually), so we avoid doing that.
1799: if test -f "$cache_file"; then
1.43 ohara 1800: { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1801: $as_echo "$as_me: loading cache $cache_file" >&6;}
1.14 noro 1802: case $cache_file in
1.37 ohara 1803: [\\/]* | ?:[\\/]* ) . "$cache_file";;
1804: *) . "./$cache_file";;
1.14 noro 1805: esac
1806: fi
1807: else
1.43 ohara 1808: { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1809: $as_echo "$as_me: creating cache $cache_file" >&6;}
1.14 noro 1810: >$cache_file
1811: fi
1812:
1813: # Check that the precious variables saved in the cache have kept the same
1814: # value.
1815: ac_cache_corrupted=false
1.37 ohara 1816: for ac_var in $ac_precious_vars; do
1.14 noro 1817: eval ac_old_set=\$ac_cv_env_${ac_var}_set
1818: eval ac_new_set=\$ac_env_${ac_var}_set
1.37 ohara 1819: eval ac_old_val=\$ac_cv_env_${ac_var}_value
1820: eval ac_new_val=\$ac_env_${ac_var}_value
1.14 noro 1821: case $ac_old_set,$ac_new_set in
1822: set,)
1.43 ohara 1823: { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1824: $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1.14 noro 1825: ac_cache_corrupted=: ;;
1826: ,set)
1.43 ohara 1827: { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1828: $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1.14 noro 1829: ac_cache_corrupted=: ;;
1830: ,);;
1831: *)
1832: if test "x$ac_old_val" != "x$ac_new_val"; then
1.43 ohara 1833: # differences in whitespace do not lead to failure.
1834: ac_old_val_w=`echo x $ac_old_val`
1835: ac_new_val_w=`echo x $ac_new_val`
1836: if test "$ac_old_val_w" != "$ac_new_val_w"; then
1837: { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1838: $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1839: ac_cache_corrupted=:
1840: else
1841: { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1842: $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1843: eval $ac_var=\$ac_old_val
1844: fi
1845: { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1846: $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1847: { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1848: $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1.14 noro 1849: fi;;
1850: esac
1851: # Pass precious variables to config.status.
1852: if test "$ac_new_set" = set; then
1853: case $ac_new_val in
1.43 ohara 1854: *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1.14 noro 1855: *) ac_arg=$ac_var=$ac_new_val ;;
1856: esac
1857: case " $ac_configure_args " in
1858: *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1859: *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1860: esac
1861: fi
1862: done
1863: if $ac_cache_corrupted; then
1.43 ohara 1864: { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1865: $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1866: { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1867: $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1.14 noro 1868: { (exit 1); exit 1; }; }
1869: fi
1870:
1871:
1872:
1873:
1874:
1875:
1876:
1877:
1878:
1879:
1880:
1881:
1882:
1883:
1884:
1885:
1886:
1.37 ohara 1887: ac_ext=c
1888: ac_cpp='$CPP $CPPFLAGS'
1889: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1890: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1891: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.14 noro 1892:
1893:
1894:
1.32 noro 1895:
1.14 noro 1896: ac_aux_dir=
1.37 ohara 1897: for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1898: if test -f "$ac_dir/install-sh"; then
1.14 noro 1899: ac_aux_dir=$ac_dir
1900: ac_install_sh="$ac_aux_dir/install-sh -c"
1901: break
1.37 ohara 1902: elif test -f "$ac_dir/install.sh"; then
1.14 noro 1903: ac_aux_dir=$ac_dir
1904: ac_install_sh="$ac_aux_dir/install.sh -c"
1905: break
1.37 ohara 1906: elif test -f "$ac_dir/shtool"; then
1.14 noro 1907: ac_aux_dir=$ac_dir
1908: ac_install_sh="$ac_aux_dir/shtool install -c"
1909: break
1910: fi
1911: done
1912: if test -z "$ac_aux_dir"; then
1.43 ohara 1913: { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1914: $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1.37 ohara 1915: { (exit 1); exit 1; }; }
1916: fi
1917:
1918: # These three variables are undocumented and unsupported,
1919: # and are intended to be withdrawn in a future Autoconf release.
1920: # They can cause serious problems if a builder's source tree is in a directory
1921: # whose full name contains unusual characters.
1922: ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1923: ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1924: ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1925:
1926:
1927: # Make sure we can run config.sub.
1928: $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1.43 ohara 1929: { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1930: $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1.37 ohara 1931: { (exit 1); exit 1; }; }
1932:
1.43 ohara 1933: { $as_echo "$as_me:$LINENO: checking build system type" >&5
1934: $as_echo_n "checking build system type... " >&6; }
1.37 ohara 1935: if test "${ac_cv_build+set}" = set; then
1.43 ohara 1936: $as_echo_n "(cached) " >&6
1.37 ohara 1937: else
1938: ac_build_alias=$build_alias
1939: test "x$ac_build_alias" = x &&
1940: ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1941: test "x$ac_build_alias" = x &&
1.43 ohara 1942: { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1943: $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1.37 ohara 1944: { (exit 1); exit 1; }; }
1945: ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1.43 ohara 1946: { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1947: $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1.37 ohara 1948: { (exit 1); exit 1; }; }
1949:
1950: fi
1.43 ohara 1951: { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1952: $as_echo "$ac_cv_build" >&6; }
1.37 ohara 1953: case $ac_cv_build in
1954: *-*-*) ;;
1.43 ohara 1955: *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1956: $as_echo "$as_me: error: invalid value of canonical build" >&2;}
1.37 ohara 1957: { (exit 1); exit 1; }; };;
1958: esac
1959: build=$ac_cv_build
1960: ac_save_IFS=$IFS; IFS='-'
1961: set x $ac_cv_build
1962: shift
1963: build_cpu=$1
1964: build_vendor=$2
1965: shift; shift
1966: # Remember, the first character of IFS is used to create $*,
1967: # except with old shells:
1968: build_os=$*
1969: IFS=$ac_save_IFS
1970: case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1971:
1972:
1.43 ohara 1973: { $as_echo "$as_me:$LINENO: checking host system type" >&5
1974: $as_echo_n "checking host system type... " >&6; }
1.37 ohara 1975: if test "${ac_cv_host+set}" = set; then
1.43 ohara 1976: $as_echo_n "(cached) " >&6
1.37 ohara 1977: else
1978: if test "x$host_alias" = x; then
1979: ac_cv_host=$ac_cv_build
1980: else
1981: ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1.43 ohara 1982: { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1983: $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1.14 noro 1984: { (exit 1); exit 1; }; }
1985: fi
1.37 ohara 1986:
1987: fi
1.43 ohara 1988: { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1989: $as_echo "$ac_cv_host" >&6; }
1.37 ohara 1990: case $ac_cv_host in
1991: *-*-*) ;;
1.43 ohara 1992: *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1993: $as_echo "$as_me: error: invalid value of canonical host" >&2;}
1.37 ohara 1994: { (exit 1); exit 1; }; };;
1995: esac
1996: host=$ac_cv_host
1997: ac_save_IFS=$IFS; IFS='-'
1998: set x $ac_cv_host
1999: shift
2000: host_cpu=$1
2001: host_vendor=$2
2002: shift; shift
2003: # Remember, the first character of IFS is used to create $*,
2004: # except with old shells:
2005: host_os=$*
2006: IFS=$ac_save_IFS
2007: case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2008:
2009:
1.43 ohara 2010: { $as_echo "$as_me:$LINENO: checking target system type" >&5
2011: $as_echo_n "checking target system type... " >&6; }
1.37 ohara 2012: if test "${ac_cv_target+set}" = set; then
1.43 ohara 2013: $as_echo_n "(cached) " >&6
1.37 ohara 2014: else
2015: if test "x$target_alias" = x; then
2016: ac_cv_target=$ac_cv_host
2017: else
2018: ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
1.43 ohara 2019: { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2020: $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
1.37 ohara 2021: { (exit 1); exit 1; }; }
2022: fi
2023:
2024: fi
1.43 ohara 2025: { $as_echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2026: $as_echo "$ac_cv_target" >&6; }
1.37 ohara 2027: case $ac_cv_target in
2028: *-*-*) ;;
1.43 ohara 2029: *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2030: $as_echo "$as_me: error: invalid value of canonical target" >&2;}
1.37 ohara 2031: { (exit 1); exit 1; }; };;
2032: esac
2033: target=$ac_cv_target
2034: ac_save_IFS=$IFS; IFS='-'
2035: set x $ac_cv_target
2036: shift
2037: target_cpu=$1
2038: target_vendor=$2
2039: shift; shift
2040: # Remember, the first character of IFS is used to create $*,
2041: # except with old shells:
2042: target_os=$*
2043: IFS=$ac_save_IFS
2044: case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2045:
2046:
2047: # The aliases save the names the user supplied, while $host etc.
2048: # will get canonicalized.
2049: test -n "$target_alias" &&
2050: test "$program_prefix$program_suffix$program_transform_name" = \
2051: NONENONEs,x,x, &&
2052: program_prefix=${target_alias}-
2053: am__api_version='1.10'
1.14 noro 2054:
2055: # Find a good install program. We prefer a C program (faster),
2056: # so one script is as good as another. But avoid the broken or
2057: # incompatible versions:
2058: # SysV /etc/install, /usr/sbin/install
2059: # SunOS /usr/etc/install
2060: # IRIX /sbin/install
2061: # AIX /bin/install
2062: # AmigaOS /C/install, which installs bootblocks on floppy discs
2063: # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2064: # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2065: # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1.32 noro 2066: # OS/2's system install, which has a completely different semantic
1.14 noro 2067: # ./install, which can be erroneously created by make from ./install.sh.
1.43 ohara 2068: # Reject install programs that cannot install multiple files.
2069: { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2070: $as_echo_n "checking for a BSD-compatible install... " >&6; }
1.14 noro 2071: if test -z "$INSTALL"; then
2072: if test "${ac_cv_path_install+set}" = set; then
1.43 ohara 2073: $as_echo_n "(cached) " >&6
1.14 noro 2074: else
2075: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2076: for as_dir in $PATH
2077: do
2078: IFS=$as_save_IFS
2079: test -z "$as_dir" && as_dir=.
2080: # Account for people who put trailing slashes in PATH elements.
2081: case $as_dir/ in
2082: ./ | .// | /cC/* | \
2083: /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1.32 noro 2084: ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1.14 noro 2085: /usr/ucb/* ) ;;
2086: *)
2087: # OSF1 and SCO ODT 3.0 have their own names for install.
2088: # Don't use installbsd from OSF since it installs stuff as root
2089: # by default.
2090: for ac_prog in ginstall scoinst install; do
2091: for ac_exec_ext in '' $ac_executable_extensions; do
1.37 ohara 2092: if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
1.32 noro 2093: if test $ac_prog = install &&
2094: grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2095: # AIX install. It has an incompatible calling convention.
2096: :
2097: elif test $ac_prog = install &&
2098: grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2099: # program-specific install script used by HP pwplus--don't use.
2100: :
2101: else
1.43 ohara 2102: rm -rf conftest.one conftest.two conftest.dir
2103: echo one > conftest.one
2104: echo two > conftest.two
2105: mkdir conftest.dir
2106: if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2107: test -s conftest.one && test -s conftest.two &&
2108: test -s conftest.dir/conftest.one &&
2109: test -s conftest.dir/conftest.two
2110: then
2111: ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2112: break 3
2113: fi
1.32 noro 2114: fi
2115: fi
1.14 noro 2116: done
2117: done
2118: ;;
2119: esac
1.43 ohara 2120:
1.14 noro 2121: done
1.37 ohara 2122: IFS=$as_save_IFS
1.14 noro 2123:
1.43 ohara 2124: rm -rf conftest.one conftest.two conftest.dir
1.14 noro 2125:
2126: fi
2127: if test "${ac_cv_path_install+set}" = set; then
2128: INSTALL=$ac_cv_path_install
2129: else
1.37 ohara 2130: # As a last resort, use the slow shell script. Don't cache a
2131: # value for INSTALL within a source directory, because that will
1.14 noro 2132: # break other packages using the cache if that directory is
1.37 ohara 2133: # removed, or if the value is a relative name.
1.14 noro 2134: INSTALL=$ac_install_sh
2135: fi
2136: fi
1.43 ohara 2137: { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2138: $as_echo "$INSTALL" >&6; }
1.14 noro 2139:
2140: # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2141: # It thinks the first close brace ends the variable substitution.
2142: test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2143:
2144: test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2145:
2146: test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2147:
1.43 ohara 2148: { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2149: $as_echo_n "checking whether build environment is sane... " >&6; }
1.14 noro 2150: # Just in case
2151: sleep 1
2152: echo timestamp > conftest.file
2153: # Do `set' in a subshell so we don't clobber the current shell's
2154: # arguments. Must try -L first in case configure is actually a
2155: # symlink; some systems play weird games with the mod time of symlinks
2156: # (eg FreeBSD returns the mod time of the symlink's containing
2157: # directory).
2158: if (
2159: set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2160: if test "$*" = "X"; then
2161: # -L didn't work.
2162: set X `ls -t $srcdir/configure conftest.file`
2163: fi
2164: rm -f conftest.file
2165: if test "$*" != "X $srcdir/configure conftest.file" \
2166: && test "$*" != "X conftest.file $srcdir/configure"; then
2167:
2168: # If neither matched, then we have a broken ls. This can happen
2169: # if, for instance, CONFIG_SHELL is bash and it inherits a
2170: # broken ls alias from the environment. This has actually
2171: # happened. Such a system could not be considered "sane".
1.43 ohara 2172: { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1.14 noro 2173: alias in your environment" >&5
1.43 ohara 2174: $as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1.14 noro 2175: alias in your environment" >&2;}
2176: { (exit 1); exit 1; }; }
2177: fi
2178:
2179: test "$2" = conftest.file
2180: )
2181: then
2182: # Ok.
2183: :
2184: else
1.43 ohara 2185: { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1.14 noro 2186: Check your system clock" >&5
1.43 ohara 2187: $as_echo "$as_me: error: newly created file is older than distributed files!
1.14 noro 2188: Check your system clock" >&2;}
2189: { (exit 1); exit 1; }; }
2190: fi
1.43 ohara 2191: { $as_echo "$as_me:$LINENO: result: yes" >&5
2192: $as_echo "yes" >&6; }
1.14 noro 2193: test "$program_prefix" != NONE &&
1.37 ohara 2194: program_transform_name="s&^&$program_prefix&;$program_transform_name"
1.14 noro 2195: # Use a double $ so make ignores it.
2196: test "$program_suffix" != NONE &&
1.37 ohara 2197: program_transform_name="s&\$&$program_suffix&;$program_transform_name"
1.43 ohara 2198: # Double any \ or $.
1.14 noro 2199: # By default was `s,x,x', remove it if useless.
1.43 ohara 2200: ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2201: program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
1.14 noro 2202:
2203: # expand $ac_aux_dir to an absolute path
1.37 ohara 2204: am_aux_dir=`cd $ac_aux_dir && pwd`
1.14 noro 2205:
2206: test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2207: # Use eval to expand $SHELL
2208: if eval "$MISSING --run true"; then
2209: am_missing_run="$MISSING --run "
2210: else
2211: am_missing_run=
1.43 ohara 2212: { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2213: $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1.37 ohara 2214: fi
2215:
1.43 ohara 2216: { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2217: $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
1.37 ohara 2218: if test -z "$MKDIR_P"; then
2219: if test "${ac_cv_path_mkdir+set}" = set; then
1.43 ohara 2220: $as_echo_n "(cached) " >&6
1.37 ohara 2221: else
2222: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2223: for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2224: do
2225: IFS=$as_save_IFS
2226: test -z "$as_dir" && as_dir=.
2227: for ac_prog in mkdir gmkdir; do
2228: for ac_exec_ext in '' $ac_executable_extensions; do
2229: { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2230: case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2231: 'mkdir (GNU coreutils) '* | \
2232: 'mkdir (coreutils) '* | \
2233: 'mkdir (fileutils) '4.1*)
2234: ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2235: break 3;;
2236: esac
2237: done
2238: done
2239: done
2240: IFS=$as_save_IFS
2241:
2242: fi
2243:
2244: if test "${ac_cv_path_mkdir+set}" = set; then
2245: MKDIR_P="$ac_cv_path_mkdir -p"
2246: else
2247: # As a last resort, use the slow shell script. Don't cache a
2248: # value for MKDIR_P within a source directory, because that will
2249: # break other packages using the cache if that directory is
2250: # removed, or if the value is a relative name.
2251: test -d ./--version && rmdir ./--version
2252: MKDIR_P="$ac_install_sh -d"
2253: fi
1.14 noro 2254: fi
1.43 ohara 2255: { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2256: $as_echo "$MKDIR_P" >&6; }
1.37 ohara 2257:
2258: mkdir_p="$MKDIR_P"
2259: case $mkdir_p in
2260: [\\/$]* | ?:[\\/]*) ;;
2261: */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2262: esac
1.14 noro 2263:
2264: for ac_prog in gawk mawk nawk awk
2265: do
2266: # Extract the first word of "$ac_prog", so it can be a program name with args.
2267: set dummy $ac_prog; ac_word=$2
1.43 ohara 2268: { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2269: $as_echo_n "checking for $ac_word... " >&6; }
1.14 noro 2270: if test "${ac_cv_prog_AWK+set}" = set; then
1.43 ohara 2271: $as_echo_n "(cached) " >&6
1.14 noro 2272: else
2273: if test -n "$AWK"; then
2274: ac_cv_prog_AWK="$AWK" # Let the user override the test.
2275: else
2276: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2277: for as_dir in $PATH
2278: do
2279: IFS=$as_save_IFS
2280: test -z "$as_dir" && as_dir=.
2281: for ac_exec_ext in '' $ac_executable_extensions; do
1.37 ohara 2282: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.14 noro 2283: ac_cv_prog_AWK="$ac_prog"
1.43 ohara 2284: $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.14 noro 2285: break 2
2286: fi
2287: done
2288: done
1.37 ohara 2289: IFS=$as_save_IFS
1.14 noro 2290:
2291: fi
2292: fi
2293: AWK=$ac_cv_prog_AWK
2294: if test -n "$AWK"; then
1.43 ohara 2295: { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2296: $as_echo "$AWK" >&6; }
1.14 noro 2297: else
1.43 ohara 2298: { $as_echo "$as_me:$LINENO: result: no" >&5
2299: $as_echo "no" >&6; }
1.14 noro 2300: fi
2301:
1.37 ohara 2302:
1.14 noro 2303: test -n "$AWK" && break
2304: done
2305:
1.43 ohara 2306: { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2307: $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2308: set x ${MAKE-make}
2309: ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
1.37 ohara 2310: if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
1.43 ohara 2311: $as_echo_n "(cached) " >&6
1.14 noro 2312: else
2313: cat >conftest.make <<\_ACEOF
1.37 ohara 2314: SHELL = /bin/sh
1.14 noro 2315: all:
1.37 ohara 2316: @echo '@@@%%%=$(MAKE)=@@@%%%'
1.14 noro 2317: _ACEOF
2318: # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1.37 ohara 2319: case `${MAKE-make} -f conftest.make 2>/dev/null` in
2320: *@@@%%%=?*=@@@%%%*)
2321: eval ac_cv_prog_make_${ac_make}_set=yes;;
2322: *)
2323: eval ac_cv_prog_make_${ac_make}_set=no;;
2324: esac
1.14 noro 2325: rm -f conftest.make
2326: fi
1.37 ohara 2327: if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
1.43 ohara 2328: { $as_echo "$as_me:$LINENO: result: yes" >&5
2329: $as_echo "yes" >&6; }
1.14 noro 2330: SET_MAKE=
2331: else
1.43 ohara 2332: { $as_echo "$as_me:$LINENO: result: no" >&5
2333: $as_echo "no" >&6; }
1.14 noro 2334: SET_MAKE="MAKE=${MAKE-make}"
2335: fi
2336:
1.37 ohara 2337: rm -rf .tst 2>/dev/null
2338: mkdir .tst 2>/dev/null
2339: if test -d .tst; then
2340: am__leading_dot=.
2341: else
2342: am__leading_dot=_
2343: fi
2344: rmdir .tst 2>/dev/null
2345:
2346: if test "`cd $srcdir && pwd`" != "`pwd`"; then
2347: # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2348: # is not polluted with repeated "-I."
2349: am__isrc=' -I$(srcdir)'
2350: # test to see if srcdir already configured
2351: if test -f $srcdir/config.status; then
1.43 ohara 2352: { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2353: $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1.37 ohara 2354: { (exit 1); exit 1; }; }
2355: fi
1.14 noro 2356: fi
2357:
1.37 ohara 2358: # test whether we have cygpath
2359: if test -z "$CYGPATH_W"; then
2360: if (cygpath --version) >/dev/null 2>/dev/null; then
2361: CYGPATH_W='cygpath -w'
2362: else
2363: CYGPATH_W=echo
2364: fi
1.14 noro 2365: fi
2366:
2367:
1.37 ohara 2368: # Define the identity of the package.
2369: PACKAGE=asir
2370: VERSION=20030307
1.14 noro 2371:
2372:
2373: cat >>confdefs.h <<_ACEOF
2374: #define PACKAGE "$PACKAGE"
2375: _ACEOF
2376:
2377:
2378: cat >>confdefs.h <<_ACEOF
2379: #define VERSION "$VERSION"
2380: _ACEOF
2381:
2382: # Some tools Automake needs.
2383:
1.37 ohara 2384: ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1.14 noro 2385:
2386:
2387: AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2388:
2389:
1.37 ohara 2390: AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1.14 noro 2391:
2392:
2393: AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2394:
2395:
2396: MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2397:
1.37 ohara 2398: install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
1.14 noro 2399:
1.37 ohara 2400: # Installed binaries are usually stripped using `strip' when the user
2401: # run `make install-strip'. However `strip' might not be the right
2402: # tool to use in cross-compilation environments, therefore Automake
2403: # will honor the `STRIP' environment variable to overrule this program.
2404: if test "$cross_compiling" != no; then
2405: if test -n "$ac_tool_prefix"; then
2406: # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2407: set dummy ${ac_tool_prefix}strip; ac_word=$2
1.43 ohara 2408: { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2409: $as_echo_n "checking for $ac_word... " >&6; }
1.37 ohara 2410: if test "${ac_cv_prog_STRIP+set}" = set; then
1.43 ohara 2411: $as_echo_n "(cached) " >&6
1.37 ohara 2412: else
2413: if test -n "$STRIP"; then
2414: ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2415: else
2416: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2417: for as_dir in $PATH
2418: do
2419: IFS=$as_save_IFS
2420: test -z "$as_dir" && as_dir=.
2421: for ac_exec_ext in '' $ac_executable_extensions; do
2422: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2423: ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1.43 ohara 2424: $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.37 ohara 2425: break 2
2426: fi
2427: done
2428: done
2429: IFS=$as_save_IFS
1.14 noro 2430:
1.37 ohara 2431: fi
2432: fi
2433: STRIP=$ac_cv_prog_STRIP
2434: if test -n "$STRIP"; then
1.43 ohara 2435: { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2436: $as_echo "$STRIP" >&6; }
1.37 ohara 2437: else
1.43 ohara 2438: { $as_echo "$as_me:$LINENO: result: no" >&5
2439: $as_echo "no" >&6; }
1.37 ohara 2440: fi
1.14 noro 2441:
2442:
1.37 ohara 2443: fi
2444: if test -z "$ac_cv_prog_STRIP"; then
2445: ac_ct_STRIP=$STRIP
2446: # Extract the first word of "strip", so it can be a program name with args.
2447: set dummy strip; ac_word=$2
1.43 ohara 2448: { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2449: $as_echo_n "checking for $ac_word... " >&6; }
1.37 ohara 2450: if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1.43 ohara 2451: $as_echo_n "(cached) " >&6
1.37 ohara 2452: else
2453: if test -n "$ac_ct_STRIP"; then
2454: ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2455: else
2456: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2457: for as_dir in $PATH
2458: do
2459: IFS=$as_save_IFS
2460: test -z "$as_dir" && as_dir=.
2461: for ac_exec_ext in '' $ac_executable_extensions; do
2462: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2463: ac_cv_prog_ac_ct_STRIP="strip"
1.43 ohara 2464: $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.37 ohara 2465: break 2
2466: fi
2467: done
2468: done
2469: IFS=$as_save_IFS
1.14 noro 2470:
1.37 ohara 2471: fi
2472: fi
2473: ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2474: if test -n "$ac_ct_STRIP"; then
1.43 ohara 2475: { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2476: $as_echo "$ac_ct_STRIP" >&6; }
1.22 ohara 2477: else
1.43 ohara 2478: { $as_echo "$as_me:$LINENO: result: no" >&5
2479: $as_echo "no" >&6; }
1.37 ohara 2480: fi
1.22 ohara 2481:
1.37 ohara 2482: if test "x$ac_ct_STRIP" = x; then
2483: STRIP=":"
2484: else
2485: case $cross_compiling:$ac_tool_warned in
2486: yes:)
1.43 ohara 2487: { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
1.37 ohara 2488: whose name does not start with the host triplet. If you think this
2489: configuration is useful to you, please write to autoconf@gnu.org." >&5
1.43 ohara 2490: $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
1.37 ohara 2491: whose name does not start with the host triplet. If you think this
2492: configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2493: ac_tool_warned=yes ;;
2494: esac
2495: STRIP=$ac_ct_STRIP
2496: fi
2497: else
2498: STRIP="$ac_cv_prog_STRIP"
2499: fi
1.22 ohara 2500:
2501: fi
1.37 ohara 2502: INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2503:
2504: # We need awk for the "check" target. The system "awk" is bad on
2505: # some platforms.
2506: # Always define AMTAR for backward compatibility.
1.22 ohara 2507:
1.37 ohara 2508: AMTAR=${AMTAR-"${am_missing_run}tar"}
1.22 ohara 2509:
1.37 ohara 2510: am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1.22 ohara 2511:
1.14 noro 2512:
2513:
2514:
2515:
1.43 ohara 2516: { $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2517: $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
1.37 ohara 2518: # Check whether --enable-maintainer-mode was given.
2519: if test "${enable_maintainer_mode+set}" = set; then
2520: enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
1.14 noro 2521: else
1.37 ohara 2522: USE_MAINTAINER_MODE=no
1.14 noro 2523: fi
2524:
1.43 ohara 2525: { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2526: $as_echo "$USE_MAINTAINER_MODE" >&6; }
1.37 ohara 2527: if test $USE_MAINTAINER_MODE = yes; then
2528: MAINTAINER_MODE_TRUE=
2529: MAINTAINER_MODE_FALSE='#'
1.14 noro 2530: else
1.37 ohara 2531: MAINTAINER_MODE_TRUE='#'
2532: MAINTAINER_MODE_FALSE=
2533: fi
1.14 noro 2534:
1.37 ohara 2535: MAINT=$MAINTAINER_MODE_TRUE
1.14 noro 2536:
2537:
2538:
2539: ac_ext=c
2540: ac_cpp='$CPP $CPPFLAGS'
2541: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2542: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2543: ac_compiler_gnu=$ac_cv_c_compiler_gnu
2544: if test -n "$ac_tool_prefix"; then
2545: # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2546: set dummy ${ac_tool_prefix}gcc; ac_word=$2
1.43 ohara 2547: { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2548: $as_echo_n "checking for $ac_word... " >&6; }
1.14 noro 2549: if test "${ac_cv_prog_CC+set}" = set; then
1.43 ohara 2550: $as_echo_n "(cached) " >&6
1.14 noro 2551: else
2552: if test -n "$CC"; then
2553: ac_cv_prog_CC="$CC" # Let the user override the test.
2554: else
2555: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2556: for as_dir in $PATH
2557: do
2558: IFS=$as_save_IFS
2559: test -z "$as_dir" && as_dir=.
2560: for ac_exec_ext in '' $ac_executable_extensions; do
1.37 ohara 2561: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.14 noro 2562: ac_cv_prog_CC="${ac_tool_prefix}gcc"
1.43 ohara 2563: $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.14 noro 2564: break 2
2565: fi
2566: done
2567: done
1.37 ohara 2568: IFS=$as_save_IFS
1.14 noro 2569:
2570: fi
2571: fi
2572: CC=$ac_cv_prog_CC
2573: if test -n "$CC"; then
1.43 ohara 2574: { $as_echo "$as_me:$LINENO: result: $CC" >&5
2575: $as_echo "$CC" >&6; }
1.14 noro 2576: else
1.43 ohara 2577: { $as_echo "$as_me:$LINENO: result: no" >&5
2578: $as_echo "no" >&6; }
1.14 noro 2579: fi
2580:
1.37 ohara 2581:
1.14 noro 2582: fi
2583: if test -z "$ac_cv_prog_CC"; then
2584: ac_ct_CC=$CC
2585: # Extract the first word of "gcc", so it can be a program name with args.
2586: set dummy gcc; ac_word=$2
1.43 ohara 2587: { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2588: $as_echo_n "checking for $ac_word... " >&6; }
1.14 noro 2589: if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1.43 ohara 2590: $as_echo_n "(cached) " >&6
1.14 noro 2591: else
2592: if test -n "$ac_ct_CC"; then
2593: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2594: else
2595: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2596: for as_dir in $PATH
2597: do
2598: IFS=$as_save_IFS
2599: test -z "$as_dir" && as_dir=.
2600: for ac_exec_ext in '' $ac_executable_extensions; do
1.37 ohara 2601: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.14 noro 2602: ac_cv_prog_ac_ct_CC="gcc"
1.43 ohara 2603: $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.14 noro 2604: break 2
2605: fi
2606: done
2607: done
1.37 ohara 2608: IFS=$as_save_IFS
1.14 noro 2609:
2610: fi
2611: fi
2612: ac_ct_CC=$ac_cv_prog_ac_ct_CC
2613: if test -n "$ac_ct_CC"; then
1.43 ohara 2614: { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2615: $as_echo "$ac_ct_CC" >&6; }
1.14 noro 2616: else
1.43 ohara 2617: { $as_echo "$as_me:$LINENO: result: no" >&5
2618: $as_echo "no" >&6; }
1.14 noro 2619: fi
2620:
1.37 ohara 2621: if test "x$ac_ct_CC" = x; then
2622: CC=""
2623: else
2624: case $cross_compiling:$ac_tool_warned in
2625: yes:)
1.43 ohara 2626: { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
1.37 ohara 2627: whose name does not start with the host triplet. If you think this
2628: configuration is useful to you, please write to autoconf@gnu.org." >&5
1.43 ohara 2629: $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
1.37 ohara 2630: whose name does not start with the host triplet. If you think this
2631: configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2632: ac_tool_warned=yes ;;
2633: esac
2634: CC=$ac_ct_CC
2635: fi
1.14 noro 2636: else
2637: CC="$ac_cv_prog_CC"
2638: fi
2639:
2640: if test -z "$CC"; then
1.37 ohara 2641: if test -n "$ac_tool_prefix"; then
2642: # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1.14 noro 2643: set dummy ${ac_tool_prefix}cc; ac_word=$2
1.43 ohara 2644: { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2645: $as_echo_n "checking for $ac_word... " >&6; }
1.14 noro 2646: if test "${ac_cv_prog_CC+set}" = set; then
1.43 ohara 2647: $as_echo_n "(cached) " >&6
1.14 noro 2648: else
2649: if test -n "$CC"; then
2650: ac_cv_prog_CC="$CC" # Let the user override the test.
2651: else
2652: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2653: for as_dir in $PATH
2654: do
2655: IFS=$as_save_IFS
2656: test -z "$as_dir" && as_dir=.
2657: for ac_exec_ext in '' $ac_executable_extensions; do
1.37 ohara 2658: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.14 noro 2659: ac_cv_prog_CC="${ac_tool_prefix}cc"
1.43 ohara 2660: $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.14 noro 2661: break 2
2662: fi
2663: done
2664: done
1.37 ohara 2665: IFS=$as_save_IFS
1.14 noro 2666:
2667: fi
2668: fi
2669: CC=$ac_cv_prog_CC
2670: if test -n "$CC"; then
1.43 ohara 2671: { $as_echo "$as_me:$LINENO: result: $CC" >&5
2672: $as_echo "$CC" >&6; }
1.14 noro 2673: else
1.43 ohara 2674: { $as_echo "$as_me:$LINENO: result: no" >&5
2675: $as_echo "no" >&6; }
1.14 noro 2676: fi
2677:
1.37 ohara 2678:
1.14 noro 2679: fi
2680: fi
2681: if test -z "$CC"; then
2682: # Extract the first word of "cc", so it can be a program name with args.
2683: set dummy cc; ac_word=$2
1.43 ohara 2684: { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2685: $as_echo_n "checking for $ac_word... " >&6; }
1.14 noro 2686: if test "${ac_cv_prog_CC+set}" = set; then
1.43 ohara 2687: $as_echo_n "(cached) " >&6
1.14 noro 2688: else
2689: if test -n "$CC"; then
2690: ac_cv_prog_CC="$CC" # Let the user override the test.
2691: else
2692: ac_prog_rejected=no
2693: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2694: for as_dir in $PATH
2695: do
2696: IFS=$as_save_IFS
2697: test -z "$as_dir" && as_dir=.
2698: for ac_exec_ext in '' $ac_executable_extensions; do
1.37 ohara 2699: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.14 noro 2700: if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2701: ac_prog_rejected=yes
2702: continue
2703: fi
2704: ac_cv_prog_CC="cc"
1.43 ohara 2705: $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.14 noro 2706: break 2
2707: fi
2708: done
2709: done
1.37 ohara 2710: IFS=$as_save_IFS
1.14 noro 2711:
2712: if test $ac_prog_rejected = yes; then
2713: # We found a bogon in the path, so make sure we never use it.
2714: set dummy $ac_cv_prog_CC
2715: shift
2716: if test $# != 0; then
2717: # We chose a different compiler from the bogus one.
2718: # However, it has the same basename, so the bogon will be chosen
2719: # first if we set CC to just the basename; use the full file name.
2720: shift
1.32 noro 2721: ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1.14 noro 2722: fi
2723: fi
2724: fi
2725: fi
2726: CC=$ac_cv_prog_CC
2727: if test -n "$CC"; then
1.43 ohara 2728: { $as_echo "$as_me:$LINENO: result: $CC" >&5
2729: $as_echo "$CC" >&6; }
1.14 noro 2730: else
1.43 ohara 2731: { $as_echo "$as_me:$LINENO: result: no" >&5
2732: $as_echo "no" >&6; }
1.14 noro 2733: fi
2734:
1.37 ohara 2735:
1.14 noro 2736: fi
2737: if test -z "$CC"; then
2738: if test -n "$ac_tool_prefix"; then
1.37 ohara 2739: for ac_prog in cl.exe
1.14 noro 2740: do
2741: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2742: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1.43 ohara 2743: { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2744: $as_echo_n "checking for $ac_word... " >&6; }
1.14 noro 2745: if test "${ac_cv_prog_CC+set}" = set; then
1.43 ohara 2746: $as_echo_n "(cached) " >&6
1.14 noro 2747: else
2748: if test -n "$CC"; then
2749: ac_cv_prog_CC="$CC" # Let the user override the test.
2750: else
2751: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2752: for as_dir in $PATH
2753: do
2754: IFS=$as_save_IFS
2755: test -z "$as_dir" && as_dir=.
2756: for ac_exec_ext in '' $ac_executable_extensions; do
1.37 ohara 2757: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.14 noro 2758: ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1.43 ohara 2759: $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.14 noro 2760: break 2
2761: fi
2762: done
2763: done
1.37 ohara 2764: IFS=$as_save_IFS
1.14 noro 2765:
2766: fi
2767: fi
2768: CC=$ac_cv_prog_CC
2769: if test -n "$CC"; then
1.43 ohara 2770: { $as_echo "$as_me:$LINENO: result: $CC" >&5
2771: $as_echo "$CC" >&6; }
1.14 noro 2772: else
1.43 ohara 2773: { $as_echo "$as_me:$LINENO: result: no" >&5
2774: $as_echo "no" >&6; }
1.14 noro 2775: fi
2776:
1.37 ohara 2777:
1.14 noro 2778: test -n "$CC" && break
2779: done
2780: fi
2781: if test -z "$CC"; then
2782: ac_ct_CC=$CC
1.37 ohara 2783: for ac_prog in cl.exe
1.14 noro 2784: do
2785: # Extract the first word of "$ac_prog", so it can be a program name with args.
2786: set dummy $ac_prog; ac_word=$2
1.43 ohara 2787: { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2788: $as_echo_n "checking for $ac_word... " >&6; }
1.14 noro 2789: if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1.43 ohara 2790: $as_echo_n "(cached) " >&6
1.14 noro 2791: else
2792: if test -n "$ac_ct_CC"; then
2793: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2794: else
2795: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2796: for as_dir in $PATH
2797: do
2798: IFS=$as_save_IFS
2799: test -z "$as_dir" && as_dir=.
2800: for ac_exec_ext in '' $ac_executable_extensions; do
1.37 ohara 2801: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.14 noro 2802: ac_cv_prog_ac_ct_CC="$ac_prog"
1.43 ohara 2803: $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.14 noro 2804: break 2
2805: fi
2806: done
2807: done
1.37 ohara 2808: IFS=$as_save_IFS
1.14 noro 2809:
2810: fi
2811: fi
2812: ac_ct_CC=$ac_cv_prog_ac_ct_CC
2813: if test -n "$ac_ct_CC"; then
1.43 ohara 2814: { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2815: $as_echo "$ac_ct_CC" >&6; }
1.14 noro 2816: else
1.43 ohara 2817: { $as_echo "$as_me:$LINENO: result: no" >&5
2818: $as_echo "no" >&6; }
1.14 noro 2819: fi
2820:
1.37 ohara 2821:
1.14 noro 2822: test -n "$ac_ct_CC" && break
2823: done
2824:
1.37 ohara 2825: if test "x$ac_ct_CC" = x; then
2826: CC=""
2827: else
2828: case $cross_compiling:$ac_tool_warned in
2829: yes:)
1.43 ohara 2830: { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
1.37 ohara 2831: whose name does not start with the host triplet. If you think this
2832: configuration is useful to you, please write to autoconf@gnu.org." >&5
1.43 ohara 2833: $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
1.37 ohara 2834: whose name does not start with the host triplet. If you think this
2835: configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2836: ac_tool_warned=yes ;;
2837: esac
2838: CC=$ac_ct_CC
2839: fi
1.14 noro 2840: fi
2841:
2842: fi
2843:
2844:
1.43 ohara 2845: test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1.32 noro 2846: See \`config.log' for more details." >&5
1.43 ohara 2847: $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
1.32 noro 2848: See \`config.log' for more details." >&2;}
1.14 noro 2849: { (exit 1); exit 1; }; }
2850:
2851: # Provide some information about the compiler.
1.43 ohara 2852: $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2853: set X $ac_compile
2854: ac_compiler=$2
1.37 ohara 2855: { (ac_try="$ac_compiler --version >&5"
2856: case "(($ac_try" in
2857: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2858: *) ac_try_echo=$ac_try;;
2859: esac
1.43 ohara 2860: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2861: $as_echo "$ac_try_echo") >&5
1.37 ohara 2862: (eval "$ac_compiler --version >&5") 2>&5
1.14 noro 2863: ac_status=$?
1.43 ohara 2864: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.14 noro 2865: (exit $ac_status); }
1.37 ohara 2866: { (ac_try="$ac_compiler -v >&5"
2867: case "(($ac_try" in
2868: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2869: *) ac_try_echo=$ac_try;;
2870: esac
1.43 ohara 2871: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2872: $as_echo "$ac_try_echo") >&5
1.37 ohara 2873: (eval "$ac_compiler -v >&5") 2>&5
1.14 noro 2874: ac_status=$?
1.43 ohara 2875: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.14 noro 2876: (exit $ac_status); }
1.37 ohara 2877: { (ac_try="$ac_compiler -V >&5"
2878: case "(($ac_try" in
2879: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2880: *) ac_try_echo=$ac_try;;
2881: esac
1.43 ohara 2882: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2883: $as_echo "$ac_try_echo") >&5
1.37 ohara 2884: (eval "$ac_compiler -V >&5") 2>&5
1.14 noro 2885: ac_status=$?
1.43 ohara 2886: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.14 noro 2887: (exit $ac_status); }
2888:
2889: cat >conftest.$ac_ext <<_ACEOF
1.32 noro 2890: /* confdefs.h. */
2891: _ACEOF
2892: cat confdefs.h >>conftest.$ac_ext
2893: cat >>conftest.$ac_ext <<_ACEOF
2894: /* end confdefs.h. */
1.14 noro 2895:
2896: int
2897: main ()
2898: {
2899:
2900: ;
2901: return 0;
2902: }
2903: _ACEOF
2904: ac_clean_files_save=$ac_clean_files
1.43 ohara 2905: ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
1.14 noro 2906: # Try to create an executable without -o first, disregard a.out.
2907: # It will help us diagnose broken compilers, and finding out an intuition
2908: # of exeext.
1.43 ohara 2909: { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2910: $as_echo_n "checking for C compiler default output file name... " >&6; }
2911: ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2912:
2913: # The possible output files:
2914: ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2915:
1.37 ohara 2916: ac_rmfiles=
2917: for ac_file in $ac_files
2918: do
2919: case $ac_file in
1.43 ohara 2920: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
1.37 ohara 2921: * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2922: esac
2923: done
2924: rm -f $ac_rmfiles
2925:
2926: if { (ac_try="$ac_link_default"
2927: case "(($ac_try" in
2928: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2929: *) ac_try_echo=$ac_try;;
2930: esac
1.43 ohara 2931: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2932: $as_echo "$ac_try_echo") >&5
1.37 ohara 2933: (eval "$ac_link_default") 2>&5
1.14 noro 2934: ac_status=$?
1.43 ohara 2935: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.14 noro 2936: (exit $ac_status); }; then
1.37 ohara 2937: # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2938: # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2939: # in a Makefile. We should not override ac_cv_exeext if it was cached,
2940: # so that the user can short-circuit this test for compilers unknown to
2941: # Autoconf.
2942: for ac_file in $ac_files ''
1.32 noro 2943: do
2944: test -f "$ac_file" || continue
1.14 noro 2945: case $ac_file in
1.43 ohara 2946: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
1.32 noro 2947: ;;
2948: [ab].out )
2949: # We found the default executable, but exeext='' is most
2950: # certainly right.
2951: break;;
2952: *.* )
1.37 ohara 2953: if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2954: then :; else
2955: ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2956: fi
2957: # We set ac_cv_exeext here because the later test for it is not
2958: # safe: cross compilers may not add the suffix if given an `-o'
2959: # argument, so we may need to know it at that point already.
2960: # Even if this section looks crufty: it has the advantage of
2961: # actually working.
1.32 noro 2962: break;;
2963: * )
2964: break;;
1.14 noro 2965: esac
2966: done
1.37 ohara 2967: test "$ac_cv_exeext" = no && ac_cv_exeext=
2968:
1.14 noro 2969: else
1.37 ohara 2970: ac_file=''
2971: fi
2972:
1.43 ohara 2973: { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2974: $as_echo "$ac_file" >&6; }
1.37 ohara 2975: if test -z "$ac_file"; then
1.43 ohara 2976: $as_echo "$as_me: failed program was:" >&5
1.32 noro 2977: sed 's/^/| /' conftest.$ac_ext >&5
2978:
1.43 ohara 2979: { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
1.32 noro 2980: See \`config.log' for more details." >&5
1.43 ohara 2981: $as_echo "$as_me: error: C compiler cannot create executables
1.32 noro 2982: See \`config.log' for more details." >&2;}
1.14 noro 2983: { (exit 77); exit 77; }; }
2984: fi
2985:
2986: ac_exeext=$ac_cv_exeext
2987:
1.37 ohara 2988: # Check that the compiler produces executables we can run. If not, either
1.14 noro 2989: # the compiler is broken, or we cross compile.
1.43 ohara 2990: { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2991: $as_echo_n "checking whether the C compiler works... " >&6; }
1.14 noro 2992: # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2993: # If not cross compiling, check that we can run a simple program.
2994: if test "$cross_compiling" != yes; then
2995: if { ac_try='./$ac_file'
1.37 ohara 2996: { (case "(($ac_try" in
2997: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2998: *) ac_try_echo=$ac_try;;
2999: esac
1.43 ohara 3000: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3001: $as_echo "$ac_try_echo") >&5
1.37 ohara 3002: (eval "$ac_try") 2>&5
1.14 noro 3003: ac_status=$?
1.43 ohara 3004: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.14 noro 3005: (exit $ac_status); }; }; then
3006: cross_compiling=no
3007: else
3008: if test "$cross_compiling" = maybe; then
3009: cross_compiling=yes
3010: else
1.43 ohara 3011: { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
1.32 noro 3012: If you meant to cross compile, use \`--host'.
3013: See \`config.log' for more details." >&5
1.43 ohara 3014: $as_echo "$as_me: error: cannot run C compiled programs.
1.32 noro 3015: If you meant to cross compile, use \`--host'.
3016: See \`config.log' for more details." >&2;}
1.14 noro 3017: { (exit 1); exit 1; }; }
3018: fi
3019: fi
3020: fi
1.43 ohara 3021: { $as_echo "$as_me:$LINENO: result: yes" >&5
3022: $as_echo "yes" >&6; }
1.14 noro 3023:
1.43 ohara 3024: rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
1.14 noro 3025: ac_clean_files=$ac_clean_files_save
1.37 ohara 3026: # Check that the compiler produces executables we can run. If not, either
1.14 noro 3027: # the compiler is broken, or we cross compile.
1.43 ohara 3028: { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3029: $as_echo_n "checking whether we are cross compiling... " >&6; }
3030: { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3031: $as_echo "$cross_compiling" >&6; }
1.37 ohara 3032:
1.43 ohara 3033: { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3034: $as_echo_n "checking for suffix of executables... " >&6; }
1.37 ohara 3035: if { (ac_try="$ac_link"
3036: case "(($ac_try" in
3037: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3038: *) ac_try_echo=$ac_try;;
3039: esac
1.43 ohara 3040: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3041: $as_echo "$ac_try_echo") >&5
1.37 ohara 3042: (eval "$ac_link") 2>&5
1.14 noro 3043: ac_status=$?
1.43 ohara 3044: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.14 noro 3045: (exit $ac_status); }; then
3046: # If both `conftest.exe' and `conftest' are `present' (well, observable)
3047: # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3048: # work properly (i.e., refer to `conftest.exe'), while it won't with
3049: # `rm'.
1.32 noro 3050: for ac_file in conftest.exe conftest conftest.*; do
3051: test -f "$ac_file" || continue
1.14 noro 3052: case $ac_file in
1.43 ohara 3053: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
1.14 noro 3054: *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1.32 noro 3055: break;;
1.14 noro 3056: * ) break;;
3057: esac
3058: done
3059: else
1.43 ohara 3060: { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1.32 noro 3061: See \`config.log' for more details." >&5
1.43 ohara 3062: $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1.32 noro 3063: See \`config.log' for more details." >&2;}
1.14 noro 3064: { (exit 1); exit 1; }; }
3065: fi
3066:
3067: rm -f conftest$ac_cv_exeext
1.43 ohara 3068: { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3069: $as_echo "$ac_cv_exeext" >&6; }
1.14 noro 3070:
3071: rm -f conftest.$ac_ext
3072: EXEEXT=$ac_cv_exeext
3073: ac_exeext=$EXEEXT
1.43 ohara 3074: { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3075: $as_echo_n "checking for suffix of object files... " >&6; }
1.14 noro 3076: if test "${ac_cv_objext+set}" = set; then
1.43 ohara 3077: $as_echo_n "(cached) " >&6
1.14 noro 3078: else
3079: cat >conftest.$ac_ext <<_ACEOF
1.32 noro 3080: /* confdefs.h. */
3081: _ACEOF
3082: cat confdefs.h >>conftest.$ac_ext
3083: cat >>conftest.$ac_ext <<_ACEOF
3084: /* end confdefs.h. */
1.14 noro 3085:
3086: int
3087: main ()
3088: {
3089:
3090: ;
3091: return 0;
3092: }
3093: _ACEOF
3094: rm -f conftest.o conftest.obj
1.37 ohara 3095: if { (ac_try="$ac_compile"
3096: case "(($ac_try" in
3097: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3098: *) ac_try_echo=$ac_try;;
3099: esac
1.43 ohara 3100: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3101: $as_echo "$ac_try_echo") >&5
1.37 ohara 3102: (eval "$ac_compile") 2>&5
1.14 noro 3103: ac_status=$?
1.43 ohara 3104: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.14 noro 3105: (exit $ac_status); }; then
1.37 ohara 3106: for ac_file in conftest.o conftest.obj conftest.*; do
3107: test -f "$ac_file" || continue;
1.14 noro 3108: case $ac_file in
1.43 ohara 3109: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
1.14 noro 3110: *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3111: break;;
3112: esac
3113: done
3114: else
1.43 ohara 3115: $as_echo "$as_me: failed program was:" >&5
1.32 noro 3116: sed 's/^/| /' conftest.$ac_ext >&5
3117:
1.43 ohara 3118: { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1.32 noro 3119: See \`config.log' for more details." >&5
1.43 ohara 3120: $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
1.32 noro 3121: See \`config.log' for more details." >&2;}
1.14 noro 3122: { (exit 1); exit 1; }; }
3123: fi
3124:
3125: rm -f conftest.$ac_cv_objext conftest.$ac_ext
3126: fi
1.43 ohara 3127: { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3128: $as_echo "$ac_cv_objext" >&6; }
1.14 noro 3129: OBJEXT=$ac_cv_objext
3130: ac_objext=$OBJEXT
1.43 ohara 3131: { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3132: $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
1.14 noro 3133: if test "${ac_cv_c_compiler_gnu+set}" = set; then
1.43 ohara 3134: $as_echo_n "(cached) " >&6
1.14 noro 3135: else
3136: cat >conftest.$ac_ext <<_ACEOF
1.32 noro 3137: /* confdefs.h. */
3138: _ACEOF
3139: cat confdefs.h >>conftest.$ac_ext
3140: cat >>conftest.$ac_ext <<_ACEOF
3141: /* end confdefs.h. */
1.14 noro 3142:
3143: int
3144: main ()
3145: {
3146: #ifndef __GNUC__
3147: choke me
3148: #endif
3149:
3150: ;
3151: return 0;
3152: }
3153: _ACEOF
3154: rm -f conftest.$ac_objext
1.37 ohara 3155: if { (ac_try="$ac_compile"
3156: case "(($ac_try" in
3157: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3158: *) ac_try_echo=$ac_try;;
3159: esac
1.43 ohara 3160: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3161: $as_echo "$ac_try_echo") >&5
1.37 ohara 3162: (eval "$ac_compile") 2>conftest.er1
1.14 noro 3163: ac_status=$?
1.32 noro 3164: grep -v '^ *+' conftest.er1 >conftest.err
3165: rm -f conftest.er1
3166: cat conftest.err >&5
1.43 ohara 3167: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.37 ohara 3168: (exit $ac_status); } && {
3169: test -z "$ac_c_werror_flag" ||
3170: test ! -s conftest.err
3171: } && test -s conftest.$ac_objext; then
1.14 noro 3172: ac_compiler_gnu=yes
3173: else
1.43 ohara 3174: $as_echo "$as_me: failed program was:" >&5
1.32 noro 3175: sed 's/^/| /' conftest.$ac_ext >&5
3176:
1.37 ohara 3177: ac_compiler_gnu=no
1.14 noro 3178: fi
1.37 ohara 3179:
3180: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.14 noro 3181: ac_cv_c_compiler_gnu=$ac_compiler_gnu
3182:
3183: fi
1.43 ohara 3184: { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3185: $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3186: if test $ac_compiler_gnu = yes; then
3187: GCC=yes
3188: else
3189: GCC=
3190: fi
1.14 noro 3191: ac_test_CFLAGS=${CFLAGS+set}
3192: ac_save_CFLAGS=$CFLAGS
1.43 ohara 3193: { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3194: $as_echo_n "checking whether $CC accepts -g... " >&6; }
1.14 noro 3195: if test "${ac_cv_prog_cc_g+set}" = set; then
1.43 ohara 3196: $as_echo_n "(cached) " >&6
1.14 noro 3197: else
1.37 ohara 3198: ac_save_c_werror_flag=$ac_c_werror_flag
3199: ac_c_werror_flag=yes
3200: ac_cv_prog_cc_g=no
3201: CFLAGS="-g"
3202: cat >conftest.$ac_ext <<_ACEOF
1.32 noro 3203: /* confdefs.h. */
3204: _ACEOF
3205: cat confdefs.h >>conftest.$ac_ext
3206: cat >>conftest.$ac_ext <<_ACEOF
3207: /* end confdefs.h. */
1.14 noro 3208:
3209: int
3210: main ()
3211: {
3212:
3213: ;
3214: return 0;
3215: }
3216: _ACEOF
3217: rm -f conftest.$ac_objext
1.37 ohara 3218: if { (ac_try="$ac_compile"
3219: case "(($ac_try" in
3220: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3221: *) ac_try_echo=$ac_try;;
3222: esac
1.43 ohara 3223: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3224: $as_echo "$ac_try_echo") >&5
1.37 ohara 3225: (eval "$ac_compile") 2>conftest.er1
1.14 noro 3226: ac_status=$?
1.32 noro 3227: grep -v '^ *+' conftest.er1 >conftest.err
3228: rm -f conftest.er1
3229: cat conftest.err >&5
1.43 ohara 3230: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.37 ohara 3231: (exit $ac_status); } && {
3232: test -z "$ac_c_werror_flag" ||
3233: test ! -s conftest.err
3234: } && test -s conftest.$ac_objext; then
3235: ac_cv_prog_cc_g=yes
3236: else
1.43 ohara 3237: $as_echo "$as_me: failed program was:" >&5
1.37 ohara 3238: sed 's/^/| /' conftest.$ac_ext >&5
3239:
3240: CFLAGS=""
3241: cat >conftest.$ac_ext <<_ACEOF
3242: /* confdefs.h. */
3243: _ACEOF
3244: cat confdefs.h >>conftest.$ac_ext
3245: cat >>conftest.$ac_ext <<_ACEOF
3246: /* end confdefs.h. */
3247:
3248: int
3249: main ()
3250: {
3251:
3252: ;
3253: return 0;
3254: }
3255: _ACEOF
3256: rm -f conftest.$ac_objext
3257: if { (ac_try="$ac_compile"
3258: case "(($ac_try" in
3259: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3260: *) ac_try_echo=$ac_try;;
3261: esac
1.43 ohara 3262: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3263: $as_echo "$ac_try_echo") >&5
1.37 ohara 3264: (eval "$ac_compile") 2>conftest.er1
1.32 noro 3265: ac_status=$?
1.37 ohara 3266: grep -v '^ *+' conftest.er1 >conftest.err
3267: rm -f conftest.er1
3268: cat conftest.err >&5
1.43 ohara 3269: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.37 ohara 3270: (exit $ac_status); } && {
3271: test -z "$ac_c_werror_flag" ||
3272: test ! -s conftest.err
3273: } && test -s conftest.$ac_objext; then
3274: :
3275: else
1.43 ohara 3276: $as_echo "$as_me: failed program was:" >&5
1.37 ohara 3277: sed 's/^/| /' conftest.$ac_ext >&5
3278:
3279: ac_c_werror_flag=$ac_save_c_werror_flag
3280: CFLAGS="-g"
3281: cat >conftest.$ac_ext <<_ACEOF
3282: /* confdefs.h. */
3283: _ACEOF
3284: cat confdefs.h >>conftest.$ac_ext
3285: cat >>conftest.$ac_ext <<_ACEOF
3286: /* end confdefs.h. */
3287:
3288: int
3289: main ()
3290: {
3291:
3292: ;
3293: return 0;
3294: }
3295: _ACEOF
3296: rm -f conftest.$ac_objext
3297: if { (ac_try="$ac_compile"
3298: case "(($ac_try" in
3299: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3300: *) ac_try_echo=$ac_try;;
3301: esac
1.43 ohara 3302: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3303: $as_echo "$ac_try_echo") >&5
1.37 ohara 3304: (eval "$ac_compile") 2>conftest.er1
1.14 noro 3305: ac_status=$?
1.37 ohara 3306: grep -v '^ *+' conftest.er1 >conftest.err
3307: rm -f conftest.er1
3308: cat conftest.err >&5
1.43 ohara 3309: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.37 ohara 3310: (exit $ac_status); } && {
3311: test -z "$ac_c_werror_flag" ||
3312: test ! -s conftest.err
3313: } && test -s conftest.$ac_objext; then
1.14 noro 3314: ac_cv_prog_cc_g=yes
3315: else
1.43 ohara 3316: $as_echo "$as_me: failed program was:" >&5
1.32 noro 3317: sed 's/^/| /' conftest.$ac_ext >&5
3318:
1.37 ohara 3319:
3320: fi
3321:
3322: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.14 noro 3323: fi
1.37 ohara 3324:
3325: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3326: fi
3327:
3328: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3329: ac_c_werror_flag=$ac_save_c_werror_flag
1.14 noro 3330: fi
1.43 ohara 3331: { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3332: $as_echo "$ac_cv_prog_cc_g" >&6; }
1.14 noro 3333: if test "$ac_test_CFLAGS" = set; then
3334: CFLAGS=$ac_save_CFLAGS
3335: elif test $ac_cv_prog_cc_g = yes; then
3336: if test "$GCC" = yes; then
3337: CFLAGS="-g -O2"
3338: else
3339: CFLAGS="-g"
3340: fi
3341: else
3342: if test "$GCC" = yes; then
3343: CFLAGS="-O2"
3344: else
3345: CFLAGS=
3346: fi
3347: fi
1.43 ohara 3348: { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3349: $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
1.37 ohara 3350: if test "${ac_cv_prog_cc_c89+set}" = set; then
1.43 ohara 3351: $as_echo_n "(cached) " >&6
1.32 noro 3352: else
1.37 ohara 3353: ac_cv_prog_cc_c89=no
1.32 noro 3354: ac_save_CC=$CC
3355: cat >conftest.$ac_ext <<_ACEOF
3356: /* confdefs.h. */
3357: _ACEOF
3358: cat confdefs.h >>conftest.$ac_ext
3359: cat >>conftest.$ac_ext <<_ACEOF
3360: /* end confdefs.h. */
3361: #include <stdarg.h>
3362: #include <stdio.h>
3363: #include <sys/types.h>
3364: #include <sys/stat.h>
3365: /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3366: struct buf { int x; };
3367: FILE * (*rcsopen) (struct buf *, struct stat *, int);
3368: static char *e (p, i)
3369: char **p;
3370: int i;
3371: {
3372: return p[i];
3373: }
3374: static char *f (char * (*g) (char **, int), char **p, ...)
3375: {
3376: char *s;
3377: va_list v;
3378: va_start (v,p);
3379: s = g (p, va_arg (v,int));
3380: va_end (v);
3381: return s;
3382: }
3383:
3384: /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3385: function prototypes and stuff, but not '\xHH' hex character constants.
3386: These don't provoke an error unfortunately, instead are silently treated
1.37 ohara 3387: as 'x'. The following induces an error, until -std is added to get
1.32 noro 3388: proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3389: array size at least. It's necessary to write '\x00'==0 to get something
1.37 ohara 3390: that's true only with -std. */
1.32 noro 3391: int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3392:
1.37 ohara 3393: /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3394: inside strings and character constants. */
3395: #define FOO(x) 'x'
3396: int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3397:
1.32 noro 3398: int test (int i, double x);
3399: struct s1 {int (*f) (int a);};
3400: struct s2 {int (*f) (double a);};
3401: int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3402: int argc;
3403: char **argv;
3404: int
3405: main ()
3406: {
3407: return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3408: ;
3409: return 0;
3410: }
3411: _ACEOF
1.37 ohara 3412: for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3413: -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1.32 noro 3414: do
3415: CC="$ac_save_CC $ac_arg"
3416: rm -f conftest.$ac_objext
1.37 ohara 3417: if { (ac_try="$ac_compile"
3418: case "(($ac_try" in
3419: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3420: *) ac_try_echo=$ac_try;;
3421: esac
1.43 ohara 3422: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3423: $as_echo "$ac_try_echo") >&5
1.37 ohara 3424: (eval "$ac_compile") 2>conftest.er1
1.32 noro 3425: ac_status=$?
3426: grep -v '^ *+' conftest.er1 >conftest.err
3427: rm -f conftest.er1
3428: cat conftest.err >&5
1.43 ohara 3429: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.37 ohara 3430: (exit $ac_status); } && {
3431: test -z "$ac_c_werror_flag" ||
3432: test ! -s conftest.err
3433: } && test -s conftest.$ac_objext; then
3434: ac_cv_prog_cc_c89=$ac_arg
1.32 noro 3435: else
1.43 ohara 3436: $as_echo "$as_me: failed program was:" >&5
1.32 noro 3437: sed 's/^/| /' conftest.$ac_ext >&5
3438:
1.37 ohara 3439:
1.32 noro 3440: fi
1.37 ohara 3441:
3442: rm -f core conftest.err conftest.$ac_objext
3443: test "x$ac_cv_prog_cc_c89" != "xno" && break
1.32 noro 3444: done
1.37 ohara 3445: rm -f conftest.$ac_ext
1.32 noro 3446: CC=$ac_save_CC
3447:
3448: fi
1.37 ohara 3449: # AC_CACHE_VAL
3450: case "x$ac_cv_prog_cc_c89" in
3451: x)
1.43 ohara 3452: { $as_echo "$as_me:$LINENO: result: none needed" >&5
3453: $as_echo "none needed" >&6; } ;;
1.37 ohara 3454: xno)
1.43 ohara 3455: { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3456: $as_echo "unsupported" >&6; } ;;
1.32 noro 3457: *)
1.37 ohara 3458: CC="$CC $ac_cv_prog_cc_c89"
1.43 ohara 3459: { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3460: $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
1.32 noro 3461: esac
3462:
3463:
1.14 noro 3464: ac_ext=c
3465: ac_cpp='$CPP $CPPFLAGS'
3466: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3467: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3468: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.37 ohara 3469: DEPDIR="${am__leading_dot}deps"
3470:
3471: ac_config_commands="$ac_config_commands depfiles"
1.14 noro 3472:
3473:
3474: am_make=${MAKE-make}
3475: cat > confinc << 'END'
1.37 ohara 3476: am__doit:
1.14 noro 3477: @echo done
1.37 ohara 3478: .PHONY: am__doit
1.14 noro 3479: END
3480: # If we don't find an include directive, just comment out the code.
1.43 ohara 3481: { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3482: $as_echo_n "checking for style of include used by $am_make... " >&6; }
1.37 ohara 3483: am__include="#"
1.14 noro 3484: am__quote=
3485: _am_result=none
3486: # First try GNU make style include.
3487: echo "include confinc" > confmf
3488: # We grep out `Entering directory' and `Leaving directory'
3489: # messages which can occur if `w' ends up in MAKEFLAGS.
3490: # In particular we don't look at `^make:' because GNU make might
3491: # be invoked under some other name (usually "gmake"), in which
3492: # case it prints its new name instead of `make'.
1.37 ohara 3493: if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
1.14 noro 3494: am__include=include
3495: am__quote=
3496: _am_result=GNU
3497: fi
3498: # Now try BSD make style include.
3499: if test "$am__include" = "#"; then
3500: echo '.include "confinc"' > confmf
3501: if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3502: am__include=.include
1.37 ohara 3503: am__quote="\""
1.14 noro 3504: _am_result=BSD
3505: fi
3506: fi
3507:
3508:
1.43 ohara 3509: { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
3510: $as_echo "$_am_result" >&6; }
1.14 noro 3511: rm -f confinc confmf
3512:
1.37 ohara 3513: # Check whether --enable-dependency-tracking was given.
3514: if test "${enable_dependency_tracking+set}" = set; then
3515: enableval=$enable_dependency_tracking;
3516: fi
3517:
3518: if test "x$enable_dependency_tracking" != xno; then
3519: am_depcomp="$ac_aux_dir/depcomp"
3520: AMDEPBACKSLASH='\'
3521: fi
3522: if test "x$enable_dependency_tracking" != xno; then
3523: AMDEP_TRUE=
3524: AMDEP_FALSE='#'
3525: else
3526: AMDEP_TRUE='#'
3527: AMDEP_FALSE=
3528: fi
3529:
3530:
1.14 noro 3531:
3532: depcc="$CC" am_compiler_list=
3533:
1.43 ohara 3534: { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3535: $as_echo_n "checking dependency style of $depcc... " >&6; }
1.14 noro 3536: if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
1.43 ohara 3537: $as_echo_n "(cached) " >&6
1.14 noro 3538: else
3539: if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3540: # We make a subdir and do the tests there. Otherwise we can end up
3541: # making bogus files that we don't know about and never remove. For
3542: # instance it was reported that on HP-UX the gcc test will end up
3543: # making a dummy file named `D' -- because `-MD' means `put the output
3544: # in D'.
3545: mkdir conftest.dir
3546: # Copy depcomp to subdir because otherwise we won't find it if we're
3547: # using a relative directory.
3548: cp "$am_depcomp" conftest.dir
3549: cd conftest.dir
1.37 ohara 3550: # We will build objects and dependencies in a subdirectory because
3551: # it helps to detect inapplicable dependency modes. For instance
3552: # both Tru64's cc and ICC support -MD to output dependencies as a
3553: # side effect of compilation, but ICC will put the dependencies in
3554: # the current directory while Tru64 will put them in the object
3555: # directory.
3556: mkdir sub
1.14 noro 3557:
3558: am_cv_CC_dependencies_compiler_type=none
3559: if test "$am_compiler_list" = ""; then
3560: am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3561: fi
3562: for depmode in $am_compiler_list; do
1.37 ohara 3563: # Setup a source with many dependencies, because some compilers
3564: # like to wrap large dependency lists on column 80 (with \), and
3565: # we should not choose a depcomp mode which is confused by this.
3566: #
1.14 noro 3567: # We need to recreate these files for each test, as the compiler may
3568: # overwrite some of them when testing with obscure command lines.
3569: # This happens at least with the AIX C compiler.
1.37 ohara 3570: : > sub/conftest.c
3571: for i in 1 2 3 4 5 6; do
3572: echo '#include "conftst'$i'.h"' >> sub/conftest.c
3573: # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3574: # Solaris 8's {/usr,}/bin/sh.
3575: touch sub/conftst$i.h
3576: done
3577: echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
1.14 noro 3578:
3579: case $depmode in
3580: nosideeffect)
3581: # after this tag, mechanisms are not by side-effect, so they'll
3582: # only be used when explicitly requested
3583: if test "x$enable_dependency_tracking" = xyes; then
3584: continue
3585: else
3586: break
3587: fi
3588: ;;
3589: none) break ;;
3590: esac
3591: # We check with `-c' and `-o' for the sake of the "dashmstdout"
3592: # mode. It turns out that the SunPro C++ compiler does not properly
3593: # handle `-M -o', and we need to detect this.
3594: if depmode=$depmode \
1.37 ohara 3595: source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3596: depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3597: $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3598: >/dev/null 2>conftest.err &&
3599: grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3600: grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3601: grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
1.14 noro 3602: ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
1.37 ohara 3603: # icc doesn't choke on unknown options, it will just issue warnings
3604: # or remarks (even with -Werror). So we grep stderr for any message
3605: # that says an option was ignored or not supported.
3606: # When given -MP, icc 7.0 and 7.1 complain thusly:
3607: # icc: Command line warning: ignoring option '-M'; no argument required
3608: # The diagnosis changed in icc 8.0:
3609: # icc: Command line remark: option '-MP' not supported
3610: if (grep 'ignoring option' conftest.err ||
3611: grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3612: am_cv_CC_dependencies_compiler_type=$depmode
3613: break
3614: fi
1.14 noro 3615: fi
3616: done
3617:
3618: cd ..
3619: rm -rf conftest.dir
3620: else
3621: am_cv_CC_dependencies_compiler_type=none
3622: fi
3623:
3624: fi
1.43 ohara 3625: { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3626: $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
1.37 ohara 3627: CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3628:
3629: if
3630: test "x$enable_dependency_tracking" != xno \
3631: && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3632: am__fastdepCC_TRUE=
3633: am__fastdepCC_FALSE='#'
3634: else
3635: am__fastdepCC_TRUE='#'
3636: am__fastdepCC_FALSE=
3637: fi
1.14 noro 3638:
3639:
3640: # Find a good install program. We prefer a C program (faster),
3641: # so one script is as good as another. But avoid the broken or
3642: # incompatible versions:
3643: # SysV /etc/install, /usr/sbin/install
3644: # SunOS /usr/etc/install
3645: # IRIX /sbin/install
3646: # AIX /bin/install
3647: # AmigaOS /C/install, which installs bootblocks on floppy discs
3648: # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3649: # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3650: # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1.32 noro 3651: # OS/2's system install, which has a completely different semantic
1.14 noro 3652: # ./install, which can be erroneously created by make from ./install.sh.
1.43 ohara 3653: # Reject install programs that cannot install multiple files.
3654: { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3655: $as_echo_n "checking for a BSD-compatible install... " >&6; }
1.14 noro 3656: if test -z "$INSTALL"; then
3657: if test "${ac_cv_path_install+set}" = set; then
1.43 ohara 3658: $as_echo_n "(cached) " >&6
1.14 noro 3659: else
3660: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3661: for as_dir in $PATH
3662: do
3663: IFS=$as_save_IFS
3664: test -z "$as_dir" && as_dir=.
3665: # Account for people who put trailing slashes in PATH elements.
3666: case $as_dir/ in
3667: ./ | .// | /cC/* | \
3668: /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1.32 noro 3669: ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1.14 noro 3670: /usr/ucb/* ) ;;
3671: *)
3672: # OSF1 and SCO ODT 3.0 have their own names for install.
3673: # Don't use installbsd from OSF since it installs stuff as root
3674: # by default.
3675: for ac_prog in ginstall scoinst install; do
3676: for ac_exec_ext in '' $ac_executable_extensions; do
1.37 ohara 3677: if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
1.32 noro 3678: if test $ac_prog = install &&
3679: grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3680: # AIX install. It has an incompatible calling convention.
3681: :
3682: elif test $ac_prog = install &&
3683: grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3684: # program-specific install script used by HP pwplus--don't use.
3685: :
3686: else
1.43 ohara 3687: rm -rf conftest.one conftest.two conftest.dir
3688: echo one > conftest.one
3689: echo two > conftest.two
3690: mkdir conftest.dir
3691: if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3692: test -s conftest.one && test -s conftest.two &&
3693: test -s conftest.dir/conftest.one &&
3694: test -s conftest.dir/conftest.two
3695: then
3696: ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3697: break 3
3698: fi
1.32 noro 3699: fi
3700: fi
1.14 noro 3701: done
3702: done
3703: ;;
3704: esac
1.43 ohara 3705:
1.14 noro 3706: done
1.37 ohara 3707: IFS=$as_save_IFS
1.14 noro 3708:
1.43 ohara 3709: rm -rf conftest.one conftest.two conftest.dir
1.14 noro 3710:
3711: fi
3712: if test "${ac_cv_path_install+set}" = set; then
3713: INSTALL=$ac_cv_path_install
3714: else
1.37 ohara 3715: # As a last resort, use the slow shell script. Don't cache a
3716: # value for INSTALL within a source directory, because that will
1.14 noro 3717: # break other packages using the cache if that directory is
1.37 ohara 3718: # removed, or if the value is a relative name.
1.14 noro 3719: INSTALL=$ac_install_sh
3720: fi
3721: fi
1.43 ohara 3722: { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
3723: $as_echo "$INSTALL" >&6; }
1.14 noro 3724:
3725: # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3726: # It thinks the first close brace ends the variable substitution.
3727: test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3728:
3729: test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3730:
3731: test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3732:
1.43 ohara 3733: { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
3734: $as_echo_n "checking whether ln -s works... " >&6; }
1.14 noro 3735: LN_S=$as_ln_s
3736: if test "$LN_S" = "ln -s"; then
1.43 ohara 3737: { $as_echo "$as_me:$LINENO: result: yes" >&5
3738: $as_echo "yes" >&6; }
1.14 noro 3739: else
1.43 ohara 3740: { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3741: $as_echo "no, using $LN_S" >&6; }
1.14 noro 3742: fi
3743:
3744: if test -n "$ac_tool_prefix"; then
3745: # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3746: set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1.43 ohara 3747: { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3748: $as_echo_n "checking for $ac_word... " >&6; }
1.14 noro 3749: if test "${ac_cv_prog_RANLIB+set}" = set; then
1.43 ohara 3750: $as_echo_n "(cached) " >&6
1.14 noro 3751: else
3752: if test -n "$RANLIB"; then
3753: ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3754: else
3755: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3756: for as_dir in $PATH
3757: do
3758: IFS=$as_save_IFS
3759: test -z "$as_dir" && as_dir=.
3760: for ac_exec_ext in '' $ac_executable_extensions; do
1.37 ohara 3761: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.14 noro 3762: ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1.43 ohara 3763: $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.14 noro 3764: break 2
3765: fi
3766: done
3767: done
1.37 ohara 3768: IFS=$as_save_IFS
1.14 noro 3769:
3770: fi
3771: fi
3772: RANLIB=$ac_cv_prog_RANLIB
3773: if test -n "$RANLIB"; then
1.43 ohara 3774: { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
3775: $as_echo "$RANLIB" >&6; }
1.14 noro 3776: else
1.43 ohara 3777: { $as_echo "$as_me:$LINENO: result: no" >&5
3778: $as_echo "no" >&6; }
1.14 noro 3779: fi
3780:
1.37 ohara 3781:
1.14 noro 3782: fi
3783: if test -z "$ac_cv_prog_RANLIB"; then
3784: ac_ct_RANLIB=$RANLIB
3785: # Extract the first word of "ranlib", so it can be a program name with args.
3786: set dummy ranlib; ac_word=$2
1.43 ohara 3787: { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3788: $as_echo_n "checking for $ac_word... " >&6; }
1.14 noro 3789: if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
1.43 ohara 3790: $as_echo_n "(cached) " >&6
1.14 noro 3791: else
3792: if test -n "$ac_ct_RANLIB"; then
3793: ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3794: else
3795: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3796: for as_dir in $PATH
3797: do
3798: IFS=$as_save_IFS
3799: test -z "$as_dir" && as_dir=.
3800: for ac_exec_ext in '' $ac_executable_extensions; do
1.37 ohara 3801: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.14 noro 3802: ac_cv_prog_ac_ct_RANLIB="ranlib"
1.43 ohara 3803: $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.14 noro 3804: break 2
3805: fi
3806: done
3807: done
1.37 ohara 3808: IFS=$as_save_IFS
1.14 noro 3809:
3810: fi
3811: fi
3812: ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3813: if test -n "$ac_ct_RANLIB"; then
1.43 ohara 3814: { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3815: $as_echo "$ac_ct_RANLIB" >&6; }
1.14 noro 3816: else
1.43 ohara 3817: { $as_echo "$as_me:$LINENO: result: no" >&5
3818: $as_echo "no" >&6; }
1.14 noro 3819: fi
3820:
1.37 ohara 3821: if test "x$ac_ct_RANLIB" = x; then
3822: RANLIB=":"
3823: else
3824: case $cross_compiling:$ac_tool_warned in
3825: yes:)
1.43 ohara 3826: { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
1.37 ohara 3827: whose name does not start with the host triplet. If you think this
3828: configuration is useful to you, please write to autoconf@gnu.org." >&5
1.43 ohara 3829: $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
1.37 ohara 3830: whose name does not start with the host triplet. If you think this
3831: configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3832: ac_tool_warned=yes ;;
3833: esac
3834: RANLIB=$ac_ct_RANLIB
3835: fi
1.14 noro 3836: else
3837: RANLIB="$ac_cv_prog_RANLIB"
3838: fi
3839:
3840: for ac_prog in 'bison -y' byacc
3841: do
3842: # Extract the first word of "$ac_prog", so it can be a program name with args.
3843: set dummy $ac_prog; ac_word=$2
1.43 ohara 3844: { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3845: $as_echo_n "checking for $ac_word... " >&6; }
1.14 noro 3846: if test "${ac_cv_prog_YACC+set}" = set; then
1.43 ohara 3847: $as_echo_n "(cached) " >&6
1.14 noro 3848: else
3849: if test -n "$YACC"; then
3850: ac_cv_prog_YACC="$YACC" # Let the user override the test.
3851: else
3852: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3853: for as_dir in $PATH
3854: do
3855: IFS=$as_save_IFS
3856: test -z "$as_dir" && as_dir=.
3857: for ac_exec_ext in '' $ac_executable_extensions; do
1.37 ohara 3858: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.14 noro 3859: ac_cv_prog_YACC="$ac_prog"
1.43 ohara 3860: $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.14 noro 3861: break 2
3862: fi
3863: done
3864: done
1.37 ohara 3865: IFS=$as_save_IFS
1.14 noro 3866:
3867: fi
3868: fi
3869: YACC=$ac_cv_prog_YACC
3870: if test -n "$YACC"; then
1.43 ohara 3871: { $as_echo "$as_me:$LINENO: result: $YACC" >&5
3872: $as_echo "$YACC" >&6; }
1.14 noro 3873: else
1.43 ohara 3874: { $as_echo "$as_me:$LINENO: result: no" >&5
3875: $as_echo "no" >&6; }
1.14 noro 3876: fi
3877:
1.37 ohara 3878:
1.14 noro 3879: test -n "$YACC" && break
3880: done
3881: test -n "$YACC" || YACC="yacc"
3882:
3883:
3884:
3885: ac_ext=c
3886: ac_cpp='$CPP $CPPFLAGS'
3887: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3888: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3889: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.43 ohara 3890: { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3891: $as_echo_n "checking how to run the C preprocessor... " >&6; }
1.14 noro 3892: # On Suns, sometimes $CPP names a directory.
3893: if test -n "$CPP" && test -d "$CPP"; then
3894: CPP=
3895: fi
3896: if test -z "$CPP"; then
3897: if test "${ac_cv_prog_CPP+set}" = set; then
1.43 ohara 3898: $as_echo_n "(cached) " >&6
1.14 noro 3899: else
3900: # Double quotes because CPP needs to be expanded
3901: for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3902: do
3903: ac_preproc_ok=false
3904: for ac_c_preproc_warn_flag in '' yes
3905: do
3906: # Use a header file that comes with gcc, so configuring glibc
3907: # with a fresh cross-compiler works.
1.32 noro 3908: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3909: # <limits.h> exists even on freestanding compilers.
1.14 noro 3910: # On the NeXT, cc -E runs the code through the compiler's parser,
3911: # not just through cpp. "Syntax error" is here to catch this case.
3912: cat >conftest.$ac_ext <<_ACEOF
1.32 noro 3913: /* confdefs.h. */
3914: _ACEOF
3915: cat confdefs.h >>conftest.$ac_ext
3916: cat >>conftest.$ac_ext <<_ACEOF
3917: /* end confdefs.h. */
3918: #ifdef __STDC__
3919: # include <limits.h>
3920: #else
3921: # include <assert.h>
3922: #endif
3923: Syntax error
1.14 noro 3924: _ACEOF
1.37 ohara 3925: if { (ac_try="$ac_cpp conftest.$ac_ext"
3926: case "(($ac_try" in
3927: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3928: *) ac_try_echo=$ac_try;;
3929: esac
1.43 ohara 3930: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3931: $as_echo "$ac_try_echo") >&5
1.37 ohara 3932: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
1.14 noro 3933: ac_status=$?
1.32 noro 3934: grep -v '^ *+' conftest.er1 >conftest.err
1.14 noro 3935: rm -f conftest.er1
3936: cat conftest.err >&5
1.43 ohara 3937: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.37 ohara 3938: (exit $ac_status); } >/dev/null && {
3939: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3940: test ! -s conftest.err
3941: }; then
1.14 noro 3942: :
3943: else
1.43 ohara 3944: $as_echo "$as_me: failed program was:" >&5
1.32 noro 3945: sed 's/^/| /' conftest.$ac_ext >&5
3946:
1.14 noro 3947: # Broken: fails on valid input.
3948: continue
3949: fi
1.37 ohara 3950:
1.14 noro 3951: rm -f conftest.err conftest.$ac_ext
3952:
1.37 ohara 3953: # OK, works on sane cases. Now check whether nonexistent headers
1.14 noro 3954: # can be detected and how.
3955: cat >conftest.$ac_ext <<_ACEOF
1.32 noro 3956: /* confdefs.h. */
3957: _ACEOF
3958: cat confdefs.h >>conftest.$ac_ext
3959: cat >>conftest.$ac_ext <<_ACEOF
3960: /* end confdefs.h. */
1.14 noro 3961: #include <ac_nonexistent.h>
3962: _ACEOF
1.37 ohara 3963: if { (ac_try="$ac_cpp conftest.$ac_ext"
3964: case "(($ac_try" in
3965: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3966: *) ac_try_echo=$ac_try;;
3967: esac
1.43 ohara 3968: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3969: $as_echo "$ac_try_echo") >&5
1.37 ohara 3970: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
1.14 noro 3971: ac_status=$?
1.32 noro 3972: grep -v '^ *+' conftest.er1 >conftest.err
1.14 noro 3973: rm -f conftest.er1
3974: cat conftest.err >&5
1.43 ohara 3975: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.37 ohara 3976: (exit $ac_status); } >/dev/null && {
3977: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3978: test ! -s conftest.err
3979: }; then
1.14 noro 3980: # Broken: success on invalid input.
3981: continue
3982: else
1.43 ohara 3983: $as_echo "$as_me: failed program was:" >&5
1.32 noro 3984: sed 's/^/| /' conftest.$ac_ext >&5
3985:
1.14 noro 3986: # Passes both tests.
3987: ac_preproc_ok=:
3988: break
3989: fi
1.37 ohara 3990:
1.14 noro 3991: rm -f conftest.err conftest.$ac_ext
3992:
3993: done
3994: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3995: rm -f conftest.err conftest.$ac_ext
3996: if $ac_preproc_ok; then
3997: break
3998: fi
3999:
4000: done
4001: ac_cv_prog_CPP=$CPP
4002:
4003: fi
4004: CPP=$ac_cv_prog_CPP
4005: else
4006: ac_cv_prog_CPP=$CPP
4007: fi
1.43 ohara 4008: { $as_echo "$as_me:$LINENO: result: $CPP" >&5
4009: $as_echo "$CPP" >&6; }
1.14 noro 4010: ac_preproc_ok=false
4011: for ac_c_preproc_warn_flag in '' yes
4012: do
4013: # Use a header file that comes with gcc, so configuring glibc
4014: # with a fresh cross-compiler works.
1.32 noro 4015: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4016: # <limits.h> exists even on freestanding compilers.
1.14 noro 4017: # On the NeXT, cc -E runs the code through the compiler's parser,
4018: # not just through cpp. "Syntax error" is here to catch this case.
4019: cat >conftest.$ac_ext <<_ACEOF
1.32 noro 4020: /* confdefs.h. */
4021: _ACEOF
4022: cat confdefs.h >>conftest.$ac_ext
4023: cat >>conftest.$ac_ext <<_ACEOF
4024: /* end confdefs.h. */
4025: #ifdef __STDC__
4026: # include <limits.h>
4027: #else
4028: # include <assert.h>
4029: #endif
4030: Syntax error
1.14 noro 4031: _ACEOF
1.37 ohara 4032: if { (ac_try="$ac_cpp conftest.$ac_ext"
4033: case "(($ac_try" in
4034: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4035: *) ac_try_echo=$ac_try;;
4036: esac
1.43 ohara 4037: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4038: $as_echo "$ac_try_echo") >&5
1.37 ohara 4039: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
1.14 noro 4040: ac_status=$?
1.32 noro 4041: grep -v '^ *+' conftest.er1 >conftest.err
1.14 noro 4042: rm -f conftest.er1
4043: cat conftest.err >&5
1.43 ohara 4044: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.37 ohara 4045: (exit $ac_status); } >/dev/null && {
4046: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4047: test ! -s conftest.err
4048: }; then
1.14 noro 4049: :
4050: else
1.43 ohara 4051: $as_echo "$as_me: failed program was:" >&5
1.32 noro 4052: sed 's/^/| /' conftest.$ac_ext >&5
4053:
1.14 noro 4054: # Broken: fails on valid input.
4055: continue
4056: fi
1.37 ohara 4057:
1.14 noro 4058: rm -f conftest.err conftest.$ac_ext
4059:
1.37 ohara 4060: # OK, works on sane cases. Now check whether nonexistent headers
1.14 noro 4061: # can be detected and how.
4062: cat >conftest.$ac_ext <<_ACEOF
1.32 noro 4063: /* confdefs.h. */
4064: _ACEOF
4065: cat confdefs.h >>conftest.$ac_ext
4066: cat >>conftest.$ac_ext <<_ACEOF
4067: /* end confdefs.h. */
1.14 noro 4068: #include <ac_nonexistent.h>
4069: _ACEOF
1.37 ohara 4070: if { (ac_try="$ac_cpp conftest.$ac_ext"
4071: case "(($ac_try" in
4072: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4073: *) ac_try_echo=$ac_try;;
4074: esac
1.43 ohara 4075: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4076: $as_echo "$ac_try_echo") >&5
1.37 ohara 4077: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
1.14 noro 4078: ac_status=$?
1.32 noro 4079: grep -v '^ *+' conftest.er1 >conftest.err
1.14 noro 4080: rm -f conftest.er1
4081: cat conftest.err >&5
1.43 ohara 4082: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.37 ohara 4083: (exit $ac_status); } >/dev/null && {
4084: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4085: test ! -s conftest.err
4086: }; then
1.14 noro 4087: # Broken: success on invalid input.
4088: continue
4089: else
1.43 ohara 4090: $as_echo "$as_me: failed program was:" >&5
1.32 noro 4091: sed 's/^/| /' conftest.$ac_ext >&5
4092:
1.14 noro 4093: # Passes both tests.
4094: ac_preproc_ok=:
4095: break
4096: fi
1.37 ohara 4097:
1.14 noro 4098: rm -f conftest.err conftest.$ac_ext
4099:
4100: done
4101: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4102: rm -f conftest.err conftest.$ac_ext
4103: if $ac_preproc_ok; then
4104: :
4105: else
1.43 ohara 4106: { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
1.32 noro 4107: See \`config.log' for more details." >&5
1.43 ohara 4108: $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
1.32 noro 4109: See \`config.log' for more details." >&2;}
1.14 noro 4110: { (exit 1); exit 1; }; }
4111: fi
4112:
4113: ac_ext=c
4114: ac_cpp='$CPP $CPPFLAGS'
4115: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4116: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4117: ac_compiler_gnu=$ac_cv_c_compiler_gnu
4118:
4119:
1.43 ohara 4120: { $as_echo "$as_me:$LINENO: checking for X" >&5
4121: $as_echo_n "checking for X... " >&6; }
1.14 noro 4122:
4123:
1.37 ohara 4124: # Check whether --with-x was given.
1.14 noro 4125: if test "${with_x+set}" = set; then
1.37 ohara 4126: withval=$with_x;
4127: fi
1.14 noro 4128:
4129: # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
4130: if test "x$with_x" = xno; then
4131: # The user explicitly disabled X.
4132: have_x=disabled
4133: else
1.37 ohara 4134: case $x_includes,$x_libraries in #(
1.43 ohara 4135: *\'*) { { $as_echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
4136: $as_echo "$as_me: error: Cannot use X directory names containing '" >&2;}
1.37 ohara 4137: { (exit 1); exit 1; }; };; #(
4138: *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
1.43 ohara 4139: $as_echo_n "(cached) " >&6
1.14 noro 4140: else
4141: # One or both of the vars are not set, and there is no cached value.
4142: ac_x_includes=no ac_x_libraries=no
1.37 ohara 4143: rm -f -r conftest.dir
1.14 noro 4144: if mkdir conftest.dir; then
4145: cd conftest.dir
4146: cat >Imakefile <<'_ACEOF'
1.37 ohara 4147: incroot:
4148: @echo incroot='${INCROOT}'
4149: usrlibdir:
4150: @echo usrlibdir='${USRLIBDIR}'
4151: libdir:
4152: @echo libdir='${LIBDIR}'
1.14 noro 4153: _ACEOF
1.37 ohara 4154: if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
1.14 noro 4155: # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1.37 ohara 4156: for ac_var in incroot usrlibdir libdir; do
4157: eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
4158: done
1.14 noro 4159: # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
1.43 ohara 4160: for ac_extension in a so sl dylib la dll; do
1.37 ohara 4161: if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
4162: test -f "$ac_im_libdir/libX11.$ac_extension"; then
1.32 noro 4163: ac_im_usrlibdir=$ac_im_libdir; break
1.14 noro 4164: fi
4165: done
4166: # Screen out bogus values from the imake configuration. They are
4167: # bogus both because they are the default anyway, and because
4168: # using them would break gcc on systems where it needs fixed includes.
4169: case $ac_im_incroot in
1.37 ohara 4170: /usr/include) ac_x_includes= ;;
1.14 noro 4171: *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
4172: esac
4173: case $ac_im_usrlibdir in
4174: /usr/lib | /lib) ;;
4175: *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
4176: esac
4177: fi
4178: cd ..
1.37 ohara 4179: rm -f -r conftest.dir
1.14 noro 4180: fi
4181:
4182: # Standard set of common directories for X headers.
4183: # Check X11 before X11Rn because it is often a symlink to the current release.
4184: ac_x_header_dirs='
4185: /usr/X11/include
4186: /usr/X11R6/include
4187: /usr/X11R5/include
4188: /usr/X11R4/include
4189:
4190: /usr/include/X11
4191: /usr/include/X11R6
4192: /usr/include/X11R5
4193: /usr/include/X11R4
4194:
4195: /usr/local/X11/include
4196: /usr/local/X11R6/include
4197: /usr/local/X11R5/include
4198: /usr/local/X11R4/include
4199:
4200: /usr/local/include/X11
4201: /usr/local/include/X11R6
4202: /usr/local/include/X11R5
4203: /usr/local/include/X11R4
4204:
4205: /usr/X386/include
4206: /usr/x386/include
4207: /usr/XFree86/include/X11
4208:
4209: /usr/include
4210: /usr/local/include
4211: /usr/unsupported/include
4212: /usr/athena/include
4213: /usr/local/x11r5/include
4214: /usr/lpp/Xamples/include
4215:
4216: /usr/openwin/include
4217: /usr/openwin/share/include'
4218:
4219: if test "$ac_x_includes" = no; then
1.37 ohara 4220: # Guess where to find include files, by looking for Xlib.h.
1.14 noro 4221: # First, try using that file with no special directory specified.
4222: cat >conftest.$ac_ext <<_ACEOF
1.32 noro 4223: /* confdefs.h. */
4224: _ACEOF
4225: cat confdefs.h >>conftest.$ac_ext
4226: cat >>conftest.$ac_ext <<_ACEOF
4227: /* end confdefs.h. */
1.37 ohara 4228: #include <X11/Xlib.h>
1.14 noro 4229: _ACEOF
1.37 ohara 4230: if { (ac_try="$ac_cpp conftest.$ac_ext"
4231: case "(($ac_try" in
4232: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4233: *) ac_try_echo=$ac_try;;
4234: esac
1.43 ohara 4235: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4236: $as_echo "$ac_try_echo") >&5
1.37 ohara 4237: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
1.14 noro 4238: ac_status=$?
1.32 noro 4239: grep -v '^ *+' conftest.er1 >conftest.err
1.14 noro 4240: rm -f conftest.er1
4241: cat conftest.err >&5
1.43 ohara 4242: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.37 ohara 4243: (exit $ac_status); } >/dev/null && {
4244: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4245: test ! -s conftest.err
4246: }; then
1.14 noro 4247: # We can compile using X headers with no special include directory.
4248: ac_x_includes=
4249: else
1.43 ohara 4250: $as_echo "$as_me: failed program was:" >&5
1.32 noro 4251: sed 's/^/| /' conftest.$ac_ext >&5
4252:
1.14 noro 4253: for ac_dir in $ac_x_header_dirs; do
1.37 ohara 4254: if test -r "$ac_dir/X11/Xlib.h"; then
1.14 noro 4255: ac_x_includes=$ac_dir
4256: break
4257: fi
4258: done
4259: fi
1.37 ohara 4260:
1.14 noro 4261: rm -f conftest.err conftest.$ac_ext
4262: fi # $ac_x_includes = no
4263:
4264: if test "$ac_x_libraries" = no; then
4265: # Check for the libraries.
4266: # See if we find them without any special options.
4267: # Don't add to $LIBS permanently.
4268: ac_save_LIBS=$LIBS
1.37 ohara 4269: LIBS="-lX11 $LIBS"
1.14 noro 4270: cat >conftest.$ac_ext <<_ACEOF
1.32 noro 4271: /* confdefs.h. */
4272: _ACEOF
4273: cat confdefs.h >>conftest.$ac_ext
4274: cat >>conftest.$ac_ext <<_ACEOF
4275: /* end confdefs.h. */
1.37 ohara 4276: #include <X11/Xlib.h>
1.14 noro 4277: int
4278: main ()
4279: {
1.37 ohara 4280: XrmInitialize ()
1.14 noro 4281: ;
4282: return 0;
4283: }
4284: _ACEOF
4285: rm -f conftest.$ac_objext conftest$ac_exeext
1.37 ohara 4286: if { (ac_try="$ac_link"
4287: case "(($ac_try" in
4288: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4289: *) ac_try_echo=$ac_try;;
4290: esac
1.43 ohara 4291: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4292: $as_echo "$ac_try_echo") >&5
1.37 ohara 4293: (eval "$ac_link") 2>conftest.er1
1.14 noro 4294: ac_status=$?
1.32 noro 4295: grep -v '^ *+' conftest.er1 >conftest.err
4296: rm -f conftest.er1
4297: cat conftest.err >&5
1.43 ohara 4298: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.37 ohara 4299: (exit $ac_status); } && {
4300: test -z "$ac_c_werror_flag" ||
4301: test ! -s conftest.err
1.43 ohara 4302: } && test -s conftest$ac_exeext && {
4303: test "$cross_compiling" = yes ||
4304: $as_test_x conftest$ac_exeext
4305: }; then
1.14 noro 4306: LIBS=$ac_save_LIBS
4307: # We can link X programs with no special library path.
4308: ac_x_libraries=
4309: else
1.43 ohara 4310: $as_echo "$as_me: failed program was:" >&5
1.32 noro 4311: sed 's/^/| /' conftest.$ac_ext >&5
4312:
1.37 ohara 4313: LIBS=$ac_save_LIBS
1.43 ohara 4314: for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
1.14 noro 4315: do
4316: # Don't even attempt the hair of trying to link an X program!
1.43 ohara 4317: for ac_extension in a so sl dylib la dll; do
1.37 ohara 4318: if test -r "$ac_dir/libX11.$ac_extension"; then
1.14 noro 4319: ac_x_libraries=$ac_dir
4320: break 2
4321: fi
4322: done
4323: done
4324: fi
1.37 ohara 4325:
1.43 ohara 4326: rm -rf conftest.dSYM
1.37 ohara 4327: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.32 noro 4328: conftest$ac_exeext conftest.$ac_ext
1.14 noro 4329: fi # $ac_x_libraries = no
4330:
1.37 ohara 4331: case $ac_x_includes,$ac_x_libraries in #(
4332: no,* | *,no | *\'*)
4333: # Didn't find X, or a directory has "'" in its name.
4334: ac_cv_have_x="have_x=no";; #(
4335: *)
4336: # Record where we found X for the cache.
4337: ac_cv_have_x="have_x=yes\
4338: ac_x_includes='$ac_x_includes'\
4339: ac_x_libraries='$ac_x_libraries'"
4340: esac
1.14 noro 4341: fi
1.37 ohara 4342: ;; #(
4343: *) have_x=yes;;
4344: esac
1.14 noro 4345: eval "$ac_cv_have_x"
4346: fi # $with_x != no
4347:
4348: if test "$have_x" != yes; then
1.43 ohara 4349: { $as_echo "$as_me:$LINENO: result: $have_x" >&5
4350: $as_echo "$have_x" >&6; }
1.14 noro 4351: no_x=yes
4352: else
4353: # If each of the values was on the command line, it overrides each guess.
4354: test "x$x_includes" = xNONE && x_includes=$ac_x_includes
4355: test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
4356: # Update the cache value to reflect the command line values.
1.37 ohara 4357: ac_cv_have_x="have_x=yes\
4358: ac_x_includes='$x_includes'\
4359: ac_x_libraries='$x_libraries'"
1.43 ohara 4360: { $as_echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
4361: $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
1.14 noro 4362: fi
4363:
4364: if test "$no_x" = yes; then
4365: # Not all programs may use this symbol, but it does not hurt to define it.
4366:
4367: cat >>confdefs.h <<\_ACEOF
4368: #define X_DISPLAY_MISSING 1
4369: _ACEOF
4370:
4371: X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
4372: else
4373: if test -n "$x_includes"; then
4374: X_CFLAGS="$X_CFLAGS -I$x_includes"
4375: fi
4376:
4377: # It would also be nice to do this for all -L options, not just this one.
4378: if test -n "$x_libraries"; then
4379: X_LIBS="$X_LIBS -L$x_libraries"
4380: # For Solaris; some versions of Sun CC require a space after -R and
4381: # others require no space. Words are not sufficient . . . .
1.43 ohara 4382: { $as_echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
4383: $as_echo_n "checking whether -R must be followed by a space... " >&6; }
1.37 ohara 4384: ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
4385: ac_xsave_c_werror_flag=$ac_c_werror_flag
4386: ac_c_werror_flag=yes
4387: cat >conftest.$ac_ext <<_ACEOF
1.32 noro 4388: /* confdefs.h. */
4389: _ACEOF
4390: cat confdefs.h >>conftest.$ac_ext
4391: cat >>conftest.$ac_ext <<_ACEOF
4392: /* end confdefs.h. */
1.14 noro 4393:
4394: int
4395: main ()
4396: {
4397:
4398: ;
4399: return 0;
4400: }
4401: _ACEOF
4402: rm -f conftest.$ac_objext conftest$ac_exeext
1.37 ohara 4403: if { (ac_try="$ac_link"
4404: case "(($ac_try" in
4405: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4406: *) ac_try_echo=$ac_try;;
4407: esac
1.43 ohara 4408: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4409: $as_echo "$ac_try_echo") >&5
1.37 ohara 4410: (eval "$ac_link") 2>conftest.er1
1.14 noro 4411: ac_status=$?
1.32 noro 4412: grep -v '^ *+' conftest.er1 >conftest.err
4413: rm -f conftest.er1
4414: cat conftest.err >&5
1.43 ohara 4415: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.37 ohara 4416: (exit $ac_status); } && {
4417: test -z "$ac_c_werror_flag" ||
4418: test ! -s conftest.err
1.43 ohara 4419: } && test -s conftest$ac_exeext && {
4420: test "$cross_compiling" = yes ||
4421: $as_test_x conftest$ac_exeext
4422: }; then
4423: { $as_echo "$as_me:$LINENO: result: no" >&5
4424: $as_echo "no" >&6; }
1.37 ohara 4425: X_LIBS="$X_LIBS -R$x_libraries"
1.14 noro 4426: else
1.43 ohara 4427: $as_echo "$as_me: failed program was:" >&5
1.32 noro 4428: sed 's/^/| /' conftest.$ac_ext >&5
4429:
1.14 noro 4430: LIBS="$ac_xsave_LIBS -R $x_libraries"
1.37 ohara 4431: cat >conftest.$ac_ext <<_ACEOF
1.32 noro 4432: /* confdefs.h. */
4433: _ACEOF
4434: cat confdefs.h >>conftest.$ac_ext
4435: cat >>conftest.$ac_ext <<_ACEOF
4436: /* end confdefs.h. */
1.14 noro 4437:
4438: int
4439: main ()
4440: {
4441:
4442: ;
4443: return 0;
4444: }
4445: _ACEOF
4446: rm -f conftest.$ac_objext conftest$ac_exeext
1.37 ohara 4447: if { (ac_try="$ac_link"
4448: case "(($ac_try" in
4449: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4450: *) ac_try_echo=$ac_try;;
4451: esac
1.43 ohara 4452: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4453: $as_echo "$ac_try_echo") >&5
1.37 ohara 4454: (eval "$ac_link") 2>conftest.er1
1.14 noro 4455: ac_status=$?
1.32 noro 4456: grep -v '^ *+' conftest.er1 >conftest.err
4457: rm -f conftest.er1
4458: cat conftest.err >&5
1.43 ohara 4459: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.37 ohara 4460: (exit $ac_status); } && {
4461: test -z "$ac_c_werror_flag" ||
4462: test ! -s conftest.err
1.43 ohara 4463: } && test -s conftest$ac_exeext && {
4464: test "$cross_compiling" = yes ||
4465: $as_test_x conftest$ac_exeext
4466: }; then
4467: { $as_echo "$as_me:$LINENO: result: yes" >&5
4468: $as_echo "yes" >&6; }
1.37 ohara 4469: X_LIBS="$X_LIBS -R $x_libraries"
1.14 noro 4470: else
1.43 ohara 4471: $as_echo "$as_me: failed program was:" >&5
1.32 noro 4472: sed 's/^/| /' conftest.$ac_ext >&5
4473:
1.43 ohara 4474: { $as_echo "$as_me:$LINENO: result: neither works" >&5
4475: $as_echo "neither works" >&6; }
1.37 ohara 4476: fi
4477:
1.43 ohara 4478: rm -rf conftest.dSYM
1.37 ohara 4479: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4480: conftest$ac_exeext conftest.$ac_ext
1.14 noro 4481: fi
1.37 ohara 4482:
1.43 ohara 4483: rm -rf conftest.dSYM
1.37 ohara 4484: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.32 noro 4485: conftest$ac_exeext conftest.$ac_ext
1.37 ohara 4486: ac_c_werror_flag=$ac_xsave_c_werror_flag
4487: LIBS=$ac_xsave_LIBS
1.14 noro 4488: fi
4489:
4490: # Check for system-dependent libraries X programs must link with.
4491: # Do this before checking for the system-independent R6 libraries
4492: # (-lICE), since we may need -lsocket or whatever for X linking.
4493:
4494: if test "$ISC" = yes; then
4495: X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
4496: else
4497: # Martyn Johnson says this is needed for Ultrix, if the X
4498: # libraries were built with DECnet support. And Karl Berry says
4499: # the Alpha needs dnet_stub (dnet does not exist).
4500: ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
4501: cat >conftest.$ac_ext <<_ACEOF
1.32 noro 4502: /* confdefs.h. */
4503: _ACEOF
4504: cat confdefs.h >>conftest.$ac_ext
4505: cat >>conftest.$ac_ext <<_ACEOF
4506: /* end confdefs.h. */
1.14 noro 4507:
1.37 ohara 4508: /* Override any GCC internal prototype to avoid an error.
4509: Use char because int might match the return type of a GCC
4510: builtin and then its argument prototype would still apply. */
1.14 noro 4511: #ifdef __cplusplus
4512: extern "C"
4513: #endif
4514: char XOpenDisplay ();
4515: int
4516: main ()
4517: {
1.37 ohara 4518: return XOpenDisplay ();
1.14 noro 4519: ;
4520: return 0;
4521: }
4522: _ACEOF
4523: rm -f conftest.$ac_objext conftest$ac_exeext
1.37 ohara 4524: if { (ac_try="$ac_link"
4525: case "(($ac_try" in
4526: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4527: *) ac_try_echo=$ac_try;;
4528: esac
1.43 ohara 4529: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4530: $as_echo "$ac_try_echo") >&5
1.37 ohara 4531: (eval "$ac_link") 2>conftest.er1
1.14 noro 4532: ac_status=$?
1.32 noro 4533: grep -v '^ *+' conftest.er1 >conftest.err
4534: rm -f conftest.er1
4535: cat conftest.err >&5
1.43 ohara 4536: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.37 ohara 4537: (exit $ac_status); } && {
4538: test -z "$ac_c_werror_flag" ||
4539: test ! -s conftest.err
1.43 ohara 4540: } && test -s conftest$ac_exeext && {
4541: test "$cross_compiling" = yes ||
4542: $as_test_x conftest$ac_exeext
4543: }; then
1.14 noro 4544: :
4545: else
1.43 ohara 4546: $as_echo "$as_me: failed program was:" >&5
1.32 noro 4547: sed 's/^/| /' conftest.$ac_ext >&5
4548:
1.43 ohara 4549: { $as_echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
4550: $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
1.14 noro 4551: if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
1.43 ohara 4552: $as_echo_n "(cached) " >&6
1.14 noro 4553: else
4554: ac_check_lib_save_LIBS=$LIBS
4555: LIBS="-ldnet $LIBS"
4556: cat >conftest.$ac_ext <<_ACEOF
1.32 noro 4557: /* confdefs.h. */
4558: _ACEOF
4559: cat confdefs.h >>conftest.$ac_ext
4560: cat >>conftest.$ac_ext <<_ACEOF
4561: /* end confdefs.h. */
1.14 noro 4562:
1.37 ohara 4563: /* Override any GCC internal prototype to avoid an error.
4564: Use char because int might match the return type of a GCC
4565: builtin and then its argument prototype would still apply. */
1.14 noro 4566: #ifdef __cplusplus
4567: extern "C"
4568: #endif
4569: char dnet_ntoa ();
4570: int
4571: main ()
4572: {
1.37 ohara 4573: return dnet_ntoa ();
1.14 noro 4574: ;
4575: return 0;
4576: }
4577: _ACEOF
4578: rm -f conftest.$ac_objext conftest$ac_exeext
1.37 ohara 4579: if { (ac_try="$ac_link"
4580: case "(($ac_try" in
4581: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4582: *) ac_try_echo=$ac_try;;
4583: esac
1.43 ohara 4584: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4585: $as_echo "$ac_try_echo") >&5
1.37 ohara 4586: (eval "$ac_link") 2>conftest.er1
1.14 noro 4587: ac_status=$?
1.32 noro 4588: grep -v '^ *+' conftest.er1 >conftest.err
4589: rm -f conftest.er1
4590: cat conftest.err >&5
1.43 ohara 4591: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.37 ohara 4592: (exit $ac_status); } && {
4593: test -z "$ac_c_werror_flag" ||
4594: test ! -s conftest.err
1.43 ohara 4595: } && test -s conftest$ac_exeext && {
4596: test "$cross_compiling" = yes ||
4597: $as_test_x conftest$ac_exeext
4598: }; then
1.14 noro 4599: ac_cv_lib_dnet_dnet_ntoa=yes
4600: else
1.43 ohara 4601: $as_echo "$as_me: failed program was:" >&5
1.32 noro 4602: sed 's/^/| /' conftest.$ac_ext >&5
4603:
1.37 ohara 4604: ac_cv_lib_dnet_dnet_ntoa=no
1.14 noro 4605: fi
1.37 ohara 4606:
1.43 ohara 4607: rm -rf conftest.dSYM
1.37 ohara 4608: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.32 noro 4609: conftest$ac_exeext conftest.$ac_ext
1.14 noro 4610: LIBS=$ac_check_lib_save_LIBS
4611: fi
1.43 ohara 4612: { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
4613: $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
1.14 noro 4614: if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
4615: X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
4616: fi
4617:
4618: if test $ac_cv_lib_dnet_dnet_ntoa = no; then
1.43 ohara 4619: { $as_echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
4620: $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
1.14 noro 4621: if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
1.43 ohara 4622: $as_echo_n "(cached) " >&6
1.14 noro 4623: else
4624: ac_check_lib_save_LIBS=$LIBS
4625: LIBS="-ldnet_stub $LIBS"
4626: cat >conftest.$ac_ext <<_ACEOF
1.32 noro 4627: /* confdefs.h. */
4628: _ACEOF
4629: cat confdefs.h >>conftest.$ac_ext
4630: cat >>conftest.$ac_ext <<_ACEOF
4631: /* end confdefs.h. */
1.14 noro 4632:
1.37 ohara 4633: /* Override any GCC internal prototype to avoid an error.
4634: Use char because int might match the return type of a GCC
4635: builtin and then its argument prototype would still apply. */
1.14 noro 4636: #ifdef __cplusplus
4637: extern "C"
4638: #endif
4639: char dnet_ntoa ();
4640: int
4641: main ()
4642: {
1.37 ohara 4643: return dnet_ntoa ();
1.14 noro 4644: ;
4645: return 0;
4646: }
4647: _ACEOF
4648: rm -f conftest.$ac_objext conftest$ac_exeext
1.37 ohara 4649: if { (ac_try="$ac_link"
4650: case "(($ac_try" in
4651: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4652: *) ac_try_echo=$ac_try;;
4653: esac
1.43 ohara 4654: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4655: $as_echo "$ac_try_echo") >&5
1.37 ohara 4656: (eval "$ac_link") 2>conftest.er1
1.14 noro 4657: ac_status=$?
1.32 noro 4658: grep -v '^ *+' conftest.er1 >conftest.err
4659: rm -f conftest.er1
4660: cat conftest.err >&5
1.43 ohara 4661: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.37 ohara 4662: (exit $ac_status); } && {
4663: test -z "$ac_c_werror_flag" ||
4664: test ! -s conftest.err
1.43 ohara 4665: } && test -s conftest$ac_exeext && {
4666: test "$cross_compiling" = yes ||
4667: $as_test_x conftest$ac_exeext
4668: }; then
1.14 noro 4669: ac_cv_lib_dnet_stub_dnet_ntoa=yes
4670: else
1.43 ohara 4671: $as_echo "$as_me: failed program was:" >&5
1.32 noro 4672: sed 's/^/| /' conftest.$ac_ext >&5
4673:
1.37 ohara 4674: ac_cv_lib_dnet_stub_dnet_ntoa=no
1.14 noro 4675: fi
1.37 ohara 4676:
1.43 ohara 4677: rm -rf conftest.dSYM
1.37 ohara 4678: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.32 noro 4679: conftest$ac_exeext conftest.$ac_ext
1.14 noro 4680: LIBS=$ac_check_lib_save_LIBS
4681: fi
1.43 ohara 4682: { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
4683: $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
1.14 noro 4684: if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
4685: X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
4686: fi
4687:
4688: fi
4689: fi
1.37 ohara 4690:
1.43 ohara 4691: rm -rf conftest.dSYM
1.37 ohara 4692: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.32 noro 4693: conftest$ac_exeext conftest.$ac_ext
1.14 noro 4694: LIBS="$ac_xsave_LIBS"
4695:
4696: # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
4697: # to get the SysV transport functions.
4698: # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
4699: # needs -lnsl.
4700: # The nsl library prevents programs from opening the X display
4701: # on Irix 5.2, according to T.E. Dickey.
4702: # The functions gethostbyname, getservbyname, and inet_addr are
4703: # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
1.43 ohara 4704: { $as_echo "$as_me:$LINENO: checking for gethostbyname" >&5
4705: $as_echo_n "checking for gethostbyname... " >&6; }
1.14 noro 4706: if test "${ac_cv_func_gethostbyname+set}" = set; then
1.43 ohara 4707: $as_echo_n "(cached) " >&6
1.14 noro 4708: else
4709: cat >conftest.$ac_ext <<_ACEOF
1.32 noro 4710: /* confdefs.h. */
4711: _ACEOF
4712: cat confdefs.h >>conftest.$ac_ext
4713: cat >>conftest.$ac_ext <<_ACEOF
4714: /* end confdefs.h. */
4715: /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
4716: For example, HP-UX 11i <limits.h> declares gettimeofday. */
4717: #define gethostbyname innocuous_gethostbyname
4718:
1.14 noro 4719: /* System header to define __stub macros and hopefully few prototypes,
1.32 noro 4720: which can conflict with char gethostbyname (); below.
4721: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4722: <limits.h> exists even on freestanding compilers. */
4723:
4724: #ifdef __STDC__
4725: # include <limits.h>
4726: #else
4727: # include <assert.h>
4728: #endif
4729:
4730: #undef gethostbyname
4731:
1.37 ohara 4732: /* Override any GCC internal prototype to avoid an error.
4733: Use char because int might match the return type of a GCC
4734: builtin and then its argument prototype would still apply. */
1.14 noro 4735: #ifdef __cplusplus
4736: extern "C"
4737: #endif
4738: char gethostbyname ();
4739: /* The GNU C library defines this for functions which it implements
4740: to always fail with ENOSYS. Some functions are actually named
4741: something starting with __ and the normal name is an alias. */
1.37 ohara 4742: #if defined __stub_gethostbyname || defined __stub___gethostbyname
1.14 noro 4743: choke me
4744: #endif
4745:
1.32 noro 4746: int
4747: main ()
4748: {
1.37 ohara 4749: return gethostbyname ();
1.14 noro 4750: ;
4751: return 0;
4752: }
4753: _ACEOF
4754: rm -f conftest.$ac_objext conftest$ac_exeext
1.37 ohara 4755: if { (ac_try="$ac_link"
4756: case "(($ac_try" in
4757: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4758: *) ac_try_echo=$ac_try;;
4759: esac
1.43 ohara 4760: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4761: $as_echo "$ac_try_echo") >&5
1.37 ohara 4762: (eval "$ac_link") 2>conftest.er1
1.14 noro 4763: ac_status=$?
1.32 noro 4764: grep -v '^ *+' conftest.er1 >conftest.err
4765: rm -f conftest.er1
4766: cat conftest.err >&5
1.43 ohara 4767: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.37 ohara 4768: (exit $ac_status); } && {
4769: test -z "$ac_c_werror_flag" ||
4770: test ! -s conftest.err
1.43 ohara 4771: } && test -s conftest$ac_exeext && {
4772: test "$cross_compiling" = yes ||
4773: $as_test_x conftest$ac_exeext
4774: }; then
1.14 noro 4775: ac_cv_func_gethostbyname=yes
4776: else
1.43 ohara 4777: $as_echo "$as_me: failed program was:" >&5
1.32 noro 4778: sed 's/^/| /' conftest.$ac_ext >&5
4779:
1.37 ohara 4780: ac_cv_func_gethostbyname=no
1.14 noro 4781: fi
1.37 ohara 4782:
1.43 ohara 4783: rm -rf conftest.dSYM
1.37 ohara 4784: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.32 noro 4785: conftest$ac_exeext conftest.$ac_ext
1.14 noro 4786: fi
1.43 ohara 4787: { $as_echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
4788: $as_echo "$ac_cv_func_gethostbyname" >&6; }
1.14 noro 4789:
4790: if test $ac_cv_func_gethostbyname = no; then
1.43 ohara 4791: { $as_echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
4792: $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
1.14 noro 4793: if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
1.43 ohara 4794: $as_echo_n "(cached) " >&6
1.14 noro 4795: else
4796: ac_check_lib_save_LIBS=$LIBS
4797: LIBS="-lnsl $LIBS"
4798: cat >conftest.$ac_ext <<_ACEOF
1.32 noro 4799: /* confdefs.h. */
4800: _ACEOF
4801: cat confdefs.h >>conftest.$ac_ext
4802: cat >>conftest.$ac_ext <<_ACEOF
4803: /* end confdefs.h. */
1.14 noro 4804:
1.37 ohara 4805: /* Override any GCC internal prototype to avoid an error.
4806: Use char because int might match the return type of a GCC
4807: builtin and then its argument prototype would still apply. */
1.14 noro 4808: #ifdef __cplusplus
4809: extern "C"
4810: #endif
4811: char gethostbyname ();
4812: int
4813: main ()
4814: {
1.37 ohara 4815: return gethostbyname ();
1.14 noro 4816: ;
4817: return 0;
4818: }
4819: _ACEOF
4820: rm -f conftest.$ac_objext conftest$ac_exeext
1.37 ohara 4821: if { (ac_try="$ac_link"
4822: case "(($ac_try" in
4823: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4824: *) ac_try_echo=$ac_try;;
4825: esac
1.43 ohara 4826: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4827: $as_echo "$ac_try_echo") >&5
1.37 ohara 4828: (eval "$ac_link") 2>conftest.er1
1.14 noro 4829: ac_status=$?
1.32 noro 4830: grep -v '^ *+' conftest.er1 >conftest.err
4831: rm -f conftest.er1
4832: cat conftest.err >&5
1.43 ohara 4833: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.37 ohara 4834: (exit $ac_status); } && {
4835: test -z "$ac_c_werror_flag" ||
4836: test ! -s conftest.err
1.43 ohara 4837: } && test -s conftest$ac_exeext && {
4838: test "$cross_compiling" = yes ||
4839: $as_test_x conftest$ac_exeext
4840: }; then
1.14 noro 4841: ac_cv_lib_nsl_gethostbyname=yes
4842: else
1.43 ohara 4843: $as_echo "$as_me: failed program was:" >&5
1.32 noro 4844: sed 's/^/| /' conftest.$ac_ext >&5
4845:
1.37 ohara 4846: ac_cv_lib_nsl_gethostbyname=no
1.14 noro 4847: fi
1.37 ohara 4848:
1.43 ohara 4849: rm -rf conftest.dSYM
1.37 ohara 4850: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.32 noro 4851: conftest$ac_exeext conftest.$ac_ext
1.14 noro 4852: LIBS=$ac_check_lib_save_LIBS
4853: fi
1.43 ohara 4854: { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
4855: $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
1.14 noro 4856: if test $ac_cv_lib_nsl_gethostbyname = yes; then
4857: X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
4858: fi
4859:
4860: if test $ac_cv_lib_nsl_gethostbyname = no; then
1.43 ohara 4861: { $as_echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
4862: $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
1.14 noro 4863: if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
1.43 ohara 4864: $as_echo_n "(cached) " >&6
1.14 noro 4865: else
4866: ac_check_lib_save_LIBS=$LIBS
4867: LIBS="-lbsd $LIBS"
4868: cat >conftest.$ac_ext <<_ACEOF
1.32 noro 4869: /* confdefs.h. */
4870: _ACEOF
4871: cat confdefs.h >>conftest.$ac_ext
4872: cat >>conftest.$ac_ext <<_ACEOF
4873: /* end confdefs.h. */
1.14 noro 4874:
1.37 ohara 4875: /* Override any GCC internal prototype to avoid an error.
4876: Use char because int might match the return type of a GCC
4877: builtin and then its argument prototype would still apply. */
1.14 noro 4878: #ifdef __cplusplus
4879: extern "C"
4880: #endif
4881: char gethostbyname ();
4882: int
4883: main ()
4884: {
1.37 ohara 4885: return gethostbyname ();
1.14 noro 4886: ;
4887: return 0;
4888: }
4889: _ACEOF
4890: rm -f conftest.$ac_objext conftest$ac_exeext
1.37 ohara 4891: if { (ac_try="$ac_link"
4892: case "(($ac_try" in
4893: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4894: *) ac_try_echo=$ac_try;;
4895: esac
1.43 ohara 4896: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4897: $as_echo "$ac_try_echo") >&5
1.37 ohara 4898: (eval "$ac_link") 2>conftest.er1
1.14 noro 4899: ac_status=$?
1.32 noro 4900: grep -v '^ *+' conftest.er1 >conftest.err
4901: rm -f conftest.er1
4902: cat conftest.err >&5
1.43 ohara 4903: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.37 ohara 4904: (exit $ac_status); } && {
4905: test -z "$ac_c_werror_flag" ||
4906: test ! -s conftest.err
1.43 ohara 4907: } && test -s conftest$ac_exeext && {
4908: test "$cross_compiling" = yes ||
4909: $as_test_x conftest$ac_exeext
4910: }; then
1.14 noro 4911: ac_cv_lib_bsd_gethostbyname=yes
4912: else
1.43 ohara 4913: $as_echo "$as_me: failed program was:" >&5
1.32 noro 4914: sed 's/^/| /' conftest.$ac_ext >&5
4915:
1.37 ohara 4916: ac_cv_lib_bsd_gethostbyname=no
1.14 noro 4917: fi
1.37 ohara 4918:
1.43 ohara 4919: rm -rf conftest.dSYM
1.37 ohara 4920: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.32 noro 4921: conftest$ac_exeext conftest.$ac_ext
1.14 noro 4922: LIBS=$ac_check_lib_save_LIBS
4923: fi
1.43 ohara 4924: { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
4925: $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
1.14 noro 4926: if test $ac_cv_lib_bsd_gethostbyname = yes; then
4927: X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
4928: fi
4929:
4930: fi
4931: fi
4932:
4933: # lieder@skyler.mavd.honeywell.com says without -lsocket,
4934: # socket/setsockopt and other routines are undefined under SCO ODT
4935: # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
4936: # on later versions), says Simon Leinen: it contains gethostby*
1.32 noro 4937: # variants that don't use the name server (or something). -lsocket
1.14 noro 4938: # must be given before -lnsl if both are needed. We assume that
4939: # if connect needs -lnsl, so does gethostbyname.
1.43 ohara 4940: { $as_echo "$as_me:$LINENO: checking for connect" >&5
4941: $as_echo_n "checking for connect... " >&6; }
1.14 noro 4942: if test "${ac_cv_func_connect+set}" = set; then
1.43 ohara 4943: $as_echo_n "(cached) " >&6
1.14 noro 4944: else
4945: cat >conftest.$ac_ext <<_ACEOF
1.32 noro 4946: /* confdefs.h. */
4947: _ACEOF
4948: cat confdefs.h >>conftest.$ac_ext
4949: cat >>conftest.$ac_ext <<_ACEOF
4950: /* end confdefs.h. */
4951: /* Define connect to an innocuous variant, in case <limits.h> declares connect.
4952: For example, HP-UX 11i <limits.h> declares gettimeofday. */
4953: #define connect innocuous_connect
4954:
1.14 noro 4955: /* System header to define __stub macros and hopefully few prototypes,
1.32 noro 4956: which can conflict with char connect (); below.
4957: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4958: <limits.h> exists even on freestanding compilers. */
4959:
4960: #ifdef __STDC__
4961: # include <limits.h>
4962: #else
4963: # include <assert.h>
4964: #endif
4965:
4966: #undef connect
4967:
1.37 ohara 4968: /* Override any GCC internal prototype to avoid an error.
4969: Use char because int might match the return type of a GCC
4970: builtin and then its argument prototype would still apply. */
1.14 noro 4971: #ifdef __cplusplus
4972: extern "C"
4973: #endif
4974: char connect ();
4975: /* The GNU C library defines this for functions which it implements
4976: to always fail with ENOSYS. Some functions are actually named
4977: something starting with __ and the normal name is an alias. */
1.37 ohara 4978: #if defined __stub_connect || defined __stub___connect
1.14 noro 4979: choke me
4980: #endif
4981:
1.32 noro 4982: int
4983: main ()
4984: {
1.37 ohara 4985: return connect ();
1.14 noro 4986: ;
4987: return 0;
4988: }
4989: _ACEOF
4990: rm -f conftest.$ac_objext conftest$ac_exeext
1.37 ohara 4991: if { (ac_try="$ac_link"
4992: case "(($ac_try" in
4993: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4994: *) ac_try_echo=$ac_try;;
4995: esac
1.43 ohara 4996: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4997: $as_echo "$ac_try_echo") >&5
1.37 ohara 4998: (eval "$ac_link") 2>conftest.er1
1.14 noro 4999: ac_status=$?
1.32 noro 5000: grep -v '^ *+' conftest.er1 >conftest.err
5001: rm -f conftest.er1
5002: cat conftest.err >&5
1.43 ohara 5003: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.37 ohara 5004: (exit $ac_status); } && {
5005: test -z "$ac_c_werror_flag" ||
5006: test ! -s conftest.err
1.43 ohara 5007: } && test -s conftest$ac_exeext && {
5008: test "$cross_compiling" = yes ||
5009: $as_test_x conftest$ac_exeext
5010: }; then
1.14 noro 5011: ac_cv_func_connect=yes
5012: else
1.43 ohara 5013: $as_echo "$as_me: failed program was:" >&5
1.32 noro 5014: sed 's/^/| /' conftest.$ac_ext >&5
5015:
1.37 ohara 5016: ac_cv_func_connect=no
1.14 noro 5017: fi
1.37 ohara 5018:
1.43 ohara 5019: rm -rf conftest.dSYM
1.37 ohara 5020: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.32 noro 5021: conftest$ac_exeext conftest.$ac_ext
1.14 noro 5022: fi
1.43 ohara 5023: { $as_echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
5024: $as_echo "$ac_cv_func_connect" >&6; }
1.14 noro 5025:
5026: if test $ac_cv_func_connect = no; then
1.43 ohara 5027: { $as_echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
5028: $as_echo_n "checking for connect in -lsocket... " >&6; }
1.14 noro 5029: if test "${ac_cv_lib_socket_connect+set}" = set; then
1.43 ohara 5030: $as_echo_n "(cached) " >&6
1.14 noro 5031: else
5032: ac_check_lib_save_LIBS=$LIBS
5033: LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
5034: cat >conftest.$ac_ext <<_ACEOF
1.32 noro 5035: /* confdefs.h. */
5036: _ACEOF
5037: cat confdefs.h >>conftest.$ac_ext
5038: cat >>conftest.$ac_ext <<_ACEOF
5039: /* end confdefs.h. */
1.14 noro 5040:
1.37 ohara 5041: /* Override any GCC internal prototype to avoid an error.
5042: Use char because int might match the return type of a GCC
5043: builtin and then its argument prototype would still apply. */
1.14 noro 5044: #ifdef __cplusplus
5045: extern "C"
5046: #endif
5047: char connect ();
5048: int
5049: main ()
5050: {
1.37 ohara 5051: return connect ();
1.14 noro 5052: ;
5053: return 0;
5054: }
5055: _ACEOF
5056: rm -f conftest.$ac_objext conftest$ac_exeext
1.37 ohara 5057: if { (ac_try="$ac_link"
5058: case "(($ac_try" in
5059: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5060: *) ac_try_echo=$ac_try;;
5061: esac
1.43 ohara 5062: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5063: $as_echo "$ac_try_echo") >&5
1.37 ohara 5064: (eval "$ac_link") 2>conftest.er1
1.14 noro 5065: ac_status=$?
1.32 noro 5066: grep -v '^ *+' conftest.er1 >conftest.err
5067: rm -f conftest.er1
5068: cat conftest.err >&5
1.43 ohara 5069: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.37 ohara 5070: (exit $ac_status); } && {
5071: test -z "$ac_c_werror_flag" ||
5072: test ! -s conftest.err
1.43 ohara 5073: } && test -s conftest$ac_exeext && {
5074: test "$cross_compiling" = yes ||
5075: $as_test_x conftest$ac_exeext
5076: }; then
1.14 noro 5077: ac_cv_lib_socket_connect=yes
5078: else
1.43 ohara 5079: $as_echo "$as_me: failed program was:" >&5
1.32 noro 5080: sed 's/^/| /' conftest.$ac_ext >&5
5081:
1.37 ohara 5082: ac_cv_lib_socket_connect=no
1.14 noro 5083: fi
1.37 ohara 5084:
1.43 ohara 5085: rm -rf conftest.dSYM
1.37 ohara 5086: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.32 noro 5087: conftest$ac_exeext conftest.$ac_ext
1.14 noro 5088: LIBS=$ac_check_lib_save_LIBS
5089: fi
1.43 ohara 5090: { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
5091: $as_echo "$ac_cv_lib_socket_connect" >&6; }
1.14 noro 5092: if test $ac_cv_lib_socket_connect = yes; then
5093: X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
5094: fi
5095:
5096: fi
5097:
5098: # Guillermo Gomez says -lposix is necessary on A/UX.
1.43 ohara 5099: { $as_echo "$as_me:$LINENO: checking for remove" >&5
5100: $as_echo_n "checking for remove... " >&6; }
1.14 noro 5101: if test "${ac_cv_func_remove+set}" = set; then
1.43 ohara 5102: $as_echo_n "(cached) " >&6
1.14 noro 5103: else
5104: cat >conftest.$ac_ext <<_ACEOF
1.32 noro 5105: /* confdefs.h. */
5106: _ACEOF
5107: cat confdefs.h >>conftest.$ac_ext
5108: cat >>conftest.$ac_ext <<_ACEOF
5109: /* end confdefs.h. */
5110: /* Define remove to an innocuous variant, in case <limits.h> declares remove.
5111: For example, HP-UX 11i <limits.h> declares gettimeofday. */
5112: #define remove innocuous_remove
5113:
1.14 noro 5114: /* System header to define __stub macros and hopefully few prototypes,
1.32 noro 5115: which can conflict with char remove (); below.
5116: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5117: <limits.h> exists even on freestanding compilers. */
5118:
5119: #ifdef __STDC__
5120: # include <limits.h>
5121: #else
5122: # include <assert.h>
5123: #endif
5124:
5125: #undef remove
5126:
1.37 ohara 5127: /* Override any GCC internal prototype to avoid an error.
5128: Use char because int might match the return type of a GCC
5129: builtin and then its argument prototype would still apply. */
1.14 noro 5130: #ifdef __cplusplus
5131: extern "C"
5132: #endif
5133: char remove ();
5134: /* The GNU C library defines this for functions which it implements
5135: to always fail with ENOSYS. Some functions are actually named
5136: something starting with __ and the normal name is an alias. */
1.37 ohara 5137: #if defined __stub_remove || defined __stub___remove
1.14 noro 5138: choke me
5139: #endif
5140:
1.32 noro 5141: int
5142: main ()
5143: {
1.37 ohara 5144: return remove ();
1.14 noro 5145: ;
5146: return 0;
5147: }
5148: _ACEOF
5149: rm -f conftest.$ac_objext conftest$ac_exeext
1.37 ohara 5150: if { (ac_try="$ac_link"
5151: case "(($ac_try" in
5152: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5153: *) ac_try_echo=$ac_try;;
5154: esac
1.43 ohara 5155: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5156: $as_echo "$ac_try_echo") >&5
1.37 ohara 5157: (eval "$ac_link") 2>conftest.er1
1.14 noro 5158: ac_status=$?
1.32 noro 5159: grep -v '^ *+' conftest.er1 >conftest.err
5160: rm -f conftest.er1
5161: cat conftest.err >&5
1.43 ohara 5162: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.37 ohara 5163: (exit $ac_status); } && {
5164: test -z "$ac_c_werror_flag" ||
5165: test ! -s conftest.err
1.43 ohara 5166: } && test -s conftest$ac_exeext && {
5167: test "$cross_compiling" = yes ||
5168: $as_test_x conftest$ac_exeext
5169: }; then
1.14 noro 5170: ac_cv_func_remove=yes
5171: else
1.43 ohara 5172: $as_echo "$as_me: failed program was:" >&5
1.32 noro 5173: sed 's/^/| /' conftest.$ac_ext >&5
5174:
1.37 ohara 5175: ac_cv_func_remove=no
1.14 noro 5176: fi
1.37 ohara 5177:
1.43 ohara 5178: rm -rf conftest.dSYM
1.37 ohara 5179: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.32 noro 5180: conftest$ac_exeext conftest.$ac_ext
1.14 noro 5181: fi
1.43 ohara 5182: { $as_echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
5183: $as_echo "$ac_cv_func_remove" >&6; }
1.14 noro 5184:
5185: if test $ac_cv_func_remove = no; then
1.43 ohara 5186: { $as_echo "$as_me:$LINENO: checking for remove in -lposix" >&5
5187: $as_echo_n "checking for remove in -lposix... " >&6; }
1.14 noro 5188: if test "${ac_cv_lib_posix_remove+set}" = set; then
1.43 ohara 5189: $as_echo_n "(cached) " >&6
1.14 noro 5190: else
5191: ac_check_lib_save_LIBS=$LIBS
5192: LIBS="-lposix $LIBS"
5193: cat >conftest.$ac_ext <<_ACEOF
1.32 noro 5194: /* confdefs.h. */
5195: _ACEOF
5196: cat confdefs.h >>conftest.$ac_ext
5197: cat >>conftest.$ac_ext <<_ACEOF
5198: /* end confdefs.h. */
1.14 noro 5199:
1.37 ohara 5200: /* Override any GCC internal prototype to avoid an error.
5201: Use char because int might match the return type of a GCC
5202: builtin and then its argument prototype would still apply. */
1.14 noro 5203: #ifdef __cplusplus
5204: extern "C"
5205: #endif
5206: char remove ();
5207: int
5208: main ()
5209: {
1.37 ohara 5210: return remove ();
1.14 noro 5211: ;
5212: return 0;
5213: }
5214: _ACEOF
5215: rm -f conftest.$ac_objext conftest$ac_exeext
1.37 ohara 5216: if { (ac_try="$ac_link"
5217: case "(($ac_try" in
5218: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5219: *) ac_try_echo=$ac_try;;
5220: esac
1.43 ohara 5221: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5222: $as_echo "$ac_try_echo") >&5
1.37 ohara 5223: (eval "$ac_link") 2>conftest.er1
1.14 noro 5224: ac_status=$?
1.32 noro 5225: grep -v '^ *+' conftest.er1 >conftest.err
5226: rm -f conftest.er1
5227: cat conftest.err >&5
1.43 ohara 5228: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.37 ohara 5229: (exit $ac_status); } && {
5230: test -z "$ac_c_werror_flag" ||
5231: test ! -s conftest.err
1.43 ohara 5232: } && test -s conftest$ac_exeext && {
5233: test "$cross_compiling" = yes ||
5234: $as_test_x conftest$ac_exeext
5235: }; then
1.14 noro 5236: ac_cv_lib_posix_remove=yes
5237: else
1.43 ohara 5238: $as_echo "$as_me: failed program was:" >&5
1.32 noro 5239: sed 's/^/| /' conftest.$ac_ext >&5
5240:
1.37 ohara 5241: ac_cv_lib_posix_remove=no
1.14 noro 5242: fi
1.37 ohara 5243:
1.43 ohara 5244: rm -rf conftest.dSYM
1.37 ohara 5245: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.32 noro 5246: conftest$ac_exeext conftest.$ac_ext
1.14 noro 5247: LIBS=$ac_check_lib_save_LIBS
5248: fi
1.43 ohara 5249: { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
5250: $as_echo "$ac_cv_lib_posix_remove" >&6; }
1.14 noro 5251: if test $ac_cv_lib_posix_remove = yes; then
5252: X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
5253: fi
5254:
5255: fi
5256:
5257: # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
1.43 ohara 5258: { $as_echo "$as_me:$LINENO: checking for shmat" >&5
5259: $as_echo_n "checking for shmat... " >&6; }
1.14 noro 5260: if test "${ac_cv_func_shmat+set}" = set; then
1.43 ohara 5261: $as_echo_n "(cached) " >&6
1.14 noro 5262: else
5263: cat >conftest.$ac_ext <<_ACEOF
1.32 noro 5264: /* confdefs.h. */
5265: _ACEOF
5266: cat confdefs.h >>conftest.$ac_ext
5267: cat >>conftest.$ac_ext <<_ACEOF
5268: /* end confdefs.h. */
5269: /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
5270: For example, HP-UX 11i <limits.h> declares gettimeofday. */
5271: #define shmat innocuous_shmat
5272:
1.14 noro 5273: /* System header to define __stub macros and hopefully few prototypes,
1.32 noro 5274: which can conflict with char shmat (); below.
5275: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5276: <limits.h> exists even on freestanding compilers. */
5277:
5278: #ifdef __STDC__
5279: # include <limits.h>
5280: #else
5281: # include <assert.h>
5282: #endif
5283:
5284: #undef shmat
5285:
1.37 ohara 5286: /* Override any GCC internal prototype to avoid an error.
5287: Use char because int might match the return type of a GCC
5288: builtin and then its argument prototype would still apply. */
1.14 noro 5289: #ifdef __cplusplus
5290: extern "C"
5291: #endif
5292: char shmat ();
5293: /* The GNU C library defines this for functions which it implements
5294: to always fail with ENOSYS. Some functions are actually named
5295: something starting with __ and the normal name is an alias. */
1.37 ohara 5296: #if defined __stub_shmat || defined __stub___shmat
1.14 noro 5297: choke me
5298: #endif
5299:
1.32 noro 5300: int
5301: main ()
5302: {
1.37 ohara 5303: return shmat ();
1.14 noro 5304: ;
5305: return 0;
5306: }
5307: _ACEOF
5308: rm -f conftest.$ac_objext conftest$ac_exeext
1.37 ohara 5309: if { (ac_try="$ac_link"
5310: case "(($ac_try" in
5311: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5312: *) ac_try_echo=$ac_try;;
5313: esac
1.43 ohara 5314: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5315: $as_echo "$ac_try_echo") >&5
1.37 ohara 5316: (eval "$ac_link") 2>conftest.er1
1.14 noro 5317: ac_status=$?
1.32 noro 5318: grep -v '^ *+' conftest.er1 >conftest.err
5319: rm -f conftest.er1
5320: cat conftest.err >&5
1.43 ohara 5321: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.37 ohara 5322: (exit $ac_status); } && {
5323: test -z "$ac_c_werror_flag" ||
5324: test ! -s conftest.err
1.43 ohara 5325: } && test -s conftest$ac_exeext && {
5326: test "$cross_compiling" = yes ||
5327: $as_test_x conftest$ac_exeext
5328: }; then
1.14 noro 5329: ac_cv_func_shmat=yes
5330: else
1.43 ohara 5331: $as_echo "$as_me: failed program was:" >&5
1.32 noro 5332: sed 's/^/| /' conftest.$ac_ext >&5
5333:
1.37 ohara 5334: ac_cv_func_shmat=no
1.14 noro 5335: fi
1.37 ohara 5336:
1.43 ohara 5337: rm -rf conftest.dSYM
1.37 ohara 5338: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.32 noro 5339: conftest$ac_exeext conftest.$ac_ext
1.14 noro 5340: fi
1.43 ohara 5341: { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
5342: $as_echo "$ac_cv_func_shmat" >&6; }
1.14 noro 5343:
5344: if test $ac_cv_func_shmat = no; then
1.43 ohara 5345: { $as_echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
5346: $as_echo_n "checking for shmat in -lipc... " >&6; }
1.14 noro 5347: if test "${ac_cv_lib_ipc_shmat+set}" = set; then
1.43 ohara 5348: $as_echo_n "(cached) " >&6
1.14 noro 5349: else
5350: ac_check_lib_save_LIBS=$LIBS
5351: LIBS="-lipc $LIBS"
5352: cat >conftest.$ac_ext <<_ACEOF
1.32 noro 5353: /* confdefs.h. */
5354: _ACEOF
5355: cat confdefs.h >>conftest.$ac_ext
5356: cat >>conftest.$ac_ext <<_ACEOF
5357: /* end confdefs.h. */
1.14 noro 5358:
1.37 ohara 5359: /* Override any GCC internal prototype to avoid an error.
5360: Use char because int might match the return type of a GCC
5361: builtin and then its argument prototype would still apply. */
1.14 noro 5362: #ifdef __cplusplus
5363: extern "C"
5364: #endif
5365: char shmat ();
5366: int
5367: main ()
5368: {
1.37 ohara 5369: return shmat ();
1.14 noro 5370: ;
5371: return 0;
5372: }
5373: _ACEOF
5374: rm -f conftest.$ac_objext conftest$ac_exeext
1.37 ohara 5375: if { (ac_try="$ac_link"
5376: case "(($ac_try" in
5377: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5378: *) ac_try_echo=$ac_try;;
5379: esac
1.43 ohara 5380: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5381: $as_echo "$ac_try_echo") >&5
1.37 ohara 5382: (eval "$ac_link") 2>conftest.er1
1.14 noro 5383: ac_status=$?
1.32 noro 5384: grep -v '^ *+' conftest.er1 >conftest.err
5385: rm -f conftest.er1
5386: cat conftest.err >&5
1.43 ohara 5387: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.37 ohara 5388: (exit $ac_status); } && {
5389: test -z "$ac_c_werror_flag" ||
5390: test ! -s conftest.err
1.43 ohara 5391: } && test -s conftest$ac_exeext && {
5392: test "$cross_compiling" = yes ||
5393: $as_test_x conftest$ac_exeext
5394: }; then
1.14 noro 5395: ac_cv_lib_ipc_shmat=yes
5396: else
1.43 ohara 5397: $as_echo "$as_me: failed program was:" >&5
1.32 noro 5398: sed 's/^/| /' conftest.$ac_ext >&5
5399:
1.37 ohara 5400: ac_cv_lib_ipc_shmat=no
1.14 noro 5401: fi
1.37 ohara 5402:
1.43 ohara 5403: rm -rf conftest.dSYM
1.37 ohara 5404: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.32 noro 5405: conftest$ac_exeext conftest.$ac_ext
1.14 noro 5406: LIBS=$ac_check_lib_save_LIBS
5407: fi
1.43 ohara 5408: { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
5409: $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
1.14 noro 5410: if test $ac_cv_lib_ipc_shmat = yes; then
5411: X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
5412: fi
5413:
5414: fi
5415: fi
5416:
5417: # Check for libraries that X11R6 Xt/Xaw programs need.
5418: ac_save_LDFLAGS=$LDFLAGS
5419: test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
5420: # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
5421: # check for ICE first), but we must link in the order -lSM -lICE or
5422: # we get undefined symbols. So assume we have SM if we have ICE.
5423: # These have to be linked with before -lX11, unlike the other
5424: # libraries we check for below, so use a different variable.
5425: # John Interrante, Karl Berry
1.43 ohara 5426: { $as_echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
5427: $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
1.14 noro 5428: if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
1.43 ohara 5429: $as_echo_n "(cached) " >&6
1.14 noro 5430: else
5431: ac_check_lib_save_LIBS=$LIBS
5432: LIBS="-lICE $X_EXTRA_LIBS $LIBS"
5433: cat >conftest.$ac_ext <<_ACEOF
1.32 noro 5434: /* confdefs.h. */
5435: _ACEOF
5436: cat confdefs.h >>conftest.$ac_ext
5437: cat >>conftest.$ac_ext <<_ACEOF
5438: /* end confdefs.h. */
1.14 noro 5439:
1.37 ohara 5440: /* Override any GCC internal prototype to avoid an error.
5441: Use char because int might match the return type of a GCC
5442: builtin and then its argument prototype would still apply. */
1.14 noro 5443: #ifdef __cplusplus
5444: extern "C"
5445: #endif
5446: char IceConnectionNumber ();
5447: int
5448: main ()
5449: {
1.37 ohara 5450: return IceConnectionNumber ();
1.14 noro 5451: ;
5452: return 0;
5453: }
5454: _ACEOF
5455: rm -f conftest.$ac_objext conftest$ac_exeext
1.37 ohara 5456: if { (ac_try="$ac_link"
5457: case "(($ac_try" in
5458: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5459: *) ac_try_echo=$ac_try;;
5460: esac
1.43 ohara 5461: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5462: $as_echo "$ac_try_echo") >&5
1.37 ohara 5463: (eval "$ac_link") 2>conftest.er1
1.14 noro 5464: ac_status=$?
1.32 noro 5465: grep -v '^ *+' conftest.er1 >conftest.err
5466: rm -f conftest.er1
5467: cat conftest.err >&5
1.43 ohara 5468: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.37 ohara 5469: (exit $ac_status); } && {
5470: test -z "$ac_c_werror_flag" ||
5471: test ! -s conftest.err
1.43 ohara 5472: } && test -s conftest$ac_exeext && {
5473: test "$cross_compiling" = yes ||
5474: $as_test_x conftest$ac_exeext
5475: }; then
1.14 noro 5476: ac_cv_lib_ICE_IceConnectionNumber=yes
5477: else
1.43 ohara 5478: $as_echo "$as_me: failed program was:" >&5
1.32 noro 5479: sed 's/^/| /' conftest.$ac_ext >&5
5480:
1.37 ohara 5481: ac_cv_lib_ICE_IceConnectionNumber=no
1.14 noro 5482: fi
1.37 ohara 5483:
1.43 ohara 5484: rm -rf conftest.dSYM
1.37 ohara 5485: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.32 noro 5486: conftest$ac_exeext conftest.$ac_ext
1.14 noro 5487: LIBS=$ac_check_lib_save_LIBS
5488: fi
1.43 ohara 5489: { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
5490: $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
1.14 noro 5491: if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
5492: X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
5493: fi
5494:
5495: LDFLAGS=$ac_save_LDFLAGS
5496:
5497: fi
5498:
5499:
5500: cat >>confdefs.h <<\_ACEOF
5501: #define HMEXT 1
5502: _ACEOF
5503:
5504:
1.37 ohara 5505: # Check whether --enable-shared was given.
1.14 noro 5506: if test "${enable_shared+set}" = set; then
1.37 ohara 5507: enableval=$enable_shared; enable_shared=yes
1.14 noro 5508: else
5509: enable_shared=no
1.37 ohara 5510: fi
5511:
1.14 noro 5512:
5513: if test "${enable_shared:=no}" != no ; then
5514: true
5515: fi
5516:
1.17 ohara 5517: if test "${ac_test_CFLAGS}" != set -a "${GCC}" = yes ; then
5518: if test "${ac_cv_prog_cc_g}" = yes; then
5519: CFLAGS="-g -O"
5520: else
5521: CFLAGS="-O"
5522: fi
1.29 ohara 5523: elif test `basename ./"${CC}"` = "icc" ; then
5524: CFLAGS="-g -O"
1.17 ohara 5525: fi
1.15 noro 5526:
1.37 ohara 5527: GC=gc6.8
1.43 ohara 5528:
5529: # Check whether --with-asir-gc was given.
5530: if test "${with_asir_gc+set}" = set; then
5531: withval=$with_asir_gc; with_asir_gc=${withval}
5532: else
5533: with_asir_gc=yes
5534: fi
5535:
5536: if test ${with_asir_gc:=yes} != no; then
5537: ASIR_GCLIB=libasir-gc.a
5538: GCINC='-I${top_srcdir}/${GC}/include'
5539: else
5540: GCLIB='-L${prefix}/lib -lgc'
5541: GCINC='-I${prefix}/include'
5542: cat >>confdefs.h <<\_ACEOF
5543: #define NO_ASIR_GC 1
5544: _ACEOF
5545:
5546: fi
1.47 ohara 5547: GC_CONFIGURE_ARGS="--disable-threads --enable-large-config"
1.44 ohara 5548: if test -n "${host_alias}" ; then
1.37 ohara 5549: GC_CONFIGURE_ARGS="--host=${host_alias} ${GC_CONFIGURE_ARGS}"
5550: fi
5551:
1.38 ohara 5552: # Check whether --with-gc7 was given.
5553: if test "${with_gc7+set}" = set; then
5554: withval=$with_gc7; with_gc7=${withval}
5555: else
5556: with_gc7=no
5557: fi
5558:
5559: if test ${with_gc7:=no} != no; then
5560: case "${with_gc7}" in
5561: 7*) GC_VERSION=${with_gc7} ;;
1.48 ! ohara 5562: *) GC_VERSION=7.1 ;;
1.38 ohara 5563: esac
5564: GC=gc-${GC_VERSION}
5565: cat >>confdefs.h <<\_ACEOF
5566: #define GC7 1
5567: _ACEOF
5568:
5569: fi
5570:
5571:
1.43 ohara 5572:
5573:
5574:
5575:
5576:
1.38 ohara 5577: if test "$with_gc7" != no; then
5578: USE_GC7_TRUE=
5579: USE_GC7_FALSE='#'
5580: else
5581: USE_GC7_TRUE='#'
5582: USE_GC7_FALSE=
5583: fi
1.37 ohara 5584:
1.35 ohara 5585:
1.37 ohara 5586:
5587: # Check whether --with-distdir was given.
1.35 ohara 5588: if test "${with_distdir+set}" = set; then
1.37 ohara 5589: withval=$with_distdir; with_distdir=${withval}
1.35 ohara 5590: else
5591: with_distdir=no
1.37 ohara 5592: fi
5593:
1.35 ohara 5594: GC_DISTDIR='${prefix}/../OpenXM_dist'
5595: if test ${with_distdir:=no} != no -a ${with_distdir} != yes ; then
5596: GC_DISTDIR=${with_distdir}
5597: fi
5598:
5599:
1.14 noro 5600: libasir_postfix=""
5601:
1.37 ohara 5602: # Check whether --with-pari was given.
1.14 noro 5603: if test "${with_pari+set}" = set; then
1.37 ohara 5604: withval=$with_pari; with_pari=${withval}
1.14 noro 5605: else
5606: with_pari=no
1.37 ohara 5607: fi
5608:
1.14 noro 5609:
5610: if test ${with_pari:=no} != no ; then
1.41 ohara 5611: if test "${with_pari}" = new -o "${with_pari}" = 2.3 ; then
5612: cat >>confdefs.h <<\_ACEOF
5613: #define PARI23 1
5614: _ACEOF
5615:
5616: fi
1.14 noro 5617: libasir_postfix=${libasir_postfix}_pari
5618: PARIINC='-I${prefix}/include/pari'
5619: if test "${enable_shared}" != yes ; then
1.43 ohara 5620: PARILIB='${libdir}/libpari.a'
1.14 noro 5621: else
1.43 ohara 5622: PARILIB='-L${libdir} -lpari'
1.14 noro 5623: fi
5624: cat >>confdefs.h <<\_ACEOF
5625: #define PARI 1
5626: _ACEOF
5627:
1.16 noro 5628: fi
5629:
5630:
5631:
1.43 ohara 5632: { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5633: $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
1.37 ohara 5634: if test "${ac_cv_path_GREP+set}" = set; then
1.43 ohara 5635: $as_echo_n "(cached) " >&6
1.32 noro 5636: else
1.43 ohara 5637: if test -z "$GREP"; then
1.37 ohara 5638: ac_path_GREP_found=false
1.43 ohara 5639: # Loop through the user's path and test for each of PROGNAME-LIST
5640: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1.37 ohara 5641: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5642: do
5643: IFS=$as_save_IFS
5644: test -z "$as_dir" && as_dir=.
5645: for ac_prog in grep ggrep; do
1.43 ohara 5646: for ac_exec_ext in '' $ac_executable_extensions; do
5647: ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5648: { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5649: # Check for GNU ac_path_GREP and select it if it is found.
1.37 ohara 5650: # Check for GNU $ac_path_GREP
5651: case `"$ac_path_GREP" --version 2>&1` in
5652: *GNU*)
5653: ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5654: *)
5655: ac_count=0
1.43 ohara 5656: $as_echo_n 0123456789 >"conftest.in"
1.37 ohara 5657: while :
5658: do
5659: cat "conftest.in" "conftest.in" >"conftest.tmp"
5660: mv "conftest.tmp" "conftest.in"
5661: cp "conftest.in" "conftest.nl"
1.43 ohara 5662: $as_echo 'GREP' >> "conftest.nl"
1.37 ohara 5663: "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5664: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5665: ac_count=`expr $ac_count + 1`
5666: if test $ac_count -gt ${ac_path_GREP_max-0}; then
5667: # Best one so far, save it but keep looking for a better one
5668: ac_cv_path_GREP="$ac_path_GREP"
5669: ac_path_GREP_max=$ac_count
1.32 noro 5670: fi
1.37 ohara 5671: # 10*(2^10) chars as input seems more than enough
5672: test $ac_count -gt 10 && break
5673: done
5674: rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5675: esac
5676:
1.43 ohara 5677: $ac_path_GREP_found && break 3
5678: done
1.37 ohara 5679: done
5680: done
5681: IFS=$as_save_IFS
1.43 ohara 5682: if test -z "$ac_cv_path_GREP"; then
5683: { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5684: $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
1.37 ohara 5685: { (exit 1); exit 1; }; }
1.43 ohara 5686: fi
1.14 noro 5687: else
1.37 ohara 5688: ac_cv_path_GREP=$GREP
5689: fi
5690:
5691: fi
1.43 ohara 5692: { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5693: $as_echo "$ac_cv_path_GREP" >&6; }
1.37 ohara 5694: GREP="$ac_cv_path_GREP"
1.14 noro 5695:
1.37 ohara 5696:
1.43 ohara 5697: { $as_echo "$as_me:$LINENO: checking for egrep" >&5
5698: $as_echo_n "checking for egrep... " >&6; }
1.37 ohara 5699: if test "${ac_cv_path_EGREP+set}" = set; then
1.43 ohara 5700: $as_echo_n "(cached) " >&6
1.37 ohara 5701: else
5702: if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5703: then ac_cv_path_EGREP="$GREP -E"
5704: else
1.43 ohara 5705: if test -z "$EGREP"; then
1.37 ohara 5706: ac_path_EGREP_found=false
1.43 ohara 5707: # Loop through the user's path and test for each of PROGNAME-LIST
5708: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1.37 ohara 5709: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5710: do
5711: IFS=$as_save_IFS
5712: test -z "$as_dir" && as_dir=.
5713: for ac_prog in egrep; do
1.43 ohara 5714: for ac_exec_ext in '' $ac_executable_extensions; do
5715: ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5716: { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5717: # Check for GNU ac_path_EGREP and select it if it is found.
1.37 ohara 5718: # Check for GNU $ac_path_EGREP
5719: case `"$ac_path_EGREP" --version 2>&1` in
5720: *GNU*)
5721: ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5722: *)
5723: ac_count=0
1.43 ohara 5724: $as_echo_n 0123456789 >"conftest.in"
1.37 ohara 5725: while :
5726: do
5727: cat "conftest.in" "conftest.in" >"conftest.tmp"
5728: mv "conftest.tmp" "conftest.in"
5729: cp "conftest.in" "conftest.nl"
1.43 ohara 5730: $as_echo 'EGREP' >> "conftest.nl"
1.37 ohara 5731: "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5732: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5733: ac_count=`expr $ac_count + 1`
5734: if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5735: # Best one so far, save it but keep looking for a better one
5736: ac_cv_path_EGREP="$ac_path_EGREP"
5737: ac_path_EGREP_max=$ac_count
5738: fi
5739: # 10*(2^10) chars as input seems more than enough
5740: test $ac_count -gt 10 && break
5741: done
5742: rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5743: esac
5744:
1.43 ohara 5745: $ac_path_EGREP_found && break 3
5746: done
1.37 ohara 5747: done
5748: done
5749: IFS=$as_save_IFS
1.43 ohara 5750: if test -z "$ac_cv_path_EGREP"; then
5751: { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5752: $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
1.37 ohara 5753: { (exit 1); exit 1; }; }
1.43 ohara 5754: fi
1.37 ohara 5755: else
5756: ac_cv_path_EGREP=$EGREP
5757: fi
5758:
5759: fi
5760: fi
1.43 ohara 5761: { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5762: $as_echo "$ac_cv_path_EGREP" >&6; }
1.37 ohara 5763: EGREP="$ac_cv_path_EGREP"
5764:
5765:
1.43 ohara 5766: { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5767: $as_echo_n "checking for ANSI C header files... " >&6; }
1.37 ohara 5768: if test "${ac_cv_header_stdc+set}" = set; then
1.43 ohara 5769: $as_echo_n "(cached) " >&6
1.37 ohara 5770: else
5771: cat >conftest.$ac_ext <<_ACEOF
5772: /* confdefs.h. */
5773: _ACEOF
5774: cat confdefs.h >>conftest.$ac_ext
5775: cat >>conftest.$ac_ext <<_ACEOF
5776: /* end confdefs.h. */
5777: #include <stdlib.h>
5778: #include <stdarg.h>
5779: #include <string.h>
5780: #include <float.h>
5781:
5782: int
5783: main ()
5784: {
1.32 noro 5785:
5786: ;
5787: return 0;
5788: }
1.14 noro 5789: _ACEOF
1.32 noro 5790: rm -f conftest.$ac_objext
1.37 ohara 5791: if { (ac_try="$ac_compile"
5792: case "(($ac_try" in
5793: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5794: *) ac_try_echo=$ac_try;;
5795: esac
1.43 ohara 5796: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5797: $as_echo "$ac_try_echo") >&5
1.37 ohara 5798: (eval "$ac_compile") 2>conftest.er1
1.14 noro 5799: ac_status=$?
1.32 noro 5800: grep -v '^ *+' conftest.er1 >conftest.err
1.17 ohara 5801: rm -f conftest.er1
5802: cat conftest.err >&5
1.43 ohara 5803: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.37 ohara 5804: (exit $ac_status); } && {
5805: test -z "$ac_c_werror_flag" ||
5806: test ! -s conftest.err
5807: } && test -s conftest.$ac_objext; then
1.14 noro 5808: ac_cv_header_stdc=yes
5809: else
1.43 ohara 5810: $as_echo "$as_me: failed program was:" >&5
1.32 noro 5811: sed 's/^/| /' conftest.$ac_ext >&5
5812:
1.37 ohara 5813: ac_cv_header_stdc=no
1.14 noro 5814: fi
1.37 ohara 5815:
5816: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.14 noro 5817:
5818: if test $ac_cv_header_stdc = yes; then
5819: # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5820: cat >conftest.$ac_ext <<_ACEOF
1.32 noro 5821: /* confdefs.h. */
5822: _ACEOF
5823: cat confdefs.h >>conftest.$ac_ext
5824: cat >>conftest.$ac_ext <<_ACEOF
5825: /* end confdefs.h. */
1.14 noro 5826: #include <string.h>
5827:
5828: _ACEOF
5829: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1.32 noro 5830: $EGREP "memchr" >/dev/null 2>&1; then
1.14 noro 5831: :
5832: else
5833: ac_cv_header_stdc=no
5834: fi
5835: rm -f conftest*
5836:
5837: fi
5838:
5839: if test $ac_cv_header_stdc = yes; then
5840: # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5841: cat >conftest.$ac_ext <<_ACEOF
1.32 noro 5842: /* confdefs.h. */
5843: _ACEOF
5844: cat confdefs.h >>conftest.$ac_ext
5845: cat >>conftest.$ac_ext <<_ACEOF
5846: /* end confdefs.h. */
1.14 noro 5847: #include <stdlib.h>
5848:
5849: _ACEOF
5850: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1.32 noro 5851: $EGREP "free" >/dev/null 2>&1; then
1.14 noro 5852: :
5853: else
5854: ac_cv_header_stdc=no
5855: fi
5856: rm -f conftest*
5857:
5858: fi
5859:
5860: if test $ac_cv_header_stdc = yes; then
5861: # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5862: if test "$cross_compiling" = yes; then
5863: :
5864: else
5865: cat >conftest.$ac_ext <<_ACEOF
1.32 noro 5866: /* confdefs.h. */
5867: _ACEOF
5868: cat confdefs.h >>conftest.$ac_ext
5869: cat >>conftest.$ac_ext <<_ACEOF
5870: /* end confdefs.h. */
1.14 noro 5871: #include <ctype.h>
1.37 ohara 5872: #include <stdlib.h>
1.14 noro 5873: #if ((' ' & 0x0FF) == 0x020)
5874: # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5875: # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5876: #else
1.32 noro 5877: # define ISLOWER(c) \
5878: (('a' <= (c) && (c) <= 'i') \
5879: || ('j' <= (c) && (c) <= 'r') \
5880: || ('s' <= (c) && (c) <= 'z'))
1.14 noro 5881: # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5882: #endif
5883:
5884: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5885: int
5886: main ()
5887: {
5888: int i;
5889: for (i = 0; i < 256; i++)
5890: if (XOR (islower (i), ISLOWER (i))
1.32 noro 5891: || toupper (i) != TOUPPER (i))
1.37 ohara 5892: return 2;
5893: return 0;
1.14 noro 5894: }
5895: _ACEOF
5896: rm -f conftest$ac_exeext
1.37 ohara 5897: if { (ac_try="$ac_link"
5898: case "(($ac_try" in
5899: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5900: *) ac_try_echo=$ac_try;;
5901: esac
1.43 ohara 5902: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5903: $as_echo "$ac_try_echo") >&5
1.37 ohara 5904: (eval "$ac_link") 2>&5
1.14 noro 5905: ac_status=$?
1.43 ohara 5906: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.14 noro 5907: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
1.37 ohara 5908: { (case "(($ac_try" in
5909: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5910: *) ac_try_echo=$ac_try;;
5911: esac
1.43 ohara 5912: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5913: $as_echo "$ac_try_echo") >&5
1.37 ohara 5914: (eval "$ac_try") 2>&5
1.14 noro 5915: ac_status=$?
1.43 ohara 5916: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.14 noro 5917: (exit $ac_status); }; }; then
5918: :
5919: else
1.43 ohara 5920: $as_echo "$as_me: program exited with status $ac_status" >&5
5921: $as_echo "$as_me: failed program was:" >&5
1.32 noro 5922: sed 's/^/| /' conftest.$ac_ext >&5
5923:
1.14 noro 5924: ( exit $ac_status )
5925: ac_cv_header_stdc=no
5926: fi
1.43 ohara 5927: rm -rf conftest.dSYM
1.37 ohara 5928: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.14 noro 5929: fi
1.37 ohara 5930:
5931:
1.14 noro 5932: fi
5933: fi
1.43 ohara 5934: { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5935: $as_echo "$ac_cv_header_stdc" >&6; }
1.14 noro 5936: if test $ac_cv_header_stdc = yes; then
5937:
5938: cat >>confdefs.h <<\_ACEOF
5939: #define STDC_HEADERS 1
5940: _ACEOF
5941:
5942: fi
5943:
5944: # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5945:
1.2 noro 5946:
1.3 noro 5947:
1.14 noro 5948:
5949:
5950:
5951:
5952:
5953:
5954: for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
1.32 noro 5955: inttypes.h stdint.h unistd.h
1.14 noro 5956: do
1.43 ohara 5957: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5958: { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5959: $as_echo_n "checking for $ac_header... " >&6; }
1.37 ohara 5960: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1.43 ohara 5961: $as_echo_n "(cached) " >&6
1.14 noro 5962: else
5963: cat >conftest.$ac_ext <<_ACEOF
1.32 noro 5964: /* confdefs.h. */
5965: _ACEOF
5966: cat confdefs.h >>conftest.$ac_ext
5967: cat >>conftest.$ac_ext <<_ACEOF
5968: /* end confdefs.h. */
1.14 noro 5969: $ac_includes_default
5970:
5971: #include <$ac_header>
5972: _ACEOF
5973: rm -f conftest.$ac_objext
1.37 ohara 5974: if { (ac_try="$ac_compile"
5975: case "(($ac_try" in
5976: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5977: *) ac_try_echo=$ac_try;;
5978: esac
1.43 ohara 5979: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5980: $as_echo "$ac_try_echo") >&5
1.37 ohara 5981: (eval "$ac_compile") 2>conftest.er1
1.14 noro 5982: ac_status=$?
1.32 noro 5983: grep -v '^ *+' conftest.er1 >conftest.err
5984: rm -f conftest.er1
5985: cat conftest.err >&5
1.43 ohara 5986: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.37 ohara 5987: (exit $ac_status); } && {
5988: test -z "$ac_c_werror_flag" ||
5989: test ! -s conftest.err
5990: } && test -s conftest.$ac_objext; then
1.14 noro 5991: eval "$as_ac_Header=yes"
5992: else
1.43 ohara 5993: $as_echo "$as_me: failed program was:" >&5
1.32 noro 5994: sed 's/^/| /' conftest.$ac_ext >&5
5995:
1.37 ohara 5996: eval "$as_ac_Header=no"
1.14 noro 5997: fi
1.37 ohara 5998:
5999: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.14 noro 6000: fi
1.43 ohara 6001: ac_res=`eval 'as_val=${'$as_ac_Header'}
6002: $as_echo "$as_val"'`
6003: { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6004: $as_echo "$ac_res" >&6; }
6005: if test `eval 'as_val=${'$as_ac_Header'}
6006: $as_echo "$as_val"'` = yes; then
1.14 noro 6007: cat >>confdefs.h <<_ACEOF
1.43 ohara 6008: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
1.14 noro 6009: _ACEOF
6010:
6011: fi
6012:
6013: done
6014:
6015:
1.43 ohara 6016: { $as_echo "$as_me:$LINENO: checking for unsigned long long" >&5
6017: $as_echo_n "checking for unsigned long long... " >&6; }
1.18 ohara 6018: if test "${ac_cv_type_unsigned_long_long+set}" = set; then
1.43 ohara 6019: $as_echo_n "(cached) " >&6
1.18 ohara 6020: else
1.43 ohara 6021: ac_cv_type_unsigned_long_long=no
6022: cat >conftest.$ac_ext <<_ACEOF
1.32 noro 6023: /* confdefs.h. */
6024: _ACEOF
6025: cat confdefs.h >>conftest.$ac_ext
6026: cat >>conftest.$ac_ext <<_ACEOF
6027: /* end confdefs.h. */
1.18 ohara 6028: $ac_includes_default
6029: int
6030: main ()
6031: {
1.43 ohara 6032: if (sizeof (unsigned long long))
6033: return 0;
1.18 ohara 6034: ;
6035: return 0;
6036: }
6037: _ACEOF
6038: rm -f conftest.$ac_objext
1.37 ohara 6039: if { (ac_try="$ac_compile"
6040: case "(($ac_try" in
6041: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6042: *) ac_try_echo=$ac_try;;
6043: esac
1.43 ohara 6044: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6045: $as_echo "$ac_try_echo") >&5
1.37 ohara 6046: (eval "$ac_compile") 2>conftest.er1
1.18 ohara 6047: ac_status=$?
1.32 noro 6048: grep -v '^ *+' conftest.er1 >conftest.err
6049: rm -f conftest.er1
6050: cat conftest.err >&5
1.43 ohara 6051: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.37 ohara 6052: (exit $ac_status); } && {
6053: test -z "$ac_c_werror_flag" ||
6054: test ! -s conftest.err
6055: } && test -s conftest.$ac_objext; then
1.14 noro 6056: cat >conftest.$ac_ext <<_ACEOF
1.32 noro 6057: /* confdefs.h. */
6058: _ACEOF
6059: cat confdefs.h >>conftest.$ac_ext
6060: cat >>conftest.$ac_ext <<_ACEOF
6061: /* end confdefs.h. */
1.14 noro 6062: $ac_includes_default
6063: int
6064: main ()
6065: {
1.43 ohara 6066: if (sizeof ((unsigned long long)))
6067: return 0;
1.14 noro 6068: ;
6069: return 0;
6070: }
6071: _ACEOF
6072: rm -f conftest.$ac_objext
1.37 ohara 6073: if { (ac_try="$ac_compile"
6074: case "(($ac_try" in
6075: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6076: *) ac_try_echo=$ac_try;;
6077: esac
1.43 ohara 6078: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6079: $as_echo "$ac_try_echo") >&5
1.37 ohara 6080: (eval "$ac_compile") 2>conftest.er1
1.14 noro 6081: ac_status=$?
1.32 noro 6082: grep -v '^ *+' conftest.er1 >conftest.err
6083: rm -f conftest.er1
6084: cat conftest.err >&5
1.43 ohara 6085: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.37 ohara 6086: (exit $ac_status); } && {
6087: test -z "$ac_c_werror_flag" ||
6088: test ! -s conftest.err
6089: } && test -s conftest.$ac_objext; then
1.43 ohara 6090: :
6091: else
6092: $as_echo "$as_me: failed program was:" >&5
6093: sed 's/^/| /' conftest.$ac_ext >&5
6094:
6095: ac_cv_type_unsigned_long_long=yes
6096: fi
6097:
6098: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.14 noro 6099: else
1.43 ohara 6100: $as_echo "$as_me: failed program was:" >&5
1.32 noro 6101: sed 's/^/| /' conftest.$ac_ext >&5
6102:
1.43 ohara 6103:
1.14 noro 6104: fi
1.37 ohara 6105:
6106: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.14 noro 6107: fi
1.43 ohara 6108: { $as_echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
6109: $as_echo "$ac_cv_type_unsigned_long_long" >&6; }
6110: if test $ac_cv_type_unsigned_long_long = yes; then
6111:
6112: cat >>confdefs.h <<_ACEOF
6113: #define HAVE_UNSIGNED_LONG_LONG 1
6114: _ACEOF
6115:
6116:
6117: fi
1.14 noro 6118:
1.37 ohara 6119: # The cast to long int works around a bug in the HP C Compiler
6120: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6121: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6122: # This bug is HP SR number 8606223364.
1.43 ohara 6123: { $as_echo "$as_me:$LINENO: checking size of long" >&5
6124: $as_echo_n "checking size of long... " >&6; }
1.14 noro 6125: if test "${ac_cv_sizeof_long+set}" = set; then
1.43 ohara 6126: $as_echo_n "(cached) " >&6
1.14 noro 6127: else
6128: if test "$cross_compiling" = yes; then
6129: # Depending upon the size, compute the lo and hi bounds.
6130: cat >conftest.$ac_ext <<_ACEOF
1.32 noro 6131: /* confdefs.h. */
6132: _ACEOF
6133: cat confdefs.h >>conftest.$ac_ext
6134: cat >>conftest.$ac_ext <<_ACEOF
6135: /* end confdefs.h. */
1.14 noro 6136: $ac_includes_default
6137: int
6138: main ()
6139: {
1.43 ohara 6140: static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= 0)];
1.14 noro 6141: test_array [0] = 0
6142:
6143: ;
6144: return 0;
6145: }
6146: _ACEOF
6147: rm -f conftest.$ac_objext
1.37 ohara 6148: if { (ac_try="$ac_compile"
6149: case "(($ac_try" in
6150: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6151: *) ac_try_echo=$ac_try;;
6152: esac
1.43 ohara 6153: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6154: $as_echo "$ac_try_echo") >&5
1.37 ohara 6155: (eval "$ac_compile") 2>conftest.er1
1.14 noro 6156: ac_status=$?
1.32 noro 6157: grep -v '^ *+' conftest.er1 >conftest.err
6158: rm -f conftest.er1
6159: cat conftest.err >&5
1.43 ohara 6160: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.37 ohara 6161: (exit $ac_status); } && {
6162: test -z "$ac_c_werror_flag" ||
6163: test ! -s conftest.err
6164: } && test -s conftest.$ac_objext; then
1.14 noro 6165: ac_lo=0 ac_mid=0
6166: while :; do
6167: cat >conftest.$ac_ext <<_ACEOF
1.32 noro 6168: /* confdefs.h. */
6169: _ACEOF
6170: cat confdefs.h >>conftest.$ac_ext
6171: cat >>conftest.$ac_ext <<_ACEOF
6172: /* end confdefs.h. */
1.14 noro 6173: $ac_includes_default
6174: int
6175: main ()
6176: {
1.43 ohara 6177: static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
1.14 noro 6178: test_array [0] = 0
6179:
6180: ;
6181: return 0;
6182: }
6183: _ACEOF
6184: rm -f conftest.$ac_objext
1.37 ohara 6185: if { (ac_try="$ac_compile"
6186: case "(($ac_try" in
6187: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6188: *) ac_try_echo=$ac_try;;
6189: esac
1.43 ohara 6190: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6191: $as_echo "$ac_try_echo") >&5
1.37 ohara 6192: (eval "$ac_compile") 2>conftest.er1
1.14 noro 6193: ac_status=$?
1.32 noro 6194: grep -v '^ *+' conftest.er1 >conftest.err
6195: rm -f conftest.er1
6196: cat conftest.err >&5
1.43 ohara 6197: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.37 ohara 6198: (exit $ac_status); } && {
6199: test -z "$ac_c_werror_flag" ||
6200: test ! -s conftest.err
6201: } && test -s conftest.$ac_objext; then
1.14 noro 6202: ac_hi=$ac_mid; break
6203: else
1.43 ohara 6204: $as_echo "$as_me: failed program was:" >&5
1.32 noro 6205: sed 's/^/| /' conftest.$ac_ext >&5
6206:
1.37 ohara 6207: ac_lo=`expr $ac_mid + 1`
6208: if test $ac_lo -le $ac_mid; then
6209: ac_lo= ac_hi=
6210: break
6211: fi
6212: ac_mid=`expr 2 '*' $ac_mid + 1`
1.14 noro 6213: fi
1.37 ohara 6214:
6215: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.14 noro 6216: done
6217: else
1.43 ohara 6218: $as_echo "$as_me: failed program was:" >&5
1.32 noro 6219: sed 's/^/| /' conftest.$ac_ext >&5
6220:
1.37 ohara 6221: cat >conftest.$ac_ext <<_ACEOF
1.32 noro 6222: /* confdefs.h. */
6223: _ACEOF
6224: cat confdefs.h >>conftest.$ac_ext
6225: cat >>conftest.$ac_ext <<_ACEOF
6226: /* end confdefs.h. */
1.14 noro 6227: $ac_includes_default
6228: int
6229: main ()
6230: {
1.43 ohara 6231: static int test_array [1 - 2 * !(((long int) (sizeof (long))) < 0)];
1.14 noro 6232: test_array [0] = 0
6233:
6234: ;
6235: return 0;
6236: }
6237: _ACEOF
6238: rm -f conftest.$ac_objext
1.37 ohara 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
1.43 ohara 6244: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6245: $as_echo "$ac_try_echo") >&5
1.37 ohara 6246: (eval "$ac_compile") 2>conftest.er1
1.14 noro 6247: ac_status=$?
1.32 noro 6248: grep -v '^ *+' conftest.er1 >conftest.err
6249: rm -f conftest.er1
6250: cat conftest.err >&5
1.43 ohara 6251: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.37 ohara 6252: (exit $ac_status); } && {
6253: test -z "$ac_c_werror_flag" ||
6254: test ! -s conftest.err
6255: } && test -s conftest.$ac_objext; then
1.14 noro 6256: ac_hi=-1 ac_mid=-1
6257: while :; do
6258: cat >conftest.$ac_ext <<_ACEOF
1.32 noro 6259: /* confdefs.h. */
6260: _ACEOF
6261: cat confdefs.h >>conftest.$ac_ext
6262: cat >>conftest.$ac_ext <<_ACEOF
6263: /* end confdefs.h. */
1.14 noro 6264: $ac_includes_default
6265: int
6266: main ()
6267: {
1.43 ohara 6268: static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= $ac_mid)];
1.14 noro 6269: test_array [0] = 0
6270:
6271: ;
6272: return 0;
6273: }
6274: _ACEOF
6275: rm -f conftest.$ac_objext
1.37 ohara 6276: if { (ac_try="$ac_compile"
6277: case "(($ac_try" in
6278: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6279: *) ac_try_echo=$ac_try;;
6280: esac
1.43 ohara 6281: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6282: $as_echo "$ac_try_echo") >&5
1.37 ohara 6283: (eval "$ac_compile") 2>conftest.er1
1.14 noro 6284: ac_status=$?
1.32 noro 6285: grep -v '^ *+' conftest.er1 >conftest.err
6286: rm -f conftest.er1
6287: cat conftest.err >&5
1.43 ohara 6288: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.37 ohara 6289: (exit $ac_status); } && {
6290: test -z "$ac_c_werror_flag" ||
6291: test ! -s conftest.err
6292: } && test -s conftest.$ac_objext; then
1.14 noro 6293: ac_lo=$ac_mid; break
6294: else
1.43 ohara 6295: $as_echo "$as_me: failed program was:" >&5
1.32 noro 6296: sed 's/^/| /' conftest.$ac_ext >&5
6297:
1.37 ohara 6298: ac_hi=`expr '(' $ac_mid ')' - 1`
6299: if test $ac_mid -le $ac_hi; then
6300: ac_lo= ac_hi=
6301: break
6302: fi
6303: ac_mid=`expr 2 '*' $ac_mid`
1.14 noro 6304: fi
1.37 ohara 6305:
6306: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.14 noro 6307: done
6308: else
1.43 ohara 6309: $as_echo "$as_me: failed program was:" >&5
1.32 noro 6310: sed 's/^/| /' conftest.$ac_ext >&5
6311:
1.37 ohara 6312: ac_lo= ac_hi=
1.14 noro 6313: fi
1.37 ohara 6314:
6315: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.14 noro 6316: fi
1.37 ohara 6317:
6318: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.14 noro 6319: # Binary search between lo and hi bounds.
6320: while test "x$ac_lo" != "x$ac_hi"; do
6321: ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6322: cat >conftest.$ac_ext <<_ACEOF
1.32 noro 6323: /* confdefs.h. */
6324: _ACEOF
6325: cat confdefs.h >>conftest.$ac_ext
6326: cat >>conftest.$ac_ext <<_ACEOF
6327: /* end confdefs.h. */
1.14 noro 6328: $ac_includes_default
6329: int
6330: main ()
6331: {
1.43 ohara 6332: static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
1.14 noro 6333: test_array [0] = 0
6334:
6335: ;
6336: return 0;
6337: }
6338: _ACEOF
6339: rm -f conftest.$ac_objext
1.37 ohara 6340: if { (ac_try="$ac_compile"
6341: case "(($ac_try" in
6342: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6343: *) ac_try_echo=$ac_try;;
6344: esac
1.43 ohara 6345: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6346: $as_echo "$ac_try_echo") >&5
1.37 ohara 6347: (eval "$ac_compile") 2>conftest.er1
1.14 noro 6348: ac_status=$?
1.32 noro 6349: grep -v '^ *+' conftest.er1 >conftest.err
6350: rm -f conftest.er1
6351: cat conftest.err >&5
1.43 ohara 6352: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.37 ohara 6353: (exit $ac_status); } && {
6354: test -z "$ac_c_werror_flag" ||
6355: test ! -s conftest.err
6356: } && test -s conftest.$ac_objext; then
1.14 noro 6357: ac_hi=$ac_mid
6358: else
1.43 ohara 6359: $as_echo "$as_me: failed program was:" >&5
1.32 noro 6360: sed 's/^/| /' conftest.$ac_ext >&5
6361:
1.37 ohara 6362: ac_lo=`expr '(' $ac_mid ')' + 1`
1.14 noro 6363: fi
1.37 ohara 6364:
6365: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.14 noro 6366: done
6367: case $ac_lo in
6368: ?*) ac_cv_sizeof_long=$ac_lo;;
1.37 ohara 6369: '') if test "$ac_cv_type_long" = yes; then
1.43 ohara 6370: { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
1.32 noro 6371: See \`config.log' for more details." >&5
1.43 ohara 6372: $as_echo "$as_me: error: cannot compute sizeof (long)
1.32 noro 6373: See \`config.log' for more details." >&2;}
1.37 ohara 6374: { (exit 77); exit 77; }; }
6375: else
6376: ac_cv_sizeof_long=0
6377: fi ;;
1.14 noro 6378: esac
6379: else
6380: cat >conftest.$ac_ext <<_ACEOF
1.32 noro 6381: /* confdefs.h. */
6382: _ACEOF
6383: cat confdefs.h >>conftest.$ac_ext
6384: cat >>conftest.$ac_ext <<_ACEOF
6385: /* end confdefs.h. */
1.14 noro 6386: $ac_includes_default
1.43 ohara 6387: static long int longval () { return (long int) (sizeof (long)); }
6388: static unsigned long int ulongval () { return (long int) (sizeof (long)); }
1.14 noro 6389: #include <stdio.h>
6390: #include <stdlib.h>
6391: int
6392: main ()
6393: {
6394:
6395: FILE *f = fopen ("conftest.val", "w");
6396: if (! f)
1.37 ohara 6397: return 1;
1.43 ohara 6398: if (((long int) (sizeof (long))) < 0)
1.14 noro 6399: {
1.37 ohara 6400: long int i = longval ();
1.43 ohara 6401: if (i != ((long int) (sizeof (long))))
1.37 ohara 6402: return 1;
1.43 ohara 6403: fprintf (f, "%ld", i);
1.14 noro 6404: }
6405: else
6406: {
1.37 ohara 6407: unsigned long int i = ulongval ();
1.43 ohara 6408: if (i != ((long int) (sizeof (long))))
1.37 ohara 6409: return 1;
1.43 ohara 6410: fprintf (f, "%lu", i);
1.14 noro 6411: }
1.43 ohara 6412: /* Do not output a trailing newline, as this causes \r\n confusion
6413: on some platforms. */
1.37 ohara 6414: return ferror (f) || fclose (f) != 0;
1.14 noro 6415:
6416: ;
6417: return 0;
6418: }
6419: _ACEOF
6420: rm -f conftest$ac_exeext
1.37 ohara 6421: if { (ac_try="$ac_link"
6422: case "(($ac_try" in
6423: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6424: *) ac_try_echo=$ac_try;;
6425: esac
1.43 ohara 6426: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6427: $as_echo "$ac_try_echo") >&5
1.37 ohara 6428: (eval "$ac_link") 2>&5
1.14 noro 6429: ac_status=$?
1.43 ohara 6430: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.14 noro 6431: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
1.37 ohara 6432: { (case "(($ac_try" in
6433: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6434: *) ac_try_echo=$ac_try;;
6435: esac
1.43 ohara 6436: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6437: $as_echo "$ac_try_echo") >&5
1.37 ohara 6438: (eval "$ac_try") 2>&5
1.14 noro 6439: ac_status=$?
1.43 ohara 6440: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.14 noro 6441: (exit $ac_status); }; }; then
6442: ac_cv_sizeof_long=`cat conftest.val`
6443: else
1.43 ohara 6444: $as_echo "$as_me: program exited with status $ac_status" >&5
6445: $as_echo "$as_me: failed program was:" >&5
1.32 noro 6446: sed 's/^/| /' conftest.$ac_ext >&5
6447:
1.14 noro 6448: ( exit $ac_status )
1.37 ohara 6449: if test "$ac_cv_type_long" = yes; then
1.43 ohara 6450: { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
1.32 noro 6451: See \`config.log' for more details." >&5
1.43 ohara 6452: $as_echo "$as_me: error: cannot compute sizeof (long)
1.32 noro 6453: See \`config.log' for more details." >&2;}
1.37 ohara 6454: { (exit 77); exit 77; }; }
6455: else
6456: ac_cv_sizeof_long=0
6457: fi
1.14 noro 6458: fi
1.43 ohara 6459: rm -rf conftest.dSYM
1.37 ohara 6460: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.14 noro 6461: fi
6462: rm -f conftest.val
6463: fi
1.43 ohara 6464: { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
6465: $as_echo "$ac_cv_sizeof_long" >&6; }
1.37 ohara 6466:
6467:
6468:
1.14 noro 6469: cat >>confdefs.h <<_ACEOF
6470: #define SIZEOF_LONG $ac_cv_sizeof_long
6471: _ACEOF
6472:
6473:
1.26 noro 6474: if test "${ac_cv_sizeof_long}" = 8; then
1.16 noro 6475: cat >>confdefs.h <<\_ACEOF
1.14 noro 6476: #define LONG_IS_64BIT 1
6477: _ACEOF
6478:
1.16 noro 6479: else
6480: cat >>confdefs.h <<\_ACEOF
1.14 noro 6481: #define LONG_IS_32BIT 1
6482: _ACEOF
6483:
6484: fi
6485: if test "${no_x}" != yes ; then
1.25 ohara 6486: if test -f "${x_libraries}/libXpm.a" -o -f "${x_libraries}/libXpm.dll.a" ; then
1.21 ohara 6487: XPMLIB="-lXpm"
6488: fi
1.37 ohara 6489: # Check whether --enable-plot was given.
1.14 noro 6490: if test "${enable_plot+set}" = set; then
1.37 ohara 6491: enableval=$enable_plot; enable_plot=yes
1.14 noro 6492: else
6493: enable_plot=no
1.37 ohara 6494: fi
6495:
1.14 noro 6496: fi
6497:
1.21 ohara 6498:
1.14 noro 6499: if test ${enable_plot:=no} != no ; then
6500: libasir_postfix=${libasir_postfix}_X
6501: cat >>confdefs.h <<\_ACEOF
6502: #define DO_PLOT 1
6503: _ACEOF
6504:
6505: fi
1.37 ohara 6506: if test "$enable_plot" = yes; then
1.14 noro 6507: USE_PLOT_TRUE=
6508: USE_PLOT_FALSE='#'
6509: else
6510: USE_PLOT_TRUE='#'
6511: USE_PLOT_FALSE=
6512: fi
6513:
1.37 ohara 6514:
6515: # Check whether --enable-interval was given.
1.14 noro 6516: if test "${enable_interval+set}" = set; then
1.37 ohara 6517: enableval=$enable_interval; enable_interval=${enableval}
1.14 noro 6518: else
6519: enable_interval=no
1.37 ohara 6520: fi
6521:
1.14 noro 6522:
6523: if test ${enable_interval:=no} != no ; then
6524: libasir_postfix=${libasir_postfix}_itv
6525: cat >>confdefs.h <<\_ACEOF
6526: #define INTERVAL 1
6527: _ACEOF
6528:
6529: if test "${enable_interval}" = debug ; then
6530: cat >>confdefs.h <<\_ACEOF
6531: #define ITVDEBUG 1
6532: _ACEOF
6533:
6534: fi
6535: fi
6536:
6537:
6538: if test "${enable_fep:=no}" != no ; then
6539: cat >>confdefs.h <<\_ACEOF
6540: #define FEP 1
6541: _ACEOF
6542:
6543: FEPLIB="-lreadline -ltermcap"
6544: fi
6545:
6546:
1.37 ohara 6547: # Check whether --enable-fft-float was given.
1.14 noro 6548: if test "${enable_fft_float+set}" = set; then
1.37 ohara 6549: enableval=$enable_fft_float; enable_fft_float=yes
1.14 noro 6550: else
6551: enable_fft_float=no
1.37 ohara 6552: fi
6553:
1.14 noro 6554:
6555: if test "${enable_fft_float:=no}" != no ; then
6556: cat >>confdefs.h <<\_ACEOF
6557: #define USE_FLOAT 1
6558: _ACEOF
6559:
6560: fi
6561:
6562:
1.45 ohara 6563: # Check whether --with-mpi was given.
6564: if test "${with_mpi+set}" = set; then
6565: withval=$with_mpi; with_mpi=${withval}
6566: else
6567: with_mpi=no
6568: fi
6569:
6570:
1.14 noro 6571: if test "${with_mpi:=no}" != no ; then
6572: cat >>confdefs.h <<\_ACEOF
6573: #define MPI 1
6574: _ACEOF
6575:
6576: fi
6577:
6578:
6579: if test "${with_lapack:=no}" != no ; then
1.33 noro 6580: LAPACKLIB="-llapack -lblas -lg2c"
1.14 noro 6581: cat >>confdefs.h <<\_ACEOF
6582: #define LAPACK 1
6583: _ACEOF
6584:
6585: fi
6586:
6587:
6588:
6589:
6590:
6591: i386_elf_obj=asmi_l.o
6592: i386_aout_obj=asmi.o
6593: sparc_v8_obj="sparc-2.o asm4-2.o edr-2.o"
1.30 noro 6594: sparc_v9_obj=asmalpha.o
1.14 noro 6595: generic_obj=asmalpha.o
6596:
6597: case "${host}" in
1.20 ohara 6598: i[3-6]86-*-freebsd[3-9].*)
1.14 noro 6599: asm_obj="${i386_elf_obj}"
1.20 ohara 6600: ;;
6601: i[3-6]86-*-linux*|x86-*-linux*)
6602: asm_obj="${i386_elf_obj}"
6603: cat >>confdefs.h <<\_ACEOF
1.24 ohara 6604: #define _BSD_SOURCE 1
1.20 ohara 6605: _ACEOF
6606:
1.14 noro 6607: ;;
6608: *-*-cygwin*)
6609: asm_obj="${i386_aout_obj}"
6610: ;;
1.27 ohara 6611: i[3-6]86-*-interix*)
1.28 ohara 6612: asm_obj="${i386_aout_obj}"
1.27 ohara 6613: cat >>confdefs.h <<\_ACEOF
6614: #define _ALL_SOURCE 1
6615: _ACEOF
6616:
6617: ;;
1.14 noro 6618: sparc-sun-solaris2.*)
6619: case "`uname -m`" in
6620: sun4[dm]) asm_obj="${sparc_v8_obj}" ;;
1.31 ohara 6621: sun4u*) asm_obj="${sparc_v9_obj}"
6622: if test "${ac_test_CFLAGS}" != set -a "${GCC}" = yes ; then
6623: CFLAGS="${CFLAGS} -m64"
6624: fi
6625:
6626: ;;
1.14 noro 6627: *) asm_obj="${generic_obj}" ;;
6628: esac
6629: cat >>confdefs.h <<\_ACEOF
6630: #define SYSV 1
6631: _ACEOF
6632:
6633: ;;
1.36 ohara 6634: *-apple-darwin*)
1.14 noro 6635: asm_obj="${generic_obj}"
6636: cat >>confdefs.h <<\_ACEOF
6637: #define __DARWIN__ 1
6638: _ACEOF
6639:
1.19 ohara 6640: ;;
6641: arm*-*-linux*)
6642: asm_obj="${generic_obj}"
6643: if test "${ac_test_CFLAGS}" != set -a "${GCC}" = yes ; then
6644: CFLAGS="${CFLAGS} -fsigned-char"
6645: fi
1.14 noro 6646: ;;
6647: *)
6648: asm_obj="${generic_obj}"
6649: ;;
6650: esac
6651:
6652:
6653:
1.43 ohara 6654: { $as_echo "$as_me:$LINENO: checking for socket" >&5
6655: $as_echo_n "checking for socket... " >&6; }
1.14 noro 6656: if test "${ac_cv_func_socket+set}" = set; then
1.43 ohara 6657: $as_echo_n "(cached) " >&6
1.14 noro 6658: else
6659: cat >conftest.$ac_ext <<_ACEOF
1.32 noro 6660: /* confdefs.h. */
6661: _ACEOF
6662: cat confdefs.h >>conftest.$ac_ext
6663: cat >>conftest.$ac_ext <<_ACEOF
6664: /* end confdefs.h. */
6665: /* Define socket to an innocuous variant, in case <limits.h> declares socket.
6666: For example, HP-UX 11i <limits.h> declares gettimeofday. */
6667: #define socket innocuous_socket
6668:
1.14 noro 6669: /* System header to define __stub macros and hopefully few prototypes,
1.32 noro 6670: which can conflict with char socket (); below.
6671: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6672: <limits.h> exists even on freestanding compilers. */
6673:
6674: #ifdef __STDC__
6675: # include <limits.h>
6676: #else
6677: # include <assert.h>
6678: #endif
6679:
6680: #undef socket
6681:
1.37 ohara 6682: /* Override any GCC internal prototype to avoid an error.
6683: Use char because int might match the return type of a GCC
6684: builtin and then its argument prototype would still apply. */
1.14 noro 6685: #ifdef __cplusplus
6686: extern "C"
6687: #endif
6688: char socket ();
6689: /* The GNU C library defines this for functions which it implements
6690: to always fail with ENOSYS. Some functions are actually named
6691: something starting with __ and the normal name is an alias. */
1.37 ohara 6692: #if defined __stub_socket || defined __stub___socket
1.14 noro 6693: choke me
6694: #endif
6695:
1.32 noro 6696: int
6697: main ()
6698: {
1.37 ohara 6699: return socket ();
1.14 noro 6700: ;
6701: return 0;
6702: }
6703: _ACEOF
6704: rm -f conftest.$ac_objext conftest$ac_exeext
1.37 ohara 6705: if { (ac_try="$ac_link"
6706: case "(($ac_try" in
6707: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6708: *) ac_try_echo=$ac_try;;
6709: esac
1.43 ohara 6710: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6711: $as_echo "$ac_try_echo") >&5
1.37 ohara 6712: (eval "$ac_link") 2>conftest.er1
1.14 noro 6713: ac_status=$?
1.32 noro 6714: grep -v '^ *+' conftest.er1 >conftest.err
6715: rm -f conftest.er1
6716: cat conftest.err >&5
1.43 ohara 6717: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.37 ohara 6718: (exit $ac_status); } && {
6719: test -z "$ac_c_werror_flag" ||
6720: test ! -s conftest.err
1.43 ohara 6721: } && test -s conftest$ac_exeext && {
6722: test "$cross_compiling" = yes ||
6723: $as_test_x conftest$ac_exeext
6724: }; then
1.14 noro 6725: ac_cv_func_socket=yes
6726: else
1.43 ohara 6727: $as_echo "$as_me: failed program was:" >&5
1.32 noro 6728: sed 's/^/| /' conftest.$ac_ext >&5
6729:
1.37 ohara 6730: ac_cv_func_socket=no
1.14 noro 6731: fi
1.37 ohara 6732:
1.43 ohara 6733: rm -rf conftest.dSYM
1.37 ohara 6734: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.32 noro 6735: conftest$ac_exeext conftest.$ac_ext
1.14 noro 6736: fi
1.43 ohara 6737: { $as_echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
6738: $as_echo "$ac_cv_func_socket" >&6; }
1.14 noro 6739: if test $ac_cv_func_socket = yes; then
6740: :
6741: else
6742:
1.43 ohara 6743: { $as_echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
6744: $as_echo_n "checking for socket in -lsocket... " >&6; }
1.14 noro 6745: if test "${ac_cv_lib_socket_socket+set}" = set; then
1.43 ohara 6746: $as_echo_n "(cached) " >&6
1.14 noro 6747: else
6748: ac_check_lib_save_LIBS=$LIBS
6749: LIBS="-lsocket $LIBS"
6750: cat >conftest.$ac_ext <<_ACEOF
1.32 noro 6751: /* confdefs.h. */
6752: _ACEOF
6753: cat confdefs.h >>conftest.$ac_ext
6754: cat >>conftest.$ac_ext <<_ACEOF
6755: /* end confdefs.h. */
1.14 noro 6756:
1.37 ohara 6757: /* Override any GCC internal prototype to avoid an error.
6758: Use char because int might match the return type of a GCC
6759: builtin and then its argument prototype would still apply. */
1.14 noro 6760: #ifdef __cplusplus
6761: extern "C"
6762: #endif
6763: char socket ();
6764: int
6765: main ()
6766: {
1.37 ohara 6767: return socket ();
1.14 noro 6768: ;
6769: return 0;
6770: }
6771: _ACEOF
6772: rm -f conftest.$ac_objext conftest$ac_exeext
1.37 ohara 6773: if { (ac_try="$ac_link"
6774: case "(($ac_try" in
6775: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6776: *) ac_try_echo=$ac_try;;
6777: esac
1.43 ohara 6778: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6779: $as_echo "$ac_try_echo") >&5
1.37 ohara 6780: (eval "$ac_link") 2>conftest.er1
1.14 noro 6781: ac_status=$?
1.32 noro 6782: grep -v '^ *+' conftest.er1 >conftest.err
6783: rm -f conftest.er1
6784: cat conftest.err >&5
1.43 ohara 6785: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.37 ohara 6786: (exit $ac_status); } && {
6787: test -z "$ac_c_werror_flag" ||
6788: test ! -s conftest.err
1.43 ohara 6789: } && test -s conftest$ac_exeext && {
6790: test "$cross_compiling" = yes ||
6791: $as_test_x conftest$ac_exeext
6792: }; then
1.14 noro 6793: ac_cv_lib_socket_socket=yes
6794: else
1.43 ohara 6795: $as_echo "$as_me: failed program was:" >&5
1.32 noro 6796: sed 's/^/| /' conftest.$ac_ext >&5
6797:
1.37 ohara 6798: ac_cv_lib_socket_socket=no
1.14 noro 6799: fi
1.37 ohara 6800:
1.43 ohara 6801: rm -rf conftest.dSYM
1.37 ohara 6802: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.32 noro 6803: conftest$ac_exeext conftest.$ac_ext
1.14 noro 6804: LIBS=$ac_check_lib_save_LIBS
6805: fi
1.43 ohara 6806: { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
6807: $as_echo "$ac_cv_lib_socket_socket" >&6; }
1.14 noro 6808: if test $ac_cv_lib_socket_socket = yes; then
6809: cat >>confdefs.h <<_ACEOF
6810: #define HAVE_LIBSOCKET 1
6811: _ACEOF
6812:
6813: LIBS="-lsocket $LIBS"
6814:
6815: fi
6816:
6817: fi
6818:
1.43 ohara 6819: { $as_echo "$as_me:$LINENO: checking for gethostbyname" >&5
6820: $as_echo_n "checking for gethostbyname... " >&6; }
1.14 noro 6821: if test "${ac_cv_func_gethostbyname+set}" = set; then
1.43 ohara 6822: $as_echo_n "(cached) " >&6
1.14 noro 6823: else
6824: cat >conftest.$ac_ext <<_ACEOF
1.32 noro 6825: /* confdefs.h. */
6826: _ACEOF
6827: cat confdefs.h >>conftest.$ac_ext
6828: cat >>conftest.$ac_ext <<_ACEOF
6829: /* end confdefs.h. */
6830: /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
6831: For example, HP-UX 11i <limits.h> declares gettimeofday. */
6832: #define gethostbyname innocuous_gethostbyname
6833:
1.14 noro 6834: /* System header to define __stub macros and hopefully few prototypes,
1.32 noro 6835: which can conflict with char gethostbyname (); below.
6836: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6837: <limits.h> exists even on freestanding compilers. */
6838:
6839: #ifdef __STDC__
6840: # include <limits.h>
6841: #else
6842: # include <assert.h>
6843: #endif
6844:
6845: #undef gethostbyname
6846:
1.37 ohara 6847: /* Override any GCC internal prototype to avoid an error.
6848: Use char because int might match the return type of a GCC
6849: builtin and then its argument prototype would still apply. */
1.14 noro 6850: #ifdef __cplusplus
6851: extern "C"
6852: #endif
6853: char gethostbyname ();
6854: /* The GNU C library defines this for functions which it implements
6855: to always fail with ENOSYS. Some functions are actually named
6856: something starting with __ and the normal name is an alias. */
1.37 ohara 6857: #if defined __stub_gethostbyname || defined __stub___gethostbyname
1.14 noro 6858: choke me
6859: #endif
6860:
1.32 noro 6861: int
6862: main ()
6863: {
1.37 ohara 6864: return gethostbyname ();
1.14 noro 6865: ;
6866: return 0;
6867: }
6868: _ACEOF
6869: rm -f conftest.$ac_objext conftest$ac_exeext
1.37 ohara 6870: if { (ac_try="$ac_link"
6871: case "(($ac_try" in
6872: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6873: *) ac_try_echo=$ac_try;;
6874: esac
1.43 ohara 6875: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6876: $as_echo "$ac_try_echo") >&5
1.37 ohara 6877: (eval "$ac_link") 2>conftest.er1
1.14 noro 6878: ac_status=$?
1.32 noro 6879: grep -v '^ *+' conftest.er1 >conftest.err
6880: rm -f conftest.er1
6881: cat conftest.err >&5
1.43 ohara 6882: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.37 ohara 6883: (exit $ac_status); } && {
6884: test -z "$ac_c_werror_flag" ||
6885: test ! -s conftest.err
1.43 ohara 6886: } && test -s conftest$ac_exeext && {
6887: test "$cross_compiling" = yes ||
6888: $as_test_x conftest$ac_exeext
6889: }; then
1.14 noro 6890: ac_cv_func_gethostbyname=yes
6891: else
1.43 ohara 6892: $as_echo "$as_me: failed program was:" >&5
1.32 noro 6893: sed 's/^/| /' conftest.$ac_ext >&5
6894:
1.37 ohara 6895: ac_cv_func_gethostbyname=no
1.14 noro 6896: fi
1.37 ohara 6897:
1.43 ohara 6898: rm -rf conftest.dSYM
1.37 ohara 6899: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.32 noro 6900: conftest$ac_exeext conftest.$ac_ext
1.14 noro 6901: fi
1.43 ohara 6902: { $as_echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
6903: $as_echo "$ac_cv_func_gethostbyname" >&6; }
1.14 noro 6904: if test $ac_cv_func_gethostbyname = yes; then
6905: :
6906: else
6907:
1.43 ohara 6908: { $as_echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
6909: $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
1.14 noro 6910: if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
1.43 ohara 6911: $as_echo_n "(cached) " >&6
1.14 noro 6912: else
6913: ac_check_lib_save_LIBS=$LIBS
6914: LIBS="-lnsl $LIBS"
6915: cat >conftest.$ac_ext <<_ACEOF
1.32 noro 6916: /* confdefs.h. */
6917: _ACEOF
6918: cat confdefs.h >>conftest.$ac_ext
6919: cat >>conftest.$ac_ext <<_ACEOF
6920: /* end confdefs.h. */
1.14 noro 6921:
1.37 ohara 6922: /* Override any GCC internal prototype to avoid an error.
6923: Use char because int might match the return type of a GCC
6924: builtin and then its argument prototype would still apply. */
1.14 noro 6925: #ifdef __cplusplus
6926: extern "C"
6927: #endif
6928: char gethostbyname ();
6929: int
6930: main ()
6931: {
1.37 ohara 6932: return gethostbyname ();
1.14 noro 6933: ;
6934: return 0;
6935: }
6936: _ACEOF
6937: rm -f conftest.$ac_objext conftest$ac_exeext
1.37 ohara 6938: if { (ac_try="$ac_link"
6939: case "(($ac_try" in
6940: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6941: *) ac_try_echo=$ac_try;;
6942: esac
1.43 ohara 6943: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6944: $as_echo "$ac_try_echo") >&5
1.37 ohara 6945: (eval "$ac_link") 2>conftest.er1
1.14 noro 6946: ac_status=$?
1.32 noro 6947: grep -v '^ *+' conftest.er1 >conftest.err
6948: rm -f conftest.er1
6949: cat conftest.err >&5
1.43 ohara 6950: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.37 ohara 6951: (exit $ac_status); } && {
6952: test -z "$ac_c_werror_flag" ||
6953: test ! -s conftest.err
1.43 ohara 6954: } && test -s conftest$ac_exeext && {
6955: test "$cross_compiling" = yes ||
6956: $as_test_x conftest$ac_exeext
6957: }; then
1.14 noro 6958: ac_cv_lib_nsl_gethostbyname=yes
6959: else
1.43 ohara 6960: $as_echo "$as_me: failed program was:" >&5
1.32 noro 6961: sed 's/^/| /' conftest.$ac_ext >&5
6962:
1.37 ohara 6963: ac_cv_lib_nsl_gethostbyname=no
1.14 noro 6964: fi
1.37 ohara 6965:
1.43 ohara 6966: rm -rf conftest.dSYM
1.37 ohara 6967: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.32 noro 6968: conftest$ac_exeext conftest.$ac_ext
1.14 noro 6969: LIBS=$ac_check_lib_save_LIBS
6970: fi
1.43 ohara 6971: { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
6972: $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
1.14 noro 6973: if test $ac_cv_lib_nsl_gethostbyname = yes; then
6974: cat >>confdefs.h <<_ACEOF
6975: #define HAVE_LIBNSL 1
6976: _ACEOF
6977:
6978: LIBS="-lnsl $LIBS"
6979:
6980: fi
6981:
6982: fi
6983:
6984:
1.37 ohara 6985: ac_config_files="$ac_config_files Makefile engine/Makefile asm/Makefile builtin/Makefile fft/Makefile include/Makefile io/Makefile lib/Makefile parse/Makefile plot/Makefile"
6986:
1.14 noro 6987: cat >confcache <<\_ACEOF
6988: # This file is a shell script that caches the results of configure
6989: # tests run on this system so they can be shared between configure
6990: # scripts and configure runs, see configure's option --config-cache.
6991: # It is not useful on other systems. If it contains results you don't
6992: # want to keep, you may remove or edit it.
6993: #
6994: # config.status only pays attention to the cache file if you give it
6995: # the --recheck option to rerun configure.
6996: #
1.32 noro 6997: # `ac_cv_env_foo' variables (set or unset) will be overridden when
1.14 noro 6998: # loading this file, other *unset* `ac_cv_foo' will be assigned the
6999: # following values.
7000:
7001: _ACEOF
7002:
7003: # The following way of writing the cache mishandles newlines in values,
7004: # but we know of no workaround that is simple, portable, and efficient.
1.37 ohara 7005: # So, we kill variables containing newlines.
1.14 noro 7006: # Ultrix sh set writes to stderr and can't be redirected directly,
7007: # and sets the high bit in the cache file unless we assign to the vars.
1.37 ohara 7008: (
7009: for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
7010: eval ac_val=\$$ac_var
7011: case $ac_val in #(
7012: *${as_nl}*)
7013: case $ac_var in #(
1.43 ohara 7014: *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
7015: $as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1.37 ohara 7016: esac
7017: case $ac_var in #(
7018: _ | IFS | as_nl) ;; #(
1.43 ohara 7019: BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1.37 ohara 7020: *) $as_unset $ac_var ;;
7021: esac ;;
7022: esac
7023: done
7024:
1.14 noro 7025: (set) 2>&1 |
1.37 ohara 7026: case $as_nl`(ac_space=' '; set) 2>&1` in #(
7027: *${as_nl}ac_space=\ *)
1.14 noro 7028: # `set' does not quote correctly, so add quotes (double-quote
7029: # substitution turns \\\\ into \\, and sed turns \\ into \).
7030: sed -n \
1.32 noro 7031: "s/'/'\\\\''/g;
7032: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
1.37 ohara 7033: ;; #(
1.14 noro 7034: *)
7035: # `set' quotes correctly as required by POSIX, so do not add quotes.
1.37 ohara 7036: sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1.14 noro 7037: ;;
1.37 ohara 7038: esac |
7039: sort
7040: ) |
1.14 noro 7041: sed '
1.37 ohara 7042: /^ac_cv_env_/b end
1.14 noro 7043: t clear
1.37 ohara 7044: :clear
1.14 noro 7045: s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7046: t end
1.37 ohara 7047: s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7048: :end' >>confcache
7049: if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
7050: if test -w "$cache_file"; then
7051: test "x$cache_file" != "x/dev/null" &&
1.43 ohara 7052: { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
7053: $as_echo "$as_me: updating cache $cache_file" >&6;}
1.14 noro 7054: cat confcache >$cache_file
7055: else
1.43 ohara 7056: { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
7057: $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
1.14 noro 7058: fi
7059: fi
7060: rm -f confcache
7061:
7062: test "x$prefix" = xNONE && prefix=$ac_default_prefix
7063: # Let make expand exec_prefix.
7064: test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7065:
7066: # Transform confdefs.h into DEFS.
7067: # Protect against shell expansion while executing Makefile rules.
7068: # Protect against Makefile macro expansion.
7069: #
7070: # If the first sed substitution is executed (which looks for macros that
1.37 ohara 7071: # take arguments), then branch to the quote section. Otherwise,
1.14 noro 7072: # look for a macro that doesn't take arguments.
1.37 ohara 7073: ac_script='
1.43 ohara 7074: :mline
7075: /\\$/{
7076: N
7077: s,\\\n,,
7078: b mline
7079: }
1.14 noro 7080: t clear
1.37 ohara 7081: :clear
7082: s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
1.14 noro 7083: t quote
1.37 ohara 7084: s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
1.14 noro 7085: t quote
1.37 ohara 7086: b any
7087: :quote
7088: s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
7089: s/\[/\\&/g
7090: s/\]/\\&/g
7091: s/\$/$$/g
7092: H
7093: :any
7094: ${
7095: g
7096: s/^\n//
7097: s/\n/ /g
7098: p
7099: }
7100: '
7101: DEFS=`sed -n "$ac_script" confdefs.h`
1.14 noro 7102:
7103:
1.32 noro 7104: ac_libobjs=
7105: ac_ltlibobjs=
7106: for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
7107: # 1. Remove the extension, and $U if already installed.
1.37 ohara 7108: ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
1.43 ohara 7109: ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
1.37 ohara 7110: # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
7111: # will be set to the directory where LIBOBJS objects are built.
7112: ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
7113: ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
1.32 noro 7114: done
7115: LIBOBJS=$ac_libobjs
7116:
7117: LTLIBOBJS=$ac_ltlibobjs
7118:
7119:
1.37 ohara 7120: if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
1.43 ohara 7121: { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
1.37 ohara 7122: Usually this means the macro was only invoked conditionally." >&5
1.43 ohara 7123: $as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
1.37 ohara 7124: Usually this means the macro was only invoked conditionally." >&2;}
7125: { (exit 1); exit 1; }; }
7126: fi
7127: if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
1.43 ohara 7128: { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
1.37 ohara 7129: Usually this means the macro was only invoked conditionally." >&5
1.43 ohara 7130: $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
1.37 ohara 7131: Usually this means the macro was only invoked conditionally." >&2;}
7132: { (exit 1); exit 1; }; }
7133: fi
7134: if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
1.43 ohara 7135: { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
1.37 ohara 7136: Usually this means the macro was only invoked conditionally." >&5
1.43 ohara 7137: $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
1.37 ohara 7138: Usually this means the macro was only invoked conditionally." >&2;}
7139: { (exit 1); exit 1; }; }
7140: fi
1.38 ohara 7141: if test -z "${USE_GC7_TRUE}" && test -z "${USE_GC7_FALSE}"; then
1.43 ohara 7142: { { $as_echo "$as_me:$LINENO: error: conditional \"USE_GC7\" was never defined.
1.38 ohara 7143: Usually this means the macro was only invoked conditionally." >&5
1.43 ohara 7144: $as_echo "$as_me: error: conditional \"USE_GC7\" was never defined.
1.38 ohara 7145: Usually this means the macro was only invoked conditionally." >&2;}
7146: { (exit 1); exit 1; }; }
7147: fi
1.37 ohara 7148: if test -z "${USE_PLOT_TRUE}" && test -z "${USE_PLOT_FALSE}"; then
1.43 ohara 7149: { { $as_echo "$as_me:$LINENO: error: conditional \"USE_PLOT\" was never defined.
1.37 ohara 7150: Usually this means the macro was only invoked conditionally." >&5
1.43 ohara 7151: $as_echo "$as_me: error: conditional \"USE_PLOT\" was never defined.
1.37 ohara 7152: Usually this means the macro was only invoked conditionally." >&2;}
7153: { (exit 1); exit 1; }; }
7154: fi
1.14 noro 7155:
7156: : ${CONFIG_STATUS=./config.status}
1.43 ohara 7157: ac_write_fail=0
1.14 noro 7158: ac_clean_files_save=$ac_clean_files
7159: ac_clean_files="$ac_clean_files $CONFIG_STATUS"
1.43 ohara 7160: { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
7161: $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
7162: cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1.14 noro 7163: #! $SHELL
7164: # Generated by $as_me.
7165: # Run this file to recreate the current configuration.
7166: # Compiler output produced by configure, useful for debugging
7167: # configure, is in config.log if it exists.
7168:
7169: debug=false
1.32 noro 7170: ac_cs_recheck=false
7171: ac_cs_silent=false
1.14 noro 7172: SHELL=\${CONFIG_SHELL-$SHELL}
7173: _ACEOF
7174:
1.43 ohara 7175: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1.14 noro 7176: ## --------------------- ##
7177: ## M4sh Initialization. ##
7178: ## --------------------- ##
7179:
1.37 ohara 7180: # Be more Bourne compatible
7181: DUALCASE=1; export DUALCASE # for MKS sh
1.14 noro 7182: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
7183: emulate sh
7184: NULLCMD=:
1.43 ohara 7185: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
1.32 noro 7186: # is contrary to our usage. Disable this feature.
7187: alias -g '${1+"$@"}'='"$@"'
1.37 ohara 7188: setopt NO_GLOB_SUBST
7189: else
7190: case `(set -o) 2>/dev/null` in
7191: *posix*) set -o posix ;;
7192: esac
7193:
7194: fi
7195:
7196:
7197:
7198:
7199: # PATH needs CR
7200: # Avoid depending upon Character Ranges.
7201: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
7202: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7203: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
7204: as_cr_digits='0123456789'
7205: as_cr_alnum=$as_cr_Letters$as_cr_digits
7206:
1.43 ohara 7207: as_nl='
7208: '
7209: export as_nl
7210: # Printing a long string crashes Solaris 7 /usr/bin/printf.
7211: as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7212: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
7213: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
7214: if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
7215: as_echo='printf %s\n'
7216: as_echo_n='printf %s'
7217: else
7218: if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
7219: as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
7220: as_echo_n='/usr/ucb/echo -n'
7221: else
7222: as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
7223: as_echo_n_body='eval
7224: arg=$1;
7225: case $arg in
7226: *"$as_nl"*)
7227: expr "X$arg" : "X\\(.*\\)$as_nl";
7228: arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
7229: esac;
7230: expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
7231: '
7232: export as_echo_n_body
7233: as_echo_n='sh -c $as_echo_n_body as_echo'
7234: fi
7235: export as_echo_body
7236: as_echo='sh -c $as_echo_body as_echo'
7237: fi
7238:
1.37 ohara 7239: # The user is always right.
7240: if test "${PATH_SEPARATOR+set}" != set; then
1.43 ohara 7241: PATH_SEPARATOR=:
7242: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
7243: (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
7244: PATH_SEPARATOR=';'
7245: }
1.14 noro 7246: fi
7247:
7248: # Support unset when possible.
1.32 noro 7249: if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
1.14 noro 7250: as_unset=unset
7251: else
7252: as_unset=false
7253: fi
7254:
1.32 noro 7255:
1.37 ohara 7256: # IFS
7257: # We need space, tab and new line, in precisely that order. Quoting is
7258: # there to prevent editors from complaining about space-tab.
7259: # (If _AS_PATH_WALK were called with IFS unset, it would disable word
7260: # splitting by setting IFS to empty value.)
7261: IFS=" "" $as_nl"
7262:
7263: # Find who we are. Look in the path if we contain no directory separator.
7264: case $0 in
7265: *[\\/]* ) as_myself=$0 ;;
7266: *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7267: for as_dir in $PATH
7268: do
7269: IFS=$as_save_IFS
7270: test -z "$as_dir" && as_dir=.
7271: test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7272: done
7273: IFS=$as_save_IFS
7274:
7275: ;;
7276: esac
7277: # We did not find ourselves, most probably we were run as `sh COMMAND'
7278: # in which case we are not to be found in the path.
7279: if test "x$as_myself" = x; then
7280: as_myself=$0
7281: fi
7282: if test ! -f "$as_myself"; then
1.43 ohara 7283: $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
1.37 ohara 7284: { (exit 1); exit 1; }
7285: fi
7286:
1.32 noro 7287: # Work around bugs in pre-3.0 UWIN ksh.
1.37 ohara 7288: for as_var in ENV MAIL MAILPATH
7289: do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
7290: done
1.32 noro 7291: PS1='$ '
7292: PS2='> '
7293: PS4='+ '
7294:
7295: # NLS nuisances.
1.43 ohara 7296: LC_ALL=C
7297: export LC_ALL
7298: LANGUAGE=C
7299: export LANGUAGE
1.32 noro 7300:
7301: # Required to use basename.
1.37 ohara 7302: if expr a : '\(a\)' >/dev/null 2>&1 &&
7303: test "X`expr 00001 : '.*\(...\)'`" = X001; then
1.32 noro 7304: as_expr=expr
7305: else
7306: as_expr=false
7307: fi
7308:
1.37 ohara 7309: if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
1.32 noro 7310: as_basename=basename
7311: else
7312: as_basename=false
7313: fi
1.14 noro 7314:
7315:
7316: # Name of the executable.
1.37 ohara 7317: as_me=`$as_basename -- "$0" ||
1.14 noro 7318: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7319: X"$0" : 'X\(//\)$' \| \
1.37 ohara 7320: X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1.43 ohara 7321: $as_echo X/"$0" |
1.37 ohara 7322: sed '/^.*\/\([^/][^/]*\)\/*$/{
7323: s//\1/
7324: q
7325: }
7326: /^X\/\(\/\/\)$/{
7327: s//\1/
7328: q
7329: }
7330: /^X\/\(\/\).*/{
7331: s//\1/
7332: q
7333: }
7334: s/.*/./; q'`
1.14 noro 7335:
1.37 ohara 7336: # CDPATH.
7337: $as_unset CDPATH
1.32 noro 7338:
1.14 noro 7339:
7340:
7341: as_lineno_1=$LINENO
7342: as_lineno_2=$LINENO
7343: test "x$as_lineno_1" != "x$as_lineno_2" &&
1.37 ohara 7344: test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
1.2 noro 7345:
1.14 noro 7346: # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
7347: # uniformly replaced by the line number. The first 'sed' inserts a
1.37 ohara 7348: # line-number line after each line using $LINENO; the second 'sed'
7349: # does the real work. The second script uses 'N' to pair each
7350: # line-number line with the line containing $LINENO, and appends
7351: # trailing '-' during substitution so that $LINENO is not a special
7352: # case at line end.
1.14 noro 7353: # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
1.37 ohara 7354: # scripts with optimization help from Paolo Bonzini. Blame Lee
7355: # E. McMahon (1931-1989) for sed's syntax. :-)
7356: sed -n '
7357: p
7358: /[$]LINENO/=
7359: ' <$as_myself |
1.14 noro 7360: sed '
1.37 ohara 7361: s/[$]LINENO.*/&-/
7362: t lineno
7363: b
7364: :lineno
1.14 noro 7365: N
1.37 ohara 7366: :loop
7367: s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
1.14 noro 7368: t loop
1.37 ohara 7369: s/-\n.*//
1.14 noro 7370: ' >$as_me.lineno &&
1.37 ohara 7371: chmod +x "$as_me.lineno" ||
1.43 ohara 7372: { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
1.14 noro 7373: { (exit 1); exit 1; }; }
7374:
7375: # Don't try to exec as it changes $[0], causing all sort of problems
7376: # (the dirname of $[0] is not the place where we might find the
1.37 ohara 7377: # original and so on. Autoconf is especially sensitive to this).
7378: . "./$as_me.lineno"
1.14 noro 7379: # Exit status is that of the last command.
7380: exit
7381: }
7382:
7383:
1.37 ohara 7384: if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
7385: as_dirname=dirname
7386: else
7387: as_dirname=false
7388: fi
7389:
7390: ECHO_C= ECHO_N= ECHO_T=
7391: case `echo -n x` in
7392: -n*)
7393: case `echo 'x\c'` in
7394: *c*) ECHO_T=' ';; # ECHO_T is single tab character.
7395: *) ECHO_C='\c';;
7396: esac;;
7397: *)
7398: ECHO_N='-n';;
1.14 noro 7399: esac
1.37 ohara 7400: if expr a : '\(a\)' >/dev/null 2>&1 &&
7401: test "X`expr 00001 : '.*\(...\)'`" = X001; then
1.14 noro 7402: as_expr=expr
7403: else
7404: as_expr=false
7405: fi
1.2 noro 7406:
1.14 noro 7407: rm -f conf$$ conf$$.exe conf$$.file
1.37 ohara 7408: if test -d conf$$.dir; then
7409: rm -f conf$$.dir/conf$$.file
7410: else
7411: rm -f conf$$.dir
1.43 ohara 7412: mkdir conf$$.dir 2>/dev/null
1.37 ohara 7413: fi
1.43 ohara 7414: if (echo >conf$$.file) 2>/dev/null; then
7415: if ln -s conf$$.file conf$$ 2>/dev/null; then
7416: as_ln_s='ln -s'
7417: # ... but there are two gotchas:
7418: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
7419: # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
7420: # In both cases, we have to default to `cp -p'.
7421: ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
7422: as_ln_s='cp -p'
7423: elif ln conf$$.file conf$$ 2>/dev/null; then
7424: as_ln_s=ln
7425: else
1.14 noro 7426: as_ln_s='cp -p'
1.43 ohara 7427: fi
1.14 noro 7428: else
7429: as_ln_s='cp -p'
7430: fi
1.37 ohara 7431: rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
7432: rmdir conf$$.dir 2>/dev/null
1.2 noro 7433:
1.32 noro 7434: if mkdir -p . 2>/dev/null; then
7435: as_mkdir_p=:
7436: else
7437: test -d ./-p && rmdir ./-p
7438: as_mkdir_p=false
7439: fi
7440:
1.37 ohara 7441: if test -x / >/dev/null 2>&1; then
7442: as_test_x='test -x'
7443: else
7444: if ls -dL / >/dev/null 2>&1; then
7445: as_ls_L_option=L
7446: else
7447: as_ls_L_option=
7448: fi
7449: as_test_x='
7450: eval sh -c '\''
7451: if test -d "$1"; then
1.43 ohara 7452: test -d "$1/.";
1.37 ohara 7453: else
7454: case $1 in
1.43 ohara 7455: -*)set "./$1";;
1.37 ohara 7456: esac;
7457: case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
7458: ???[sx]*):;;*)false;;esac;fi
7459: '\'' sh
7460: '
7461: fi
7462: as_executable_p=$as_test_x
1.14 noro 7463:
7464: # Sed expression to map a string onto a valid CPP name.
1.32 noro 7465: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
1.14 noro 7466:
7467: # Sed expression to map a string onto a valid variable name.
1.32 noro 7468: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
1.14 noro 7469:
7470:
7471: exec 6>&1
7472:
1.37 ohara 7473: # Save the log message, to keep $[0] and so on meaningful, and to
1.14 noro 7474: # report actual input values of CONFIG_FILES etc. instead of their
1.37 ohara 7475: # values after options handling.
7476: ac_log="
1.14 noro 7477: This file was extended by $as_me, which was
1.43 ohara 7478: generated by GNU Autoconf 2.62. Invocation command line was
1.14 noro 7479:
7480: CONFIG_FILES = $CONFIG_FILES
7481: CONFIG_HEADERS = $CONFIG_HEADERS
7482: CONFIG_LINKS = $CONFIG_LINKS
7483: CONFIG_COMMANDS = $CONFIG_COMMANDS
7484: $ $0 $@
7485:
1.37 ohara 7486: on `(hostname || uname -n) 2>/dev/null | sed 1q`
7487: "
7488:
1.14 noro 7489: _ACEOF
7490:
1.43 ohara 7491: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1.14 noro 7492: # Files that config.status was made for.
1.37 ohara 7493: config_files="$ac_config_files"
7494: config_commands="$ac_config_commands"
1.2 noro 7495:
1.37 ohara 7496: _ACEOF
1.4 saito 7497:
1.43 ohara 7498: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1.14 noro 7499: ac_cs_usage="\
7500: \`$as_me' instantiates files from templates according to the
7501: current configuration.
7502:
7503: Usage: $0 [OPTIONS] [FILE]...
7504:
7505: -h, --help print this help, then exit
1.37 ohara 7506: -V, --version print version number and configuration settings, then exit
1.32 noro 7507: -q, --quiet do not print progress messages
1.14 noro 7508: -d, --debug don't remove temporary files
7509: --recheck update $as_me by reconfiguring in the same conditions
7510: --file=FILE[:TEMPLATE]
1.43 ohara 7511: instantiate the configuration file FILE
1.4 saito 7512:
1.14 noro 7513: Configuration files:
7514: $config_files
7515:
7516: Configuration commands:
7517: $config_commands
7518:
7519: Report bugs to <bug-autoconf@gnu.org>."
1.37 ohara 7520:
1.14 noro 7521: _ACEOF
1.43 ohara 7522: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1.14 noro 7523: ac_cs_version="\\
7524: config.status
1.43 ohara 7525: configured by $0, generated by GNU Autoconf 2.62,
7526: with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
1.14 noro 7527:
1.43 ohara 7528: Copyright (C) 2008 Free Software Foundation, Inc.
1.14 noro 7529: This config.status script is free software; the Free Software Foundation
7530: gives unlimited permission to copy, distribute and modify it."
1.37 ohara 7531:
7532: ac_pwd='$ac_pwd'
7533: srcdir='$srcdir'
7534: INSTALL='$INSTALL'
7535: MKDIR_P='$MKDIR_P'
1.43 ohara 7536: AWK='$AWK'
7537: test -n "\$AWK" || AWK=awk
1.14 noro 7538: _ACEOF
7539:
1.43 ohara 7540: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7541: # The default lists apply if the user does not specify any file.
1.14 noro 7542: ac_need_defaults=:
7543: while test $# != 0
7544: do
7545: case $1 in
7546: --*=*)
1.37 ohara 7547: ac_option=`expr "X$1" : 'X\([^=]*\)='`
7548: ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
1.32 noro 7549: ac_shift=:
7550: ;;
1.37 ohara 7551: *)
1.32 noro 7552: ac_option=$1
7553: ac_optarg=$2
7554: ac_shift=shift
1.12 ohara 7555: ;;
1.14 noro 7556: esac
7557:
1.32 noro 7558: case $ac_option in
1.14 noro 7559: # Handling of the options.
1.17 ohara 7560: -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1.32 noro 7561: ac_cs_recheck=: ;;
1.37 ohara 7562: --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
1.43 ohara 7563: $as_echo "$ac_cs_version"; exit ;;
1.37 ohara 7564: --debug | --debu | --deb | --de | --d | -d )
1.14 noro 7565: debug=: ;;
7566: --file | --fil | --fi | --f )
1.32 noro 7567: $ac_shift
1.43 ohara 7568: case $ac_optarg in
7569: *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
7570: esac
7571: CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
1.14 noro 7572: ac_need_defaults=false;;
1.37 ohara 7573: --he | --h | --help | --hel | -h )
1.43 ohara 7574: $as_echo "$ac_cs_usage"; exit ;;
1.32 noro 7575: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
7576: | -silent | --silent | --silen | --sile | --sil | --si | --s)
7577: ac_cs_silent=: ;;
1.14 noro 7578:
7579: # This is an error.
1.43 ohara 7580: -*) { $as_echo "$as_me: error: unrecognized option: $1
1.37 ohara 7581: Try \`$0 --help' for more information." >&2
1.14 noro 7582: { (exit 1); exit 1; }; } ;;
7583:
1.37 ohara 7584: *) ac_config_targets="$ac_config_targets $1"
7585: ac_need_defaults=false ;;
1.14 noro 7586:
7587: esac
7588: shift
7589: done
7590:
1.32 noro 7591: ac_configure_extra_args=
7592:
7593: if $ac_cs_silent; then
7594: exec 6>/dev/null
7595: ac_configure_extra_args="$ac_configure_extra_args --silent"
7596: fi
7597:
7598: _ACEOF
1.43 ohara 7599: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1.32 noro 7600: if \$ac_cs_recheck; then
1.43 ohara 7601: set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7602: shift
7603: \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
7604: CONFIG_SHELL='$SHELL'
1.37 ohara 7605: export CONFIG_SHELL
1.43 ohara 7606: exec "\$@"
1.32 noro 7607: fi
7608:
1.14 noro 7609: _ACEOF
1.43 ohara 7610: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1.37 ohara 7611: exec 5>>config.log
7612: {
7613: echo
7614: sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7615: ## Running $as_me. ##
7616: _ASBOX
1.43 ohara 7617: $as_echo "$ac_log"
1.37 ohara 7618: } >&5
1.14 noro 7619:
1.37 ohara 7620: _ACEOF
1.43 ohara 7621: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1.14 noro 7622: #
1.37 ohara 7623: # INIT-COMMANDS
1.14 noro 7624: #
1.37 ohara 7625: AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
1.14 noro 7626:
7627: _ACEOF
7628:
1.43 ohara 7629: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1.14 noro 7630:
1.37 ohara 7631: # Handling of arguments.
1.14 noro 7632: for ac_config_target in $ac_config_targets
7633: do
1.37 ohara 7634: case $ac_config_target in
7635: "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
7636: "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
7637: "engine/Makefile") CONFIG_FILES="$CONFIG_FILES engine/Makefile" ;;
7638: "asm/Makefile") CONFIG_FILES="$CONFIG_FILES asm/Makefile" ;;
7639: "builtin/Makefile") CONFIG_FILES="$CONFIG_FILES builtin/Makefile" ;;
7640: "fft/Makefile") CONFIG_FILES="$CONFIG_FILES fft/Makefile" ;;
7641: "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
7642: "io/Makefile") CONFIG_FILES="$CONFIG_FILES io/Makefile" ;;
7643: "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
7644: "parse/Makefile") CONFIG_FILES="$CONFIG_FILES parse/Makefile" ;;
7645: "plot/Makefile") CONFIG_FILES="$CONFIG_FILES plot/Makefile" ;;
7646:
1.43 ohara 7647: *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
7648: $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
1.14 noro 7649: { (exit 1); exit 1; }; };;
7650: esac
7651: done
7652:
1.37 ohara 7653:
1.14 noro 7654: # If the user did not use the arguments to specify the items to instantiate,
7655: # then the envvar interface is used. Set only those that are not.
7656: # We use the long form for the default assignment because of an extremely
7657: # bizarre bug on SunOS 4.1.3.
7658: if $ac_need_defaults; then
7659: test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
7660: test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
7661: fi
7662:
1.32 noro 7663: # Have a temporary directory for convenience. Make it in the build tree
1.37 ohara 7664: # simply because there is no reason against having it here, and in addition,
1.32 noro 7665: # creating and moving files from /tmp can sometimes cause problems.
1.37 ohara 7666: # Hook for its removal unless debugging.
7667: # Note that there is a small window in which the directory will not be cleaned:
7668: # after its creation but before its name has been assigned to `$tmp'.
1.14 noro 7669: $debug ||
7670: {
1.37 ohara 7671: tmp=
7672: trap 'exit_status=$?
7673: { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
7674: ' 0
1.14 noro 7675: trap '{ (exit 1); exit 1; }' 1 2 13 15
7676: }
7677: # Create a (secure) tmp directory for tmp files.
1.32 noro 7678:
1.14 noro 7679: {
1.37 ohara 7680: tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
1.14 noro 7681: test -n "$tmp" && test -d "$tmp"
7682: } ||
7683: {
1.37 ohara 7684: tmp=./conf$$-$RANDOM
7685: (umask 077 && mkdir "$tmp")
1.14 noro 7686: } ||
7687: {
1.43 ohara 7688: $as_echo "$as_me: cannot create a temporary directory in ." >&2
1.14 noro 7689: { (exit 1); exit 1; }
7690: }
7691:
1.43 ohara 7692: # Set up the scripts for CONFIG_FILES section.
7693: # No need to generate them if there are no CONFIG_FILES.
7694: # This happens for instance with `./config.status config.h'.
1.37 ohara 7695: if test -n "$CONFIG_FILES"; then
7696:
1.14 noro 7697:
1.43 ohara 7698: ac_cr='
'
7699: ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
7700: if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
7701: ac_cs_awk_cr='\\r'
7702: else
7703: ac_cs_awk_cr=$ac_cr
1.37 ohara 7704: fi
7705:
1.43 ohara 7706: echo 'BEGIN {' >"$tmp/subs1.awk" &&
1.37 ohara 7707: _ACEOF
7708:
1.14 noro 7709:
1.43 ohara 7710: {
7711: echo "cat >conf$$subs.awk <<_ACEOF" &&
7712: echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
7713: echo "_ACEOF"
7714: } >conf$$subs.sh ||
7715: { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
7716: $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
7717: { (exit 1); exit 1; }; }
7718: ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
1.37 ohara 7719: ac_delim='%!_!# '
7720: for ac_last_try in false false false false false :; do
1.43 ohara 7721: . ./conf$$subs.sh ||
7722: { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
7723: $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
7724: { (exit 1); exit 1; }; }
1.14 noro 7725:
1.43 ohara 7726: if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` = $ac_delim_num; then
1.37 ohara 7727: break
7728: elif $ac_last_try; then
1.43 ohara 7729: { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
7730: $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
1.37 ohara 7731: { (exit 1); exit 1; }; }
7732: else
7733: ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
1.14 noro 7734: fi
1.37 ohara 7735: done
1.43 ohara 7736: rm -f conf$$subs.sh
1.37 ohara 7737:
1.43 ohara 7738: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7739: cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
7740: _ACEOF
7741: sed -n '
7742: h
7743: s/^/S["/; s/!.*/"]=/
7744: p
7745: g
7746: s/^[^!]*!//
7747: :repl
7748: t repl
7749: s/'"$ac_delim"'$//
7750: t delim
7751: :nl
7752: h
7753: s/\(.\{148\}\).*/\1/
7754: t more1
7755: s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
7756: p
7757: n
7758: b repl
7759: :more1
7760: s/["\\]/\\&/g; s/^/"/; s/$/"\\/
7761: p
7762: g
7763: s/.\{148\}//
7764: t nl
7765: :delim
7766: h
7767: s/\(.\{148\}\).*/\1/
7768: t more2
7769: s/["\\]/\\&/g; s/^/"/; s/$/"/
7770: p
7771: b
7772: :more2
7773: s/["\\]/\\&/g; s/^/"/; s/$/"\\/
7774: p
7775: g
7776: s/.\{148\}//
7777: t delim
7778: ' <conf$$subs.awk | sed '
7779: /^[^""]/{
7780: N
7781: s/\n//
7782: }
7783: ' >>$CONFIG_STATUS || ac_write_fail=1
7784: rm -f conf$$subs.awk
7785: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7786: _ACAWK
7787: cat >>"\$tmp/subs1.awk" <<_ACAWK &&
7788: for (key in S) S_is_set[key] = 1
7789: FS = ""
7790:
7791: }
7792: {
7793: line = $ 0
7794: nfields = split(line, field, "@")
7795: substed = 0
7796: len = length(field[1])
7797: for (i = 2; i < nfields; i++) {
7798: key = field[i]
7799: keylen = length(key)
7800: if (S_is_set[key]) {
7801: value = S[key]
7802: line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
7803: len += length(value) + length(field[++i])
7804: substed = 1
7805: } else
7806: len += 1 + keylen
7807: }
7808:
7809: print line
7810: }
7811:
7812: _ACAWK
7813: _ACEOF
7814: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7815: if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
7816: sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
7817: else
7818: cat
7819: fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
7820: || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
7821: $as_echo "$as_me: error: could not setup config files machinery" >&2;}
7822: { (exit 1); exit 1; }; }
1.14 noro 7823: _ACEOF
1.37 ohara 7824:
7825: # VPATH may cause trouble with some makes, so we remove $(srcdir),
7826: # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
7827: # trailing colons and then remove the whole line if VPATH becomes empty
7828: # (actually we leave an empty line to preserve line numbers).
7829: if test "x$srcdir" = x.; then
7830: ac_vpsub='/^[ ]*VPATH[ ]*=/{
7831: s/:*\$(srcdir):*/:/
7832: s/:*\${srcdir}:*/:/
7833: s/:*@srcdir@:*/:/
7834: s/^\([^=]*=[ ]*\):*/\1/
7835: s/:*$//
7836: s/^[^=]*=[ ]*$//
7837: }'
7838: fi
7839:
1.43 ohara 7840: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1.37 ohara 7841: fi # test -n "$CONFIG_FILES"
7842:
7843:
1.43 ohara 7844: eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
7845: shift
7846: for ac_tag
1.37 ohara 7847: do
7848: case $ac_tag in
7849: :[FHLC]) ac_mode=$ac_tag; continue;;
7850: esac
7851: case $ac_mode$ac_tag in
7852: :[FHL]*:*);;
1.43 ohara 7853: :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
7854: $as_echo "$as_me: error: Invalid tag $ac_tag." >&2;}
1.37 ohara 7855: { (exit 1); exit 1; }; };;
7856: :[FH]-) ac_tag=-:-;;
7857: :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
7858: esac
7859: ac_save_IFS=$IFS
7860: IFS=:
7861: set x $ac_tag
7862: IFS=$ac_save_IFS
7863: shift
7864: ac_file=$1
7865: shift
7866:
7867: case $ac_mode in
7868: :L) ac_source=$1;;
7869: :[FH])
7870: ac_file_inputs=
7871: for ac_f
7872: do
7873: case $ac_f in
7874: -) ac_f="$tmp/stdin";;
7875: *) # Look for the file first in the build tree, then in the source tree
7876: # (if the path is not absolute). The absolute path cannot be DOS-style,
7877: # because $ac_f cannot contain `:'.
7878: test -f "$ac_f" ||
7879: case $ac_f in
7880: [\\/$]*) false;;
7881: *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
7882: esac ||
1.43 ohara 7883: { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
7884: $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
1.37 ohara 7885: { (exit 1); exit 1; }; };;
7886: esac
1.43 ohara 7887: case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
7888: ac_file_inputs="$ac_file_inputs '$ac_f'"
1.37 ohara 7889: done
7890:
7891: # Let's still pretend it is `configure' which instantiates (i.e., don't
7892: # use $as_me), people would be surprised to read:
7893: # /* config.h. Generated by config.status. */
1.43 ohara 7894: configure_input='Generated from '`
7895: $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
7896: `' by configure.'
1.37 ohara 7897: if test x"$ac_file" != x-; then
7898: configure_input="$ac_file. $configure_input"
1.43 ohara 7899: { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
7900: $as_echo "$as_me: creating $ac_file" >&6;}
1.37 ohara 7901: fi
1.43 ohara 7902: # Neutralize special characters interpreted by sed in replacement strings.
7903: case $configure_input in #(
7904: *\&* | *\|* | *\\* )
7905: ac_sed_conf_input=`$as_echo "$configure_input" |
7906: sed 's/[\\\\&|]/\\\\&/g'`;; #(
7907: *) ac_sed_conf_input=$configure_input;;
7908: esac
1.37 ohara 7909:
7910: case $ac_tag in
1.43 ohara 7911: *:-:* | *:-) cat >"$tmp/stdin" \
7912: || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
7913: $as_echo "$as_me: error: could not create $ac_file" >&2;}
7914: { (exit 1); exit 1; }; } ;;
1.37 ohara 7915: esac
7916: ;;
1.14 noro 7917: esac
7918:
1.37 ohara 7919: ac_dir=`$as_dirname -- "$ac_file" ||
1.14 noro 7920: $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1.32 noro 7921: X"$ac_file" : 'X\(//\)[^/]' \| \
7922: X"$ac_file" : 'X\(//\)$' \| \
1.37 ohara 7923: X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
1.43 ohara 7924: $as_echo X"$ac_file" |
1.37 ohara 7925: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7926: s//\1/
7927: q
7928: }
7929: /^X\(\/\/\)[^/].*/{
7930: s//\1/
7931: q
7932: }
7933: /^X\(\/\/\)$/{
7934: s//\1/
7935: q
7936: }
7937: /^X\(\/\).*/{
7938: s//\1/
7939: q
7940: }
7941: s/.*/./; q'`
7942: { as_dir="$ac_dir"
7943: case $as_dir in #(
7944: -*) as_dir=./$as_dir;;
7945: esac
7946: test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
1.32 noro 7947: as_dirs=
1.37 ohara 7948: while :; do
7949: case $as_dir in #(
1.43 ohara 7950: *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
1.37 ohara 7951: *) as_qdir=$as_dir;;
7952: esac
7953: as_dirs="'$as_qdir' $as_dirs"
7954: as_dir=`$as_dirname -- "$as_dir" ||
1.32 noro 7955: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7956: X"$as_dir" : 'X\(//\)[^/]' \| \
7957: X"$as_dir" : 'X\(//\)$' \| \
1.37 ohara 7958: X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
1.43 ohara 7959: $as_echo X"$as_dir" |
1.37 ohara 7960: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7961: s//\1/
7962: q
7963: }
7964: /^X\(\/\/\)[^/].*/{
7965: s//\1/
7966: q
7967: }
7968: /^X\(\/\/\)$/{
7969: s//\1/
7970: q
7971: }
7972: /^X\(\/\).*/{
7973: s//\1/
7974: q
7975: }
7976: s/.*/./; q'`
7977: test -d "$as_dir" && break
1.32 noro 7978: done
1.37 ohara 7979: test -z "$as_dirs" || eval "mkdir $as_dirs"
1.43 ohara 7980: } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
7981: $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
1.32 noro 7982: { (exit 1); exit 1; }; }; }
1.14 noro 7983: ac_builddir=.
7984:
1.37 ohara 7985: case "$ac_dir" in
7986: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
7987: *)
1.43 ohara 7988: ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1.37 ohara 7989: # A ".." for each directory in $ac_dir_suffix.
1.43 ohara 7990: ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1.37 ohara 7991: case $ac_top_builddir_sub in
7992: "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
7993: *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
7994: esac ;;
7995: esac
7996: ac_abs_top_builddir=$ac_pwd
7997: ac_abs_builddir=$ac_pwd$ac_dir_suffix
7998: # for backward compatibility:
7999: ac_top_builddir=$ac_top_build_prefix
1.14 noro 8000:
8001: case $srcdir in
1.37 ohara 8002: .) # We are building in place.
1.14 noro 8003: ac_srcdir=.
1.37 ohara 8004: ac_top_srcdir=$ac_top_builddir_sub
8005: ac_abs_top_srcdir=$ac_pwd ;;
8006: [\\/]* | ?:[\\/]* ) # Absolute name.
1.14 noro 8007: ac_srcdir=$srcdir$ac_dir_suffix;
1.37 ohara 8008: ac_top_srcdir=$srcdir
8009: ac_abs_top_srcdir=$srcdir ;;
8010: *) # Relative name.
8011: ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
8012: ac_top_srcdir=$ac_top_build_prefix$srcdir
8013: ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1.14 noro 8014: esac
1.37 ohara 8015: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1.32 noro 8016:
1.14 noro 8017:
1.37 ohara 8018: case $ac_mode in
8019: :F)
8020: #
8021: # CONFIG_FILE
8022: #
1.14 noro 8023:
8024: case $INSTALL in
8025: [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
1.37 ohara 8026: *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
1.14 noro 8027: esac
1.37 ohara 8028: ac_MKDIR_P=$MKDIR_P
8029: case $MKDIR_P in
8030: [\\/$]* | ?:[\\/]* ) ;;
8031: */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
8032: esac
8033: _ACEOF
1.14 noro 8034:
1.43 ohara 8035: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1.37 ohara 8036: # If the template does not know about datarootdir, expand it.
8037: # FIXME: This hack should be removed a few years after 2.60.
8038: ac_datarootdir_hack=; ac_datarootdir_seen=
8039:
1.43 ohara 8040: ac_sed_dataroot='
8041: /datarootdir/ {
1.37 ohara 8042: p
8043: q
8044: }
8045: /@datadir@/p
8046: /@docdir@/p
8047: /@infodir@/p
8048: /@localedir@/p
8049: /@mandir@/p
1.43 ohara 8050: '
8051: case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
1.37 ohara 8052: *datarootdir*) ac_datarootdir_seen=yes;;
8053: *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
1.43 ohara 8054: { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
8055: $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
1.37 ohara 8056: _ACEOF
1.43 ohara 8057: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1.37 ohara 8058: ac_datarootdir_hack='
8059: s&@datadir@&$datadir&g
8060: s&@docdir@&$docdir&g
8061: s&@infodir@&$infodir&g
8062: s&@localedir@&$localedir&g
8063: s&@mandir@&$mandir&g
8064: s&\\\${datarootdir}&$datarootdir&g' ;;
8065: esac
8066: _ACEOF
1.14 noro 8067:
1.37 ohara 8068: # Neutralize VPATH when `$srcdir' = `.'.
8069: # Shell code in configure.ac might set extrasub.
8070: # FIXME: do we really want to maintain this feature?
1.43 ohara 8071: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8072: ac_sed_extra="$ac_vpsub
1.14 noro 8073: $extrasub
8074: _ACEOF
1.43 ohara 8075: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1.14 noro 8076: :t
8077: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
1.43 ohara 8078: s|@configure_input@|$ac_sed_conf_input|;t t
1.37 ohara 8079: s&@top_builddir@&$ac_top_builddir_sub&;t t
1.43 ohara 8080: s&@top_build_prefix@&$ac_top_build_prefix&;t t
1.37 ohara 8081: s&@srcdir@&$ac_srcdir&;t t
8082: s&@abs_srcdir@&$ac_abs_srcdir&;t t
8083: s&@top_srcdir@&$ac_top_srcdir&;t t
8084: s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
8085: s&@builddir@&$ac_builddir&;t t
8086: s&@abs_builddir@&$ac_abs_builddir&;t t
8087: s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
8088: s&@INSTALL@&$ac_INSTALL&;t t
8089: s&@MKDIR_P@&$ac_MKDIR_P&;t t
8090: $ac_datarootdir_hack
1.43 ohara 8091: "
8092: eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
8093: || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
8094: $as_echo "$as_me: error: could not create $ac_file" >&2;}
8095: { (exit 1); exit 1; }; }
1.37 ohara 8096:
8097: test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
8098: { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
8099: { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
1.43 ohara 8100: { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
1.37 ohara 8101: which seems to be undefined. Please make sure it is defined." >&5
1.43 ohara 8102: $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
1.37 ohara 8103: which seems to be undefined. Please make sure it is defined." >&2;}
8104:
8105: rm -f "$tmp/stdin"
8106: case $ac_file in
1.43 ohara 8107: -) cat "$tmp/out" && rm -f "$tmp/out";;
8108: *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
8109: esac \
8110: || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
8111: $as_echo "$as_me: error: could not create $ac_file" >&2;}
8112: { (exit 1); exit 1; }; }
1.37 ohara 8113: ;;
8114:
8115:
1.43 ohara 8116: :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
8117: $as_echo "$as_me: executing $ac_file commands" >&6;}
1.37 ohara 8118: ;;
8119: esac
1.14 noro 8120:
8121:
1.37 ohara 8122: case $ac_file$ac_mode in
8123: "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
8124: # Strip MF so we end up with the name of the file.
8125: mf=`echo "$mf" | sed -e 's/:.*$//'`
8126: # Check whether this is an Automake generated Makefile or not.
8127: # We used to match only the files named `Makefile.in', but
8128: # some people rename them; so instead we look at the file content.
8129: # Grep'ing the first line is not enough: some people post-process
8130: # each Makefile.in and add a new line on top of each file to say so.
8131: # Grep'ing the whole file is not good either: AIX grep has a line
8132: # limit of 2048, but all sed's we know have understand at least 4000.
1.43 ohara 8133: if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
1.37 ohara 8134: dirpart=`$as_dirname -- "$mf" ||
8135: $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8136: X"$mf" : 'X\(//\)[^/]' \| \
8137: X"$mf" : 'X\(//\)$' \| \
8138: X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
1.43 ohara 8139: $as_echo X"$mf" |
1.37 ohara 8140: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8141: s//\1/
8142: q
8143: }
8144: /^X\(\/\/\)[^/].*/{
8145: s//\1/
8146: q
8147: }
8148: /^X\(\/\/\)$/{
8149: s//\1/
8150: q
8151: }
8152: /^X\(\/\).*/{
8153: s//\1/
8154: q
8155: }
8156: s/.*/./; q'`
1.32 noro 8157: else
1.37 ohara 8158: continue
8159: fi
8160: # Extract the definition of DEPDIR, am__include, and am__quote
8161: # from the Makefile without running `make'.
8162: DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
8163: test -z "$DEPDIR" && continue
8164: am__include=`sed -n 's/^am__include = //p' < "$mf"`
8165: test -z "am__include" && continue
8166: am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
8167: # When using ansi2knr, U may be empty or an underscore; expand it
8168: U=`sed -n 's/^U = //p' < "$mf"`
8169: # Find all dependency output files, they are included files with
8170: # $(DEPDIR) in their names. We invoke sed twice because it is the
8171: # simplest approach to changing $(DEPDIR) to its actual value in the
8172: # expansion.
8173: for file in `sed -n "
8174: s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
8175: sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
8176: # Make sure the directory exists.
8177: test -f "$dirpart/$file" && continue
8178: fdir=`$as_dirname -- "$file" ||
8179: $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8180: X"$file" : 'X\(//\)[^/]' \| \
8181: X"$file" : 'X\(//\)$' \| \
8182: X"$file" : 'X\(/\)' \| . 2>/dev/null ||
1.43 ohara 8183: $as_echo X"$file" |
1.37 ohara 8184: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8185: s//\1/
8186: q
8187: }
8188: /^X\(\/\/\)[^/].*/{
8189: s//\1/
8190: q
8191: }
8192: /^X\(\/\/\)$/{
8193: s//\1/
8194: q
8195: }
8196: /^X\(\/\).*/{
8197: s//\1/
8198: q
8199: }
8200: s/.*/./; q'`
8201: { as_dir=$dirpart/$fdir
8202: case $as_dir in #(
8203: -*) as_dir=./$as_dir;;
8204: esac
8205: test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
1.32 noro 8206: as_dirs=
1.37 ohara 8207: while :; do
8208: case $as_dir in #(
1.43 ohara 8209: *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
1.37 ohara 8210: *) as_qdir=$as_dir;;
8211: esac
8212: as_dirs="'$as_qdir' $as_dirs"
8213: as_dir=`$as_dirname -- "$as_dir" ||
1.32 noro 8214: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8215: X"$as_dir" : 'X\(//\)[^/]' \| \
8216: X"$as_dir" : 'X\(//\)$' \| \
1.37 ohara 8217: X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
1.43 ohara 8218: $as_echo X"$as_dir" |
1.37 ohara 8219: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8220: s//\1/
8221: q
8222: }
8223: /^X\(\/\/\)[^/].*/{
8224: s//\1/
8225: q
8226: }
8227: /^X\(\/\/\)$/{
8228: s//\1/
8229: q
8230: }
8231: /^X\(\/\).*/{
8232: s//\1/
8233: q
8234: }
8235: s/.*/./; q'`
8236: test -d "$as_dir" && break
1.32 noro 8237: done
1.37 ohara 8238: test -z "$as_dirs" || eval "mkdir $as_dirs"
1.43 ohara 8239: } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
8240: $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
1.32 noro 8241: { (exit 1); exit 1; }; }; }
1.14 noro 8242: # echo "creating $dirpart/$file"
8243: echo '# dummy' > "$dirpart/$file"
8244: done
8245: done
8246: ;;
1.37 ohara 8247:
1.14 noro 8248: esac
1.37 ohara 8249: done # for ac_tag
1.14 noro 8250:
8251:
8252: { (exit 0); exit 0; }
8253: _ACEOF
8254: chmod +x $CONFIG_STATUS
8255: ac_clean_files=$ac_clean_files_save
8256:
1.43 ohara 8257: test $ac_write_fail = 0 ||
8258: { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
8259: $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
8260: { (exit 1); exit 1; }; }
8261:
1.14 noro 8262:
8263: # configure is writing to config.log, and then calls config.status.
8264: # config.status does its own redirection, appending to config.log.
8265: # Unfortunately, on DOS this fails, as config.log is still kept open
8266: # by configure, so config.status won't be able to write to it; its
8267: # output is simply discarded. So we exec the FD to /dev/null,
8268: # effectively closing config.log, so it can be properly (re)opened and
8269: # appended to by config.status. When coming back to configure, we
8270: # need to make the FD available again.
8271: if test "$no_create" != yes; then
8272: ac_cs_success=:
1.32 noro 8273: ac_config_status_args=
8274: test "$silent" = yes &&
8275: ac_config_status_args="$ac_config_status_args --quiet"
1.14 noro 8276: exec 5>/dev/null
1.32 noro 8277: $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
1.14 noro 8278: exec 5>>config.log
8279: # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8280: # would make configure fail if this is the last instruction.
8281: $ac_cs_success || { (exit 1); exit 1; }
8282: fi
1.43 ohara 8283: if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
8284: { $as_echo "$as_me:$LINENO: WARNING: Unrecognized options: $ac_unrecognized_opts" >&5
8285: $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2;}
8286: fi
1.14 noro 8287:
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>