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