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