Annotation of OpenXM_contrib2/asir2000/configure, Revision 1.59
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:
4350: /usr/local/include/X11
1.51 ohara 4351: /usr/local/include/X11R7
1.14 noro 4352: /usr/local/include/X11R6
4353: /usr/local/include/X11R5
4354: /usr/local/include/X11R4
4355:
4356: /usr/X386/include
4357: /usr/x386/include
4358: /usr/XFree86/include/X11
4359:
4360: /usr/include
4361: /usr/local/include
4362: /usr/unsupported/include
4363: /usr/athena/include
4364: /usr/local/x11r5/include
4365: /usr/lpp/Xamples/include
4366:
4367: /usr/openwin/include
4368: /usr/openwin/share/include'
4369:
4370: if test "$ac_x_includes" = no; then
1.37 ohara 4371: # Guess where to find include files, by looking for Xlib.h.
1.14 noro 4372: # First, try using that file with no special directory specified.
1.51 ohara 4373: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.32 noro 4374: /* end confdefs.h. */
1.37 ohara 4375: #include <X11/Xlib.h>
1.14 noro 4376: _ACEOF
1.51 ohara 4377: if ac_fn_c_try_cpp "$LINENO"; then :
1.14 noro 4378: # We can compile using X headers with no special include directory.
4379: ac_x_includes=
4380: else
4381: for ac_dir in $ac_x_header_dirs; do
1.37 ohara 4382: if test -r "$ac_dir/X11/Xlib.h"; then
1.14 noro 4383: ac_x_includes=$ac_dir
4384: break
4385: fi
4386: done
4387: fi
1.51 ohara 4388: rm -f conftest.err conftest.i conftest.$ac_ext
1.14 noro 4389: fi # $ac_x_includes = no
4390:
4391: if test "$ac_x_libraries" = no; then
4392: # Check for the libraries.
4393: # See if we find them without any special options.
4394: # Don't add to $LIBS permanently.
4395: ac_save_LIBS=$LIBS
1.37 ohara 4396: LIBS="-lX11 $LIBS"
1.51 ohara 4397: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.32 noro 4398: /* end confdefs.h. */
1.37 ohara 4399: #include <X11/Xlib.h>
1.14 noro 4400: int
4401: main ()
4402: {
1.37 ohara 4403: XrmInitialize ()
1.14 noro 4404: ;
4405: return 0;
4406: }
4407: _ACEOF
1.51 ohara 4408: if ac_fn_c_try_link "$LINENO"; then :
1.14 noro 4409: LIBS=$ac_save_LIBS
4410: # We can link X programs with no special library path.
4411: ac_x_libraries=
4412: else
1.51 ohara 4413: LIBS=$ac_save_LIBS
1.43 ohara 4414: for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
1.14 noro 4415: do
4416: # Don't even attempt the hair of trying to link an X program!
1.43 ohara 4417: for ac_extension in a so sl dylib la dll; do
1.37 ohara 4418: if test -r "$ac_dir/libX11.$ac_extension"; then
1.14 noro 4419: ac_x_libraries=$ac_dir
4420: break 2
4421: fi
4422: done
4423: done
4424: fi
1.51 ohara 4425: rm -f core conftest.err conftest.$ac_objext \
4426: conftest$ac_exeext conftest.$ac_ext
1.14 noro 4427: fi # $ac_x_libraries = no
4428:
1.37 ohara 4429: case $ac_x_includes,$ac_x_libraries in #(
4430: no,* | *,no | *\'*)
4431: # Didn't find X, or a directory has "'" in its name.
4432: ac_cv_have_x="have_x=no";; #(
4433: *)
4434: # Record where we found X for the cache.
4435: ac_cv_have_x="have_x=yes\
4436: ac_x_includes='$ac_x_includes'\
4437: ac_x_libraries='$ac_x_libraries'"
4438: esac
1.14 noro 4439: fi
1.37 ohara 4440: ;; #(
4441: *) have_x=yes;;
4442: esac
1.14 noro 4443: eval "$ac_cv_have_x"
4444: fi # $with_x != no
4445:
4446: if test "$have_x" != yes; then
1.51 ohara 4447: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
1.43 ohara 4448: $as_echo "$have_x" >&6; }
1.14 noro 4449: no_x=yes
4450: else
4451: # If each of the values was on the command line, it overrides each guess.
4452: test "x$x_includes" = xNONE && x_includes=$ac_x_includes
4453: test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
4454: # Update the cache value to reflect the command line values.
1.37 ohara 4455: ac_cv_have_x="have_x=yes\
4456: ac_x_includes='$x_includes'\
4457: ac_x_libraries='$x_libraries'"
1.51 ohara 4458: { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
1.43 ohara 4459: $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
1.14 noro 4460: fi
4461:
4462: if test "$no_x" = yes; then
4463: # Not all programs may use this symbol, but it does not hurt to define it.
4464:
1.51 ohara 4465: $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
1.14 noro 4466:
4467: X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
4468: else
4469: if test -n "$x_includes"; then
4470: X_CFLAGS="$X_CFLAGS -I$x_includes"
4471: fi
4472:
4473: # It would also be nice to do this for all -L options, not just this one.
4474: if test -n "$x_libraries"; then
4475: X_LIBS="$X_LIBS -L$x_libraries"
4476: # For Solaris; some versions of Sun CC require a space after -R and
4477: # others require no space. Words are not sufficient . . . .
1.51 ohara 4478: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
1.43 ohara 4479: $as_echo_n "checking whether -R must be followed by a space... " >&6; }
1.37 ohara 4480: ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
4481: ac_xsave_c_werror_flag=$ac_c_werror_flag
4482: ac_c_werror_flag=yes
1.51 ohara 4483: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.32 noro 4484: /* end confdefs.h. */
1.14 noro 4485:
4486: int
4487: main ()
4488: {
4489:
4490: ;
4491: return 0;
4492: }
4493: _ACEOF
1.51 ohara 4494: if ac_fn_c_try_link "$LINENO"; then :
4495: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1.43 ohara 4496: $as_echo "no" >&6; }
1.37 ohara 4497: X_LIBS="$X_LIBS -R$x_libraries"
1.14 noro 4498: else
1.51 ohara 4499: LIBS="$ac_xsave_LIBS -R $x_libraries"
4500: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.32 noro 4501: /* end confdefs.h. */
1.14 noro 4502:
4503: int
4504: main ()
4505: {
4506:
4507: ;
4508: return 0;
4509: }
4510: _ACEOF
1.51 ohara 4511: if ac_fn_c_try_link "$LINENO"; then :
4512: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
1.43 ohara 4513: $as_echo "yes" >&6; }
1.37 ohara 4514: X_LIBS="$X_LIBS -R $x_libraries"
1.14 noro 4515: else
1.51 ohara 4516: { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
1.43 ohara 4517: $as_echo "neither works" >&6; }
1.37 ohara 4518: fi
1.51 ohara 4519: rm -f core conftest.err conftest.$ac_objext \
4520: conftest$ac_exeext conftest.$ac_ext
1.14 noro 4521: fi
1.51 ohara 4522: rm -f core conftest.err conftest.$ac_objext \
4523: conftest$ac_exeext conftest.$ac_ext
1.37 ohara 4524: ac_c_werror_flag=$ac_xsave_c_werror_flag
4525: LIBS=$ac_xsave_LIBS
1.14 noro 4526: fi
4527:
4528: # Check for system-dependent libraries X programs must link with.
4529: # Do this before checking for the system-independent R6 libraries
4530: # (-lICE), since we may need -lsocket or whatever for X linking.
4531:
4532: if test "$ISC" = yes; then
4533: X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
4534: else
4535: # Martyn Johnson says this is needed for Ultrix, if the X
4536: # libraries were built with DECnet support. And Karl Berry says
4537: # the Alpha needs dnet_stub (dnet does not exist).
4538: ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
1.51 ohara 4539: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.32 noro 4540: /* end confdefs.h. */
1.14 noro 4541:
1.37 ohara 4542: /* Override any GCC internal prototype to avoid an error.
4543: Use char because int might match the return type of a GCC
4544: builtin and then its argument prototype would still apply. */
1.14 noro 4545: #ifdef __cplusplus
4546: extern "C"
4547: #endif
4548: char XOpenDisplay ();
4549: int
4550: main ()
4551: {
1.37 ohara 4552: return XOpenDisplay ();
1.14 noro 4553: ;
4554: return 0;
4555: }
4556: _ACEOF
1.51 ohara 4557: if ac_fn_c_try_link "$LINENO"; then :
4558:
1.14 noro 4559: else
1.51 ohara 4560: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
1.43 ohara 4561: $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
1.56 ohara 4562: if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
1.43 ohara 4563: $as_echo_n "(cached) " >&6
1.14 noro 4564: else
4565: ac_check_lib_save_LIBS=$LIBS
4566: LIBS="-ldnet $LIBS"
1.51 ohara 4567: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.32 noro 4568: /* end confdefs.h. */
1.14 noro 4569:
1.37 ohara 4570: /* Override any GCC internal prototype to avoid an error.
4571: Use char because int might match the return type of a GCC
4572: builtin and then its argument prototype would still apply. */
1.14 noro 4573: #ifdef __cplusplus
4574: extern "C"
4575: #endif
4576: char dnet_ntoa ();
4577: int
4578: main ()
4579: {
1.37 ohara 4580: return dnet_ntoa ();
1.14 noro 4581: ;
4582: return 0;
4583: }
4584: _ACEOF
1.51 ohara 4585: if ac_fn_c_try_link "$LINENO"; then :
1.14 noro 4586: ac_cv_lib_dnet_dnet_ntoa=yes
4587: else
1.51 ohara 4588: ac_cv_lib_dnet_dnet_ntoa=no
1.14 noro 4589: fi
1.51 ohara 4590: rm -f core conftest.err conftest.$ac_objext \
4591: conftest$ac_exeext conftest.$ac_ext
1.14 noro 4592: LIBS=$ac_check_lib_save_LIBS
4593: fi
1.51 ohara 4594: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
1.43 ohara 4595: $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
1.56 ohara 4596: if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
1.14 noro 4597: X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
4598: fi
4599:
4600: if test $ac_cv_lib_dnet_dnet_ntoa = no; then
1.51 ohara 4601: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
1.43 ohara 4602: $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
1.56 ohara 4603: if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
1.43 ohara 4604: $as_echo_n "(cached) " >&6
1.14 noro 4605: else
4606: ac_check_lib_save_LIBS=$LIBS
4607: LIBS="-ldnet_stub $LIBS"
1.51 ohara 4608: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.32 noro 4609: /* end confdefs.h. */
1.14 noro 4610:
1.37 ohara 4611: /* Override any GCC internal prototype to avoid an error.
4612: Use char because int might match the return type of a GCC
4613: builtin and then its argument prototype would still apply. */
1.14 noro 4614: #ifdef __cplusplus
4615: extern "C"
4616: #endif
4617: char dnet_ntoa ();
4618: int
4619: main ()
4620: {
1.37 ohara 4621: return dnet_ntoa ();
1.14 noro 4622: ;
4623: return 0;
4624: }
4625: _ACEOF
1.51 ohara 4626: if ac_fn_c_try_link "$LINENO"; then :
1.14 noro 4627: ac_cv_lib_dnet_stub_dnet_ntoa=yes
4628: else
1.51 ohara 4629: ac_cv_lib_dnet_stub_dnet_ntoa=no
1.14 noro 4630: fi
1.51 ohara 4631: rm -f core conftest.err conftest.$ac_objext \
4632: conftest$ac_exeext conftest.$ac_ext
1.14 noro 4633: LIBS=$ac_check_lib_save_LIBS
4634: fi
1.51 ohara 4635: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
1.43 ohara 4636: $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
1.56 ohara 4637: if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
1.14 noro 4638: X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
4639: fi
4640:
4641: fi
4642: fi
1.51 ohara 4643: rm -f core conftest.err conftest.$ac_objext \
4644: conftest$ac_exeext conftest.$ac_ext
1.14 noro 4645: LIBS="$ac_xsave_LIBS"
4646:
4647: # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
4648: # to get the SysV transport functions.
4649: # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
4650: # needs -lnsl.
4651: # The nsl library prevents programs from opening the X display
4652: # on Irix 5.2, according to T.E. Dickey.
4653: # The functions gethostbyname, getservbyname, and inet_addr are
4654: # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
1.51 ohara 4655: ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
1.56 ohara 4656: if test "x$ac_cv_func_gethostbyname" = xyes; then :
1.37 ohara 4657:
1.14 noro 4658: fi
4659:
4660: if test $ac_cv_func_gethostbyname = no; then
1.51 ohara 4661: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
1.43 ohara 4662: $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
1.56 ohara 4663: if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
1.43 ohara 4664: $as_echo_n "(cached) " >&6
1.14 noro 4665: else
4666: ac_check_lib_save_LIBS=$LIBS
4667: LIBS="-lnsl $LIBS"
1.51 ohara 4668: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.32 noro 4669: /* end confdefs.h. */
1.14 noro 4670:
1.37 ohara 4671: /* Override any GCC internal prototype to avoid an error.
4672: Use char because int might match the return type of a GCC
4673: builtin and then its argument prototype would still apply. */
1.14 noro 4674: #ifdef __cplusplus
4675: extern "C"
4676: #endif
4677: char gethostbyname ();
4678: int
4679: main ()
4680: {
1.37 ohara 4681: return gethostbyname ();
1.14 noro 4682: ;
4683: return 0;
4684: }
4685: _ACEOF
1.51 ohara 4686: if ac_fn_c_try_link "$LINENO"; then :
1.14 noro 4687: ac_cv_lib_nsl_gethostbyname=yes
4688: else
1.51 ohara 4689: ac_cv_lib_nsl_gethostbyname=no
1.14 noro 4690: fi
1.51 ohara 4691: rm -f core conftest.err conftest.$ac_objext \
4692: conftest$ac_exeext conftest.$ac_ext
1.14 noro 4693: LIBS=$ac_check_lib_save_LIBS
4694: fi
1.51 ohara 4695: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
1.43 ohara 4696: $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
1.56 ohara 4697: if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
1.14 noro 4698: X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
4699: fi
4700:
4701: if test $ac_cv_lib_nsl_gethostbyname = no; then
1.51 ohara 4702: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
1.43 ohara 4703: $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
1.56 ohara 4704: if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
1.43 ohara 4705: $as_echo_n "(cached) " >&6
1.14 noro 4706: else
4707: ac_check_lib_save_LIBS=$LIBS
4708: LIBS="-lbsd $LIBS"
1.51 ohara 4709: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.32 noro 4710: /* end confdefs.h. */
1.14 noro 4711:
1.37 ohara 4712: /* Override any GCC internal prototype to avoid an error.
4713: Use char because int might match the return type of a GCC
4714: builtin and then its argument prototype would still apply. */
1.14 noro 4715: #ifdef __cplusplus
4716: extern "C"
4717: #endif
4718: char gethostbyname ();
4719: int
4720: main ()
4721: {
1.37 ohara 4722: return gethostbyname ();
1.14 noro 4723: ;
4724: return 0;
4725: }
4726: _ACEOF
1.51 ohara 4727: if ac_fn_c_try_link "$LINENO"; then :
1.14 noro 4728: ac_cv_lib_bsd_gethostbyname=yes
4729: else
1.51 ohara 4730: ac_cv_lib_bsd_gethostbyname=no
1.14 noro 4731: fi
1.51 ohara 4732: rm -f core conftest.err conftest.$ac_objext \
4733: conftest$ac_exeext conftest.$ac_ext
1.14 noro 4734: LIBS=$ac_check_lib_save_LIBS
4735: fi
1.51 ohara 4736: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
1.43 ohara 4737: $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
1.56 ohara 4738: if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
1.14 noro 4739: X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
4740: fi
4741:
4742: fi
4743: fi
4744:
4745: # lieder@skyler.mavd.honeywell.com says without -lsocket,
4746: # socket/setsockopt and other routines are undefined under SCO ODT
4747: # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
4748: # on later versions), says Simon Leinen: it contains gethostby*
1.32 noro 4749: # variants that don't use the name server (or something). -lsocket
1.14 noro 4750: # must be given before -lnsl if both are needed. We assume that
4751: # if connect needs -lnsl, so does gethostbyname.
1.51 ohara 4752: ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
1.56 ohara 4753: if test "x$ac_cv_func_connect" = xyes; then :
1.32 noro 4754:
1.14 noro 4755: fi
1.37 ohara 4756:
1.14 noro 4757: if test $ac_cv_func_connect = no; then
1.51 ohara 4758: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
1.43 ohara 4759: $as_echo_n "checking for connect in -lsocket... " >&6; }
1.56 ohara 4760: if ${ac_cv_lib_socket_connect+:} false; then :
1.43 ohara 4761: $as_echo_n "(cached) " >&6
1.14 noro 4762: else
4763: ac_check_lib_save_LIBS=$LIBS
4764: LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
1.51 ohara 4765: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.32 noro 4766: /* end confdefs.h. */
1.14 noro 4767:
1.37 ohara 4768: /* Override any GCC internal prototype to avoid an error.
4769: Use char because int might match the return type of a GCC
4770: builtin and then its argument prototype would still apply. */
1.14 noro 4771: #ifdef __cplusplus
4772: extern "C"
4773: #endif
4774: char connect ();
4775: int
4776: main ()
4777: {
1.37 ohara 4778: return connect ();
1.14 noro 4779: ;
4780: return 0;
4781: }
4782: _ACEOF
1.51 ohara 4783: if ac_fn_c_try_link "$LINENO"; then :
1.14 noro 4784: ac_cv_lib_socket_connect=yes
4785: else
1.51 ohara 4786: ac_cv_lib_socket_connect=no
1.14 noro 4787: fi
1.51 ohara 4788: rm -f core conftest.err conftest.$ac_objext \
4789: conftest$ac_exeext conftest.$ac_ext
1.14 noro 4790: LIBS=$ac_check_lib_save_LIBS
4791: fi
1.51 ohara 4792: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
1.43 ohara 4793: $as_echo "$ac_cv_lib_socket_connect" >&6; }
1.56 ohara 4794: if test "x$ac_cv_lib_socket_connect" = xyes; then :
1.14 noro 4795: X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
4796: fi
4797:
4798: fi
4799:
4800: # Guillermo Gomez says -lposix is necessary on A/UX.
1.51 ohara 4801: ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
1.56 ohara 4802: if test "x$ac_cv_func_remove" = xyes; then :
1.32 noro 4803:
1.14 noro 4804: fi
1.37 ohara 4805:
1.14 noro 4806: if test $ac_cv_func_remove = no; then
1.51 ohara 4807: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
1.43 ohara 4808: $as_echo_n "checking for remove in -lposix... " >&6; }
1.56 ohara 4809: if ${ac_cv_lib_posix_remove+:} false; then :
1.43 ohara 4810: $as_echo_n "(cached) " >&6
1.14 noro 4811: else
4812: ac_check_lib_save_LIBS=$LIBS
4813: LIBS="-lposix $LIBS"
1.51 ohara 4814: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.32 noro 4815: /* end confdefs.h. */
1.14 noro 4816:
1.37 ohara 4817: /* Override any GCC internal prototype to avoid an error.
4818: Use char because int might match the return type of a GCC
4819: builtin and then its argument prototype would still apply. */
1.14 noro 4820: #ifdef __cplusplus
4821: extern "C"
4822: #endif
4823: char remove ();
4824: int
4825: main ()
4826: {
1.37 ohara 4827: return remove ();
1.14 noro 4828: ;
4829: return 0;
4830: }
4831: _ACEOF
1.51 ohara 4832: if ac_fn_c_try_link "$LINENO"; then :
1.14 noro 4833: ac_cv_lib_posix_remove=yes
4834: else
1.51 ohara 4835: ac_cv_lib_posix_remove=no
1.14 noro 4836: fi
1.51 ohara 4837: rm -f core conftest.err conftest.$ac_objext \
4838: conftest$ac_exeext conftest.$ac_ext
1.14 noro 4839: LIBS=$ac_check_lib_save_LIBS
4840: fi
1.51 ohara 4841: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
1.43 ohara 4842: $as_echo "$ac_cv_lib_posix_remove" >&6; }
1.56 ohara 4843: if test "x$ac_cv_lib_posix_remove" = xyes; then :
1.14 noro 4844: X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
4845: fi
4846:
4847: fi
4848:
4849: # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
1.51 ohara 4850: ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
1.56 ohara 4851: if test "x$ac_cv_func_shmat" = xyes; then :
1.32 noro 4852:
1.14 noro 4853: fi
1.37 ohara 4854:
1.14 noro 4855: if test $ac_cv_func_shmat = no; then
1.51 ohara 4856: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
1.43 ohara 4857: $as_echo_n "checking for shmat in -lipc... " >&6; }
1.56 ohara 4858: if ${ac_cv_lib_ipc_shmat+:} false; then :
1.43 ohara 4859: $as_echo_n "(cached) " >&6
1.14 noro 4860: else
4861: ac_check_lib_save_LIBS=$LIBS
4862: LIBS="-lipc $LIBS"
1.51 ohara 4863: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.32 noro 4864: /* end confdefs.h. */
1.14 noro 4865:
1.37 ohara 4866: /* Override any GCC internal prototype to avoid an error.
4867: Use char because int might match the return type of a GCC
4868: builtin and then its argument prototype would still apply. */
1.14 noro 4869: #ifdef __cplusplus
4870: extern "C"
4871: #endif
4872: char shmat ();
4873: int
4874: main ()
4875: {
1.37 ohara 4876: return shmat ();
1.14 noro 4877: ;
4878: return 0;
4879: }
4880: _ACEOF
1.51 ohara 4881: if ac_fn_c_try_link "$LINENO"; then :
1.14 noro 4882: ac_cv_lib_ipc_shmat=yes
4883: else
1.51 ohara 4884: ac_cv_lib_ipc_shmat=no
1.14 noro 4885: fi
1.51 ohara 4886: rm -f core conftest.err conftest.$ac_objext \
4887: conftest$ac_exeext conftest.$ac_ext
1.14 noro 4888: LIBS=$ac_check_lib_save_LIBS
4889: fi
1.51 ohara 4890: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
1.43 ohara 4891: $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
1.56 ohara 4892: if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
1.14 noro 4893: X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
4894: fi
4895:
4896: fi
4897: fi
4898:
4899: # Check for libraries that X11R6 Xt/Xaw programs need.
4900: ac_save_LDFLAGS=$LDFLAGS
4901: test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
4902: # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
4903: # check for ICE first), but we must link in the order -lSM -lICE or
4904: # we get undefined symbols. So assume we have SM if we have ICE.
4905: # These have to be linked with before -lX11, unlike the other
4906: # libraries we check for below, so use a different variable.
4907: # John Interrante, Karl Berry
1.51 ohara 4908: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
1.43 ohara 4909: $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
1.56 ohara 4910: if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
1.43 ohara 4911: $as_echo_n "(cached) " >&6
1.14 noro 4912: else
4913: ac_check_lib_save_LIBS=$LIBS
4914: LIBS="-lICE $X_EXTRA_LIBS $LIBS"
1.51 ohara 4915: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.32 noro 4916: /* end confdefs.h. */
1.14 noro 4917:
1.37 ohara 4918: /* Override any GCC internal prototype to avoid an error.
4919: Use char because int might match the return type of a GCC
4920: builtin and then its argument prototype would still apply. */
1.14 noro 4921: #ifdef __cplusplus
4922: extern "C"
4923: #endif
4924: char IceConnectionNumber ();
4925: int
4926: main ()
4927: {
1.37 ohara 4928: return IceConnectionNumber ();
1.14 noro 4929: ;
4930: return 0;
4931: }
4932: _ACEOF
1.51 ohara 4933: if ac_fn_c_try_link "$LINENO"; then :
1.14 noro 4934: ac_cv_lib_ICE_IceConnectionNumber=yes
4935: else
1.51 ohara 4936: ac_cv_lib_ICE_IceConnectionNumber=no
1.14 noro 4937: fi
1.51 ohara 4938: rm -f core conftest.err conftest.$ac_objext \
4939: conftest$ac_exeext conftest.$ac_ext
1.14 noro 4940: LIBS=$ac_check_lib_save_LIBS
4941: fi
1.51 ohara 4942: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
1.43 ohara 4943: $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
1.56 ohara 4944: if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
1.14 noro 4945: X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
4946: fi
4947:
4948: LDFLAGS=$ac_save_LDFLAGS
4949:
4950: fi
4951:
4952:
1.37 ohara 4953: # Check whether --enable-shared was given.
1.51 ohara 4954: if test "${enable_shared+set}" = set; then :
1.37 ohara 4955: enableval=$enable_shared; enable_shared=yes
1.14 noro 4956: else
4957: enable_shared=no
1.37 ohara 4958: fi
4959:
1.14 noro 4960:
4961: if test "${enable_shared:=no}" != no ; then
4962: true
4963: fi
4964:
1.17 ohara 4965: if test "${ac_test_CFLAGS}" != set -a "${GCC}" = yes ; then
4966: if test "${ac_cv_prog_cc_g}" = yes; then
4967: CFLAGS="-g -O"
4968: else
4969: CFLAGS="-O"
4970: fi
1.29 ohara 4971: elif test `basename ./"${CC}"` = "icc" ; then
4972: CFLAGS="-g -O"
1.17 ohara 4973: fi
1.15 noro 4974:
1.55 noro 4975: GC=gc-7.2
1.43 ohara 4976:
4977: # Check whether --with-asir-gc was given.
1.51 ohara 4978: if test "${with_asir_gc+set}" = set; then :
1.43 ohara 4979: withval=$with_asir_gc; with_asir_gc=${withval}
4980: else
4981: with_asir_gc=yes
4982: fi
4983:
4984: if test ${with_asir_gc:=yes} != no; then
4985: ASIR_GCLIB=libasir-gc.a
4986: GCINC='-I${top_srcdir}/${GC}/include'
4987: else
4988: GCLIB='-L${prefix}/lib -lgc'
4989: GCINC='-I${prefix}/include'
1.51 ohara 4990: $as_echo "#define NO_ASIR_GC 1" >>confdefs.h
1.43 ohara 4991:
4992: fi
1.47 ohara 4993: GC_CONFIGURE_ARGS="--disable-threads --enable-large-config"
1.44 ohara 4994: if test -n "${host_alias}" ; then
1.37 ohara 4995: GC_CONFIGURE_ARGS="--host=${host_alias} ${GC_CONFIGURE_ARGS}"
4996: fi
4997:
1.55 noro 4998: $as_echo "#define GC7 1" >>confdefs.h
4999:
1.38 ohara 5000:
1.43 ohara 5001:
5002:
5003:
5004:
5005:
1.37 ohara 5006:
5007: # Check whether --with-distdir was given.
1.51 ohara 5008: if test "${with_distdir+set}" = set; then :
1.37 ohara 5009: withval=$with_distdir; with_distdir=${withval}
1.35 ohara 5010: else
5011: with_distdir=no
1.37 ohara 5012: fi
5013:
1.35 ohara 5014: GC_DISTDIR='${prefix}/../OpenXM_dist'
5015: if test ${with_distdir:=no} != no -a ${with_distdir} != yes ; then
5016: GC_DISTDIR=${with_distdir}
5017: fi
5018:
5019:
1.14 noro 5020: libasir_postfix=""
5021:
1.37 ohara 5022: # Check whether --with-pari was given.
1.51 ohara 5023: if test "${with_pari+set}" = set; then :
1.37 ohara 5024: withval=$with_pari; with_pari=${withval}
1.14 noro 5025: else
5026: with_pari=no
1.37 ohara 5027: fi
5028:
1.14 noro 5029:
5030: if test ${with_pari:=no} != no ; then
5031: libasir_postfix=${libasir_postfix}_pari
5032: PARIINC='-I${prefix}/include/pari'
5033: if test "${enable_shared}" != yes ; then
1.43 ohara 5034: PARILIB='${libdir}/libpari.a'
1.14 noro 5035: else
1.43 ohara 5036: PARILIB='-L${libdir} -lpari'
1.14 noro 5037: fi
1.51 ohara 5038: $as_echo "#define PARI 1" >>confdefs.h
1.14 noro 5039:
1.16 noro 5040: fi
5041:
5042:
5043:
1.51 ohara 5044: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
1.43 ohara 5045: $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
1.56 ohara 5046: if ${ac_cv_path_GREP+:} false; then :
1.43 ohara 5047: $as_echo_n "(cached) " >&6
1.32 noro 5048: else
1.43 ohara 5049: if test -z "$GREP"; then
1.37 ohara 5050: ac_path_GREP_found=false
1.43 ohara 5051: # Loop through the user's path and test for each of PROGNAME-LIST
5052: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1.37 ohara 5053: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5054: do
5055: IFS=$as_save_IFS
5056: test -z "$as_dir" && as_dir=.
1.51 ohara 5057: for ac_prog in grep ggrep; do
1.43 ohara 5058: for ac_exec_ext in '' $ac_executable_extensions; do
5059: ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
1.56 ohara 5060: as_fn_executable_p "$ac_path_GREP" || continue
1.43 ohara 5061: # Check for GNU ac_path_GREP and select it if it is found.
1.37 ohara 5062: # Check for GNU $ac_path_GREP
5063: case `"$ac_path_GREP" --version 2>&1` in
5064: *GNU*)
5065: ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5066: *)
5067: ac_count=0
1.43 ohara 5068: $as_echo_n 0123456789 >"conftest.in"
1.37 ohara 5069: while :
5070: do
5071: cat "conftest.in" "conftest.in" >"conftest.tmp"
5072: mv "conftest.tmp" "conftest.in"
5073: cp "conftest.in" "conftest.nl"
1.43 ohara 5074: $as_echo 'GREP' >> "conftest.nl"
1.37 ohara 5075: "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5076: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
1.51 ohara 5077: as_fn_arith $ac_count + 1 && ac_count=$as_val
1.37 ohara 5078: if test $ac_count -gt ${ac_path_GREP_max-0}; then
5079: # Best one so far, save it but keep looking for a better one
5080: ac_cv_path_GREP="$ac_path_GREP"
5081: ac_path_GREP_max=$ac_count
1.32 noro 5082: fi
1.37 ohara 5083: # 10*(2^10) chars as input seems more than enough
5084: test $ac_count -gt 10 && break
5085: done
5086: rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5087: esac
5088:
1.43 ohara 5089: $ac_path_GREP_found && break 3
5090: done
1.37 ohara 5091: done
1.51 ohara 5092: done
1.37 ohara 5093: IFS=$as_save_IFS
1.43 ohara 5094: if test -z "$ac_cv_path_GREP"; then
1.51 ohara 5095: as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
1.43 ohara 5096: fi
1.14 noro 5097: else
1.37 ohara 5098: ac_cv_path_GREP=$GREP
5099: fi
5100:
5101: fi
1.51 ohara 5102: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
1.43 ohara 5103: $as_echo "$ac_cv_path_GREP" >&6; }
1.37 ohara 5104: GREP="$ac_cv_path_GREP"
1.14 noro 5105:
1.37 ohara 5106:
1.51 ohara 5107: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
1.43 ohara 5108: $as_echo_n "checking for egrep... " >&6; }
1.56 ohara 5109: if ${ac_cv_path_EGREP+:} false; then :
1.43 ohara 5110: $as_echo_n "(cached) " >&6
1.37 ohara 5111: else
5112: if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5113: then ac_cv_path_EGREP="$GREP -E"
5114: else
1.43 ohara 5115: if test -z "$EGREP"; then
1.37 ohara 5116: ac_path_EGREP_found=false
1.43 ohara 5117: # Loop through the user's path and test for each of PROGNAME-LIST
5118: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1.37 ohara 5119: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5120: do
5121: IFS=$as_save_IFS
5122: test -z "$as_dir" && as_dir=.
1.51 ohara 5123: for ac_prog in egrep; do
1.43 ohara 5124: for ac_exec_ext in '' $ac_executable_extensions; do
5125: ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
1.56 ohara 5126: as_fn_executable_p "$ac_path_EGREP" || continue
1.43 ohara 5127: # Check for GNU ac_path_EGREP and select it if it is found.
1.37 ohara 5128: # Check for GNU $ac_path_EGREP
5129: case `"$ac_path_EGREP" --version 2>&1` in
5130: *GNU*)
5131: ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5132: *)
5133: ac_count=0
1.43 ohara 5134: $as_echo_n 0123456789 >"conftest.in"
1.37 ohara 5135: while :
5136: do
5137: cat "conftest.in" "conftest.in" >"conftest.tmp"
5138: mv "conftest.tmp" "conftest.in"
5139: cp "conftest.in" "conftest.nl"
1.43 ohara 5140: $as_echo 'EGREP' >> "conftest.nl"
1.37 ohara 5141: "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5142: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
1.51 ohara 5143: as_fn_arith $ac_count + 1 && ac_count=$as_val
1.37 ohara 5144: if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5145: # Best one so far, save it but keep looking for a better one
5146: ac_cv_path_EGREP="$ac_path_EGREP"
5147: ac_path_EGREP_max=$ac_count
5148: fi
5149: # 10*(2^10) chars as input seems more than enough
5150: test $ac_count -gt 10 && break
5151: done
5152: rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5153: esac
5154:
1.43 ohara 5155: $ac_path_EGREP_found && break 3
5156: done
1.37 ohara 5157: done
1.51 ohara 5158: done
1.37 ohara 5159: IFS=$as_save_IFS
1.43 ohara 5160: if test -z "$ac_cv_path_EGREP"; then
1.51 ohara 5161: as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
1.43 ohara 5162: fi
1.37 ohara 5163: else
5164: ac_cv_path_EGREP=$EGREP
5165: fi
5166:
5167: fi
5168: fi
1.51 ohara 5169: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
1.43 ohara 5170: $as_echo "$ac_cv_path_EGREP" >&6; }
1.37 ohara 5171: EGREP="$ac_cv_path_EGREP"
5172:
5173:
1.51 ohara 5174: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
1.43 ohara 5175: $as_echo_n "checking for ANSI C header files... " >&6; }
1.56 ohara 5176: if ${ac_cv_header_stdc+:} false; then :
1.43 ohara 5177: $as_echo_n "(cached) " >&6
1.37 ohara 5178: else
1.51 ohara 5179: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.37 ohara 5180: /* end confdefs.h. */
5181: #include <stdlib.h>
5182: #include <stdarg.h>
5183: #include <string.h>
5184: #include <float.h>
5185:
5186: int
5187: main ()
5188: {
1.32 noro 5189:
5190: ;
5191: return 0;
5192: }
1.14 noro 5193: _ACEOF
1.51 ohara 5194: if ac_fn_c_try_compile "$LINENO"; then :
1.14 noro 5195: ac_cv_header_stdc=yes
5196: else
1.51 ohara 5197: ac_cv_header_stdc=no
1.14 noro 5198: fi
1.37 ohara 5199: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.14 noro 5200:
5201: if test $ac_cv_header_stdc = yes; then
5202: # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1.51 ohara 5203: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.32 noro 5204: /* end confdefs.h. */
1.14 noro 5205: #include <string.h>
5206:
5207: _ACEOF
5208: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1.51 ohara 5209: $EGREP "memchr" >/dev/null 2>&1; then :
5210:
1.14 noro 5211: else
5212: ac_cv_header_stdc=no
5213: fi
5214: rm -f conftest*
5215:
5216: fi
5217:
5218: if test $ac_cv_header_stdc = yes; then
5219: # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1.51 ohara 5220: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.32 noro 5221: /* end confdefs.h. */
1.14 noro 5222: #include <stdlib.h>
5223:
5224: _ACEOF
5225: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1.51 ohara 5226: $EGREP "free" >/dev/null 2>&1; then :
5227:
1.14 noro 5228: else
5229: ac_cv_header_stdc=no
5230: fi
5231: rm -f conftest*
5232:
5233: fi
5234:
5235: if test $ac_cv_header_stdc = yes; then
5236: # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1.51 ohara 5237: if test "$cross_compiling" = yes; then :
1.14 noro 5238: :
5239: else
1.51 ohara 5240: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.32 noro 5241: /* end confdefs.h. */
1.14 noro 5242: #include <ctype.h>
1.37 ohara 5243: #include <stdlib.h>
1.14 noro 5244: #if ((' ' & 0x0FF) == 0x020)
5245: # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5246: # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5247: #else
1.32 noro 5248: # define ISLOWER(c) \
5249: (('a' <= (c) && (c) <= 'i') \
5250: || ('j' <= (c) && (c) <= 'r') \
5251: || ('s' <= (c) && (c) <= 'z'))
1.14 noro 5252: # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5253: #endif
5254:
5255: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5256: int
5257: main ()
5258: {
5259: int i;
5260: for (i = 0; i < 256; i++)
5261: if (XOR (islower (i), ISLOWER (i))
1.32 noro 5262: || toupper (i) != TOUPPER (i))
1.37 ohara 5263: return 2;
5264: return 0;
1.14 noro 5265: }
5266: _ACEOF
1.51 ohara 5267: if ac_fn_c_try_run "$LINENO"; then :
1.14 noro 5268:
5269: else
1.51 ohara 5270: ac_cv_header_stdc=no
5271: fi
5272: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5273: conftest.$ac_objext conftest.beam conftest.$ac_ext
5274: fi
1.32 noro 5275:
1.14 noro 5276: fi
1.51 ohara 5277: fi
5278: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5279: $as_echo "$ac_cv_header_stdc" >&6; }
5280: if test $ac_cv_header_stdc = yes; then
1.37 ohara 5281:
1.51 ohara 5282: $as_echo "#define STDC_HEADERS 1" >>confdefs.h
1.32 noro 5283:
1.14 noro 5284: fi
1.37 ohara 5285:
1.51 ohara 5286: # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5287: for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5288: inttypes.h stdint.h unistd.h
5289: do :
5290: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5291: ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5292: "
5293: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5294: cat >>confdefs.h <<_ACEOF
5295: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5296: _ACEOF
5297:
1.14 noro 5298: fi
1.37 ohara 5299:
1.51 ohara 5300: done
5301:
5302:
5303: ac_fn_c_check_type "$LINENO" "unsigned long long" "ac_cv_type_unsigned_long_long" "$ac_includes_default"
1.56 ohara 5304: if test "x$ac_cv_type_unsigned_long_long" = xyes; then :
1.51 ohara 5305:
5306: cat >>confdefs.h <<_ACEOF
5307: #define HAVE_UNSIGNED_LONG_LONG 1
1.32 noro 5308: _ACEOF
1.14 noro 5309:
1.32 noro 5310:
1.14 noro 5311: fi
1.37 ohara 5312:
1.51 ohara 5313: # The cast to long int works around a bug in the HP C Compiler
5314: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5315: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5316: # This bug is HP SR number 8606223364.
5317: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5318: $as_echo_n "checking size of long... " >&6; }
1.56 ohara 5319: if ${ac_cv_sizeof_long+:} false; then :
1.51 ohara 5320: $as_echo_n "(cached) " >&6
1.14 noro 5321: else
1.51 ohara 5322: if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
1.14 noro 5323:
5324: else
1.51 ohara 5325: if test "$ac_cv_type_long" = yes; then
5326: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5327: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5328: as_fn_error 77 "cannot compute sizeof (long)
1.56 ohara 5329: See \`config.log' for more details" "$LINENO" 5; }
1.37 ohara 5330: else
5331: ac_cv_sizeof_long=0
5332: fi
1.14 noro 5333: fi
1.51 ohara 5334:
1.14 noro 5335: fi
1.51 ohara 5336: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
1.43 ohara 5337: $as_echo "$ac_cv_sizeof_long" >&6; }
1.37 ohara 5338:
5339:
5340:
1.14 noro 5341: cat >>confdefs.h <<_ACEOF
5342: #define SIZEOF_LONG $ac_cv_sizeof_long
5343: _ACEOF
5344:
5345:
1.26 noro 5346: if test "${ac_cv_sizeof_long}" = 8; then
1.51 ohara 5347: $as_echo "#define LONG_IS_64BIT 1" >>confdefs.h
1.14 noro 5348:
1.16 noro 5349: else
1.51 ohara 5350: $as_echo "#define LONG_IS_32BIT 1" >>confdefs.h
1.14 noro 5351:
5352: fi
5353: if test "${no_x}" != yes ; then
1.25 ohara 5354: if test -f "${x_libraries}/libXpm.a" -o -f "${x_libraries}/libXpm.dll.a" ; then
1.21 ohara 5355: XPMLIB="-lXpm"
5356: fi
1.37 ohara 5357: # Check whether --enable-plot was given.
1.51 ohara 5358: if test "${enable_plot+set}" = set; then :
1.37 ohara 5359: enableval=$enable_plot; enable_plot=yes
1.14 noro 5360: else
5361: enable_plot=no
1.37 ohara 5362: fi
5363:
1.14 noro 5364: fi
5365:
1.21 ohara 5366:
1.14 noro 5367: if test ${enable_plot:=no} != no ; then
5368: libasir_postfix=${libasir_postfix}_X
1.51 ohara 5369: $as_echo "#define DO_PLOT 1" >>confdefs.h
1.14 noro 5370:
5371: fi
1.37 ohara 5372: if test "$enable_plot" = yes; then
1.14 noro 5373: USE_PLOT_TRUE=
5374: USE_PLOT_FALSE='#'
5375: else
5376: USE_PLOT_TRUE='#'
5377: USE_PLOT_FALSE=
5378: fi
5379:
1.37 ohara 5380:
5381: # Check whether --enable-interval was given.
1.51 ohara 5382: if test "${enable_interval+set}" = set; then :
1.37 ohara 5383: enableval=$enable_interval; enable_interval=${enableval}
1.14 noro 5384: else
5385: enable_interval=no
1.37 ohara 5386: fi
5387:
1.14 noro 5388:
5389: if test ${enable_interval:=no} != no ; then
5390: libasir_postfix=${libasir_postfix}_itv
1.51 ohara 5391: $as_echo "#define INTERVAL 1" >>confdefs.h
1.14 noro 5392:
5393: if test "${enable_interval}" = debug ; then
1.51 ohara 5394: $as_echo "#define ITVDEBUG 1" >>confdefs.h
1.14 noro 5395:
5396: fi
5397: fi
5398:
5399:
5400: if test "${enable_fep:=no}" != no ; then
1.51 ohara 5401: $as_echo "#define FEP 1" >>confdefs.h
1.14 noro 5402:
5403: FEPLIB="-lreadline -ltermcap"
5404: fi
5405:
5406:
1.37 ohara 5407: # Check whether --enable-fft-float was given.
1.51 ohara 5408: if test "${enable_fft_float+set}" = set; then :
1.37 ohara 5409: enableval=$enable_fft_float; enable_fft_float=yes
1.14 noro 5410: else
5411: enable_fft_float=no
1.37 ohara 5412: fi
5413:
1.14 noro 5414:
5415: if test "${enable_fft_float:=no}" != no ; then
1.51 ohara 5416: $as_echo "#define USE_FLOAT 1" >>confdefs.h
1.14 noro 5417:
5418: fi
5419:
5420:
1.45 ohara 5421: # Check whether --with-mpi was given.
1.51 ohara 5422: if test "${with_mpi+set}" = set; then :
1.45 ohara 5423: withval=$with_mpi; with_mpi=${withval}
5424: else
5425: with_mpi=no
5426: fi
5427:
5428:
1.14 noro 5429: if test "${with_mpi:=no}" != no ; then
1.51 ohara 5430: $as_echo "#define MPI 1" >>confdefs.h
1.14 noro 5431:
5432: fi
5433:
5434:
5435: if test "${with_lapack:=no}" != no ; then
1.33 noro 5436: LAPACKLIB="-llapack -lblas -lg2c"
1.51 ohara 5437: $as_echo "#define LAPACK 1" >>confdefs.h
1.14 noro 5438:
5439: fi
5440:
5441:
5442:
5443:
5444:
5445: i386_elf_obj=asmi_l.o
5446: i386_aout_obj=asmi.o
5447: sparc_v8_obj="sparc-2.o asm4-2.o edr-2.o"
1.30 noro 5448: sparc_v9_obj=asmalpha.o
1.14 noro 5449: generic_obj=asmalpha.o
5450:
5451: case "${host}" in
1.20 ohara 5452: i[3-6]86-*-freebsd[3-9].*)
1.14 noro 5453: asm_obj="${i386_elf_obj}"
1.20 ohara 5454: ;;
5455: i[3-6]86-*-linux*|x86-*-linux*)
5456: asm_obj="${i386_elf_obj}"
1.51 ohara 5457: $as_echo "#define _BSD_SOURCE 1" >>confdefs.h
1.20 ohara 5458:
1.14 noro 5459: ;;
5460: *-*-cygwin*)
5461: asm_obj="${i386_aout_obj}"
5462: ;;
1.27 ohara 5463: i[3-6]86-*-interix*)
1.28 ohara 5464: asm_obj="${i386_aout_obj}"
1.51 ohara 5465: $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
1.27 ohara 5466:
5467: ;;
1.14 noro 5468: sparc-sun-solaris2.*)
5469: case "`uname -m`" in
5470: sun4[dm]) asm_obj="${sparc_v8_obj}" ;;
1.31 ohara 5471: sun4u*) asm_obj="${sparc_v9_obj}"
5472: if test "${ac_test_CFLAGS}" != set -a "${GCC}" = yes ; then
5473: CFLAGS="${CFLAGS} -m64"
5474: fi
5475:
5476: ;;
1.14 noro 5477: *) asm_obj="${generic_obj}" ;;
5478: esac
1.51 ohara 5479: $as_echo "#define SYSV 1" >>confdefs.h
1.14 noro 5480:
5481: ;;
1.36 ohara 5482: *-apple-darwin*)
1.14 noro 5483: asm_obj="${generic_obj}"
1.51 ohara 5484: $as_echo "#define __DARWIN__ 1" >>confdefs.h
1.14 noro 5485:
1.56 ohara 5486: if test -d /usr/X11/include -a x"${X_CFLAGS}" = x ; then
5487: X_CFLAGS=-I/usr/X11/include
5488: fi
1.19 ohara 5489: ;;
5490: arm*-*-linux*)
5491: asm_obj="${generic_obj}"
5492: if test "${ac_test_CFLAGS}" != set -a "${GCC}" = yes ; then
5493: CFLAGS="${CFLAGS} -fsigned-char"
5494: fi
1.14 noro 5495: ;;
5496: *)
5497: asm_obj="${generic_obj}"
5498: ;;
5499: esac
5500:
5501:
5502:
1.51 ohara 5503: ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
1.56 ohara 5504: if test "x$ac_cv_func_socket" = xyes; then :
1.37 ohara 5505:
1.14 noro 5506: else
1.51 ohara 5507: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
1.43 ohara 5508: $as_echo_n "checking for socket in -lsocket... " >&6; }
1.56 ohara 5509: if ${ac_cv_lib_socket_socket+:} false; then :
1.43 ohara 5510: $as_echo_n "(cached) " >&6
1.14 noro 5511: else
5512: ac_check_lib_save_LIBS=$LIBS
5513: LIBS="-lsocket $LIBS"
1.51 ohara 5514: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.32 noro 5515: /* end confdefs.h. */
1.14 noro 5516:
1.37 ohara 5517: /* Override any GCC internal prototype to avoid an error.
5518: Use char because int might match the return type of a GCC
5519: builtin and then its argument prototype would still apply. */
1.14 noro 5520: #ifdef __cplusplus
5521: extern "C"
5522: #endif
5523: char socket ();
5524: int
5525: main ()
5526: {
1.37 ohara 5527: return socket ();
1.14 noro 5528: ;
5529: return 0;
5530: }
5531: _ACEOF
1.51 ohara 5532: if ac_fn_c_try_link "$LINENO"; then :
1.14 noro 5533: ac_cv_lib_socket_socket=yes
5534: else
1.51 ohara 5535: ac_cv_lib_socket_socket=no
1.14 noro 5536: fi
1.51 ohara 5537: rm -f core conftest.err conftest.$ac_objext \
5538: conftest$ac_exeext conftest.$ac_ext
1.14 noro 5539: LIBS=$ac_check_lib_save_LIBS
5540: fi
1.51 ohara 5541: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
1.43 ohara 5542: $as_echo "$ac_cv_lib_socket_socket" >&6; }
1.56 ohara 5543: if test "x$ac_cv_lib_socket_socket" = xyes; then :
1.14 noro 5544: cat >>confdefs.h <<_ACEOF
5545: #define HAVE_LIBSOCKET 1
5546: _ACEOF
5547:
5548: LIBS="-lsocket $LIBS"
5549:
5550: fi
5551:
5552: fi
1.51 ohara 5553:
5554: ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
1.56 ohara 5555: if test "x$ac_cv_func_gethostbyname" = xyes; then :
1.51 ohara 5556:
1.14 noro 5557: else
1.51 ohara 5558: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
1.43 ohara 5559: $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
1.56 ohara 5560: if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
1.43 ohara 5561: $as_echo_n "(cached) " >&6
1.14 noro 5562: else
5563: ac_check_lib_save_LIBS=$LIBS
5564: LIBS="-lnsl $LIBS"
1.51 ohara 5565: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.32 noro 5566: /* end confdefs.h. */
1.14 noro 5567:
1.37 ohara 5568: /* Override any GCC internal prototype to avoid an error.
5569: Use char because int might match the return type of a GCC
5570: builtin and then its argument prototype would still apply. */
1.14 noro 5571: #ifdef __cplusplus
5572: extern "C"
5573: #endif
5574: char gethostbyname ();
5575: int
5576: main ()
5577: {
1.37 ohara 5578: return gethostbyname ();
1.14 noro 5579: ;
5580: return 0;
5581: }
5582: _ACEOF
1.51 ohara 5583: if ac_fn_c_try_link "$LINENO"; then :
1.14 noro 5584: ac_cv_lib_nsl_gethostbyname=yes
5585: else
1.51 ohara 5586: ac_cv_lib_nsl_gethostbyname=no
1.14 noro 5587: fi
1.51 ohara 5588: rm -f core conftest.err conftest.$ac_objext \
5589: conftest$ac_exeext conftest.$ac_ext
1.14 noro 5590: LIBS=$ac_check_lib_save_LIBS
5591: fi
1.51 ohara 5592: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
1.43 ohara 5593: $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
1.56 ohara 5594: if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
1.14 noro 5595: cat >>confdefs.h <<_ACEOF
5596: #define HAVE_LIBNSL 1
5597: _ACEOF
5598:
5599: LIBS="-lnsl $LIBS"
5600:
5601: fi
5602:
5603: fi
5604:
5605:
1.37 ohara 5606: 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"
5607:
1.14 noro 5608: cat >confcache <<\_ACEOF
5609: # This file is a shell script that caches the results of configure
5610: # tests run on this system so they can be shared between configure
5611: # scripts and configure runs, see configure's option --config-cache.
5612: # It is not useful on other systems. If it contains results you don't
5613: # want to keep, you may remove or edit it.
5614: #
5615: # config.status only pays attention to the cache file if you give it
5616: # the --recheck option to rerun configure.
5617: #
1.32 noro 5618: # `ac_cv_env_foo' variables (set or unset) will be overridden when
1.14 noro 5619: # loading this file, other *unset* `ac_cv_foo' will be assigned the
5620: # following values.
5621:
5622: _ACEOF
5623:
5624: # The following way of writing the cache mishandles newlines in values,
5625: # but we know of no workaround that is simple, portable, and efficient.
1.37 ohara 5626: # So, we kill variables containing newlines.
1.14 noro 5627: # Ultrix sh set writes to stderr and can't be redirected directly,
5628: # and sets the high bit in the cache file unless we assign to the vars.
1.37 ohara 5629: (
5630: for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
5631: eval ac_val=\$$ac_var
5632: case $ac_val in #(
5633: *${as_nl}*)
5634: case $ac_var in #(
1.51 ohara 5635: *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
5636: $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1.37 ohara 5637: esac
5638: case $ac_var in #(
5639: _ | IFS | as_nl) ;; #(
1.43 ohara 5640: BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1.51 ohara 5641: *) { eval $ac_var=; unset $ac_var;} ;;
1.37 ohara 5642: esac ;;
5643: esac
5644: done
5645:
1.14 noro 5646: (set) 2>&1 |
1.37 ohara 5647: case $as_nl`(ac_space=' '; set) 2>&1` in #(
5648: *${as_nl}ac_space=\ *)
1.51 ohara 5649: # `set' does not quote correctly, so add quotes: double-quote
5650: # substitution turns \\\\ into \\, and sed turns \\ into \.
1.14 noro 5651: sed -n \
1.32 noro 5652: "s/'/'\\\\''/g;
5653: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
1.37 ohara 5654: ;; #(
1.14 noro 5655: *)
5656: # `set' quotes correctly as required by POSIX, so do not add quotes.
1.37 ohara 5657: sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1.14 noro 5658: ;;
1.37 ohara 5659: esac |
5660: sort
5661: ) |
1.14 noro 5662: sed '
1.37 ohara 5663: /^ac_cv_env_/b end
1.14 noro 5664: t clear
1.37 ohara 5665: :clear
1.14 noro 5666: s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5667: t end
1.37 ohara 5668: s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5669: :end' >>confcache
5670: if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
5671: if test -w "$cache_file"; then
1.56 ohara 5672: if test "x$cache_file" != "x/dev/null"; then
1.51 ohara 5673: { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
1.43 ohara 5674: $as_echo "$as_me: updating cache $cache_file" >&6;}
1.56 ohara 5675: if test ! -f "$cache_file" || test -h "$cache_file"; then
5676: cat confcache >"$cache_file"
5677: else
5678: case $cache_file in #(
5679: */* | ?:*)
5680: mv -f confcache "$cache_file"$$ &&
5681: mv -f "$cache_file"$$ "$cache_file" ;; #(
5682: *)
5683: mv -f confcache "$cache_file" ;;
5684: esac
5685: fi
5686: fi
1.14 noro 5687: else
1.51 ohara 5688: { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
1.43 ohara 5689: $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
1.14 noro 5690: fi
5691: fi
5692: rm -f confcache
5693:
5694: test "x$prefix" = xNONE && prefix=$ac_default_prefix
5695: # Let make expand exec_prefix.
5696: test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5697:
5698: # Transform confdefs.h into DEFS.
5699: # Protect against shell expansion while executing Makefile rules.
5700: # Protect against Makefile macro expansion.
5701: #
5702: # If the first sed substitution is executed (which looks for macros that
1.37 ohara 5703: # take arguments), then branch to the quote section. Otherwise,
1.14 noro 5704: # look for a macro that doesn't take arguments.
1.37 ohara 5705: ac_script='
1.43 ohara 5706: :mline
5707: /\\$/{
5708: N
5709: s,\\\n,,
5710: b mline
5711: }
1.14 noro 5712: t clear
1.37 ohara 5713: :clear
5714: s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
1.14 noro 5715: t quote
1.37 ohara 5716: s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
1.14 noro 5717: t quote
1.37 ohara 5718: b any
5719: :quote
5720: s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
5721: s/\[/\\&/g
5722: s/\]/\\&/g
5723: s/\$/$$/g
5724: H
5725: :any
5726: ${
5727: g
5728: s/^\n//
5729: s/\n/ /g
5730: p
5731: }
5732: '
5733: DEFS=`sed -n "$ac_script" confdefs.h`
1.14 noro 5734:
5735:
1.32 noro 5736: ac_libobjs=
5737: ac_ltlibobjs=
1.51 ohara 5738: U=
1.32 noro 5739: for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5740: # 1. Remove the extension, and $U if already installed.
1.37 ohara 5741: ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
1.43 ohara 5742: ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
1.37 ohara 5743: # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
5744: # will be set to the directory where LIBOBJS objects are built.
1.51 ohara 5745: as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
5746: as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
1.32 noro 5747: done
5748: LIBOBJS=$ac_libobjs
5749:
5750: LTLIBOBJS=$ac_ltlibobjs
5751:
5752:
1.51 ohara 5753: if test -n "$EXEEXT"; then
5754: am__EXEEXT_TRUE=
5755: am__EXEEXT_FALSE='#'
5756: else
5757: am__EXEEXT_TRUE='#'
5758: am__EXEEXT_FALSE=
5759: fi
5760:
1.37 ohara 5761: if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
1.51 ohara 5762: as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
5763: Usually this means the macro was only invoked conditionally." "$LINENO" 5
1.37 ohara 5764: fi
5765: if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
1.51 ohara 5766: as_fn_error $? "conditional \"AMDEP\" was never defined.
5767: Usually this means the macro was only invoked conditionally." "$LINENO" 5
1.37 ohara 5768: fi
5769: if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
1.51 ohara 5770: as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
5771: Usually this means the macro was only invoked conditionally." "$LINENO" 5
1.37 ohara 5772: fi
5773: if test -z "${USE_PLOT_TRUE}" && test -z "${USE_PLOT_FALSE}"; then
1.51 ohara 5774: as_fn_error $? "conditional \"USE_PLOT\" was never defined.
5775: Usually this means the macro was only invoked conditionally." "$LINENO" 5
1.37 ohara 5776: fi
1.14 noro 5777:
1.56 ohara 5778: : "${CONFIG_STATUS=./config.status}"
1.43 ohara 5779: ac_write_fail=0
1.14 noro 5780: ac_clean_files_save=$ac_clean_files
5781: ac_clean_files="$ac_clean_files $CONFIG_STATUS"
1.51 ohara 5782: { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
1.43 ohara 5783: $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
1.51 ohara 5784: as_write_fail=0
5785: cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
1.14 noro 5786: #! $SHELL
5787: # Generated by $as_me.
5788: # Run this file to recreate the current configuration.
5789: # Compiler output produced by configure, useful for debugging
5790: # configure, is in config.log if it exists.
5791:
5792: debug=false
1.32 noro 5793: ac_cs_recheck=false
5794: ac_cs_silent=false
1.51 ohara 5795:
1.14 noro 5796: SHELL=\${CONFIG_SHELL-$SHELL}
1.51 ohara 5797: export SHELL
5798: _ASEOF
5799: cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
5800: ## -------------------- ##
5801: ## M4sh Initialization. ##
5802: ## -------------------- ##
1.14 noro 5803:
1.37 ohara 5804: # Be more Bourne compatible
5805: DUALCASE=1; export DUALCASE # for MKS sh
1.51 ohara 5806: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
1.14 noro 5807: emulate sh
5808: NULLCMD=:
1.43 ohara 5809: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
1.32 noro 5810: # is contrary to our usage. Disable this feature.
5811: alias -g '${1+"$@"}'='"$@"'
1.37 ohara 5812: setopt NO_GLOB_SUBST
5813: else
1.51 ohara 5814: case `(set -o) 2>/dev/null` in #(
5815: *posix*) :
5816: set -o posix ;; #(
5817: *) :
5818: ;;
1.37 ohara 5819: esac
5820: fi
5821:
5822:
1.43 ohara 5823: as_nl='
5824: '
5825: export as_nl
5826: # Printing a long string crashes Solaris 7 /usr/bin/printf.
5827: as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5828: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
5829: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
1.51 ohara 5830: # Prefer a ksh shell builtin over an external printf program on Solaris,
5831: # but without wasting forks for bash or zsh.
5832: if test -z "$BASH_VERSION$ZSH_VERSION" \
5833: && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
5834: as_echo='print -r --'
5835: as_echo_n='print -rn --'
5836: elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
1.43 ohara 5837: as_echo='printf %s\n'
5838: as_echo_n='printf %s'
5839: else
5840: if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
5841: as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
5842: as_echo_n='/usr/ucb/echo -n'
5843: else
5844: as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
5845: as_echo_n_body='eval
5846: arg=$1;
1.51 ohara 5847: case $arg in #(
1.43 ohara 5848: *"$as_nl"*)
5849: expr "X$arg" : "X\\(.*\\)$as_nl";
5850: arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
5851: esac;
5852: expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
5853: '
5854: export as_echo_n_body
5855: as_echo_n='sh -c $as_echo_n_body as_echo'
5856: fi
5857: export as_echo_body
5858: as_echo='sh -c $as_echo_body as_echo'
5859: fi
5860:
1.37 ohara 5861: # The user is always right.
5862: if test "${PATH_SEPARATOR+set}" != set; then
1.43 ohara 5863: PATH_SEPARATOR=:
5864: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
5865: (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
5866: PATH_SEPARATOR=';'
5867: }
1.14 noro 5868: fi
5869:
1.32 noro 5870:
1.37 ohara 5871: # IFS
5872: # We need space, tab and new line, in precisely that order. Quoting is
5873: # there to prevent editors from complaining about space-tab.
5874: # (If _AS_PATH_WALK were called with IFS unset, it would disable word
5875: # splitting by setting IFS to empty value.)
5876: IFS=" "" $as_nl"
5877:
5878: # Find who we are. Look in the path if we contain no directory separator.
1.56 ohara 5879: as_myself=
1.51 ohara 5880: case $0 in #((
1.37 ohara 5881: *[\\/]* ) as_myself=$0 ;;
5882: *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5883: for as_dir in $PATH
5884: do
5885: IFS=$as_save_IFS
5886: test -z "$as_dir" && as_dir=.
1.51 ohara 5887: test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5888: done
1.37 ohara 5889: IFS=$as_save_IFS
5890:
5891: ;;
5892: esac
5893: # We did not find ourselves, most probably we were run as `sh COMMAND'
5894: # in which case we are not to be found in the path.
5895: if test "x$as_myself" = x; then
5896: as_myself=$0
5897: fi
5898: if test ! -f "$as_myself"; then
1.43 ohara 5899: $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
1.51 ohara 5900: exit 1
1.37 ohara 5901: fi
5902:
1.51 ohara 5903: # Unset variables that we do not need and which cause bugs (e.g. in
5904: # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
5905: # suppresses any "Segmentation fault" message there. '((' could
5906: # trigger a bug in pdksh 5.2.14.
5907: for as_var in BASH_ENV ENV MAIL MAILPATH
5908: do eval test x\${$as_var+set} = xset \
5909: && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
1.37 ohara 5910: done
1.32 noro 5911: PS1='$ '
5912: PS2='> '
5913: PS4='+ '
5914:
5915: # NLS nuisances.
1.43 ohara 5916: LC_ALL=C
5917: export LC_ALL
5918: LANGUAGE=C
5919: export LANGUAGE
1.32 noro 5920:
1.51 ohara 5921: # CDPATH.
5922: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
5923:
5924:
5925: # as_fn_error STATUS ERROR [LINENO LOG_FD]
5926: # ----------------------------------------
5927: # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
5928: # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
5929: # script with STATUS, using 1 if that was 0.
5930: as_fn_error ()
5931: {
5932: as_status=$1; test $as_status -eq 0 && as_status=1
5933: if test "$4"; then
5934: as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
5935: $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
5936: fi
5937: $as_echo "$as_me: error: $2" >&2
5938: as_fn_exit $as_status
5939: } # as_fn_error
5940:
5941:
5942: # as_fn_set_status STATUS
5943: # -----------------------
5944: # Set $? to STATUS, without forking.
5945: as_fn_set_status ()
5946: {
5947: return $1
5948: } # as_fn_set_status
5949:
5950: # as_fn_exit STATUS
5951: # -----------------
5952: # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
5953: as_fn_exit ()
5954: {
5955: set +e
5956: as_fn_set_status $1
5957: exit $1
5958: } # as_fn_exit
5959:
5960: # as_fn_unset VAR
5961: # ---------------
5962: # Portably unset VAR.
5963: as_fn_unset ()
5964: {
5965: { eval $1=; unset $1;}
5966: }
5967: as_unset=as_fn_unset
5968: # as_fn_append VAR VALUE
5969: # ----------------------
5970: # Append the text in VALUE to the end of the definition contained in VAR. Take
5971: # advantage of any shell optimizations that allow amortized linear growth over
5972: # repeated appends, instead of the typical quadratic growth present in naive
5973: # implementations.
5974: if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
5975: eval 'as_fn_append ()
5976: {
5977: eval $1+=\$2
5978: }'
5979: else
5980: as_fn_append ()
5981: {
5982: eval $1=\$$1\$2
5983: }
5984: fi # as_fn_append
5985:
5986: # as_fn_arith ARG...
5987: # ------------------
5988: # Perform arithmetic evaluation on the ARGs, and store the result in the
5989: # global $as_val. Take advantage of shells that can avoid forks. The arguments
5990: # must be portable across $(()) and expr.
5991: if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
5992: eval 'as_fn_arith ()
5993: {
5994: as_val=$(( $* ))
5995: }'
5996: else
5997: as_fn_arith ()
5998: {
5999: as_val=`expr "$@" || test $? -eq 1`
6000: }
6001: fi # as_fn_arith
6002:
6003:
1.37 ohara 6004: if expr a : '\(a\)' >/dev/null 2>&1 &&
6005: test "X`expr 00001 : '.*\(...\)'`" = X001; then
1.32 noro 6006: as_expr=expr
6007: else
6008: as_expr=false
6009: fi
6010:
1.37 ohara 6011: if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
1.32 noro 6012: as_basename=basename
6013: else
6014: as_basename=false
6015: fi
1.14 noro 6016:
1.51 ohara 6017: if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
6018: as_dirname=dirname
6019: else
6020: as_dirname=false
6021: fi
1.14 noro 6022:
1.37 ohara 6023: as_me=`$as_basename -- "$0" ||
1.14 noro 6024: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6025: X"$0" : 'X\(//\)$' \| \
1.37 ohara 6026: X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1.43 ohara 6027: $as_echo X/"$0" |
1.37 ohara 6028: sed '/^.*\/\([^/][^/]*\)\/*$/{
6029: s//\1/
6030: q
6031: }
6032: /^X\/\(\/\/\)$/{
6033: s//\1/
6034: q
6035: }
6036: /^X\/\(\/\).*/{
6037: s//\1/
6038: q
6039: }
6040: s/.*/./; q'`
1.14 noro 6041:
1.51 ohara 6042: # Avoid depending upon Character Ranges.
6043: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6044: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6045: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6046: as_cr_digits='0123456789'
6047: as_cr_alnum=$as_cr_Letters$as_cr_digits
1.37 ohara 6048:
6049: ECHO_C= ECHO_N= ECHO_T=
1.51 ohara 6050: case `echo -n x` in #(((((
1.37 ohara 6051: -n*)
1.51 ohara 6052: case `echo 'xy\c'` in
1.37 ohara 6053: *c*) ECHO_T=' ';; # ECHO_T is single tab character.
1.51 ohara 6054: xy) ECHO_C='\c';;
6055: *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
6056: ECHO_T=' ';;
1.37 ohara 6057: esac;;
6058: *)
6059: ECHO_N='-n';;
1.14 noro 6060: esac
1.2 noro 6061:
1.14 noro 6062: rm -f conf$$ conf$$.exe conf$$.file
1.37 ohara 6063: if test -d conf$$.dir; then
6064: rm -f conf$$.dir/conf$$.file
6065: else
6066: rm -f conf$$.dir
1.43 ohara 6067: mkdir conf$$.dir 2>/dev/null
1.37 ohara 6068: fi
1.43 ohara 6069: if (echo >conf$$.file) 2>/dev/null; then
6070: if ln -s conf$$.file conf$$ 2>/dev/null; then
6071: as_ln_s='ln -s'
6072: # ... but there are two gotchas:
6073: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
6074: # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
1.56 ohara 6075: # In both cases, we have to default to `cp -pR'.
1.43 ohara 6076: ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
1.56 ohara 6077: as_ln_s='cp -pR'
1.43 ohara 6078: elif ln conf$$.file conf$$ 2>/dev/null; then
6079: as_ln_s=ln
6080: else
1.56 ohara 6081: as_ln_s='cp -pR'
1.43 ohara 6082: fi
1.14 noro 6083: else
1.56 ohara 6084: as_ln_s='cp -pR'
1.14 noro 6085: fi
1.37 ohara 6086: rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
6087: rmdir conf$$.dir 2>/dev/null
1.2 noro 6088:
1.51 ohara 6089:
6090: # as_fn_mkdir_p
6091: # -------------
6092: # Create "$as_dir" as a directory, including parents if necessary.
6093: as_fn_mkdir_p ()
6094: {
6095:
6096: case $as_dir in #(
6097: -*) as_dir=./$as_dir;;
6098: esac
6099: test -d "$as_dir" || eval $as_mkdir_p || {
6100: as_dirs=
6101: while :; do
6102: case $as_dir in #(
6103: *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
6104: *) as_qdir=$as_dir;;
6105: esac
6106: as_dirs="'$as_qdir' $as_dirs"
6107: as_dir=`$as_dirname -- "$as_dir" ||
6108: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6109: X"$as_dir" : 'X\(//\)[^/]' \| \
6110: X"$as_dir" : 'X\(//\)$' \| \
6111: X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
6112: $as_echo X"$as_dir" |
6113: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6114: s//\1/
6115: q
6116: }
6117: /^X\(\/\/\)[^/].*/{
6118: s//\1/
6119: q
6120: }
6121: /^X\(\/\/\)$/{
6122: s//\1/
6123: q
6124: }
6125: /^X\(\/\).*/{
6126: s//\1/
6127: q
6128: }
6129: s/.*/./; q'`
6130: test -d "$as_dir" && break
6131: done
6132: test -z "$as_dirs" || eval "mkdir $as_dirs"
6133: } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
6134:
6135:
6136: } # as_fn_mkdir_p
1.32 noro 6137: if mkdir -p . 2>/dev/null; then
1.51 ohara 6138: as_mkdir_p='mkdir -p "$as_dir"'
1.32 noro 6139: else
6140: test -d ./-p && rmdir ./-p
6141: as_mkdir_p=false
6142: fi
6143:
1.56 ohara 6144:
6145: # as_fn_executable_p FILE
6146: # -----------------------
6147: # Test if FILE is an executable regular file.
6148: as_fn_executable_p ()
6149: {
6150: test -f "$1" && test -x "$1"
6151: } # as_fn_executable_p
6152: as_test_x='test -x'
6153: as_executable_p=as_fn_executable_p
1.14 noro 6154:
6155: # Sed expression to map a string onto a valid CPP name.
1.32 noro 6156: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
1.14 noro 6157:
6158: # Sed expression to map a string onto a valid variable name.
1.32 noro 6159: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
1.14 noro 6160:
6161:
6162: exec 6>&1
1.51 ohara 6163: ## ----------------------------------- ##
6164: ## Main body of $CONFIG_STATUS script. ##
6165: ## ----------------------------------- ##
6166: _ASEOF
6167: test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
1.14 noro 6168:
1.51 ohara 6169: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6170: # Save the log message, to keep $0 and so on meaningful, and to
1.14 noro 6171: # report actual input values of CONFIG_FILES etc. instead of their
1.37 ohara 6172: # values after options handling.
6173: ac_log="
1.14 noro 6174: This file was extended by $as_me, which was
1.56 ohara 6175: generated by GNU Autoconf 2.69. Invocation command line was
1.14 noro 6176:
6177: CONFIG_FILES = $CONFIG_FILES
6178: CONFIG_HEADERS = $CONFIG_HEADERS
6179: CONFIG_LINKS = $CONFIG_LINKS
6180: CONFIG_COMMANDS = $CONFIG_COMMANDS
6181: $ $0 $@
6182:
1.37 ohara 6183: on `(hostname || uname -n) 2>/dev/null | sed 1q`
6184: "
6185:
1.14 noro 6186: _ACEOF
6187:
1.51 ohara 6188: case $ac_config_files in *"
6189: "*) set x $ac_config_files; shift; ac_config_files=$*;;
6190: esac
6191:
6192:
6193:
1.43 ohara 6194: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1.14 noro 6195: # Files that config.status was made for.
1.37 ohara 6196: config_files="$ac_config_files"
6197: config_commands="$ac_config_commands"
1.2 noro 6198:
1.37 ohara 6199: _ACEOF
1.4 saito 6200:
1.43 ohara 6201: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1.14 noro 6202: ac_cs_usage="\
1.51 ohara 6203: \`$as_me' instantiates files and other configuration actions
6204: from templates according to the current configuration. Unless the files
6205: and actions are specified as TAGs, all are instantiated by default.
1.14 noro 6206:
1.51 ohara 6207: Usage: $0 [OPTION]... [TAG]...
1.14 noro 6208:
6209: -h, --help print this help, then exit
1.37 ohara 6210: -V, --version print version number and configuration settings, then exit
1.51 ohara 6211: --config print configuration, then exit
6212: -q, --quiet, --silent
6213: do not print progress messages
1.14 noro 6214: -d, --debug don't remove temporary files
6215: --recheck update $as_me by reconfiguring in the same conditions
1.51 ohara 6216: --file=FILE[:TEMPLATE]
1.43 ohara 6217: instantiate the configuration file FILE
1.4 saito 6218:
1.14 noro 6219: Configuration files:
6220: $config_files
6221:
6222: Configuration commands:
6223: $config_commands
6224:
1.51 ohara 6225: Report bugs to the package provider."
1.37 ohara 6226:
1.14 noro 6227: _ACEOF
1.43 ohara 6228: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1.51 ohara 6229: ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
1.14 noro 6230: ac_cs_version="\\
6231: config.status
1.56 ohara 6232: configured by $0, generated by GNU Autoconf 2.69,
1.51 ohara 6233: with options \\"\$ac_cs_config\\"
1.14 noro 6234:
1.56 ohara 6235: Copyright (C) 2012 Free Software Foundation, Inc.
1.14 noro 6236: This config.status script is free software; the Free Software Foundation
6237: gives unlimited permission to copy, distribute and modify it."
1.37 ohara 6238:
6239: ac_pwd='$ac_pwd'
6240: srcdir='$srcdir'
6241: INSTALL='$INSTALL'
6242: MKDIR_P='$MKDIR_P'
1.43 ohara 6243: AWK='$AWK'
6244: test -n "\$AWK" || AWK=awk
1.14 noro 6245: _ACEOF
6246:
1.43 ohara 6247: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6248: # The default lists apply if the user does not specify any file.
1.14 noro 6249: ac_need_defaults=:
6250: while test $# != 0
6251: do
6252: case $1 in
1.51 ohara 6253: --*=?*)
1.37 ohara 6254: ac_option=`expr "X$1" : 'X\([^=]*\)='`
6255: ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
1.32 noro 6256: ac_shift=:
6257: ;;
1.51 ohara 6258: --*=)
6259: ac_option=`expr "X$1" : 'X\([^=]*\)='`
6260: ac_optarg=
6261: ac_shift=:
6262: ;;
1.37 ohara 6263: *)
1.32 noro 6264: ac_option=$1
6265: ac_optarg=$2
6266: ac_shift=shift
1.12 ohara 6267: ;;
1.14 noro 6268: esac
6269:
1.32 noro 6270: case $ac_option in
1.14 noro 6271: # Handling of the options.
1.17 ohara 6272: -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1.32 noro 6273: ac_cs_recheck=: ;;
1.37 ohara 6274: --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
1.43 ohara 6275: $as_echo "$ac_cs_version"; exit ;;
1.51 ohara 6276: --config | --confi | --conf | --con | --co | --c )
6277: $as_echo "$ac_cs_config"; exit ;;
1.37 ohara 6278: --debug | --debu | --deb | --de | --d | -d )
1.14 noro 6279: debug=: ;;
6280: --file | --fil | --fi | --f )
1.32 noro 6281: $ac_shift
1.43 ohara 6282: case $ac_optarg in
6283: *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
1.51 ohara 6284: '') as_fn_error $? "missing file argument" ;;
1.43 ohara 6285: esac
1.51 ohara 6286: as_fn_append CONFIG_FILES " '$ac_optarg'"
1.14 noro 6287: ac_need_defaults=false;;
1.37 ohara 6288: --he | --h | --help | --hel | -h )
1.43 ohara 6289: $as_echo "$ac_cs_usage"; exit ;;
1.32 noro 6290: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6291: | -silent | --silent | --silen | --sile | --sil | --si | --s)
6292: ac_cs_silent=: ;;
1.14 noro 6293:
6294: # This is an error.
1.51 ohara 6295: -*) as_fn_error $? "unrecognized option: \`$1'
6296: Try \`$0 --help' for more information." ;;
1.14 noro 6297:
1.51 ohara 6298: *) as_fn_append ac_config_targets " $1"
1.37 ohara 6299: ac_need_defaults=false ;;
1.14 noro 6300:
6301: esac
6302: shift
6303: done
6304:
1.32 noro 6305: ac_configure_extra_args=
6306:
6307: if $ac_cs_silent; then
6308: exec 6>/dev/null
6309: ac_configure_extra_args="$ac_configure_extra_args --silent"
6310: fi
6311:
6312: _ACEOF
1.43 ohara 6313: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1.32 noro 6314: if \$ac_cs_recheck; then
1.56 ohara 6315: set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
1.43 ohara 6316: shift
6317: \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
6318: CONFIG_SHELL='$SHELL'
1.37 ohara 6319: export CONFIG_SHELL
1.43 ohara 6320: exec "\$@"
1.32 noro 6321: fi
6322:
1.14 noro 6323: _ACEOF
1.43 ohara 6324: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1.37 ohara 6325: exec 5>>config.log
6326: {
6327: echo
6328: sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6329: ## Running $as_me. ##
6330: _ASBOX
1.43 ohara 6331: $as_echo "$ac_log"
1.37 ohara 6332: } >&5
1.14 noro 6333:
1.37 ohara 6334: _ACEOF
1.43 ohara 6335: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1.14 noro 6336: #
1.37 ohara 6337: # INIT-COMMANDS
1.14 noro 6338: #
1.37 ohara 6339: AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
1.14 noro 6340:
6341: _ACEOF
6342:
1.43 ohara 6343: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1.14 noro 6344:
1.37 ohara 6345: # Handling of arguments.
1.14 noro 6346: for ac_config_target in $ac_config_targets
6347: do
1.37 ohara 6348: case $ac_config_target in
6349: "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
6350: "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
6351: "engine/Makefile") CONFIG_FILES="$CONFIG_FILES engine/Makefile" ;;
6352: "asm/Makefile") CONFIG_FILES="$CONFIG_FILES asm/Makefile" ;;
6353: "builtin/Makefile") CONFIG_FILES="$CONFIG_FILES builtin/Makefile" ;;
6354: "fft/Makefile") CONFIG_FILES="$CONFIG_FILES fft/Makefile" ;;
6355: "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
6356: "io/Makefile") CONFIG_FILES="$CONFIG_FILES io/Makefile" ;;
6357: "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
6358: "parse/Makefile") CONFIG_FILES="$CONFIG_FILES parse/Makefile" ;;
6359: "plot/Makefile") CONFIG_FILES="$CONFIG_FILES plot/Makefile" ;;
6360:
1.56 ohara 6361: *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
1.14 noro 6362: esac
6363: done
6364:
1.37 ohara 6365:
1.14 noro 6366: # If the user did not use the arguments to specify the items to instantiate,
6367: # then the envvar interface is used. Set only those that are not.
6368: # We use the long form for the default assignment because of an extremely
6369: # bizarre bug on SunOS 4.1.3.
6370: if $ac_need_defaults; then
6371: test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6372: test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
6373: fi
6374:
1.32 noro 6375: # Have a temporary directory for convenience. Make it in the build tree
1.37 ohara 6376: # simply because there is no reason against having it here, and in addition,
1.32 noro 6377: # creating and moving files from /tmp can sometimes cause problems.
1.37 ohara 6378: # Hook for its removal unless debugging.
6379: # Note that there is a small window in which the directory will not be cleaned:
6380: # after its creation but before its name has been assigned to `$tmp'.
1.14 noro 6381: $debug ||
6382: {
1.56 ohara 6383: tmp= ac_tmp=
1.37 ohara 6384: trap 'exit_status=$?
1.56 ohara 6385: : "${ac_tmp:=$tmp}"
6386: { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
1.37 ohara 6387: ' 0
1.51 ohara 6388: trap 'as_fn_exit 1' 1 2 13 15
1.14 noro 6389: }
6390: # Create a (secure) tmp directory for tmp files.
1.32 noro 6391:
1.14 noro 6392: {
1.37 ohara 6393: tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
1.56 ohara 6394: test -d "$tmp"
1.14 noro 6395: } ||
6396: {
1.37 ohara 6397: tmp=./conf$$-$RANDOM
6398: (umask 077 && mkdir "$tmp")
1.51 ohara 6399: } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
1.56 ohara 6400: ac_tmp=$tmp
1.14 noro 6401:
1.43 ohara 6402: # Set up the scripts for CONFIG_FILES section.
6403: # No need to generate them if there are no CONFIG_FILES.
6404: # This happens for instance with `./config.status config.h'.
1.37 ohara 6405: if test -n "$CONFIG_FILES"; then
6406:
1.14 noro 6407:
1.51 ohara 6408: ac_cr=`echo X | tr X '\015'`
6409: # On cygwin, bash can eat \r inside `` if the user requested igncr.
6410: # But we know of no other shell where ac_cr would be empty at this
6411: # point, so we can use a bashism as a fallback.
6412: if test "x$ac_cr" = x; then
6413: eval ac_cr=\$\'\\r\'
6414: fi
1.43 ohara 6415: ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
6416: if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
6417: ac_cs_awk_cr='\\r'
6418: else
6419: ac_cs_awk_cr=$ac_cr
1.37 ohara 6420: fi
6421:
1.56 ohara 6422: echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
1.37 ohara 6423: _ACEOF
6424:
1.14 noro 6425:
1.43 ohara 6426: {
6427: echo "cat >conf$$subs.awk <<_ACEOF" &&
6428: echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
6429: echo "_ACEOF"
6430: } >conf$$subs.sh ||
1.51 ohara 6431: as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6432: ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
1.37 ohara 6433: ac_delim='%!_!# '
6434: for ac_last_try in false false false false false :; do
1.43 ohara 6435: . ./conf$$subs.sh ||
1.51 ohara 6436: as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
1.14 noro 6437:
1.51 ohara 6438: ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
6439: if test $ac_delim_n = $ac_delim_num; then
1.37 ohara 6440: break
6441: elif $ac_last_try; then
1.51 ohara 6442: as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
1.37 ohara 6443: else
6444: ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
1.14 noro 6445: fi
1.37 ohara 6446: done
1.43 ohara 6447: rm -f conf$$subs.sh
1.37 ohara 6448:
1.43 ohara 6449: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1.56 ohara 6450: cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
1.43 ohara 6451: _ACEOF
6452: sed -n '
6453: h
6454: s/^/S["/; s/!.*/"]=/
6455: p
6456: g
6457: s/^[^!]*!//
6458: :repl
6459: t repl
6460: s/'"$ac_delim"'$//
6461: t delim
6462: :nl
6463: h
1.51 ohara 6464: s/\(.\{148\}\)..*/\1/
1.43 ohara 6465: t more1
6466: s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
6467: p
6468: n
6469: b repl
6470: :more1
6471: s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6472: p
6473: g
6474: s/.\{148\}//
6475: t nl
6476: :delim
6477: h
1.51 ohara 6478: s/\(.\{148\}\)..*/\1/
1.43 ohara 6479: t more2
6480: s/["\\]/\\&/g; s/^/"/; s/$/"/
6481: p
6482: b
6483: :more2
6484: s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6485: p
6486: g
6487: s/.\{148\}//
6488: t delim
6489: ' <conf$$subs.awk | sed '
6490: /^[^""]/{
6491: N
6492: s/\n//
6493: }
6494: ' >>$CONFIG_STATUS || ac_write_fail=1
6495: rm -f conf$$subs.awk
6496: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6497: _ACAWK
1.56 ohara 6498: cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
1.43 ohara 6499: for (key in S) S_is_set[key] = 1
6500: FS = ""
6501:
6502: }
6503: {
6504: line = $ 0
6505: nfields = split(line, field, "@")
6506: substed = 0
6507: len = length(field[1])
6508: for (i = 2; i < nfields; i++) {
6509: key = field[i]
6510: keylen = length(key)
6511: if (S_is_set[key]) {
6512: value = S[key]
6513: line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
6514: len += length(value) + length(field[++i])
6515: substed = 1
6516: } else
6517: len += 1 + keylen
6518: }
6519:
6520: print line
6521: }
6522:
6523: _ACAWK
6524: _ACEOF
6525: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6526: if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
6527: sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
6528: else
6529: cat
1.56 ohara 6530: fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
1.51 ohara 6531: || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
1.14 noro 6532: _ACEOF
1.37 ohara 6533:
1.51 ohara 6534: # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
6535: # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
1.37 ohara 6536: # trailing colons and then remove the whole line if VPATH becomes empty
6537: # (actually we leave an empty line to preserve line numbers).
6538: if test "x$srcdir" = x.; then
1.51 ohara 6539: ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
6540: h
6541: s///
6542: s/^/:/
6543: s/[ ]*$/:/
6544: s/:\$(srcdir):/:/g
6545: s/:\${srcdir}:/:/g
6546: s/:@srcdir@:/:/g
6547: s/^:*//
1.37 ohara 6548: s/:*$//
1.51 ohara 6549: x
6550: s/\(=[ ]*\).*/\1/
6551: G
6552: s/\n//
1.37 ohara 6553: s/^[^=]*=[ ]*$//
6554: }'
6555: fi
6556:
1.43 ohara 6557: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1.37 ohara 6558: fi # test -n "$CONFIG_FILES"
6559:
6560:
1.43 ohara 6561: eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
6562: shift
6563: for ac_tag
1.37 ohara 6564: do
6565: case $ac_tag in
6566: :[FHLC]) ac_mode=$ac_tag; continue;;
6567: esac
6568: case $ac_mode$ac_tag in
6569: :[FHL]*:*);;
1.56 ohara 6570: :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
1.37 ohara 6571: :[FH]-) ac_tag=-:-;;
6572: :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
6573: esac
6574: ac_save_IFS=$IFS
6575: IFS=:
6576: set x $ac_tag
6577: IFS=$ac_save_IFS
6578: shift
6579: ac_file=$1
6580: shift
6581:
6582: case $ac_mode in
6583: :L) ac_source=$1;;
6584: :[FH])
6585: ac_file_inputs=
6586: for ac_f
6587: do
6588: case $ac_f in
1.56 ohara 6589: -) ac_f="$ac_tmp/stdin";;
1.37 ohara 6590: *) # Look for the file first in the build tree, then in the source tree
6591: # (if the path is not absolute). The absolute path cannot be DOS-style,
6592: # because $ac_f cannot contain `:'.
6593: test -f "$ac_f" ||
6594: case $ac_f in
6595: [\\/$]*) false;;
6596: *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
6597: esac ||
1.56 ohara 6598: as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
1.37 ohara 6599: esac
1.43 ohara 6600: case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
1.51 ohara 6601: as_fn_append ac_file_inputs " '$ac_f'"
1.37 ohara 6602: done
6603:
6604: # Let's still pretend it is `configure' which instantiates (i.e., don't
6605: # use $as_me), people would be surprised to read:
6606: # /* config.h. Generated by config.status. */
1.43 ohara 6607: configure_input='Generated from '`
6608: $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
6609: `' by configure.'
1.37 ohara 6610: if test x"$ac_file" != x-; then
6611: configure_input="$ac_file. $configure_input"
1.51 ohara 6612: { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
1.43 ohara 6613: $as_echo "$as_me: creating $ac_file" >&6;}
1.37 ohara 6614: fi
1.43 ohara 6615: # Neutralize special characters interpreted by sed in replacement strings.
6616: case $configure_input in #(
6617: *\&* | *\|* | *\\* )
6618: ac_sed_conf_input=`$as_echo "$configure_input" |
6619: sed 's/[\\\\&|]/\\\\&/g'`;; #(
6620: *) ac_sed_conf_input=$configure_input;;
6621: esac
1.37 ohara 6622:
6623: case $ac_tag in
1.56 ohara 6624: *:-:* | *:-) cat >"$ac_tmp/stdin" \
6625: || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
1.37 ohara 6626: esac
6627: ;;
1.14 noro 6628: esac
6629:
1.37 ohara 6630: ac_dir=`$as_dirname -- "$ac_file" ||
1.14 noro 6631: $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1.32 noro 6632: X"$ac_file" : 'X\(//\)[^/]' \| \
6633: X"$ac_file" : 'X\(//\)$' \| \
1.37 ohara 6634: X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
1.43 ohara 6635: $as_echo X"$ac_file" |
1.37 ohara 6636: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6637: s//\1/
6638: q
6639: }
6640: /^X\(\/\/\)[^/].*/{
6641: s//\1/
6642: q
6643: }
6644: /^X\(\/\/\)$/{
6645: s//\1/
6646: q
6647: }
6648: /^X\(\/\).*/{
6649: s//\1/
6650: q
6651: }
6652: s/.*/./; q'`
1.51 ohara 6653: as_dir="$ac_dir"; as_fn_mkdir_p
1.14 noro 6654: ac_builddir=.
6655:
1.37 ohara 6656: case "$ac_dir" in
6657: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
6658: *)
1.43 ohara 6659: ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1.37 ohara 6660: # A ".." for each directory in $ac_dir_suffix.
1.43 ohara 6661: ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1.37 ohara 6662: case $ac_top_builddir_sub in
6663: "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
6664: *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
6665: esac ;;
6666: esac
6667: ac_abs_top_builddir=$ac_pwd
6668: ac_abs_builddir=$ac_pwd$ac_dir_suffix
6669: # for backward compatibility:
6670: ac_top_builddir=$ac_top_build_prefix
1.14 noro 6671:
6672: case $srcdir in
1.37 ohara 6673: .) # We are building in place.
1.14 noro 6674: ac_srcdir=.
1.37 ohara 6675: ac_top_srcdir=$ac_top_builddir_sub
6676: ac_abs_top_srcdir=$ac_pwd ;;
6677: [\\/]* | ?:[\\/]* ) # Absolute name.
1.14 noro 6678: ac_srcdir=$srcdir$ac_dir_suffix;
1.37 ohara 6679: ac_top_srcdir=$srcdir
6680: ac_abs_top_srcdir=$srcdir ;;
6681: *) # Relative name.
6682: ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
6683: ac_top_srcdir=$ac_top_build_prefix$srcdir
6684: ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1.14 noro 6685: esac
1.37 ohara 6686: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1.32 noro 6687:
1.14 noro 6688:
1.37 ohara 6689: case $ac_mode in
6690: :F)
6691: #
6692: # CONFIG_FILE
6693: #
1.14 noro 6694:
6695: case $INSTALL in
6696: [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
1.37 ohara 6697: *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
1.14 noro 6698: esac
1.37 ohara 6699: ac_MKDIR_P=$MKDIR_P
6700: case $MKDIR_P in
6701: [\\/$]* | ?:[\\/]* ) ;;
6702: */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
6703: esac
6704: _ACEOF
1.14 noro 6705:
1.43 ohara 6706: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1.37 ohara 6707: # If the template does not know about datarootdir, expand it.
6708: # FIXME: This hack should be removed a few years after 2.60.
6709: ac_datarootdir_hack=; ac_datarootdir_seen=
1.43 ohara 6710: ac_sed_dataroot='
6711: /datarootdir/ {
1.37 ohara 6712: p
6713: q
6714: }
6715: /@datadir@/p
6716: /@docdir@/p
6717: /@infodir@/p
6718: /@localedir@/p
1.51 ohara 6719: /@mandir@/p'
1.43 ohara 6720: case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
1.37 ohara 6721: *datarootdir*) ac_datarootdir_seen=yes;;
6722: *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
1.51 ohara 6723: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
1.43 ohara 6724: $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
1.37 ohara 6725: _ACEOF
1.43 ohara 6726: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1.37 ohara 6727: ac_datarootdir_hack='
6728: s&@datadir@&$datadir&g
6729: s&@docdir@&$docdir&g
6730: s&@infodir@&$infodir&g
6731: s&@localedir@&$localedir&g
6732: s&@mandir@&$mandir&g
1.51 ohara 6733: s&\\\${datarootdir}&$datarootdir&g' ;;
1.37 ohara 6734: esac
6735: _ACEOF
1.14 noro 6736:
1.37 ohara 6737: # Neutralize VPATH when `$srcdir' = `.'.
6738: # Shell code in configure.ac might set extrasub.
6739: # FIXME: do we really want to maintain this feature?
1.43 ohara 6740: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6741: ac_sed_extra="$ac_vpsub
1.14 noro 6742: $extrasub
6743: _ACEOF
1.43 ohara 6744: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1.14 noro 6745: :t
6746: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
1.43 ohara 6747: s|@configure_input@|$ac_sed_conf_input|;t t
1.37 ohara 6748: s&@top_builddir@&$ac_top_builddir_sub&;t t
1.43 ohara 6749: s&@top_build_prefix@&$ac_top_build_prefix&;t t
1.37 ohara 6750: s&@srcdir@&$ac_srcdir&;t t
6751: s&@abs_srcdir@&$ac_abs_srcdir&;t t
6752: s&@top_srcdir@&$ac_top_srcdir&;t t
6753: s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
6754: s&@builddir@&$ac_builddir&;t t
6755: s&@abs_builddir@&$ac_abs_builddir&;t t
6756: s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
6757: s&@INSTALL@&$ac_INSTALL&;t t
6758: s&@MKDIR_P@&$ac_MKDIR_P&;t t
6759: $ac_datarootdir_hack
1.43 ohara 6760: "
1.56 ohara 6761: eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
6762: >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
1.37 ohara 6763:
6764: test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
1.56 ohara 6765: { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
6766: { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
6767: "$ac_tmp/out"`; test -z "$ac_out"; } &&
1.51 ohara 6768: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6769: which seems to be undefined. Please make sure it is defined" >&5
1.43 ohara 6770: $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
1.51 ohara 6771: which seems to be undefined. Please make sure it is defined" >&2;}
1.37 ohara 6772:
1.56 ohara 6773: rm -f "$ac_tmp/stdin"
1.37 ohara 6774: case $ac_file in
1.56 ohara 6775: -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
6776: *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
1.43 ohara 6777: esac \
1.51 ohara 6778: || as_fn_error $? "could not create $ac_file" "$LINENO" 5
1.37 ohara 6779: ;;
6780:
6781:
1.51 ohara 6782: :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
1.43 ohara 6783: $as_echo "$as_me: executing $ac_file commands" >&6;}
1.37 ohara 6784: ;;
6785: esac
1.14 noro 6786:
6787:
1.37 ohara 6788: case $ac_file$ac_mode in
1.51 ohara 6789: "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
6790: # Autoconf 2.62 quotes --file arguments for eval, but not when files
6791: # are listed without --file. Let's play safe and only enable the eval
6792: # if we detect the quoting.
6793: case $CONFIG_FILES in
6794: *\'*) eval set x "$CONFIG_FILES" ;;
6795: *) set x $CONFIG_FILES ;;
6796: esac
6797: shift
6798: for mf
6799: do
6800: # Strip MF so we end up with the name of the file.
6801: mf=`echo "$mf" | sed -e 's/:.*$//'`
6802: # Check whether this is an Automake generated Makefile or not.
1.57 noro 6803: # We used to match only the files named `Makefile.in', but
1.51 ohara 6804: # some people rename them; so instead we look at the file content.
6805: # Grep'ing the first line is not enough: some people post-process
6806: # each Makefile.in and add a new line on top of each file to say so.
6807: # Grep'ing the whole file is not good either: AIX grep has a line
6808: # limit of 2048, but all sed's we know have understand at least 4000.
6809: if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
6810: dirpart=`$as_dirname -- "$mf" ||
1.37 ohara 6811: $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6812: X"$mf" : 'X\(//\)[^/]' \| \
6813: X"$mf" : 'X\(//\)$' \| \
6814: X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
1.43 ohara 6815: $as_echo X"$mf" |
1.37 ohara 6816: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6817: s//\1/
6818: q
6819: }
6820: /^X\(\/\/\)[^/].*/{
6821: s//\1/
6822: q
6823: }
6824: /^X\(\/\/\)$/{
6825: s//\1/
6826: q
6827: }
6828: /^X\(\/\).*/{
6829: s//\1/
6830: q
6831: }
6832: s/.*/./; q'`
1.51 ohara 6833: else
6834: continue
6835: fi
6836: # Extract the definition of DEPDIR, am__include, and am__quote
1.57 noro 6837: # from the Makefile without running `make'.
1.51 ohara 6838: DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
6839: test -z "$DEPDIR" && continue
6840: am__include=`sed -n 's/^am__include = //p' < "$mf"`
6841: test -z "am__include" && continue
6842: am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
1.57 noro 6843: # When using ansi2knr, U may be empty or an underscore; expand it
6844: U=`sed -n 's/^U = //p' < "$mf"`
1.51 ohara 6845: # Find all dependency output files, they are included files with
6846: # $(DEPDIR) in their names. We invoke sed twice because it is the
6847: # simplest approach to changing $(DEPDIR) to its actual value in the
6848: # expansion.
6849: for file in `sed -n "
6850: s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
1.57 noro 6851: sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
1.51 ohara 6852: # Make sure the directory exists.
6853: test -f "$dirpart/$file" && continue
6854: fdir=`$as_dirname -- "$file" ||
1.37 ohara 6855: $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6856: X"$file" : 'X\(//\)[^/]' \| \
6857: X"$file" : 'X\(//\)$' \| \
6858: X"$file" : 'X\(/\)' \| . 2>/dev/null ||
1.43 ohara 6859: $as_echo X"$file" |
1.37 ohara 6860: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6861: s//\1/
6862: q
6863: }
6864: /^X\(\/\/\)[^/].*/{
6865: s//\1/
6866: q
6867: }
6868: /^X\(\/\/\)$/{
6869: s//\1/
6870: q
6871: }
6872: /^X\(\/\).*/{
6873: s//\1/
6874: q
6875: }
6876: s/.*/./; q'`
1.51 ohara 6877: as_dir=$dirpart/$fdir; as_fn_mkdir_p
6878: # echo "creating $dirpart/$file"
6879: echo '# dummy' > "$dirpart/$file"
1.32 noro 6880: done
1.14 noro 6881: done
1.51 ohara 6882: }
1.14 noro 6883: ;;
1.37 ohara 6884:
1.14 noro 6885: esac
1.37 ohara 6886: done # for ac_tag
1.14 noro 6887:
6888:
1.51 ohara 6889: as_fn_exit 0
1.14 noro 6890: _ACEOF
6891: ac_clean_files=$ac_clean_files_save
6892:
1.43 ohara 6893: test $ac_write_fail = 0 ||
1.51 ohara 6894: as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
1.43 ohara 6895:
1.14 noro 6896:
6897: # configure is writing to config.log, and then calls config.status.
6898: # config.status does its own redirection, appending to config.log.
6899: # Unfortunately, on DOS this fails, as config.log is still kept open
6900: # by configure, so config.status won't be able to write to it; its
6901: # output is simply discarded. So we exec the FD to /dev/null,
6902: # effectively closing config.log, so it can be properly (re)opened and
6903: # appended to by config.status. When coming back to configure, we
6904: # need to make the FD available again.
6905: if test "$no_create" != yes; then
6906: ac_cs_success=:
1.32 noro 6907: ac_config_status_args=
6908: test "$silent" = yes &&
6909: ac_config_status_args="$ac_config_status_args --quiet"
1.14 noro 6910: exec 5>/dev/null
1.32 noro 6911: $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
1.14 noro 6912: exec 5>>config.log
6913: # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6914: # would make configure fail if this is the last instruction.
1.51 ohara 6915: $ac_cs_success || as_fn_exit 1
1.14 noro 6916: fi
1.43 ohara 6917: if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
1.51 ohara 6918: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
6919: $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
1.43 ohara 6920: fi
1.14 noro 6921:
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>