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