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