Annotation of OpenXM_contrib2/asir2018/configure, Revision 1.7
1.1 noro 1: #! /bin/sh
2: # Guess values for system-dependent variables and create Makefiles.
1.7 ! ohara 3: # Generated by GNU Autoconf 2.71 for asir 1.16.
1.1 noro 4: #
5: #
1.7 ! ohara 6: # Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
! 7: # Inc.
1.1 noro 8: #
9: #
10: # This configure script is free software; the Free Software Foundation
11: # gives unlimited permission to copy, distribute and modify it.
12: ## -------------------- ##
13: ## M4sh Initialization. ##
14: ## -------------------- ##
15:
16: # Be more Bourne compatible
17: DUALCASE=1; export DUALCASE # for MKS sh
1.7 ! ohara 18: as_nop=:
! 19: if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
! 20: then :
1.1 noro 21: emulate sh
22: NULLCMD=:
23: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
24: # is contrary to our usage. Disable this feature.
25: alias -g '${1+"$@"}'='"$@"'
26: setopt NO_GLOB_SUBST
1.7 ! ohara 27: else $as_nop
1.1 noro 28: case `(set -o) 2>/dev/null` in #(
29: *posix*) :
30: set -o posix ;; #(
31: *) :
32: ;;
33: esac
34: fi
35:
36:
1.7 ! ohara 37:
! 38: # Reset variables that may have inherited troublesome values from
! 39: # the environment.
! 40:
! 41: # IFS needs to be set, to space, tab, and newline, in precisely that order.
! 42: # (If _AS_PATH_WALK were called with IFS unset, it would have the
! 43: # side effect of setting IFS to empty, thus disabling word splitting.)
! 44: # Quoting is to prevent editors from complaining about space-tab.
1.1 noro 45: as_nl='
46: '
47: export as_nl
1.7 ! ohara 48: IFS=" "" $as_nl"
! 49:
! 50: PS1='$ '
! 51: PS2='> '
! 52: PS4='+ '
! 53:
! 54: # Ensure predictable behavior from utilities with locale-dependent output.
! 55: LC_ALL=C
! 56: export LC_ALL
! 57: LANGUAGE=C
! 58: export LANGUAGE
! 59:
! 60: # We cannot yet rely on "unset" to work, but we need these variables
! 61: # to be unset--not just set to an empty or harmless value--now, to
! 62: # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
! 63: # also avoids known problems related to "unset" and subshell syntax
! 64: # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
! 65: for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
! 66: do eval test \${$as_var+y} \
! 67: && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
! 68: done
! 69:
! 70: # Ensure that fds 0, 1, and 2 are open.
! 71: if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
! 72: if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
! 73: if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
1.1 noro 74:
75: # The user is always right.
1.7 ! ohara 76: if ${PATH_SEPARATOR+false} :; then
1.1 noro 77: PATH_SEPARATOR=:
78: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
79: (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
80: PATH_SEPARATOR=';'
81: }
82: fi
83:
84:
85: # Find who we are. Look in the path if we contain no directory separator.
86: as_myself=
87: case $0 in #((
88: *[\\/]* ) as_myself=$0 ;;
89: *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
90: for as_dir in $PATH
91: do
92: IFS=$as_save_IFS
1.7 ! ohara 93: case $as_dir in #(((
! 94: '') as_dir=./ ;;
! 95: */) ;;
! 96: *) as_dir=$as_dir/ ;;
! 97: esac
! 98: test -r "$as_dir$0" && as_myself=$as_dir$0 && break
1.1 noro 99: done
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.7 ! ohara 110: printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
1.1 noro 111: exit 1
112: fi
113:
114:
115: # Use a proper internal environment variable to ensure we don't fall
116: # into an infinite loop, continuously re-executing ourselves.
117: if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
118: _as_can_reexec=no; export _as_can_reexec;
119: # We cannot yet assume a decent shell, so we have to provide a
120: # neutralization value for shells without unset; and this also
121: # works around shells that cannot unset nonexistent variables.
122: # Preserve -v and -x to the replacement shell.
123: BASH_ENV=/dev/null
124: ENV=/dev/null
125: (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
126: case $- in # ((((
127: *v*x* | *x*v* ) as_opts=-vx ;;
128: *v* ) as_opts=-v ;;
129: *x* ) as_opts=-x ;;
130: * ) as_opts= ;;
131: esac
132: exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
133: # Admittedly, this is quite paranoid, since all the known shells bail
134: # out after a failed `exec'.
1.7 ! ohara 135: printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
! 136: exit 255
1.1 noro 137: fi
138: # We don't want this to propagate to other subprocesses.
139: { _as_can_reexec=; unset _as_can_reexec;}
140: if test "x$CONFIG_SHELL" = x; then
1.7 ! ohara 141: as_bourne_compatible="as_nop=:
! 142: if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
! 143: then :
1.1 noro 144: emulate sh
145: NULLCMD=:
146: # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
147: # is contrary to our usage. Disable this feature.
148: alias -g '\${1+\"\$@\"}'='\"\$@\"'
149: setopt NO_GLOB_SUBST
1.7 ! ohara 150: else \$as_nop
1.1 noro 151: case \`(set -o) 2>/dev/null\` in #(
152: *posix*) :
153: set -o posix ;; #(
154: *) :
155: ;;
156: esac
157: fi
158: "
159: as_required="as_fn_return () { (exit \$1); }
160: as_fn_success () { as_fn_return 0; }
161: as_fn_failure () { as_fn_return 1; }
162: as_fn_ret_success () { return 0; }
163: as_fn_ret_failure () { return 1; }
164:
165: exitcode=0
166: as_fn_success || { exitcode=1; echo as_fn_success failed.; }
167: as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
168: as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
169: as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
1.7 ! ohara 170: if ( set x; as_fn_ret_success y && test x = \"\$1\" )
! 171: then :
1.1 noro 172:
1.7 ! ohara 173: else \$as_nop
1.1 noro 174: exitcode=1; echo positional parameters were not saved.
175: fi
176: test x\$exitcode = x0 || exit 1
1.7 ! ohara 177: blah=\$(echo \$(echo blah))
! 178: test x\"\$blah\" = xblah || exit 1
1.1 noro 179: test -x / || exit 1"
180: as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
181: as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
182: eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
183: test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
1.5 ohara 184:
185: test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
186: ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
187: ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
188: ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
189: PATH=/empty FPATH=/empty; export PATH FPATH
190: test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
191: || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
1.1 noro 192: test \$(( 1 + 1 )) = 2 || exit 1"
1.7 ! ohara 193: if (eval "$as_required") 2>/dev/null
! 194: then :
1.1 noro 195: as_have_required=yes
1.7 ! ohara 196: else $as_nop
1.1 noro 197: as_have_required=no
198: fi
1.7 ! ohara 199: if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
! 200: then :
1.1 noro 201:
1.7 ! ohara 202: else $as_nop
1.1 noro 203: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
204: as_found=false
205: for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
206: do
207: IFS=$as_save_IFS
1.7 ! ohara 208: case $as_dir in #(((
! 209: '') as_dir=./ ;;
! 210: */) ;;
! 211: *) as_dir=$as_dir/ ;;
! 212: esac
1.1 noro 213: as_found=:
214: case $as_dir in #(
215: /*)
216: for as_base in sh bash ksh sh5; do
217: # Try only shells that exist, to save several forks.
1.7 ! ohara 218: as_shell=$as_dir$as_base
1.1 noro 219: if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
1.7 ! ohara 220: as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
! 221: then :
1.1 noro 222: CONFIG_SHELL=$as_shell as_have_required=yes
1.7 ! ohara 223: if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
! 224: then :
1.1 noro 225: break 2
226: fi
227: fi
228: done;;
229: esac
230: as_found=false
231: done
1.7 ! ohara 232: IFS=$as_save_IFS
! 233: if $as_found
! 234: then :
! 235:
! 236: else $as_nop
! 237: if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
! 238: as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
! 239: then :
1.1 noro 240: CONFIG_SHELL=$SHELL as_have_required=yes
1.7 ! ohara 241: fi
! 242: fi
1.1 noro 243:
244:
1.7 ! ohara 245: if test "x$CONFIG_SHELL" != x
! 246: then :
1.1 noro 247: export CONFIG_SHELL
248: # We cannot yet assume a decent shell, so we have to provide a
249: # neutralization value for shells without unset; and this also
250: # works around shells that cannot unset nonexistent variables.
251: # Preserve -v and -x to the replacement shell.
252: BASH_ENV=/dev/null
253: ENV=/dev/null
254: (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
255: case $- in # ((((
256: *v*x* | *x*v* ) as_opts=-vx ;;
257: *v* ) as_opts=-v ;;
258: *x* ) as_opts=-x ;;
259: * ) as_opts= ;;
260: esac
261: exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262: # Admittedly, this is quite paranoid, since all the known shells bail
263: # out after a failed `exec'.
1.7 ! ohara 264: printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
1.1 noro 265: exit 255
266: fi
267:
1.7 ! ohara 268: if test x$as_have_required = xno
! 269: then :
! 270: printf "%s\n" "$0: This script requires a shell more modern than all"
! 271: printf "%s\n" "$0: the shells that I found on your system."
! 272: if test ${ZSH_VERSION+y} ; then
! 273: printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
! 274: printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
1.1 noro 275: else
1.7 ! ohara 276: printf "%s\n" "$0: Please tell bug-autoconf@gnu.org about your system,
1.1 noro 277: $0: including any error possibly output before this
278: $0: message. Then install a modern shell, or manually run
279: $0: the script under such a shell if you do have one."
280: fi
281: exit 1
282: fi
283: fi
284: fi
285: SHELL=${CONFIG_SHELL-/bin/sh}
286: export SHELL
287: # Unset more variables known to interfere with behavior of common tools.
288: CLICOLOR_FORCE= GREP_OPTIONS=
289: unset CLICOLOR_FORCE GREP_OPTIONS
290:
291: ## --------------------- ##
292: ## M4sh Shell Functions. ##
293: ## --------------------- ##
294: # as_fn_unset VAR
295: # ---------------
296: # Portably unset VAR.
297: as_fn_unset ()
298: {
299: { eval $1=; unset $1;}
300: }
301: as_unset=as_fn_unset
302:
1.7 ! ohara 303:
1.1 noro 304: # as_fn_set_status STATUS
305: # -----------------------
306: # Set $? to STATUS, without forking.
307: as_fn_set_status ()
308: {
309: return $1
310: } # as_fn_set_status
311:
312: # as_fn_exit STATUS
313: # -----------------
314: # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
315: as_fn_exit ()
316: {
317: set +e
318: as_fn_set_status $1
319: exit $1
320: } # as_fn_exit
1.7 ! ohara 321: # as_fn_nop
! 322: # ---------
! 323: # Do nothing but, unlike ":", preserve the value of $?.
! 324: as_fn_nop ()
! 325: {
! 326: return $?
! 327: }
! 328: as_nop=as_fn_nop
1.1 noro 329:
330: # as_fn_mkdir_p
331: # -------------
332: # Create "$as_dir" as a directory, including parents if necessary.
333: as_fn_mkdir_p ()
334: {
335:
336: case $as_dir in #(
337: -*) as_dir=./$as_dir;;
338: esac
339: test -d "$as_dir" || eval $as_mkdir_p || {
340: as_dirs=
341: while :; do
342: case $as_dir in #(
1.7 ! ohara 343: *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
1.1 noro 344: *) as_qdir=$as_dir;;
345: esac
346: as_dirs="'$as_qdir' $as_dirs"
347: as_dir=`$as_dirname -- "$as_dir" ||
348: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
349: X"$as_dir" : 'X\(//\)[^/]' \| \
350: X"$as_dir" : 'X\(//\)$' \| \
351: X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
1.7 ! ohara 352: printf "%s\n" X"$as_dir" |
1.1 noro 353: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
354: s//\1/
355: q
356: }
357: /^X\(\/\/\)[^/].*/{
358: s//\1/
359: q
360: }
361: /^X\(\/\/\)$/{
362: s//\1/
363: q
364: }
365: /^X\(\/\).*/{
366: s//\1/
367: q
368: }
369: s/.*/./; q'`
370: test -d "$as_dir" && break
371: done
372: test -z "$as_dirs" || eval "mkdir $as_dirs"
373: } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
374:
375:
376: } # as_fn_mkdir_p
377:
378: # as_fn_executable_p FILE
379: # -----------------------
380: # Test if FILE is an executable regular file.
381: as_fn_executable_p ()
382: {
383: test -f "$1" && test -x "$1"
384: } # as_fn_executable_p
385: # as_fn_append VAR VALUE
386: # ----------------------
387: # Append the text in VALUE to the end of the definition contained in VAR. Take
388: # advantage of any shell optimizations that allow amortized linear growth over
389: # repeated appends, instead of the typical quadratic growth present in naive
390: # implementations.
1.7 ! ohara 391: if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
! 392: then :
1.1 noro 393: eval 'as_fn_append ()
394: {
395: eval $1+=\$2
396: }'
1.7 ! ohara 397: else $as_nop
1.1 noro 398: as_fn_append ()
399: {
400: eval $1=\$$1\$2
401: }
402: fi # as_fn_append
403:
404: # as_fn_arith ARG...
405: # ------------------
406: # Perform arithmetic evaluation on the ARGs, and store the result in the
407: # global $as_val. Take advantage of shells that can avoid forks. The arguments
408: # must be portable across $(()) and expr.
1.7 ! ohara 409: if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
! 410: then :
1.1 noro 411: eval 'as_fn_arith ()
412: {
413: as_val=$(( $* ))
414: }'
1.7 ! ohara 415: else $as_nop
1.1 noro 416: as_fn_arith ()
417: {
418: as_val=`expr "$@" || test $? -eq 1`
419: }
420: fi # as_fn_arith
421:
1.7 ! ohara 422: # as_fn_nop
! 423: # ---------
! 424: # Do nothing but, unlike ":", preserve the value of $?.
! 425: as_fn_nop ()
! 426: {
! 427: return $?
! 428: }
! 429: as_nop=as_fn_nop
1.1 noro 430:
431: # as_fn_error STATUS ERROR [LINENO LOG_FD]
432: # ----------------------------------------
433: # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
434: # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
435: # script with STATUS, using 1 if that was 0.
436: as_fn_error ()
437: {
438: as_status=$1; test $as_status -eq 0 && as_status=1
439: if test "$4"; then
440: as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1.7 ! ohara 441: printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
1.1 noro 442: fi
1.7 ! ohara 443: printf "%s\n" "$as_me: error: $2" >&2
1.1 noro 444: as_fn_exit $as_status
445: } # as_fn_error
446:
447: if expr a : '\(a\)' >/dev/null 2>&1 &&
448: test "X`expr 00001 : '.*\(...\)'`" = X001; then
449: as_expr=expr
450: else
451: as_expr=false
452: fi
453:
454: if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
455: as_basename=basename
456: else
457: as_basename=false
458: fi
459:
460: if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
461: as_dirname=dirname
462: else
463: as_dirname=false
464: fi
465:
466: as_me=`$as_basename -- "$0" ||
467: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
468: X"$0" : 'X\(//\)$' \| \
469: X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1.7 ! ohara 470: printf "%s\n" X/"$0" |
1.1 noro 471: sed '/^.*\/\([^/][^/]*\)\/*$/{
472: s//\1/
473: q
474: }
475: /^X\/\(\/\/\)$/{
476: s//\1/
477: q
478: }
479: /^X\/\(\/\).*/{
480: s//\1/
481: q
482: }
483: s/.*/./; q'`
484:
485: # Avoid depending upon Character Ranges.
486: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
487: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
488: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
489: as_cr_digits='0123456789'
490: as_cr_alnum=$as_cr_Letters$as_cr_digits
491:
492:
493: as_lineno_1=$LINENO as_lineno_1a=$LINENO
494: as_lineno_2=$LINENO as_lineno_2a=$LINENO
495: eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
496: test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
497: # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
498: sed -n '
499: p
500: /[$]LINENO/=
501: ' <$as_myself |
502: sed '
503: s/[$]LINENO.*/&-/
504: t lineno
505: b
506: :lineno
507: N
508: :loop
509: s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
510: t loop
511: s/-\n.*//
512: ' >$as_me.lineno &&
513: chmod +x "$as_me.lineno" ||
1.7 ! ohara 514: { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
1.1 noro 515:
516: # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
517: # already done that, so ensure we don't try to do so again and fall
518: # in an infinite loop. This has already happened in practice.
519: _as_can_reexec=no; export _as_can_reexec
520: # Don't try to exec as it changes $[0], causing all sort of problems
521: # (the dirname of $[0] is not the place where we might find the
522: # original and so on. Autoconf is especially sensitive to this).
523: . "./$as_me.lineno"
524: # Exit status is that of the last command.
525: exit
526: }
527:
1.7 ! ohara 528:
! 529: # Determine whether it's possible to make 'echo' print without a newline.
! 530: # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
! 531: # for compatibility with existing Makefiles.
1.1 noro 532: ECHO_C= ECHO_N= ECHO_T=
533: case `echo -n x` in #(((((
534: -n*)
535: case `echo 'xy\c'` in
536: *c*) ECHO_T=' ';; # ECHO_T is single tab character.
537: xy) ECHO_C='\c';;
538: *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
539: ECHO_T=' ';;
540: esac;;
541: *)
542: ECHO_N='-n';;
543: esac
544:
1.7 ! ohara 545: # For backward compatibility with old third-party macros, we provide
! 546: # the shell variables $as_echo and $as_echo_n. New code should use
! 547: # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
! 548: as_echo='printf %s\n'
! 549: as_echo_n='printf %s'
! 550:
! 551:
1.1 noro 552: rm -f conf$$ conf$$.exe conf$$.file
553: if test -d conf$$.dir; then
554: rm -f conf$$.dir/conf$$.file
555: else
556: rm -f conf$$.dir
557: mkdir conf$$.dir 2>/dev/null
558: fi
559: if (echo >conf$$.file) 2>/dev/null; then
560: if ln -s conf$$.file conf$$ 2>/dev/null; then
561: as_ln_s='ln -s'
562: # ... but there are two gotchas:
563: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
564: # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
565: # In both cases, we have to default to `cp -pR'.
566: ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
567: as_ln_s='cp -pR'
568: elif ln conf$$.file conf$$ 2>/dev/null; then
569: as_ln_s=ln
570: else
571: as_ln_s='cp -pR'
572: fi
573: else
574: as_ln_s='cp -pR'
575: fi
576: rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
577: rmdir conf$$.dir 2>/dev/null
578:
579: if mkdir -p . 2>/dev/null; then
580: as_mkdir_p='mkdir -p "$as_dir"'
581: else
582: test -d ./-p && rmdir ./-p
583: as_mkdir_p=false
584: fi
585:
586: as_test_x='test -x'
587: as_executable_p=as_fn_executable_p
588:
589: # Sed expression to map a string onto a valid CPP name.
590: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
591:
592: # Sed expression to map a string onto a valid variable name.
593: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
594:
1.5 ohara 595: SHELL=${CONFIG_SHELL-/bin/sh}
596:
1.1 noro 597:
598: test -n "$DJDIR" || exec 7<&0 </dev/null
599: exec 6>&1
600:
601: # Name of the host.
602: # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
603: # so uname gets run too.
604: ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
605:
606: #
607: # Initializations.
608: #
609: ac_default_prefix=/usr/local
610: ac_clean_files=
611: ac_config_libobj_dir=.
612: LIBOBJS=
613: cross_compiling=no
614: subdirs=
615: MFLAGS=
616: MAKEFLAGS=
617:
618: # Identity of this package.
619: PACKAGE_NAME='asir'
620: PACKAGE_TARNAME='asir'
1.5 ohara 621: PACKAGE_VERSION='1.16'
622: PACKAGE_STRING='asir 1.16'
1.1 noro 623: PACKAGE_BUGREPORT=''
624: PACKAGE_URL=''
625:
626: ac_unique_file="LICENSE"
627: # Factoring default headers for most tests.
628: ac_includes_default="\
1.7 ! ohara 629: #include <stddef.h>
! 630: #ifdef HAVE_STDIO_H
! 631: # include <stdio.h>
1.1 noro 632: #endif
1.7 ! ohara 633: #ifdef HAVE_STDLIB_H
1.1 noro 634: # include <stdlib.h>
635: #endif
636: #ifdef HAVE_STRING_H
637: # include <string.h>
638: #endif
639: #ifdef HAVE_INTTYPES_H
640: # include <inttypes.h>
641: #endif
642: #ifdef HAVE_STDINT_H
643: # include <stdint.h>
644: #endif
1.7 ! ohara 645: #ifdef HAVE_STRINGS_H
! 646: # include <strings.h>
! 647: #endif
! 648: #ifdef HAVE_SYS_TYPES_H
! 649: # include <sys/types.h>
! 650: #endif
! 651: #ifdef HAVE_SYS_STAT_H
! 652: # include <sys/stat.h>
! 653: #endif
1.1 noro 654: #ifdef HAVE_UNISTD_H
655: # include <unistd.h>
656: #endif"
657:
1.7 ! ohara 658: ac_header_c_list=
1.1 noro 659: ac_subst_vars='am__EXEEXT_FALSE
660: am__EXEEXT_TRUE
661: LTLIBOBJS
662: LIBOBJS
663: WSLIB
664: USE_GC_SPARC64
1.5 ohara 665: sufx
1.1 noro 666: LAPACKLIB
667: FEPLIB
668: GMPLIB
669: USE_PLOT_FALSE
670: USE_PLOT_TRUE
671: XPMLIB
672: GCINC
673: GCLIB
1.6 ohara 674: ASIR_STATIC_FALSE
675: ASIR_STATIC_TRUE
1.1 noro 676: X_EXTRA_LIBS
677: X_LIBS
678: X_PRE_LIBS
679: X_CFLAGS
1.7 ! ohara 680: CPP
1.1 noro 681: XMKMF
682: YFLAGS
683: YACC
1.5 ohara 684: LT_SYS_LIBRARY_PATH
685: OTOOL64
686: OTOOL
687: LIPO
688: NMEDIT
689: DSYMUTIL
690: MANIFEST_TOOL
1.1 noro 691: RANLIB
1.5 ohara 692: ac_ct_AR
693: AR
694: DLLTOOL
695: OBJDUMP
1.7 ! ohara 696: FILECMD
1.1 noro 697: LN_S
1.5 ohara 698: NM
699: ac_ct_DUMPBIN
700: DUMPBIN
701: LD
702: FGREP
703: EGREP
704: GREP
705: SED
1.1 noro 706: am__fastdepCC_FALSE
707: am__fastdepCC_TRUE
708: CCDEPMODE
709: am__nodep
710: AMDEPBACKSLASH
711: AMDEP_FALSE
712: AMDEP_TRUE
713: am__include
714: DEPDIR
715: OBJEXT
716: EXEEXT
717: ac_ct_CC
718: CPPFLAGS
719: LDFLAGS
720: CFLAGS
721: CC
1.5 ohara 722: LIBTOOL
1.1 noro 723: MAINT
724: MAINTAINER_MODE_FALSE
725: MAINTAINER_MODE_TRUE
726: AM_BACKSLASH
727: AM_DEFAULT_VERBOSITY
728: AM_DEFAULT_V
729: AM_V
1.7 ! ohara 730: CSCOPE
! 731: ETAGS
! 732: CTAGS
1.1 noro 733: am__untar
734: am__tar
735: AMTAR
736: am__leading_dot
737: SET_MAKE
738: AWK
739: mkdir_p
740: MKDIR_P
741: INSTALL_STRIP_PROGRAM
742: STRIP
743: install_sh
744: MAKEINFO
745: AUTOHEADER
746: AUTOMAKE
747: AUTOCONF
748: ACLOCAL
749: VERSION
750: PACKAGE
751: CYGPATH_W
752: am__isrc
753: INSTALL_DATA
754: INSTALL_SCRIPT
755: INSTALL_PROGRAM
756: target_os
757: target_vendor
758: target_cpu
759: target
760: host_os
761: host_vendor
762: host_cpu
763: host
764: build_os
765: build_vendor
766: build_cpu
767: build
768: target_alias
769: host_alias
770: build_alias
771: LIBS
772: ECHO_T
773: ECHO_N
774: ECHO_C
775: DEFS
776: mandir
777: localedir
778: libdir
779: psdir
780: pdfdir
781: dvidir
782: htmldir
783: infodir
784: docdir
785: oldincludedir
786: includedir
1.7 ! ohara 787: runstatedir
1.1 noro 788: localstatedir
789: sharedstatedir
790: sysconfdir
791: datadir
792: datarootdir
793: libexecdir
794: sbindir
795: bindir
796: program_transform_name
797: prefix
798: exec_prefix
799: PACKAGE_URL
800: PACKAGE_BUGREPORT
801: PACKAGE_STRING
802: PACKAGE_VERSION
803: PACKAGE_TARNAME
804: PACKAGE_NAME
805: PATH_SEPARATOR
1.5 ohara 806: SHELL
807: am__quote'
1.1 noro 808: ac_subst_files=''
809: ac_user_opts='
810: enable_option_checking
811: enable_silent_rules
812: enable_maintainer_mode
1.5 ohara 813: enable_shared
814: enable_static
815: with_pic
816: enable_fast_install
817: with_aix_soname
1.1 noro 818: enable_dependency_tracking
1.5 ohara 819: with_gnu_ld
820: with_sysroot
821: enable_libtool_lock
1.1 noro 822: with_x
1.6 ohara 823: enable_static_asir
1.1 noro 824: with_asir_gc
825: enable_plot
826: enable_static_gmp
827: enable_interval
1.7 ! ohara 828: enable_fep
1.1 noro 829: enable_fft_float
830: with_mpi
831: '
832: ac_precious_vars='build_alias
833: host_alias
834: target_alias
835: CC
836: CFLAGS
837: LDFLAGS
838: LIBS
839: CPPFLAGS
1.5 ohara 840: LT_SYS_LIBRARY_PATH
1.1 noro 841: YACC
842: YFLAGS
1.7 ! ohara 843: XMKMF
! 844: CPP'
1.1 noro 845:
846:
847: # Initialize some variables set by options.
848: ac_init_help=
849: ac_init_version=false
850: ac_unrecognized_opts=
851: ac_unrecognized_sep=
852: # The variables have the same names as the options, with
853: # dashes changed to underlines.
854: cache_file=/dev/null
855: exec_prefix=NONE
856: no_create=
857: no_recursion=
858: prefix=NONE
859: program_prefix=NONE
860: program_suffix=NONE
861: program_transform_name=s,x,x,
862: silent=
863: site=
864: srcdir=
865: verbose=
866: x_includes=NONE
867: x_libraries=NONE
868:
869: # Installation directory options.
870: # These are left unexpanded so users can "make install exec_prefix=/foo"
871: # and all the variables that are supposed to be based on exec_prefix
872: # by default will actually change.
873: # Use braces instead of parens because sh, perl, etc. also accept them.
874: # (The list follows the same order as the GNU Coding Standards.)
875: bindir='${exec_prefix}/bin'
876: sbindir='${exec_prefix}/sbin'
877: libexecdir='${exec_prefix}/libexec'
878: datarootdir='${prefix}/share'
879: datadir='${datarootdir}'
880: sysconfdir='${prefix}/etc'
881: sharedstatedir='${prefix}/com'
882: localstatedir='${prefix}/var'
1.7 ! ohara 883: runstatedir='${localstatedir}/run'
1.1 noro 884: includedir='${prefix}/include'
885: oldincludedir='/usr/include'
886: docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
887: infodir='${datarootdir}/info'
888: htmldir='${docdir}'
889: dvidir='${docdir}'
890: pdfdir='${docdir}'
891: psdir='${docdir}'
892: libdir='${exec_prefix}/lib'
893: localedir='${datarootdir}/locale'
894: mandir='${datarootdir}/man'
895:
896: ac_prev=
897: ac_dashdash=
898: for ac_option
899: do
900: # If the previous option needs an argument, assign it.
901: if test -n "$ac_prev"; then
902: eval $ac_prev=\$ac_option
903: ac_prev=
904: continue
905: fi
906:
907: case $ac_option in
908: *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
909: *=) ac_optarg= ;;
910: *) ac_optarg=yes ;;
911: esac
912:
913: case $ac_dashdash$ac_option in
914: --)
915: ac_dashdash=yes ;;
916:
917: -bindir | --bindir | --bindi | --bind | --bin | --bi)
918: ac_prev=bindir ;;
919: -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
920: bindir=$ac_optarg ;;
921:
922: -build | --build | --buil | --bui | --bu)
923: ac_prev=build_alias ;;
924: -build=* | --build=* | --buil=* | --bui=* | --bu=*)
925: build_alias=$ac_optarg ;;
926:
927: -cache-file | --cache-file | --cache-fil | --cache-fi \
928: | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
929: ac_prev=cache_file ;;
930: -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
931: | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
932: cache_file=$ac_optarg ;;
933:
934: --config-cache | -C)
935: cache_file=config.cache ;;
936:
937: -datadir | --datadir | --datadi | --datad)
938: ac_prev=datadir ;;
939: -datadir=* | --datadir=* | --datadi=* | --datad=*)
940: datadir=$ac_optarg ;;
941:
942: -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
943: | --dataroo | --dataro | --datar)
944: ac_prev=datarootdir ;;
945: -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
946: | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
947: datarootdir=$ac_optarg ;;
948:
949: -disable-* | --disable-*)
950: ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
951: # Reject names that are not valid shell variable names.
952: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1.7 ! ohara 953: as_fn_error $? "invalid feature name: \`$ac_useropt'"
1.1 noro 954: ac_useropt_orig=$ac_useropt
1.7 ! ohara 955: ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1.1 noro 956: case $ac_user_opts in
957: *"
958: "enable_$ac_useropt"
959: "*) ;;
960: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
961: ac_unrecognized_sep=', ';;
962: esac
963: eval enable_$ac_useropt=no ;;
964:
965: -docdir | --docdir | --docdi | --doc | --do)
966: ac_prev=docdir ;;
967: -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
968: docdir=$ac_optarg ;;
969:
970: -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
971: ac_prev=dvidir ;;
972: -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
973: dvidir=$ac_optarg ;;
974:
975: -enable-* | --enable-*)
976: ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
977: # Reject names that are not valid shell variable names.
978: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1.7 ! ohara 979: as_fn_error $? "invalid feature name: \`$ac_useropt'"
1.1 noro 980: ac_useropt_orig=$ac_useropt
1.7 ! ohara 981: ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1.1 noro 982: case $ac_user_opts in
983: *"
984: "enable_$ac_useropt"
985: "*) ;;
986: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
987: ac_unrecognized_sep=', ';;
988: esac
989: eval enable_$ac_useropt=\$ac_optarg ;;
990:
991: -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
992: | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
993: | --exec | --exe | --ex)
994: ac_prev=exec_prefix ;;
995: -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
996: | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
997: | --exec=* | --exe=* | --ex=*)
998: exec_prefix=$ac_optarg ;;
999:
1000: -gas | --gas | --ga | --g)
1001: # Obsolete; use --with-gas.
1002: with_gas=yes ;;
1003:
1004: -help | --help | --hel | --he | -h)
1005: ac_init_help=long ;;
1006: -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1007: ac_init_help=recursive ;;
1008: -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1009: ac_init_help=short ;;
1010:
1011: -host | --host | --hos | --ho)
1012: ac_prev=host_alias ;;
1013: -host=* | --host=* | --hos=* | --ho=*)
1014: host_alias=$ac_optarg ;;
1015:
1016: -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1017: ac_prev=htmldir ;;
1018: -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1019: | --ht=*)
1020: htmldir=$ac_optarg ;;
1021:
1022: -includedir | --includedir | --includedi | --included | --include \
1023: | --includ | --inclu | --incl | --inc)
1024: ac_prev=includedir ;;
1025: -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1026: | --includ=* | --inclu=* | --incl=* | --inc=*)
1027: includedir=$ac_optarg ;;
1028:
1029: -infodir | --infodir | --infodi | --infod | --info | --inf)
1030: ac_prev=infodir ;;
1031: -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1032: infodir=$ac_optarg ;;
1033:
1034: -libdir | --libdir | --libdi | --libd)
1035: ac_prev=libdir ;;
1036: -libdir=* | --libdir=* | --libdi=* | --libd=*)
1037: libdir=$ac_optarg ;;
1038:
1039: -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1040: | --libexe | --libex | --libe)
1041: ac_prev=libexecdir ;;
1042: -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1043: | --libexe=* | --libex=* | --libe=*)
1044: libexecdir=$ac_optarg ;;
1045:
1046: -localedir | --localedir | --localedi | --localed | --locale)
1047: ac_prev=localedir ;;
1048: -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1049: localedir=$ac_optarg ;;
1050:
1051: -localstatedir | --localstatedir | --localstatedi | --localstated \
1052: | --localstate | --localstat | --localsta | --localst | --locals)
1053: ac_prev=localstatedir ;;
1054: -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1055: | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1056: localstatedir=$ac_optarg ;;
1057:
1058: -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1059: ac_prev=mandir ;;
1060: -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1061: mandir=$ac_optarg ;;
1062:
1063: -nfp | --nfp | --nf)
1064: # Obsolete; use --without-fp.
1065: with_fp=no ;;
1066:
1067: -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1068: | --no-cr | --no-c | -n)
1069: no_create=yes ;;
1070:
1071: -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1072: | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1073: no_recursion=yes ;;
1074:
1075: -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1076: | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1077: | --oldin | --oldi | --old | --ol | --o)
1078: ac_prev=oldincludedir ;;
1079: -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1080: | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1081: | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1082: oldincludedir=$ac_optarg ;;
1083:
1084: -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1085: ac_prev=prefix ;;
1086: -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1087: prefix=$ac_optarg ;;
1088:
1089: -program-prefix | --program-prefix | --program-prefi | --program-pref \
1090: | --program-pre | --program-pr | --program-p)
1091: ac_prev=program_prefix ;;
1092: -program-prefix=* | --program-prefix=* | --program-prefi=* \
1093: | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1094: program_prefix=$ac_optarg ;;
1095:
1096: -program-suffix | --program-suffix | --program-suffi | --program-suff \
1097: | --program-suf | --program-su | --program-s)
1098: ac_prev=program_suffix ;;
1099: -program-suffix=* | --program-suffix=* | --program-suffi=* \
1100: | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1101: program_suffix=$ac_optarg ;;
1102:
1103: -program-transform-name | --program-transform-name \
1104: | --program-transform-nam | --program-transform-na \
1105: | --program-transform-n | --program-transform- \
1106: | --program-transform | --program-transfor \
1107: | --program-transfo | --program-transf \
1108: | --program-trans | --program-tran \
1109: | --progr-tra | --program-tr | --program-t)
1110: ac_prev=program_transform_name ;;
1111: -program-transform-name=* | --program-transform-name=* \
1112: | --program-transform-nam=* | --program-transform-na=* \
1113: | --program-transform-n=* | --program-transform-=* \
1114: | --program-transform=* | --program-transfor=* \
1115: | --program-transfo=* | --program-transf=* \
1116: | --program-trans=* | --program-tran=* \
1117: | --progr-tra=* | --program-tr=* | --program-t=*)
1118: program_transform_name=$ac_optarg ;;
1119:
1120: -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1121: ac_prev=pdfdir ;;
1122: -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1123: pdfdir=$ac_optarg ;;
1124:
1125: -psdir | --psdir | --psdi | --psd | --ps)
1126: ac_prev=psdir ;;
1127: -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1128: psdir=$ac_optarg ;;
1129:
1130: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1131: | -silent | --silent | --silen | --sile | --sil)
1132: silent=yes ;;
1133:
1.7 ! ohara 1134: -runstatedir | --runstatedir | --runstatedi | --runstated \
! 1135: | --runstate | --runstat | --runsta | --runst | --runs \
! 1136: | --run | --ru | --r)
! 1137: ac_prev=runstatedir ;;
! 1138: -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
! 1139: | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
! 1140: | --run=* | --ru=* | --r=*)
! 1141: runstatedir=$ac_optarg ;;
! 1142:
1.1 noro 1143: -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1144: ac_prev=sbindir ;;
1145: -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1146: | --sbi=* | --sb=*)
1147: sbindir=$ac_optarg ;;
1148:
1149: -sharedstatedir | --sharedstatedir | --sharedstatedi \
1150: | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1151: | --sharedst | --shareds | --shared | --share | --shar \
1152: | --sha | --sh)
1153: ac_prev=sharedstatedir ;;
1154: -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1155: | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1156: | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1157: | --sha=* | --sh=*)
1158: sharedstatedir=$ac_optarg ;;
1159:
1160: -site | --site | --sit)
1161: ac_prev=site ;;
1162: -site=* | --site=* | --sit=*)
1163: site=$ac_optarg ;;
1164:
1165: -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1166: ac_prev=srcdir ;;
1167: -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1168: srcdir=$ac_optarg ;;
1169:
1170: -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1171: | --syscon | --sysco | --sysc | --sys | --sy)
1172: ac_prev=sysconfdir ;;
1173: -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1174: | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1175: sysconfdir=$ac_optarg ;;
1176:
1177: -target | --target | --targe | --targ | --tar | --ta | --t)
1178: ac_prev=target_alias ;;
1179: -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1180: target_alias=$ac_optarg ;;
1181:
1182: -v | -verbose | --verbose | --verbos | --verbo | --verb)
1183: verbose=yes ;;
1184:
1185: -version | --version | --versio | --versi | --vers | -V)
1186: ac_init_version=: ;;
1187:
1188: -with-* | --with-*)
1189: ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1190: # Reject names that are not valid shell variable names.
1191: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1.7 ! ohara 1192: as_fn_error $? "invalid package name: \`$ac_useropt'"
1.1 noro 1193: ac_useropt_orig=$ac_useropt
1.7 ! ohara 1194: ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1.1 noro 1195: case $ac_user_opts in
1196: *"
1197: "with_$ac_useropt"
1198: "*) ;;
1199: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1200: ac_unrecognized_sep=', ';;
1201: esac
1202: eval with_$ac_useropt=\$ac_optarg ;;
1203:
1204: -without-* | --without-*)
1205: ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1206: # Reject names that are not valid shell variable names.
1207: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1.7 ! ohara 1208: as_fn_error $? "invalid package name: \`$ac_useropt'"
1.1 noro 1209: ac_useropt_orig=$ac_useropt
1.7 ! ohara 1210: ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1.1 noro 1211: case $ac_user_opts in
1212: *"
1213: "with_$ac_useropt"
1214: "*) ;;
1215: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1216: ac_unrecognized_sep=', ';;
1217: esac
1218: eval with_$ac_useropt=no ;;
1219:
1220: --x)
1221: # Obsolete; use --with-x.
1222: with_x=yes ;;
1223:
1224: -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1225: | --x-incl | --x-inc | --x-in | --x-i)
1226: ac_prev=x_includes ;;
1227: -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1228: | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1229: x_includes=$ac_optarg ;;
1230:
1231: -x-libraries | --x-libraries | --x-librarie | --x-librari \
1232: | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1233: ac_prev=x_libraries ;;
1234: -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1235: | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1236: x_libraries=$ac_optarg ;;
1237:
1238: -*) as_fn_error $? "unrecognized option: \`$ac_option'
1239: Try \`$0 --help' for more information"
1240: ;;
1241:
1242: *=*)
1243: ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1244: # Reject names that are not valid shell variable names.
1245: case $ac_envvar in #(
1246: '' | [0-9]* | *[!_$as_cr_alnum]* )
1247: as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1248: esac
1249: eval $ac_envvar=\$ac_optarg
1250: export $ac_envvar ;;
1251:
1252: *)
1253: # FIXME: should be removed in autoconf 3.0.
1.7 ! ohara 1254: printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1.1 noro 1255: expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1.7 ! ohara 1256: printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1.1 noro 1257: : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1258: ;;
1259:
1260: esac
1261: done
1262:
1263: if test -n "$ac_prev"; then
1264: ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1265: as_fn_error $? "missing argument to $ac_option"
1266: fi
1267:
1268: if test -n "$ac_unrecognized_opts"; then
1269: case $enable_option_checking in
1270: no) ;;
1271: fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1.7 ! ohara 1272: *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1.1 noro 1273: esac
1274: fi
1275:
1276: # Check all directory arguments for consistency.
1277: for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1278: datadir sysconfdir sharedstatedir localstatedir includedir \
1279: oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1.7 ! ohara 1280: libdir localedir mandir runstatedir
1.1 noro 1281: do
1282: eval ac_val=\$$ac_var
1283: # Remove trailing slashes.
1284: case $ac_val in
1285: */ )
1286: ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1287: eval $ac_var=\$ac_val;;
1288: esac
1289: # Be sure to have absolute directory names.
1290: case $ac_val in
1291: [\\/$]* | ?:[\\/]* ) continue;;
1292: NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1293: esac
1294: as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1295: done
1296:
1297: # There might be people who depend on the old broken behavior: `$host'
1298: # used to hold the argument of --host etc.
1299: # FIXME: To remove some day.
1300: build=$build_alias
1301: host=$host_alias
1302: target=$target_alias
1303:
1304: # FIXME: To remove some day.
1305: if test "x$host_alias" != x; then
1306: if test "x$build_alias" = x; then
1307: cross_compiling=maybe
1308: elif test "x$build_alias" != "x$host_alias"; then
1309: cross_compiling=yes
1310: fi
1311: fi
1312:
1313: ac_tool_prefix=
1314: test -n "$host_alias" && ac_tool_prefix=$host_alias-
1315:
1316: test "$silent" = yes && exec 6>/dev/null
1317:
1318:
1319: ac_pwd=`pwd` && test -n "$ac_pwd" &&
1320: ac_ls_di=`ls -di .` &&
1321: ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1322: as_fn_error $? "working directory cannot be determined"
1323: test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1324: as_fn_error $? "pwd does not report name of working directory"
1325:
1326:
1327: # Find the source files, if location was not specified.
1328: if test -z "$srcdir"; then
1329: ac_srcdir_defaulted=yes
1330: # Try the directory containing this script, then the parent directory.
1331: ac_confdir=`$as_dirname -- "$as_myself" ||
1332: $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1333: X"$as_myself" : 'X\(//\)[^/]' \| \
1334: X"$as_myself" : 'X\(//\)$' \| \
1335: X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1.7 ! ohara 1336: printf "%s\n" X"$as_myself" |
1.1 noro 1337: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1338: s//\1/
1339: q
1340: }
1341: /^X\(\/\/\)[^/].*/{
1342: s//\1/
1343: q
1344: }
1345: /^X\(\/\/\)$/{
1346: s//\1/
1347: q
1348: }
1349: /^X\(\/\).*/{
1350: s//\1/
1351: q
1352: }
1353: s/.*/./; q'`
1354: srcdir=$ac_confdir
1355: if test ! -r "$srcdir/$ac_unique_file"; then
1356: srcdir=..
1357: fi
1358: else
1359: ac_srcdir_defaulted=no
1360: fi
1361: if test ! -r "$srcdir/$ac_unique_file"; then
1362: test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1363: as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1364: fi
1365: ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1366: ac_abs_confdir=`(
1367: cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1368: pwd)`
1369: # When building in place, set srcdir=.
1370: if test "$ac_abs_confdir" = "$ac_pwd"; then
1371: srcdir=.
1372: fi
1373: # Remove unnecessary trailing slashes from srcdir.
1374: # Double slashes in file names in object file debugging info
1375: # mess up M-x gdb in Emacs.
1376: case $srcdir in
1377: */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1378: esac
1379: for ac_var in $ac_precious_vars; do
1380: eval ac_env_${ac_var}_set=\${${ac_var}+set}
1381: eval ac_env_${ac_var}_value=\$${ac_var}
1382: eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1383: eval ac_cv_env_${ac_var}_value=\$${ac_var}
1384: done
1385:
1386: #
1387: # Report the --help message.
1388: #
1389: if test "$ac_init_help" = "long"; then
1390: # Omit some internal or obsolete options to make the list less imposing.
1391: # This message is too long to be a string in the A/UX 3.1 sh.
1392: cat <<_ACEOF
1.5 ohara 1393: \`configure' configures asir 1.16 to adapt to many kinds of systems.
1.1 noro 1394:
1395: Usage: $0 [OPTION]... [VAR=VALUE]...
1396:
1397: To assign environment variables (e.g., CC, CFLAGS...), specify them as
1398: VAR=VALUE. See below for descriptions of some of the useful variables.
1399:
1400: Defaults for the options are specified in brackets.
1401:
1402: Configuration:
1403: -h, --help display this help and exit
1404: --help=short display options specific to this package
1405: --help=recursive display the short help of all the included packages
1406: -V, --version display version information and exit
1407: -q, --quiet, --silent do not print \`checking ...' messages
1408: --cache-file=FILE cache test results in FILE [disabled]
1409: -C, --config-cache alias for \`--cache-file=config.cache'
1410: -n, --no-create do not create output files
1411: --srcdir=DIR find the sources in DIR [configure dir or \`..']
1412:
1413: Installation directories:
1414: --prefix=PREFIX install architecture-independent files in PREFIX
1415: [$ac_default_prefix]
1416: --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1417: [PREFIX]
1418:
1419: By default, \`make install' will install all the files in
1420: \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1421: an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1422: for instance \`--prefix=\$HOME'.
1423:
1424: For better control, use the options below.
1425:
1426: Fine tuning of the installation directories:
1427: --bindir=DIR user executables [EPREFIX/bin]
1428: --sbindir=DIR system admin executables [EPREFIX/sbin]
1429: --libexecdir=DIR program executables [EPREFIX/libexec]
1430: --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1431: --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1432: --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1.7 ! ohara 1433: --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1.1 noro 1434: --libdir=DIR object code libraries [EPREFIX/lib]
1435: --includedir=DIR C header files [PREFIX/include]
1436: --oldincludedir=DIR C header files for non-gcc [/usr/include]
1437: --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1438: --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1439: --infodir=DIR info documentation [DATAROOTDIR/info]
1440: --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1441: --mandir=DIR man documentation [DATAROOTDIR/man]
1442: --docdir=DIR documentation root [DATAROOTDIR/doc/asir]
1443: --htmldir=DIR html documentation [DOCDIR]
1444: --dvidir=DIR dvi documentation [DOCDIR]
1445: --pdfdir=DIR pdf documentation [DOCDIR]
1446: --psdir=DIR ps documentation [DOCDIR]
1447: _ACEOF
1448:
1449: cat <<\_ACEOF
1450:
1451: Program names:
1452: --program-prefix=PREFIX prepend PREFIX to installed program names
1453: --program-suffix=SUFFIX append SUFFIX to installed program names
1454: --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1455:
1456: X features:
1457: --x-includes=DIR X include files are in DIR
1458: --x-libraries=DIR X library files are in DIR
1459:
1460: System types:
1461: --build=BUILD configure for building on BUILD [guessed]
1462: --host=HOST cross-compile to build programs to run on HOST [BUILD]
1463: --target=TARGET configure for building compilers for TARGET [HOST]
1464: _ACEOF
1465: fi
1466:
1467: if test -n "$ac_init_help"; then
1468: case $ac_init_help in
1.5 ohara 1469: short | recursive ) echo "Configuration of asir 1.16:";;
1.1 noro 1470: esac
1471: cat <<\_ACEOF
1472:
1473: Optional Features:
1474: --disable-option-checking ignore unrecognized --enable/--with options
1475: --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1476: --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1477: --enable-silent-rules less verbose build output (undo: "make V=1")
1478: --disable-silent-rules verbose build output (undo: "make V=0")
1479: --enable-maintainer-mode
1480: enable make rules and dependencies not useful (and
1481: sometimes confusing) to the casual installer
1.5 ohara 1482: --enable-shared[=PKGS] build shared libraries [default=yes]
1483: --enable-static[=PKGS] build static libraries [default=yes]
1484: --enable-fast-install[=PKGS]
1485: optimize for fast installation [default=yes]
1.1 noro 1486: --enable-dependency-tracking
1487: do not reject slow dependency extractors
1488: --disable-dependency-tracking
1489: speeds up one-time build
1.5 ohara 1490: --disable-libtool-lock avoid locking (might break parallel builds)
1.6 ohara 1491: --enable-static-asir force to link statically with libasir. [yes]
1.1 noro 1492: --enable-plot enable plot feature. [no]
1493: --enable-static-gmp force to link statically with gmp. [no]
1494: --enable-interval enable interval feature. [no]
1.7 ! ohara 1495: --enable-fep enable fep for human interfaces. [no]
1.1 noro 1496: --enable-fft-float enable FFT-FLOAT feature. [no]
1497:
1498: Optional Packages:
1499: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1500: --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1.5 ohara 1501: --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1502: both]
1503: --with-aix-soname=aix|svr4|both
1504: shared library versioning (aka "SONAME") variant to
1505: provide on AIX, [default=aix].
1506: --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1507: --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1508: compiler's sysroot if not specified).
1.1 noro 1509: --with-x use the X Window System
1510: --with-asir-gc modify Boehm's GC [yes]
1511: --with-mpi use the MPI library. [no]
1512:
1513: Some influential environment variables:
1514: CC C compiler command
1515: CFLAGS C compiler flags
1516: LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1517: nonstandard directory <lib dir>
1518: LIBS libraries to pass to the linker, e.g. -l<library>
1519: CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1520: you have headers in a nonstandard directory <include dir>
1.5 ohara 1521: LT_SYS_LIBRARY_PATH
1522: User-defined run-time library search path.
1.1 noro 1523: YACC The `Yet Another Compiler Compiler' implementation to use.
1.7 ! ohara 1524: Defaults to the first program found out of: `bison -y', `byacc',
! 1525: `yacc'.
1.1 noro 1526: YFLAGS The list of arguments that will be passed by default to $YACC.
1527: This script will default YFLAGS to the empty string to avoid a
1528: default value of `-d' given by some make applications.
1529: XMKMF Path to xmkmf, Makefile generator for X Window System
1.7 ! ohara 1530: CPP C preprocessor
1.1 noro 1531:
1532: Use these variables to override the choices made by `configure' or to help
1533: it to find libraries and programs with nonstandard names/locations.
1534:
1535: Report bugs to the package provider.
1536: _ACEOF
1537: ac_status=$?
1538: fi
1539:
1540: if test "$ac_init_help" = "recursive"; then
1541: # If there are subdirs, report their specific --help.
1542: for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1543: test -d "$ac_dir" ||
1544: { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1545: continue
1546: ac_builddir=.
1547:
1548: case "$ac_dir" in
1549: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1550: *)
1.7 ! ohara 1551: ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1.1 noro 1552: # A ".." for each directory in $ac_dir_suffix.
1.7 ! ohara 1553: ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1.1 noro 1554: case $ac_top_builddir_sub in
1555: "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1556: *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1557: esac ;;
1558: esac
1559: ac_abs_top_builddir=$ac_pwd
1560: ac_abs_builddir=$ac_pwd$ac_dir_suffix
1561: # for backward compatibility:
1562: ac_top_builddir=$ac_top_build_prefix
1563:
1564: case $srcdir in
1565: .) # We are building in place.
1566: ac_srcdir=.
1567: ac_top_srcdir=$ac_top_builddir_sub
1568: ac_abs_top_srcdir=$ac_pwd ;;
1569: [\\/]* | ?:[\\/]* ) # Absolute name.
1570: ac_srcdir=$srcdir$ac_dir_suffix;
1571: ac_top_srcdir=$srcdir
1572: ac_abs_top_srcdir=$srcdir ;;
1573: *) # Relative name.
1574: ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1575: ac_top_srcdir=$ac_top_build_prefix$srcdir
1576: ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1577: esac
1578: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1579:
1580: cd "$ac_dir" || { ac_status=$?; continue; }
1.7 ! ohara 1581: # Check for configure.gnu first; this name is used for a wrapper for
! 1582: # Metaconfig's "Configure" on case-insensitive file systems.
1.1 noro 1583: if test -f "$ac_srcdir/configure.gnu"; then
1584: echo &&
1585: $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1586: elif test -f "$ac_srcdir/configure"; then
1587: echo &&
1588: $SHELL "$ac_srcdir/configure" --help=recursive
1589: else
1.7 ! ohara 1590: printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1.1 noro 1591: fi || ac_status=$?
1592: cd "$ac_pwd" || { ac_status=$?; break; }
1593: done
1594: fi
1595:
1596: test -n "$ac_init_help" && exit $ac_status
1597: if $ac_init_version; then
1598: cat <<\_ACEOF
1.5 ohara 1599: asir configure 1.16
1.7 ! ohara 1600: generated by GNU Autoconf 2.71
1.1 noro 1601:
1.7 ! ohara 1602: Copyright (C) 2021 Free Software Foundation, Inc.
1.1 noro 1603: This configure script is free software; the Free Software Foundation
1604: gives unlimited permission to copy, distribute and modify it.
1605: _ACEOF
1606: exit
1607: fi
1608:
1609: ## ------------------------ ##
1610: ## Autoconf initialization. ##
1611: ## ------------------------ ##
1612:
1613: # ac_fn_c_try_compile LINENO
1614: # --------------------------
1615: # Try to compile conftest.$ac_ext, and return whether this succeeded.
1616: ac_fn_c_try_compile ()
1617: {
1618: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1.7 ! ohara 1619: rm -f conftest.$ac_objext conftest.beam
1.1 noro 1620: if { { ac_try="$ac_compile"
1621: case "(($ac_try" in
1622: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1623: *) ac_try_echo=$ac_try;;
1624: esac
1625: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1.7 ! ohara 1626: printf "%s\n" "$ac_try_echo"; } >&5
1.1 noro 1627: (eval "$ac_compile") 2>conftest.err
1628: ac_status=$?
1629: if test -s conftest.err; then
1630: grep -v '^ *+' conftest.err >conftest.er1
1631: cat conftest.er1 >&5
1632: mv -f conftest.er1 conftest.err
1633: fi
1.7 ! ohara 1634: printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1.1 noro 1635: test $ac_status = 0; } && {
1636: test -z "$ac_c_werror_flag" ||
1637: test ! -s conftest.err
1.7 ! ohara 1638: } && test -s conftest.$ac_objext
! 1639: then :
1.1 noro 1640: ac_retval=0
1.7 ! ohara 1641: else $as_nop
! 1642: printf "%s\n" "$as_me: failed program was:" >&5
1.1 noro 1643: sed 's/^/| /' conftest.$ac_ext >&5
1644:
1645: ac_retval=1
1646: fi
1647: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1648: as_fn_set_status $ac_retval
1649:
1650: } # ac_fn_c_try_compile
1651:
1.5 ohara 1652: # ac_fn_c_try_link LINENO
1653: # -----------------------
1654: # Try to link conftest.$ac_ext, and return whether this succeeded.
1655: ac_fn_c_try_link ()
1656: {
1657: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1.7 ! ohara 1658: rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1.5 ohara 1659: if { { ac_try="$ac_link"
1660: case "(($ac_try" in
1661: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1662: *) ac_try_echo=$ac_try;;
1663: esac
1664: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1.7 ! ohara 1665: printf "%s\n" "$ac_try_echo"; } >&5
1.5 ohara 1666: (eval "$ac_link") 2>conftest.err
1667: ac_status=$?
1668: if test -s conftest.err; then
1669: grep -v '^ *+' conftest.err >conftest.er1
1670: cat conftest.er1 >&5
1671: mv -f conftest.er1 conftest.err
1672: fi
1.7 ! ohara 1673: printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1.5 ohara 1674: test $ac_status = 0; } && {
1675: test -z "$ac_c_werror_flag" ||
1676: test ! -s conftest.err
1677: } && test -s conftest$ac_exeext && {
1678: test "$cross_compiling" = yes ||
1679: test -x conftest$ac_exeext
1.7 ! ohara 1680: }
! 1681: then :
1.5 ohara 1682: ac_retval=0
1.7 ! ohara 1683: else $as_nop
! 1684: printf "%s\n" "$as_me: failed program was:" >&5
1.5 ohara 1685: sed 's/^/| /' conftest.$ac_ext >&5
1686:
1687: ac_retval=1
1688: fi
1689: # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1690: # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1691: # interfere with the next link command; also delete a directory that is
1692: # left behind by Apple's compiler. We do this before executing the actions.
1693: rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1694: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1695: as_fn_set_status $ac_retval
1696:
1697: } # ac_fn_c_try_link
1698:
1699: # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1700: # -------------------------------------------------------
1701: # Tests whether HEADER exists and can be compiled using the include files in
1702: # INCLUDES, setting the cache variable VAR accordingly.
1703: ac_fn_c_check_header_compile ()
1704: {
1705: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1.7 ! ohara 1706: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
! 1707: printf %s "checking for $2... " >&6; }
! 1708: if eval test \${$3+y}
! 1709: then :
! 1710: printf %s "(cached) " >&6
! 1711: else $as_nop
1.5 ohara 1712: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1713: /* end confdefs.h. */
1714: $4
1715: #include <$2>
1716: _ACEOF
1.7 ! ohara 1717: if ac_fn_c_try_compile "$LINENO"
! 1718: then :
1.5 ohara 1719: eval "$3=yes"
1.7 ! ohara 1720: else $as_nop
1.5 ohara 1721: eval "$3=no"
1722: fi
1.7 ! ohara 1723: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1.5 ohara 1724: fi
1725: eval ac_res=\$$3
1.7 ! ohara 1726: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
! 1727: printf "%s\n" "$ac_res" >&6; }
1.5 ohara 1728: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1729:
1730: } # ac_fn_c_check_header_compile
1731:
1.1 noro 1732: # ac_fn_c_check_func LINENO FUNC VAR
1733: # ----------------------------------
1734: # Tests whether FUNC exists, setting the cache variable VAR accordingly
1735: ac_fn_c_check_func ()
1736: {
1737: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1.7 ! ohara 1738: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
! 1739: printf %s "checking for $2... " >&6; }
! 1740: if eval test \${$3+y}
! 1741: then :
! 1742: printf %s "(cached) " >&6
! 1743: else $as_nop
1.1 noro 1744: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1745: /* end confdefs.h. */
1746: /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1747: For example, HP-UX 11i <limits.h> declares gettimeofday. */
1748: #define $2 innocuous_$2
1749:
1750: /* System header to define __stub macros and hopefully few prototypes,
1.7 ! ohara 1751: which can conflict with char $2 (); below. */
1.1 noro 1752:
1.7 ! ohara 1753: #include <limits.h>
1.1 noro 1754: #undef $2
1755:
1756: /* Override any GCC internal prototype to avoid an error.
1757: Use char because int might match the return type of a GCC
1758: builtin and then its argument prototype would still apply. */
1759: #ifdef __cplusplus
1760: extern "C"
1761: #endif
1762: char $2 ();
1763: /* The GNU C library defines this for functions which it implements
1764: to always fail with ENOSYS. Some functions are actually named
1765: something starting with __ and the normal name is an alias. */
1766: #if defined __stub_$2 || defined __stub___$2
1767: choke me
1768: #endif
1769:
1770: int
1.7 ! ohara 1771: main (void)
1.1 noro 1772: {
1773: return $2 ();
1774: ;
1775: return 0;
1776: }
1777: _ACEOF
1.7 ! ohara 1778: if ac_fn_c_try_link "$LINENO"
! 1779: then :
1.1 noro 1780: eval "$3=yes"
1.7 ! ohara 1781: else $as_nop
1.1 noro 1782: eval "$3=no"
1783: fi
1.7 ! ohara 1784: rm -f core conftest.err conftest.$ac_objext conftest.beam \
1.1 noro 1785: conftest$ac_exeext conftest.$ac_ext
1786: fi
1787: eval ac_res=\$$3
1.7 ! ohara 1788: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
! 1789: printf "%s\n" "$ac_res" >&6; }
1.1 noro 1790: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1791:
1792: } # ac_fn_c_check_func
1793:
1.7 ! ohara 1794: # ac_fn_c_try_cpp LINENO
! 1795: # ----------------------
! 1796: # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
! 1797: ac_fn_c_try_cpp ()
! 1798: {
! 1799: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
! 1800: if { { ac_try="$ac_cpp conftest.$ac_ext"
! 1801: case "(($ac_try" in
! 1802: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 1803: *) ac_try_echo=$ac_try;;
! 1804: esac
! 1805: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
! 1806: printf "%s\n" "$ac_try_echo"; } >&5
! 1807: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
! 1808: ac_status=$?
! 1809: if test -s conftest.err; then
! 1810: grep -v '^ *+' conftest.err >conftest.er1
! 1811: cat conftest.er1 >&5
! 1812: mv -f conftest.er1 conftest.err
! 1813: fi
! 1814: printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
! 1815: test $ac_status = 0; } > conftest.i && {
! 1816: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
! 1817: test ! -s conftest.err
! 1818: }
! 1819: then :
! 1820: ac_retval=0
! 1821: else $as_nop
! 1822: printf "%s\n" "$as_me: failed program was:" >&5
! 1823: sed 's/^/| /' conftest.$ac_ext >&5
! 1824:
! 1825: ac_retval=1
! 1826: fi
! 1827: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
! 1828: as_fn_set_status $ac_retval
! 1829:
! 1830: } # ac_fn_c_try_cpp
! 1831:
1.1 noro 1832: # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1833: # -------------------------------------------
1834: # Tests whether TYPE exists after having included INCLUDES, setting cache
1835: # variable VAR accordingly.
1836: ac_fn_c_check_type ()
1837: {
1838: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1.7 ! ohara 1839: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
! 1840: printf %s "checking for $2... " >&6; }
! 1841: if eval test \${$3+y}
! 1842: then :
! 1843: printf %s "(cached) " >&6
! 1844: else $as_nop
1.1 noro 1845: eval "$3=no"
1846: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1847: /* end confdefs.h. */
1848: $4
1849: int
1.7 ! ohara 1850: main (void)
1.1 noro 1851: {
1852: if (sizeof ($2))
1853: return 0;
1854: ;
1855: return 0;
1856: }
1857: _ACEOF
1.7 ! ohara 1858: if ac_fn_c_try_compile "$LINENO"
! 1859: then :
1.1 noro 1860: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1861: /* end confdefs.h. */
1862: $4
1863: int
1.7 ! ohara 1864: main (void)
1.1 noro 1865: {
1866: if (sizeof (($2)))
1867: return 0;
1868: ;
1869: return 0;
1870: }
1871: _ACEOF
1.7 ! ohara 1872: if ac_fn_c_try_compile "$LINENO"
! 1873: then :
1.1 noro 1874:
1.7 ! ohara 1875: else $as_nop
1.1 noro 1876: eval "$3=yes"
1877: fi
1.7 ! ohara 1878: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1.1 noro 1879: fi
1.7 ! ohara 1880: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1.1 noro 1881: fi
1882: eval ac_res=\$$3
1.7 ! ohara 1883: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
! 1884: printf "%s\n" "$ac_res" >&6; }
1.1 noro 1885: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1886:
1887: } # ac_fn_c_check_type
1888:
1.7 ! ohara 1889: # ac_fn_c_try_run LINENO
! 1890: # ----------------------
! 1891: # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
! 1892: # executables *can* be run.
! 1893: ac_fn_c_try_run ()
! 1894: {
! 1895: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
! 1896: if { { ac_try="$ac_link"
! 1897: case "(($ac_try" in
! 1898: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 1899: *) ac_try_echo=$ac_try;;
! 1900: esac
! 1901: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
! 1902: printf "%s\n" "$ac_try_echo"; } >&5
! 1903: (eval "$ac_link") 2>&5
! 1904: ac_status=$?
! 1905: printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
! 1906: test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
! 1907: { { case "(($ac_try" in
! 1908: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 1909: *) ac_try_echo=$ac_try;;
! 1910: esac
! 1911: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
! 1912: printf "%s\n" "$ac_try_echo"; } >&5
! 1913: (eval "$ac_try") 2>&5
! 1914: ac_status=$?
! 1915: printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
! 1916: test $ac_status = 0; }; }
! 1917: then :
! 1918: ac_retval=0
! 1919: else $as_nop
! 1920: printf "%s\n" "$as_me: program exited with status $ac_status" >&5
! 1921: printf "%s\n" "$as_me: failed program was:" >&5
! 1922: sed 's/^/| /' conftest.$ac_ext >&5
! 1923:
! 1924: ac_retval=$ac_status
! 1925: fi
! 1926: rm -rf conftest.dSYM conftest_ipa8_conftest.oo
! 1927: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
! 1928: as_fn_set_status $ac_retval
! 1929:
! 1930: } # ac_fn_c_try_run
! 1931:
1.1 noro 1932: # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1933: # --------------------------------------------
1934: # Tries to find the compile-time value of EXPR in a program that includes
1935: # INCLUDES, setting VAR accordingly. Returns whether the value could be
1936: # computed
1937: ac_fn_c_compute_int ()
1938: {
1939: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1940: if test "$cross_compiling" = yes; then
1941: # Depending upon the size, compute the lo and hi bounds.
1942: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1943: /* end confdefs.h. */
1944: $4
1945: int
1.7 ! ohara 1946: main (void)
1.1 noro 1947: {
1948: static int test_array [1 - 2 * !(($2) >= 0)];
1949: test_array [0] = 0;
1950: return test_array [0];
1951:
1952: ;
1953: return 0;
1954: }
1955: _ACEOF
1.7 ! ohara 1956: if ac_fn_c_try_compile "$LINENO"
! 1957: then :
1.1 noro 1958: ac_lo=0 ac_mid=0
1959: while :; do
1960: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1961: /* end confdefs.h. */
1962: $4
1963: int
1.7 ! ohara 1964: main (void)
1.1 noro 1965: {
1966: static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1967: test_array [0] = 0;
1968: return test_array [0];
1969:
1970: ;
1971: return 0;
1972: }
1973: _ACEOF
1.7 ! ohara 1974: if ac_fn_c_try_compile "$LINENO"
! 1975: then :
1.1 noro 1976: ac_hi=$ac_mid; break
1.7 ! ohara 1977: else $as_nop
1.1 noro 1978: as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1979: if test $ac_lo -le $ac_mid; then
1980: ac_lo= ac_hi=
1981: break
1982: fi
1983: as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1984: fi
1.7 ! ohara 1985: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1.1 noro 1986: done
1.7 ! ohara 1987: else $as_nop
1.1 noro 1988: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1989: /* end confdefs.h. */
1990: $4
1991: int
1.7 ! ohara 1992: main (void)
1.1 noro 1993: {
1994: static int test_array [1 - 2 * !(($2) < 0)];
1995: test_array [0] = 0;
1996: return test_array [0];
1997:
1998: ;
1999: return 0;
2000: }
2001: _ACEOF
1.7 ! ohara 2002: if ac_fn_c_try_compile "$LINENO"
! 2003: then :
1.1 noro 2004: ac_hi=-1 ac_mid=-1
2005: while :; do
2006: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2007: /* end confdefs.h. */
2008: $4
2009: int
1.7 ! ohara 2010: main (void)
1.1 noro 2011: {
2012: static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2013: test_array [0] = 0;
2014: return test_array [0];
2015:
2016: ;
2017: return 0;
2018: }
2019: _ACEOF
1.7 ! ohara 2020: if ac_fn_c_try_compile "$LINENO"
! 2021: then :
1.1 noro 2022: ac_lo=$ac_mid; break
1.7 ! ohara 2023: else $as_nop
1.1 noro 2024: as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2025: if test $ac_mid -le $ac_hi; then
2026: ac_lo= ac_hi=
2027: break
2028: fi
2029: as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2030: fi
1.7 ! ohara 2031: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1.1 noro 2032: done
1.7 ! ohara 2033: else $as_nop
1.1 noro 2034: ac_lo= ac_hi=
2035: fi
1.7 ! ohara 2036: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1.1 noro 2037: fi
1.7 ! ohara 2038: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1.1 noro 2039: # Binary search between lo and hi bounds.
2040: while test "x$ac_lo" != "x$ac_hi"; do
2041: as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2042: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2043: /* end confdefs.h. */
2044: $4
2045: int
1.7 ! ohara 2046: main (void)
1.1 noro 2047: {
2048: static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2049: test_array [0] = 0;
2050: return test_array [0];
2051:
2052: ;
2053: return 0;
2054: }
2055: _ACEOF
1.7 ! ohara 2056: if ac_fn_c_try_compile "$LINENO"
! 2057: then :
1.1 noro 2058: ac_hi=$ac_mid
1.7 ! ohara 2059: else $as_nop
1.1 noro 2060: as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2061: fi
1.7 ! ohara 2062: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1.1 noro 2063: done
2064: case $ac_lo in #((
2065: ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2066: '') ac_retval=1 ;;
2067: esac
2068: else
2069: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2070: /* end confdefs.h. */
2071: $4
1.7 ! ohara 2072: static long int longval (void) { return $2; }
! 2073: static unsigned long int ulongval (void) { return $2; }
1.1 noro 2074: #include <stdio.h>
2075: #include <stdlib.h>
2076: int
1.7 ! ohara 2077: main (void)
1.1 noro 2078: {
2079:
2080: FILE *f = fopen ("conftest.val", "w");
2081: if (! f)
2082: return 1;
2083: if (($2) < 0)
2084: {
2085: long int i = longval ();
2086: if (i != ($2))
2087: return 1;
2088: fprintf (f, "%ld", i);
2089: }
2090: else
2091: {
2092: unsigned long int i = ulongval ();
2093: if (i != ($2))
2094: return 1;
2095: fprintf (f, "%lu", i);
2096: }
2097: /* Do not output a trailing newline, as this causes \r\n confusion
2098: on some platforms. */
2099: return ferror (f) || fclose (f) != 0;
2100:
2101: ;
2102: return 0;
2103: }
2104: _ACEOF
1.7 ! ohara 2105: if ac_fn_c_try_run "$LINENO"
! 2106: then :
1.1 noro 2107: echo >>conftest.val; read $3 <conftest.val; ac_retval=0
1.7 ! ohara 2108: else $as_nop
1.1 noro 2109: ac_retval=1
2110: fi
2111: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2112: conftest.$ac_objext conftest.beam conftest.$ac_ext
2113: rm -f conftest.val
2114:
2115: fi
2116: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2117: as_fn_set_status $ac_retval
2118:
2119: } # ac_fn_c_compute_int
1.7 ! ohara 2120: ac_configure_args_raw=
! 2121: for ac_arg
! 2122: do
! 2123: case $ac_arg in
! 2124: *\'*)
! 2125: ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
! 2126: esac
! 2127: as_fn_append ac_configure_args_raw " '$ac_arg'"
! 2128: done
! 2129:
! 2130: case $ac_configure_args_raw in
! 2131: *$as_nl*)
! 2132: ac_safe_unquote= ;;
! 2133: *)
! 2134: ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
! 2135: ac_unsafe_a="$ac_unsafe_z#~"
! 2136: ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
! 2137: ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
! 2138: esac
! 2139:
1.1 noro 2140: cat >config.log <<_ACEOF
2141: This file contains any messages produced by compilers while
2142: running configure, to aid debugging if configure makes a mistake.
2143:
1.5 ohara 2144: It was created by asir $as_me 1.16, which was
1.7 ! ohara 2145: generated by GNU Autoconf 2.71. Invocation command line was
1.1 noro 2146:
1.7 ! ohara 2147: $ $0$ac_configure_args_raw
1.1 noro 2148:
2149: _ACEOF
2150: exec 5>>config.log
2151: {
2152: cat <<_ASUNAME
2153: ## --------- ##
2154: ## Platform. ##
2155: ## --------- ##
2156:
2157: hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2158: uname -m = `(uname -m) 2>/dev/null || echo unknown`
2159: uname -r = `(uname -r) 2>/dev/null || echo unknown`
2160: uname -s = `(uname -s) 2>/dev/null || echo unknown`
2161: uname -v = `(uname -v) 2>/dev/null || echo unknown`
2162:
2163: /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2164: /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2165:
2166: /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2167: /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2168: /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2169: /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2170: /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2171: /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2172: /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2173:
2174: _ASUNAME
2175:
2176: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2177: for as_dir in $PATH
2178: do
2179: IFS=$as_save_IFS
1.7 ! ohara 2180: case $as_dir in #(((
! 2181: '') as_dir=./ ;;
! 2182: */) ;;
! 2183: *) as_dir=$as_dir/ ;;
! 2184: esac
! 2185: printf "%s\n" "PATH: $as_dir"
1.1 noro 2186: done
2187: IFS=$as_save_IFS
2188:
2189: } >&5
2190:
2191: cat >&5 <<_ACEOF
2192:
2193:
2194: ## ----------- ##
2195: ## Core tests. ##
2196: ## ----------- ##
2197:
2198: _ACEOF
2199:
2200:
2201: # Keep a trace of the command line.
2202: # Strip out --no-create and --no-recursion so they do not pile up.
2203: # Strip out --silent because we don't want to record it for future runs.
2204: # Also quote any args containing shell meta-characters.
2205: # Make two passes to allow for proper duplicate-argument suppression.
2206: ac_configure_args=
2207: ac_configure_args0=
2208: ac_configure_args1=
2209: ac_must_keep_next=false
2210: for ac_pass in 1 2
2211: do
2212: for ac_arg
2213: do
2214: case $ac_arg in
2215: -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2216: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2217: | -silent | --silent | --silen | --sile | --sil)
2218: continue ;;
2219: *\'*)
1.7 ! ohara 2220: ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1.1 noro 2221: esac
2222: case $ac_pass in
2223: 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2224: 2)
2225: as_fn_append ac_configure_args1 " '$ac_arg'"
2226: if test $ac_must_keep_next = true; then
2227: ac_must_keep_next=false # Got value, back to normal.
2228: else
2229: case $ac_arg in
2230: *=* | --config-cache | -C | -disable-* | --disable-* \
2231: | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2232: | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2233: | -with-* | --with-* | -without-* | --without-* | --x)
2234: case "$ac_configure_args0 " in
2235: "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2236: esac
2237: ;;
2238: -* ) ac_must_keep_next=true ;;
2239: esac
2240: fi
2241: as_fn_append ac_configure_args " '$ac_arg'"
2242: ;;
2243: esac
2244: done
2245: done
2246: { ac_configure_args0=; unset ac_configure_args0;}
2247: { ac_configure_args1=; unset ac_configure_args1;}
2248:
2249: # When interrupted or exit'd, cleanup temporary files, and complete
2250: # config.log. We remove comments because anyway the quotes in there
2251: # would cause problems or look ugly.
2252: # WARNING: Use '\'' to represent an apostrophe within the trap.
2253: # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2254: trap 'exit_status=$?
1.7 ! ohara 2255: # Sanitize IFS.
! 2256: IFS=" "" $as_nl"
1.1 noro 2257: # Save into config.log some information that might help in debugging.
2258: {
2259: echo
2260:
1.7 ! ohara 2261: printf "%s\n" "## ---------------- ##
1.1 noro 2262: ## Cache variables. ##
2263: ## ---------------- ##"
2264: echo
2265: # The following way of writing the cache mishandles newlines in values,
2266: (
2267: for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2268: eval ac_val=\$$ac_var
2269: case $ac_val in #(
2270: *${as_nl}*)
2271: case $ac_var in #(
1.7 ! ohara 2272: *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
! 2273: printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1.1 noro 2274: esac
2275: case $ac_var in #(
2276: _ | IFS | as_nl) ;; #(
2277: BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2278: *) { eval $ac_var=; unset $ac_var;} ;;
2279: esac ;;
2280: esac
2281: done
2282: (set) 2>&1 |
2283: case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2284: *${as_nl}ac_space=\ *)
2285: sed -n \
2286: "s/'\''/'\''\\\\'\'''\''/g;
2287: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2288: ;; #(
2289: *)
2290: sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2291: ;;
2292: esac |
2293: sort
2294: )
2295: echo
2296:
1.7 ! ohara 2297: printf "%s\n" "## ----------------- ##
1.1 noro 2298: ## Output variables. ##
2299: ## ----------------- ##"
2300: echo
2301: for ac_var in $ac_subst_vars
2302: do
2303: eval ac_val=\$$ac_var
2304: case $ac_val in
1.7 ! ohara 2305: *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1.1 noro 2306: esac
1.7 ! ohara 2307: printf "%s\n" "$ac_var='\''$ac_val'\''"
1.1 noro 2308: done | sort
2309: echo
2310:
2311: if test -n "$ac_subst_files"; then
1.7 ! ohara 2312: printf "%s\n" "## ------------------- ##
1.1 noro 2313: ## File substitutions. ##
2314: ## ------------------- ##"
2315: echo
2316: for ac_var in $ac_subst_files
2317: do
2318: eval ac_val=\$$ac_var
2319: case $ac_val in
1.7 ! ohara 2320: *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1.1 noro 2321: esac
1.7 ! ohara 2322: printf "%s\n" "$ac_var='\''$ac_val'\''"
1.1 noro 2323: done | sort
2324: echo
2325: fi
2326:
2327: if test -s confdefs.h; then
1.7 ! ohara 2328: printf "%s\n" "## ----------- ##
1.1 noro 2329: ## confdefs.h. ##
2330: ## ----------- ##"
2331: echo
2332: cat confdefs.h
2333: echo
2334: fi
2335: test "$ac_signal" != 0 &&
1.7 ! ohara 2336: printf "%s\n" "$as_me: caught signal $ac_signal"
! 2337: printf "%s\n" "$as_me: exit $exit_status"
1.1 noro 2338: } >&5
2339: rm -f core *.core core.conftest.* &&
2340: rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2341: exit $exit_status
2342: ' 0
2343: for ac_signal in 1 2 13 15; do
2344: trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2345: done
2346: ac_signal=0
2347:
2348: # confdefs.h avoids OS command line length limits that DEFS can exceed.
2349: rm -f -r conftest* confdefs.h
2350:
1.7 ! ohara 2351: printf "%s\n" "/* confdefs.h */" > confdefs.h
1.1 noro 2352:
2353: # Predefined preprocessor variables.
2354:
1.7 ! ohara 2355: printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
1.1 noro 2356:
1.7 ! ohara 2357: printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
1.1 noro 2358:
1.7 ! ohara 2359: printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
1.1 noro 2360:
1.7 ! ohara 2361: printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
1.1 noro 2362:
1.7 ! ohara 2363: printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
1.1 noro 2364:
1.7 ! ohara 2365: printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
1.1 noro 2366:
2367:
2368: # Let the site file select an alternate cache file if it wants to.
2369: # Prefer an explicitly selected file to automatically selected ones.
2370: if test -n "$CONFIG_SITE"; then
1.7 ! ohara 2371: ac_site_files="$CONFIG_SITE"
1.1 noro 2372: elif test "x$prefix" != xNONE; then
1.7 ! ohara 2373: ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
1.1 noro 2374: else
1.7 ! ohara 2375: ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1.1 noro 2376: fi
1.7 ! ohara 2377:
! 2378: for ac_site_file in $ac_site_files
1.1 noro 2379: do
1.7 ! ohara 2380: case $ac_site_file in #(
! 2381: */*) :
! 2382: ;; #(
! 2383: *) :
! 2384: ac_site_file=./$ac_site_file ;;
! 2385: esac
! 2386: if test -f "$ac_site_file" && test -r "$ac_site_file"; then
! 2387: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
! 2388: printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
1.1 noro 2389: sed 's/^/| /' "$ac_site_file" >&5
2390: . "$ac_site_file" \
1.7 ! ohara 2391: || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
! 2392: printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
1.1 noro 2393: as_fn_error $? "failed to load site script $ac_site_file
2394: See \`config.log' for more details" "$LINENO" 5; }
2395: fi
2396: done
2397:
2398: if test -r "$cache_file"; then
2399: # Some versions of bash will fail to source /dev/null (special files
2400: # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2401: if test /dev/null != "$cache_file" && test -f "$cache_file"; then
1.7 ! ohara 2402: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
! 2403: printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
1.1 noro 2404: case $cache_file in
2405: [\\/]* | ?:[\\/]* ) . "$cache_file";;
2406: *) . "./$cache_file";;
2407: esac
2408: fi
2409: else
1.7 ! ohara 2410: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
! 2411: printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
1.1 noro 2412: >$cache_file
2413: fi
2414:
1.7 ! ohara 2415: # Test code for whether the C compiler supports C89 (global declarations)
! 2416: ac_c_conftest_c89_globals='
! 2417: /* Does the compiler advertise C89 conformance?
! 2418: Do not test the value of __STDC__, because some compilers set it to 0
! 2419: while being otherwise adequately conformant. */
! 2420: #if !defined __STDC__
! 2421: # error "Compiler does not advertise C89 conformance"
! 2422: #endif
! 2423:
! 2424: #include <stddef.h>
! 2425: #include <stdarg.h>
! 2426: struct stat;
! 2427: /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
! 2428: struct buf { int x; };
! 2429: struct buf * (*rcsopen) (struct buf *, struct stat *, int);
! 2430: static char *e (p, i)
! 2431: char **p;
! 2432: int i;
! 2433: {
! 2434: return p[i];
! 2435: }
! 2436: static char *f (char * (*g) (char **, int), char **p, ...)
! 2437: {
! 2438: char *s;
! 2439: va_list v;
! 2440: va_start (v,p);
! 2441: s = g (p, va_arg (v,int));
! 2442: va_end (v);
! 2443: return s;
! 2444: }
! 2445:
! 2446: /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
! 2447: function prototypes and stuff, but not \xHH hex character constants.
! 2448: These do not provoke an error unfortunately, instead are silently treated
! 2449: as an "x". The following induces an error, until -std is added to get
! 2450: proper ANSI mode. Curiously \x00 != x always comes out true, for an
! 2451: array size at least. It is necessary to write \x00 == 0 to get something
! 2452: that is true only with -std. */
! 2453: int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
! 2454:
! 2455: /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
! 2456: inside strings and character constants. */
! 2457: #define FOO(x) '\''x'\''
! 2458: int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
! 2459:
! 2460: int test (int i, double x);
! 2461: struct s1 {int (*f) (int a);};
! 2462: struct s2 {int (*f) (double a);};
! 2463: int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
! 2464: int, int);'
! 2465:
! 2466: # Test code for whether the C compiler supports C89 (body of main).
! 2467: ac_c_conftest_c89_main='
! 2468: ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
! 2469: '
! 2470:
! 2471: # Test code for whether the C compiler supports C99 (global declarations)
! 2472: ac_c_conftest_c99_globals='
! 2473: // Does the compiler advertise C99 conformance?
! 2474: #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
! 2475: # error "Compiler does not advertise C99 conformance"
! 2476: #endif
! 2477:
! 2478: #include <stdbool.h>
! 2479: extern int puts (const char *);
! 2480: extern int printf (const char *, ...);
! 2481: extern int dprintf (int, const char *, ...);
! 2482: extern void *malloc (size_t);
! 2483:
! 2484: // Check varargs macros. These examples are taken from C99 6.10.3.5.
! 2485: // dprintf is used instead of fprintf to avoid needing to declare
! 2486: // FILE and stderr.
! 2487: #define debug(...) dprintf (2, __VA_ARGS__)
! 2488: #define showlist(...) puts (#__VA_ARGS__)
! 2489: #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
! 2490: static void
! 2491: test_varargs_macros (void)
! 2492: {
! 2493: int x = 1234;
! 2494: int y = 5678;
! 2495: debug ("Flag");
! 2496: debug ("X = %d\n", x);
! 2497: showlist (The first, second, and third items.);
! 2498: report (x>y, "x is %d but y is %d", x, y);
! 2499: }
! 2500:
! 2501: // Check long long types.
! 2502: #define BIG64 18446744073709551615ull
! 2503: #define BIG32 4294967295ul
! 2504: #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
! 2505: #if !BIG_OK
! 2506: #error "your preprocessor is broken"
! 2507: #endif
! 2508: #if BIG_OK
! 2509: #else
! 2510: #error "your preprocessor is broken"
! 2511: #endif
! 2512: static long long int bignum = -9223372036854775807LL;
! 2513: static unsigned long long int ubignum = BIG64;
! 2514:
! 2515: struct incomplete_array
! 2516: {
! 2517: int datasize;
! 2518: double data[];
! 2519: };
! 2520:
! 2521: struct named_init {
! 2522: int number;
! 2523: const wchar_t *name;
! 2524: double average;
! 2525: };
! 2526:
! 2527: typedef const char *ccp;
! 2528:
! 2529: static inline int
! 2530: test_restrict (ccp restrict text)
! 2531: {
! 2532: // See if C++-style comments work.
! 2533: // Iterate through items via the restricted pointer.
! 2534: // Also check for declarations in for loops.
! 2535: for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
! 2536: continue;
! 2537: return 0;
! 2538: }
! 2539:
! 2540: // Check varargs and va_copy.
! 2541: static bool
! 2542: test_varargs (const char *format, ...)
! 2543: {
! 2544: va_list args;
! 2545: va_start (args, format);
! 2546: va_list args_copy;
! 2547: va_copy (args_copy, args);
! 2548:
! 2549: const char *str = "";
! 2550: int number = 0;
! 2551: float fnumber = 0;
! 2552:
! 2553: while (*format)
! 2554: {
! 2555: switch (*format++)
! 2556: {
! 2557: case '\''s'\'': // string
! 2558: str = va_arg (args_copy, const char *);
! 2559: break;
! 2560: case '\''d'\'': // int
! 2561: number = va_arg (args_copy, int);
! 2562: break;
! 2563: case '\''f'\'': // float
! 2564: fnumber = va_arg (args_copy, double);
! 2565: break;
! 2566: default:
! 2567: break;
! 2568: }
! 2569: }
! 2570: va_end (args_copy);
! 2571: va_end (args);
! 2572:
! 2573: return *str && number && fnumber;
! 2574: }
! 2575: '
! 2576:
! 2577: # Test code for whether the C compiler supports C99 (body of main).
! 2578: ac_c_conftest_c99_main='
! 2579: // Check bool.
! 2580: _Bool success = false;
! 2581: success |= (argc != 0);
! 2582:
! 2583: // Check restrict.
! 2584: if (test_restrict ("String literal") == 0)
! 2585: success = true;
! 2586: char *restrict newvar = "Another string";
! 2587:
! 2588: // Check varargs.
! 2589: success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
! 2590: test_varargs_macros ();
! 2591:
! 2592: // Check flexible array members.
! 2593: struct incomplete_array *ia =
! 2594: malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
! 2595: ia->datasize = 10;
! 2596: for (int i = 0; i < ia->datasize; ++i)
! 2597: ia->data[i] = i * 1.234;
! 2598:
! 2599: // Check named initializers.
! 2600: struct named_init ni = {
! 2601: .number = 34,
! 2602: .name = L"Test wide string",
! 2603: .average = 543.34343,
! 2604: };
! 2605:
! 2606: ni.number = 58;
! 2607:
! 2608: int dynamic_array[ni.number];
! 2609: dynamic_array[0] = argv[0][0];
! 2610: dynamic_array[ni.number - 1] = 543;
! 2611:
! 2612: // work around unused variable warnings
! 2613: ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
! 2614: || dynamic_array[ni.number - 1] != 543);
! 2615: '
! 2616:
! 2617: # Test code for whether the C compiler supports C11 (global declarations)
! 2618: ac_c_conftest_c11_globals='
! 2619: // Does the compiler advertise C11 conformance?
! 2620: #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
! 2621: # error "Compiler does not advertise C11 conformance"
! 2622: #endif
! 2623:
! 2624: // Check _Alignas.
! 2625: char _Alignas (double) aligned_as_double;
! 2626: char _Alignas (0) no_special_alignment;
! 2627: extern char aligned_as_int;
! 2628: char _Alignas (0) _Alignas (int) aligned_as_int;
! 2629:
! 2630: // Check _Alignof.
! 2631: enum
! 2632: {
! 2633: int_alignment = _Alignof (int),
! 2634: int_array_alignment = _Alignof (int[100]),
! 2635: char_alignment = _Alignof (char)
! 2636: };
! 2637: _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
! 2638:
! 2639: // Check _Noreturn.
! 2640: int _Noreturn does_not_return (void) { for (;;) continue; }
! 2641:
! 2642: // Check _Static_assert.
! 2643: struct test_static_assert
! 2644: {
! 2645: int x;
! 2646: _Static_assert (sizeof (int) <= sizeof (long int),
! 2647: "_Static_assert does not work in struct");
! 2648: long int y;
! 2649: };
! 2650:
! 2651: // Check UTF-8 literals.
! 2652: #define u8 syntax error!
! 2653: char const utf8_literal[] = u8"happens to be ASCII" "another string";
! 2654:
! 2655: // Check duplicate typedefs.
! 2656: typedef long *long_ptr;
! 2657: typedef long int *long_ptr;
! 2658: typedef long_ptr long_ptr;
! 2659:
! 2660: // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
! 2661: struct anonymous
! 2662: {
! 2663: union {
! 2664: struct { int i; int j; };
! 2665: struct { int k; long int l; } w;
! 2666: };
! 2667: int m;
! 2668: } v1;
! 2669: '
! 2670:
! 2671: # Test code for whether the C compiler supports C11 (body of main).
! 2672: ac_c_conftest_c11_main='
! 2673: _Static_assert ((offsetof (struct anonymous, i)
! 2674: == offsetof (struct anonymous, w.k)),
! 2675: "Anonymous union alignment botch");
! 2676: v1.i = 2;
! 2677: v1.w.k = 5;
! 2678: ok |= v1.i != 5;
! 2679: '
! 2680:
! 2681: # Test code for whether the C compiler supports C11 (complete).
! 2682: ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
! 2683: ${ac_c_conftest_c99_globals}
! 2684: ${ac_c_conftest_c11_globals}
! 2685:
! 2686: int
! 2687: main (int argc, char **argv)
! 2688: {
! 2689: int ok = 0;
! 2690: ${ac_c_conftest_c89_main}
! 2691: ${ac_c_conftest_c99_main}
! 2692: ${ac_c_conftest_c11_main}
! 2693: return ok;
! 2694: }
! 2695: "
! 2696:
! 2697: # Test code for whether the C compiler supports C99 (complete).
! 2698: ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
! 2699: ${ac_c_conftest_c99_globals}
! 2700:
! 2701: int
! 2702: main (int argc, char **argv)
! 2703: {
! 2704: int ok = 0;
! 2705: ${ac_c_conftest_c89_main}
! 2706: ${ac_c_conftest_c99_main}
! 2707: return ok;
! 2708: }
! 2709: "
! 2710:
! 2711: # Test code for whether the C compiler supports C89 (complete).
! 2712: ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
! 2713:
! 2714: int
! 2715: main (int argc, char **argv)
! 2716: {
! 2717: int ok = 0;
! 2718: ${ac_c_conftest_c89_main}
! 2719: return ok;
! 2720: }
! 2721: "
! 2722:
! 2723: as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
! 2724: as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
! 2725: as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
! 2726: as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
! 2727: as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
! 2728: as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
! 2729: as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
! 2730: as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
! 2731: as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
! 2732:
! 2733: # Auxiliary files required by this configure script.
! 2734: ac_aux_files="compile ltmain.sh missing install-sh config.guess config.sub"
! 2735:
! 2736: # Locations in which to look for auxiliary files.
! 2737: ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
! 2738:
! 2739: # Search for a directory containing all of the required auxiliary files,
! 2740: # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
! 2741: # If we don't find one directory that contains all the files we need,
! 2742: # we report the set of missing files from the *first* directory in
! 2743: # $ac_aux_dir_candidates and give up.
! 2744: ac_missing_aux_files=""
! 2745: ac_first_candidate=:
! 2746: printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
! 2747: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
! 2748: as_found=false
! 2749: for as_dir in $ac_aux_dir_candidates
! 2750: do
! 2751: IFS=$as_save_IFS
! 2752: case $as_dir in #(((
! 2753: '') as_dir=./ ;;
! 2754: */) ;;
! 2755: *) as_dir=$as_dir/ ;;
! 2756: esac
! 2757: as_found=:
! 2758:
! 2759: printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
! 2760: ac_aux_dir_found=yes
! 2761: ac_install_sh=
! 2762: for ac_aux in $ac_aux_files
! 2763: do
! 2764: # As a special case, if "install-sh" is required, that requirement
! 2765: # can be satisfied by any of "install-sh", "install.sh", or "shtool",
! 2766: # and $ac_install_sh is set appropriately for whichever one is found.
! 2767: if test x"$ac_aux" = x"install-sh"
! 2768: then
! 2769: if test -f "${as_dir}install-sh"; then
! 2770: printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
! 2771: ac_install_sh="${as_dir}install-sh -c"
! 2772: elif test -f "${as_dir}install.sh"; then
! 2773: printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
! 2774: ac_install_sh="${as_dir}install.sh -c"
! 2775: elif test -f "${as_dir}shtool"; then
! 2776: printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
! 2777: ac_install_sh="${as_dir}shtool install -c"
! 2778: else
! 2779: ac_aux_dir_found=no
! 2780: if $ac_first_candidate; then
! 2781: ac_missing_aux_files="${ac_missing_aux_files} install-sh"
! 2782: else
! 2783: break
! 2784: fi
! 2785: fi
! 2786: else
! 2787: if test -f "${as_dir}${ac_aux}"; then
! 2788: printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
! 2789: else
! 2790: ac_aux_dir_found=no
! 2791: if $ac_first_candidate; then
! 2792: ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
! 2793: else
! 2794: break
! 2795: fi
! 2796: fi
! 2797: fi
! 2798: done
! 2799: if test "$ac_aux_dir_found" = yes; then
! 2800: ac_aux_dir="$as_dir"
! 2801: break
! 2802: fi
! 2803: ac_first_candidate=false
! 2804:
! 2805: as_found=false
! 2806: done
! 2807: IFS=$as_save_IFS
! 2808: if $as_found
! 2809: then :
! 2810:
! 2811: else $as_nop
! 2812: as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
! 2813: fi
! 2814:
! 2815:
! 2816: # These three variables are undocumented and unsupported,
! 2817: # and are intended to be withdrawn in a future Autoconf release.
! 2818: # They can cause serious problems if a builder's source tree is in a directory
! 2819: # whose full name contains unusual characters.
! 2820: if test -f "${ac_aux_dir}config.guess"; then
! 2821: ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
! 2822: fi
! 2823: if test -f "${ac_aux_dir}config.sub"; then
! 2824: ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
! 2825: fi
! 2826: if test -f "$ac_aux_dir/configure"; then
! 2827: ac_configure="$SHELL ${ac_aux_dir}configure"
! 2828: fi
! 2829:
1.1 noro 2830: # Check that the precious variables saved in the cache have kept the same
2831: # value.
2832: ac_cache_corrupted=false
2833: for ac_var in $ac_precious_vars; do
2834: eval ac_old_set=\$ac_cv_env_${ac_var}_set
2835: eval ac_new_set=\$ac_env_${ac_var}_set
2836: eval ac_old_val=\$ac_cv_env_${ac_var}_value
2837: eval ac_new_val=\$ac_env_${ac_var}_value
2838: case $ac_old_set,$ac_new_set in
2839: set,)
1.7 ! ohara 2840: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
! 2841: printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1.1 noro 2842: ac_cache_corrupted=: ;;
2843: ,set)
1.7 ! ohara 2844: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
! 2845: printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1.1 noro 2846: ac_cache_corrupted=: ;;
2847: ,);;
2848: *)
2849: if test "x$ac_old_val" != "x$ac_new_val"; then
2850: # differences in whitespace do not lead to failure.
2851: ac_old_val_w=`echo x $ac_old_val`
2852: ac_new_val_w=`echo x $ac_new_val`
2853: if test "$ac_old_val_w" != "$ac_new_val_w"; then
1.7 ! ohara 2854: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
! 2855: printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1.1 noro 2856: ac_cache_corrupted=:
2857: else
1.7 ! ohara 2858: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
! 2859: printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1.1 noro 2860: eval $ac_var=\$ac_old_val
2861: fi
1.7 ! ohara 2862: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
! 2863: printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
! 2864: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
! 2865: printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
1.1 noro 2866: fi;;
2867: esac
2868: # Pass precious variables to config.status.
2869: if test "$ac_new_set" = set; then
2870: case $ac_new_val in
1.7 ! ohara 2871: *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1.1 noro 2872: *) ac_arg=$ac_var=$ac_new_val ;;
2873: esac
2874: case " $ac_configure_args " in
2875: *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2876: *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2877: esac
2878: fi
2879: done
2880: if $ac_cache_corrupted; then
1.7 ! ohara 2881: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
! 2882: printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
! 2883: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
! 2884: printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
! 2885: as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
! 2886: and start over" "$LINENO" 5
1.1 noro 2887: fi
2888: ## -------------------- ##
2889: ## Main body of script. ##
2890: ## -------------------- ##
2891:
2892: ac_ext=c
2893: ac_cpp='$CPP $CPPFLAGS'
2894: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2895: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2896: ac_compiler_gnu=$ac_cv_c_compiler_gnu
2897:
2898:
2899:
2900:
2901:
2902:
2903:
1.7 ! ohara 2904: # Make sure we can run config.sub.
! 2905: $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
! 2906: as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
! 2907:
! 2908: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
! 2909: printf %s "checking build system type... " >&6; }
! 2910: if test ${ac_cv_build+y}
! 2911: then :
! 2912: printf %s "(cached) " >&6
! 2913: else $as_nop
1.1 noro 2914: ac_build_alias=$build_alias
2915: test "x$ac_build_alias" = x &&
1.7 ! ohara 2916: ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
1.1 noro 2917: test "x$ac_build_alias" = x &&
2918: as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
1.7 ! ohara 2919: ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
! 2920: as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
1.1 noro 2921:
2922: fi
1.7 ! ohara 2923: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
! 2924: printf "%s\n" "$ac_cv_build" >&6; }
1.1 noro 2925: case $ac_cv_build in
2926: *-*-*) ;;
2927: *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2928: esac
2929: build=$ac_cv_build
2930: ac_save_IFS=$IFS; IFS='-'
2931: set x $ac_cv_build
2932: shift
2933: build_cpu=$1
2934: build_vendor=$2
2935: shift; shift
2936: # Remember, the first character of IFS is used to create $*,
2937: # except with old shells:
2938: build_os=$*
2939: IFS=$ac_save_IFS
2940: case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2941:
2942:
1.7 ! ohara 2943: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
! 2944: printf %s "checking host system type... " >&6; }
! 2945: if test ${ac_cv_host+y}
! 2946: then :
! 2947: printf %s "(cached) " >&6
! 2948: else $as_nop
1.1 noro 2949: if test "x$host_alias" = x; then
2950: ac_cv_host=$ac_cv_build
2951: else
1.7 ! ohara 2952: ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
! 2953: as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
1.1 noro 2954: fi
2955:
2956: fi
1.7 ! ohara 2957: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
! 2958: printf "%s\n" "$ac_cv_host" >&6; }
1.1 noro 2959: case $ac_cv_host in
2960: *-*-*) ;;
2961: *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2962: esac
2963: host=$ac_cv_host
2964: ac_save_IFS=$IFS; IFS='-'
2965: set x $ac_cv_host
2966: shift
2967: host_cpu=$1
2968: host_vendor=$2
2969: shift; shift
2970: # Remember, the first character of IFS is used to create $*,
2971: # except with old shells:
2972: host_os=$*
2973: IFS=$ac_save_IFS
2974: case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2975:
2976:
1.7 ! ohara 2977: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
! 2978: printf %s "checking target system type... " >&6; }
! 2979: if test ${ac_cv_target+y}
! 2980: then :
! 2981: printf %s "(cached) " >&6
! 2982: else $as_nop
1.1 noro 2983: if test "x$target_alias" = x; then
2984: ac_cv_target=$ac_cv_host
2985: else
1.7 ! ohara 2986: ac_cv_target=`$SHELL "${ac_aux_dir}config.sub" $target_alias` ||
! 2987: as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $target_alias failed" "$LINENO" 5
1.1 noro 2988: fi
2989:
2990: fi
1.7 ! ohara 2991: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
! 2992: printf "%s\n" "$ac_cv_target" >&6; }
1.1 noro 2993: case $ac_cv_target in
2994: *-*-*) ;;
2995: *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2996: esac
2997: target=$ac_cv_target
2998: ac_save_IFS=$IFS; IFS='-'
2999: set x $ac_cv_target
3000: shift
3001: target_cpu=$1
3002: target_vendor=$2
3003: shift; shift
3004: # Remember, the first character of IFS is used to create $*,
3005: # except with old shells:
3006: target_os=$*
3007: IFS=$ac_save_IFS
3008: case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3009:
3010:
3011: # The aliases save the names the user supplied, while $host etc.
3012: # will get canonicalized.
3013: test -n "$target_alias" &&
3014: test "$program_prefix$program_suffix$program_transform_name" = \
3015: NONENONEs,x,x, &&
3016: program_prefix=${target_alias}-
1.5 ohara 3017: am__api_version='1.16'
1.1 noro 3018:
1.7 ! ohara 3019:
! 3020: # Find a good install program. We prefer a C program (faster),
1.1 noro 3021: # so one script is as good as another. But avoid the broken or
3022: # incompatible versions:
3023: # SysV /etc/install, /usr/sbin/install
3024: # SunOS /usr/etc/install
3025: # IRIX /sbin/install
3026: # AIX /bin/install
3027: # AmigaOS /C/install, which installs bootblocks on floppy discs
3028: # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3029: # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3030: # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3031: # OS/2's system install, which has a completely different semantic
3032: # ./install, which can be erroneously created by make from ./install.sh.
3033: # Reject install programs that cannot install multiple files.
1.7 ! ohara 3034: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
! 3035: printf %s "checking for a BSD-compatible install... " >&6; }
1.1 noro 3036: if test -z "$INSTALL"; then
1.7 ! ohara 3037: if test ${ac_cv_path_install+y}
! 3038: then :
! 3039: printf %s "(cached) " >&6
! 3040: else $as_nop
1.1 noro 3041: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3042: for as_dir in $PATH
3043: do
3044: IFS=$as_save_IFS
1.7 ! ohara 3045: case $as_dir in #(((
! 3046: '') as_dir=./ ;;
! 3047: */) ;;
! 3048: *) as_dir=$as_dir/ ;;
! 3049: esac
! 3050: # Account for fact that we put trailing slashes in our PATH walk.
! 3051: case $as_dir in #((
! 3052: ./ | /[cC]/* | \
1.1 noro 3053: /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3054: ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3055: /usr/ucb/* ) ;;
3056: *)
3057: # OSF1 and SCO ODT 3.0 have their own names for install.
3058: # Don't use installbsd from OSF since it installs stuff as root
3059: # by default.
3060: for ac_prog in ginstall scoinst install; do
3061: for ac_exec_ext in '' $ac_executable_extensions; do
1.7 ! ohara 3062: if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
1.1 noro 3063: if test $ac_prog = install &&
1.7 ! ohara 3064: grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1.1 noro 3065: # AIX install. It has an incompatible calling convention.
3066: :
3067: elif test $ac_prog = install &&
1.7 ! ohara 3068: grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1.1 noro 3069: # program-specific install script used by HP pwplus--don't use.
3070: :
3071: else
3072: rm -rf conftest.one conftest.two conftest.dir
3073: echo one > conftest.one
3074: echo two > conftest.two
3075: mkdir conftest.dir
1.7 ! ohara 3076: if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
1.1 noro 3077: test -s conftest.one && test -s conftest.two &&
3078: test -s conftest.dir/conftest.one &&
3079: test -s conftest.dir/conftest.two
3080: then
1.7 ! ohara 3081: ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
1.1 noro 3082: break 3
3083: fi
3084: fi
3085: fi
3086: done
3087: done
3088: ;;
3089: esac
3090:
3091: done
3092: IFS=$as_save_IFS
3093:
3094: rm -rf conftest.one conftest.two conftest.dir
3095:
3096: fi
1.7 ! ohara 3097: if test ${ac_cv_path_install+y}; then
1.1 noro 3098: INSTALL=$ac_cv_path_install
3099: else
3100: # As a last resort, use the slow shell script. Don't cache a
3101: # value for INSTALL within a source directory, because that will
3102: # break other packages using the cache if that directory is
3103: # removed, or if the value is a relative name.
3104: INSTALL=$ac_install_sh
3105: fi
3106: fi
1.7 ! ohara 3107: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
! 3108: printf "%s\n" "$INSTALL" >&6; }
1.1 noro 3109:
3110: # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3111: # It thinks the first close brace ends the variable substitution.
3112: test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3113:
3114: test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3115:
3116: test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3117:
1.7 ! ohara 3118: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
! 3119: printf %s "checking whether build environment is sane... " >&6; }
1.1 noro 3120: # Reject unsafe characters in $srcdir or the absolute working directory
3121: # name. Accept space and tab only in the latter.
3122: am_lf='
3123: '
3124: case `pwd` in
3125: *[\\\"\#\$\&\'\`$am_lf]*)
3126: as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3127: esac
3128: case $srcdir in
3129: *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3130: as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3131: esac
3132:
3133: # Do 'set' in a subshell so we don't clobber the current shell's
3134: # arguments. Must try -L first in case configure is actually a
3135: # symlink; some systems play weird games with the mod time of symlinks
3136: # (eg FreeBSD returns the mod time of the symlink's containing
3137: # directory).
3138: if (
3139: am_has_slept=no
3140: for am_try in 1 2; do
3141: echo "timestamp, slept: $am_has_slept" > conftest.file
3142: set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3143: if test "$*" = "X"; then
3144: # -L didn't work.
3145: set X `ls -t "$srcdir/configure" conftest.file`
3146: fi
3147: if test "$*" != "X $srcdir/configure conftest.file" \
3148: && test "$*" != "X conftest.file $srcdir/configure"; then
3149:
3150: # If neither matched, then we have a broken ls. This can happen
3151: # if, for instance, CONFIG_SHELL is bash and it inherits a
3152: # broken ls alias from the environment. This has actually
3153: # happened. Such a system could not be considered "sane".
3154: as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3155: alias in your environment" "$LINENO" 5
3156: fi
3157: if test "$2" = conftest.file || test $am_try -eq 2; then
3158: break
3159: fi
3160: # Just in case.
3161: sleep 1
3162: am_has_slept=yes
3163: done
3164: test "$2" = conftest.file
3165: )
3166: then
3167: # Ok.
3168: :
3169: else
3170: as_fn_error $? "newly created file is older than distributed files!
3171: Check your system clock" "$LINENO" 5
3172: fi
1.7 ! ohara 3173: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
! 3174: printf "%s\n" "yes" >&6; }
1.1 noro 3175: # If we didn't sleep, we still need to ensure time stamps of config.status and
3176: # generated files are strictly newer.
3177: am_sleep_pid=
3178: if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3179: ( sleep 1 ) &
3180: am_sleep_pid=$!
3181: fi
3182:
3183: rm -f conftest.file
3184:
3185: test "$program_prefix" != NONE &&
3186: program_transform_name="s&^&$program_prefix&;$program_transform_name"
3187: # Use a double $ so make ignores it.
3188: test "$program_suffix" != NONE &&
3189: program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3190: # Double any \ or $.
3191: # By default was `s,x,x', remove it if useless.
3192: ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
1.7 ! ohara 3193: program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
! 3194:
1.1 noro 3195:
3196: # Expand $ac_aux_dir to an absolute path.
3197: am_aux_dir=`cd "$ac_aux_dir" && pwd`
3198:
1.7 ! ohara 3199:
! 3200: if test x"${MISSING+set}" != xset; then
! 3201: MISSING="\${SHELL} '$am_aux_dir/missing'"
1.1 noro 3202: fi
3203: # Use eval to expand $SHELL
3204: if eval "$MISSING --is-lightweight"; then
3205: am_missing_run="$MISSING "
3206: else
3207: am_missing_run=
1.7 ! ohara 3208: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
! 3209: printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
1.1 noro 3210: fi
3211:
1.3 noro 3212: if test x"${install_sh+set}" != xset; then
1.1 noro 3213: case $am_aux_dir in
3214: *\ * | *\ *)
3215: install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3216: *)
3217: install_sh="\${SHELL} $am_aux_dir/install-sh"
3218: esac
3219: fi
3220:
3221: # Installed binaries are usually stripped using 'strip' when the user
3222: # run "make install-strip". However 'strip' might not be the right
3223: # tool to use in cross-compilation environments, therefore Automake
3224: # will honor the 'STRIP' environment variable to overrule this program.
3225: if test "$cross_compiling" != no; then
3226: if test -n "$ac_tool_prefix"; then
3227: # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3228: set dummy ${ac_tool_prefix}strip; ac_word=$2
1.7 ! ohara 3229: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 3230: printf %s "checking for $ac_word... " >&6; }
! 3231: if test ${ac_cv_prog_STRIP+y}
! 3232: then :
! 3233: printf %s "(cached) " >&6
! 3234: else $as_nop
1.1 noro 3235: if test -n "$STRIP"; then
3236: ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3237: else
3238: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3239: for as_dir in $PATH
3240: do
3241: IFS=$as_save_IFS
1.7 ! ohara 3242: case $as_dir in #(((
! 3243: '') as_dir=./ ;;
! 3244: */) ;;
! 3245: *) as_dir=$as_dir/ ;;
! 3246: esac
1.1 noro 3247: for ac_exec_ext in '' $ac_executable_extensions; do
1.7 ! ohara 3248: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.1 noro 3249: ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1.7 ! ohara 3250: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.1 noro 3251: break 2
3252: fi
3253: done
3254: done
3255: IFS=$as_save_IFS
3256:
3257: fi
3258: fi
3259: STRIP=$ac_cv_prog_STRIP
3260: if test -n "$STRIP"; then
1.7 ! ohara 3261: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
! 3262: printf "%s\n" "$STRIP" >&6; }
1.1 noro 3263: else
1.7 ! ohara 3264: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 3265: printf "%s\n" "no" >&6; }
1.1 noro 3266: fi
3267:
3268:
3269: fi
3270: if test -z "$ac_cv_prog_STRIP"; then
3271: ac_ct_STRIP=$STRIP
3272: # Extract the first word of "strip", so it can be a program name with args.
3273: set dummy strip; ac_word=$2
1.7 ! ohara 3274: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 3275: printf %s "checking for $ac_word... " >&6; }
! 3276: if test ${ac_cv_prog_ac_ct_STRIP+y}
! 3277: then :
! 3278: printf %s "(cached) " >&6
! 3279: else $as_nop
1.1 noro 3280: if test -n "$ac_ct_STRIP"; then
3281: ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3282: else
3283: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3284: for as_dir in $PATH
3285: do
3286: IFS=$as_save_IFS
1.7 ! ohara 3287: case $as_dir in #(((
! 3288: '') as_dir=./ ;;
! 3289: */) ;;
! 3290: *) as_dir=$as_dir/ ;;
! 3291: esac
1.1 noro 3292: for ac_exec_ext in '' $ac_executable_extensions; do
1.7 ! ohara 3293: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.1 noro 3294: ac_cv_prog_ac_ct_STRIP="strip"
1.7 ! ohara 3295: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.1 noro 3296: break 2
3297: fi
3298: done
3299: done
3300: IFS=$as_save_IFS
3301:
3302: fi
3303: fi
3304: ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3305: if test -n "$ac_ct_STRIP"; then
1.7 ! ohara 3306: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
! 3307: printf "%s\n" "$ac_ct_STRIP" >&6; }
1.1 noro 3308: else
1.7 ! ohara 3309: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 3310: printf "%s\n" "no" >&6; }
1.1 noro 3311: fi
3312:
3313: if test "x$ac_ct_STRIP" = x; then
3314: STRIP=":"
3315: else
3316: case $cross_compiling:$ac_tool_warned in
3317: yes:)
1.7 ! ohara 3318: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
! 3319: printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
1.1 noro 3320: ac_tool_warned=yes ;;
3321: esac
3322: STRIP=$ac_ct_STRIP
3323: fi
3324: else
3325: STRIP="$ac_cv_prog_STRIP"
3326: fi
3327:
3328: fi
3329: INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3330:
1.7 ! ohara 3331:
! 3332: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
! 3333: printf %s "checking for a race-free mkdir -p... " >&6; }
1.1 noro 3334: if test -z "$MKDIR_P"; then
1.7 ! ohara 3335: if test ${ac_cv_path_mkdir+y}
! 3336: then :
! 3337: printf %s "(cached) " >&6
! 3338: else $as_nop
1.1 noro 3339: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3340: for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3341: do
3342: IFS=$as_save_IFS
1.7 ! ohara 3343: case $as_dir in #(((
! 3344: '') as_dir=./ ;;
! 3345: */) ;;
! 3346: *) as_dir=$as_dir/ ;;
! 3347: esac
1.1 noro 3348: for ac_prog in mkdir gmkdir; do
3349: for ac_exec_ext in '' $ac_executable_extensions; do
1.7 ! ohara 3350: as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
! 3351: case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
! 3352: 'mkdir ('*'coreutils) '* | \
! 3353: 'BusyBox '* | \
1.1 noro 3354: 'mkdir (fileutils) '4.1*)
1.7 ! ohara 3355: ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
1.1 noro 3356: break 3;;
3357: esac
3358: done
3359: done
3360: done
3361: IFS=$as_save_IFS
3362:
3363: fi
3364:
3365: test -d ./--version && rmdir ./--version
1.7 ! ohara 3366: if test ${ac_cv_path_mkdir+y}; then
1.1 noro 3367: MKDIR_P="$ac_cv_path_mkdir -p"
3368: else
3369: # As a last resort, use the slow shell script. Don't cache a
3370: # value for MKDIR_P within a source directory, because that will
3371: # break other packages using the cache if that directory is
3372: # removed, or if the value is a relative name.
3373: MKDIR_P="$ac_install_sh -d"
3374: fi
3375: fi
1.7 ! ohara 3376: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
! 3377: printf "%s\n" "$MKDIR_P" >&6; }
1.1 noro 3378:
3379: for ac_prog in gawk mawk nawk awk
3380: do
3381: # Extract the first word of "$ac_prog", so it can be a program name with args.
3382: set dummy $ac_prog; ac_word=$2
1.7 ! ohara 3383: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 3384: printf %s "checking for $ac_word... " >&6; }
! 3385: if test ${ac_cv_prog_AWK+y}
! 3386: then :
! 3387: printf %s "(cached) " >&6
! 3388: else $as_nop
1.1 noro 3389: if test -n "$AWK"; then
3390: ac_cv_prog_AWK="$AWK" # Let the user override the test.
3391: else
3392: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3393: for as_dir in $PATH
3394: do
3395: IFS=$as_save_IFS
1.7 ! ohara 3396: case $as_dir in #(((
! 3397: '') as_dir=./ ;;
! 3398: */) ;;
! 3399: *) as_dir=$as_dir/ ;;
! 3400: esac
1.1 noro 3401: for ac_exec_ext in '' $ac_executable_extensions; do
1.7 ! ohara 3402: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.1 noro 3403: ac_cv_prog_AWK="$ac_prog"
1.7 ! ohara 3404: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.1 noro 3405: break 2
3406: fi
3407: done
3408: done
3409: IFS=$as_save_IFS
3410:
3411: fi
3412: fi
3413: AWK=$ac_cv_prog_AWK
3414: if test -n "$AWK"; then
1.7 ! ohara 3415: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
! 3416: printf "%s\n" "$AWK" >&6; }
1.1 noro 3417: else
1.7 ! ohara 3418: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 3419: printf "%s\n" "no" >&6; }
1.1 noro 3420: fi
3421:
3422:
3423: test -n "$AWK" && break
3424: done
3425:
1.7 ! ohara 3426: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
! 3427: printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
1.1 noro 3428: set x ${MAKE-make}
1.7 ! ohara 3429: ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
! 3430: if eval test \${ac_cv_prog_make_${ac_make}_set+y}
! 3431: then :
! 3432: printf %s "(cached) " >&6
! 3433: else $as_nop
1.1 noro 3434: cat >conftest.make <<\_ACEOF
3435: SHELL = /bin/sh
3436: all:
3437: @echo '@@@%%%=$(MAKE)=@@@%%%'
3438: _ACEOF
3439: # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3440: case `${MAKE-make} -f conftest.make 2>/dev/null` in
3441: *@@@%%%=?*=@@@%%%*)
3442: eval ac_cv_prog_make_${ac_make}_set=yes;;
3443: *)
3444: eval ac_cv_prog_make_${ac_make}_set=no;;
3445: esac
3446: rm -f conftest.make
3447: fi
3448: if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
1.7 ! ohara 3449: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
! 3450: printf "%s\n" "yes" >&6; }
1.1 noro 3451: SET_MAKE=
3452: else
1.7 ! ohara 3453: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 3454: printf "%s\n" "no" >&6; }
1.1 noro 3455: SET_MAKE="MAKE=${MAKE-make}"
3456: fi
3457:
3458: rm -rf .tst 2>/dev/null
3459: mkdir .tst 2>/dev/null
3460: if test -d .tst; then
3461: am__leading_dot=.
3462: else
3463: am__leading_dot=_
3464: fi
3465: rmdir .tst 2>/dev/null
3466:
3467: # Check whether --enable-silent-rules was given.
1.7 ! ohara 3468: if test ${enable_silent_rules+y}
! 3469: then :
1.1 noro 3470: enableval=$enable_silent_rules;
3471: fi
3472:
3473: case $enable_silent_rules in # (((
3474: yes) AM_DEFAULT_VERBOSITY=0;;
3475: no) AM_DEFAULT_VERBOSITY=1;;
3476: *) AM_DEFAULT_VERBOSITY=1;;
3477: esac
3478: am_make=${MAKE-make}
1.7 ! ohara 3479: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
! 3480: printf %s "checking whether $am_make supports nested variables... " >&6; }
! 3481: if test ${am_cv_make_support_nested_variables+y}
! 3482: then :
! 3483: printf %s "(cached) " >&6
! 3484: else $as_nop
! 3485: if printf "%s\n" 'TRUE=$(BAR$(V))
1.1 noro 3486: BAR0=false
3487: BAR1=true
3488: V=1
3489: am__doit:
3490: @$(TRUE)
3491: .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3492: am_cv_make_support_nested_variables=yes
3493: else
3494: am_cv_make_support_nested_variables=no
3495: fi
3496: fi
1.7 ! ohara 3497: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
! 3498: printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
1.1 noro 3499: if test $am_cv_make_support_nested_variables = yes; then
3500: AM_V='$(V)'
3501: AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3502: else
3503: AM_V=$AM_DEFAULT_VERBOSITY
3504: AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3505: fi
3506: AM_BACKSLASH='\'
3507:
3508: if test "`cd $srcdir && pwd`" != "`pwd`"; then
3509: # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3510: # is not polluted with repeated "-I."
3511: am__isrc=' -I$(srcdir)'
3512: # test to see if srcdir already configured
3513: if test -f $srcdir/config.status; then
3514: as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3515: fi
3516: fi
3517:
3518: # test whether we have cygpath
3519: if test -z "$CYGPATH_W"; then
3520: if (cygpath --version) >/dev/null 2>/dev/null; then
3521: CYGPATH_W='cygpath -w'
3522: else
3523: CYGPATH_W=echo
3524: fi
3525: fi
3526:
3527:
3528: # Define the identity of the package.
3529: PACKAGE='asir'
1.5 ohara 3530: VERSION='1.16'
1.1 noro 3531:
3532:
1.7 ! ohara 3533: printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
1.1 noro 3534:
3535:
1.7 ! ohara 3536: printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
1.1 noro 3537:
3538: # Some tools Automake needs.
3539:
3540: ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3541:
3542:
3543: AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3544:
3545:
3546: AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3547:
3548:
3549: AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3550:
3551:
3552: MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3553:
3554: # For better backward compatibility. To be removed once Automake 1.9.x
3555: # dies out for good. For more background, see:
1.5 ohara 3556: # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3557: # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
1.1 noro 3558: mkdir_p='$(MKDIR_P)'
3559:
1.3 noro 3560: # We need awk for the "check" target (and possibly the TAP driver). The
3561: # system "awk" is bad on some platforms.
1.1 noro 3562: # Always define AMTAR for backward compatibility. Yes, it's still used
3563: # in the wild :-( We should find a proper way to deprecate it ...
3564: AMTAR='$${TAR-tar}'
3565:
3566:
3567: # We'll loop over all known methods to create a tar archive until one works.
3568: _am_tools='gnutar pax cpio none'
3569:
3570: am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3571:
3572:
3573:
3574:
3575:
1.7 ! ohara 3576: # Variables for tags utilities; see am/tags.am
! 3577: if test -z "$CTAGS"; then
! 3578: CTAGS=ctags
! 3579: fi
! 3580:
! 3581: if test -z "$ETAGS"; then
! 3582: ETAGS=etags
! 3583: fi
! 3584:
! 3585: if test -z "$CSCOPE"; then
! 3586: CSCOPE=cscope
! 3587: fi
! 3588:
! 3589:
1.1 noro 3590:
3591: # POSIX will say in a future version that running "rm -f" with no argument
3592: # is OK; and we want to be able to make that assumption in our Makefile
3593: # recipes. So use an aggressive probe to check that the usage we want is
3594: # actually supported "in the wild" to an acceptable degree.
3595: # See automake bug#10828.
3596: # To make any issue more visible, cause the running configure to be aborted
3597: # by default if the 'rm' program in use doesn't match our expectations; the
3598: # user can still override this though.
3599: if rm -f && rm -fr && rm -rf; then : OK; else
3600: cat >&2 <<'END'
3601: Oops!
3602:
3603: Your 'rm' program seems unable to run without file operands specified
3604: on the command line, even when the '-f' option is present. This is contrary
3605: to the behaviour of most rm programs out there, and not conforming with
3606: the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3607:
3608: Please tell bug-automake@gnu.org about your system, including the value
3609: of your $PATH and any error possibly output before this message. This
3610: can help us improve future automake versions.
3611:
3612: END
3613: if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3614: echo 'Configuration will proceed anyway, since you have set the' >&2
3615: echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3616: echo >&2
3617: else
3618: cat >&2 <<'END'
3619: Aborting the configuration process, to ensure you take notice of the issue.
3620:
3621: You can download and install GNU coreutils to get an 'rm' implementation
1.5 ohara 3622: that behaves properly: <https://www.gnu.org/software/coreutils/>.
1.1 noro 3623:
3624: If you want to complete the configuration process using your problematic
3625: 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3626: to "yes", and re-run configure.
3627:
3628: END
3629: as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3630: fi
3631: fi
3632:
3633:
1.7 ! ohara 3634: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
! 3635: printf %s "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
1.1 noro 3636: # Check whether --enable-maintainer-mode was given.
1.7 ! ohara 3637: if test ${enable_maintainer_mode+y}
! 3638: then :
1.1 noro 3639: enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
1.7 ! ohara 3640: else $as_nop
1.1 noro 3641: USE_MAINTAINER_MODE=no
3642: fi
3643:
1.7 ! ohara 3644: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
! 3645: printf "%s\n" "$USE_MAINTAINER_MODE" >&6; }
1.1 noro 3646: if test $USE_MAINTAINER_MODE = yes; then
3647: MAINTAINER_MODE_TRUE=
3648: MAINTAINER_MODE_FALSE='#'
3649: else
3650: MAINTAINER_MODE_TRUE='#'
3651: MAINTAINER_MODE_FALSE=
3652: fi
3653:
3654: MAINT=$MAINTAINER_MODE_TRUE
3655:
3656:
1.5 ohara 3657: case `pwd` in
3658: *\ * | *\ *)
1.7 ! ohara 3659: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
! 3660: printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
1.5 ohara 3661: esac
3662:
1.1 noro 3663:
3664:
1.7 ! ohara 3665: macro_version='2.4.7'
! 3666: macro_revision='2.4.7'
! 3667:
1.5 ohara 3668:
3669:
3670:
3671:
3672:
3673:
3674:
3675:
3676:
3677:
3678:
3679:
3680:
3681: ltmain=$ac_aux_dir/ltmain.sh
3682:
3683: # Backslashify metacharacters that are still active within
3684: # double-quoted strings.
3685: sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3686:
3687: # Same as above, but do not quote variable references.
3688: double_quote_subst='s/\(["`\\]\)/\\\1/g'
3689:
3690: # Sed substitution to delay expansion of an escaped shell variable in a
3691: # double_quote_subst'ed string.
3692: delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3693:
3694: # Sed substitution to delay expansion of an escaped single quote.
3695: delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3696:
3697: # Sed substitution to avoid accidental globbing in evaled expressions
3698: no_glob_subst='s/\*/\\\*/g'
3699:
3700: ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3701: ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3702: ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3703:
1.7 ! ohara 3704: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
! 3705: printf %s "checking how to print strings... " >&6; }
1.5 ohara 3706: # Test print first, because it will be a builtin if present.
3707: if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
3708: test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3709: ECHO='print -r --'
3710: elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3711: ECHO='printf %s\n'
3712: else
3713: # Use this function as a fallback that always works.
3714: func_fallback_echo ()
3715: {
3716: eval 'cat <<_LTECHO_EOF
3717: $1
3718: _LTECHO_EOF'
3719: }
3720: ECHO='func_fallback_echo'
3721: fi
3722:
3723: # func_echo_all arg...
3724: # Invoke $ECHO with all args, space-separated.
3725: func_echo_all ()
3726: {
3727: $ECHO ""
3728: }
3729:
3730: case $ECHO in
1.7 ! ohara 3731: printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
! 3732: printf "%s\n" "printf" >&6; } ;;
! 3733: print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
! 3734: printf "%s\n" "print -r" >&6; } ;;
! 3735: *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
! 3736: printf "%s\n" "cat" >&6; } ;;
1.5 ohara 3737: esac
3738:
3739:
3740:
3741:
3742:
3743:
3744:
3745:
3746:
3747:
3748:
3749:
3750:
3751:
1.7 ! ohara 3752:
! 3753:
! 3754:
! 3755:
! 3756:
! 3757:
! 3758:
! 3759:
! 3760:
1.5 ohara 3761: DEPDIR="${am__leading_dot}deps"
3762:
3763: ac_config_commands="$ac_config_commands depfiles"
3764:
1.7 ! ohara 3765: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
! 3766: printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
1.5 ohara 3767: cat > confinc.mk << 'END'
3768: am__doit:
3769: @echo this is the am__doit target >confinc.out
3770: .PHONY: am__doit
3771: END
3772: am__include="#"
3773: am__quote=
3774: # BSD make does it like this.
3775: echo '.include "confinc.mk" # ignored' > confmf.BSD
3776: # Other make implementations (GNU, Solaris 10, AIX) do it like this.
3777: echo 'include confinc.mk # ignored' > confmf.GNU
3778: _am_result=no
3779: for s in GNU BSD; do
3780: { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3781: (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3782: ac_status=$?
3783: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3784: (exit $ac_status); }
3785: case $?:`cat confinc.out 2>/dev/null` in #(
3786: '0:this is the am__doit target') :
3787: case $s in #(
3788: BSD) :
3789: am__include='.include' am__quote='"' ;; #(
3790: *) :
3791: am__include='include' am__quote='' ;;
3792: esac ;; #(
3793: *) :
3794: ;;
3795: esac
3796: if test "$am__include" != "#"; then
3797: _am_result="yes ($s style)"
3798: break
3799: fi
3800: done
3801: rm -f confinc.* confmf.*
1.7 ! ohara 3802: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
! 3803: printf "%s\n" "${_am_result}" >&6; }
1.5 ohara 3804:
3805: # Check whether --enable-dependency-tracking was given.
1.7 ! ohara 3806: if test ${enable_dependency_tracking+y}
! 3807: then :
1.5 ohara 3808: enableval=$enable_dependency_tracking;
3809: fi
3810:
3811: if test "x$enable_dependency_tracking" != xno; then
3812: am_depcomp="$ac_aux_dir/depcomp"
3813: AMDEPBACKSLASH='\'
3814: am__nodep='_no'
3815: fi
3816: if test "x$enable_dependency_tracking" != xno; then
3817: AMDEP_TRUE=
3818: AMDEP_FALSE='#'
3819: else
3820: AMDEP_TRUE='#'
3821: AMDEP_FALSE=
3822: fi
3823:
3824:
3825: ac_ext=c
3826: ac_cpp='$CPP $CPPFLAGS'
3827: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3828: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3829: ac_compiler_gnu=$ac_cv_c_compiler_gnu
3830: if test -n "$ac_tool_prefix"; then
3831: # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3832: set dummy ${ac_tool_prefix}gcc; ac_word=$2
1.7 ! ohara 3833: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 3834: printf %s "checking for $ac_word... " >&6; }
! 3835: if test ${ac_cv_prog_CC+y}
! 3836: then :
! 3837: printf %s "(cached) " >&6
! 3838: else $as_nop
1.5 ohara 3839: if test -n "$CC"; then
3840: ac_cv_prog_CC="$CC" # Let the user override the test.
3841: else
3842: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3843: for as_dir in $PATH
3844: do
3845: IFS=$as_save_IFS
1.7 ! ohara 3846: case $as_dir in #(((
! 3847: '') as_dir=./ ;;
! 3848: */) ;;
! 3849: *) as_dir=$as_dir/ ;;
! 3850: esac
1.5 ohara 3851: for ac_exec_ext in '' $ac_executable_extensions; do
1.7 ! ohara 3852: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.5 ohara 3853: ac_cv_prog_CC="${ac_tool_prefix}gcc"
1.7 ! ohara 3854: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.5 ohara 3855: break 2
3856: fi
3857: done
3858: done
3859: IFS=$as_save_IFS
3860:
3861: fi
3862: fi
3863: CC=$ac_cv_prog_CC
3864: if test -n "$CC"; then
1.7 ! ohara 3865: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
! 3866: printf "%s\n" "$CC" >&6; }
1.5 ohara 3867: else
1.7 ! ohara 3868: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 3869: printf "%s\n" "no" >&6; }
1.5 ohara 3870: fi
1.1 noro 3871:
3872:
3873: fi
3874: if test -z "$ac_cv_prog_CC"; then
3875: ac_ct_CC=$CC
3876: # Extract the first word of "gcc", so it can be a program name with args.
3877: set dummy gcc; ac_word=$2
1.7 ! ohara 3878: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 3879: printf %s "checking for $ac_word... " >&6; }
! 3880: if test ${ac_cv_prog_ac_ct_CC+y}
! 3881: then :
! 3882: printf %s "(cached) " >&6
! 3883: else $as_nop
1.1 noro 3884: if test -n "$ac_ct_CC"; then
3885: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3886: else
3887: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3888: for as_dir in $PATH
3889: do
3890: IFS=$as_save_IFS
1.7 ! ohara 3891: case $as_dir in #(((
! 3892: '') as_dir=./ ;;
! 3893: */) ;;
! 3894: *) as_dir=$as_dir/ ;;
! 3895: esac
1.1 noro 3896: for ac_exec_ext in '' $ac_executable_extensions; do
1.7 ! ohara 3897: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.1 noro 3898: ac_cv_prog_ac_ct_CC="gcc"
1.7 ! ohara 3899: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.1 noro 3900: break 2
3901: fi
3902: done
3903: done
3904: IFS=$as_save_IFS
3905:
3906: fi
3907: fi
3908: ac_ct_CC=$ac_cv_prog_ac_ct_CC
3909: if test -n "$ac_ct_CC"; then
1.7 ! ohara 3910: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
! 3911: printf "%s\n" "$ac_ct_CC" >&6; }
1.1 noro 3912: else
1.7 ! ohara 3913: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 3914: printf "%s\n" "no" >&6; }
1.1 noro 3915: fi
3916:
3917: if test "x$ac_ct_CC" = x; then
3918: CC=""
3919: else
3920: case $cross_compiling:$ac_tool_warned in
3921: yes:)
1.7 ! ohara 3922: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
! 3923: printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
1.1 noro 3924: ac_tool_warned=yes ;;
3925: esac
3926: CC=$ac_ct_CC
3927: fi
3928: else
3929: CC="$ac_cv_prog_CC"
3930: fi
3931:
3932: if test -z "$CC"; then
3933: if test -n "$ac_tool_prefix"; then
3934: # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3935: set dummy ${ac_tool_prefix}cc; ac_word=$2
1.7 ! ohara 3936: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 3937: printf %s "checking for $ac_word... " >&6; }
! 3938: if test ${ac_cv_prog_CC+y}
! 3939: then :
! 3940: printf %s "(cached) " >&6
! 3941: else $as_nop
1.1 noro 3942: if test -n "$CC"; then
3943: ac_cv_prog_CC="$CC" # Let the user override the test.
3944: else
3945: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3946: for as_dir in $PATH
3947: do
3948: IFS=$as_save_IFS
1.7 ! ohara 3949: case $as_dir in #(((
! 3950: '') as_dir=./ ;;
! 3951: */) ;;
! 3952: *) as_dir=$as_dir/ ;;
! 3953: esac
1.1 noro 3954: for ac_exec_ext in '' $ac_executable_extensions; do
1.7 ! ohara 3955: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.1 noro 3956: ac_cv_prog_CC="${ac_tool_prefix}cc"
1.7 ! ohara 3957: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.1 noro 3958: break 2
3959: fi
3960: done
3961: done
3962: IFS=$as_save_IFS
3963:
3964: fi
3965: fi
3966: CC=$ac_cv_prog_CC
3967: if test -n "$CC"; then
1.7 ! ohara 3968: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
! 3969: printf "%s\n" "$CC" >&6; }
1.1 noro 3970: else
1.7 ! ohara 3971: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 3972: printf "%s\n" "no" >&6; }
1.1 noro 3973: fi
3974:
3975:
3976: fi
3977: fi
3978: if test -z "$CC"; then
3979: # Extract the first word of "cc", so it can be a program name with args.
3980: set dummy cc; ac_word=$2
1.7 ! ohara 3981: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 3982: printf %s "checking for $ac_word... " >&6; }
! 3983: if test ${ac_cv_prog_CC+y}
! 3984: then :
! 3985: printf %s "(cached) " >&6
! 3986: else $as_nop
1.1 noro 3987: if test -n "$CC"; then
3988: ac_cv_prog_CC="$CC" # Let the user override the test.
3989: else
3990: ac_prog_rejected=no
3991: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3992: for as_dir in $PATH
3993: do
3994: IFS=$as_save_IFS
1.7 ! ohara 3995: case $as_dir in #(((
! 3996: '') as_dir=./ ;;
! 3997: */) ;;
! 3998: *) as_dir=$as_dir/ ;;
! 3999: esac
1.1 noro 4000: for ac_exec_ext in '' $ac_executable_extensions; do
1.7 ! ohara 4001: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
! 4002: if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1.1 noro 4003: ac_prog_rejected=yes
4004: continue
4005: fi
4006: ac_cv_prog_CC="cc"
1.7 ! ohara 4007: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.1 noro 4008: break 2
4009: fi
4010: done
4011: done
4012: IFS=$as_save_IFS
4013:
4014: if test $ac_prog_rejected = yes; then
4015: # We found a bogon in the path, so make sure we never use it.
4016: set dummy $ac_cv_prog_CC
4017: shift
4018: if test $# != 0; then
4019: # We chose a different compiler from the bogus one.
4020: # However, it has the same basename, so the bogon will be chosen
4021: # first if we set CC to just the basename; use the full file name.
4022: shift
1.7 ! ohara 4023: ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
1.1 noro 4024: fi
4025: fi
4026: fi
4027: fi
4028: CC=$ac_cv_prog_CC
4029: if test -n "$CC"; then
1.7 ! ohara 4030: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
! 4031: printf "%s\n" "$CC" >&6; }
1.1 noro 4032: else
1.7 ! ohara 4033: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 4034: printf "%s\n" "no" >&6; }
1.1 noro 4035: fi
4036:
4037:
4038: fi
4039: if test -z "$CC"; then
4040: if test -n "$ac_tool_prefix"; then
4041: for ac_prog in cl.exe
4042: do
4043: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4044: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1.7 ! ohara 4045: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 4046: printf %s "checking for $ac_word... " >&6; }
! 4047: if test ${ac_cv_prog_CC+y}
! 4048: then :
! 4049: printf %s "(cached) " >&6
! 4050: else $as_nop
1.1 noro 4051: if test -n "$CC"; then
4052: ac_cv_prog_CC="$CC" # Let the user override the test.
4053: else
4054: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4055: for as_dir in $PATH
4056: do
4057: IFS=$as_save_IFS
1.7 ! ohara 4058: case $as_dir in #(((
! 4059: '') as_dir=./ ;;
! 4060: */) ;;
! 4061: *) as_dir=$as_dir/ ;;
! 4062: esac
1.1 noro 4063: for ac_exec_ext in '' $ac_executable_extensions; do
1.7 ! ohara 4064: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.1 noro 4065: ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1.7 ! ohara 4066: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.1 noro 4067: break 2
4068: fi
4069: done
4070: done
4071: IFS=$as_save_IFS
4072:
4073: fi
4074: fi
4075: CC=$ac_cv_prog_CC
4076: if test -n "$CC"; then
1.7 ! ohara 4077: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
! 4078: printf "%s\n" "$CC" >&6; }
1.1 noro 4079: else
1.7 ! ohara 4080: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 4081: printf "%s\n" "no" >&6; }
1.1 noro 4082: fi
4083:
4084:
4085: test -n "$CC" && break
4086: done
4087: fi
4088: if test -z "$CC"; then
4089: ac_ct_CC=$CC
4090: for ac_prog in cl.exe
4091: do
4092: # Extract the first word of "$ac_prog", so it can be a program name with args.
4093: set dummy $ac_prog; ac_word=$2
1.7 ! ohara 4094: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 4095: printf %s "checking for $ac_word... " >&6; }
! 4096: if test ${ac_cv_prog_ac_ct_CC+y}
! 4097: then :
! 4098: printf %s "(cached) " >&6
! 4099: else $as_nop
1.1 noro 4100: if test -n "$ac_ct_CC"; then
4101: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4102: else
4103: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4104: for as_dir in $PATH
4105: do
4106: IFS=$as_save_IFS
1.7 ! ohara 4107: case $as_dir in #(((
! 4108: '') as_dir=./ ;;
! 4109: */) ;;
! 4110: *) as_dir=$as_dir/ ;;
! 4111: esac
1.1 noro 4112: for ac_exec_ext in '' $ac_executable_extensions; do
1.7 ! ohara 4113: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.1 noro 4114: ac_cv_prog_ac_ct_CC="$ac_prog"
1.7 ! ohara 4115: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.1 noro 4116: break 2
4117: fi
4118: done
4119: done
4120: IFS=$as_save_IFS
4121:
4122: fi
4123: fi
4124: ac_ct_CC=$ac_cv_prog_ac_ct_CC
4125: if test -n "$ac_ct_CC"; then
1.7 ! ohara 4126: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
! 4127: printf "%s\n" "$ac_ct_CC" >&6; }
1.1 noro 4128: else
1.7 ! ohara 4129: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 4130: printf "%s\n" "no" >&6; }
1.1 noro 4131: fi
4132:
4133:
4134: test -n "$ac_ct_CC" && break
4135: done
4136:
4137: if test "x$ac_ct_CC" = x; then
4138: CC=""
4139: else
4140: case $cross_compiling:$ac_tool_warned in
4141: yes:)
1.7 ! ohara 4142: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
! 4143: printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
! 4144: ac_tool_warned=yes ;;
! 4145: esac
! 4146: CC=$ac_ct_CC
! 4147: fi
! 4148: fi
! 4149:
! 4150: fi
! 4151: if test -z "$CC"; then
! 4152: if test -n "$ac_tool_prefix"; then
! 4153: # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
! 4154: set dummy ${ac_tool_prefix}clang; ac_word=$2
! 4155: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 4156: printf %s "checking for $ac_word... " >&6; }
! 4157: if test ${ac_cv_prog_CC+y}
! 4158: then :
! 4159: printf %s "(cached) " >&6
! 4160: else $as_nop
! 4161: if test -n "$CC"; then
! 4162: ac_cv_prog_CC="$CC" # Let the user override the test.
! 4163: else
! 4164: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
! 4165: for as_dir in $PATH
! 4166: do
! 4167: IFS=$as_save_IFS
! 4168: case $as_dir in #(((
! 4169: '') as_dir=./ ;;
! 4170: */) ;;
! 4171: *) as_dir=$as_dir/ ;;
! 4172: esac
! 4173: for ac_exec_ext in '' $ac_executable_extensions; do
! 4174: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
! 4175: ac_cv_prog_CC="${ac_tool_prefix}clang"
! 4176: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
! 4177: break 2
! 4178: fi
! 4179: done
! 4180: done
! 4181: IFS=$as_save_IFS
! 4182:
! 4183: fi
! 4184: fi
! 4185: CC=$ac_cv_prog_CC
! 4186: if test -n "$CC"; then
! 4187: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
! 4188: printf "%s\n" "$CC" >&6; }
! 4189: else
! 4190: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 4191: printf "%s\n" "no" >&6; }
! 4192: fi
! 4193:
! 4194:
! 4195: fi
! 4196: if test -z "$ac_cv_prog_CC"; then
! 4197: ac_ct_CC=$CC
! 4198: # Extract the first word of "clang", so it can be a program name with args.
! 4199: set dummy clang; ac_word=$2
! 4200: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 4201: printf %s "checking for $ac_word... " >&6; }
! 4202: if test ${ac_cv_prog_ac_ct_CC+y}
! 4203: then :
! 4204: printf %s "(cached) " >&6
! 4205: else $as_nop
! 4206: if test -n "$ac_ct_CC"; then
! 4207: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
! 4208: else
! 4209: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
! 4210: for as_dir in $PATH
! 4211: do
! 4212: IFS=$as_save_IFS
! 4213: case $as_dir in #(((
! 4214: '') as_dir=./ ;;
! 4215: */) ;;
! 4216: *) as_dir=$as_dir/ ;;
! 4217: esac
! 4218: for ac_exec_ext in '' $ac_executable_extensions; do
! 4219: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
! 4220: ac_cv_prog_ac_ct_CC="clang"
! 4221: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
! 4222: break 2
! 4223: fi
! 4224: done
! 4225: done
! 4226: IFS=$as_save_IFS
! 4227:
! 4228: fi
! 4229: fi
! 4230: ac_ct_CC=$ac_cv_prog_ac_ct_CC
! 4231: if test -n "$ac_ct_CC"; then
! 4232: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
! 4233: printf "%s\n" "$ac_ct_CC" >&6; }
! 4234: else
! 4235: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 4236: printf "%s\n" "no" >&6; }
! 4237: fi
! 4238:
! 4239: if test "x$ac_ct_CC" = x; then
! 4240: CC=""
! 4241: else
! 4242: case $cross_compiling:$ac_tool_warned in
! 4243: yes:)
! 4244: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
! 4245: printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
1.1 noro 4246: ac_tool_warned=yes ;;
4247: esac
4248: CC=$ac_ct_CC
4249: fi
1.7 ! ohara 4250: else
! 4251: CC="$ac_cv_prog_CC"
1.1 noro 4252: fi
4253:
4254: fi
4255:
4256:
1.7 ! ohara 4257: test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
! 4258: printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
1.1 noro 4259: as_fn_error $? "no acceptable C compiler found in \$PATH
4260: See \`config.log' for more details" "$LINENO" 5; }
4261:
4262: # Provide some information about the compiler.
1.7 ! ohara 4263: printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
1.1 noro 4264: set X $ac_compile
4265: ac_compiler=$2
1.7 ! ohara 4266: for ac_option in --version -v -V -qversion -version; do
1.1 noro 4267: { { ac_try="$ac_compiler $ac_option >&5"
4268: case "(($ac_try" in
4269: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4270: *) ac_try_echo=$ac_try;;
4271: esac
4272: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1.7 ! ohara 4273: printf "%s\n" "$ac_try_echo"; } >&5
1.1 noro 4274: (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4275: ac_status=$?
4276: if test -s conftest.err; then
4277: sed '10a\
4278: ... rest of stderr output deleted ...
4279: 10q' conftest.err >conftest.er1
4280: cat conftest.er1 >&5
4281: fi
4282: rm -f conftest.er1 conftest.err
1.7 ! ohara 4283: printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1.1 noro 4284: test $ac_status = 0; }
4285: done
4286:
4287: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4288: /* end confdefs.h. */
4289:
4290: int
1.7 ! ohara 4291: main (void)
1.1 noro 4292: {
4293:
4294: ;
4295: return 0;
4296: }
4297: _ACEOF
4298: ac_clean_files_save=$ac_clean_files
4299: ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4300: # Try to create an executable without -o first, disregard a.out.
4301: # It will help us diagnose broken compilers, and finding out an intuition
4302: # of exeext.
1.7 ! ohara 4303: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
! 4304: printf %s "checking whether the C compiler works... " >&6; }
! 4305: ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1.1 noro 4306:
4307: # The possible output files:
4308: ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4309:
4310: ac_rmfiles=
4311: for ac_file in $ac_files
4312: do
4313: case $ac_file in
4314: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4315: * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4316: esac
4317: done
4318: rm -f $ac_rmfiles
4319:
4320: if { { ac_try="$ac_link_default"
4321: case "(($ac_try" in
4322: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4323: *) ac_try_echo=$ac_try;;
4324: esac
4325: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1.7 ! ohara 4326: printf "%s\n" "$ac_try_echo"; } >&5
1.1 noro 4327: (eval "$ac_link_default") 2>&5
4328: ac_status=$?
1.7 ! ohara 4329: printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
! 4330: test $ac_status = 0; }
! 4331: then :
1.1 noro 4332: # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4333: # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4334: # in a Makefile. We should not override ac_cv_exeext if it was cached,
4335: # so that the user can short-circuit this test for compilers unknown to
4336: # Autoconf.
4337: for ac_file in $ac_files ''
4338: do
4339: test -f "$ac_file" || continue
4340: case $ac_file in
4341: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4342: ;;
4343: [ab].out )
4344: # We found the default executable, but exeext='' is most
4345: # certainly right.
4346: break;;
4347: *.* )
1.7 ! ohara 4348: if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
1.1 noro 4349: then :; else
4350: ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4351: fi
4352: # We set ac_cv_exeext here because the later test for it is not
4353: # safe: cross compilers may not add the suffix if given an `-o'
4354: # argument, so we may need to know it at that point already.
4355: # Even if this section looks crufty: it has the advantage of
4356: # actually working.
4357: break;;
4358: * )
4359: break;;
4360: esac
4361: done
4362: test "$ac_cv_exeext" = no && ac_cv_exeext=
4363:
1.7 ! ohara 4364: else $as_nop
1.1 noro 4365: ac_file=''
4366: fi
1.7 ! ohara 4367: if test -z "$ac_file"
! 4368: then :
! 4369: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 4370: printf "%s\n" "no" >&6; }
! 4371: printf "%s\n" "$as_me: failed program was:" >&5
1.1 noro 4372: sed 's/^/| /' conftest.$ac_ext >&5
4373:
1.7 ! ohara 4374: { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
! 4375: printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
1.1 noro 4376: as_fn_error 77 "C compiler cannot create executables
4377: See \`config.log' for more details" "$LINENO" 5; }
1.7 ! ohara 4378: else $as_nop
! 4379: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
! 4380: printf "%s\n" "yes" >&6; }
! 4381: fi
! 4382: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
! 4383: printf %s "checking for C compiler default output file name... " >&6; }
! 4384: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
! 4385: printf "%s\n" "$ac_file" >&6; }
1.1 noro 4386: ac_exeext=$ac_cv_exeext
4387:
4388: rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4389: ac_clean_files=$ac_clean_files_save
1.7 ! ohara 4390: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
! 4391: printf %s "checking for suffix of executables... " >&6; }
1.1 noro 4392: if { { ac_try="$ac_link"
4393: case "(($ac_try" in
4394: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4395: *) ac_try_echo=$ac_try;;
4396: esac
4397: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1.7 ! ohara 4398: printf "%s\n" "$ac_try_echo"; } >&5
1.1 noro 4399: (eval "$ac_link") 2>&5
4400: ac_status=$?
1.7 ! ohara 4401: printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
! 4402: test $ac_status = 0; }
! 4403: then :
1.1 noro 4404: # If both `conftest.exe' and `conftest' are `present' (well, observable)
4405: # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4406: # work properly (i.e., refer to `conftest.exe'), while it won't with
4407: # `rm'.
4408: for ac_file in conftest.exe conftest conftest.*; do
4409: test -f "$ac_file" || continue
4410: case $ac_file in
4411: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4412: *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4413: break;;
4414: * ) break;;
4415: esac
4416: done
1.7 ! ohara 4417: else $as_nop
! 4418: { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
! 4419: printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
1.1 noro 4420: as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4421: See \`config.log' for more details" "$LINENO" 5; }
4422: fi
4423: rm -f conftest conftest$ac_cv_exeext
1.7 ! ohara 4424: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
! 4425: printf "%s\n" "$ac_cv_exeext" >&6; }
1.1 noro 4426:
4427: rm -f conftest.$ac_ext
4428: EXEEXT=$ac_cv_exeext
4429: ac_exeext=$EXEEXT
4430: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4431: /* end confdefs.h. */
4432: #include <stdio.h>
4433: int
1.7 ! ohara 4434: main (void)
1.1 noro 4435: {
4436: FILE *f = fopen ("conftest.out", "w");
4437: return ferror (f) || fclose (f) != 0;
4438:
4439: ;
4440: return 0;
4441: }
4442: _ACEOF
4443: ac_clean_files="$ac_clean_files conftest.out"
4444: # Check that the compiler produces executables we can run. If not, either
4445: # the compiler is broken, or we cross compile.
1.7 ! ohara 4446: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
! 4447: printf %s "checking whether we are cross compiling... " >&6; }
1.1 noro 4448: if test "$cross_compiling" != yes; then
4449: { { ac_try="$ac_link"
4450: case "(($ac_try" in
4451: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4452: *) ac_try_echo=$ac_try;;
4453: esac
4454: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1.7 ! ohara 4455: printf "%s\n" "$ac_try_echo"; } >&5
1.1 noro 4456: (eval "$ac_link") 2>&5
4457: ac_status=$?
1.7 ! ohara 4458: printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1.1 noro 4459: test $ac_status = 0; }
4460: if { ac_try='./conftest$ac_cv_exeext'
4461: { { case "(($ac_try" in
4462: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4463: *) ac_try_echo=$ac_try;;
4464: esac
4465: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1.7 ! ohara 4466: printf "%s\n" "$ac_try_echo"; } >&5
1.1 noro 4467: (eval "$ac_try") 2>&5
4468: ac_status=$?
1.7 ! ohara 4469: printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1.1 noro 4470: test $ac_status = 0; }; }; then
4471: cross_compiling=no
4472: else
4473: if test "$cross_compiling" = maybe; then
4474: cross_compiling=yes
4475: else
1.7 ! ohara 4476: { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
! 4477: printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
! 4478: as_fn_error 77 "cannot run C compiled programs.
1.1 noro 4479: If you meant to cross compile, use \`--host'.
4480: See \`config.log' for more details" "$LINENO" 5; }
4481: fi
4482: fi
4483: fi
1.7 ! ohara 4484: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
! 4485: printf "%s\n" "$cross_compiling" >&6; }
1.1 noro 4486:
4487: rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4488: ac_clean_files=$ac_clean_files_save
1.7 ! ohara 4489: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
! 4490: printf %s "checking for suffix of object files... " >&6; }
! 4491: if test ${ac_cv_objext+y}
! 4492: then :
! 4493: printf %s "(cached) " >&6
! 4494: else $as_nop
1.1 noro 4495: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4496: /* end confdefs.h. */
4497:
4498: int
1.7 ! ohara 4499: main (void)
1.1 noro 4500: {
4501:
4502: ;
4503: return 0;
4504: }
4505: _ACEOF
4506: rm -f conftest.o conftest.obj
4507: if { { ac_try="$ac_compile"
4508: case "(($ac_try" in
4509: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4510: *) ac_try_echo=$ac_try;;
4511: esac
4512: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1.7 ! ohara 4513: printf "%s\n" "$ac_try_echo"; } >&5
1.1 noro 4514: (eval "$ac_compile") 2>&5
4515: ac_status=$?
1.7 ! ohara 4516: printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
! 4517: test $ac_status = 0; }
! 4518: then :
1.1 noro 4519: for ac_file in conftest.o conftest.obj conftest.*; do
4520: test -f "$ac_file" || continue;
4521: case $ac_file in
4522: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4523: *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4524: break;;
4525: esac
4526: done
1.7 ! ohara 4527: else $as_nop
! 4528: printf "%s\n" "$as_me: failed program was:" >&5
1.1 noro 4529: sed 's/^/| /' conftest.$ac_ext >&5
4530:
1.7 ! ohara 4531: { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
! 4532: printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
1.1 noro 4533: as_fn_error $? "cannot compute suffix of object files: cannot compile
4534: See \`config.log' for more details" "$LINENO" 5; }
4535: fi
4536: rm -f conftest.$ac_cv_objext conftest.$ac_ext
4537: fi
1.7 ! ohara 4538: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
! 4539: printf "%s\n" "$ac_cv_objext" >&6; }
1.1 noro 4540: OBJEXT=$ac_cv_objext
4541: ac_objext=$OBJEXT
1.7 ! ohara 4542: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
! 4543: printf %s "checking whether the compiler supports GNU C... " >&6; }
! 4544: if test ${ac_cv_c_compiler_gnu+y}
! 4545: then :
! 4546: printf %s "(cached) " >&6
! 4547: else $as_nop
1.1 noro 4548: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4549: /* end confdefs.h. */
4550:
4551: int
1.7 ! ohara 4552: main (void)
1.1 noro 4553: {
4554: #ifndef __GNUC__
4555: choke me
4556: #endif
4557:
4558: ;
4559: return 0;
4560: }
4561: _ACEOF
1.7 ! ohara 4562: if ac_fn_c_try_compile "$LINENO"
! 4563: then :
1.1 noro 4564: ac_compiler_gnu=yes
1.7 ! ohara 4565: else $as_nop
1.1 noro 4566: ac_compiler_gnu=no
4567: fi
1.7 ! ohara 4568: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1.1 noro 4569: ac_cv_c_compiler_gnu=$ac_compiler_gnu
4570:
4571: fi
1.7 ! ohara 4572: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
! 4573: printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
! 4574: ac_compiler_gnu=$ac_cv_c_compiler_gnu
! 4575:
1.1 noro 4576: if test $ac_compiler_gnu = yes; then
4577: GCC=yes
4578: else
4579: GCC=
4580: fi
1.7 ! ohara 4581: ac_test_CFLAGS=${CFLAGS+y}
1.1 noro 4582: ac_save_CFLAGS=$CFLAGS
1.7 ! ohara 4583: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
! 4584: printf %s "checking whether $CC accepts -g... " >&6; }
! 4585: if test ${ac_cv_prog_cc_g+y}
! 4586: then :
! 4587: printf %s "(cached) " >&6
! 4588: else $as_nop
1.1 noro 4589: ac_save_c_werror_flag=$ac_c_werror_flag
4590: ac_c_werror_flag=yes
4591: ac_cv_prog_cc_g=no
4592: CFLAGS="-g"
4593: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4594: /* end confdefs.h. */
4595:
4596: int
1.7 ! ohara 4597: main (void)
1.1 noro 4598: {
4599:
4600: ;
4601: return 0;
4602: }
4603: _ACEOF
1.7 ! ohara 4604: if ac_fn_c_try_compile "$LINENO"
! 4605: then :
1.1 noro 4606: ac_cv_prog_cc_g=yes
1.7 ! ohara 4607: else $as_nop
1.1 noro 4608: CFLAGS=""
4609: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4610: /* end confdefs.h. */
4611:
4612: int
1.7 ! ohara 4613: main (void)
1.1 noro 4614: {
4615:
4616: ;
4617: return 0;
4618: }
4619: _ACEOF
1.7 ! ohara 4620: if ac_fn_c_try_compile "$LINENO"
! 4621: then :
1.1 noro 4622:
1.7 ! ohara 4623: else $as_nop
1.1 noro 4624: ac_c_werror_flag=$ac_save_c_werror_flag
4625: CFLAGS="-g"
4626: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4627: /* end confdefs.h. */
4628:
4629: int
1.7 ! ohara 4630: main (void)
1.1 noro 4631: {
4632:
4633: ;
4634: return 0;
4635: }
4636: _ACEOF
1.7 ! ohara 4637: if ac_fn_c_try_compile "$LINENO"
! 4638: then :
1.1 noro 4639: ac_cv_prog_cc_g=yes
4640: fi
1.7 ! ohara 4641: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1.1 noro 4642: fi
1.7 ! ohara 4643: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1.1 noro 4644: fi
1.7 ! ohara 4645: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1.1 noro 4646: ac_c_werror_flag=$ac_save_c_werror_flag
4647: fi
1.7 ! ohara 4648: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
! 4649: printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
! 4650: if test $ac_test_CFLAGS; then
1.1 noro 4651: CFLAGS=$ac_save_CFLAGS
4652: elif test $ac_cv_prog_cc_g = yes; then
4653: if test "$GCC" = yes; then
4654: CFLAGS="-g -O2"
4655: else
4656: CFLAGS="-g"
4657: fi
4658: else
4659: if test "$GCC" = yes; then
4660: CFLAGS="-O2"
4661: else
4662: CFLAGS=
4663: fi
4664: fi
1.7 ! ohara 4665: ac_prog_cc_stdc=no
! 4666: if test x$ac_prog_cc_stdc = xno
! 4667: then :
! 4668: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
! 4669: printf %s "checking for $CC option to enable C11 features... " >&6; }
! 4670: if test ${ac_cv_prog_cc_c11+y}
! 4671: then :
! 4672: printf %s "(cached) " >&6
! 4673: else $as_nop
! 4674: ac_cv_prog_cc_c11=no
1.1 noro 4675: ac_save_CC=$CC
4676: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4677: /* end confdefs.h. */
1.7 ! ohara 4678: $ac_c_conftest_c11_program
! 4679: _ACEOF
! 4680: for ac_arg in '' -std=gnu11
! 4681: do
! 4682: CC="$ac_save_CC $ac_arg"
! 4683: if ac_fn_c_try_compile "$LINENO"
! 4684: then :
! 4685: ac_cv_prog_cc_c11=$ac_arg
! 4686: fi
! 4687: rm -f core conftest.err conftest.$ac_objext conftest.beam
! 4688: test "x$ac_cv_prog_cc_c11" != "xno" && break
! 4689: done
! 4690: rm -f conftest.$ac_ext
! 4691: CC=$ac_save_CC
! 4692: fi
1.1 noro 4693:
1.7 ! ohara 4694: if test "x$ac_cv_prog_cc_c11" = xno
! 4695: then :
! 4696: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
! 4697: printf "%s\n" "unsupported" >&6; }
! 4698: else $as_nop
! 4699: if test "x$ac_cv_prog_cc_c11" = x
! 4700: then :
! 4701: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
! 4702: printf "%s\n" "none needed" >&6; }
! 4703: else $as_nop
! 4704: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
! 4705: printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
! 4706: CC="$CC $ac_cv_prog_cc_c11"
! 4707: fi
! 4708: ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
! 4709: ac_prog_cc_stdc=c11
! 4710: fi
! 4711: fi
! 4712: if test x$ac_prog_cc_stdc = xno
! 4713: then :
! 4714: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
! 4715: printf %s "checking for $CC option to enable C99 features... " >&6; }
! 4716: if test ${ac_cv_prog_cc_c99+y}
! 4717: then :
! 4718: printf %s "(cached) " >&6
! 4719: else $as_nop
! 4720: ac_cv_prog_cc_c99=no
! 4721: ac_save_CC=$CC
! 4722: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
! 4723: /* end confdefs.h. */
! 4724: $ac_c_conftest_c99_program
! 4725: _ACEOF
! 4726: for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
! 4727: do
! 4728: CC="$ac_save_CC $ac_arg"
! 4729: if ac_fn_c_try_compile "$LINENO"
! 4730: then :
! 4731: ac_cv_prog_cc_c99=$ac_arg
! 4732: fi
! 4733: rm -f core conftest.err conftest.$ac_objext conftest.beam
! 4734: test "x$ac_cv_prog_cc_c99" != "xno" && break
! 4735: done
! 4736: rm -f conftest.$ac_ext
! 4737: CC=$ac_save_CC
! 4738: fi
1.1 noro 4739:
1.7 ! ohara 4740: if test "x$ac_cv_prog_cc_c99" = xno
! 4741: then :
! 4742: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
! 4743: printf "%s\n" "unsupported" >&6; }
! 4744: else $as_nop
! 4745: if test "x$ac_cv_prog_cc_c99" = x
! 4746: then :
! 4747: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
! 4748: printf "%s\n" "none needed" >&6; }
! 4749: else $as_nop
! 4750: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
! 4751: printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
! 4752: CC="$CC $ac_cv_prog_cc_c99"
! 4753: fi
! 4754: ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
! 4755: ac_prog_cc_stdc=c99
! 4756: fi
! 4757: fi
! 4758: if test x$ac_prog_cc_stdc = xno
! 4759: then :
! 4760: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
! 4761: printf %s "checking for $CC option to enable C89 features... " >&6; }
! 4762: if test ${ac_cv_prog_cc_c89+y}
! 4763: then :
! 4764: printf %s "(cached) " >&6
! 4765: else $as_nop
! 4766: ac_cv_prog_cc_c89=no
! 4767: ac_save_CC=$CC
! 4768: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
! 4769: /* end confdefs.h. */
! 4770: $ac_c_conftest_c89_program
1.1 noro 4771: _ACEOF
1.7 ! ohara 4772: for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1.1 noro 4773: do
4774: CC="$ac_save_CC $ac_arg"
1.7 ! ohara 4775: if ac_fn_c_try_compile "$LINENO"
! 4776: then :
1.1 noro 4777: ac_cv_prog_cc_c89=$ac_arg
4778: fi
1.7 ! ohara 4779: rm -f core conftest.err conftest.$ac_objext conftest.beam
1.1 noro 4780: test "x$ac_cv_prog_cc_c89" != "xno" && break
4781: done
4782: rm -f conftest.$ac_ext
4783: CC=$ac_save_CC
1.7 ! ohara 4784: fi
1.1 noro 4785:
1.7 ! ohara 4786: if test "x$ac_cv_prog_cc_c89" = xno
! 4787: then :
! 4788: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
! 4789: printf "%s\n" "unsupported" >&6; }
! 4790: else $as_nop
! 4791: if test "x$ac_cv_prog_cc_c89" = x
! 4792: then :
! 4793: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
! 4794: printf "%s\n" "none needed" >&6; }
! 4795: else $as_nop
! 4796: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
! 4797: printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
! 4798: CC="$CC $ac_cv_prog_cc_c89"
! 4799: fi
! 4800: ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
! 4801: ac_prog_cc_stdc=c89
1.1 noro 4802: fi
4803: fi
4804:
4805: ac_ext=c
4806: ac_cpp='$CPP $CPPFLAGS'
4807: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4808: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4809: ac_compiler_gnu=$ac_cv_c_compiler_gnu
4810:
1.7 ! ohara 4811:
! 4812: ac_ext=c
1.1 noro 4813: ac_cpp='$CPP $CPPFLAGS'
4814: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4815: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4816: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.7 ! ohara 4817: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
! 4818: printf %s "checking whether $CC understands -c and -o together... " >&6; }
! 4819: if test ${am_cv_prog_cc_c_o+y}
! 4820: then :
! 4821: printf %s "(cached) " >&6
! 4822: else $as_nop
1.1 noro 4823: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4824: /* end confdefs.h. */
4825:
4826: int
1.7 ! ohara 4827: main (void)
1.1 noro 4828: {
4829:
4830: ;
4831: return 0;
4832: }
4833: _ACEOF
4834: # Make sure it works both with $CC and with simple cc.
4835: # Following AC_PROG_CC_C_O, we do the test twice because some
4836: # compilers refuse to overwrite an existing .o file with -o,
4837: # though they will create one.
4838: am_cv_prog_cc_c_o=yes
4839: for am_i in 1 2; do
4840: if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4841: ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4842: ac_status=$?
4843: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4844: (exit $ac_status); } \
4845: && test -f conftest2.$ac_objext; then
4846: : OK
4847: else
4848: am_cv_prog_cc_c_o=no
4849: break
4850: fi
4851: done
4852: rm -f core conftest*
4853: unset am_i
4854: fi
1.7 ! ohara 4855: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
! 4856: printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
1.1 noro 4857: if test "$am_cv_prog_cc_c_o" != yes; then
4858: # Losing compiler, so override with the script.
4859: # FIXME: It is wrong to rewrite CC.
4860: # But if we don't then we get into trouble of one sort or another.
4861: # A longer-term fix would be to have automake use am__CC in this case,
4862: # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4863: CC="$am_aux_dir/compile $CC"
4864: fi
4865: ac_ext=c
4866: ac_cpp='$CPP $CPPFLAGS'
4867: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4868: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4869: ac_compiler_gnu=$ac_cv_c_compiler_gnu
4870:
4871:
4872: depcc="$CC" am_compiler_list=
4873:
1.7 ! ohara 4874: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
! 4875: printf %s "checking dependency style of $depcc... " >&6; }
! 4876: if test ${am_cv_CC_dependencies_compiler_type+y}
! 4877: then :
! 4878: printf %s "(cached) " >&6
! 4879: else $as_nop
1.1 noro 4880: if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4881: # We make a subdir and do the tests there. Otherwise we can end up
4882: # making bogus files that we don't know about and never remove. For
4883: # instance it was reported that on HP-UX the gcc test will end up
4884: # making a dummy file named 'D' -- because '-MD' means "put the output
4885: # in D".
4886: rm -rf conftest.dir
4887: mkdir conftest.dir
4888: # Copy depcomp to subdir because otherwise we won't find it if we're
4889: # using a relative directory.
4890: cp "$am_depcomp" conftest.dir
4891: cd conftest.dir
4892: # We will build objects and dependencies in a subdirectory because
4893: # it helps to detect inapplicable dependency modes. For instance
4894: # both Tru64's cc and ICC support -MD to output dependencies as a
4895: # side effect of compilation, but ICC will put the dependencies in
4896: # the current directory while Tru64 will put them in the object
4897: # directory.
4898: mkdir sub
4899:
4900: am_cv_CC_dependencies_compiler_type=none
4901: if test "$am_compiler_list" = ""; then
4902: am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4903: fi
4904: am__universal=false
4905: case " $depcc " in #(
4906: *\ -arch\ *\ -arch\ *) am__universal=true ;;
4907: esac
4908:
4909: for depmode in $am_compiler_list; do
4910: # Setup a source with many dependencies, because some compilers
4911: # like to wrap large dependency lists on column 80 (with \), and
4912: # we should not choose a depcomp mode which is confused by this.
4913: #
4914: # We need to recreate these files for each test, as the compiler may
4915: # overwrite some of them when testing with obscure command lines.
4916: # This happens at least with the AIX C compiler.
4917: : > sub/conftest.c
4918: for i in 1 2 3 4 5 6; do
4919: echo '#include "conftst'$i'.h"' >> sub/conftest.c
4920: # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4921: # Solaris 10 /bin/sh.
4922: echo '/* dummy */' > sub/conftst$i.h
4923: done
4924: echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4925:
4926: # We check with '-c' and '-o' for the sake of the "dashmstdout"
4927: # mode. It turns out that the SunPro C++ compiler does not properly
4928: # handle '-M -o', and we need to detect this. Also, some Intel
4929: # versions had trouble with output in subdirs.
4930: am__obj=sub/conftest.${OBJEXT-o}
4931: am__minus_obj="-o $am__obj"
4932: case $depmode in
4933: gcc)
4934: # This depmode causes a compiler race in universal mode.
4935: test "$am__universal" = false || continue
4936: ;;
4937: nosideeffect)
4938: # After this tag, mechanisms are not by side-effect, so they'll
4939: # only be used when explicitly requested.
4940: if test "x$enable_dependency_tracking" = xyes; then
4941: continue
4942: else
4943: break
4944: fi
4945: ;;
4946: msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4947: # This compiler won't grok '-c -o', but also, the minuso test has
4948: # not run yet. These depmodes are late enough in the game, and
4949: # so weak that their functioning should not be impacted.
4950: am__obj=conftest.${OBJEXT-o}
4951: am__minus_obj=
4952: ;;
4953: none) break ;;
4954: esac
4955: if depmode=$depmode \
4956: source=sub/conftest.c object=$am__obj \
4957: depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4958: $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4959: >/dev/null 2>conftest.err &&
4960: grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4961: grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4962: grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4963: ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4964: # icc doesn't choke on unknown options, it will just issue warnings
4965: # or remarks (even with -Werror). So we grep stderr for any message
4966: # that says an option was ignored or not supported.
4967: # When given -MP, icc 7.0 and 7.1 complain thusly:
4968: # icc: Command line warning: ignoring option '-M'; no argument required
4969: # The diagnosis changed in icc 8.0:
4970: # icc: Command line remark: option '-MP' not supported
4971: if (grep 'ignoring option' conftest.err ||
4972: grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4973: am_cv_CC_dependencies_compiler_type=$depmode
4974: break
4975: fi
4976: fi
4977: done
4978:
4979: cd ..
4980: rm -rf conftest.dir
4981: else
4982: am_cv_CC_dependencies_compiler_type=none
4983: fi
4984:
4985: fi
1.7 ! ohara 4986: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
! 4987: printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
1.1 noro 4988: CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4989:
4990: if
4991: test "x$enable_dependency_tracking" != xno \
4992: && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4993: am__fastdepCC_TRUE=
4994: am__fastdepCC_FALSE='#'
4995: else
4996: am__fastdepCC_TRUE='#'
4997: am__fastdepCC_FALSE=
4998: fi
4999:
5000:
1.7 ! ohara 5001: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
! 5002: printf %s "checking for a sed that does not truncate output... " >&6; }
! 5003: if test ${ac_cv_path_SED+y}
! 5004: then :
! 5005: printf %s "(cached) " >&6
! 5006: else $as_nop
1.5 ohara 5007: ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5008: for ac_i in 1 2 3 4 5 6 7; do
5009: ac_script="$ac_script$as_nl$ac_script"
5010: done
5011: echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5012: { ac_script=; unset ac_script;}
5013: if test -z "$SED"; then
5014: ac_path_SED_found=false
5015: # Loop through the user's path and test for each of PROGNAME-LIST
5016: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1.1 noro 5017: for as_dir in $PATH
5018: do
5019: IFS=$as_save_IFS
1.7 ! ohara 5020: case $as_dir in #(((
! 5021: '') as_dir=./ ;;
! 5022: */) ;;
! 5023: *) as_dir=$as_dir/ ;;
! 5024: esac
! 5025: for ac_prog in sed gsed
! 5026: do
1.1 noro 5027: for ac_exec_ext in '' $ac_executable_extensions; do
1.7 ! ohara 5028: ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
1.5 ohara 5029: as_fn_executable_p "$ac_path_SED" || continue
5030: # Check for GNU ac_path_SED and select it if it is found.
5031: # Check for GNU $ac_path_SED
5032: case `"$ac_path_SED" --version 2>&1` in
5033: *GNU*)
5034: ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5035: *)
5036: ac_count=0
1.7 ! ohara 5037: printf %s 0123456789 >"conftest.in"
1.5 ohara 5038: while :
5039: do
5040: cat "conftest.in" "conftest.in" >"conftest.tmp"
5041: mv "conftest.tmp" "conftest.in"
5042: cp "conftest.in" "conftest.nl"
1.7 ! ohara 5043: printf "%s\n" '' >> "conftest.nl"
1.5 ohara 5044: "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5045: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5046: as_fn_arith $ac_count + 1 && ac_count=$as_val
5047: if test $ac_count -gt ${ac_path_SED_max-0}; then
5048: # Best one so far, save it but keep looking for a better one
5049: ac_cv_path_SED="$ac_path_SED"
5050: ac_path_SED_max=$ac_count
5051: fi
5052: # 10*(2^10) chars as input seems more than enough
5053: test $ac_count -gt 10 && break
5054: done
5055: rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5056: esac
5057:
5058: $ac_path_SED_found && break 3
5059: done
5060: done
1.1 noro 5061: done
5062: IFS=$as_save_IFS
1.5 ohara 5063: if test -z "$ac_cv_path_SED"; then
5064: as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5065: fi
5066: else
5067: ac_cv_path_SED=$SED
5068: fi
1.1 noro 5069:
5070: fi
1.7 ! ohara 5071: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
! 5072: printf "%s\n" "$ac_cv_path_SED" >&6; }
1.5 ohara 5073: SED="$ac_cv_path_SED"
5074: rm -f conftest.sed
5075:
5076: test -z "$SED" && SED=sed
5077: Xsed="$SED -e 1s/^X//"
5078:
5079:
5080:
5081:
5082:
5083:
5084:
5085:
5086:
1.1 noro 5087:
5088:
1.7 ! ohara 5089: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
! 5090: printf %s "checking for grep that handles long lines and -e... " >&6; }
! 5091: if test ${ac_cv_path_GREP+y}
! 5092: then :
! 5093: printf %s "(cached) " >&6
! 5094: else $as_nop
1.5 ohara 5095: if test -z "$GREP"; then
5096: ac_path_GREP_found=false
5097: # Loop through the user's path and test for each of PROGNAME-LIST
5098: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5099: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
1.1 noro 5100: do
5101: IFS=$as_save_IFS
1.7 ! ohara 5102: case $as_dir in #(((
! 5103: '') as_dir=./ ;;
! 5104: */) ;;
! 5105: *) as_dir=$as_dir/ ;;
! 5106: esac
! 5107: for ac_prog in grep ggrep
! 5108: do
1.1 noro 5109: for ac_exec_ext in '' $ac_executable_extensions; do
1.7 ! ohara 5110: ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
1.5 ohara 5111: as_fn_executable_p "$ac_path_GREP" || continue
5112: # Check for GNU ac_path_GREP and select it if it is found.
5113: # Check for GNU $ac_path_GREP
5114: case `"$ac_path_GREP" --version 2>&1` in
5115: *GNU*)
5116: ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5117: *)
5118: ac_count=0
1.7 ! ohara 5119: printf %s 0123456789 >"conftest.in"
1.5 ohara 5120: while :
5121: do
5122: cat "conftest.in" "conftest.in" >"conftest.tmp"
5123: mv "conftest.tmp" "conftest.in"
5124: cp "conftest.in" "conftest.nl"
1.7 ! ohara 5125: printf "%s\n" 'GREP' >> "conftest.nl"
1.5 ohara 5126: "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5127: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5128: as_fn_arith $ac_count + 1 && ac_count=$as_val
5129: if test $ac_count -gt ${ac_path_GREP_max-0}; then
5130: # Best one so far, save it but keep looking for a better one
5131: ac_cv_path_GREP="$ac_path_GREP"
5132: ac_path_GREP_max=$ac_count
5133: fi
5134: # 10*(2^10) chars as input seems more than enough
5135: test $ac_count -gt 10 && break
5136: done
5137: rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5138: esac
5139:
5140: $ac_path_GREP_found && break 3
5141: done
5142: done
5143: done
5144: IFS=$as_save_IFS
5145: if test -z "$ac_cv_path_GREP"; then
5146: as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5147: fi
5148: else
5149: ac_cv_path_GREP=$GREP
5150: fi
5151:
5152: fi
1.7 ! ohara 5153: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
! 5154: printf "%s\n" "$ac_cv_path_GREP" >&6; }
1.5 ohara 5155: GREP="$ac_cv_path_GREP"
5156:
5157:
1.7 ! ohara 5158: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
! 5159: printf %s "checking for egrep... " >&6; }
! 5160: if test ${ac_cv_path_EGREP+y}
! 5161: then :
! 5162: printf %s "(cached) " >&6
! 5163: else $as_nop
1.5 ohara 5164: if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5165: then ac_cv_path_EGREP="$GREP -E"
5166: else
5167: if test -z "$EGREP"; then
5168: ac_path_EGREP_found=false
5169: # Loop through the user's path and test for each of PROGNAME-LIST
5170: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5171: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5172: do
5173: IFS=$as_save_IFS
1.7 ! ohara 5174: case $as_dir in #(((
! 5175: '') as_dir=./ ;;
! 5176: */) ;;
! 5177: *) as_dir=$as_dir/ ;;
! 5178: esac
! 5179: for ac_prog in egrep
! 5180: do
1.5 ohara 5181: for ac_exec_ext in '' $ac_executable_extensions; do
1.7 ! ohara 5182: ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
1.5 ohara 5183: as_fn_executable_p "$ac_path_EGREP" || continue
5184: # Check for GNU ac_path_EGREP and select it if it is found.
5185: # Check for GNU $ac_path_EGREP
5186: case `"$ac_path_EGREP" --version 2>&1` in
5187: *GNU*)
5188: ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5189: *)
5190: ac_count=0
1.7 ! ohara 5191: printf %s 0123456789 >"conftest.in"
1.5 ohara 5192: while :
5193: do
5194: cat "conftest.in" "conftest.in" >"conftest.tmp"
5195: mv "conftest.tmp" "conftest.in"
5196: cp "conftest.in" "conftest.nl"
1.7 ! ohara 5197: printf "%s\n" 'EGREP' >> "conftest.nl"
1.5 ohara 5198: "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5199: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5200: as_fn_arith $ac_count + 1 && ac_count=$as_val
5201: if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5202: # Best one so far, save it but keep looking for a better one
5203: ac_cv_path_EGREP="$ac_path_EGREP"
5204: ac_path_EGREP_max=$ac_count
5205: fi
5206: # 10*(2^10) chars as input seems more than enough
5207: test $ac_count -gt 10 && break
5208: done
5209: rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5210: esac
5211:
5212: $ac_path_EGREP_found && break 3
5213: done
5214: done
5215: done
5216: IFS=$as_save_IFS
5217: if test -z "$ac_cv_path_EGREP"; then
5218: as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5219: fi
5220: else
5221: ac_cv_path_EGREP=$EGREP
5222: fi
5223:
5224: fi
5225: fi
1.7 ! ohara 5226: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
! 5227: printf "%s\n" "$ac_cv_path_EGREP" >&6; }
1.5 ohara 5228: EGREP="$ac_cv_path_EGREP"
5229:
5230:
1.7 ! ohara 5231: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
! 5232: printf %s "checking for fgrep... " >&6; }
! 5233: if test ${ac_cv_path_FGREP+y}
! 5234: then :
! 5235: printf %s "(cached) " >&6
! 5236: else $as_nop
1.5 ohara 5237: if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5238: then ac_cv_path_FGREP="$GREP -F"
5239: else
5240: if test -z "$FGREP"; then
5241: ac_path_FGREP_found=false
5242: # Loop through the user's path and test for each of PROGNAME-LIST
5243: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5244: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5245: do
5246: IFS=$as_save_IFS
1.7 ! ohara 5247: case $as_dir in #(((
! 5248: '') as_dir=./ ;;
! 5249: */) ;;
! 5250: *) as_dir=$as_dir/ ;;
! 5251: esac
! 5252: for ac_prog in fgrep
! 5253: do
1.5 ohara 5254: for ac_exec_ext in '' $ac_executable_extensions; do
1.7 ! ohara 5255: ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
1.5 ohara 5256: as_fn_executable_p "$ac_path_FGREP" || continue
5257: # Check for GNU ac_path_FGREP and select it if it is found.
5258: # Check for GNU $ac_path_FGREP
5259: case `"$ac_path_FGREP" --version 2>&1` in
5260: *GNU*)
5261: ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5262: *)
5263: ac_count=0
1.7 ! ohara 5264: printf %s 0123456789 >"conftest.in"
1.5 ohara 5265: while :
5266: do
5267: cat "conftest.in" "conftest.in" >"conftest.tmp"
5268: mv "conftest.tmp" "conftest.in"
5269: cp "conftest.in" "conftest.nl"
1.7 ! ohara 5270: printf "%s\n" 'FGREP' >> "conftest.nl"
1.5 ohara 5271: "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5272: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5273: as_fn_arith $ac_count + 1 && ac_count=$as_val
5274: if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5275: # Best one so far, save it but keep looking for a better one
5276: ac_cv_path_FGREP="$ac_path_FGREP"
5277: ac_path_FGREP_max=$ac_count
5278: fi
5279: # 10*(2^10) chars as input seems more than enough
5280: test $ac_count -gt 10 && break
5281: done
5282: rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5283: esac
5284:
5285: $ac_path_FGREP_found && break 3
5286: done
5287: done
5288: done
5289: IFS=$as_save_IFS
5290: if test -z "$ac_cv_path_FGREP"; then
5291: as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5292: fi
5293: else
5294: ac_cv_path_FGREP=$FGREP
5295: fi
5296:
5297: fi
5298: fi
1.7 ! ohara 5299: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
! 5300: printf "%s\n" "$ac_cv_path_FGREP" >&6; }
1.5 ohara 5301: FGREP="$ac_cv_path_FGREP"
5302:
5303:
5304: test -z "$GREP" && GREP=grep
5305:
5306:
5307:
5308:
5309:
5310:
5311:
5312:
5313:
5314:
5315:
5316:
5317:
5318:
5319:
5320:
5321:
5322:
5323:
5324: # Check whether --with-gnu-ld was given.
1.7 ! ohara 5325: if test ${with_gnu_ld+y}
! 5326: then :
1.5 ohara 5327: withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
1.7 ! ohara 5328: else $as_nop
1.5 ohara 5329: with_gnu_ld=no
5330: fi
5331:
5332: ac_prog=ld
5333: if test yes = "$GCC"; then
5334: # Check if gcc -print-prog-name=ld gives a path.
1.7 ! ohara 5335: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
! 5336: printf %s "checking for ld used by $CC... " >&6; }
1.5 ohara 5337: case $host in
5338: *-*-mingw*)
5339: # gcc leaves a trailing carriage return, which upsets mingw
5340: ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5341: *)
5342: ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5343: esac
5344: case $ac_prog in
5345: # Accept absolute paths.
5346: [\\/]* | ?:[\\/]*)
5347: re_direlt='/[^/][^/]*/\.\./'
5348: # Canonicalize the pathname of ld
5349: ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5350: while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5351: ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5352: done
5353: test -z "$LD" && LD=$ac_prog
5354: ;;
5355: "")
5356: # If it fails, then pretend we aren't using GCC.
5357: ac_prog=ld
5358: ;;
5359: *)
5360: # If it is relative, then search for the first ld in PATH.
5361: with_gnu_ld=unknown
5362: ;;
5363: esac
5364: elif test yes = "$with_gnu_ld"; then
1.7 ! ohara 5365: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
! 5366: printf %s "checking for GNU ld... " >&6; }
1.5 ohara 5367: else
1.7 ! ohara 5368: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
! 5369: printf %s "checking for non-GNU ld... " >&6; }
1.5 ohara 5370: fi
1.7 ! ohara 5371: if test ${lt_cv_path_LD+y}
! 5372: then :
! 5373: printf %s "(cached) " >&6
! 5374: else $as_nop
1.5 ohara 5375: if test -z "$LD"; then
5376: lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5377: for ac_dir in $PATH; do
5378: IFS=$lt_save_ifs
5379: test -z "$ac_dir" && ac_dir=.
5380: if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5381: lt_cv_path_LD=$ac_dir/$ac_prog
5382: # Check to see if the program is GNU ld. I'd rather use --version,
5383: # but apparently some variants of GNU ld only accept -v.
5384: # Break only if it was the GNU/non-GNU ld that we prefer.
5385: case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5386: *GNU* | *'with BFD'*)
5387: test no != "$with_gnu_ld" && break
5388: ;;
5389: *)
5390: test yes != "$with_gnu_ld" && break
5391: ;;
5392: esac
5393: fi
5394: done
5395: IFS=$lt_save_ifs
5396: else
5397: lt_cv_path_LD=$LD # Let the user override the test with a path.
5398: fi
5399: fi
5400:
5401: LD=$lt_cv_path_LD
5402: if test -n "$LD"; then
1.7 ! ohara 5403: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
! 5404: printf "%s\n" "$LD" >&6; }
1.5 ohara 5405: else
1.7 ! ohara 5406: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 5407: printf "%s\n" "no" >&6; }
1.5 ohara 5408: fi
5409: test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
1.7 ! ohara 5410: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
! 5411: printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
! 5412: if test ${lt_cv_prog_gnu_ld+y}
! 5413: then :
! 5414: printf %s "(cached) " >&6
! 5415: else $as_nop
1.5 ohara 5416: # I'd rather use --version here, but apparently some GNU lds only accept -v.
5417: case `$LD -v 2>&1 </dev/null` in
5418: *GNU* | *'with BFD'*)
5419: lt_cv_prog_gnu_ld=yes
5420: ;;
5421: *)
5422: lt_cv_prog_gnu_ld=no
5423: ;;
5424: esac
5425: fi
1.7 ! ohara 5426: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
! 5427: printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
1.5 ohara 5428: with_gnu_ld=$lt_cv_prog_gnu_ld
5429:
5430:
5431:
5432:
5433:
5434:
5435:
5436:
5437:
1.7 ! ohara 5438: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
! 5439: printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
! 5440: if test ${lt_cv_path_NM+y}
! 5441: then :
! 5442: printf %s "(cached) " >&6
! 5443: else $as_nop
1.5 ohara 5444: if test -n "$NM"; then
5445: # Let the user override the test.
5446: lt_cv_path_NM=$NM
5447: else
5448: lt_nm_to_check=${ac_tool_prefix}nm
5449: if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5450: lt_nm_to_check="$lt_nm_to_check nm"
5451: fi
5452: for lt_tmp_nm in $lt_nm_to_check; do
5453: lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5454: for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5455: IFS=$lt_save_ifs
5456: test -z "$ac_dir" && ac_dir=.
5457: tmp_nm=$ac_dir/$lt_tmp_nm
5458: if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5459: # Check to see if the nm accepts a BSD-compat flag.
5460: # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5461: # nm: unknown option "B" ignored
5462: # Tru64's nm complains that /dev/null is an invalid object file
5463: # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5464: case $build_os in
5465: mingw*) lt_bad_file=conftest.nm/nofile ;;
5466: *) lt_bad_file=/dev/null ;;
5467: esac
1.7 ! ohara 5468: case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
1.5 ohara 5469: *$lt_bad_file* | *'Invalid file or object type'*)
5470: lt_cv_path_NM="$tmp_nm -B"
5471: break 2
5472: ;;
5473: *)
1.7 ! ohara 5474: case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
1.5 ohara 5475: */dev/null*)
5476: lt_cv_path_NM="$tmp_nm -p"
5477: break 2
5478: ;;
5479: *)
5480: lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5481: continue # so that we can try to find one that supports BSD flags
5482: ;;
5483: esac
5484: ;;
5485: esac
5486: fi
5487: done
5488: IFS=$lt_save_ifs
5489: done
5490: : ${lt_cv_path_NM=no}
5491: fi
5492: fi
1.7 ! ohara 5493: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
! 5494: printf "%s\n" "$lt_cv_path_NM" >&6; }
1.5 ohara 5495: if test no != "$lt_cv_path_NM"; then
5496: NM=$lt_cv_path_NM
5497: else
5498: # Didn't find any BSD compatible name lister, look for dumpbin.
5499: if test -n "$DUMPBIN"; then :
5500: # Let the user override the test.
5501: else
5502: if test -n "$ac_tool_prefix"; then
5503: for ac_prog in dumpbin "link -dump"
5504: do
5505: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5506: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1.7 ! ohara 5507: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 5508: printf %s "checking for $ac_word... " >&6; }
! 5509: if test ${ac_cv_prog_DUMPBIN+y}
! 5510: then :
! 5511: printf %s "(cached) " >&6
! 5512: else $as_nop
1.5 ohara 5513: if test -n "$DUMPBIN"; then
5514: ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5515: else
5516: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5517: for as_dir in $PATH
5518: do
5519: IFS=$as_save_IFS
1.7 ! ohara 5520: case $as_dir in #(((
! 5521: '') as_dir=./ ;;
! 5522: */) ;;
! 5523: *) as_dir=$as_dir/ ;;
! 5524: esac
1.5 ohara 5525: for ac_exec_ext in '' $ac_executable_extensions; do
1.7 ! ohara 5526: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.5 ohara 5527: ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
1.7 ! ohara 5528: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.5 ohara 5529: break 2
5530: fi
5531: done
5532: done
5533: IFS=$as_save_IFS
5534:
5535: fi
5536: fi
5537: DUMPBIN=$ac_cv_prog_DUMPBIN
5538: if test -n "$DUMPBIN"; then
1.7 ! ohara 5539: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
! 5540: printf "%s\n" "$DUMPBIN" >&6; }
1.5 ohara 5541: else
1.7 ! ohara 5542: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 5543: printf "%s\n" "no" >&6; }
1.5 ohara 5544: fi
5545:
5546:
5547: test -n "$DUMPBIN" && break
5548: done
5549: fi
5550: if test -z "$DUMPBIN"; then
5551: ac_ct_DUMPBIN=$DUMPBIN
5552: for ac_prog in dumpbin "link -dump"
5553: do
5554: # Extract the first word of "$ac_prog", so it can be a program name with args.
5555: set dummy $ac_prog; ac_word=$2
1.7 ! ohara 5556: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 5557: printf %s "checking for $ac_word... " >&6; }
! 5558: if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
! 5559: then :
! 5560: printf %s "(cached) " >&6
! 5561: else $as_nop
1.5 ohara 5562: if test -n "$ac_ct_DUMPBIN"; then
5563: ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5564: else
5565: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5566: for as_dir in $PATH
5567: do
5568: IFS=$as_save_IFS
1.7 ! ohara 5569: case $as_dir in #(((
! 5570: '') as_dir=./ ;;
! 5571: */) ;;
! 5572: *) as_dir=$as_dir/ ;;
! 5573: esac
1.5 ohara 5574: for ac_exec_ext in '' $ac_executable_extensions; do
1.7 ! ohara 5575: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.5 ohara 5576: ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
1.7 ! ohara 5577: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.5 ohara 5578: break 2
5579: fi
5580: done
5581: done
5582: IFS=$as_save_IFS
5583:
5584: fi
5585: fi
5586: ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5587: if test -n "$ac_ct_DUMPBIN"; then
1.7 ! ohara 5588: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
! 5589: printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
1.5 ohara 5590: else
1.7 ! ohara 5591: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 5592: printf "%s\n" "no" >&6; }
1.5 ohara 5593: fi
5594:
5595:
5596: test -n "$ac_ct_DUMPBIN" && break
5597: done
5598:
5599: if test "x$ac_ct_DUMPBIN" = x; then
5600: DUMPBIN=":"
5601: else
5602: case $cross_compiling:$ac_tool_warned in
5603: yes:)
1.7 ! ohara 5604: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
! 5605: printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
1.5 ohara 5606: ac_tool_warned=yes ;;
5607: esac
5608: DUMPBIN=$ac_ct_DUMPBIN
5609: fi
5610: fi
5611:
1.7 ! ohara 5612: case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
1.5 ohara 5613: *COFF*)
5614: DUMPBIN="$DUMPBIN -symbols -headers"
5615: ;;
5616: *)
5617: DUMPBIN=:
5618: ;;
5619: esac
5620: fi
5621:
5622: if test : != "$DUMPBIN"; then
5623: NM=$DUMPBIN
5624: fi
5625: fi
5626: test -z "$NM" && NM=nm
5627:
5628:
5629:
5630:
5631:
5632:
1.7 ! ohara 5633: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
! 5634: printf %s "checking the name lister ($NM) interface... " >&6; }
! 5635: if test ${lt_cv_nm_interface+y}
! 5636: then :
! 5637: printf %s "(cached) " >&6
! 5638: else $as_nop
1.5 ohara 5639: lt_cv_nm_interface="BSD nm"
5640: echo "int some_variable = 0;" > conftest.$ac_ext
5641: (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5642: (eval "$ac_compile" 2>conftest.err)
5643: cat conftest.err >&5
5644: (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5645: (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5646: cat conftest.err >&5
5647: (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5648: cat conftest.out >&5
5649: if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5650: lt_cv_nm_interface="MS dumpbin"
5651: fi
5652: rm -f conftest*
5653: fi
1.7 ! ohara 5654: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
! 5655: printf "%s\n" "$lt_cv_nm_interface" >&6; }
1.5 ohara 5656:
1.7 ! ohara 5657: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
! 5658: printf %s "checking whether ln -s works... " >&6; }
1.5 ohara 5659: LN_S=$as_ln_s
5660: if test "$LN_S" = "ln -s"; then
1.7 ! ohara 5661: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
! 5662: printf "%s\n" "yes" >&6; }
1.5 ohara 5663: else
1.7 ! ohara 5664: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
! 5665: printf "%s\n" "no, using $LN_S" >&6; }
1.5 ohara 5666: fi
5667:
5668: # find the maximum length of command line arguments
1.7 ! ohara 5669: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
! 5670: printf %s "checking the maximum length of command line arguments... " >&6; }
! 5671: if test ${lt_cv_sys_max_cmd_len+y}
! 5672: then :
! 5673: printf %s "(cached) " >&6
! 5674: else $as_nop
1.5 ohara 5675: i=0
5676: teststring=ABCD
5677:
5678: case $build_os in
5679: msdosdjgpp*)
5680: # On DJGPP, this test can blow up pretty badly due to problems in libc
5681: # (any single argument exceeding 2000 bytes causes a buffer overrun
5682: # during glob expansion). Even if it were fixed, the result of this
5683: # check would be larger than it should be.
5684: lt_cv_sys_max_cmd_len=12288; # 12K is about right
5685: ;;
5686:
5687: gnu*)
5688: # Under GNU Hurd, this test is not required because there is
5689: # no limit to the length of command line arguments.
5690: # Libtool will interpret -1 as no limit whatsoever
5691: lt_cv_sys_max_cmd_len=-1;
5692: ;;
5693:
5694: cygwin* | mingw* | cegcc*)
5695: # On Win9x/ME, this test blows up -- it succeeds, but takes
5696: # about 5 minutes as the teststring grows exponentially.
5697: # Worse, since 9x/ME are not pre-emptively multitasking,
5698: # you end up with a "frozen" computer, even though with patience
5699: # the test eventually succeeds (with a max line length of 256k).
5700: # Instead, let's just punt: use the minimum linelength reported by
5701: # all of the supported platforms: 8192 (on NT/2K/XP).
5702: lt_cv_sys_max_cmd_len=8192;
5703: ;;
5704:
5705: mint*)
5706: # On MiNT this can take a long time and run out of memory.
5707: lt_cv_sys_max_cmd_len=8192;
5708: ;;
5709:
5710: amigaos*)
5711: # On AmigaOS with pdksh, this test takes hours, literally.
5712: # So we just punt and use a minimum line length of 8192.
5713: lt_cv_sys_max_cmd_len=8192;
5714: ;;
5715:
1.7 ! ohara 5716: bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
1.5 ohara 5717: # This has been around since 386BSD, at least. Likely further.
5718: if test -x /sbin/sysctl; then
5719: lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5720: elif test -x /usr/sbin/sysctl; then
5721: lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5722: else
5723: lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5724: fi
5725: # And add a safety zone
5726: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5727: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5728: ;;
5729:
5730: interix*)
5731: # We know the value 262144 and hardcode it with a safety zone (like BSD)
5732: lt_cv_sys_max_cmd_len=196608
5733: ;;
5734:
5735: os2*)
5736: # The test takes a long time on OS/2.
5737: lt_cv_sys_max_cmd_len=8192
5738: ;;
5739:
5740: osf*)
5741: # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5742: # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5743: # nice to cause kernel panics so lets avoid the loop below.
5744: # First set a reasonable default.
5745: lt_cv_sys_max_cmd_len=16384
5746: #
5747: if test -x /sbin/sysconfig; then
5748: case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5749: *1*) lt_cv_sys_max_cmd_len=-1 ;;
5750: esac
5751: fi
5752: ;;
5753: sco3.2v5*)
5754: lt_cv_sys_max_cmd_len=102400
5755: ;;
5756: sysv5* | sco5v6* | sysv4.2uw2*)
5757: kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5758: if test -n "$kargmax"; then
1.7 ! ohara 5759: lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'`
1.5 ohara 5760: else
5761: lt_cv_sys_max_cmd_len=32768
5762: fi
5763: ;;
5764: *)
5765: lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5766: if test -n "$lt_cv_sys_max_cmd_len" && \
5767: test undefined != "$lt_cv_sys_max_cmd_len"; then
5768: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5769: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5770: else
5771: # Make teststring a little bigger before we do anything with it.
5772: # a 1K string should be a reasonable start.
5773: for i in 1 2 3 4 5 6 7 8; do
5774: teststring=$teststring$teststring
5775: done
5776: SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5777: # If test is not a shell built-in, we'll probably end up computing a
5778: # maximum length that is only half of the actual maximum length, but
5779: # we can't tell.
5780: while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5781: = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5782: test 17 != "$i" # 1/2 MB should be enough
5783: do
5784: i=`expr $i + 1`
5785: teststring=$teststring$teststring
5786: done
5787: # Only check the string length outside the loop.
5788: lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5789: teststring=
5790: # Add a significant safety factor because C++ compilers can tack on
5791: # massive amounts of additional arguments before passing them to the
5792: # linker. It appears as though 1/2 is a usable value.
5793: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5794: fi
5795: ;;
5796: esac
5797:
5798: fi
5799:
5800: if test -n "$lt_cv_sys_max_cmd_len"; then
1.7 ! ohara 5801: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
! 5802: printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
1.5 ohara 5803: else
1.7 ! ohara 5804: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
! 5805: printf "%s\n" "none" >&6; }
1.5 ohara 5806: fi
5807: max_cmd_len=$lt_cv_sys_max_cmd_len
5808:
5809:
5810:
5811:
5812:
5813:
5814: : ${CP="cp -f"}
5815: : ${MV="mv -f"}
5816: : ${RM="rm -f"}
5817:
5818: if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5819: lt_unset=unset
5820: else
5821: lt_unset=false
5822: fi
5823:
5824:
5825:
5826:
5827:
5828: # test EBCDIC or ASCII
5829: case `echo X|tr X '\101'` in
5830: A) # ASCII based system
5831: # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5832: lt_SP2NL='tr \040 \012'
5833: lt_NL2SP='tr \015\012 \040\040'
5834: ;;
5835: *) # EBCDIC based system
5836: lt_SP2NL='tr \100 \n'
5837: lt_NL2SP='tr \r\n \100\100'
5838: ;;
5839: esac
5840:
5841:
5842:
5843:
5844:
5845:
5846:
5847:
5848:
1.7 ! ohara 5849: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
! 5850: printf %s "checking how to convert $build file names to $host format... " >&6; }
! 5851: if test ${lt_cv_to_host_file_cmd+y}
! 5852: then :
! 5853: printf %s "(cached) " >&6
! 5854: else $as_nop
1.5 ohara 5855: case $host in
5856: *-*-mingw* )
5857: case $build in
5858: *-*-mingw* ) # actually msys
5859: lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5860: ;;
5861: *-*-cygwin* )
5862: lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5863: ;;
5864: * ) # otherwise, assume *nix
5865: lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5866: ;;
5867: esac
5868: ;;
5869: *-*-cygwin* )
5870: case $build in
5871: *-*-mingw* ) # actually msys
5872: lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5873: ;;
5874: *-*-cygwin* )
5875: lt_cv_to_host_file_cmd=func_convert_file_noop
5876: ;;
5877: * ) # otherwise, assume *nix
5878: lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5879: ;;
5880: esac
5881: ;;
5882: * ) # unhandled hosts (and "normal" native builds)
5883: lt_cv_to_host_file_cmd=func_convert_file_noop
5884: ;;
5885: esac
5886:
5887: fi
5888:
5889: to_host_file_cmd=$lt_cv_to_host_file_cmd
1.7 ! ohara 5890: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
! 5891: printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
1.5 ohara 5892:
5893:
5894:
5895:
5896:
1.7 ! ohara 5897: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
! 5898: printf %s "checking how to convert $build file names to toolchain format... " >&6; }
! 5899: if test ${lt_cv_to_tool_file_cmd+y}
! 5900: then :
! 5901: printf %s "(cached) " >&6
! 5902: else $as_nop
1.5 ohara 5903: #assume ordinary cross tools, or native build.
5904: lt_cv_to_tool_file_cmd=func_convert_file_noop
5905: case $host in
5906: *-*-mingw* )
5907: case $build in
5908: *-*-mingw* ) # actually msys
5909: lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5910: ;;
5911: esac
5912: ;;
5913: esac
1.7 ! ohara 5914:
! 5915: fi
! 5916:
! 5917: to_tool_file_cmd=$lt_cv_to_tool_file_cmd
! 5918: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
! 5919: printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
! 5920:
! 5921:
! 5922:
! 5923:
! 5924:
! 5925: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
! 5926: printf %s "checking for $LD option to reload object files... " >&6; }
! 5927: if test ${lt_cv_ld_reload_flag+y}
! 5928: then :
! 5929: printf %s "(cached) " >&6
! 5930: else $as_nop
! 5931: lt_cv_ld_reload_flag='-r'
! 5932: fi
! 5933: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
! 5934: printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
! 5935: reload_flag=$lt_cv_ld_reload_flag
! 5936: case $reload_flag in
! 5937: "" | " "*) ;;
! 5938: *) reload_flag=" $reload_flag" ;;
! 5939: esac
! 5940: reload_cmds='$LD$reload_flag -o $output$reload_objs'
! 5941: case $host_os in
! 5942: cygwin* | mingw* | pw32* | cegcc*)
! 5943: if test yes != "$GCC"; then
! 5944: reload_cmds=false
! 5945: fi
! 5946: ;;
! 5947: darwin*)
! 5948: if test yes = "$GCC"; then
! 5949: reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
! 5950: else
! 5951: reload_cmds='$LD$reload_flag -o $output$reload_objs'
! 5952: fi
! 5953: ;;
! 5954: esac
! 5955:
! 5956:
! 5957:
! 5958:
! 5959:
! 5960:
! 5961:
! 5962:
! 5963:
! 5964: if test -n "$ac_tool_prefix"; then
! 5965: # Extract the first word of "${ac_tool_prefix}file", so it can be a program name with args.
! 5966: set dummy ${ac_tool_prefix}file; ac_word=$2
! 5967: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 5968: printf %s "checking for $ac_word... " >&6; }
! 5969: if test ${ac_cv_prog_FILECMD+y}
! 5970: then :
! 5971: printf %s "(cached) " >&6
! 5972: else $as_nop
! 5973: if test -n "$FILECMD"; then
! 5974: ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
! 5975: else
! 5976: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
! 5977: for as_dir in $PATH
! 5978: do
! 5979: IFS=$as_save_IFS
! 5980: case $as_dir in #(((
! 5981: '') as_dir=./ ;;
! 5982: */) ;;
! 5983: *) as_dir=$as_dir/ ;;
! 5984: esac
! 5985: for ac_exec_ext in '' $ac_executable_extensions; do
! 5986: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
! 5987: ac_cv_prog_FILECMD="${ac_tool_prefix}file"
! 5988: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
! 5989: break 2
! 5990: fi
! 5991: done
! 5992: done
! 5993: IFS=$as_save_IFS
! 5994:
! 5995: fi
! 5996: fi
! 5997: FILECMD=$ac_cv_prog_FILECMD
! 5998: if test -n "$FILECMD"; then
! 5999: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
! 6000: printf "%s\n" "$FILECMD" >&6; }
! 6001: else
! 6002: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 6003: printf "%s\n" "no" >&6; }
1.5 ohara 6004: fi
6005:
6006:
1.7 ! ohara 6007: fi
! 6008: if test -z "$ac_cv_prog_FILECMD"; then
! 6009: ac_ct_FILECMD=$FILECMD
! 6010: # Extract the first word of "file", so it can be a program name with args.
! 6011: set dummy file; ac_word=$2
! 6012: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 6013: printf %s "checking for $ac_word... " >&6; }
! 6014: if test ${ac_cv_prog_ac_ct_FILECMD+y}
! 6015: then :
! 6016: printf %s "(cached) " >&6
! 6017: else $as_nop
! 6018: if test -n "$ac_ct_FILECMD"; then
! 6019: ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test.
! 6020: else
! 6021: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
! 6022: for as_dir in $PATH
! 6023: do
! 6024: IFS=$as_save_IFS
! 6025: case $as_dir in #(((
! 6026: '') as_dir=./ ;;
! 6027: */) ;;
! 6028: *) as_dir=$as_dir/ ;;
! 6029: esac
! 6030: for ac_exec_ext in '' $ac_executable_extensions; do
! 6031: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
! 6032: ac_cv_prog_ac_ct_FILECMD="file"
! 6033: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
! 6034: break 2
! 6035: fi
! 6036: done
! 6037: done
! 6038: IFS=$as_save_IFS
1.5 ohara 6039:
1.7 ! ohara 6040: fi
! 6041: fi
! 6042: ac_ct_FILECMD=$ac_cv_prog_ac_ct_FILECMD
! 6043: if test -n "$ac_ct_FILECMD"; then
! 6044: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FILECMD" >&5
! 6045: printf "%s\n" "$ac_ct_FILECMD" >&6; }
! 6046: else
! 6047: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 6048: printf "%s\n" "no" >&6; }
! 6049: fi
1.5 ohara 6050:
1.7 ! ohara 6051: if test "x$ac_ct_FILECMD" = x; then
! 6052: FILECMD=":"
! 6053: else
! 6054: case $cross_compiling:$ac_tool_warned in
! 6055: yes:)
! 6056: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
! 6057: printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
! 6058: ac_tool_warned=yes ;;
! 6059: esac
! 6060: FILECMD=$ac_ct_FILECMD
! 6061: fi
1.5 ohara 6062: else
1.7 ! ohara 6063: FILECMD="$ac_cv_prog_FILECMD"
1.5 ohara 6064: fi
6065:
6066:
6067:
6068:
6069:
6070:
6071:
6072: if test -n "$ac_tool_prefix"; then
6073: # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6074: set dummy ${ac_tool_prefix}objdump; ac_word=$2
1.7 ! ohara 6075: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 6076: printf %s "checking for $ac_word... " >&6; }
! 6077: if test ${ac_cv_prog_OBJDUMP+y}
! 6078: then :
! 6079: printf %s "(cached) " >&6
! 6080: else $as_nop
1.5 ohara 6081: if test -n "$OBJDUMP"; then
6082: ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6083: else
6084: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6085: for as_dir in $PATH
6086: do
6087: IFS=$as_save_IFS
1.7 ! ohara 6088: case $as_dir in #(((
! 6089: '') as_dir=./ ;;
! 6090: */) ;;
! 6091: *) as_dir=$as_dir/ ;;
! 6092: esac
1.5 ohara 6093: for ac_exec_ext in '' $ac_executable_extensions; do
1.7 ! ohara 6094: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.5 ohara 6095: ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
1.7 ! ohara 6096: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.5 ohara 6097: break 2
6098: fi
6099: done
6100: done
6101: IFS=$as_save_IFS
6102:
6103: fi
6104: fi
6105: OBJDUMP=$ac_cv_prog_OBJDUMP
6106: if test -n "$OBJDUMP"; then
1.7 ! ohara 6107: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
! 6108: printf "%s\n" "$OBJDUMP" >&6; }
1.5 ohara 6109: else
1.7 ! ohara 6110: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 6111: printf "%s\n" "no" >&6; }
1.5 ohara 6112: fi
6113:
6114:
6115: fi
6116: if test -z "$ac_cv_prog_OBJDUMP"; then
6117: ac_ct_OBJDUMP=$OBJDUMP
6118: # Extract the first word of "objdump", so it can be a program name with args.
6119: set dummy objdump; ac_word=$2
1.7 ! ohara 6120: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 6121: printf %s "checking for $ac_word... " >&6; }
! 6122: if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
! 6123: then :
! 6124: printf %s "(cached) " >&6
! 6125: else $as_nop
1.5 ohara 6126: if test -n "$ac_ct_OBJDUMP"; then
6127: ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6128: else
6129: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6130: for as_dir in $PATH
6131: do
6132: IFS=$as_save_IFS
1.7 ! ohara 6133: case $as_dir in #(((
! 6134: '') as_dir=./ ;;
! 6135: */) ;;
! 6136: *) as_dir=$as_dir/ ;;
! 6137: esac
1.5 ohara 6138: for ac_exec_ext in '' $ac_executable_extensions; do
1.7 ! ohara 6139: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.5 ohara 6140: ac_cv_prog_ac_ct_OBJDUMP="objdump"
1.7 ! ohara 6141: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.5 ohara 6142: break 2
6143: fi
6144: done
6145: done
6146: IFS=$as_save_IFS
6147:
6148: fi
6149: fi
6150: ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6151: if test -n "$ac_ct_OBJDUMP"; then
1.7 ! ohara 6152: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
! 6153: printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
1.5 ohara 6154: else
1.7 ! ohara 6155: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 6156: printf "%s\n" "no" >&6; }
1.5 ohara 6157: fi
6158:
6159: if test "x$ac_ct_OBJDUMP" = x; then
6160: OBJDUMP="false"
6161: else
6162: case $cross_compiling:$ac_tool_warned in
6163: yes:)
1.7 ! ohara 6164: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
! 6165: printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
1.5 ohara 6166: ac_tool_warned=yes ;;
6167: esac
6168: OBJDUMP=$ac_ct_OBJDUMP
6169: fi
6170: else
6171: OBJDUMP="$ac_cv_prog_OBJDUMP"
6172: fi
6173:
6174: test -z "$OBJDUMP" && OBJDUMP=objdump
6175:
6176:
6177:
6178:
6179:
6180:
6181:
6182:
6183:
1.7 ! ohara 6184: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
! 6185: printf %s "checking how to recognize dependent libraries... " >&6; }
! 6186: if test ${lt_cv_deplibs_check_method+y}
! 6187: then :
! 6188: printf %s "(cached) " >&6
! 6189: else $as_nop
1.5 ohara 6190: lt_cv_file_magic_cmd='$MAGIC_CMD'
6191: lt_cv_file_magic_test_file=
6192: lt_cv_deplibs_check_method='unknown'
6193: # Need to set the preceding variable on all platforms that support
6194: # interlibrary dependencies.
6195: # 'none' -- dependencies not supported.
6196: # 'unknown' -- same as none, but documents that we really don't know.
6197: # 'pass_all' -- all dependencies passed with no checks.
6198: # 'test_compile' -- check by making test program.
6199: # 'file_magic [[regex]]' -- check by looking for files in library path
6200: # that responds to the $file_magic_cmd with a given extended regex.
6201: # If you have 'file' or equivalent on your system and you're not sure
6202: # whether 'pass_all' will *always* work, you probably want this one.
6203:
6204: case $host_os in
6205: aix[4-9]*)
6206: lt_cv_deplibs_check_method=pass_all
6207: ;;
6208:
6209: beos*)
6210: lt_cv_deplibs_check_method=pass_all
6211: ;;
6212:
6213: bsdi[45]*)
6214: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
1.7 ! ohara 6215: lt_cv_file_magic_cmd='$FILECMD -L'
1.5 ohara 6216: lt_cv_file_magic_test_file=/shlib/libc.so
6217: ;;
6218:
6219: cygwin*)
6220: # func_win32_libid is a shell function defined in ltmain.sh
6221: lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6222: lt_cv_file_magic_cmd='func_win32_libid'
6223: ;;
6224:
6225: mingw* | pw32*)
6226: # Base MSYS/MinGW do not provide the 'file' command needed by
6227: # func_win32_libid shell function, so use a weaker test based on 'objdump',
6228: # unless we find 'file', for example because we are cross-compiling.
6229: if ( file / ) >/dev/null 2>&1; then
6230: lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6231: lt_cv_file_magic_cmd='func_win32_libid'
6232: else
6233: # Keep this pattern in sync with the one in func_win32_libid.
6234: lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6235: lt_cv_file_magic_cmd='$OBJDUMP -f'
6236: fi
6237: ;;
6238:
6239: cegcc*)
6240: # use the weaker test based on 'objdump'. See mingw*.
6241: lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6242: lt_cv_file_magic_cmd='$OBJDUMP -f'
6243: ;;
6244:
6245: darwin* | rhapsody*)
6246: lt_cv_deplibs_check_method=pass_all
6247: ;;
6248:
1.7 ! ohara 6249: freebsd* | dragonfly* | midnightbsd*)
1.5 ohara 6250: if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6251: case $host_cpu in
6252: i*86 )
6253: # Not sure whether the presence of OpenBSD here was a mistake.
6254: # Let's accept both of them until this is cleared up.
6255: lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
1.7 ! ohara 6256: lt_cv_file_magic_cmd=$FILECMD
1.5 ohara 6257: lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6258: ;;
6259: esac
6260: else
6261: lt_cv_deplibs_check_method=pass_all
6262: fi
6263: ;;
6264:
6265: haiku*)
6266: lt_cv_deplibs_check_method=pass_all
6267: ;;
6268:
6269: hpux10.20* | hpux11*)
1.7 ! ohara 6270: lt_cv_file_magic_cmd=$FILECMD
1.5 ohara 6271: case $host_cpu in
6272: ia64*)
6273: lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6274: lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6275: ;;
6276: hppa*64*)
6277: lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
6278: lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6279: ;;
6280: *)
6281: lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6282: lt_cv_file_magic_test_file=/usr/lib/libc.sl
6283: ;;
6284: esac
6285: ;;
6286:
6287: interix[3-9]*)
6288: # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6289: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6290: ;;
6291:
6292: irix5* | irix6* | nonstopux*)
6293: case $LD in
6294: *-32|*"-32 ") libmagic=32-bit;;
6295: *-n32|*"-n32 ") libmagic=N32;;
6296: *-64|*"-64 ") libmagic=64-bit;;
6297: *) libmagic=never-match;;
6298: esac
6299: lt_cv_deplibs_check_method=pass_all
6300: ;;
6301:
6302: # This must be glibc/ELF.
6303: linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6304: lt_cv_deplibs_check_method=pass_all
6305: ;;
6306:
6307: netbsd*)
6308: if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6309: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6310: else
6311: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6312: fi
6313: ;;
6314:
6315: newos6*)
6316: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
1.7 ! ohara 6317: lt_cv_file_magic_cmd=$FILECMD
1.5 ohara 6318: lt_cv_file_magic_test_file=/usr/lib/libnls.so
6319: ;;
6320:
6321: *nto* | *qnx*)
6322: lt_cv_deplibs_check_method=pass_all
6323: ;;
6324:
6325: openbsd* | bitrig*)
6326: if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6327: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6328: else
6329: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6330: fi
6331: ;;
6332:
6333: osf3* | osf4* | osf5*)
6334: lt_cv_deplibs_check_method=pass_all
6335: ;;
6336:
6337: rdos*)
6338: lt_cv_deplibs_check_method=pass_all
6339: ;;
6340:
6341: solaris*)
6342: lt_cv_deplibs_check_method=pass_all
6343: ;;
6344:
6345: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6346: lt_cv_deplibs_check_method=pass_all
6347: ;;
6348:
6349: sysv4 | sysv4.3*)
6350: case $host_vendor in
6351: motorola)
6352: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
6353: lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6354: ;;
6355: ncr)
6356: lt_cv_deplibs_check_method=pass_all
6357: ;;
6358: sequent)
6359: lt_cv_file_magic_cmd='/bin/file'
6360: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6361: ;;
6362: sni)
6363: lt_cv_file_magic_cmd='/bin/file'
6364: lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6365: lt_cv_file_magic_test_file=/lib/libc.so
6366: ;;
6367: siemens)
6368: lt_cv_deplibs_check_method=pass_all
6369: ;;
6370: pc)
6371: lt_cv_deplibs_check_method=pass_all
6372: ;;
6373: esac
6374: ;;
6375:
6376: tpf*)
6377: lt_cv_deplibs_check_method=pass_all
6378: ;;
6379: os2*)
6380: lt_cv_deplibs_check_method=pass_all
6381: ;;
6382: esac
6383:
6384: fi
1.7 ! ohara 6385: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
! 6386: printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
1.5 ohara 6387:
6388: file_magic_glob=
6389: want_nocaseglob=no
6390: if test "$build" = "$host"; then
6391: case $host_os in
6392: mingw* | pw32*)
6393: if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6394: want_nocaseglob=yes
6395: else
6396: file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6397: fi
6398: ;;
6399: esac
6400: fi
6401:
6402: file_magic_cmd=$lt_cv_file_magic_cmd
6403: deplibs_check_method=$lt_cv_deplibs_check_method
6404: test -z "$deplibs_check_method" && deplibs_check_method=unknown
6405:
6406:
6407:
6408:
6409:
6410:
6411:
6412:
6413:
6414:
6415:
6416:
6417:
6418:
6419:
6420:
6421:
6422:
6423:
6424:
6425:
6426:
6427: if test -n "$ac_tool_prefix"; then
6428: # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6429: set dummy ${ac_tool_prefix}dlltool; ac_word=$2
1.7 ! ohara 6430: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 6431: printf %s "checking for $ac_word... " >&6; }
! 6432: if test ${ac_cv_prog_DLLTOOL+y}
! 6433: then :
! 6434: printf %s "(cached) " >&6
! 6435: else $as_nop
1.5 ohara 6436: if test -n "$DLLTOOL"; then
6437: ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6438: else
6439: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6440: for as_dir in $PATH
6441: do
6442: IFS=$as_save_IFS
1.7 ! ohara 6443: case $as_dir in #(((
! 6444: '') as_dir=./ ;;
! 6445: */) ;;
! 6446: *) as_dir=$as_dir/ ;;
! 6447: esac
1.5 ohara 6448: for ac_exec_ext in '' $ac_executable_extensions; do
1.7 ! ohara 6449: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.5 ohara 6450: ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
1.7 ! ohara 6451: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.5 ohara 6452: break 2
6453: fi
6454: done
6455: done
6456: IFS=$as_save_IFS
6457:
6458: fi
6459: fi
6460: DLLTOOL=$ac_cv_prog_DLLTOOL
6461: if test -n "$DLLTOOL"; then
1.7 ! ohara 6462: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
! 6463: printf "%s\n" "$DLLTOOL" >&6; }
1.5 ohara 6464: else
1.7 ! ohara 6465: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 6466: printf "%s\n" "no" >&6; }
1.5 ohara 6467: fi
6468:
6469:
6470: fi
6471: if test -z "$ac_cv_prog_DLLTOOL"; then
6472: ac_ct_DLLTOOL=$DLLTOOL
6473: # Extract the first word of "dlltool", so it can be a program name with args.
6474: set dummy dlltool; ac_word=$2
1.7 ! ohara 6475: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 6476: printf %s "checking for $ac_word... " >&6; }
! 6477: if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
! 6478: then :
! 6479: printf %s "(cached) " >&6
! 6480: else $as_nop
1.5 ohara 6481: if test -n "$ac_ct_DLLTOOL"; then
6482: ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6483: else
6484: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6485: for as_dir in $PATH
6486: do
6487: IFS=$as_save_IFS
1.7 ! ohara 6488: case $as_dir in #(((
! 6489: '') as_dir=./ ;;
! 6490: */) ;;
! 6491: *) as_dir=$as_dir/ ;;
! 6492: esac
1.5 ohara 6493: for ac_exec_ext in '' $ac_executable_extensions; do
1.7 ! ohara 6494: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.5 ohara 6495: ac_cv_prog_ac_ct_DLLTOOL="dlltool"
1.7 ! ohara 6496: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.5 ohara 6497: break 2
6498: fi
6499: done
6500: done
6501: IFS=$as_save_IFS
6502:
6503: fi
6504: fi
6505: ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6506: if test -n "$ac_ct_DLLTOOL"; then
1.7 ! ohara 6507: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
! 6508: printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
1.5 ohara 6509: else
1.7 ! ohara 6510: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 6511: printf "%s\n" "no" >&6; }
1.5 ohara 6512: fi
6513:
6514: if test "x$ac_ct_DLLTOOL" = x; then
6515: DLLTOOL="false"
6516: else
6517: case $cross_compiling:$ac_tool_warned in
6518: yes:)
1.7 ! ohara 6519: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
! 6520: printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
1.5 ohara 6521: ac_tool_warned=yes ;;
6522: esac
6523: DLLTOOL=$ac_ct_DLLTOOL
6524: fi
6525: else
6526: DLLTOOL="$ac_cv_prog_DLLTOOL"
6527: fi
6528:
6529: test -z "$DLLTOOL" && DLLTOOL=dlltool
6530:
6531:
6532:
6533:
6534:
6535:
6536:
6537:
6538:
6539:
1.7 ! ohara 6540: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
! 6541: printf %s "checking how to associate runtime and link libraries... " >&6; }
! 6542: if test ${lt_cv_sharedlib_from_linklib_cmd+y}
! 6543: then :
! 6544: printf %s "(cached) " >&6
! 6545: else $as_nop
1.5 ohara 6546: lt_cv_sharedlib_from_linklib_cmd='unknown'
6547:
6548: case $host_os in
6549: cygwin* | mingw* | pw32* | cegcc*)
6550: # two different shell functions defined in ltmain.sh;
6551: # decide which one to use based on capabilities of $DLLTOOL
6552: case `$DLLTOOL --help 2>&1` in
6553: *--identify-strict*)
6554: lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6555: ;;
6556: *)
6557: lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6558: ;;
6559: esac
6560: ;;
6561: *)
6562: # fallback: assume linklib IS sharedlib
6563: lt_cv_sharedlib_from_linklib_cmd=$ECHO
6564: ;;
6565: esac
6566:
6567: fi
1.7 ! ohara 6568: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
! 6569: printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
1.5 ohara 6570: sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6571: test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6572:
6573:
6574:
6575:
6576:
6577:
6578:
6579:
6580: if test -n "$ac_tool_prefix"; then
6581: for ac_prog in ar
6582: do
6583: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6584: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1.7 ! ohara 6585: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 6586: printf %s "checking for $ac_word... " >&6; }
! 6587: if test ${ac_cv_prog_AR+y}
! 6588: then :
! 6589: printf %s "(cached) " >&6
! 6590: else $as_nop
1.5 ohara 6591: if test -n "$AR"; then
6592: ac_cv_prog_AR="$AR" # Let the user override the test.
6593: else
6594: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6595: for as_dir in $PATH
6596: do
6597: IFS=$as_save_IFS
1.7 ! ohara 6598: case $as_dir in #(((
! 6599: '') as_dir=./ ;;
! 6600: */) ;;
! 6601: *) as_dir=$as_dir/ ;;
! 6602: esac
1.5 ohara 6603: for ac_exec_ext in '' $ac_executable_extensions; do
1.7 ! ohara 6604: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.5 ohara 6605: ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
1.7 ! ohara 6606: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.5 ohara 6607: break 2
6608: fi
6609: done
6610: done
6611: IFS=$as_save_IFS
6612:
6613: fi
6614: fi
6615: AR=$ac_cv_prog_AR
6616: if test -n "$AR"; then
1.7 ! ohara 6617: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
! 6618: printf "%s\n" "$AR" >&6; }
1.5 ohara 6619: else
1.7 ! ohara 6620: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 6621: printf "%s\n" "no" >&6; }
1.5 ohara 6622: fi
6623:
6624:
6625: test -n "$AR" && break
6626: done
6627: fi
6628: if test -z "$AR"; then
6629: ac_ct_AR=$AR
6630: for ac_prog in ar
6631: do
6632: # Extract the first word of "$ac_prog", so it can be a program name with args.
6633: set dummy $ac_prog; ac_word=$2
1.7 ! ohara 6634: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 6635: printf %s "checking for $ac_word... " >&6; }
! 6636: if test ${ac_cv_prog_ac_ct_AR+y}
! 6637: then :
! 6638: printf %s "(cached) " >&6
! 6639: else $as_nop
1.5 ohara 6640: if test -n "$ac_ct_AR"; then
6641: ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6642: else
6643: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6644: for as_dir in $PATH
6645: do
6646: IFS=$as_save_IFS
1.7 ! ohara 6647: case $as_dir in #(((
! 6648: '') as_dir=./ ;;
! 6649: */) ;;
! 6650: *) as_dir=$as_dir/ ;;
! 6651: esac
1.5 ohara 6652: for ac_exec_ext in '' $ac_executable_extensions; do
1.7 ! ohara 6653: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.5 ohara 6654: ac_cv_prog_ac_ct_AR="$ac_prog"
1.7 ! ohara 6655: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.5 ohara 6656: break 2
6657: fi
6658: done
6659: done
6660: IFS=$as_save_IFS
6661:
6662: fi
6663: fi
6664: ac_ct_AR=$ac_cv_prog_ac_ct_AR
6665: if test -n "$ac_ct_AR"; then
1.7 ! ohara 6666: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
! 6667: printf "%s\n" "$ac_ct_AR" >&6; }
1.5 ohara 6668: else
1.7 ! ohara 6669: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 6670: printf "%s\n" "no" >&6; }
1.5 ohara 6671: fi
6672:
6673:
6674: test -n "$ac_ct_AR" && break
6675: done
6676:
6677: if test "x$ac_ct_AR" = x; then
6678: AR="false"
6679: else
6680: case $cross_compiling:$ac_tool_warned in
6681: yes:)
1.7 ! ohara 6682: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
! 6683: printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
1.5 ohara 6684: ac_tool_warned=yes ;;
6685: esac
6686: AR=$ac_ct_AR
6687: fi
6688: fi
6689:
6690: : ${AR=ar}
6691:
6692:
6693:
6694:
6695:
6696:
1.7 ! ohara 6697: # Use ARFLAGS variable as AR's operation code to sync the variable naming with
! 6698: # Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
! 6699: # higher priority because thats what people were doing historically (setting
! 6700: # ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS
! 6701: # variable obsoleted/removed.
1.5 ohara 6702:
1.7 ! ohara 6703: test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
! 6704: lt_ar_flags=$AR_FLAGS
1.5 ohara 6705:
6706:
6707:
6708:
1.7 ! ohara 6709:
! 6710:
! 6711: # Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override
! 6712: # by AR_FLAGS because that was never working and AR_FLAGS is about to die.
! 6713:
! 6714:
! 6715:
! 6716:
! 6717:
! 6718:
! 6719: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
! 6720: printf %s "checking for archiver @FILE support... " >&6; }
! 6721: if test ${lt_cv_ar_at_file+y}
! 6722: then :
! 6723: printf %s "(cached) " >&6
! 6724: else $as_nop
1.5 ohara 6725: lt_cv_ar_at_file=no
6726: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6727: /* end confdefs.h. */
6728:
6729: int
1.7 ! ohara 6730: main (void)
1.5 ohara 6731: {
6732:
6733: ;
6734: return 0;
6735: }
6736: _ACEOF
1.7 ! ohara 6737: if ac_fn_c_try_compile "$LINENO"
! 6738: then :
1.5 ohara 6739: echo conftest.$ac_objext > conftest.lst
6740: lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6741: { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6742: (eval $lt_ar_try) 2>&5
6743: ac_status=$?
1.7 ! ohara 6744: printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1.5 ohara 6745: test $ac_status = 0; }
6746: if test 0 -eq "$ac_status"; then
6747: # Ensure the archiver fails upon bogus file names.
6748: rm -f conftest.$ac_objext libconftest.a
6749: { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6750: (eval $lt_ar_try) 2>&5
6751: ac_status=$?
1.7 ! ohara 6752: printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1.5 ohara 6753: test $ac_status = 0; }
6754: if test 0 -ne "$ac_status"; then
6755: lt_cv_ar_at_file=@
6756: fi
6757: fi
6758: rm -f conftest.* libconftest.a
6759:
6760: fi
1.7 ! ohara 6761: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1.5 ohara 6762:
6763: fi
1.7 ! ohara 6764: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
! 6765: printf "%s\n" "$lt_cv_ar_at_file" >&6; }
1.5 ohara 6766:
6767: if test no = "$lt_cv_ar_at_file"; then
6768: archiver_list_spec=
6769: else
6770: archiver_list_spec=$lt_cv_ar_at_file
6771: fi
6772:
6773:
6774:
6775:
6776:
6777:
6778:
6779: if test -n "$ac_tool_prefix"; then
6780: # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6781: set dummy ${ac_tool_prefix}strip; ac_word=$2
1.7 ! ohara 6782: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 6783: printf %s "checking for $ac_word... " >&6; }
! 6784: if test ${ac_cv_prog_STRIP+y}
! 6785: then :
! 6786: printf %s "(cached) " >&6
! 6787: else $as_nop
1.5 ohara 6788: if test -n "$STRIP"; then
6789: ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6790: else
6791: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6792: for as_dir in $PATH
6793: do
6794: IFS=$as_save_IFS
1.7 ! ohara 6795: case $as_dir in #(((
! 6796: '') as_dir=./ ;;
! 6797: */) ;;
! 6798: *) as_dir=$as_dir/ ;;
! 6799: esac
1.5 ohara 6800: for ac_exec_ext in '' $ac_executable_extensions; do
1.7 ! ohara 6801: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.5 ohara 6802: ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1.7 ! ohara 6803: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.5 ohara 6804: break 2
6805: fi
6806: done
6807: done
6808: IFS=$as_save_IFS
6809:
6810: fi
6811: fi
6812: STRIP=$ac_cv_prog_STRIP
6813: if test -n "$STRIP"; then
1.7 ! ohara 6814: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
! 6815: printf "%s\n" "$STRIP" >&6; }
1.5 ohara 6816: else
1.7 ! ohara 6817: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 6818: printf "%s\n" "no" >&6; }
1.5 ohara 6819: fi
6820:
6821:
6822: fi
6823: if test -z "$ac_cv_prog_STRIP"; then
6824: ac_ct_STRIP=$STRIP
6825: # Extract the first word of "strip", so it can be a program name with args.
6826: set dummy strip; ac_word=$2
1.7 ! ohara 6827: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 6828: printf %s "checking for $ac_word... " >&6; }
! 6829: if test ${ac_cv_prog_ac_ct_STRIP+y}
! 6830: then :
! 6831: printf %s "(cached) " >&6
! 6832: else $as_nop
1.5 ohara 6833: if test -n "$ac_ct_STRIP"; then
6834: ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6835: else
6836: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6837: for as_dir in $PATH
6838: do
6839: IFS=$as_save_IFS
1.7 ! ohara 6840: case $as_dir in #(((
! 6841: '') as_dir=./ ;;
! 6842: */) ;;
! 6843: *) as_dir=$as_dir/ ;;
! 6844: esac
1.5 ohara 6845: for ac_exec_ext in '' $ac_executable_extensions; do
1.7 ! ohara 6846: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.5 ohara 6847: ac_cv_prog_ac_ct_STRIP="strip"
1.7 ! ohara 6848: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.5 ohara 6849: break 2
6850: fi
6851: done
6852: done
6853: IFS=$as_save_IFS
6854:
6855: fi
6856: fi
6857: ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6858: if test -n "$ac_ct_STRIP"; then
1.7 ! ohara 6859: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
! 6860: printf "%s\n" "$ac_ct_STRIP" >&6; }
1.5 ohara 6861: else
1.7 ! ohara 6862: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 6863: printf "%s\n" "no" >&6; }
1.5 ohara 6864: fi
6865:
6866: if test "x$ac_ct_STRIP" = x; then
6867: STRIP=":"
6868: else
6869: case $cross_compiling:$ac_tool_warned in
6870: yes:)
1.7 ! ohara 6871: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
! 6872: printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
1.5 ohara 6873: ac_tool_warned=yes ;;
6874: esac
6875: STRIP=$ac_ct_STRIP
6876: fi
6877: else
6878: STRIP="$ac_cv_prog_STRIP"
6879: fi
6880:
6881: test -z "$STRIP" && STRIP=:
6882:
6883:
6884:
6885:
6886:
6887:
6888: if test -n "$ac_tool_prefix"; then
6889: # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6890: set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1.7 ! ohara 6891: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 6892: printf %s "checking for $ac_word... " >&6; }
! 6893: if test ${ac_cv_prog_RANLIB+y}
! 6894: then :
! 6895: printf %s "(cached) " >&6
! 6896: else $as_nop
1.5 ohara 6897: if test -n "$RANLIB"; then
6898: ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6899: else
6900: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6901: for as_dir in $PATH
6902: do
6903: IFS=$as_save_IFS
1.7 ! ohara 6904: case $as_dir in #(((
! 6905: '') as_dir=./ ;;
! 6906: */) ;;
! 6907: *) as_dir=$as_dir/ ;;
! 6908: esac
1.5 ohara 6909: for ac_exec_ext in '' $ac_executable_extensions; do
1.7 ! ohara 6910: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.5 ohara 6911: ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1.7 ! ohara 6912: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.5 ohara 6913: break 2
6914: fi
6915: done
6916: done
6917: IFS=$as_save_IFS
6918:
6919: fi
6920: fi
6921: RANLIB=$ac_cv_prog_RANLIB
6922: if test -n "$RANLIB"; then
1.7 ! ohara 6923: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
! 6924: printf "%s\n" "$RANLIB" >&6; }
1.5 ohara 6925: else
1.7 ! ohara 6926: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 6927: printf "%s\n" "no" >&6; }
1.5 ohara 6928: fi
6929:
6930:
6931: fi
6932: if test -z "$ac_cv_prog_RANLIB"; then
6933: ac_ct_RANLIB=$RANLIB
6934: # Extract the first word of "ranlib", so it can be a program name with args.
6935: set dummy ranlib; ac_word=$2
1.7 ! ohara 6936: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 6937: printf %s "checking for $ac_word... " >&6; }
! 6938: if test ${ac_cv_prog_ac_ct_RANLIB+y}
! 6939: then :
! 6940: printf %s "(cached) " >&6
! 6941: else $as_nop
1.5 ohara 6942: if test -n "$ac_ct_RANLIB"; then
6943: ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6944: else
6945: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6946: for as_dir in $PATH
6947: do
6948: IFS=$as_save_IFS
1.7 ! ohara 6949: case $as_dir in #(((
! 6950: '') as_dir=./ ;;
! 6951: */) ;;
! 6952: *) as_dir=$as_dir/ ;;
! 6953: esac
1.5 ohara 6954: for ac_exec_ext in '' $ac_executable_extensions; do
1.7 ! ohara 6955: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.5 ohara 6956: ac_cv_prog_ac_ct_RANLIB="ranlib"
1.7 ! ohara 6957: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.5 ohara 6958: break 2
6959: fi
6960: done
6961: done
6962: IFS=$as_save_IFS
6963:
6964: fi
6965: fi
6966: ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6967: if test -n "$ac_ct_RANLIB"; then
1.7 ! ohara 6968: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
! 6969: printf "%s\n" "$ac_ct_RANLIB" >&6; }
1.5 ohara 6970: else
1.7 ! ohara 6971: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 6972: printf "%s\n" "no" >&6; }
1.5 ohara 6973: fi
6974:
6975: if test "x$ac_ct_RANLIB" = x; then
6976: RANLIB=":"
6977: else
6978: case $cross_compiling:$ac_tool_warned in
6979: yes:)
1.7 ! ohara 6980: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
! 6981: printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
1.5 ohara 6982: ac_tool_warned=yes ;;
6983: esac
6984: RANLIB=$ac_ct_RANLIB
6985: fi
6986: else
6987: RANLIB="$ac_cv_prog_RANLIB"
6988: fi
6989:
6990: test -z "$RANLIB" && RANLIB=:
6991:
6992:
6993:
6994:
6995:
6996:
6997: # Determine commands to create old-style static archives.
6998: old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6999: old_postinstall_cmds='chmod 644 $oldlib'
7000: old_postuninstall_cmds=
7001:
7002: if test -n "$RANLIB"; then
7003: case $host_os in
7004: bitrig* | openbsd*)
7005: old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7006: ;;
7007: *)
7008: old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7009: ;;
7010: esac
7011: old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7012: fi
7013:
7014: case $host_os in
7015: darwin*)
7016: lock_old_archive_extraction=yes ;;
7017: *)
7018: lock_old_archive_extraction=no ;;
7019: esac
7020:
7021:
7022:
7023:
7024:
7025:
7026:
7027:
7028:
7029:
7030:
7031:
7032:
7033:
7034:
7035:
7036:
7037:
7038:
7039:
7040:
7041:
7042:
7043:
7044:
7045:
7046:
7047:
7048:
7049:
7050:
7051:
7052:
7053:
7054:
7055:
7056:
7057:
7058:
7059: # If no C compiler was specified, use CC.
7060: LTCC=${LTCC-"$CC"}
7061:
7062: # If no C compiler flags were specified, use CFLAGS.
7063: LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7064:
7065: # Allow CC to be a program name with arguments.
7066: compiler=$CC
7067:
7068:
7069: # Check for command to grab the raw symbol name followed by C symbol from nm.
1.7 ! ohara 7070: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
! 7071: printf %s "checking command to parse $NM output from $compiler object... " >&6; }
! 7072: if test ${lt_cv_sys_global_symbol_pipe+y}
! 7073: then :
! 7074: printf %s "(cached) " >&6
! 7075: else $as_nop
1.5 ohara 7076:
7077: # These are sane defaults that work on at least a few old systems.
7078: # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7079:
7080: # Character class describing NM global symbol codes.
7081: symcode='[BCDEGRST]'
7082:
7083: # Regexp to match symbols that can be accessed directly from C.
7084: sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7085:
7086: # Define system-specific variables.
7087: case $host_os in
7088: aix*)
7089: symcode='[BCDT]'
7090: ;;
7091: cygwin* | mingw* | pw32* | cegcc*)
7092: symcode='[ABCDGISTW]'
7093: ;;
7094: hpux*)
7095: if test ia64 = "$host_cpu"; then
7096: symcode='[ABCDEGRST]'
7097: fi
7098: ;;
7099: irix* | nonstopux*)
7100: symcode='[BCDEGRST]'
7101: ;;
7102: osf*)
7103: symcode='[BCDEGQRST]'
7104: ;;
7105: solaris*)
7106: symcode='[BDRT]'
7107: ;;
7108: sco3.2v5*)
7109: symcode='[DT]'
7110: ;;
7111: sysv4.2uw2*)
7112: symcode='[DT]'
7113: ;;
7114: sysv5* | sco5v6* | unixware* | OpenUNIX*)
7115: symcode='[ABDT]'
7116: ;;
7117: sysv4)
7118: symcode='[DFNSTU]'
7119: ;;
7120: esac
7121:
7122: # If we're using GNU nm, then use its standard symbol codes.
7123: case `$NM -V 2>&1` in
7124: *GNU* | *'with BFD'*)
7125: symcode='[ABCDGIRSTW]' ;;
7126: esac
7127:
7128: if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7129: # Gets list of data symbols to import.
1.7 ! ohara 7130: lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
1.5 ohara 7131: # Adjust the below global symbol transforms to fixup imported variables.
7132: lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
7133: lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
7134: lt_c_name_lib_hook="\
7135: -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
7136: -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
7137: else
7138: # Disable hooks by default.
7139: lt_cv_sys_global_symbol_to_import=
7140: lt_cdecl_hook=
7141: lt_c_name_hook=
7142: lt_c_name_lib_hook=
7143: fi
7144:
7145: # Transform an extracted symbol line into a proper C declaration.
7146: # Some systems (esp. on ia64) link data and code symbols differently,
7147: # so use this general approach.
1.7 ! ohara 7148: lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
1.5 ohara 7149: $lt_cdecl_hook\
7150: " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
7151: " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
7152:
7153: # Transform an extracted symbol line into symbol name and symbol address
1.7 ! ohara 7154: lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
1.5 ohara 7155: $lt_c_name_hook\
7156: " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7157: " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
7158:
7159: # Transform an extracted symbol line into symbol name with lib prefix and
7160: # symbol address.
1.7 ! ohara 7161: lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
1.5 ohara 7162: $lt_c_name_lib_hook\
7163: " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7164: " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
7165: " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
7166:
7167: # Handle CRLF in mingw tool chain
7168: opt_cr=
7169: case $build_os in
7170: mingw*)
7171: opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7172: ;;
7173: esac
7174:
7175: # Try without a prefix underscore, then with it.
7176: for ac_symprfx in "" "_"; do
7177:
7178: # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7179: symxfrm="\\1 $ac_symprfx\\2 \\2"
7180:
7181: # Write the raw and C identifiers.
7182: if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7183: # Fake it for dumpbin and say T for any non-static function,
7184: # D for any global variable and I for any imported variable.
1.7 ! ohara 7185: # Also find C++ and __fastcall symbols from MSVC++ or ICC,
1.5 ohara 7186: # which start with @ or ?.
7187: lt_cv_sys_global_symbol_pipe="$AWK '"\
7188: " {last_section=section; section=\$ 3};"\
7189: " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7190: " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7191: " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7192: " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7193: " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7194: " \$ 0!~/External *\|/{next};"\
7195: " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7196: " {if(hide[section]) next};"\
7197: " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7198: " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7199: " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7200: " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7201: " ' prfx=^$ac_symprfx"
7202: else
1.7 ! ohara 7203: lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
1.5 ohara 7204: fi
1.7 ! ohara 7205: lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
1.5 ohara 7206:
7207: # Check to see that the pipe works correctly.
7208: pipe_works=no
7209:
7210: rm -f conftest*
7211: cat > conftest.$ac_ext <<_LT_EOF
7212: #ifdef __cplusplus
7213: extern "C" {
7214: #endif
7215: char nm_test_var;
7216: void nm_test_func(void);
7217: void nm_test_func(void){}
7218: #ifdef __cplusplus
7219: }
7220: #endif
7221: int main(){nm_test_var='a';nm_test_func();return(0);}
7222: _LT_EOF
7223:
7224: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7225: (eval $ac_compile) 2>&5
7226: ac_status=$?
1.7 ! ohara 7227: printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1.5 ohara 7228: test $ac_status = 0; }; then
7229: # Now try to grab the symbols.
7230: nlist=conftest.nm
7231: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7232: (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7233: ac_status=$?
1.7 ! ohara 7234: printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1.5 ohara 7235: test $ac_status = 0; } && test -s "$nlist"; then
7236: # Try sorting and uniquifying the output.
7237: if sort "$nlist" | uniq > "$nlist"T; then
7238: mv -f "$nlist"T "$nlist"
7239: else
7240: rm -f "$nlist"T
7241: fi
7242:
7243: # Make sure that we snagged all the symbols we need.
7244: if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7245: if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7246: cat <<_LT_EOF > conftest.$ac_ext
7247: /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7248: #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7249: /* DATA imports from DLLs on WIN32 can't be const, because runtime
7250: relocations are performed -- see ld's documentation on pseudo-relocs. */
7251: # define LT_DLSYM_CONST
7252: #elif defined __osf__
7253: /* This system does not cope well with relocations in const data. */
7254: # define LT_DLSYM_CONST
7255: #else
7256: # define LT_DLSYM_CONST const
7257: #endif
7258:
7259: #ifdef __cplusplus
7260: extern "C" {
7261: #endif
7262:
7263: _LT_EOF
7264: # Now generate the symbol file.
7265: eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7266:
7267: cat <<_LT_EOF >> conftest.$ac_ext
7268:
7269: /* The mapping between symbol names and symbols. */
7270: LT_DLSYM_CONST struct {
7271: const char *name;
7272: void *address;
7273: }
7274: lt__PROGRAM__LTX_preloaded_symbols[] =
7275: {
7276: { "@PROGRAM@", (void *) 0 },
7277: _LT_EOF
7278: $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7279: cat <<\_LT_EOF >> conftest.$ac_ext
7280: {0, (void *) 0}
7281: };
7282:
7283: /* This works around a problem in FreeBSD linker */
7284: #ifdef FREEBSD_WORKAROUND
7285: static const void *lt_preloaded_setup() {
7286: return lt__PROGRAM__LTX_preloaded_symbols;
7287: }
7288: #endif
7289:
7290: #ifdef __cplusplus
7291: }
7292: #endif
7293: _LT_EOF
7294: # Now try linking the two files.
7295: mv conftest.$ac_objext conftstm.$ac_objext
7296: lt_globsym_save_LIBS=$LIBS
7297: lt_globsym_save_CFLAGS=$CFLAGS
7298: LIBS=conftstm.$ac_objext
7299: CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7300: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7301: (eval $ac_link) 2>&5
7302: ac_status=$?
1.7 ! ohara 7303: printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1.5 ohara 7304: test $ac_status = 0; } && test -s conftest$ac_exeext; then
7305: pipe_works=yes
7306: fi
7307: LIBS=$lt_globsym_save_LIBS
7308: CFLAGS=$lt_globsym_save_CFLAGS
7309: else
7310: echo "cannot find nm_test_func in $nlist" >&5
7311: fi
7312: else
7313: echo "cannot find nm_test_var in $nlist" >&5
7314: fi
7315: else
7316: echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7317: fi
7318: else
7319: echo "$progname: failed program was:" >&5
7320: cat conftest.$ac_ext >&5
7321: fi
7322: rm -rf conftest* conftst*
7323:
7324: # Do not use the global_symbol_pipe unless it works.
7325: if test yes = "$pipe_works"; then
7326: break
7327: else
7328: lt_cv_sys_global_symbol_pipe=
7329: fi
7330: done
7331:
7332: fi
7333:
7334: if test -z "$lt_cv_sys_global_symbol_pipe"; then
7335: lt_cv_sys_global_symbol_to_cdecl=
7336: fi
7337: if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
1.7 ! ohara 7338: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
! 7339: printf "%s\n" "failed" >&6; }
1.5 ohara 7340: else
1.7 ! ohara 7341: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
! 7342: printf "%s\n" "ok" >&6; }
1.5 ohara 7343: fi
7344:
7345: # Response file support.
7346: if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7347: nm_file_list_spec='@'
7348: elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7349: nm_file_list_spec='@'
7350: fi
7351:
7352:
7353:
7354:
7355:
7356:
7357:
7358:
7359:
7360:
7361:
7362:
7363:
7364:
7365:
7366:
7367:
7368:
7369:
7370:
7371:
7372:
7373:
7374:
7375:
7376:
7377:
7378:
7379:
7380:
7381:
7382:
7383:
7384:
7385:
7386:
7387:
1.7 ! ohara 7388: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
! 7389: printf %s "checking for sysroot... " >&6; }
1.5 ohara 7390:
7391: # Check whether --with-sysroot was given.
1.7 ! ohara 7392: if test ${with_sysroot+y}
! 7393: then :
1.5 ohara 7394: withval=$with_sysroot;
1.7 ! ohara 7395: else $as_nop
1.5 ohara 7396: with_sysroot=no
7397: fi
7398:
7399:
7400: lt_sysroot=
7401: case $with_sysroot in #(
7402: yes)
7403: if test yes = "$GCC"; then
7404: lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7405: fi
7406: ;; #(
7407: /*)
1.7 ! ohara 7408: lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
1.5 ohara 7409: ;; #(
7410: no|'')
7411: ;; #(
7412: *)
1.7 ! ohara 7413: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
! 7414: printf "%s\n" "$with_sysroot" >&6; }
1.5 ohara 7415: as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7416: ;;
7417: esac
7418:
1.7 ! ohara 7419: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
! 7420: printf "%s\n" "${lt_sysroot:-no}" >&6; }
1.5 ohara 7421:
7422:
7423:
7424:
7425:
1.7 ! ohara 7426: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
! 7427: printf %s "checking for a working dd... " >&6; }
! 7428: if test ${ac_cv_path_lt_DD+y}
! 7429: then :
! 7430: printf %s "(cached) " >&6
! 7431: else $as_nop
1.5 ohara 7432: printf 0123456789abcdef0123456789abcdef >conftest.i
7433: cat conftest.i conftest.i >conftest2.i
7434: : ${lt_DD:=$DD}
7435: if test -z "$lt_DD"; then
7436: ac_path_lt_DD_found=false
7437: # Loop through the user's path and test for each of PROGNAME-LIST
7438: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7439: for as_dir in $PATH
7440: do
7441: IFS=$as_save_IFS
1.7 ! ohara 7442: case $as_dir in #(((
! 7443: '') as_dir=./ ;;
! 7444: */) ;;
! 7445: *) as_dir=$as_dir/ ;;
! 7446: esac
! 7447: for ac_prog in dd
! 7448: do
1.5 ohara 7449: for ac_exec_ext in '' $ac_executable_extensions; do
1.7 ! ohara 7450: ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
1.5 ohara 7451: as_fn_executable_p "$ac_path_lt_DD" || continue
7452: if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7453: cmp -s conftest.i conftest.out \
7454: && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7455: fi
7456: $ac_path_lt_DD_found && break 3
7457: done
7458: done
7459: done
7460: IFS=$as_save_IFS
7461: if test -z "$ac_cv_path_lt_DD"; then
7462: :
7463: fi
7464: else
7465: ac_cv_path_lt_DD=$lt_DD
7466: fi
7467:
7468: rm -f conftest.i conftest2.i conftest.out
7469: fi
1.7 ! ohara 7470: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
! 7471: printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
1.5 ohara 7472:
7473:
1.7 ! ohara 7474: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
! 7475: printf %s "checking how to truncate binary pipes... " >&6; }
! 7476: if test ${lt_cv_truncate_bin+y}
! 7477: then :
! 7478: printf %s "(cached) " >&6
! 7479: else $as_nop
1.5 ohara 7480: printf 0123456789abcdef0123456789abcdef >conftest.i
7481: cat conftest.i conftest.i >conftest2.i
7482: lt_cv_truncate_bin=
7483: if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7484: cmp -s conftest.i conftest.out \
7485: && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7486: fi
7487: rm -f conftest.i conftest2.i conftest.out
7488: test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7489: fi
1.7 ! ohara 7490: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
! 7491: printf "%s\n" "$lt_cv_truncate_bin" >&6; }
1.5 ohara 7492:
7493:
7494:
7495:
7496:
7497:
7498:
7499: # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
7500: func_cc_basename ()
7501: {
7502: for cc_temp in $*""; do
7503: case $cc_temp in
7504: compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7505: distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7506: \-*) ;;
7507: *) break;;
7508: esac
7509: done
7510: func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7511: }
7512:
7513: # Check whether --enable-libtool-lock was given.
1.7 ! ohara 7514: if test ${enable_libtool_lock+y}
! 7515: then :
1.5 ohara 7516: enableval=$enable_libtool_lock;
7517: fi
7518:
7519: test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7520:
7521: # Some flags need to be propagated to the compiler or linker for good
7522: # libtool support.
7523: case $host in
7524: ia64-*-hpux*)
7525: # Find out what ABI is being produced by ac_compile, and set mode
7526: # options accordingly.
7527: echo 'int i;' > conftest.$ac_ext
7528: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7529: (eval $ac_compile) 2>&5
7530: ac_status=$?
1.7 ! ohara 7531: printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1.5 ohara 7532: test $ac_status = 0; }; then
1.7 ! ohara 7533: case `$FILECMD conftest.$ac_objext` in
1.5 ohara 7534: *ELF-32*)
7535: HPUX_IA64_MODE=32
7536: ;;
7537: *ELF-64*)
7538: HPUX_IA64_MODE=64
7539: ;;
7540: esac
7541: fi
7542: rm -rf conftest*
7543: ;;
7544: *-*-irix6*)
7545: # Find out what ABI is being produced by ac_compile, and set linker
7546: # options accordingly.
7547: echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7548: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7549: (eval $ac_compile) 2>&5
7550: ac_status=$?
1.7 ! ohara 7551: printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1.5 ohara 7552: test $ac_status = 0; }; then
7553: if test yes = "$lt_cv_prog_gnu_ld"; then
1.7 ! ohara 7554: case `$FILECMD conftest.$ac_objext` in
1.5 ohara 7555: *32-bit*)
7556: LD="${LD-ld} -melf32bsmip"
7557: ;;
7558: *N32*)
7559: LD="${LD-ld} -melf32bmipn32"
7560: ;;
7561: *64-bit*)
7562: LD="${LD-ld} -melf64bmip"
7563: ;;
7564: esac
7565: else
1.7 ! ohara 7566: case `$FILECMD conftest.$ac_objext` in
1.5 ohara 7567: *32-bit*)
7568: LD="${LD-ld} -32"
7569: ;;
7570: *N32*)
7571: LD="${LD-ld} -n32"
7572: ;;
7573: *64-bit*)
7574: LD="${LD-ld} -64"
7575: ;;
7576: esac
7577: fi
7578: fi
7579: rm -rf conftest*
7580: ;;
7581:
7582: mips64*-*linux*)
7583: # Find out what ABI is being produced by ac_compile, and set linker
7584: # options accordingly.
7585: echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7586: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7587: (eval $ac_compile) 2>&5
7588: ac_status=$?
1.7 ! ohara 7589: printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1.5 ohara 7590: test $ac_status = 0; }; then
7591: emul=elf
1.7 ! ohara 7592: case `$FILECMD conftest.$ac_objext` in
1.5 ohara 7593: *32-bit*)
7594: emul="${emul}32"
7595: ;;
7596: *64-bit*)
7597: emul="${emul}64"
7598: ;;
7599: esac
1.7 ! ohara 7600: case `$FILECMD conftest.$ac_objext` in
1.5 ohara 7601: *MSB*)
7602: emul="${emul}btsmip"
7603: ;;
7604: *LSB*)
7605: emul="${emul}ltsmip"
7606: ;;
7607: esac
1.7 ! ohara 7608: case `$FILECMD conftest.$ac_objext` in
1.5 ohara 7609: *N32*)
7610: emul="${emul}n32"
7611: ;;
7612: esac
7613: LD="${LD-ld} -m $emul"
7614: fi
7615: rm -rf conftest*
7616: ;;
7617:
7618: x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7619: s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7620: # Find out what ABI is being produced by ac_compile, and set linker
7621: # options accordingly. Note that the listed cases only cover the
7622: # situations where additional linker options are needed (such as when
7623: # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7624: # vice versa); the common cases where no linker options are needed do
7625: # not appear in the list.
7626: echo 'int i;' > conftest.$ac_ext
7627: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7628: (eval $ac_compile) 2>&5
7629: ac_status=$?
1.7 ! ohara 7630: printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1.5 ohara 7631: test $ac_status = 0; }; then
1.7 ! ohara 7632: case `$FILECMD conftest.o` in
1.5 ohara 7633: *32-bit*)
7634: case $host in
7635: x86_64-*kfreebsd*-gnu)
7636: LD="${LD-ld} -m elf_i386_fbsd"
7637: ;;
7638: x86_64-*linux*)
1.7 ! ohara 7639: case `$FILECMD conftest.o` in
1.5 ohara 7640: *x86-64*)
7641: LD="${LD-ld} -m elf32_x86_64"
7642: ;;
7643: *)
7644: LD="${LD-ld} -m elf_i386"
7645: ;;
7646: esac
7647: ;;
7648: powerpc64le-*linux*)
7649: LD="${LD-ld} -m elf32lppclinux"
7650: ;;
7651: powerpc64-*linux*)
7652: LD="${LD-ld} -m elf32ppclinux"
7653: ;;
7654: s390x-*linux*)
7655: LD="${LD-ld} -m elf_s390"
7656: ;;
7657: sparc64-*linux*)
7658: LD="${LD-ld} -m elf32_sparc"
7659: ;;
7660: esac
7661: ;;
7662: *64-bit*)
7663: case $host in
7664: x86_64-*kfreebsd*-gnu)
7665: LD="${LD-ld} -m elf_x86_64_fbsd"
7666: ;;
7667: x86_64-*linux*)
7668: LD="${LD-ld} -m elf_x86_64"
7669: ;;
7670: powerpcle-*linux*)
7671: LD="${LD-ld} -m elf64lppc"
7672: ;;
7673: powerpc-*linux*)
7674: LD="${LD-ld} -m elf64ppc"
7675: ;;
7676: s390*-*linux*|s390*-*tpf*)
7677: LD="${LD-ld} -m elf64_s390"
7678: ;;
7679: sparc*-*linux*)
7680: LD="${LD-ld} -m elf64_sparc"
7681: ;;
7682: esac
7683: ;;
7684: esac
7685: fi
7686: rm -rf conftest*
7687: ;;
7688:
7689: *-*-sco3.2v5*)
7690: # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7691: SAVE_CFLAGS=$CFLAGS
7692: CFLAGS="$CFLAGS -belf"
1.7 ! ohara 7693: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
! 7694: printf %s "checking whether the C compiler needs -belf... " >&6; }
! 7695: if test ${lt_cv_cc_needs_belf+y}
! 7696: then :
! 7697: printf %s "(cached) " >&6
! 7698: else $as_nop
1.5 ohara 7699: ac_ext=c
7700: ac_cpp='$CPP $CPPFLAGS'
7701: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7702: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7703: ac_compiler_gnu=$ac_cv_c_compiler_gnu
7704:
7705: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7706: /* end confdefs.h. */
7707:
7708: int
1.7 ! ohara 7709: main (void)
1.5 ohara 7710: {
7711:
7712: ;
7713: return 0;
7714: }
7715: _ACEOF
1.7 ! ohara 7716: if ac_fn_c_try_link "$LINENO"
! 7717: then :
1.5 ohara 7718: lt_cv_cc_needs_belf=yes
1.7 ! ohara 7719: else $as_nop
1.5 ohara 7720: lt_cv_cc_needs_belf=no
7721: fi
1.7 ! ohara 7722: rm -f core conftest.err conftest.$ac_objext conftest.beam \
1.5 ohara 7723: conftest$ac_exeext conftest.$ac_ext
7724: ac_ext=c
7725: ac_cpp='$CPP $CPPFLAGS'
7726: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7727: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7728: ac_compiler_gnu=$ac_cv_c_compiler_gnu
7729:
7730: fi
1.7 ! ohara 7731: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
! 7732: printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
1.5 ohara 7733: if test yes != "$lt_cv_cc_needs_belf"; then
7734: # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7735: CFLAGS=$SAVE_CFLAGS
7736: fi
7737: ;;
7738: *-*solaris*)
7739: # Find out what ABI is being produced by ac_compile, and set linker
7740: # options accordingly.
7741: echo 'int i;' > conftest.$ac_ext
7742: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7743: (eval $ac_compile) 2>&5
7744: ac_status=$?
1.7 ! ohara 7745: printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1.5 ohara 7746: test $ac_status = 0; }; then
1.7 ! ohara 7747: case `$FILECMD conftest.o` in
1.5 ohara 7748: *64-bit*)
7749: case $lt_cv_prog_gnu_ld in
7750: yes*)
7751: case $host in
7752: i?86-*-solaris*|x86_64-*-solaris*)
7753: LD="${LD-ld} -m elf_x86_64"
7754: ;;
7755: sparc*-*-solaris*)
7756: LD="${LD-ld} -m elf64_sparc"
7757: ;;
7758: esac
7759: # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7760: if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7761: LD=${LD-ld}_sol2
7762: fi
7763: ;;
7764: *)
7765: if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7766: LD="${LD-ld} -64"
7767: fi
7768: ;;
7769: esac
7770: ;;
7771: esac
7772: fi
7773: rm -rf conftest*
7774: ;;
7775: esac
7776:
7777: need_locks=$enable_libtool_lock
7778:
7779: if test -n "$ac_tool_prefix"; then
7780: # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7781: set dummy ${ac_tool_prefix}mt; ac_word=$2
1.7 ! ohara 7782: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 7783: printf %s "checking for $ac_word... " >&6; }
! 7784: if test ${ac_cv_prog_MANIFEST_TOOL+y}
! 7785: then :
! 7786: printf %s "(cached) " >&6
! 7787: else $as_nop
1.5 ohara 7788: if test -n "$MANIFEST_TOOL"; then
7789: ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7790: else
7791: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7792: for as_dir in $PATH
7793: do
7794: IFS=$as_save_IFS
1.7 ! ohara 7795: case $as_dir in #(((
! 7796: '') as_dir=./ ;;
! 7797: */) ;;
! 7798: *) as_dir=$as_dir/ ;;
! 7799: esac
1.5 ohara 7800: for ac_exec_ext in '' $ac_executable_extensions; do
1.7 ! ohara 7801: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.5 ohara 7802: ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
1.7 ! ohara 7803: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.5 ohara 7804: break 2
7805: fi
7806: done
7807: done
7808: IFS=$as_save_IFS
7809:
7810: fi
7811: fi
7812: MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7813: if test -n "$MANIFEST_TOOL"; then
1.7 ! ohara 7814: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
! 7815: printf "%s\n" "$MANIFEST_TOOL" >&6; }
1.5 ohara 7816: else
1.7 ! ohara 7817: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 7818: printf "%s\n" "no" >&6; }
1.5 ohara 7819: fi
7820:
7821:
7822: fi
7823: if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7824: ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7825: # Extract the first word of "mt", so it can be a program name with args.
7826: set dummy mt; ac_word=$2
1.7 ! ohara 7827: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 7828: printf %s "checking for $ac_word... " >&6; }
! 7829: if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
! 7830: then :
! 7831: printf %s "(cached) " >&6
! 7832: else $as_nop
1.5 ohara 7833: if test -n "$ac_ct_MANIFEST_TOOL"; then
7834: ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7835: else
7836: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7837: for as_dir in $PATH
7838: do
7839: IFS=$as_save_IFS
1.7 ! ohara 7840: case $as_dir in #(((
! 7841: '') as_dir=./ ;;
! 7842: */) ;;
! 7843: *) as_dir=$as_dir/ ;;
! 7844: esac
1.5 ohara 7845: for ac_exec_ext in '' $ac_executable_extensions; do
1.7 ! ohara 7846: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.5 ohara 7847: ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
1.7 ! ohara 7848: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.5 ohara 7849: break 2
7850: fi
7851: done
7852: done
7853: IFS=$as_save_IFS
7854:
7855: fi
7856: fi
7857: ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7858: if test -n "$ac_ct_MANIFEST_TOOL"; then
1.7 ! ohara 7859: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
! 7860: printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
1.5 ohara 7861: else
1.7 ! ohara 7862: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 7863: printf "%s\n" "no" >&6; }
1.5 ohara 7864: fi
7865:
7866: if test "x$ac_ct_MANIFEST_TOOL" = x; then
7867: MANIFEST_TOOL=":"
7868: else
7869: case $cross_compiling:$ac_tool_warned in
7870: yes:)
1.7 ! ohara 7871: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
! 7872: printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
1.5 ohara 7873: ac_tool_warned=yes ;;
7874: esac
7875: MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7876: fi
7877: else
7878: MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7879: fi
7880:
7881: test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
1.7 ! ohara 7882: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
! 7883: printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
! 7884: if test ${lt_cv_path_mainfest_tool+y}
! 7885: then :
! 7886: printf %s "(cached) " >&6
! 7887: else $as_nop
1.5 ohara 7888: lt_cv_path_mainfest_tool=no
7889: echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7890: $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7891: cat conftest.err >&5
7892: if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7893: lt_cv_path_mainfest_tool=yes
7894: fi
7895: rm -f conftest*
7896: fi
1.7 ! ohara 7897: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
! 7898: printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
1.5 ohara 7899: if test yes != "$lt_cv_path_mainfest_tool"; then
7900: MANIFEST_TOOL=:
7901: fi
7902:
7903:
7904:
7905:
7906:
7907:
7908: case $host_os in
7909: rhapsody* | darwin*)
7910: if test -n "$ac_tool_prefix"; then
7911: # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7912: set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
1.7 ! ohara 7913: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 7914: printf %s "checking for $ac_word... " >&6; }
! 7915: if test ${ac_cv_prog_DSYMUTIL+y}
! 7916: then :
! 7917: printf %s "(cached) " >&6
! 7918: else $as_nop
1.5 ohara 7919: if test -n "$DSYMUTIL"; then
7920: ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7921: else
7922: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7923: for as_dir in $PATH
7924: do
7925: IFS=$as_save_IFS
1.7 ! ohara 7926: case $as_dir in #(((
! 7927: '') as_dir=./ ;;
! 7928: */) ;;
! 7929: *) as_dir=$as_dir/ ;;
! 7930: esac
1.5 ohara 7931: for ac_exec_ext in '' $ac_executable_extensions; do
1.7 ! ohara 7932: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.5 ohara 7933: ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
1.7 ! ohara 7934: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.5 ohara 7935: break 2
7936: fi
7937: done
7938: done
7939: IFS=$as_save_IFS
7940:
7941: fi
7942: fi
7943: DSYMUTIL=$ac_cv_prog_DSYMUTIL
7944: if test -n "$DSYMUTIL"; then
1.7 ! ohara 7945: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
! 7946: printf "%s\n" "$DSYMUTIL" >&6; }
1.5 ohara 7947: else
1.7 ! ohara 7948: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 7949: printf "%s\n" "no" >&6; }
1.5 ohara 7950: fi
7951:
7952:
7953: fi
7954: if test -z "$ac_cv_prog_DSYMUTIL"; then
7955: ac_ct_DSYMUTIL=$DSYMUTIL
7956: # Extract the first word of "dsymutil", so it can be a program name with args.
7957: set dummy dsymutil; ac_word=$2
1.7 ! ohara 7958: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 7959: printf %s "checking for $ac_word... " >&6; }
! 7960: if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
! 7961: then :
! 7962: printf %s "(cached) " >&6
! 7963: else $as_nop
1.5 ohara 7964: if test -n "$ac_ct_DSYMUTIL"; then
7965: ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7966: else
7967: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7968: for as_dir in $PATH
7969: do
7970: IFS=$as_save_IFS
1.7 ! ohara 7971: case $as_dir in #(((
! 7972: '') as_dir=./ ;;
! 7973: */) ;;
! 7974: *) as_dir=$as_dir/ ;;
! 7975: esac
1.5 ohara 7976: for ac_exec_ext in '' $ac_executable_extensions; do
1.7 ! ohara 7977: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.5 ohara 7978: ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
1.7 ! ohara 7979: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.5 ohara 7980: break 2
7981: fi
7982: done
7983: done
7984: IFS=$as_save_IFS
7985:
7986: fi
7987: fi
7988: ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7989: if test -n "$ac_ct_DSYMUTIL"; then
1.7 ! ohara 7990: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
! 7991: printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
1.5 ohara 7992: else
1.7 ! ohara 7993: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 7994: printf "%s\n" "no" >&6; }
1.5 ohara 7995: fi
7996:
7997: if test "x$ac_ct_DSYMUTIL" = x; then
7998: DSYMUTIL=":"
7999: else
8000: case $cross_compiling:$ac_tool_warned in
8001: yes:)
1.7 ! ohara 8002: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
! 8003: printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
1.5 ohara 8004: ac_tool_warned=yes ;;
8005: esac
8006: DSYMUTIL=$ac_ct_DSYMUTIL
8007: fi
8008: else
8009: DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8010: fi
8011:
8012: if test -n "$ac_tool_prefix"; then
8013: # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8014: set dummy ${ac_tool_prefix}nmedit; ac_word=$2
1.7 ! ohara 8015: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 8016: printf %s "checking for $ac_word... " >&6; }
! 8017: if test ${ac_cv_prog_NMEDIT+y}
! 8018: then :
! 8019: printf %s "(cached) " >&6
! 8020: else $as_nop
1.5 ohara 8021: if test -n "$NMEDIT"; then
8022: ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8023: else
8024: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8025: for as_dir in $PATH
8026: do
8027: IFS=$as_save_IFS
1.7 ! ohara 8028: case $as_dir in #(((
! 8029: '') as_dir=./ ;;
! 8030: */) ;;
! 8031: *) as_dir=$as_dir/ ;;
! 8032: esac
1.5 ohara 8033: for ac_exec_ext in '' $ac_executable_extensions; do
1.7 ! ohara 8034: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.5 ohara 8035: ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
1.7 ! ohara 8036: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.5 ohara 8037: break 2
8038: fi
8039: done
8040: done
8041: IFS=$as_save_IFS
8042:
8043: fi
8044: fi
8045: NMEDIT=$ac_cv_prog_NMEDIT
8046: if test -n "$NMEDIT"; then
1.7 ! ohara 8047: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
! 8048: printf "%s\n" "$NMEDIT" >&6; }
1.5 ohara 8049: else
1.7 ! ohara 8050: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 8051: printf "%s\n" "no" >&6; }
1.5 ohara 8052: fi
8053:
8054:
8055: fi
8056: if test -z "$ac_cv_prog_NMEDIT"; then
8057: ac_ct_NMEDIT=$NMEDIT
8058: # Extract the first word of "nmedit", so it can be a program name with args.
8059: set dummy nmedit; ac_word=$2
1.7 ! ohara 8060: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 8061: printf %s "checking for $ac_word... " >&6; }
! 8062: if test ${ac_cv_prog_ac_ct_NMEDIT+y}
! 8063: then :
! 8064: printf %s "(cached) " >&6
! 8065: else $as_nop
1.5 ohara 8066: if test -n "$ac_ct_NMEDIT"; then
8067: ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8068: else
8069: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8070: for as_dir in $PATH
8071: do
8072: IFS=$as_save_IFS
1.7 ! ohara 8073: case $as_dir in #(((
! 8074: '') as_dir=./ ;;
! 8075: */) ;;
! 8076: *) as_dir=$as_dir/ ;;
! 8077: esac
1.5 ohara 8078: for ac_exec_ext in '' $ac_executable_extensions; do
1.7 ! ohara 8079: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.5 ohara 8080: ac_cv_prog_ac_ct_NMEDIT="nmedit"
1.7 ! ohara 8081: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.5 ohara 8082: break 2
8083: fi
8084: done
8085: done
8086: IFS=$as_save_IFS
8087:
8088: fi
8089: fi
8090: ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8091: if test -n "$ac_ct_NMEDIT"; then
1.7 ! ohara 8092: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
! 8093: printf "%s\n" "$ac_ct_NMEDIT" >&6; }
1.5 ohara 8094: else
1.7 ! ohara 8095: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 8096: printf "%s\n" "no" >&6; }
1.5 ohara 8097: fi
8098:
8099: if test "x$ac_ct_NMEDIT" = x; then
8100: NMEDIT=":"
8101: else
8102: case $cross_compiling:$ac_tool_warned in
8103: yes:)
1.7 ! ohara 8104: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
! 8105: printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
1.5 ohara 8106: ac_tool_warned=yes ;;
8107: esac
8108: NMEDIT=$ac_ct_NMEDIT
8109: fi
8110: else
8111: NMEDIT="$ac_cv_prog_NMEDIT"
8112: fi
8113:
8114: if test -n "$ac_tool_prefix"; then
8115: # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8116: set dummy ${ac_tool_prefix}lipo; ac_word=$2
1.7 ! ohara 8117: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 8118: printf %s "checking for $ac_word... " >&6; }
! 8119: if test ${ac_cv_prog_LIPO+y}
! 8120: then :
! 8121: printf %s "(cached) " >&6
! 8122: else $as_nop
1.5 ohara 8123: if test -n "$LIPO"; then
8124: ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8125: else
8126: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8127: for as_dir in $PATH
8128: do
8129: IFS=$as_save_IFS
1.7 ! ohara 8130: case $as_dir in #(((
! 8131: '') as_dir=./ ;;
! 8132: */) ;;
! 8133: *) as_dir=$as_dir/ ;;
! 8134: esac
1.5 ohara 8135: for ac_exec_ext in '' $ac_executable_extensions; do
1.7 ! ohara 8136: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.5 ohara 8137: ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
1.7 ! ohara 8138: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.5 ohara 8139: break 2
8140: fi
8141: done
8142: done
8143: IFS=$as_save_IFS
8144:
8145: fi
8146: fi
8147: LIPO=$ac_cv_prog_LIPO
8148: if test -n "$LIPO"; then
1.7 ! ohara 8149: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
! 8150: printf "%s\n" "$LIPO" >&6; }
1.5 ohara 8151: else
1.7 ! ohara 8152: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 8153: printf "%s\n" "no" >&6; }
1.5 ohara 8154: fi
8155:
8156:
8157: fi
8158: if test -z "$ac_cv_prog_LIPO"; then
8159: ac_ct_LIPO=$LIPO
8160: # Extract the first word of "lipo", so it can be a program name with args.
8161: set dummy lipo; ac_word=$2
1.7 ! ohara 8162: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 8163: printf %s "checking for $ac_word... " >&6; }
! 8164: if test ${ac_cv_prog_ac_ct_LIPO+y}
! 8165: then :
! 8166: printf %s "(cached) " >&6
! 8167: else $as_nop
1.5 ohara 8168: if test -n "$ac_ct_LIPO"; then
8169: ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8170: else
8171: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8172: for as_dir in $PATH
8173: do
8174: IFS=$as_save_IFS
1.7 ! ohara 8175: case $as_dir in #(((
! 8176: '') as_dir=./ ;;
! 8177: */) ;;
! 8178: *) as_dir=$as_dir/ ;;
! 8179: esac
1.5 ohara 8180: for ac_exec_ext in '' $ac_executable_extensions; do
1.7 ! ohara 8181: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.5 ohara 8182: ac_cv_prog_ac_ct_LIPO="lipo"
1.7 ! ohara 8183: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.5 ohara 8184: break 2
8185: fi
8186: done
8187: done
8188: IFS=$as_save_IFS
8189:
8190: fi
8191: fi
8192: ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8193: if test -n "$ac_ct_LIPO"; then
1.7 ! ohara 8194: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
! 8195: printf "%s\n" "$ac_ct_LIPO" >&6; }
1.5 ohara 8196: else
1.7 ! ohara 8197: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 8198: printf "%s\n" "no" >&6; }
1.5 ohara 8199: fi
8200:
8201: if test "x$ac_ct_LIPO" = x; then
8202: LIPO=":"
8203: else
8204: case $cross_compiling:$ac_tool_warned in
8205: yes:)
1.7 ! ohara 8206: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
! 8207: printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
1.5 ohara 8208: ac_tool_warned=yes ;;
8209: esac
8210: LIPO=$ac_ct_LIPO
8211: fi
8212: else
8213: LIPO="$ac_cv_prog_LIPO"
8214: fi
8215:
8216: if test -n "$ac_tool_prefix"; then
8217: # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8218: set dummy ${ac_tool_prefix}otool; ac_word=$2
1.7 ! ohara 8219: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 8220: printf %s "checking for $ac_word... " >&6; }
! 8221: if test ${ac_cv_prog_OTOOL+y}
! 8222: then :
! 8223: printf %s "(cached) " >&6
! 8224: else $as_nop
1.5 ohara 8225: if test -n "$OTOOL"; then
8226: ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8227: else
8228: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8229: for as_dir in $PATH
8230: do
8231: IFS=$as_save_IFS
1.7 ! ohara 8232: case $as_dir in #(((
! 8233: '') as_dir=./ ;;
! 8234: */) ;;
! 8235: *) as_dir=$as_dir/ ;;
! 8236: esac
1.5 ohara 8237: for ac_exec_ext in '' $ac_executable_extensions; do
1.7 ! ohara 8238: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.5 ohara 8239: ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
1.7 ! ohara 8240: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.5 ohara 8241: break 2
8242: fi
8243: done
8244: done
8245: IFS=$as_save_IFS
8246:
8247: fi
8248: fi
8249: OTOOL=$ac_cv_prog_OTOOL
8250: if test -n "$OTOOL"; then
1.7 ! ohara 8251: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
! 8252: printf "%s\n" "$OTOOL" >&6; }
1.5 ohara 8253: else
1.7 ! ohara 8254: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 8255: printf "%s\n" "no" >&6; }
1.5 ohara 8256: fi
8257:
8258:
8259: fi
8260: if test -z "$ac_cv_prog_OTOOL"; then
8261: ac_ct_OTOOL=$OTOOL
8262: # Extract the first word of "otool", so it can be a program name with args.
8263: set dummy otool; ac_word=$2
1.7 ! ohara 8264: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 8265: printf %s "checking for $ac_word... " >&6; }
! 8266: if test ${ac_cv_prog_ac_ct_OTOOL+y}
! 8267: then :
! 8268: printf %s "(cached) " >&6
! 8269: else $as_nop
1.5 ohara 8270: if test -n "$ac_ct_OTOOL"; then
8271: ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8272: else
8273: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8274: for as_dir in $PATH
8275: do
8276: IFS=$as_save_IFS
1.7 ! ohara 8277: case $as_dir in #(((
! 8278: '') as_dir=./ ;;
! 8279: */) ;;
! 8280: *) as_dir=$as_dir/ ;;
! 8281: esac
1.5 ohara 8282: for ac_exec_ext in '' $ac_executable_extensions; do
1.7 ! ohara 8283: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.5 ohara 8284: ac_cv_prog_ac_ct_OTOOL="otool"
1.7 ! ohara 8285: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.5 ohara 8286: break 2
8287: fi
8288: done
8289: done
8290: IFS=$as_save_IFS
8291:
8292: fi
8293: fi
8294: ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8295: if test -n "$ac_ct_OTOOL"; then
1.7 ! ohara 8296: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
! 8297: printf "%s\n" "$ac_ct_OTOOL" >&6; }
1.5 ohara 8298: else
1.7 ! ohara 8299: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 8300: printf "%s\n" "no" >&6; }
1.5 ohara 8301: fi
8302:
8303: if test "x$ac_ct_OTOOL" = x; then
8304: OTOOL=":"
8305: else
8306: case $cross_compiling:$ac_tool_warned in
8307: yes:)
1.7 ! ohara 8308: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
! 8309: printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
1.5 ohara 8310: ac_tool_warned=yes ;;
8311: esac
8312: OTOOL=$ac_ct_OTOOL
8313: fi
8314: else
8315: OTOOL="$ac_cv_prog_OTOOL"
8316: fi
8317:
8318: if test -n "$ac_tool_prefix"; then
8319: # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8320: set dummy ${ac_tool_prefix}otool64; ac_word=$2
1.7 ! ohara 8321: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 8322: printf %s "checking for $ac_word... " >&6; }
! 8323: if test ${ac_cv_prog_OTOOL64+y}
! 8324: then :
! 8325: printf %s "(cached) " >&6
! 8326: else $as_nop
1.5 ohara 8327: if test -n "$OTOOL64"; then
8328: ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8329: else
8330: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8331: for as_dir in $PATH
8332: do
8333: IFS=$as_save_IFS
1.7 ! ohara 8334: case $as_dir in #(((
! 8335: '') as_dir=./ ;;
! 8336: */) ;;
! 8337: *) as_dir=$as_dir/ ;;
! 8338: esac
1.5 ohara 8339: for ac_exec_ext in '' $ac_executable_extensions; do
1.7 ! ohara 8340: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.5 ohara 8341: ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
1.7 ! ohara 8342: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.5 ohara 8343: break 2
8344: fi
8345: done
8346: done
8347: IFS=$as_save_IFS
8348:
8349: fi
8350: fi
8351: OTOOL64=$ac_cv_prog_OTOOL64
8352: if test -n "$OTOOL64"; then
1.7 ! ohara 8353: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
! 8354: printf "%s\n" "$OTOOL64" >&6; }
1.5 ohara 8355: else
1.7 ! ohara 8356: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 8357: printf "%s\n" "no" >&6; }
1.5 ohara 8358: fi
8359:
8360:
8361: fi
8362: if test -z "$ac_cv_prog_OTOOL64"; then
8363: ac_ct_OTOOL64=$OTOOL64
8364: # Extract the first word of "otool64", so it can be a program name with args.
8365: set dummy otool64; ac_word=$2
1.7 ! ohara 8366: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 8367: printf %s "checking for $ac_word... " >&6; }
! 8368: if test ${ac_cv_prog_ac_ct_OTOOL64+y}
! 8369: then :
! 8370: printf %s "(cached) " >&6
! 8371: else $as_nop
1.5 ohara 8372: if test -n "$ac_ct_OTOOL64"; then
8373: ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8374: else
8375: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8376: for as_dir in $PATH
8377: do
8378: IFS=$as_save_IFS
1.7 ! ohara 8379: case $as_dir in #(((
! 8380: '') as_dir=./ ;;
! 8381: */) ;;
! 8382: *) as_dir=$as_dir/ ;;
! 8383: esac
1.5 ohara 8384: for ac_exec_ext in '' $ac_executable_extensions; do
1.7 ! ohara 8385: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.5 ohara 8386: ac_cv_prog_ac_ct_OTOOL64="otool64"
1.7 ! ohara 8387: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.5 ohara 8388: break 2
8389: fi
8390: done
8391: done
8392: IFS=$as_save_IFS
8393:
8394: fi
8395: fi
8396: ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8397: if test -n "$ac_ct_OTOOL64"; then
1.7 ! ohara 8398: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
! 8399: printf "%s\n" "$ac_ct_OTOOL64" >&6; }
1.5 ohara 8400: else
1.7 ! ohara 8401: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 8402: printf "%s\n" "no" >&6; }
1.5 ohara 8403: fi
8404:
8405: if test "x$ac_ct_OTOOL64" = x; then
8406: OTOOL64=":"
8407: else
8408: case $cross_compiling:$ac_tool_warned in
8409: yes:)
1.7 ! ohara 8410: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
! 8411: printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
1.5 ohara 8412: ac_tool_warned=yes ;;
8413: esac
8414: OTOOL64=$ac_ct_OTOOL64
8415: fi
8416: else
8417: OTOOL64="$ac_cv_prog_OTOOL64"
8418: fi
8419:
8420:
8421:
8422:
8423:
8424:
8425:
8426:
8427:
8428:
8429:
8430:
8431:
8432:
8433:
8434:
8435:
8436:
8437:
8438:
8439:
8440:
8441:
8442:
8443:
8444:
8445:
1.7 ! ohara 8446: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
! 8447: printf %s "checking for -single_module linker flag... " >&6; }
! 8448: if test ${lt_cv_apple_cc_single_mod+y}
! 8449: then :
! 8450: printf %s "(cached) " >&6
! 8451: else $as_nop
1.5 ohara 8452: lt_cv_apple_cc_single_mod=no
8453: if test -z "$LT_MULTI_MODULE"; then
8454: # By default we will add the -single_module flag. You can override
8455: # by either setting the environment variable LT_MULTI_MODULE
8456: # non-empty at configure time, or by adding -multi_module to the
8457: # link flags.
8458: rm -rf libconftest.dylib*
8459: echo "int foo(void){return 1;}" > conftest.c
8460: echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8461: -dynamiclib -Wl,-single_module conftest.c" >&5
8462: $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8463: -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8464: _lt_result=$?
8465: # If there is a non-empty error log, and "single_module"
8466: # appears in it, assume the flag caused a linker warning
8467: if test -s conftest.err && $GREP single_module conftest.err; then
8468: cat conftest.err >&5
8469: # Otherwise, if the output was created with a 0 exit code from
8470: # the compiler, it worked.
8471: elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8472: lt_cv_apple_cc_single_mod=yes
8473: else
8474: cat conftest.err >&5
8475: fi
8476: rm -rf libconftest.dylib*
8477: rm -f conftest.*
8478: fi
8479: fi
1.7 ! ohara 8480: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
! 8481: printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
1.5 ohara 8482:
1.7 ! ohara 8483: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
! 8484: printf %s "checking for -exported_symbols_list linker flag... " >&6; }
! 8485: if test ${lt_cv_ld_exported_symbols_list+y}
! 8486: then :
! 8487: printf %s "(cached) " >&6
! 8488: else $as_nop
1.5 ohara 8489: lt_cv_ld_exported_symbols_list=no
8490: save_LDFLAGS=$LDFLAGS
8491: echo "_main" > conftest.sym
8492: LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8493: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8494: /* end confdefs.h. */
8495:
8496: int
1.7 ! ohara 8497: main (void)
1.5 ohara 8498: {
8499:
8500: ;
8501: return 0;
8502: }
8503: _ACEOF
1.7 ! ohara 8504: if ac_fn_c_try_link "$LINENO"
! 8505: then :
1.5 ohara 8506: lt_cv_ld_exported_symbols_list=yes
1.7 ! ohara 8507: else $as_nop
1.5 ohara 8508: lt_cv_ld_exported_symbols_list=no
8509: fi
1.7 ! ohara 8510: rm -f core conftest.err conftest.$ac_objext conftest.beam \
1.5 ohara 8511: conftest$ac_exeext conftest.$ac_ext
8512: LDFLAGS=$save_LDFLAGS
8513:
8514: fi
1.7 ! ohara 8515: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
! 8516: printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
1.5 ohara 8517:
1.7 ! ohara 8518: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
! 8519: printf %s "checking for -force_load linker flag... " >&6; }
! 8520: if test ${lt_cv_ld_force_load+y}
! 8521: then :
! 8522: printf %s "(cached) " >&6
! 8523: else $as_nop
1.5 ohara 8524: lt_cv_ld_force_load=no
8525: cat > conftest.c << _LT_EOF
8526: int forced_loaded() { return 2;}
8527: _LT_EOF
8528: echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8529: $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
1.7 ! ohara 8530: echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
! 8531: $AR $AR_FLAGS libconftest.a conftest.o 2>&5
1.5 ohara 8532: echo "$RANLIB libconftest.a" >&5
8533: $RANLIB libconftest.a 2>&5
8534: cat > conftest.c << _LT_EOF
8535: int main() { return 0;}
8536: _LT_EOF
8537: echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8538: $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8539: _lt_result=$?
8540: if test -s conftest.err && $GREP force_load conftest.err; then
8541: cat conftest.err >&5
8542: elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8543: lt_cv_ld_force_load=yes
8544: else
8545: cat conftest.err >&5
8546: fi
8547: rm -f conftest.err libconftest.a conftest conftest.c
8548: rm -rf conftest.dSYM
8549:
8550: fi
1.7 ! ohara 8551: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
! 8552: printf "%s\n" "$lt_cv_ld_force_load" >&6; }
1.5 ohara 8553: case $host_os in
8554: rhapsody* | darwin1.[012])
8555: _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8556: darwin1.*)
8557: _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
1.7 ! ohara 8558: darwin*)
! 8559: case $MACOSX_DEPLOYMENT_TARGET,$host in
! 8560: 10.[012],*|,*powerpc*-darwin[5-8]*)
! 8561: _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
! 8562: *)
! 8563: _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
1.5 ohara 8564: esac
8565: ;;
8566: esac
8567: if test yes = "$lt_cv_apple_cc_single_mod"; then
8568: _lt_dar_single_mod='$single_module'
8569: fi
8570: if test yes = "$lt_cv_ld_exported_symbols_list"; then
8571: _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8572: else
8573: _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8574: fi
8575: if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8576: _lt_dsymutil='~$DSYMUTIL $lib || :'
8577: else
8578: _lt_dsymutil=
8579: fi
8580: ;;
8581: esac
8582:
8583: # func_munge_path_list VARIABLE PATH
8584: # -----------------------------------
8585: # VARIABLE is name of variable containing _space_ separated list of
8586: # directories to be munged by the contents of PATH, which is string
8587: # having a format:
8588: # "DIR[:DIR]:"
8589: # string "DIR[ DIR]" will be prepended to VARIABLE
8590: # ":DIR[:DIR]"
8591: # string "DIR[ DIR]" will be appended to VARIABLE
8592: # "DIRP[:DIRP]::[DIRA:]DIRA"
8593: # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8594: # "DIRA[ DIRA]" will be appended to VARIABLE
8595: # "DIR[:DIR]"
8596: # VARIABLE will be replaced by "DIR[ DIR]"
8597: func_munge_path_list ()
8598: {
8599: case x$2 in
8600: x)
8601: ;;
8602: *:)
8603: eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8604: ;;
8605: x:*)
8606: eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8607: ;;
8608: *::*)
8609: eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8610: eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8611: ;;
8612: *)
8613: eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8614: ;;
8615: esac
8616: }
8617:
1.7 ! ohara 8618: ac_header= ac_cache=
! 8619: for ac_item in $ac_header_c_list
! 8620: do
! 8621: if test $ac_cache; then
! 8622: ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
! 8623: if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
! 8624: printf "%s\n" "#define $ac_item 1" >> confdefs.h
! 8625: fi
! 8626: ac_header= ac_cache=
! 8627: elif test $ac_header; then
! 8628: ac_cache=$ac_item
! 8629: else
! 8630: ac_header=$ac_item
! 8631: fi
! 8632: done
1.5 ohara 8633:
8634:
8635:
8636:
8637:
8638:
8639:
8640:
1.7 ! ohara 8641: if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
! 8642: then :
1.5 ohara 8643:
1.7 ! ohara 8644: printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
1.5 ohara 8645:
8646: fi
1.7 ! ohara 8647: ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
1.5 ohara 8648: "
1.7 ! ohara 8649: if test "x$ac_cv_header_dlfcn_h" = xyes
! 8650: then :
! 8651: printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
1.5 ohara 8652:
8653: fi
8654:
8655:
8656:
8657:
8658:
8659: # Set options
8660:
8661:
8662:
8663: enable_dlopen=no
8664:
8665:
8666: enable_win32_dll=no
8667:
8668:
8669: # Check whether --enable-shared was given.
1.7 ! ohara 8670: if test ${enable_shared+y}
! 8671: then :
1.5 ohara 8672: enableval=$enable_shared; p=${PACKAGE-default}
8673: case $enableval in
8674: yes) enable_shared=yes ;;
8675: no) enable_shared=no ;;
8676: *)
8677: enable_shared=no
8678: # Look at the argument we got. We use all the common list separators.
8679: lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8680: for pkg in $enableval; do
8681: IFS=$lt_save_ifs
8682: if test "X$pkg" = "X$p"; then
8683: enable_shared=yes
8684: fi
8685: done
8686: IFS=$lt_save_ifs
8687: ;;
8688: esac
1.7 ! ohara 8689: else $as_nop
1.5 ohara 8690: enable_shared=yes
8691: fi
8692:
8693:
8694:
8695:
8696:
8697:
8698:
8699:
8700:
8701: # Check whether --enable-static was given.
1.7 ! ohara 8702: if test ${enable_static+y}
! 8703: then :
1.5 ohara 8704: enableval=$enable_static; p=${PACKAGE-default}
8705: case $enableval in
8706: yes) enable_static=yes ;;
8707: no) enable_static=no ;;
8708: *)
8709: enable_static=no
8710: # Look at the argument we got. We use all the common list separators.
8711: lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8712: for pkg in $enableval; do
8713: IFS=$lt_save_ifs
8714: if test "X$pkg" = "X$p"; then
8715: enable_static=yes
8716: fi
8717: done
8718: IFS=$lt_save_ifs
8719: ;;
8720: esac
1.7 ! ohara 8721: else $as_nop
1.5 ohara 8722: enable_static=yes
8723: fi
8724:
8725:
8726:
8727:
8728:
8729:
8730:
8731:
8732:
8733:
8734: # Check whether --with-pic was given.
1.7 ! ohara 8735: if test ${with_pic+y}
! 8736: then :
1.5 ohara 8737: withval=$with_pic; lt_p=${PACKAGE-default}
8738: case $withval in
8739: yes|no) pic_mode=$withval ;;
8740: *)
8741: pic_mode=default
8742: # Look at the argument we got. We use all the common list separators.
8743: lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8744: for lt_pkg in $withval; do
8745: IFS=$lt_save_ifs
8746: if test "X$lt_pkg" = "X$lt_p"; then
8747: pic_mode=yes
8748: fi
8749: done
8750: IFS=$lt_save_ifs
8751: ;;
8752: esac
1.7 ! ohara 8753: else $as_nop
1.5 ohara 8754: pic_mode=default
8755: fi
8756:
8757:
8758:
8759:
8760:
8761:
8762:
8763:
8764: # Check whether --enable-fast-install was given.
1.7 ! ohara 8765: if test ${enable_fast_install+y}
! 8766: then :
1.5 ohara 8767: enableval=$enable_fast_install; p=${PACKAGE-default}
8768: case $enableval in
8769: yes) enable_fast_install=yes ;;
8770: no) enable_fast_install=no ;;
8771: *)
8772: enable_fast_install=no
8773: # Look at the argument we got. We use all the common list separators.
8774: lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8775: for pkg in $enableval; do
8776: IFS=$lt_save_ifs
8777: if test "X$pkg" = "X$p"; then
8778: enable_fast_install=yes
8779: fi
8780: done
8781: IFS=$lt_save_ifs
8782: ;;
8783: esac
1.7 ! ohara 8784: else $as_nop
1.5 ohara 8785: enable_fast_install=yes
8786: fi
8787:
8788:
8789:
8790:
8791:
8792:
8793:
8794:
8795: shared_archive_member_spec=
8796: case $host,$enable_shared in
8797: power*-*-aix[5-9]*,yes)
1.7 ! ohara 8798: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
! 8799: printf %s "checking which variant of shared library versioning to provide... " >&6; }
1.5 ohara 8800:
8801: # Check whether --with-aix-soname was given.
1.7 ! ohara 8802: if test ${with_aix_soname+y}
! 8803: then :
1.5 ohara 8804: withval=$with_aix_soname; case $withval in
8805: aix|svr4|both)
8806: ;;
8807: *)
8808: as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8809: ;;
8810: esac
8811: lt_cv_with_aix_soname=$with_aix_soname
1.7 ! ohara 8812: else $as_nop
! 8813: if test ${lt_cv_with_aix_soname+y}
! 8814: then :
! 8815: printf %s "(cached) " >&6
! 8816: else $as_nop
1.5 ohara 8817: lt_cv_with_aix_soname=aix
8818: fi
8819:
8820: with_aix_soname=$lt_cv_with_aix_soname
8821: fi
8822:
1.7 ! ohara 8823: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
! 8824: printf "%s\n" "$with_aix_soname" >&6; }
1.5 ohara 8825: if test aix != "$with_aix_soname"; then
8826: # For the AIX way of multilib, we name the shared archive member
8827: # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8828: # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8829: # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8830: # the AIX toolchain works better with OBJECT_MODE set (default 32).
8831: if test 64 = "${OBJECT_MODE-32}"; then
8832: shared_archive_member_spec=shr_64
8833: else
8834: shared_archive_member_spec=shr
8835: fi
8836: fi
8837: ;;
8838: *)
8839: with_aix_soname=aix
8840: ;;
8841: esac
8842:
8843:
8844:
8845:
8846:
8847:
8848:
8849:
8850:
8851:
8852: # This can be used to rebuild libtool when needed
8853: LIBTOOL_DEPS=$ltmain
8854:
8855: # Always use our own libtool.
8856: LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8857:
8858:
8859:
8860:
8861:
8862:
8863:
8864:
8865:
8866:
8867:
8868:
8869:
8870:
8871:
8872:
8873:
8874:
8875:
8876:
8877:
8878:
8879:
8880:
8881:
8882:
8883:
8884:
8885:
8886:
8887: test -z "$LN_S" && LN_S="ln -s"
8888:
8889:
8890:
8891:
8892:
8893:
8894:
8895:
8896:
8897:
8898:
8899:
8900:
8901:
8902: if test -n "${ZSH_VERSION+set}"; then
8903: setopt NO_GLOB_SUBST
8904: fi
8905:
1.7 ! ohara 8906: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
! 8907: printf %s "checking for objdir... " >&6; }
! 8908: if test ${lt_cv_objdir+y}
! 8909: then :
! 8910: printf %s "(cached) " >&6
! 8911: else $as_nop
1.5 ohara 8912: rm -f .libs 2>/dev/null
8913: mkdir .libs 2>/dev/null
8914: if test -d .libs; then
8915: lt_cv_objdir=.libs
8916: else
8917: # MS-DOS does not allow filenames that begin with a dot.
8918: lt_cv_objdir=_libs
8919: fi
8920: rmdir .libs 2>/dev/null
8921: fi
1.7 ! ohara 8922: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
! 8923: printf "%s\n" "$lt_cv_objdir" >&6; }
1.5 ohara 8924: objdir=$lt_cv_objdir
8925:
8926:
8927:
8928:
8929:
1.7 ! ohara 8930: printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
1.5 ohara 8931:
8932:
8933:
8934:
8935: case $host_os in
8936: aix3*)
8937: # AIX sometimes has problems with the GCC collect2 program. For some
8938: # reason, if we set the COLLECT_NAMES environment variable, the problems
8939: # vanish in a puff of smoke.
8940: if test set != "${COLLECT_NAMES+set}"; then
8941: COLLECT_NAMES=
8942: export COLLECT_NAMES
8943: fi
8944: ;;
8945: esac
8946:
8947: # Global variables:
8948: ofile=libtool
8949: can_build_shared=yes
8950:
1.7 ! ohara 8951: # All known linkers require a '.a' archive for static linking (except MSVC and
! 8952: # ICC, which need '.lib').
1.5 ohara 8953: libext=a
8954:
8955: with_gnu_ld=$lt_cv_prog_gnu_ld
8956:
8957: old_CC=$CC
8958: old_CFLAGS=$CFLAGS
8959:
8960: # Set sane defaults for various variables
8961: test -z "$CC" && CC=cc
8962: test -z "$LTCC" && LTCC=$CC
8963: test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8964: test -z "$LD" && LD=ld
8965: test -z "$ac_objext" && ac_objext=o
8966:
8967: func_cc_basename $compiler
8968: cc_basename=$func_cc_basename_result
8969:
8970:
8971: # Only perform the check for file, if the check method requires it
8972: test -z "$MAGIC_CMD" && MAGIC_CMD=file
8973: case $deplibs_check_method in
8974: file_magic*)
8975: if test "$file_magic_cmd" = '$MAGIC_CMD'; then
1.7 ! ohara 8976: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
! 8977: printf %s "checking for ${ac_tool_prefix}file... " >&6; }
! 8978: if test ${lt_cv_path_MAGIC_CMD+y}
! 8979: then :
! 8980: printf %s "(cached) " >&6
! 8981: else $as_nop
1.5 ohara 8982: case $MAGIC_CMD in
8983: [\\/*] | ?:[\\/]*)
8984: lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8985: ;;
8986: *)
8987: lt_save_MAGIC_CMD=$MAGIC_CMD
8988: lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8989: ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8990: for ac_dir in $ac_dummy; do
8991: IFS=$lt_save_ifs
8992: test -z "$ac_dir" && ac_dir=.
8993: if test -f "$ac_dir/${ac_tool_prefix}file"; then
8994: lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8995: if test -n "$file_magic_test_file"; then
8996: case $deplibs_check_method in
8997: "file_magic "*)
8998: file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8999: MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9000: if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9001: $EGREP "$file_magic_regex" > /dev/null; then
9002: :
9003: else
9004: cat <<_LT_EOF 1>&2
9005:
9006: *** Warning: the command libtool uses to detect shared libraries,
9007: *** $file_magic_cmd, produces output that libtool cannot recognize.
9008: *** The result is that libtool may fail to recognize shared libraries
9009: *** as such. This will affect the creation of libtool libraries that
9010: *** depend on shared libraries, but programs linked with such libtool
9011: *** libraries will work regardless of this problem. Nevertheless, you
9012: *** may want to report the problem to your system manager and/or to
9013: *** bug-libtool@gnu.org
9014:
9015: _LT_EOF
9016: fi ;;
9017: esac
9018: fi
9019: break
9020: fi
9021: done
9022: IFS=$lt_save_ifs
9023: MAGIC_CMD=$lt_save_MAGIC_CMD
9024: ;;
9025: esac
9026: fi
9027:
9028: MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9029: if test -n "$MAGIC_CMD"; then
1.7 ! ohara 9030: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
! 9031: printf "%s\n" "$MAGIC_CMD" >&6; }
1.5 ohara 9032: else
1.7 ! ohara 9033: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 9034: printf "%s\n" "no" >&6; }
1.5 ohara 9035: fi
9036:
9037:
9038:
9039:
9040:
9041: if test -z "$lt_cv_path_MAGIC_CMD"; then
9042: if test -n "$ac_tool_prefix"; then
1.7 ! ohara 9043: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
! 9044: printf %s "checking for file... " >&6; }
! 9045: if test ${lt_cv_path_MAGIC_CMD+y}
! 9046: then :
! 9047: printf %s "(cached) " >&6
! 9048: else $as_nop
1.5 ohara 9049: case $MAGIC_CMD in
9050: [\\/*] | ?:[\\/]*)
9051: lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9052: ;;
9053: *)
9054: lt_save_MAGIC_CMD=$MAGIC_CMD
9055: lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9056: ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9057: for ac_dir in $ac_dummy; do
9058: IFS=$lt_save_ifs
9059: test -z "$ac_dir" && ac_dir=.
9060: if test -f "$ac_dir/file"; then
9061: lt_cv_path_MAGIC_CMD=$ac_dir/"file"
9062: if test -n "$file_magic_test_file"; then
9063: case $deplibs_check_method in
9064: "file_magic "*)
9065: file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9066: MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9067: if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9068: $EGREP "$file_magic_regex" > /dev/null; then
9069: :
9070: else
9071: cat <<_LT_EOF 1>&2
9072:
9073: *** Warning: the command libtool uses to detect shared libraries,
9074: *** $file_magic_cmd, produces output that libtool cannot recognize.
9075: *** The result is that libtool may fail to recognize shared libraries
9076: *** as such. This will affect the creation of libtool libraries that
9077: *** depend on shared libraries, but programs linked with such libtool
9078: *** libraries will work regardless of this problem. Nevertheless, you
9079: *** may want to report the problem to your system manager and/or to
9080: *** bug-libtool@gnu.org
9081:
9082: _LT_EOF
9083: fi ;;
9084: esac
9085: fi
9086: break
9087: fi
9088: done
9089: IFS=$lt_save_ifs
9090: MAGIC_CMD=$lt_save_MAGIC_CMD
9091: ;;
9092: esac
9093: fi
9094:
9095: MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9096: if test -n "$MAGIC_CMD"; then
1.7 ! ohara 9097: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
! 9098: printf "%s\n" "$MAGIC_CMD" >&6; }
1.5 ohara 9099: else
1.7 ! ohara 9100: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 9101: printf "%s\n" "no" >&6; }
1.5 ohara 9102: fi
9103:
9104:
9105: else
9106: MAGIC_CMD=:
9107: fi
9108: fi
9109:
9110: fi
9111: ;;
9112: esac
9113:
9114: # Use C for the default configuration in the libtool script
9115:
9116: lt_save_CC=$CC
9117: ac_ext=c
9118: ac_cpp='$CPP $CPPFLAGS'
9119: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9120: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9121: ac_compiler_gnu=$ac_cv_c_compiler_gnu
9122:
9123:
9124: # Source file extension for C test sources.
9125: ac_ext=c
9126:
9127: # Object file extension for compiled C test sources.
9128: objext=o
9129: objext=$objext
9130:
9131: # Code to be used in simple compile tests
9132: lt_simple_compile_test_code="int some_variable = 0;"
9133:
9134: # Code to be used in simple link tests
9135: lt_simple_link_test_code='int main(){return(0);}'
9136:
9137:
9138:
9139:
9140:
9141:
9142:
9143: # If no C compiler was specified, use CC.
9144: LTCC=${LTCC-"$CC"}
9145:
9146: # If no C compiler flags were specified, use CFLAGS.
9147: LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9148:
9149: # Allow CC to be a program name with arguments.
9150: compiler=$CC
9151:
9152: # Save the default compiler, since it gets overwritten when the other
9153: # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9154: compiler_DEFAULT=$CC
9155:
9156: # save warnings/boilerplate of simple test code
9157: ac_outfile=conftest.$ac_objext
9158: echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9159: eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9160: _lt_compiler_boilerplate=`cat conftest.err`
9161: $RM conftest*
9162:
9163: ac_outfile=conftest.$ac_objext
9164: echo "$lt_simple_link_test_code" >conftest.$ac_ext
9165: eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9166: _lt_linker_boilerplate=`cat conftest.err`
9167: $RM -r conftest*
9168:
9169:
9170: if test -n "$compiler"; then
9171:
9172: lt_prog_compiler_no_builtin_flag=
9173:
9174: if test yes = "$GCC"; then
9175: case $cc_basename in
9176: nvcc*)
9177: lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9178: *)
9179: lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9180: esac
9181:
1.7 ! ohara 9182: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
! 9183: printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
! 9184: if test ${lt_cv_prog_compiler_rtti_exceptions+y}
! 9185: then :
! 9186: printf %s "(cached) " >&6
! 9187: else $as_nop
1.5 ohara 9188: lt_cv_prog_compiler_rtti_exceptions=no
9189: ac_outfile=conftest.$ac_objext
9190: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9191: lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
9192: # Insert the option either (1) after the last *FLAGS variable, or
9193: # (2) before a word containing "conftest.", or (3) at the end.
9194: # Note that $ac_compile itself does not contain backslashes and begins
9195: # with a dollar sign (not a hyphen), so the echo should work correctly.
9196: # The option is referenced via a variable to avoid confusing sed.
9197: lt_compile=`echo "$ac_compile" | $SED \
9198: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9199: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9200: -e 's:$: $lt_compiler_flag:'`
9201: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9202: (eval "$lt_compile" 2>conftest.err)
9203: ac_status=$?
9204: cat conftest.err >&5
9205: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9206: if (exit $ac_status) && test -s "$ac_outfile"; then
9207: # The compiler can only warn and ignore the option if not recognized
9208: # So say no if there are warnings other than the usual output.
9209: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9210: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9211: if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9212: lt_cv_prog_compiler_rtti_exceptions=yes
9213: fi
9214: fi
9215: $RM conftest*
9216:
9217: fi
1.7 ! ohara 9218: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
! 9219: printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
1.5 ohara 9220:
9221: if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
9222: lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9223: else
9224: :
9225: fi
9226:
9227: fi
9228:
9229:
9230:
9231:
9232:
9233:
9234: lt_prog_compiler_wl=
9235: lt_prog_compiler_pic=
9236: lt_prog_compiler_static=
9237:
9238:
9239: if test yes = "$GCC"; then
9240: lt_prog_compiler_wl='-Wl,'
9241: lt_prog_compiler_static='-static'
9242:
9243: case $host_os in
9244: aix*)
9245: # All AIX code is PIC.
9246: if test ia64 = "$host_cpu"; then
9247: # AIX 5 now supports IA64 processor
9248: lt_prog_compiler_static='-Bstatic'
9249: fi
9250: lt_prog_compiler_pic='-fPIC'
9251: ;;
9252:
9253: amigaos*)
9254: case $host_cpu in
9255: powerpc)
9256: # see comment about AmigaOS4 .so support
9257: lt_prog_compiler_pic='-fPIC'
9258: ;;
9259: m68k)
9260: # FIXME: we need at least 68020 code to build shared libraries, but
9261: # adding the '-m68020' flag to GCC prevents building anything better,
9262: # like '-m68040'.
9263: lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9264: ;;
9265: esac
9266: ;;
9267:
9268: beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9269: # PIC is the default for these OSes.
9270: ;;
9271:
9272: mingw* | cygwin* | pw32* | os2* | cegcc*)
9273: # This hack is so that the source file can tell whether it is being
9274: # built for inclusion in a dll (and should export symbols for example).
9275: # Although the cygwin gcc ignores -fPIC, still need this for old-style
9276: # (--disable-auto-import) libraries
9277: lt_prog_compiler_pic='-DDLL_EXPORT'
9278: case $host_os in
9279: os2*)
9280: lt_prog_compiler_static='$wl-static'
9281: ;;
9282: esac
9283: ;;
9284:
9285: darwin* | rhapsody*)
9286: # PIC is the default on this platform
9287: # Common symbols not allowed in MH_DYLIB files
9288: lt_prog_compiler_pic='-fno-common'
9289: ;;
9290:
9291: haiku*)
9292: # PIC is the default for Haiku.
9293: # The "-static" flag exists, but is broken.
9294: lt_prog_compiler_static=
9295: ;;
9296:
9297: hpux*)
9298: # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9299: # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9300: # sets the default TLS model and affects inlining.
9301: case $host_cpu in
9302: hppa*64*)
9303: # +Z the default
9304: ;;
9305: *)
9306: lt_prog_compiler_pic='-fPIC'
9307: ;;
9308: esac
9309: ;;
9310:
9311: interix[3-9]*)
9312: # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9313: # Instead, we relocate shared libraries at runtime.
9314: ;;
9315:
9316: msdosdjgpp*)
9317: # Just because we use GCC doesn't mean we suddenly get shared libraries
9318: # on systems that don't support them.
9319: lt_prog_compiler_can_build_shared=no
9320: enable_shared=no
9321: ;;
9322:
9323: *nto* | *qnx*)
9324: # QNX uses GNU C++, but need to define -shared option too, otherwise
9325: # it will coredump.
9326: lt_prog_compiler_pic='-fPIC -shared'
9327: ;;
9328:
9329: sysv4*MP*)
9330: if test -d /usr/nec; then
9331: lt_prog_compiler_pic=-Kconform_pic
9332: fi
9333: ;;
9334:
9335: *)
9336: lt_prog_compiler_pic='-fPIC'
9337: ;;
9338: esac
9339:
9340: case $cc_basename in
9341: nvcc*) # Cuda Compiler Driver 2.2
9342: lt_prog_compiler_wl='-Xlinker '
9343: if test -n "$lt_prog_compiler_pic"; then
9344: lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9345: fi
9346: ;;
9347: esac
9348: else
9349: # PORTME Check for flag to pass linker flags through the system compiler.
9350: case $host_os in
9351: aix*)
9352: lt_prog_compiler_wl='-Wl,'
9353: if test ia64 = "$host_cpu"; then
9354: # AIX 5 now supports IA64 processor
9355: lt_prog_compiler_static='-Bstatic'
9356: else
9357: lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9358: fi
9359: ;;
9360:
9361: darwin* | rhapsody*)
9362: # PIC is the default on this platform
9363: # Common symbols not allowed in MH_DYLIB files
9364: lt_prog_compiler_pic='-fno-common'
9365: case $cc_basename in
9366: nagfor*)
9367: # NAG Fortran compiler
9368: lt_prog_compiler_wl='-Wl,-Wl,,'
9369: lt_prog_compiler_pic='-PIC'
9370: lt_prog_compiler_static='-Bstatic'
9371: ;;
9372: esac
9373: ;;
9374:
9375: mingw* | cygwin* | pw32* | os2* | cegcc*)
9376: # This hack is so that the source file can tell whether it is being
9377: # built for inclusion in a dll (and should export symbols for example).
9378: lt_prog_compiler_pic='-DDLL_EXPORT'
9379: case $host_os in
9380: os2*)
9381: lt_prog_compiler_static='$wl-static'
9382: ;;
9383: esac
9384: ;;
9385:
9386: hpux9* | hpux10* | hpux11*)
9387: lt_prog_compiler_wl='-Wl,'
9388: # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9389: # not for PA HP-UX.
9390: case $host_cpu in
9391: hppa*64*|ia64*)
9392: # +Z the default
9393: ;;
9394: *)
9395: lt_prog_compiler_pic='+Z'
9396: ;;
9397: esac
9398: # Is there a better lt_prog_compiler_static that works with the bundled CC?
9399: lt_prog_compiler_static='$wl-a ${wl}archive'
9400: ;;
9401:
9402: irix5* | irix6* | nonstopux*)
9403: lt_prog_compiler_wl='-Wl,'
9404: # PIC (with -KPIC) is the default.
9405: lt_prog_compiler_static='-non_shared'
9406: ;;
9407:
9408: linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9409: case $cc_basename in
9410: # old Intel for x86_64, which still supported -KPIC.
9411: ecc*)
9412: lt_prog_compiler_wl='-Wl,'
9413: lt_prog_compiler_pic='-KPIC'
9414: lt_prog_compiler_static='-static'
9415: ;;
9416: # icc used to be incompatible with GCC.
9417: # ICC 10 doesn't accept -KPIC any more.
9418: icc* | ifort*)
9419: lt_prog_compiler_wl='-Wl,'
9420: lt_prog_compiler_pic='-fPIC'
9421: lt_prog_compiler_static='-static'
9422: ;;
9423: # Lahey Fortran 8.1.
9424: lf95*)
9425: lt_prog_compiler_wl='-Wl,'
9426: lt_prog_compiler_pic='--shared'
9427: lt_prog_compiler_static='--static'
9428: ;;
9429: nagfor*)
9430: # NAG Fortran compiler
9431: lt_prog_compiler_wl='-Wl,-Wl,,'
9432: lt_prog_compiler_pic='-PIC'
9433: lt_prog_compiler_static='-Bstatic'
9434: ;;
9435: tcc*)
9436: # Fabrice Bellard et al's Tiny C Compiler
9437: lt_prog_compiler_wl='-Wl,'
9438: lt_prog_compiler_pic='-fPIC'
9439: lt_prog_compiler_static='-static'
9440: ;;
9441: pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9442: # Portland Group compilers (*not* the Pentium gcc compiler,
9443: # which looks to be a dead project)
9444: lt_prog_compiler_wl='-Wl,'
9445: lt_prog_compiler_pic='-fpic'
9446: lt_prog_compiler_static='-Bstatic'
9447: ;;
9448: ccc*)
9449: lt_prog_compiler_wl='-Wl,'
9450: # All Alpha code is PIC.
9451: lt_prog_compiler_static='-non_shared'
9452: ;;
9453: xl* | bgxl* | bgf* | mpixl*)
9454: # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9455: lt_prog_compiler_wl='-Wl,'
9456: lt_prog_compiler_pic='-qpic'
9457: lt_prog_compiler_static='-qstaticlink'
9458: ;;
9459: *)
1.7 ! ohara 9460: case `$CC -V 2>&1 | $SED 5q` in
1.5 ohara 9461: *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9462: # Sun Fortran 8.3 passes all unrecognized flags to the linker
9463: lt_prog_compiler_pic='-KPIC'
9464: lt_prog_compiler_static='-Bstatic'
9465: lt_prog_compiler_wl=''
9466: ;;
9467: *Sun\ F* | *Sun*Fortran*)
9468: lt_prog_compiler_pic='-KPIC'
9469: lt_prog_compiler_static='-Bstatic'
9470: lt_prog_compiler_wl='-Qoption ld '
9471: ;;
9472: *Sun\ C*)
9473: # Sun C 5.9
9474: lt_prog_compiler_pic='-KPIC'
9475: lt_prog_compiler_static='-Bstatic'
9476: lt_prog_compiler_wl='-Wl,'
9477: ;;
9478: *Intel*\ [CF]*Compiler*)
9479: lt_prog_compiler_wl='-Wl,'
9480: lt_prog_compiler_pic='-fPIC'
9481: lt_prog_compiler_static='-static'
9482: ;;
9483: *Portland\ Group*)
9484: lt_prog_compiler_wl='-Wl,'
9485: lt_prog_compiler_pic='-fpic'
9486: lt_prog_compiler_static='-Bstatic'
9487: ;;
9488: esac
9489: ;;
9490: esac
9491: ;;
9492:
9493: newsos6)
9494: lt_prog_compiler_pic='-KPIC'
9495: lt_prog_compiler_static='-Bstatic'
9496: ;;
9497:
9498: *nto* | *qnx*)
9499: # QNX uses GNU C++, but need to define -shared option too, otherwise
9500: # it will coredump.
9501: lt_prog_compiler_pic='-fPIC -shared'
9502: ;;
9503:
9504: osf3* | osf4* | osf5*)
9505: lt_prog_compiler_wl='-Wl,'
9506: # All OSF/1 code is PIC.
9507: lt_prog_compiler_static='-non_shared'
9508: ;;
9509:
9510: rdos*)
9511: lt_prog_compiler_static='-non_shared'
9512: ;;
9513:
9514: solaris*)
9515: lt_prog_compiler_pic='-KPIC'
9516: lt_prog_compiler_static='-Bstatic'
9517: case $cc_basename in
9518: f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9519: lt_prog_compiler_wl='-Qoption ld ';;
9520: *)
9521: lt_prog_compiler_wl='-Wl,';;
9522: esac
9523: ;;
9524:
9525: sunos4*)
9526: lt_prog_compiler_wl='-Qoption ld '
9527: lt_prog_compiler_pic='-PIC'
9528: lt_prog_compiler_static='-Bstatic'
9529: ;;
9530:
9531: sysv4 | sysv4.2uw2* | sysv4.3*)
9532: lt_prog_compiler_wl='-Wl,'
9533: lt_prog_compiler_pic='-KPIC'
9534: lt_prog_compiler_static='-Bstatic'
9535: ;;
9536:
9537: sysv4*MP*)
9538: if test -d /usr/nec; then
9539: lt_prog_compiler_pic='-Kconform_pic'
9540: lt_prog_compiler_static='-Bstatic'
9541: fi
9542: ;;
9543:
9544: sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9545: lt_prog_compiler_wl='-Wl,'
9546: lt_prog_compiler_pic='-KPIC'
9547: lt_prog_compiler_static='-Bstatic'
9548: ;;
9549:
9550: unicos*)
9551: lt_prog_compiler_wl='-Wl,'
9552: lt_prog_compiler_can_build_shared=no
9553: ;;
9554:
9555: uts4*)
9556: lt_prog_compiler_pic='-pic'
9557: lt_prog_compiler_static='-Bstatic'
9558: ;;
9559:
9560: *)
9561: lt_prog_compiler_can_build_shared=no
9562: ;;
9563: esac
9564: fi
9565:
9566: case $host_os in
9567: # For platforms that do not support PIC, -DPIC is meaningless:
9568: *djgpp*)
9569: lt_prog_compiler_pic=
9570: ;;
9571: *)
9572: lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9573: ;;
9574: esac
9575:
1.7 ! ohara 9576: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
! 9577: printf %s "checking for $compiler option to produce PIC... " >&6; }
! 9578: if test ${lt_cv_prog_compiler_pic+y}
! 9579: then :
! 9580: printf %s "(cached) " >&6
! 9581: else $as_nop
1.5 ohara 9582: lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9583: fi
1.7 ! ohara 9584: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
! 9585: printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
1.5 ohara 9586: lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9587:
9588: #
9589: # Check to make sure the PIC flag actually works.
9590: #
9591: if test -n "$lt_prog_compiler_pic"; then
1.7 ! ohara 9592: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
! 9593: printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
! 9594: if test ${lt_cv_prog_compiler_pic_works+y}
! 9595: then :
! 9596: printf %s "(cached) " >&6
! 9597: else $as_nop
1.5 ohara 9598: lt_cv_prog_compiler_pic_works=no
9599: ac_outfile=conftest.$ac_objext
9600: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9601: lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
9602: # Insert the option either (1) after the last *FLAGS variable, or
9603: # (2) before a word containing "conftest.", or (3) at the end.
9604: # Note that $ac_compile itself does not contain backslashes and begins
9605: # with a dollar sign (not a hyphen), so the echo should work correctly.
9606: # The option is referenced via a variable to avoid confusing sed.
9607: lt_compile=`echo "$ac_compile" | $SED \
9608: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9609: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9610: -e 's:$: $lt_compiler_flag:'`
9611: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9612: (eval "$lt_compile" 2>conftest.err)
9613: ac_status=$?
9614: cat conftest.err >&5
9615: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9616: if (exit $ac_status) && test -s "$ac_outfile"; then
9617: # The compiler can only warn and ignore the option if not recognized
9618: # So say no if there are warnings other than the usual output.
9619: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9620: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9621: if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9622: lt_cv_prog_compiler_pic_works=yes
9623: fi
9624: fi
9625: $RM conftest*
9626:
9627: fi
1.7 ! ohara 9628: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
! 9629: printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
1.5 ohara 9630:
9631: if test yes = "$lt_cv_prog_compiler_pic_works"; then
9632: case $lt_prog_compiler_pic in
9633: "" | " "*) ;;
9634: *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9635: esac
9636: else
9637: lt_prog_compiler_pic=
9638: lt_prog_compiler_can_build_shared=no
9639: fi
9640:
9641: fi
9642:
9643:
9644:
9645:
9646:
9647:
9648:
9649:
9650:
9651:
9652:
9653: #
9654: # Check to make sure the static flag actually works.
9655: #
9656: wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
1.7 ! ohara 9657: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
! 9658: printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
! 9659: if test ${lt_cv_prog_compiler_static_works+y}
! 9660: then :
! 9661: printf %s "(cached) " >&6
! 9662: else $as_nop
1.5 ohara 9663: lt_cv_prog_compiler_static_works=no
9664: save_LDFLAGS=$LDFLAGS
9665: LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9666: echo "$lt_simple_link_test_code" > conftest.$ac_ext
9667: if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9668: # The linker can only warn and ignore the option if not recognized
9669: # So say no if there are warnings
9670: if test -s conftest.err; then
9671: # Append any errors to the config.log.
9672: cat conftest.err 1>&5
9673: $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9674: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9675: if diff conftest.exp conftest.er2 >/dev/null; then
9676: lt_cv_prog_compiler_static_works=yes
9677: fi
9678: else
9679: lt_cv_prog_compiler_static_works=yes
9680: fi
9681: fi
9682: $RM -r conftest*
9683: LDFLAGS=$save_LDFLAGS
9684:
9685: fi
1.7 ! ohara 9686: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
! 9687: printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
1.5 ohara 9688:
9689: if test yes = "$lt_cv_prog_compiler_static_works"; then
9690: :
9691: else
9692: lt_prog_compiler_static=
9693: fi
9694:
9695:
9696:
9697:
9698:
9699:
9700:
1.7 ! ohara 9701: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
! 9702: printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
! 9703: if test ${lt_cv_prog_compiler_c_o+y}
! 9704: then :
! 9705: printf %s "(cached) " >&6
! 9706: else $as_nop
1.5 ohara 9707: lt_cv_prog_compiler_c_o=no
9708: $RM -r conftest 2>/dev/null
9709: mkdir conftest
9710: cd conftest
9711: mkdir out
9712: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9713:
9714: lt_compiler_flag="-o out/conftest2.$ac_objext"
9715: # Insert the option either (1) after the last *FLAGS variable, or
9716: # (2) before a word containing "conftest.", or (3) at the end.
9717: # Note that $ac_compile itself does not contain backslashes and begins
9718: # with a dollar sign (not a hyphen), so the echo should work correctly.
9719: lt_compile=`echo "$ac_compile" | $SED \
9720: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9721: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9722: -e 's:$: $lt_compiler_flag:'`
9723: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9724: (eval "$lt_compile" 2>out/conftest.err)
9725: ac_status=$?
9726: cat out/conftest.err >&5
9727: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9728: if (exit $ac_status) && test -s out/conftest2.$ac_objext
9729: then
9730: # The compiler can only warn and ignore the option if not recognized
9731: # So say no if there are warnings
9732: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9733: $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9734: if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9735: lt_cv_prog_compiler_c_o=yes
9736: fi
9737: fi
9738: chmod u+w . 2>&5
9739: $RM conftest*
9740: # SGI C++ compiler will create directory out/ii_files/ for
9741: # template instantiation
9742: test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9743: $RM out/* && rmdir out
9744: cd ..
9745: $RM -r conftest
9746: $RM conftest*
9747:
9748: fi
1.7 ! ohara 9749: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
! 9750: printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
1.5 ohara 9751:
9752:
9753:
9754:
9755:
9756:
1.7 ! ohara 9757: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
! 9758: printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
! 9759: if test ${lt_cv_prog_compiler_c_o+y}
! 9760: then :
! 9761: printf %s "(cached) " >&6
! 9762: else $as_nop
1.5 ohara 9763: lt_cv_prog_compiler_c_o=no
9764: $RM -r conftest 2>/dev/null
9765: mkdir conftest
9766: cd conftest
9767: mkdir out
9768: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9769:
9770: lt_compiler_flag="-o out/conftest2.$ac_objext"
9771: # Insert the option either (1) after the last *FLAGS variable, or
9772: # (2) before a word containing "conftest.", or (3) at the end.
9773: # Note that $ac_compile itself does not contain backslashes and begins
9774: # with a dollar sign (not a hyphen), so the echo should work correctly.
9775: lt_compile=`echo "$ac_compile" | $SED \
9776: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9777: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9778: -e 's:$: $lt_compiler_flag:'`
9779: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9780: (eval "$lt_compile" 2>out/conftest.err)
9781: ac_status=$?
9782: cat out/conftest.err >&5
9783: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9784: if (exit $ac_status) && test -s out/conftest2.$ac_objext
9785: then
9786: # The compiler can only warn and ignore the option if not recognized
9787: # So say no if there are warnings
9788: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9789: $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9790: if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9791: lt_cv_prog_compiler_c_o=yes
9792: fi
9793: fi
9794: chmod u+w . 2>&5
9795: $RM conftest*
9796: # SGI C++ compiler will create directory out/ii_files/ for
9797: # template instantiation
9798: test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9799: $RM out/* && rmdir out
9800: cd ..
9801: $RM -r conftest
9802: $RM conftest*
9803:
9804: fi
1.7 ! ohara 9805: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
! 9806: printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
1.5 ohara 9807:
9808:
9809:
9810:
9811: hard_links=nottested
9812: if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9813: # do not overwrite the value of need_locks provided by the user
1.7 ! ohara 9814: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
! 9815: printf %s "checking if we can lock with hard links... " >&6; }
1.5 ohara 9816: hard_links=yes
9817: $RM conftest*
9818: ln conftest.a conftest.b 2>/dev/null && hard_links=no
9819: touch conftest.a
9820: ln conftest.a conftest.b 2>&5 || hard_links=no
9821: ln conftest.a conftest.b 2>/dev/null && hard_links=no
1.7 ! ohara 9822: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
! 9823: printf "%s\n" "$hard_links" >&6; }
1.5 ohara 9824: if test no = "$hard_links"; then
1.7 ! ohara 9825: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
! 9826: printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
1.5 ohara 9827: need_locks=warn
9828: fi
9829: else
9830: need_locks=no
9831: fi
9832:
9833:
9834:
9835:
9836:
9837:
1.7 ! ohara 9838: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
! 9839: printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
1.5 ohara 9840:
9841: runpath_var=
9842: allow_undefined_flag=
9843: always_export_symbols=no
9844: archive_cmds=
9845: archive_expsym_cmds=
9846: compiler_needs_object=no
9847: enable_shared_with_static_runtimes=no
9848: export_dynamic_flag_spec=
9849: export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9850: hardcode_automatic=no
9851: hardcode_direct=no
9852: hardcode_direct_absolute=no
9853: hardcode_libdir_flag_spec=
9854: hardcode_libdir_separator=
9855: hardcode_minus_L=no
9856: hardcode_shlibpath_var=unsupported
9857: inherit_rpath=no
9858: link_all_deplibs=unknown
9859: module_cmds=
9860: module_expsym_cmds=
9861: old_archive_from_new_cmds=
9862: old_archive_from_expsyms_cmds=
9863: thread_safe_flag_spec=
9864: whole_archive_flag_spec=
9865: # include_expsyms should be a list of space-separated symbols to be *always*
9866: # included in the symbol list
9867: include_expsyms=
9868: # exclude_expsyms can be an extended regexp of symbols to exclude
9869: # it will be wrapped by ' (' and ')$', so one must not match beginning or
9870: # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9871: # as well as any symbol that contains 'd'.
9872: exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9873: # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9874: # platforms (ab)use it in PIC code, but their linkers get confused if
9875: # the symbol is explicitly referenced. Since portable code cannot
9876: # rely on this symbol name, it's probably fine to never include it in
9877: # preloaded symbol tables.
9878: # Exclude shared library initialization/finalization symbols.
9879: extract_expsyms_cmds=
9880:
9881: case $host_os in
9882: cygwin* | mingw* | pw32* | cegcc*)
1.7 ! ohara 9883: # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
1.5 ohara 9884: # When not using gcc, we currently assume that we are using
1.7 ! ohara 9885: # Microsoft Visual C++ or Intel C++ Compiler.
1.5 ohara 9886: if test yes != "$GCC"; then
9887: with_gnu_ld=no
9888: fi
9889: ;;
9890: interix*)
1.7 ! ohara 9891: # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
1.5 ohara 9892: with_gnu_ld=yes
9893: ;;
9894: openbsd* | bitrig*)
9895: with_gnu_ld=no
9896: ;;
9897: esac
9898:
9899: ld_shlibs=yes
9900:
9901: # On some targets, GNU ld is compatible enough with the native linker
9902: # that we're better off using the native interface for both.
9903: lt_use_gnu_ld_interface=no
9904: if test yes = "$with_gnu_ld"; then
9905: case $host_os in
9906: aix*)
9907: # The AIX port of GNU ld has always aspired to compatibility
9908: # with the native linker. However, as the warning in the GNU ld
9909: # block says, versions before 2.19.5* couldn't really create working
9910: # shared libraries, regardless of the interface used.
9911: case `$LD -v 2>&1` in
9912: *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9913: *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9914: *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9915: *)
9916: lt_use_gnu_ld_interface=yes
9917: ;;
9918: esac
9919: ;;
9920: *)
9921: lt_use_gnu_ld_interface=yes
9922: ;;
9923: esac
9924: fi
9925:
9926: if test yes = "$lt_use_gnu_ld_interface"; then
9927: # If archive_cmds runs LD, not CC, wlarc should be empty
9928: wlarc='$wl'
9929:
9930: # Set some defaults for GNU ld with shared library support. These
9931: # are reset later if shared libraries are not supported. Putting them
9932: # here allows them to be overridden if necessary.
9933: runpath_var=LD_RUN_PATH
9934: hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9935: export_dynamic_flag_spec='$wl--export-dynamic'
9936: # ancient GNU ld didn't support --whole-archive et. al.
9937: if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9938: whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9939: else
9940: whole_archive_flag_spec=
9941: fi
9942: supports_anon_versioning=no
1.7 ! ohara 9943: case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
1.5 ohara 9944: *GNU\ gold*) supports_anon_versioning=yes ;;
9945: *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9946: *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9947: *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9948: *\ 2.11.*) ;; # other 2.11 versions
9949: *) supports_anon_versioning=yes ;;
9950: esac
9951:
9952: # See if GNU ld supports shared libraries.
9953: case $host_os in
9954: aix[3-9]*)
9955: # On AIX/PPC, the GNU linker is very broken
9956: if test ia64 != "$host_cpu"; then
9957: ld_shlibs=no
9958: cat <<_LT_EOF 1>&2
9959:
9960: *** Warning: the GNU linker, at least up to release 2.19, is reported
9961: *** to be unable to reliably create shared libraries on AIX.
9962: *** Therefore, libtool is disabling shared libraries support. If you
9963: *** really care for shared libraries, you may want to install binutils
9964: *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9965: *** You will then need to restart the configuration process.
9966:
9967: _LT_EOF
9968: fi
9969: ;;
9970:
9971: amigaos*)
9972: case $host_cpu in
9973: powerpc)
9974: # see comment about AmigaOS4 .so support
9975: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9976: archive_expsym_cmds=''
9977: ;;
9978: m68k)
9979: archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
9980: hardcode_libdir_flag_spec='-L$libdir'
9981: hardcode_minus_L=yes
9982: ;;
9983: esac
9984: ;;
9985:
9986: beos*)
9987: if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9988: allow_undefined_flag=unsupported
9989: # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9990: # support --undefined. This deserves some investigation. FIXME
9991: archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9992: else
9993: ld_shlibs=no
9994: fi
9995: ;;
9996:
9997: cygwin* | mingw* | pw32* | cegcc*)
9998: # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9999: # as there is no search path for DLLs.
10000: hardcode_libdir_flag_spec='-L$libdir'
10001: export_dynamic_flag_spec='$wl--export-all-symbols'
10002: allow_undefined_flag=unsupported
10003: always_export_symbols=no
10004: enable_shared_with_static_runtimes=yes
10005: export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
10006: exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10007:
10008: if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10009: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10010: # If the export-symbols file already is a .def file, use it as
10011: # is; otherwise, prepend EXPORTS...
10012: archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10013: cp $export_symbols $output_objdir/$soname.def;
10014: else
10015: echo EXPORTS > $output_objdir/$soname.def;
10016: cat $export_symbols >> $output_objdir/$soname.def;
10017: fi~
10018: $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10019: else
10020: ld_shlibs=no
10021: fi
10022: ;;
10023:
10024: haiku*)
10025: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10026: link_all_deplibs=yes
10027: ;;
10028:
10029: os2*)
10030: hardcode_libdir_flag_spec='-L$libdir'
10031: hardcode_minus_L=yes
10032: allow_undefined_flag=unsupported
10033: shrext_cmds=.dll
10034: archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10035: $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10036: $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10037: $ECHO EXPORTS >> $output_objdir/$libname.def~
10038: emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10039: $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10040: emximp -o $lib $output_objdir/$libname.def'
10041: archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10042: $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10043: $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10044: $ECHO EXPORTS >> $output_objdir/$libname.def~
10045: prefix_cmds="$SED"~
10046: if test EXPORTS = "`$SED 1q $export_symbols`"; then
10047: prefix_cmds="$prefix_cmds -e 1d";
10048: fi~
10049: prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10050: cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10051: $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10052: emximp -o $lib $output_objdir/$libname.def'
10053: old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10054: enable_shared_with_static_runtimes=yes
1.7 ! ohara 10055: file_list_spec='@'
1.5 ohara 10056: ;;
10057:
10058: interix[3-9]*)
10059: hardcode_direct=no
10060: hardcode_shlibpath_var=no
10061: hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10062: export_dynamic_flag_spec='$wl-E'
10063: # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10064: # Instead, shared libraries are loaded at an image base (0x10000000 by
10065: # default) and relocated if they conflict, which is a slow very memory
10066: # consuming and fragmenting process. To avoid this, we pick a random,
10067: # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10068: # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10069: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
1.7 ! ohara 10070: archive_expsym_cmds='$SED "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
1.5 ohara 10071: ;;
10072:
10073: gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10074: tmp_diet=no
10075: if test linux-dietlibc = "$host_os"; then
10076: case $cc_basename in
10077: diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10078: esac
10079: fi
10080: if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10081: && test no = "$tmp_diet"
10082: then
10083: tmp_addflag=' $pic_flag'
10084: tmp_sharedflag='-shared'
10085: case $cc_basename,$host_cpu in
10086: pgcc*) # Portland Group C compiler
10087: whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
10088: tmp_addflag=' $pic_flag'
10089: ;;
10090: pgf77* | pgf90* | pgf95* | pgfortran*)
10091: # Portland Group f77 and f90 compilers
10092: whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
10093: tmp_addflag=' $pic_flag -Mnomain' ;;
10094: ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10095: tmp_addflag=' -i_dynamic' ;;
10096: efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10097: tmp_addflag=' -i_dynamic -nofor_main' ;;
10098: ifc* | ifort*) # Intel Fortran compiler
10099: tmp_addflag=' -nofor_main' ;;
10100: lf95*) # Lahey Fortran 8.1
10101: whole_archive_flag_spec=
10102: tmp_sharedflag='--shared' ;;
10103: nagfor*) # NAGFOR 5.3
10104: tmp_sharedflag='-Wl,-shared' ;;
10105: xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10106: tmp_sharedflag='-qmkshrobj'
10107: tmp_addflag= ;;
10108: nvcc*) # Cuda Compiler Driver 2.2
10109: whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
10110: compiler_needs_object=yes
10111: ;;
10112: esac
1.7 ! ohara 10113: case `$CC -V 2>&1 | $SED 5q` in
1.5 ohara 10114: *Sun\ C*) # Sun C 5.9
10115: whole_archive_flag_spec='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
10116: compiler_needs_object=yes
10117: tmp_sharedflag='-G' ;;
10118: *Sun\ F*) # Sun Fortran 8.3
10119: tmp_sharedflag='-G' ;;
10120: esac
10121: archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10122:
10123: if test yes = "$supports_anon_versioning"; then
10124: archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
1.7 ! ohara 10125: cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
1.5 ohara 10126: echo "local: *; };" >> $output_objdir/$libname.ver~
10127: $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
10128: fi
10129:
10130: case $cc_basename in
10131: tcc*)
10132: export_dynamic_flag_spec='-rdynamic'
10133: ;;
10134: xlf* | bgf* | bgxlf* | mpixlf*)
10135: # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10136: whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10137: hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10138: archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10139: if test yes = "$supports_anon_versioning"; then
10140: archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
1.7 ! ohara 10141: cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
1.5 ohara 10142: echo "local: *; };" >> $output_objdir/$libname.ver~
10143: $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10144: fi
10145: ;;
10146: esac
10147: else
10148: ld_shlibs=no
10149: fi
10150: ;;
10151:
10152: netbsd*)
10153: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10154: archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10155: wlarc=
10156: else
10157: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10158: archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10159: fi
10160: ;;
10161:
10162: solaris*)
10163: if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10164: ld_shlibs=no
10165: cat <<_LT_EOF 1>&2
10166:
10167: *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10168: *** create shared libraries on Solaris systems. Therefore, libtool
10169: *** is disabling shared libraries support. We urge you to upgrade GNU
10170: *** binutils to release 2.9.1 or newer. Another option is to modify
10171: *** your PATH or compiler configuration so that the native linker is
10172: *** used, and then restart.
10173:
10174: _LT_EOF
10175: elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10176: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10177: archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10178: else
10179: ld_shlibs=no
10180: fi
10181: ;;
10182:
10183: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10184: case `$LD -v 2>&1` in
10185: *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10186: ld_shlibs=no
10187: cat <<_LT_EOF 1>&2
10188:
10189: *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
10190: *** reliably create shared libraries on SCO systems. Therefore, libtool
10191: *** is disabling shared libraries support. We urge you to upgrade GNU
10192: *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10193: *** your PATH or compiler configuration so that the native linker is
10194: *** used, and then restart.
10195:
10196: _LT_EOF
10197: ;;
10198: *)
10199: # For security reasons, it is highly recommended that you always
10200: # use absolute paths for naming shared libraries, and exclude the
10201: # DT_RUNPATH tag from executables and libraries. But doing so
10202: # requires that you compile everything twice, which is a pain.
10203: if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10204: hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10205: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10206: archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10207: else
10208: ld_shlibs=no
10209: fi
10210: ;;
10211: esac
10212: ;;
10213:
10214: sunos4*)
10215: archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10216: wlarc=
10217: hardcode_direct=yes
10218: hardcode_shlibpath_var=no
10219: ;;
10220:
10221: *)
10222: if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10223: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10224: archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10225: else
10226: ld_shlibs=no
10227: fi
10228: ;;
10229: esac
10230:
10231: if test no = "$ld_shlibs"; then
10232: runpath_var=
10233: hardcode_libdir_flag_spec=
10234: export_dynamic_flag_spec=
10235: whole_archive_flag_spec=
10236: fi
10237: else
10238: # PORTME fill in a description of your system's linker (not GNU ld)
10239: case $host_os in
10240: aix3*)
10241: allow_undefined_flag=unsupported
10242: always_export_symbols=yes
10243: archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
10244: # Note: this linker hardcodes the directories in LIBPATH if there
10245: # are no directories specified by -L.
10246: hardcode_minus_L=yes
10247: if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10248: # Neither direct hardcoding nor static linking is supported with a
10249: # broken collect2.
10250: hardcode_direct=unsupported
10251: fi
10252: ;;
10253:
10254: aix[4-9]*)
10255: if test ia64 = "$host_cpu"; then
10256: # On IA64, the linker does run time linking by default, so we don't
10257: # have to do anything special.
10258: aix_use_runtimelinking=no
10259: exp_sym_flag='-Bexport'
10260: no_entry_flag=
10261: else
10262: # If we're using GNU nm, then we don't want the "-C" option.
10263: # -C means demangle to GNU nm, but means don't demangle to AIX nm.
10264: # Without the "-l" option, or with the "-B" option, AIX nm treats
10265: # weak defined symbols like other global defined symbols, whereas
10266: # GNU nm marks them as "W".
10267: # While the 'weak' keyword is ignored in the Export File, we need
10268: # it in the Import File for the 'aix-soname' feature, so we have
10269: # to replace the "-B" option with "-P" for AIX nm.
10270: if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10271: export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
10272: else
1.7 ! ohara 10273: export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
1.5 ohara 10274: fi
10275: aix_use_runtimelinking=no
10276:
10277: # Test if we are trying to use run time linking or normal
10278: # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10279: # have runtime linking enabled, and use it for executables.
10280: # For shared libraries, we enable/disable runtime linking
10281: # depending on the kind of the shared library created -
10282: # when "with_aix_soname,aix_use_runtimelinking" is:
10283: # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
10284: # "aix,yes" lib.so shared, rtl:yes, for executables
10285: # lib.a static archive
10286: # "both,no" lib.so.V(shr.o) shared, rtl:yes
10287: # lib.a(lib.so.V) shared, rtl:no, for executables
10288: # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10289: # lib.a(lib.so.V) shared, rtl:no
10290: # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
10291: # lib.a static archive
10292: case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10293: for ld_flag in $LDFLAGS; do
10294: if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10295: aix_use_runtimelinking=yes
10296: break
10297: fi
10298: done
10299: if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10300: # With aix-soname=svr4, we create the lib.so.V shared archives only,
10301: # so we don't have lib.a shared libs to link our executables.
10302: # We have to force runtime linking in this case.
10303: aix_use_runtimelinking=yes
10304: LDFLAGS="$LDFLAGS -Wl,-brtl"
10305: fi
10306: ;;
10307: esac
10308:
10309: exp_sym_flag='-bexport'
10310: no_entry_flag='-bnoentry'
10311: fi
10312:
10313: # When large executables or shared objects are built, AIX ld can
10314: # have problems creating the table of contents. If linking a library
10315: # or program results in "error TOC overflow" add -mminimal-toc to
10316: # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10317: # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10318:
10319: archive_cmds=''
10320: hardcode_direct=yes
10321: hardcode_direct_absolute=yes
10322: hardcode_libdir_separator=':'
10323: link_all_deplibs=yes
10324: file_list_spec='$wl-f,'
10325: case $with_aix_soname,$aix_use_runtimelinking in
10326: aix,*) ;; # traditional, no import file
10327: svr4,* | *,yes) # use import file
10328: # The Import File defines what to hardcode.
10329: hardcode_direct=no
10330: hardcode_direct_absolute=no
10331: ;;
10332: esac
10333:
10334: if test yes = "$GCC"; then
10335: case $host_os in aix4.[012]|aix4.[012].*)
10336: # We only want to do this on AIX 4.2 and lower, the check
10337: # below for broken collect2 doesn't work under 4.3+
10338: collect2name=`$CC -print-prog-name=collect2`
10339: if test -f "$collect2name" &&
10340: strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10341: then
10342: # We have reworked collect2
10343: :
10344: else
10345: # We have old collect2
10346: hardcode_direct=unsupported
10347: # It fails to find uninstalled libraries when the uninstalled
10348: # path is not listed in the libpath. Setting hardcode_minus_L
10349: # to unsupported forces relinking
10350: hardcode_minus_L=yes
10351: hardcode_libdir_flag_spec='-L$libdir'
10352: hardcode_libdir_separator=
10353: fi
10354: ;;
10355: esac
10356: shared_flag='-shared'
10357: if test yes = "$aix_use_runtimelinking"; then
10358: shared_flag="$shared_flag "'$wl-G'
10359: fi
10360: # Need to ensure runtime linking is disabled for the traditional
10361: # shared library, or the linker may eventually find shared libraries
10362: # /with/ Import File - we do not want to mix them.
10363: shared_flag_aix='-shared'
10364: shared_flag_svr4='-shared $wl-G'
10365: else
10366: # not using gcc
10367: if test ia64 = "$host_cpu"; then
10368: # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10369: # chokes on -Wl,-G. The following line is correct:
10370: shared_flag='-G'
10371: else
10372: if test yes = "$aix_use_runtimelinking"; then
10373: shared_flag='$wl-G'
10374: else
10375: shared_flag='$wl-bM:SRE'
10376: fi
10377: shared_flag_aix='$wl-bM:SRE'
10378: shared_flag_svr4='$wl-G'
10379: fi
10380: fi
10381:
10382: export_dynamic_flag_spec='$wl-bexpall'
10383: # It seems that -bexpall does not export symbols beginning with
10384: # underscore (_), so it is better to generate a list of symbols to export.
10385: always_export_symbols=yes
10386: if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10387: # Warning - without using the other runtime loading flags (-brtl),
10388: # -berok will link without error, but may produce a broken library.
10389: allow_undefined_flag='-berok'
10390: # Determine the default libpath from the value encoded in an
10391: # empty executable.
10392: if test set = "${lt_cv_aix_libpath+set}"; then
10393: aix_libpath=$lt_cv_aix_libpath
10394: else
1.7 ! ohara 10395: if test ${lt_cv_aix_libpath_+y}
! 10396: then :
! 10397: printf %s "(cached) " >&6
! 10398: else $as_nop
1.5 ohara 10399: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10400: /* end confdefs.h. */
10401:
10402: int
1.7 ! ohara 10403: main (void)
1.5 ohara 10404: {
10405:
10406: ;
10407: return 0;
10408: }
10409: _ACEOF
1.7 ! ohara 10410: if ac_fn_c_try_link "$LINENO"
! 10411: then :
1.5 ohara 10412:
10413: lt_aix_libpath_sed='
10414: /Import File Strings/,/^$/ {
10415: /^0/ {
10416: s/^0 *\([^ ]*\) *$/\1/
10417: p
10418: }
10419: }'
10420: lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10421: # Check for a 64-bit object if we didn't find anything.
10422: if test -z "$lt_cv_aix_libpath_"; then
10423: lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10424: fi
10425: fi
1.7 ! ohara 10426: rm -f core conftest.err conftest.$ac_objext conftest.beam \
1.5 ohara 10427: conftest$ac_exeext conftest.$ac_ext
10428: if test -z "$lt_cv_aix_libpath_"; then
10429: lt_cv_aix_libpath_=/usr/lib:/lib
10430: fi
10431:
10432: fi
10433:
10434: aix_libpath=$lt_cv_aix_libpath_
10435: fi
10436:
10437: hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10438: archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
10439: else
10440: if test ia64 = "$host_cpu"; then
10441: hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10442: allow_undefined_flag="-z nodefs"
10443: archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\$wl$no_entry_flag"' $compiler_flags $wl$allow_undefined_flag '"\$wl$exp_sym_flag:\$export_symbols"
10444: else
10445: # Determine the default libpath from the value encoded in an
10446: # empty executable.
10447: if test set = "${lt_cv_aix_libpath+set}"; then
10448: aix_libpath=$lt_cv_aix_libpath
10449: else
1.7 ! ohara 10450: if test ${lt_cv_aix_libpath_+y}
! 10451: then :
! 10452: printf %s "(cached) " >&6
! 10453: else $as_nop
1.5 ohara 10454: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10455: /* end confdefs.h. */
10456:
10457: int
1.7 ! ohara 10458: main (void)
1.5 ohara 10459: {
10460:
10461: ;
10462: return 0;
10463: }
10464: _ACEOF
1.7 ! ohara 10465: if ac_fn_c_try_link "$LINENO"
! 10466: then :
1.5 ohara 10467:
10468: lt_aix_libpath_sed='
10469: /Import File Strings/,/^$/ {
10470: /^0/ {
10471: s/^0 *\([^ ]*\) *$/\1/
10472: p
10473: }
10474: }'
10475: lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10476: # Check for a 64-bit object if we didn't find anything.
10477: if test -z "$lt_cv_aix_libpath_"; then
10478: lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10479: fi
10480: fi
1.7 ! ohara 10481: rm -f core conftest.err conftest.$ac_objext conftest.beam \
1.5 ohara 10482: conftest$ac_exeext conftest.$ac_ext
10483: if test -z "$lt_cv_aix_libpath_"; then
10484: lt_cv_aix_libpath_=/usr/lib:/lib
10485: fi
10486:
10487: fi
10488:
10489: aix_libpath=$lt_cv_aix_libpath_
10490: fi
10491:
10492: hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10493: # Warning - without using the other run time loading flags,
10494: # -berok will link without error, but may produce a broken library.
10495: no_undefined_flag=' $wl-bernotok'
10496: allow_undefined_flag=' $wl-berok'
10497: if test yes = "$with_gnu_ld"; then
10498: # We only use this code for GNU lds that support --whole-archive.
10499: whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10500: else
10501: # Exported symbols can be pulled into shared objects from archives
10502: whole_archive_flag_spec='$convenience'
10503: fi
10504: archive_cmds_need_lc=yes
10505: archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10506: # -brtl affects multiple linker settings, -berok does not and is overridden later
10507: compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10508: if test svr4 != "$with_aix_soname"; then
10509: # This is similar to how AIX traditionally builds its shared libraries.
10510: archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
10511: fi
10512: if test aix != "$with_aix_soname"; then
10513: archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
10514: else
10515: # used by -dlpreopen to get the symbols
10516: archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
10517: fi
10518: archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10519: fi
10520: fi
10521: ;;
10522:
10523: amigaos*)
10524: case $host_cpu in
10525: powerpc)
10526: # see comment about AmigaOS4 .so support
10527: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10528: archive_expsym_cmds=''
10529: ;;
10530: m68k)
10531: archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
10532: hardcode_libdir_flag_spec='-L$libdir'
10533: hardcode_minus_L=yes
10534: ;;
10535: esac
10536: ;;
10537:
10538: bsdi[45]*)
10539: export_dynamic_flag_spec=-rdynamic
10540: ;;
10541:
10542: cygwin* | mingw* | pw32* | cegcc*)
10543: # When not using gcc, we currently assume that we are using
1.7 ! ohara 10544: # Microsoft Visual C++ or Intel C++ Compiler.
1.5 ohara 10545: # hardcode_libdir_flag_spec is actually meaningless, as there is
10546: # no search path for DLLs.
10547: case $cc_basename in
1.7 ! ohara 10548: cl* | icl*)
! 10549: # Native MSVC or ICC
1.5 ohara 10550: hardcode_libdir_flag_spec=' '
10551: allow_undefined_flag=unsupported
10552: always_export_symbols=yes
10553: file_list_spec='@'
10554: # Tell ltmain to make .lib files, not .a files.
10555: libext=lib
10556: # Tell ltmain to make .dll files, not .so files.
10557: shrext_cmds=.dll
10558: # FIXME: Setting linknames here is a bad hack.
10559: archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10560: archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10561: cp "$export_symbols" "$output_objdir/$soname.def";
10562: echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10563: else
10564: $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10565: fi~
10566: $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10567: linknames='
10568: # The linker will not automatically build a static lib if we build a DLL.
10569: # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10570: enable_shared_with_static_runtimes=yes
10571: exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10572: export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10573: # Don't use ranlib
10574: old_postinstall_cmds='chmod 644 $oldlib'
10575: postlink_cmds='lt_outputfile="@OUTPUT@"~
10576: lt_tool_outputfile="@TOOL_OUTPUT@"~
10577: case $lt_outputfile in
10578: *.exe|*.EXE) ;;
10579: *)
10580: lt_outputfile=$lt_outputfile.exe
10581: lt_tool_outputfile=$lt_tool_outputfile.exe
10582: ;;
10583: esac~
10584: if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10585: $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10586: $RM "$lt_outputfile.manifest";
10587: fi'
10588: ;;
10589: *)
1.7 ! ohara 10590: # Assume MSVC and ICC wrapper
1.5 ohara 10591: hardcode_libdir_flag_spec=' '
10592: allow_undefined_flag=unsupported
10593: # Tell ltmain to make .lib files, not .a files.
10594: libext=lib
10595: # Tell ltmain to make .dll files, not .so files.
10596: shrext_cmds=.dll
10597: # FIXME: Setting linknames here is a bad hack.
10598: archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10599: # The linker will automatically build a .lib file if we build a DLL.
10600: old_archive_from_new_cmds='true'
10601: # FIXME: Should let the user specify the lib program.
10602: old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10603: enable_shared_with_static_runtimes=yes
10604: ;;
10605: esac
10606: ;;
10607:
10608: darwin* | rhapsody*)
10609:
10610:
10611: archive_cmds_need_lc=no
10612: hardcode_direct=no
10613: hardcode_automatic=yes
10614: hardcode_shlibpath_var=unsupported
10615: if test yes = "$lt_cv_ld_force_load"; then
10616: whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
10617:
10618: else
10619: whole_archive_flag_spec=''
10620: fi
10621: link_all_deplibs=yes
10622: allow_undefined_flag=$_lt_dar_allow_undefined
10623: case $cc_basename in
10624: ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10625: *) _lt_dar_can_shared=$GCC ;;
10626: esac
10627: if test yes = "$_lt_dar_can_shared"; then
10628: output_verbose_link_cmd=func_echo_all
10629: archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10630: module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
1.7 ! ohara 10631: archive_expsym_cmds="$SED 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dar_export_syms$_lt_dsymutil"
! 10632: module_expsym_cmds="$SED -e 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dar_export_syms$_lt_dsymutil"
1.5 ohara 10633:
10634: else
10635: ld_shlibs=no
10636: fi
10637:
10638: ;;
10639:
10640: dgux*)
10641: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10642: hardcode_libdir_flag_spec='-L$libdir'
10643: hardcode_shlibpath_var=no
10644: ;;
10645:
10646: # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10647: # support. Future versions do this automatically, but an explicit c++rt0.o
10648: # does not break anything, and helps significantly (at the cost of a little
10649: # extra space).
10650: freebsd2.2*)
10651: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10652: hardcode_libdir_flag_spec='-R$libdir'
10653: hardcode_direct=yes
10654: hardcode_shlibpath_var=no
10655: ;;
10656:
10657: # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10658: freebsd2.*)
10659: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10660: hardcode_direct=yes
10661: hardcode_minus_L=yes
10662: hardcode_shlibpath_var=no
10663: ;;
10664:
10665: # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
1.7 ! ohara 10666: freebsd* | dragonfly* | midnightbsd*)
1.5 ohara 10667: archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10668: hardcode_libdir_flag_spec='-R$libdir'
10669: hardcode_direct=yes
10670: hardcode_shlibpath_var=no
10671: ;;
10672:
10673: hpux9*)
10674: if test yes = "$GCC"; then
10675: archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
10676: else
10677: archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
10678: fi
10679: hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10680: hardcode_libdir_separator=:
10681: hardcode_direct=yes
10682:
10683: # hardcode_minus_L: Not really in the search PATH,
10684: # but as the default location of the library.
10685: hardcode_minus_L=yes
10686: export_dynamic_flag_spec='$wl-E'
10687: ;;
10688:
10689: hpux10*)
10690: if test yes,no = "$GCC,$with_gnu_ld"; then
10691: archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10692: else
10693: archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10694: fi
10695: if test no = "$with_gnu_ld"; then
10696: hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10697: hardcode_libdir_separator=:
10698: hardcode_direct=yes
10699: hardcode_direct_absolute=yes
10700: export_dynamic_flag_spec='$wl-E'
10701: # hardcode_minus_L: Not really in the search PATH,
10702: # but as the default location of the library.
10703: hardcode_minus_L=yes
10704: fi
10705: ;;
10706:
10707: hpux11*)
10708: if test yes,no = "$GCC,$with_gnu_ld"; then
10709: case $host_cpu in
10710: hppa*64*)
10711: archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10712: ;;
10713: ia64*)
10714: archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10715: ;;
10716: *)
10717: archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10718: ;;
10719: esac
10720: else
10721: case $host_cpu in
10722: hppa*64*)
10723: archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10724: ;;
10725: ia64*)
10726: archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10727: ;;
10728: *)
10729:
10730: # Older versions of the 11.00 compiler do not understand -b yet
10731: # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
1.7 ! ohara 10732: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
! 10733: printf %s "checking if $CC understands -b... " >&6; }
! 10734: if test ${lt_cv_prog_compiler__b+y}
! 10735: then :
! 10736: printf %s "(cached) " >&6
! 10737: else $as_nop
1.5 ohara 10738: lt_cv_prog_compiler__b=no
10739: save_LDFLAGS=$LDFLAGS
10740: LDFLAGS="$LDFLAGS -b"
10741: echo "$lt_simple_link_test_code" > conftest.$ac_ext
10742: if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10743: # The linker can only warn and ignore the option if not recognized
10744: # So say no if there are warnings
10745: if test -s conftest.err; then
10746: # Append any errors to the config.log.
10747: cat conftest.err 1>&5
10748: $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10749: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10750: if diff conftest.exp conftest.er2 >/dev/null; then
10751: lt_cv_prog_compiler__b=yes
10752: fi
10753: else
10754: lt_cv_prog_compiler__b=yes
10755: fi
10756: fi
10757: $RM -r conftest*
10758: LDFLAGS=$save_LDFLAGS
10759:
10760: fi
1.7 ! ohara 10761: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
! 10762: printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
1.5 ohara 10763:
10764: if test yes = "$lt_cv_prog_compiler__b"; then
10765: archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10766: else
10767: archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10768: fi
10769:
10770: ;;
10771: esac
10772: fi
10773: if test no = "$with_gnu_ld"; then
10774: hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10775: hardcode_libdir_separator=:
10776:
10777: case $host_cpu in
10778: hppa*64*|ia64*)
10779: hardcode_direct=no
10780: hardcode_shlibpath_var=no
10781: ;;
10782: *)
10783: hardcode_direct=yes
10784: hardcode_direct_absolute=yes
10785: export_dynamic_flag_spec='$wl-E'
10786:
10787: # hardcode_minus_L: Not really in the search PATH,
10788: # but as the default location of the library.
10789: hardcode_minus_L=yes
10790: ;;
10791: esac
10792: fi
10793: ;;
10794:
10795: irix5* | irix6* | nonstopux*)
10796: if test yes = "$GCC"; then
10797: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
10798: # Try to use the -exported_symbol ld option, if it does not
10799: # work, assume that -exports_file does not work either and
10800: # implicitly export all symbols.
10801: # This should be the same for all languages, so no per-tag cache variable.
1.7 ! ohara 10802: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
! 10803: printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
! 10804: if test ${lt_cv_irix_exported_symbol+y}
! 10805: then :
! 10806: printf %s "(cached) " >&6
! 10807: else $as_nop
1.5 ohara 10808: save_LDFLAGS=$LDFLAGS
10809: LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10810: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10811: /* end confdefs.h. */
10812: int foo (void) { return 0; }
10813: _ACEOF
1.7 ! ohara 10814: if ac_fn_c_try_link "$LINENO"
! 10815: then :
1.5 ohara 10816: lt_cv_irix_exported_symbol=yes
1.7 ! ohara 10817: else $as_nop
1.5 ohara 10818: lt_cv_irix_exported_symbol=no
10819: fi
1.7 ! ohara 10820: rm -f core conftest.err conftest.$ac_objext conftest.beam \
1.5 ohara 10821: conftest$ac_exeext conftest.$ac_ext
10822: LDFLAGS=$save_LDFLAGS
10823: fi
1.7 ! ohara 10824: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
! 10825: printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
1.5 ohara 10826: if test yes = "$lt_cv_irix_exported_symbol"; then
10827: archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib'
10828: fi
10829: else
10830: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
10831: archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -exports_file $export_symbols -o $lib'
10832: fi
10833: archive_cmds_need_lc='no'
10834: hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10835: hardcode_libdir_separator=:
10836: inherit_rpath=yes
10837: link_all_deplibs=yes
10838: ;;
10839:
10840: linux*)
10841: case $cc_basename in
10842: tcc*)
10843: # Fabrice Bellard et al's Tiny C Compiler
10844: ld_shlibs=yes
10845: archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10846: ;;
10847: esac
10848: ;;
10849:
10850: netbsd*)
10851: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10852: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10853: else
10854: archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10855: fi
10856: hardcode_libdir_flag_spec='-R$libdir'
10857: hardcode_direct=yes
10858: hardcode_shlibpath_var=no
10859: ;;
10860:
10861: newsos6)
10862: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10863: hardcode_direct=yes
10864: hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10865: hardcode_libdir_separator=:
10866: hardcode_shlibpath_var=no
10867: ;;
10868:
10869: *nto* | *qnx*)
10870: ;;
10871:
10872: openbsd* | bitrig*)
10873: if test -f /usr/libexec/ld.so; then
10874: hardcode_direct=yes
10875: hardcode_shlibpath_var=no
10876: hardcode_direct_absolute=yes
10877: if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10878: archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10879: archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10880: hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10881: export_dynamic_flag_spec='$wl-E'
10882: else
10883: archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10884: hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10885: fi
10886: else
10887: ld_shlibs=no
10888: fi
10889: ;;
10890:
10891: os2*)
10892: hardcode_libdir_flag_spec='-L$libdir'
10893: hardcode_minus_L=yes
10894: allow_undefined_flag=unsupported
10895: shrext_cmds=.dll
10896: archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10897: $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10898: $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10899: $ECHO EXPORTS >> $output_objdir/$libname.def~
10900: emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10901: $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10902: emximp -o $lib $output_objdir/$libname.def'
10903: archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10904: $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10905: $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10906: $ECHO EXPORTS >> $output_objdir/$libname.def~
10907: prefix_cmds="$SED"~
10908: if test EXPORTS = "`$SED 1q $export_symbols`"; then
10909: prefix_cmds="$prefix_cmds -e 1d";
10910: fi~
10911: prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10912: cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10913: $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10914: emximp -o $lib $output_objdir/$libname.def'
10915: old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10916: enable_shared_with_static_runtimes=yes
1.7 ! ohara 10917: file_list_spec='@'
1.5 ohara 10918: ;;
10919:
10920: osf3*)
10921: if test yes = "$GCC"; then
10922: allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10923: archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
10924: else
10925: allow_undefined_flag=' -expect_unresolved \*'
10926: archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
10927: fi
10928: archive_cmds_need_lc='no'
10929: hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10930: hardcode_libdir_separator=:
10931: ;;
10932:
10933: osf4* | osf5*) # as osf3* with the addition of -msym flag
10934: if test yes = "$GCC"; then
10935: allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10936: archive_cmds='$CC -shared$allow_undefined_flag $pic_flag $libobjs $deplibs $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
10937: hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10938: else
10939: allow_undefined_flag=' -expect_unresolved \*'
10940: archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
10941: archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
10942: $CC -shared$allow_undefined_flag $wl-input $wl$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~$RM $lib.exp'
10943:
10944: # Both c and cxx compiler support -rpath directly
10945: hardcode_libdir_flag_spec='-rpath $libdir'
10946: fi
10947: archive_cmds_need_lc='no'
10948: hardcode_libdir_separator=:
10949: ;;
10950:
10951: solaris*)
10952: no_undefined_flag=' -z defs'
10953: if test yes = "$GCC"; then
10954: wlarc='$wl'
10955: archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10956: archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10957: $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10958: else
10959: case `$CC -V 2>&1` in
10960: *"Compilers 5.0"*)
10961: wlarc=''
10962: archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10963: archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10964: $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10965: ;;
10966: *)
10967: wlarc='$wl'
10968: archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10969: archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10970: $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10971: ;;
10972: esac
10973: fi
10974: hardcode_libdir_flag_spec='-R$libdir'
10975: hardcode_shlibpath_var=no
10976: case $host_os in
10977: solaris2.[0-5] | solaris2.[0-5].*) ;;
10978: *)
10979: # The compiler driver will combine and reorder linker options,
10980: # but understands '-z linker_flag'. GCC discards it without '$wl',
10981: # but is careful enough not to reorder.
10982: # Supported since Solaris 2.6 (maybe 2.5.1?)
10983: if test yes = "$GCC"; then
10984: whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10985: else
10986: whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10987: fi
10988: ;;
10989: esac
10990: link_all_deplibs=yes
10991: ;;
10992:
10993: sunos4*)
10994: if test sequent = "$host_vendor"; then
10995: # Use $CC to link under sequent, because it throws in some extra .o
10996: # files that make .init and .fini sections work.
10997: archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10998: else
10999: archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11000: fi
11001: hardcode_libdir_flag_spec='-L$libdir'
11002: hardcode_direct=yes
11003: hardcode_minus_L=yes
11004: hardcode_shlibpath_var=no
11005: ;;
11006:
11007: sysv4)
11008: case $host_vendor in
11009: sni)
11010: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11011: hardcode_direct=yes # is this really true???
11012: ;;
11013: siemens)
11014: ## LD is ld it makes a PLAMLIB
11015: ## CC just makes a GrossModule.
11016: archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11017: reload_cmds='$CC -r -o $output$reload_objs'
11018: hardcode_direct=no
11019: ;;
11020: motorola)
11021: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11022: hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11023: ;;
11024: esac
11025: runpath_var='LD_RUN_PATH'
11026: hardcode_shlibpath_var=no
11027: ;;
11028:
11029: sysv4.3*)
11030: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11031: hardcode_shlibpath_var=no
11032: export_dynamic_flag_spec='-Bexport'
11033: ;;
11034:
11035: sysv4*MP*)
11036: if test -d /usr/nec; then
11037: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11038: hardcode_shlibpath_var=no
11039: runpath_var=LD_RUN_PATH
11040: hardcode_runpath_var=yes
11041: ld_shlibs=yes
11042: fi
11043: ;;
11044:
11045: sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11046: no_undefined_flag='$wl-z,text'
11047: archive_cmds_need_lc=no
11048: hardcode_shlibpath_var=no
11049: runpath_var='LD_RUN_PATH'
11050:
11051: if test yes = "$GCC"; then
11052: archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11053: archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11054: else
11055: archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11056: archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11057: fi
11058: ;;
11059:
11060: sysv5* | sco3.2v5* | sco5v6*)
11061: # Note: We CANNOT use -z defs as we might desire, because we do not
11062: # link with -lc, and that would cause any symbols used from libc to
11063: # always be unresolved, which means just about no library would
11064: # ever link correctly. If we're not using GNU ld we use -z text
11065: # though, which does catch some bad symbols but isn't as heavy-handed
11066: # as -z defs.
11067: no_undefined_flag='$wl-z,text'
11068: allow_undefined_flag='$wl-z,nodefs'
11069: archive_cmds_need_lc=no
11070: hardcode_shlibpath_var=no
11071: hardcode_libdir_flag_spec='$wl-R,$libdir'
11072: hardcode_libdir_separator=':'
11073: link_all_deplibs=yes
11074: export_dynamic_flag_spec='$wl-Bexport'
11075: runpath_var='LD_RUN_PATH'
11076:
11077: if test yes = "$GCC"; then
11078: archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11079: archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11080: else
11081: archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11082: archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11083: fi
11084: ;;
11085:
11086: uts4*)
11087: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11088: hardcode_libdir_flag_spec='-L$libdir'
11089: hardcode_shlibpath_var=no
11090: ;;
11091:
11092: *)
11093: ld_shlibs=no
11094: ;;
11095: esac
11096:
11097: if test sni = "$host_vendor"; then
11098: case $host in
11099: sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11100: export_dynamic_flag_spec='$wl-Blargedynsym'
11101: ;;
11102: esac
11103: fi
11104: fi
11105:
1.7 ! ohara 11106: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
! 11107: printf "%s\n" "$ld_shlibs" >&6; }
1.5 ohara 11108: test no = "$ld_shlibs" && can_build_shared=no
11109:
11110: with_gnu_ld=$with_gnu_ld
11111:
11112:
11113:
11114:
11115:
11116:
11117:
11118:
11119:
11120:
11121:
11122:
11123:
11124:
11125:
11126: #
11127: # Do we need to explicitly link libc?
11128: #
11129: case "x$archive_cmds_need_lc" in
11130: x|xyes)
11131: # Assume -lc should be added
11132: archive_cmds_need_lc=yes
11133:
11134: if test yes,yes = "$GCC,$enable_shared"; then
11135: case $archive_cmds in
11136: *'~'*)
11137: # FIXME: we may have to deal with multi-command sequences.
11138: ;;
11139: '$CC '*)
11140: # Test whether the compiler implicitly links with -lc since on some
11141: # systems, -lgcc has to come before -lc. If gcc already passes -lc
11142: # to ld, don't add -lc before -lgcc.
1.7 ! ohara 11143: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
! 11144: printf %s "checking whether -lc should be explicitly linked in... " >&6; }
! 11145: if test ${lt_cv_archive_cmds_need_lc+y}
! 11146: then :
! 11147: printf %s "(cached) " >&6
! 11148: else $as_nop
1.5 ohara 11149: $RM conftest*
11150: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11151:
11152: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11153: (eval $ac_compile) 2>&5
11154: ac_status=$?
1.7 ! ohara 11155: printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1.5 ohara 11156: test $ac_status = 0; } 2>conftest.err; then
11157: soname=conftest
11158: lib=conftest
11159: libobjs=conftest.$ac_objext
11160: deplibs=
11161: wl=$lt_prog_compiler_wl
11162: pic_flag=$lt_prog_compiler_pic
11163: compiler_flags=-v
11164: linker_flags=-v
11165: verstring=
11166: output_objdir=.
11167: libname=conftest
11168: lt_save_allow_undefined_flag=$allow_undefined_flag
11169: allow_undefined_flag=
11170: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11171: (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11172: ac_status=$?
1.7 ! ohara 11173: printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1.5 ohara 11174: test $ac_status = 0; }
11175: then
11176: lt_cv_archive_cmds_need_lc=no
11177: else
11178: lt_cv_archive_cmds_need_lc=yes
11179: fi
11180: allow_undefined_flag=$lt_save_allow_undefined_flag
11181: else
11182: cat conftest.err 1>&5
11183: fi
11184: $RM conftest*
11185:
11186: fi
1.7 ! ohara 11187: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
! 11188: printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
1.5 ohara 11189: archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11190: ;;
11191: esac
11192: fi
11193: ;;
11194: esac
11195:
11196:
11197:
11198:
11199:
11200:
11201:
11202:
11203:
11204:
11205:
11206:
11207:
11208:
11209:
11210:
11211:
11212:
11213:
11214:
11215:
11216:
11217:
11218:
11219:
11220:
11221:
11222:
11223:
11224:
11225:
11226:
11227:
11228:
11229:
11230:
11231:
11232:
11233:
11234:
11235:
11236:
11237:
11238:
11239:
11240:
11241:
11242:
11243:
11244:
11245:
11246:
11247:
11248:
11249:
11250:
11251:
11252:
11253:
11254:
11255:
11256:
11257:
11258:
11259:
11260:
11261:
11262:
11263:
11264:
11265:
11266:
11267:
11268:
11269:
11270:
11271:
11272:
11273:
11274:
11275:
11276:
11277:
11278:
11279:
11280:
11281:
11282:
11283:
11284:
11285:
11286:
11287:
11288:
11289:
11290:
11291:
11292:
11293:
11294:
11295:
11296:
11297:
11298:
11299:
11300:
11301:
11302:
11303:
11304:
11305:
11306:
11307:
11308:
11309:
11310:
11311:
11312:
11313:
11314:
11315:
11316:
11317:
11318:
11319:
11320:
11321:
11322:
11323:
11324:
11325:
11326:
11327:
11328:
11329:
11330:
11331:
11332:
11333:
11334:
11335:
11336:
11337:
11338:
11339:
11340:
11341:
11342:
11343:
11344:
11345:
11346:
1.7 ! ohara 11347: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
! 11348: printf %s "checking dynamic linker characteristics... " >&6; }
1.5 ohara 11349:
11350: if test yes = "$GCC"; then
11351: case $host_os in
11352: darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11353: *) lt_awk_arg='/^libraries:/' ;;
11354: esac
11355: case $host_os in
11356: mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11357: *) lt_sed_strip_eq='s|=/|/|g' ;;
11358: esac
11359: lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11360: case $lt_search_path_spec in
11361: *\;*)
11362: # if the path contains ";" then we assume it to be the separator
11363: # otherwise default to the standard path separator (i.e. ":") - it is
11364: # assumed that no part of a normal pathname contains ";" but that should
11365: # okay in the real world where ";" in dirpaths is itself problematic.
11366: lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11367: ;;
11368: *)
11369: lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11370: ;;
11371: esac
11372: # Ok, now we have the path, separated by spaces, we can step through it
11373: # and add multilib dir if necessary...
11374: lt_tmp_lt_search_path_spec=
11375: lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11376: # ...but if some path component already ends with the multilib dir we assume
11377: # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11378: case "$lt_multi_os_dir; $lt_search_path_spec " in
11379: "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11380: lt_multi_os_dir=
11381: ;;
11382: esac
11383: for lt_sys_path in $lt_search_path_spec; do
11384: if test -d "$lt_sys_path$lt_multi_os_dir"; then
11385: lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11386: elif test -n "$lt_multi_os_dir"; then
11387: test -d "$lt_sys_path" && \
11388: lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11389: fi
11390: done
11391: lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11392: BEGIN {RS = " "; FS = "/|\n";} {
11393: lt_foo = "";
11394: lt_count = 0;
11395: for (lt_i = NF; lt_i > 0; lt_i--) {
11396: if ($lt_i != "" && $lt_i != ".") {
11397: if ($lt_i == "..") {
11398: lt_count++;
11399: } else {
11400: if (lt_count == 0) {
11401: lt_foo = "/" $lt_i lt_foo;
11402: } else {
11403: lt_count--;
11404: }
11405: }
11406: }
11407: }
11408: if (lt_foo != "") { lt_freq[lt_foo]++; }
11409: if (lt_freq[lt_foo] == 1) { print lt_foo; }
11410: }'`
11411: # AWK program above erroneously prepends '/' to C:/dos/paths
11412: # for these hosts.
11413: case $host_os in
11414: mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11415: $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11416: esac
11417: sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11418: else
11419: sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11420: fi
11421: library_names_spec=
11422: libname_spec='lib$name'
11423: soname_spec=
11424: shrext_cmds=.so
11425: postinstall_cmds=
11426: postuninstall_cmds=
11427: finish_cmds=
11428: finish_eval=
11429: shlibpath_var=
11430: shlibpath_overrides_runpath=unknown
11431: version_type=none
11432: dynamic_linker="$host_os ld.so"
11433: sys_lib_dlsearch_path_spec="/lib /usr/lib"
11434: need_lib_prefix=unknown
11435: hardcode_into_libs=no
11436:
11437: # when you set need_version to no, make sure it does not cause -set_version
11438: # flags to be left without arguments
11439: need_version=unknown
11440:
11441:
11442:
11443: case $host_os in
11444: aix3*)
11445: version_type=linux # correct to gnu/linux during the next big refactor
11446: library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11447: shlibpath_var=LIBPATH
11448:
11449: # AIX 3 has no versioning support, so we append a major version to the name.
11450: soname_spec='$libname$release$shared_ext$major'
11451: ;;
11452:
11453: aix[4-9]*)
11454: version_type=linux # correct to gnu/linux during the next big refactor
11455: need_lib_prefix=no
11456: need_version=no
11457: hardcode_into_libs=yes
11458: if test ia64 = "$host_cpu"; then
11459: # AIX 5 supports IA64
11460: library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11461: shlibpath_var=LD_LIBRARY_PATH
11462: else
11463: # With GCC up to 2.95.x, collect2 would create an import file
11464: # for dependence libraries. The import file would start with
11465: # the line '#! .'. This would cause the generated library to
11466: # depend on '.', always an invalid library. This was fixed in
11467: # development snapshots of GCC prior to 3.0.
11468: case $host_os in
11469: aix4 | aix4.[01] | aix4.[01].*)
11470: if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11471: echo ' yes '
11472: echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11473: :
11474: else
11475: can_build_shared=no
11476: fi
11477: ;;
11478: esac
11479: # Using Import Files as archive members, it is possible to support
11480: # filename-based versioning of shared library archives on AIX. While
11481: # this would work for both with and without runtime linking, it will
11482: # prevent static linking of such archives. So we do filename-based
11483: # shared library versioning with .so extension only, which is used
11484: # when both runtime linking and shared linking is enabled.
11485: # Unfortunately, runtime linking may impact performance, so we do
11486: # not want this to be the default eventually. Also, we use the
11487: # versioned .so libs for executables only if there is the -brtl
11488: # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11489: # To allow for filename-based versioning support, we need to create
11490: # libNAME.so.V as an archive file, containing:
11491: # *) an Import File, referring to the versioned filename of the
11492: # archive as well as the shared archive member, telling the
11493: # bitwidth (32 or 64) of that shared object, and providing the
11494: # list of exported symbols of that shared object, eventually
11495: # decorated with the 'weak' keyword
11496: # *) the shared object with the F_LOADONLY flag set, to really avoid
11497: # it being seen by the linker.
11498: # At run time we better use the real file rather than another symlink,
11499: # but for link time we create the symlink libNAME.so -> libNAME.so.V
11500:
11501: case $with_aix_soname,$aix_use_runtimelinking in
11502: # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11503: # soname into executable. Probably we can add versioning support to
11504: # collect2, so additional links can be useful in future.
11505: aix,yes) # traditional libtool
11506: dynamic_linker='AIX unversionable lib.so'
11507: # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11508: # instead of lib<name>.a to let people know that these are not
11509: # typical AIX shared libraries.
11510: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11511: ;;
11512: aix,no) # traditional AIX only
11513: dynamic_linker='AIX lib.a(lib.so.V)'
11514: # We preserve .a as extension for shared libraries through AIX4.2
11515: # and later when we are not doing run time linking.
11516: library_names_spec='$libname$release.a $libname.a'
11517: soname_spec='$libname$release$shared_ext$major'
11518: ;;
11519: svr4,*) # full svr4 only
11520: dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11521: library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11522: # We do not specify a path in Import Files, so LIBPATH fires.
11523: shlibpath_overrides_runpath=yes
11524: ;;
11525: *,yes) # both, prefer svr4
11526: dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11527: library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11528: # unpreferred sharedlib libNAME.a needs extra handling
11529: postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
11530: postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
11531: # We do not specify a path in Import Files, so LIBPATH fires.
11532: shlibpath_overrides_runpath=yes
11533: ;;
11534: *,no) # both, prefer aix
11535: dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11536: library_names_spec='$libname$release.a $libname.a'
11537: soname_spec='$libname$release$shared_ext$major'
11538: # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11539: postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
11540: postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
11541: ;;
11542: esac
11543: shlibpath_var=LIBPATH
11544: fi
11545: ;;
11546:
11547: amigaos*)
11548: case $host_cpu in
11549: powerpc)
11550: # Since July 2007 AmigaOS4 officially supports .so libraries.
11551: # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11552: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11553: ;;
11554: m68k)
11555: library_names_spec='$libname.ixlibrary $libname.a'
11556: # Create ${libname}_ixlibrary.a entries in /sys/libs.
11557: finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
11558: ;;
11559: esac
11560: ;;
11561:
11562: beos*)
11563: library_names_spec='$libname$shared_ext'
11564: dynamic_linker="$host_os ld.so"
11565: shlibpath_var=LIBRARY_PATH
11566: ;;
11567:
11568: bsdi[45]*)
11569: version_type=linux # correct to gnu/linux during the next big refactor
11570: need_version=no
11571: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11572: soname_spec='$libname$release$shared_ext$major'
11573: finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11574: shlibpath_var=LD_LIBRARY_PATH
11575: sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11576: sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11577: # the default ld.so.conf also contains /usr/contrib/lib and
11578: # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11579: # libtool to hard-code these into programs
11580: ;;
11581:
11582: cygwin* | mingw* | pw32* | cegcc*)
11583: version_type=windows
11584: shrext_cmds=.dll
11585: need_version=no
11586: need_lib_prefix=no
11587:
11588: case $GCC,$cc_basename in
11589: yes,*)
11590: # gcc
11591: library_names_spec='$libname.dll.a'
11592: # DLL is installed to $(libdir)/../bin by postinstall_cmds
11593: postinstall_cmds='base_file=`basename \$file`~
11594: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11595: dldir=$destdir/`dirname \$dlpath`~
11596: test -d \$dldir || mkdir -p \$dldir~
11597: $install_prog $dir/$dlname \$dldir/$dlname~
11598: chmod a+x \$dldir/$dlname~
11599: if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11600: eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11601: fi'
11602: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11603: dlpath=$dir/\$dldll~
11604: $RM \$dlpath'
11605: shlibpath_overrides_runpath=yes
11606:
11607: case $host_os in
11608: cygwin*)
11609: # Cygwin DLLs use 'cyg' prefix rather than 'lib'
1.7 ! ohara 11610: soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
1.5 ohara 11611:
11612: sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11613: ;;
11614: mingw* | cegcc*)
11615: # MinGW DLLs use traditional 'lib' prefix
11616: soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11617: ;;
11618: pw32*)
11619: # pw32 DLLs use 'pw' prefix rather than 'lib'
1.7 ! ohara 11620: library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
1.5 ohara 11621: ;;
11622: esac
11623: dynamic_linker='Win32 ld.exe'
11624: ;;
11625:
1.7 ! ohara 11626: *,cl* | *,icl*)
! 11627: # Native MSVC or ICC
1.5 ohara 11628: libname_spec='$name'
11629: soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11630: library_names_spec='$libname.dll.lib'
11631:
11632: case $build_os in
11633: mingw*)
11634: sys_lib_search_path_spec=
11635: lt_save_ifs=$IFS
11636: IFS=';'
11637: for lt_path in $LIB
11638: do
11639: IFS=$lt_save_ifs
11640: # Let DOS variable expansion print the short 8.3 style file name.
11641: lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11642: sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11643: done
11644: IFS=$lt_save_ifs
11645: # Convert to MSYS style.
1.7 ! ohara 11646: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
1.5 ohara 11647: ;;
11648: cygwin*)
11649: # Convert to unix form, then to dos form, then back to unix form
11650: # but this time dos style (no spaces!) so that the unix form looks
11651: # like /cygdrive/c/PROGRA~1:/cygdr...
11652: sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11653: sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11654: sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11655: ;;
11656: *)
11657: sys_lib_search_path_spec=$LIB
11658: if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11659: # It is most probably a Windows format PATH.
11660: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11661: else
11662: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11663: fi
11664: # FIXME: find the short name or the path components, as spaces are
11665: # common. (e.g. "Program Files" -> "PROGRA~1")
11666: ;;
11667: esac
11668:
11669: # DLL is installed to $(libdir)/../bin by postinstall_cmds
11670: postinstall_cmds='base_file=`basename \$file`~
11671: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11672: dldir=$destdir/`dirname \$dlpath`~
11673: test -d \$dldir || mkdir -p \$dldir~
11674: $install_prog $dir/$dlname \$dldir/$dlname'
11675: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11676: dlpath=$dir/\$dldll~
11677: $RM \$dlpath'
11678: shlibpath_overrides_runpath=yes
11679: dynamic_linker='Win32 link.exe'
11680: ;;
11681:
11682: *)
1.7 ! ohara 11683: # Assume MSVC and ICC wrapper
1.5 ohara 11684: library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11685: dynamic_linker='Win32 ld.exe'
11686: ;;
11687: esac
11688: # FIXME: first we should search . and the directory the executable is in
11689: shlibpath_var=PATH
11690: ;;
11691:
11692: darwin* | rhapsody*)
11693: dynamic_linker="$host_os dyld"
11694: version_type=darwin
11695: need_lib_prefix=no
11696: need_version=no
11697: library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11698: soname_spec='$libname$release$major$shared_ext'
11699: shlibpath_overrides_runpath=yes
11700: shlibpath_var=DYLD_LIBRARY_PATH
11701: shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11702:
11703: sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11704: sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11705: ;;
11706:
11707: dgux*)
11708: version_type=linux # correct to gnu/linux during the next big refactor
11709: need_lib_prefix=no
11710: need_version=no
11711: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11712: soname_spec='$libname$release$shared_ext$major'
11713: shlibpath_var=LD_LIBRARY_PATH
11714: ;;
11715:
1.7 ! ohara 11716: freebsd* | dragonfly* | midnightbsd*)
1.5 ohara 11717: # DragonFly does not have aout. When/if they implement a new
11718: # versioning mechanism, adjust this.
11719: if test -x /usr/bin/objformat; then
11720: objformat=`/usr/bin/objformat`
11721: else
11722: case $host_os in
11723: freebsd[23].*) objformat=aout ;;
11724: *) objformat=elf ;;
11725: esac
11726: fi
11727: version_type=freebsd-$objformat
11728: case $version_type in
11729: freebsd-elf*)
11730: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11731: soname_spec='$libname$release$shared_ext$major'
11732: need_version=no
11733: need_lib_prefix=no
11734: ;;
11735: freebsd-*)
11736: library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11737: need_version=yes
11738: ;;
11739: esac
11740: shlibpath_var=LD_LIBRARY_PATH
11741: case $host_os in
11742: freebsd2.*)
11743: shlibpath_overrides_runpath=yes
11744: ;;
11745: freebsd3.[01]* | freebsdelf3.[01]*)
11746: shlibpath_overrides_runpath=yes
11747: hardcode_into_libs=yes
11748: ;;
11749: freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11750: freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11751: shlibpath_overrides_runpath=no
11752: hardcode_into_libs=yes
11753: ;;
11754: *) # from 4.6 on, and DragonFly
11755: shlibpath_overrides_runpath=yes
11756: hardcode_into_libs=yes
11757: ;;
11758: esac
11759: ;;
11760:
11761: haiku*)
11762: version_type=linux # correct to gnu/linux during the next big refactor
11763: need_lib_prefix=no
11764: need_version=no
11765: dynamic_linker="$host_os runtime_loader"
11766: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11767: soname_spec='$libname$release$shared_ext$major'
11768: shlibpath_var=LIBRARY_PATH
11769: shlibpath_overrides_runpath=no
11770: sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11771: hardcode_into_libs=yes
11772: ;;
11773:
11774: hpux9* | hpux10* | hpux11*)
11775: # Give a soname corresponding to the major version so that dld.sl refuses to
11776: # link against other versions.
11777: version_type=sunos
11778: need_lib_prefix=no
11779: need_version=no
11780: case $host_cpu in
11781: ia64*)
11782: shrext_cmds='.so'
11783: hardcode_into_libs=yes
11784: dynamic_linker="$host_os dld.so"
11785: shlibpath_var=LD_LIBRARY_PATH
11786: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11787: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11788: soname_spec='$libname$release$shared_ext$major'
11789: if test 32 = "$HPUX_IA64_MODE"; then
11790: sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11791: sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11792: else
11793: sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11794: sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11795: fi
11796: ;;
11797: hppa*64*)
11798: shrext_cmds='.sl'
11799: hardcode_into_libs=yes
11800: dynamic_linker="$host_os dld.sl"
11801: shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11802: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11803: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11804: soname_spec='$libname$release$shared_ext$major'
11805: sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11806: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11807: ;;
11808: *)
11809: shrext_cmds='.sl'
11810: dynamic_linker="$host_os dld.sl"
11811: shlibpath_var=SHLIB_PATH
11812: shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11813: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11814: soname_spec='$libname$release$shared_ext$major'
11815: ;;
11816: esac
11817: # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11818: postinstall_cmds='chmod 555 $lib'
11819: # or fails outright, so override atomically:
11820: install_override_mode=555
11821: ;;
11822:
11823: interix[3-9]*)
11824: version_type=linux # correct to gnu/linux during the next big refactor
11825: need_lib_prefix=no
11826: need_version=no
11827: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11828: soname_spec='$libname$release$shared_ext$major'
11829: dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11830: shlibpath_var=LD_LIBRARY_PATH
11831: shlibpath_overrides_runpath=no
11832: hardcode_into_libs=yes
11833: ;;
11834:
11835: irix5* | irix6* | nonstopux*)
11836: case $host_os in
11837: nonstopux*) version_type=nonstopux ;;
11838: *)
11839: if test yes = "$lt_cv_prog_gnu_ld"; then
11840: version_type=linux # correct to gnu/linux during the next big refactor
11841: else
11842: version_type=irix
11843: fi ;;
11844: esac
11845: need_lib_prefix=no
11846: need_version=no
11847: soname_spec='$libname$release$shared_ext$major'
11848: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11849: case $host_os in
11850: irix5* | nonstopux*)
11851: libsuff= shlibsuff=
11852: ;;
11853: *)
11854: case $LD in # libtool.m4 will add one of these switches to LD
11855: *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11856: libsuff= shlibsuff= libmagic=32-bit;;
11857: *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11858: libsuff=32 shlibsuff=N32 libmagic=N32;;
11859: *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11860: libsuff=64 shlibsuff=64 libmagic=64-bit;;
11861: *) libsuff= shlibsuff= libmagic=never-match;;
11862: esac
11863: ;;
11864: esac
11865: shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11866: shlibpath_overrides_runpath=no
11867: sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11868: sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11869: hardcode_into_libs=yes
11870: ;;
11871:
11872: # No shared lib support for Linux oldld, aout, or coff.
11873: linux*oldld* | linux*aout* | linux*coff*)
11874: dynamic_linker=no
11875: ;;
11876:
11877: linux*android*)
11878: version_type=none # Android doesn't support versioned libraries.
11879: need_lib_prefix=no
11880: need_version=no
11881: library_names_spec='$libname$release$shared_ext'
11882: soname_spec='$libname$release$shared_ext'
11883: finish_cmds=
11884: shlibpath_var=LD_LIBRARY_PATH
11885: shlibpath_overrides_runpath=yes
11886:
11887: # This implies no fast_install, which is unacceptable.
11888: # Some rework will be needed to allow for fast_install
11889: # before this can be enabled.
11890: hardcode_into_libs=yes
11891:
11892: dynamic_linker='Android linker'
11893: # Don't embed -rpath directories since the linker doesn't support them.
11894: hardcode_libdir_flag_spec='-L$libdir'
11895: ;;
11896:
11897: # This must be glibc/ELF.
11898: linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11899: version_type=linux # correct to gnu/linux during the next big refactor
11900: need_lib_prefix=no
11901: need_version=no
11902: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11903: soname_spec='$libname$release$shared_ext$major'
11904: finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11905: shlibpath_var=LD_LIBRARY_PATH
11906: shlibpath_overrides_runpath=no
11907:
11908: # Some binutils ld are patched to set DT_RUNPATH
1.7 ! ohara 11909: if test ${lt_cv_shlibpath_overrides_runpath+y}
! 11910: then :
! 11911: printf %s "(cached) " >&6
! 11912: else $as_nop
1.5 ohara 11913: lt_cv_shlibpath_overrides_runpath=no
11914: save_LDFLAGS=$LDFLAGS
11915: save_libdir=$libdir
11916: eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11917: LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11918: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11919: /* end confdefs.h. */
11920:
11921: int
1.7 ! ohara 11922: main (void)
1.5 ohara 11923: {
11924:
11925: ;
11926: return 0;
11927: }
11928: _ACEOF
1.7 ! ohara 11929: if ac_fn_c_try_link "$LINENO"
! 11930: then :
! 11931: if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
! 11932: then :
1.5 ohara 11933: lt_cv_shlibpath_overrides_runpath=yes
11934: fi
11935: fi
1.7 ! ohara 11936: rm -f core conftest.err conftest.$ac_objext conftest.beam \
1.5 ohara 11937: conftest$ac_exeext conftest.$ac_ext
11938: LDFLAGS=$save_LDFLAGS
11939: libdir=$save_libdir
11940:
11941: fi
11942:
11943: shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11944:
11945: # This implies no fast_install, which is unacceptable.
11946: # Some rework will be needed to allow for fast_install
11947: # before this can be enabled.
11948: hardcode_into_libs=yes
11949:
11950: # Ideally, we could use ldconfig to report *all* directores which are
11951: # searched for libraries, however this is still not possible. Aside from not
11952: # being certain /sbin/ldconfig is available, command
11953: # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11954: # even though it is searched at run-time. Try to do the best guess by
11955: # appending ld.so.conf contents (and includes) to the search path.
11956: if test -f /etc/ld.so.conf; then
11957: lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
11958: sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11959: fi
11960:
11961: # We used to test for /lib/ld.so.1 and disable shared libraries on
11962: # powerpc, because MkLinux only supported shared libraries with the
11963: # GNU dynamic linker. Since this was broken with cross compilers,
11964: # most powerpc-linux boxes support dynamic linking these days and
11965: # people can always --disable-shared, the test was removed, and we
11966: # assume the GNU/Linux dynamic linker is in use.
11967: dynamic_linker='GNU/Linux ld.so'
11968: ;;
11969:
11970: netbsd*)
11971: version_type=sunos
11972: need_lib_prefix=no
11973: need_version=no
11974: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11975: library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11976: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11977: dynamic_linker='NetBSD (a.out) ld.so'
11978: else
11979: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11980: soname_spec='$libname$release$shared_ext$major'
11981: dynamic_linker='NetBSD ld.elf_so'
11982: fi
11983: shlibpath_var=LD_LIBRARY_PATH
11984: shlibpath_overrides_runpath=yes
11985: hardcode_into_libs=yes
11986: ;;
11987:
11988: newsos6)
11989: version_type=linux # correct to gnu/linux during the next big refactor
11990: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11991: shlibpath_var=LD_LIBRARY_PATH
11992: shlibpath_overrides_runpath=yes
11993: ;;
11994:
11995: *nto* | *qnx*)
11996: version_type=qnx
11997: need_lib_prefix=no
11998: need_version=no
11999: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12000: soname_spec='$libname$release$shared_ext$major'
12001: shlibpath_var=LD_LIBRARY_PATH
12002: shlibpath_overrides_runpath=no
12003: hardcode_into_libs=yes
12004: dynamic_linker='ldqnx.so'
12005: ;;
12006:
12007: openbsd* | bitrig*)
12008: version_type=sunos
12009: sys_lib_dlsearch_path_spec=/usr/lib
12010: need_lib_prefix=no
12011: if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12012: need_version=no
12013: else
12014: need_version=yes
12015: fi
12016: library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12017: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12018: shlibpath_var=LD_LIBRARY_PATH
12019: shlibpath_overrides_runpath=yes
12020: ;;
12021:
12022: os2*)
12023: libname_spec='$name'
12024: version_type=windows
12025: shrext_cmds=.dll
12026: need_version=no
12027: need_lib_prefix=no
12028: # OS/2 can only load a DLL with a base name of 8 characters or less.
12029: soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
12030: v=$($ECHO $release$versuffix | tr -d .-);
12031: n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
12032: $ECHO $n$v`$shared_ext'
12033: library_names_spec='${libname}_dll.$libext'
12034: dynamic_linker='OS/2 ld.exe'
12035: shlibpath_var=BEGINLIBPATH
12036: sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12037: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12038: postinstall_cmds='base_file=`basename \$file`~
12039: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
12040: dldir=$destdir/`dirname \$dlpath`~
12041: test -d \$dldir || mkdir -p \$dldir~
12042: $install_prog $dir/$dlname \$dldir/$dlname~
12043: chmod a+x \$dldir/$dlname~
12044: if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12045: eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12046: fi'
12047: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
12048: dlpath=$dir/\$dldll~
12049: $RM \$dlpath'
12050: ;;
12051:
12052: osf3* | osf4* | osf5*)
12053: version_type=osf
12054: need_lib_prefix=no
12055: need_version=no
12056: soname_spec='$libname$release$shared_ext$major'
12057: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12058: shlibpath_var=LD_LIBRARY_PATH
12059: sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12060: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12061: ;;
12062:
12063: rdos*)
12064: dynamic_linker=no
12065: ;;
12066:
12067: solaris*)
12068: version_type=linux # correct to gnu/linux during the next big refactor
12069: need_lib_prefix=no
12070: need_version=no
12071: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12072: soname_spec='$libname$release$shared_ext$major'
12073: shlibpath_var=LD_LIBRARY_PATH
12074: shlibpath_overrides_runpath=yes
12075: hardcode_into_libs=yes
12076: # ldd complains unless libraries are executable
12077: postinstall_cmds='chmod +x $lib'
12078: ;;
12079:
12080: sunos4*)
12081: version_type=sunos
12082: library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12083: finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12084: shlibpath_var=LD_LIBRARY_PATH
12085: shlibpath_overrides_runpath=yes
12086: if test yes = "$with_gnu_ld"; then
12087: need_lib_prefix=no
12088: fi
12089: need_version=yes
12090: ;;
12091:
12092: sysv4 | sysv4.3*)
12093: version_type=linux # correct to gnu/linux during the next big refactor
12094: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12095: soname_spec='$libname$release$shared_ext$major'
12096: shlibpath_var=LD_LIBRARY_PATH
12097: case $host_vendor in
12098: sni)
12099: shlibpath_overrides_runpath=no
12100: need_lib_prefix=no
12101: runpath_var=LD_RUN_PATH
12102: ;;
12103: siemens)
12104: need_lib_prefix=no
12105: ;;
12106: motorola)
12107: need_lib_prefix=no
12108: need_version=no
12109: shlibpath_overrides_runpath=no
12110: sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12111: ;;
12112: esac
12113: ;;
12114:
12115: sysv4*MP*)
12116: if test -d /usr/nec; then
12117: version_type=linux # correct to gnu/linux during the next big refactor
12118: library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
12119: soname_spec='$libname$shared_ext.$major'
12120: shlibpath_var=LD_LIBRARY_PATH
12121: fi
12122: ;;
12123:
12124: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12125: version_type=sco
12126: need_lib_prefix=no
12127: need_version=no
12128: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
12129: soname_spec='$libname$release$shared_ext$major'
12130: shlibpath_var=LD_LIBRARY_PATH
12131: shlibpath_overrides_runpath=yes
12132: hardcode_into_libs=yes
12133: if test yes = "$with_gnu_ld"; then
12134: sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12135: else
12136: sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12137: case $host_os in
12138: sco3.2v5*)
12139: sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12140: ;;
12141: esac
12142: fi
12143: sys_lib_dlsearch_path_spec='/usr/lib'
12144: ;;
12145:
12146: tpf*)
12147: # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12148: version_type=linux # correct to gnu/linux during the next big refactor
12149: need_lib_prefix=no
12150: need_version=no
12151: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12152: shlibpath_var=LD_LIBRARY_PATH
12153: shlibpath_overrides_runpath=no
12154: hardcode_into_libs=yes
12155: ;;
12156:
12157: uts4*)
12158: version_type=linux # correct to gnu/linux during the next big refactor
12159: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12160: soname_spec='$libname$release$shared_ext$major'
12161: shlibpath_var=LD_LIBRARY_PATH
12162: ;;
12163:
12164: *)
12165: dynamic_linker=no
12166: ;;
12167: esac
1.7 ! ohara 12168: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
! 12169: printf "%s\n" "$dynamic_linker" >&6; }
1.5 ohara 12170: test no = "$dynamic_linker" && can_build_shared=no
12171:
12172: variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12173: if test yes = "$GCC"; then
12174: variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12175: fi
12176:
12177: if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
12178: sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
12179: fi
12180:
12181: if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
12182: sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
12183: fi
12184:
12185: # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
12186: configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
12187:
12188: # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
12189: func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
12190:
12191: # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
12192: configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
12193:
12194:
12195:
12196:
12197:
12198:
12199:
12200:
12201:
12202:
12203:
12204:
12205:
12206:
12207:
12208:
12209:
12210:
12211:
12212:
12213:
12214:
12215:
12216:
12217:
12218:
12219:
12220:
12221:
12222:
12223:
12224:
12225:
12226:
12227:
12228:
12229:
12230:
12231:
12232:
12233:
12234:
12235:
12236:
12237:
12238:
12239:
12240:
12241:
12242:
12243:
12244:
12245:
12246:
12247:
12248:
12249:
12250:
12251:
12252:
12253:
12254:
12255:
12256:
12257:
12258:
12259:
12260:
12261:
12262:
12263:
12264:
12265:
12266:
12267:
12268:
12269:
12270:
12271:
12272:
12273:
12274:
12275:
12276:
12277:
12278:
12279:
12280:
12281:
12282:
12283:
12284:
12285:
12286:
12287:
12288:
12289:
1.7 ! ohara 12290: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
! 12291: printf %s "checking how to hardcode library paths into programs... " >&6; }
1.5 ohara 12292: hardcode_action=
12293: if test -n "$hardcode_libdir_flag_spec" ||
12294: test -n "$runpath_var" ||
12295: test yes = "$hardcode_automatic"; then
12296:
12297: # We can hardcode non-existent directories.
12298: if test no != "$hardcode_direct" &&
12299: # If the only mechanism to avoid hardcoding is shlibpath_var, we
12300: # have to relink, otherwise we might link with an installed library
12301: # when we should be linking with a yet-to-be-installed one
12302: ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12303: test no != "$hardcode_minus_L"; then
12304: # Linking always hardcodes the temporary library directory.
12305: hardcode_action=relink
12306: else
12307: # We can link without hardcoding, and we can hardcode nonexisting dirs.
12308: hardcode_action=immediate
12309: fi
12310: else
12311: # We cannot hardcode anything, or else we can only hardcode existing
12312: # directories.
12313: hardcode_action=unsupported
12314: fi
1.7 ! ohara 12315: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
! 12316: printf "%s\n" "$hardcode_action" >&6; }
1.5 ohara 12317:
12318: if test relink = "$hardcode_action" ||
12319: test yes = "$inherit_rpath"; then
12320: # Fast installation is not supported
12321: enable_fast_install=no
12322: elif test yes = "$shlibpath_overrides_runpath" ||
12323: test no = "$enable_shared"; then
12324: # Fast installation is not necessary
12325: enable_fast_install=needless
12326: fi
12327:
12328:
12329:
12330:
12331:
12332:
12333: if test yes != "$enable_dlopen"; then
12334: enable_dlopen=unknown
12335: enable_dlopen_self=unknown
12336: enable_dlopen_self_static=unknown
12337: else
12338: lt_cv_dlopen=no
12339: lt_cv_dlopen_libs=
12340:
12341: case $host_os in
12342: beos*)
12343: lt_cv_dlopen=load_add_on
12344: lt_cv_dlopen_libs=
12345: lt_cv_dlopen_self=yes
12346: ;;
12347:
12348: mingw* | pw32* | cegcc*)
12349: lt_cv_dlopen=LoadLibrary
12350: lt_cv_dlopen_libs=
12351: ;;
12352:
12353: cygwin*)
12354: lt_cv_dlopen=dlopen
12355: lt_cv_dlopen_libs=
12356: ;;
12357:
12358: darwin*)
12359: # if libdl is installed we need to link against it
1.7 ! ohara 12360: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
! 12361: printf %s "checking for dlopen in -ldl... " >&6; }
! 12362: if test ${ac_cv_lib_dl_dlopen+y}
! 12363: then :
! 12364: printf %s "(cached) " >&6
! 12365: else $as_nop
1.5 ohara 12366: ac_check_lib_save_LIBS=$LIBS
12367: LIBS="-ldl $LIBS"
12368: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12369: /* end confdefs.h. */
12370:
12371: /* Override any GCC internal prototype to avoid an error.
12372: Use char because int might match the return type of a GCC
12373: builtin and then its argument prototype would still apply. */
12374: char dlopen ();
12375: int
1.7 ! ohara 12376: main (void)
1.5 ohara 12377: {
12378: return dlopen ();
12379: ;
12380: return 0;
12381: }
12382: _ACEOF
1.7 ! ohara 12383: if ac_fn_c_try_link "$LINENO"
! 12384: then :
1.5 ohara 12385: ac_cv_lib_dl_dlopen=yes
1.7 ! ohara 12386: else $as_nop
1.5 ohara 12387: ac_cv_lib_dl_dlopen=no
12388: fi
1.7 ! ohara 12389: rm -f core conftest.err conftest.$ac_objext conftest.beam \
1.5 ohara 12390: conftest$ac_exeext conftest.$ac_ext
12391: LIBS=$ac_check_lib_save_LIBS
12392: fi
1.7 ! ohara 12393: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
! 12394: printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
! 12395: if test "x$ac_cv_lib_dl_dlopen" = xyes
! 12396: then :
1.5 ohara 12397: lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
1.7 ! ohara 12398: else $as_nop
1.5 ohara 12399:
12400: lt_cv_dlopen=dyld
12401: lt_cv_dlopen_libs=
12402: lt_cv_dlopen_self=yes
12403:
12404: fi
12405:
12406: ;;
12407:
12408: tpf*)
12409: # Don't try to run any link tests for TPF. We know it's impossible
12410: # because TPF is a cross-compiler, and we know how we open DSOs.
12411: lt_cv_dlopen=dlopen
12412: lt_cv_dlopen_libs=
12413: lt_cv_dlopen_self=no
12414: ;;
12415:
12416: *)
12417: ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
1.7 ! ohara 12418: if test "x$ac_cv_func_shl_load" = xyes
! 12419: then :
1.5 ohara 12420: lt_cv_dlopen=shl_load
1.7 ! ohara 12421: else $as_nop
! 12422: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
! 12423: printf %s "checking for shl_load in -ldld... " >&6; }
! 12424: if test ${ac_cv_lib_dld_shl_load+y}
! 12425: then :
! 12426: printf %s "(cached) " >&6
! 12427: else $as_nop
1.5 ohara 12428: ac_check_lib_save_LIBS=$LIBS
12429: LIBS="-ldld $LIBS"
12430: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12431: /* end confdefs.h. */
12432:
12433: /* Override any GCC internal prototype to avoid an error.
12434: Use char because int might match the return type of a GCC
12435: builtin and then its argument prototype would still apply. */
12436: char shl_load ();
12437: int
1.7 ! ohara 12438: main (void)
1.5 ohara 12439: {
12440: return shl_load ();
12441: ;
12442: return 0;
12443: }
12444: _ACEOF
1.7 ! ohara 12445: if ac_fn_c_try_link "$LINENO"
! 12446: then :
1.5 ohara 12447: ac_cv_lib_dld_shl_load=yes
1.7 ! ohara 12448: else $as_nop
1.5 ohara 12449: ac_cv_lib_dld_shl_load=no
12450: fi
1.7 ! ohara 12451: rm -f core conftest.err conftest.$ac_objext conftest.beam \
1.5 ohara 12452: conftest$ac_exeext conftest.$ac_ext
12453: LIBS=$ac_check_lib_save_LIBS
12454: fi
1.7 ! ohara 12455: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
! 12456: printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
! 12457: if test "x$ac_cv_lib_dld_shl_load" = xyes
! 12458: then :
1.5 ohara 12459: lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
1.7 ! ohara 12460: else $as_nop
1.5 ohara 12461: ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
1.7 ! ohara 12462: if test "x$ac_cv_func_dlopen" = xyes
! 12463: then :
1.5 ohara 12464: lt_cv_dlopen=dlopen
1.7 ! ohara 12465: else $as_nop
! 12466: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
! 12467: printf %s "checking for dlopen in -ldl... " >&6; }
! 12468: if test ${ac_cv_lib_dl_dlopen+y}
! 12469: then :
! 12470: printf %s "(cached) " >&6
! 12471: else $as_nop
1.5 ohara 12472: ac_check_lib_save_LIBS=$LIBS
12473: LIBS="-ldl $LIBS"
12474: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12475: /* end confdefs.h. */
12476:
12477: /* Override any GCC internal prototype to avoid an error.
12478: Use char because int might match the return type of a GCC
12479: builtin and then its argument prototype would still apply. */
12480: char dlopen ();
12481: int
1.7 ! ohara 12482: main (void)
1.5 ohara 12483: {
12484: return dlopen ();
12485: ;
12486: return 0;
12487: }
12488: _ACEOF
1.7 ! ohara 12489: if ac_fn_c_try_link "$LINENO"
! 12490: then :
1.5 ohara 12491: ac_cv_lib_dl_dlopen=yes
1.7 ! ohara 12492: else $as_nop
1.5 ohara 12493: ac_cv_lib_dl_dlopen=no
12494: fi
1.7 ! ohara 12495: rm -f core conftest.err conftest.$ac_objext conftest.beam \
1.5 ohara 12496: conftest$ac_exeext conftest.$ac_ext
12497: LIBS=$ac_check_lib_save_LIBS
12498: fi
1.7 ! ohara 12499: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
! 12500: printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
! 12501: if test "x$ac_cv_lib_dl_dlopen" = xyes
! 12502: then :
1.5 ohara 12503: lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
1.7 ! ohara 12504: else $as_nop
! 12505: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
! 12506: printf %s "checking for dlopen in -lsvld... " >&6; }
! 12507: if test ${ac_cv_lib_svld_dlopen+y}
! 12508: then :
! 12509: printf %s "(cached) " >&6
! 12510: else $as_nop
1.5 ohara 12511: ac_check_lib_save_LIBS=$LIBS
12512: LIBS="-lsvld $LIBS"
12513: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12514: /* end confdefs.h. */
12515:
12516: /* Override any GCC internal prototype to avoid an error.
12517: Use char because int might match the return type of a GCC
12518: builtin and then its argument prototype would still apply. */
12519: char dlopen ();
12520: int
1.7 ! ohara 12521: main (void)
1.5 ohara 12522: {
12523: return dlopen ();
12524: ;
12525: return 0;
12526: }
12527: _ACEOF
1.7 ! ohara 12528: if ac_fn_c_try_link "$LINENO"
! 12529: then :
1.5 ohara 12530: ac_cv_lib_svld_dlopen=yes
1.7 ! ohara 12531: else $as_nop
1.5 ohara 12532: ac_cv_lib_svld_dlopen=no
12533: fi
1.7 ! ohara 12534: rm -f core conftest.err conftest.$ac_objext conftest.beam \
1.5 ohara 12535: conftest$ac_exeext conftest.$ac_ext
12536: LIBS=$ac_check_lib_save_LIBS
12537: fi
1.7 ! ohara 12538: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
! 12539: printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
! 12540: if test "x$ac_cv_lib_svld_dlopen" = xyes
! 12541: then :
1.5 ohara 12542: lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
1.7 ! ohara 12543: else $as_nop
! 12544: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
! 12545: printf %s "checking for dld_link in -ldld... " >&6; }
! 12546: if test ${ac_cv_lib_dld_dld_link+y}
! 12547: then :
! 12548: printf %s "(cached) " >&6
! 12549: else $as_nop
1.5 ohara 12550: ac_check_lib_save_LIBS=$LIBS
12551: LIBS="-ldld $LIBS"
12552: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12553: /* end confdefs.h. */
12554:
12555: /* Override any GCC internal prototype to avoid an error.
12556: Use char because int might match the return type of a GCC
12557: builtin and then its argument prototype would still apply. */
12558: char dld_link ();
12559: int
1.7 ! ohara 12560: main (void)
1.5 ohara 12561: {
12562: return dld_link ();
12563: ;
12564: return 0;
12565: }
12566: _ACEOF
1.7 ! ohara 12567: if ac_fn_c_try_link "$LINENO"
! 12568: then :
1.5 ohara 12569: ac_cv_lib_dld_dld_link=yes
1.7 ! ohara 12570: else $as_nop
1.5 ohara 12571: ac_cv_lib_dld_dld_link=no
12572: fi
1.7 ! ohara 12573: rm -f core conftest.err conftest.$ac_objext conftest.beam \
1.5 ohara 12574: conftest$ac_exeext conftest.$ac_ext
12575: LIBS=$ac_check_lib_save_LIBS
12576: fi
1.7 ! ohara 12577: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
! 12578: printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
! 12579: if test "x$ac_cv_lib_dld_dld_link" = xyes
! 12580: then :
1.5 ohara 12581: lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12582: fi
12583:
12584:
12585: fi
12586:
12587:
12588: fi
12589:
12590:
12591: fi
12592:
12593:
12594: fi
12595:
12596:
12597: fi
12598:
12599: ;;
12600: esac
12601:
12602: if test no = "$lt_cv_dlopen"; then
12603: enable_dlopen=no
12604: else
12605: enable_dlopen=yes
12606: fi
12607:
12608: case $lt_cv_dlopen in
12609: dlopen)
12610: save_CPPFLAGS=$CPPFLAGS
12611: test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12612:
12613: save_LDFLAGS=$LDFLAGS
12614: wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12615:
12616: save_LIBS=$LIBS
12617: LIBS="$lt_cv_dlopen_libs $LIBS"
12618:
1.7 ! ohara 12619: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
! 12620: printf %s "checking whether a program can dlopen itself... " >&6; }
! 12621: if test ${lt_cv_dlopen_self+y}
! 12622: then :
! 12623: printf %s "(cached) " >&6
! 12624: else $as_nop
1.5 ohara 12625: if test yes = "$cross_compiling"; then :
12626: lt_cv_dlopen_self=cross
12627: else
12628: lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12629: lt_status=$lt_dlunknown
12630: cat > conftest.$ac_ext <<_LT_EOF
12631: #line $LINENO "configure"
12632: #include "confdefs.h"
12633:
12634: #if HAVE_DLFCN_H
12635: #include <dlfcn.h>
12636: #endif
12637:
12638: #include <stdio.h>
12639:
12640: #ifdef RTLD_GLOBAL
12641: # define LT_DLGLOBAL RTLD_GLOBAL
12642: #else
12643: # ifdef DL_GLOBAL
12644: # define LT_DLGLOBAL DL_GLOBAL
12645: # else
12646: # define LT_DLGLOBAL 0
12647: # endif
12648: #endif
12649:
12650: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12651: find out it does not work in some platform. */
12652: #ifndef LT_DLLAZY_OR_NOW
12653: # ifdef RTLD_LAZY
12654: # define LT_DLLAZY_OR_NOW RTLD_LAZY
12655: # else
12656: # ifdef DL_LAZY
12657: # define LT_DLLAZY_OR_NOW DL_LAZY
12658: # else
12659: # ifdef RTLD_NOW
12660: # define LT_DLLAZY_OR_NOW RTLD_NOW
12661: # else
12662: # ifdef DL_NOW
12663: # define LT_DLLAZY_OR_NOW DL_NOW
12664: # else
12665: # define LT_DLLAZY_OR_NOW 0
12666: # endif
12667: # endif
12668: # endif
12669: # endif
12670: #endif
12671:
12672: /* When -fvisibility=hidden is used, assume the code has been annotated
12673: correspondingly for the symbols needed. */
12674: #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12675: int fnord () __attribute__((visibility("default")));
12676: #endif
12677:
12678: int fnord () { return 42; }
12679: int main ()
12680: {
12681: void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12682: int status = $lt_dlunknown;
12683:
12684: if (self)
12685: {
12686: if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12687: else
12688: {
12689: if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12690: else puts (dlerror ());
12691: }
12692: /* dlclose (self); */
12693: }
12694: else
12695: puts (dlerror ());
12696:
12697: return status;
12698: }
12699: _LT_EOF
12700: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12701: (eval $ac_link) 2>&5
12702: ac_status=$?
1.7 ! ohara 12703: printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1.5 ohara 12704: test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12705: (./conftest; exit; ) >&5 2>/dev/null
12706: lt_status=$?
12707: case x$lt_status in
12708: x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12709: x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12710: x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12711: esac
12712: else :
12713: # compilation failed
12714: lt_cv_dlopen_self=no
12715: fi
12716: fi
12717: rm -fr conftest*
12718:
12719:
12720: fi
1.7 ! ohara 12721: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
! 12722: printf "%s\n" "$lt_cv_dlopen_self" >&6; }
1.5 ohara 12723:
12724: if test yes = "$lt_cv_dlopen_self"; then
12725: wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
1.7 ! ohara 12726: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
! 12727: printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
! 12728: if test ${lt_cv_dlopen_self_static+y}
! 12729: then :
! 12730: printf %s "(cached) " >&6
! 12731: else $as_nop
1.5 ohara 12732: if test yes = "$cross_compiling"; then :
12733: lt_cv_dlopen_self_static=cross
12734: else
12735: lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12736: lt_status=$lt_dlunknown
12737: cat > conftest.$ac_ext <<_LT_EOF
12738: #line $LINENO "configure"
12739: #include "confdefs.h"
12740:
12741: #if HAVE_DLFCN_H
12742: #include <dlfcn.h>
12743: #endif
12744:
12745: #include <stdio.h>
12746:
12747: #ifdef RTLD_GLOBAL
12748: # define LT_DLGLOBAL RTLD_GLOBAL
12749: #else
12750: # ifdef DL_GLOBAL
12751: # define LT_DLGLOBAL DL_GLOBAL
12752: # else
12753: # define LT_DLGLOBAL 0
12754: # endif
12755: #endif
12756:
12757: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12758: find out it does not work in some platform. */
12759: #ifndef LT_DLLAZY_OR_NOW
12760: # ifdef RTLD_LAZY
12761: # define LT_DLLAZY_OR_NOW RTLD_LAZY
12762: # else
12763: # ifdef DL_LAZY
12764: # define LT_DLLAZY_OR_NOW DL_LAZY
12765: # else
12766: # ifdef RTLD_NOW
12767: # define LT_DLLAZY_OR_NOW RTLD_NOW
12768: # else
12769: # ifdef DL_NOW
12770: # define LT_DLLAZY_OR_NOW DL_NOW
12771: # else
12772: # define LT_DLLAZY_OR_NOW 0
12773: # endif
12774: # endif
12775: # endif
12776: # endif
12777: #endif
12778:
12779: /* When -fvisibility=hidden is used, assume the code has been annotated
12780: correspondingly for the symbols needed. */
12781: #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12782: int fnord () __attribute__((visibility("default")));
12783: #endif
12784:
12785: int fnord () { return 42; }
12786: int main ()
12787: {
12788: void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12789: int status = $lt_dlunknown;
12790:
12791: if (self)
12792: {
12793: if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12794: else
12795: {
12796: if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12797: else puts (dlerror ());
12798: }
12799: /* dlclose (self); */
12800: }
12801: else
12802: puts (dlerror ());
12803:
12804: return status;
12805: }
12806: _LT_EOF
12807: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12808: (eval $ac_link) 2>&5
12809: ac_status=$?
1.7 ! ohara 12810: printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1.5 ohara 12811: test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12812: (./conftest; exit; ) >&5 2>/dev/null
12813: lt_status=$?
12814: case x$lt_status in
12815: x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12816: x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12817: x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12818: esac
12819: else :
12820: # compilation failed
12821: lt_cv_dlopen_self_static=no
12822: fi
12823: fi
12824: rm -fr conftest*
12825:
12826:
12827: fi
1.7 ! ohara 12828: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
! 12829: printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
1.5 ohara 12830: fi
12831:
12832: CPPFLAGS=$save_CPPFLAGS
12833: LDFLAGS=$save_LDFLAGS
12834: LIBS=$save_LIBS
12835: ;;
12836: esac
12837:
12838: case $lt_cv_dlopen_self in
12839: yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12840: *) enable_dlopen_self=unknown ;;
12841: esac
12842:
12843: case $lt_cv_dlopen_self_static in
12844: yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12845: *) enable_dlopen_self_static=unknown ;;
12846: esac
12847: fi
12848:
12849:
12850:
12851:
12852:
12853:
12854:
12855:
12856:
12857:
12858:
12859:
12860:
12861:
12862:
12863:
12864:
12865: striplib=
12866: old_striplib=
1.7 ! ohara 12867: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
! 12868: printf %s "checking whether stripping libraries is possible... " >&6; }
! 12869: if test -z "$STRIP"; then
! 12870: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 12871: printf "%s\n" "no" >&6; }
! 12872: else
! 12873: if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
! 12874: old_striplib="$STRIP --strip-debug"
! 12875: striplib="$STRIP --strip-unneeded"
! 12876: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
! 12877: printf "%s\n" "yes" >&6; }
! 12878: else
! 12879: case $host_os in
! 12880: darwin*)
! 12881: # FIXME - insert some real tests, host_os isn't really good enough
1.5 ohara 12882: striplib="$STRIP -x"
12883: old_striplib="$STRIP -S"
1.7 ! ohara 12884: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
! 12885: printf "%s\n" "yes" >&6; }
! 12886: ;;
! 12887: freebsd*)
! 12888: if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
! 12889: old_striplib="$STRIP --strip-debug"
! 12890: striplib="$STRIP --strip-unneeded"
! 12891: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
! 12892: printf "%s\n" "yes" >&6; }
! 12893: else
! 12894: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 12895: printf "%s\n" "no" >&6; }
! 12896: fi
! 12897: ;;
! 12898: *)
! 12899: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 12900: printf "%s\n" "no" >&6; }
! 12901: ;;
! 12902: esac
! 12903: fi
1.5 ohara 12904: fi
12905:
12906:
12907:
12908:
12909:
12910:
12911:
12912:
12913:
12914:
12915:
12916:
12917: # Report what library types will actually be built
1.7 ! ohara 12918: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
! 12919: printf %s "checking if libtool supports shared libraries... " >&6; }
! 12920: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
! 12921: printf "%s\n" "$can_build_shared" >&6; }
1.5 ohara 12922:
1.7 ! ohara 12923: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
! 12924: printf %s "checking whether to build shared libraries... " >&6; }
1.5 ohara 12925: test no = "$can_build_shared" && enable_shared=no
12926:
12927: # On AIX, shared libraries and static libraries use the same namespace, and
12928: # are all built from PIC.
12929: case $host_os in
12930: aix3*)
12931: test yes = "$enable_shared" && enable_static=no
12932: if test -n "$RANLIB"; then
12933: archive_cmds="$archive_cmds~\$RANLIB \$lib"
12934: postinstall_cmds='$RANLIB $lib'
12935: fi
12936: ;;
12937:
12938: aix[4-9]*)
12939: if test ia64 != "$host_cpu"; then
12940: case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12941: yes,aix,yes) ;; # shared object as lib.so file only
12942: yes,svr4,*) ;; # shared object as lib.so archive member only
12943: yes,*) enable_static=no ;; # shared object in lib.a archive as well
12944: esac
12945: fi
12946: ;;
12947: esac
1.7 ! ohara 12948: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
! 12949: printf "%s\n" "$enable_shared" >&6; }
1.5 ohara 12950:
1.7 ! ohara 12951: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
! 12952: printf %s "checking whether to build static libraries... " >&6; }
1.5 ohara 12953: # Make sure either enable_shared or enable_static is yes.
12954: test yes = "$enable_shared" || enable_static=yes
1.7 ! ohara 12955: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
! 12956: printf "%s\n" "$enable_static" >&6; }
1.5 ohara 12957:
12958:
12959:
12960:
12961: fi
12962: ac_ext=c
12963: ac_cpp='$CPP $CPPFLAGS'
12964: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12965: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12966: ac_compiler_gnu=$ac_cv_c_compiler_gnu
12967:
12968: CC=$lt_save_CC
12969:
12970:
12971:
12972:
12973:
12974:
12975:
12976:
12977:
12978:
12979:
12980:
12981:
12982:
12983:
12984: ac_config_commands="$ac_config_commands libtool"
12985:
12986:
12987:
12988:
12989: # Only expand once:
12990:
12991:
12992:
12993: ac_ext=c
12994: ac_cpp='$CPP $CPPFLAGS'
12995: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12996: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12997: ac_compiler_gnu=$ac_cv_c_compiler_gnu
12998: if test -n "$ac_tool_prefix"; then
12999: # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
13000: set dummy ${ac_tool_prefix}gcc; ac_word=$2
1.7 ! ohara 13001: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 13002: printf %s "checking for $ac_word... " >&6; }
! 13003: if test ${ac_cv_prog_CC+y}
! 13004: then :
! 13005: printf %s "(cached) " >&6
! 13006: else $as_nop
1.5 ohara 13007: if test -n "$CC"; then
13008: ac_cv_prog_CC="$CC" # Let the user override the test.
13009: else
13010: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13011: for as_dir in $PATH
13012: do
13013: IFS=$as_save_IFS
1.7 ! ohara 13014: case $as_dir in #(((
! 13015: '') as_dir=./ ;;
! 13016: */) ;;
! 13017: *) as_dir=$as_dir/ ;;
! 13018: esac
1.5 ohara 13019: for ac_exec_ext in '' $ac_executable_extensions; do
1.7 ! ohara 13020: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.5 ohara 13021: ac_cv_prog_CC="${ac_tool_prefix}gcc"
1.7 ! ohara 13022: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.5 ohara 13023: break 2
13024: fi
13025: done
13026: done
13027: IFS=$as_save_IFS
13028:
13029: fi
13030: fi
13031: CC=$ac_cv_prog_CC
13032: if test -n "$CC"; then
1.7 ! ohara 13033: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
! 13034: printf "%s\n" "$CC" >&6; }
1.5 ohara 13035: else
1.7 ! ohara 13036: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 13037: printf "%s\n" "no" >&6; }
1.5 ohara 13038: fi
13039:
13040:
13041: fi
13042: if test -z "$ac_cv_prog_CC"; then
13043: ac_ct_CC=$CC
13044: # Extract the first word of "gcc", so it can be a program name with args.
13045: set dummy gcc; ac_word=$2
1.7 ! ohara 13046: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 13047: printf %s "checking for $ac_word... " >&6; }
! 13048: if test ${ac_cv_prog_ac_ct_CC+y}
! 13049: then :
! 13050: printf %s "(cached) " >&6
! 13051: else $as_nop
1.5 ohara 13052: if test -n "$ac_ct_CC"; then
13053: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
13054: else
13055: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13056: for as_dir in $PATH
13057: do
13058: IFS=$as_save_IFS
1.7 ! ohara 13059: case $as_dir in #(((
! 13060: '') as_dir=./ ;;
! 13061: */) ;;
! 13062: *) as_dir=$as_dir/ ;;
! 13063: esac
1.5 ohara 13064: for ac_exec_ext in '' $ac_executable_extensions; do
1.7 ! ohara 13065: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.5 ohara 13066: ac_cv_prog_ac_ct_CC="gcc"
1.7 ! ohara 13067: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.5 ohara 13068: break 2
13069: fi
13070: done
13071: done
13072: IFS=$as_save_IFS
13073:
13074: fi
13075: fi
13076: ac_ct_CC=$ac_cv_prog_ac_ct_CC
13077: if test -n "$ac_ct_CC"; then
1.7 ! ohara 13078: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
! 13079: printf "%s\n" "$ac_ct_CC" >&6; }
1.5 ohara 13080: else
1.7 ! ohara 13081: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 13082: printf "%s\n" "no" >&6; }
1.5 ohara 13083: fi
13084:
13085: if test "x$ac_ct_CC" = x; then
13086: CC=""
13087: else
13088: case $cross_compiling:$ac_tool_warned in
13089: yes:)
1.7 ! ohara 13090: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
! 13091: printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
1.5 ohara 13092: ac_tool_warned=yes ;;
13093: esac
13094: CC=$ac_ct_CC
13095: fi
13096: else
13097: CC="$ac_cv_prog_CC"
13098: fi
13099:
13100: if test -z "$CC"; then
13101: if test -n "$ac_tool_prefix"; then
13102: # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
13103: set dummy ${ac_tool_prefix}cc; ac_word=$2
1.7 ! ohara 13104: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 13105: printf %s "checking for $ac_word... " >&6; }
! 13106: if test ${ac_cv_prog_CC+y}
! 13107: then :
! 13108: printf %s "(cached) " >&6
! 13109: else $as_nop
1.5 ohara 13110: if test -n "$CC"; then
13111: ac_cv_prog_CC="$CC" # Let the user override the test.
13112: else
13113: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13114: for as_dir in $PATH
13115: do
13116: IFS=$as_save_IFS
1.7 ! ohara 13117: case $as_dir in #(((
! 13118: '') as_dir=./ ;;
! 13119: */) ;;
! 13120: *) as_dir=$as_dir/ ;;
! 13121: esac
1.5 ohara 13122: for ac_exec_ext in '' $ac_executable_extensions; do
1.7 ! ohara 13123: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.5 ohara 13124: ac_cv_prog_CC="${ac_tool_prefix}cc"
1.7 ! ohara 13125: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.5 ohara 13126: break 2
13127: fi
13128: done
13129: done
13130: IFS=$as_save_IFS
13131:
13132: fi
13133: fi
13134: CC=$ac_cv_prog_CC
13135: if test -n "$CC"; then
1.7 ! ohara 13136: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
! 13137: printf "%s\n" "$CC" >&6; }
1.5 ohara 13138: else
1.7 ! ohara 13139: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 13140: printf "%s\n" "no" >&6; }
1.5 ohara 13141: fi
13142:
13143:
13144: fi
13145: fi
13146: if test -z "$CC"; then
13147: # Extract the first word of "cc", so it can be a program name with args.
13148: set dummy cc; ac_word=$2
1.7 ! ohara 13149: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 13150: printf %s "checking for $ac_word... " >&6; }
! 13151: if test ${ac_cv_prog_CC+y}
! 13152: then :
! 13153: printf %s "(cached) " >&6
! 13154: else $as_nop
1.5 ohara 13155: if test -n "$CC"; then
13156: ac_cv_prog_CC="$CC" # Let the user override the test.
13157: else
13158: ac_prog_rejected=no
13159: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13160: for as_dir in $PATH
13161: do
13162: IFS=$as_save_IFS
1.7 ! ohara 13163: case $as_dir in #(((
! 13164: '') as_dir=./ ;;
! 13165: */) ;;
! 13166: *) as_dir=$as_dir/ ;;
! 13167: esac
1.5 ohara 13168: for ac_exec_ext in '' $ac_executable_extensions; do
1.7 ! ohara 13169: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
! 13170: if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1.5 ohara 13171: ac_prog_rejected=yes
13172: continue
13173: fi
13174: ac_cv_prog_CC="cc"
1.7 ! ohara 13175: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.5 ohara 13176: break 2
13177: fi
13178: done
13179: done
13180: IFS=$as_save_IFS
13181:
13182: if test $ac_prog_rejected = yes; then
13183: # We found a bogon in the path, so make sure we never use it.
13184: set dummy $ac_cv_prog_CC
13185: shift
13186: if test $# != 0; then
13187: # We chose a different compiler from the bogus one.
13188: # However, it has the same basename, so the bogon will be chosen
13189: # first if we set CC to just the basename; use the full file name.
13190: shift
1.7 ! ohara 13191: ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
1.5 ohara 13192: fi
13193: fi
13194: fi
13195: fi
13196: CC=$ac_cv_prog_CC
13197: if test -n "$CC"; then
1.7 ! ohara 13198: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
! 13199: printf "%s\n" "$CC" >&6; }
1.5 ohara 13200: else
1.7 ! ohara 13201: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 13202: printf "%s\n" "no" >&6; }
1.5 ohara 13203: fi
13204:
13205:
13206: fi
13207: if test -z "$CC"; then
13208: if test -n "$ac_tool_prefix"; then
13209: for ac_prog in cl.exe
13210: do
13211: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13212: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1.7 ! ohara 13213: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 13214: printf %s "checking for $ac_word... " >&6; }
! 13215: if test ${ac_cv_prog_CC+y}
! 13216: then :
! 13217: printf %s "(cached) " >&6
! 13218: else $as_nop
1.5 ohara 13219: if test -n "$CC"; then
13220: ac_cv_prog_CC="$CC" # Let the user override the test.
13221: else
13222: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13223: for as_dir in $PATH
13224: do
13225: IFS=$as_save_IFS
1.7 ! ohara 13226: case $as_dir in #(((
! 13227: '') as_dir=./ ;;
! 13228: */) ;;
! 13229: *) as_dir=$as_dir/ ;;
! 13230: esac
1.5 ohara 13231: for ac_exec_ext in '' $ac_executable_extensions; do
1.7 ! ohara 13232: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.5 ohara 13233: ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1.7 ! ohara 13234: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.5 ohara 13235: break 2
13236: fi
13237: done
13238: done
13239: IFS=$as_save_IFS
13240:
13241: fi
13242: fi
13243: CC=$ac_cv_prog_CC
13244: if test -n "$CC"; then
1.7 ! ohara 13245: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
! 13246: printf "%s\n" "$CC" >&6; }
1.5 ohara 13247: else
1.7 ! ohara 13248: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 13249: printf "%s\n" "no" >&6; }
1.5 ohara 13250: fi
13251:
13252:
13253: test -n "$CC" && break
13254: done
13255: fi
13256: if test -z "$CC"; then
13257: ac_ct_CC=$CC
13258: for ac_prog in cl.exe
13259: do
13260: # Extract the first word of "$ac_prog", so it can be a program name with args.
13261: set dummy $ac_prog; ac_word=$2
1.7 ! ohara 13262: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 13263: printf %s "checking for $ac_word... " >&6; }
! 13264: if test ${ac_cv_prog_ac_ct_CC+y}
! 13265: then :
! 13266: printf %s "(cached) " >&6
! 13267: else $as_nop
1.5 ohara 13268: if test -n "$ac_ct_CC"; then
13269: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
13270: else
13271: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13272: for as_dir in $PATH
13273: do
13274: IFS=$as_save_IFS
1.7 ! ohara 13275: case $as_dir in #(((
! 13276: '') as_dir=./ ;;
! 13277: */) ;;
! 13278: *) as_dir=$as_dir/ ;;
! 13279: esac
1.5 ohara 13280: for ac_exec_ext in '' $ac_executable_extensions; do
1.7 ! ohara 13281: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.5 ohara 13282: ac_cv_prog_ac_ct_CC="$ac_prog"
1.7 ! ohara 13283: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.5 ohara 13284: break 2
13285: fi
13286: done
13287: done
13288: IFS=$as_save_IFS
13289:
13290: fi
13291: fi
13292: ac_ct_CC=$ac_cv_prog_ac_ct_CC
13293: if test -n "$ac_ct_CC"; then
1.7 ! ohara 13294: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
! 13295: printf "%s\n" "$ac_ct_CC" >&6; }
1.5 ohara 13296: else
1.7 ! ohara 13297: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 13298: printf "%s\n" "no" >&6; }
1.5 ohara 13299: fi
13300:
13301:
13302: test -n "$ac_ct_CC" && break
13303: done
13304:
13305: if test "x$ac_ct_CC" = x; then
13306: CC=""
13307: else
13308: case $cross_compiling:$ac_tool_warned in
13309: yes:)
1.7 ! ohara 13310: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
! 13311: printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
1.5 ohara 13312: ac_tool_warned=yes ;;
13313: esac
13314: CC=$ac_ct_CC
13315: fi
13316: fi
13317:
13318: fi
1.7 ! ohara 13319: if test -z "$CC"; then
! 13320: if test -n "$ac_tool_prefix"; then
! 13321: # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
! 13322: set dummy ${ac_tool_prefix}clang; ac_word=$2
! 13323: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 13324: printf %s "checking for $ac_word... " >&6; }
! 13325: if test ${ac_cv_prog_CC+y}
! 13326: then :
! 13327: printf %s "(cached) " >&6
! 13328: else $as_nop
! 13329: if test -n "$CC"; then
! 13330: ac_cv_prog_CC="$CC" # Let the user override the test.
! 13331: else
! 13332: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
! 13333: for as_dir in $PATH
! 13334: do
! 13335: IFS=$as_save_IFS
! 13336: case $as_dir in #(((
! 13337: '') as_dir=./ ;;
! 13338: */) ;;
! 13339: *) as_dir=$as_dir/ ;;
! 13340: esac
! 13341: for ac_exec_ext in '' $ac_executable_extensions; do
! 13342: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
! 13343: ac_cv_prog_CC="${ac_tool_prefix}clang"
! 13344: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
! 13345: break 2
! 13346: fi
! 13347: done
! 13348: done
! 13349: IFS=$as_save_IFS
! 13350:
! 13351: fi
! 13352: fi
! 13353: CC=$ac_cv_prog_CC
! 13354: if test -n "$CC"; then
! 13355: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
! 13356: printf "%s\n" "$CC" >&6; }
! 13357: else
! 13358: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 13359: printf "%s\n" "no" >&6; }
! 13360: fi
! 13361:
! 13362:
! 13363: fi
! 13364: if test -z "$ac_cv_prog_CC"; then
! 13365: ac_ct_CC=$CC
! 13366: # Extract the first word of "clang", so it can be a program name with args.
! 13367: set dummy clang; ac_word=$2
! 13368: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 13369: printf %s "checking for $ac_word... " >&6; }
! 13370: if test ${ac_cv_prog_ac_ct_CC+y}
! 13371: then :
! 13372: printf %s "(cached) " >&6
! 13373: else $as_nop
! 13374: if test -n "$ac_ct_CC"; then
! 13375: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
! 13376: else
! 13377: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
! 13378: for as_dir in $PATH
! 13379: do
! 13380: IFS=$as_save_IFS
! 13381: case $as_dir in #(((
! 13382: '') as_dir=./ ;;
! 13383: */) ;;
! 13384: *) as_dir=$as_dir/ ;;
! 13385: esac
! 13386: for ac_exec_ext in '' $ac_executable_extensions; do
! 13387: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
! 13388: ac_cv_prog_ac_ct_CC="clang"
! 13389: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
! 13390: break 2
! 13391: fi
! 13392: done
! 13393: done
! 13394: IFS=$as_save_IFS
! 13395:
! 13396: fi
! 13397: fi
! 13398: ac_ct_CC=$ac_cv_prog_ac_ct_CC
! 13399: if test -n "$ac_ct_CC"; then
! 13400: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
! 13401: printf "%s\n" "$ac_ct_CC" >&6; }
! 13402: else
! 13403: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 13404: printf "%s\n" "no" >&6; }
! 13405: fi
! 13406:
! 13407: if test "x$ac_ct_CC" = x; then
! 13408: CC=""
! 13409: else
! 13410: case $cross_compiling:$ac_tool_warned in
! 13411: yes:)
! 13412: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
! 13413: printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
! 13414: ac_tool_warned=yes ;;
! 13415: esac
! 13416: CC=$ac_ct_CC
! 13417: fi
! 13418: else
! 13419: CC="$ac_cv_prog_CC"
! 13420: fi
! 13421:
! 13422: fi
1.5 ohara 13423:
13424:
1.7 ! ohara 13425: test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
! 13426: printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
1.5 ohara 13427: as_fn_error $? "no acceptable C compiler found in \$PATH
13428: See \`config.log' for more details" "$LINENO" 5; }
13429:
13430: # Provide some information about the compiler.
1.7 ! ohara 13431: printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
1.5 ohara 13432: set X $ac_compile
13433: ac_compiler=$2
1.7 ! ohara 13434: for ac_option in --version -v -V -qversion -version; do
1.5 ohara 13435: { { ac_try="$ac_compiler $ac_option >&5"
13436: case "(($ac_try" in
13437: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13438: *) ac_try_echo=$ac_try;;
13439: esac
13440: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1.7 ! ohara 13441: printf "%s\n" "$ac_try_echo"; } >&5
1.5 ohara 13442: (eval "$ac_compiler $ac_option >&5") 2>conftest.err
13443: ac_status=$?
13444: if test -s conftest.err; then
13445: sed '10a\
13446: ... rest of stderr output deleted ...
13447: 10q' conftest.err >conftest.er1
13448: cat conftest.er1 >&5
13449: fi
13450: rm -f conftest.er1 conftest.err
1.7 ! ohara 13451: printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1.5 ohara 13452: test $ac_status = 0; }
13453: done
13454:
1.7 ! ohara 13455: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
! 13456: printf %s "checking whether the compiler supports GNU C... " >&6; }
! 13457: if test ${ac_cv_c_compiler_gnu+y}
! 13458: then :
! 13459: printf %s "(cached) " >&6
! 13460: else $as_nop
1.5 ohara 13461: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13462: /* end confdefs.h. */
13463:
13464: int
1.7 ! ohara 13465: main (void)
1.5 ohara 13466: {
13467: #ifndef __GNUC__
13468: choke me
13469: #endif
13470:
13471: ;
13472: return 0;
13473: }
13474: _ACEOF
1.7 ! ohara 13475: if ac_fn_c_try_compile "$LINENO"
! 13476: then :
1.5 ohara 13477: ac_compiler_gnu=yes
1.7 ! ohara 13478: else $as_nop
1.5 ohara 13479: ac_compiler_gnu=no
13480: fi
1.7 ! ohara 13481: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1.5 ohara 13482: ac_cv_c_compiler_gnu=$ac_compiler_gnu
13483:
13484: fi
1.7 ! ohara 13485: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
! 13486: printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
! 13487: ac_compiler_gnu=$ac_cv_c_compiler_gnu
! 13488:
1.5 ohara 13489: if test $ac_compiler_gnu = yes; then
13490: GCC=yes
13491: else
13492: GCC=
13493: fi
1.7 ! ohara 13494: ac_test_CFLAGS=${CFLAGS+y}
1.5 ohara 13495: ac_save_CFLAGS=$CFLAGS
1.7 ! ohara 13496: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
! 13497: printf %s "checking whether $CC accepts -g... " >&6; }
! 13498: if test ${ac_cv_prog_cc_g+y}
! 13499: then :
! 13500: printf %s "(cached) " >&6
! 13501: else $as_nop
1.5 ohara 13502: ac_save_c_werror_flag=$ac_c_werror_flag
13503: ac_c_werror_flag=yes
13504: ac_cv_prog_cc_g=no
13505: CFLAGS="-g"
13506: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13507: /* end confdefs.h. */
13508:
13509: int
1.7 ! ohara 13510: main (void)
1.5 ohara 13511: {
13512:
13513: ;
13514: return 0;
13515: }
13516: _ACEOF
1.7 ! ohara 13517: if ac_fn_c_try_compile "$LINENO"
! 13518: then :
1.5 ohara 13519: ac_cv_prog_cc_g=yes
1.7 ! ohara 13520: else $as_nop
1.5 ohara 13521: CFLAGS=""
13522: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13523: /* end confdefs.h. */
13524:
13525: int
1.7 ! ohara 13526: main (void)
1.5 ohara 13527: {
13528:
13529: ;
13530: return 0;
13531: }
13532: _ACEOF
1.7 ! ohara 13533: if ac_fn_c_try_compile "$LINENO"
! 13534: then :
1.5 ohara 13535:
1.7 ! ohara 13536: else $as_nop
1.5 ohara 13537: ac_c_werror_flag=$ac_save_c_werror_flag
13538: CFLAGS="-g"
13539: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13540: /* end confdefs.h. */
13541:
13542: int
1.7 ! ohara 13543: main (void)
1.5 ohara 13544: {
13545:
13546: ;
13547: return 0;
13548: }
13549: _ACEOF
1.7 ! ohara 13550: if ac_fn_c_try_compile "$LINENO"
! 13551: then :
1.5 ohara 13552: ac_cv_prog_cc_g=yes
13553: fi
1.7 ! ohara 13554: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1.5 ohara 13555: fi
1.7 ! ohara 13556: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1.5 ohara 13557: fi
1.7 ! ohara 13558: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1.5 ohara 13559: ac_c_werror_flag=$ac_save_c_werror_flag
13560: fi
1.7 ! ohara 13561: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
! 13562: printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
! 13563: if test $ac_test_CFLAGS; then
1.5 ohara 13564: CFLAGS=$ac_save_CFLAGS
13565: elif test $ac_cv_prog_cc_g = yes; then
13566: if test "$GCC" = yes; then
13567: CFLAGS="-g -O2"
13568: else
13569: CFLAGS="-g"
13570: fi
13571: else
13572: if test "$GCC" = yes; then
13573: CFLAGS="-O2"
13574: else
13575: CFLAGS=
13576: fi
13577: fi
1.7 ! ohara 13578: ac_prog_cc_stdc=no
! 13579: if test x$ac_prog_cc_stdc = xno
! 13580: then :
! 13581: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
! 13582: printf %s "checking for $CC option to enable C11 features... " >&6; }
! 13583: if test ${ac_cv_prog_cc_c11+y}
! 13584: then :
! 13585: printf %s "(cached) " >&6
! 13586: else $as_nop
! 13587: ac_cv_prog_cc_c11=no
1.5 ohara 13588: ac_save_CC=$CC
13589: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13590: /* end confdefs.h. */
1.7 ! ohara 13591: $ac_c_conftest_c11_program
! 13592: _ACEOF
! 13593: for ac_arg in '' -std=gnu11
! 13594: do
! 13595: CC="$ac_save_CC $ac_arg"
! 13596: if ac_fn_c_try_compile "$LINENO"
! 13597: then :
! 13598: ac_cv_prog_cc_c11=$ac_arg
! 13599: fi
! 13600: rm -f core conftest.err conftest.$ac_objext conftest.beam
! 13601: test "x$ac_cv_prog_cc_c11" != "xno" && break
! 13602: done
! 13603: rm -f conftest.$ac_ext
! 13604: CC=$ac_save_CC
! 13605: fi
1.5 ohara 13606:
1.7 ! ohara 13607: if test "x$ac_cv_prog_cc_c11" = xno
! 13608: then :
! 13609: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
! 13610: printf "%s\n" "unsupported" >&6; }
! 13611: else $as_nop
! 13612: if test "x$ac_cv_prog_cc_c11" = x
! 13613: then :
! 13614: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
! 13615: printf "%s\n" "none needed" >&6; }
! 13616: else $as_nop
! 13617: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
! 13618: printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
! 13619: CC="$CC $ac_cv_prog_cc_c11"
! 13620: fi
! 13621: ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
! 13622: ac_prog_cc_stdc=c11
! 13623: fi
! 13624: fi
! 13625: if test x$ac_prog_cc_stdc = xno
! 13626: then :
! 13627: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
! 13628: printf %s "checking for $CC option to enable C99 features... " >&6; }
! 13629: if test ${ac_cv_prog_cc_c99+y}
! 13630: then :
! 13631: printf %s "(cached) " >&6
! 13632: else $as_nop
! 13633: ac_cv_prog_cc_c99=no
! 13634: ac_save_CC=$CC
! 13635: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
! 13636: /* end confdefs.h. */
! 13637: $ac_c_conftest_c99_program
! 13638: _ACEOF
! 13639: for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
! 13640: do
! 13641: CC="$ac_save_CC $ac_arg"
! 13642: if ac_fn_c_try_compile "$LINENO"
! 13643: then :
! 13644: ac_cv_prog_cc_c99=$ac_arg
! 13645: fi
! 13646: rm -f core conftest.err conftest.$ac_objext conftest.beam
! 13647: test "x$ac_cv_prog_cc_c99" != "xno" && break
! 13648: done
! 13649: rm -f conftest.$ac_ext
! 13650: CC=$ac_save_CC
! 13651: fi
1.5 ohara 13652:
1.7 ! ohara 13653: if test "x$ac_cv_prog_cc_c99" = xno
! 13654: then :
! 13655: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
! 13656: printf "%s\n" "unsupported" >&6; }
! 13657: else $as_nop
! 13658: if test "x$ac_cv_prog_cc_c99" = x
! 13659: then :
! 13660: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
! 13661: printf "%s\n" "none needed" >&6; }
! 13662: else $as_nop
! 13663: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
! 13664: printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
! 13665: CC="$CC $ac_cv_prog_cc_c99"
! 13666: fi
! 13667: ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
! 13668: ac_prog_cc_stdc=c99
! 13669: fi
! 13670: fi
! 13671: if test x$ac_prog_cc_stdc = xno
! 13672: then :
! 13673: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
! 13674: printf %s "checking for $CC option to enable C89 features... " >&6; }
! 13675: if test ${ac_cv_prog_cc_c89+y}
! 13676: then :
! 13677: printf %s "(cached) " >&6
! 13678: else $as_nop
! 13679: ac_cv_prog_cc_c89=no
! 13680: ac_save_CC=$CC
! 13681: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
! 13682: /* end confdefs.h. */
! 13683: $ac_c_conftest_c89_program
1.5 ohara 13684: _ACEOF
1.7 ! ohara 13685: for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1.5 ohara 13686: do
13687: CC="$ac_save_CC $ac_arg"
1.7 ! ohara 13688: if ac_fn_c_try_compile "$LINENO"
! 13689: then :
1.5 ohara 13690: ac_cv_prog_cc_c89=$ac_arg
13691: fi
1.7 ! ohara 13692: rm -f core conftest.err conftest.$ac_objext conftest.beam
1.5 ohara 13693: test "x$ac_cv_prog_cc_c89" != "xno" && break
13694: done
13695: rm -f conftest.$ac_ext
13696: CC=$ac_save_CC
1.7 ! ohara 13697: fi
1.5 ohara 13698:
1.7 ! ohara 13699: if test "x$ac_cv_prog_cc_c89" = xno
! 13700: then :
! 13701: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
! 13702: printf "%s\n" "unsupported" >&6; }
! 13703: else $as_nop
! 13704: if test "x$ac_cv_prog_cc_c89" = x
! 13705: then :
! 13706: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
! 13707: printf "%s\n" "none needed" >&6; }
! 13708: else $as_nop
! 13709: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
! 13710: printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
! 13711: CC="$CC $ac_cv_prog_cc_c89"
! 13712: fi
! 13713: ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
! 13714: ac_prog_cc_stdc=c89
1.5 ohara 13715: fi
13716: fi
13717:
13718: ac_ext=c
13719: ac_cpp='$CPP $CPPFLAGS'
13720: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13721: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13722: ac_compiler_gnu=$ac_cv_c_compiler_gnu
13723:
1.7 ! ohara 13724:
! 13725: ac_ext=c
1.5 ohara 13726: ac_cpp='$CPP $CPPFLAGS'
13727: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13728: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13729: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.7 ! ohara 13730: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
! 13731: printf %s "checking whether $CC understands -c and -o together... " >&6; }
! 13732: if test ${am_cv_prog_cc_c_o+y}
! 13733: then :
! 13734: printf %s "(cached) " >&6
! 13735: else $as_nop
1.5 ohara 13736: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13737: /* end confdefs.h. */
13738:
13739: int
1.7 ! ohara 13740: main (void)
1.5 ohara 13741: {
13742:
13743: ;
13744: return 0;
13745: }
13746: _ACEOF
13747: # Make sure it works both with $CC and with simple cc.
13748: # Following AC_PROG_CC_C_O, we do the test twice because some
13749: # compilers refuse to overwrite an existing .o file with -o,
13750: # though they will create one.
13751: am_cv_prog_cc_c_o=yes
13752: for am_i in 1 2; do
13753: if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
13754: ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
13755: ac_status=$?
13756: echo "$as_me:$LINENO: \$? = $ac_status" >&5
13757: (exit $ac_status); } \
13758: && test -f conftest2.$ac_objext; then
13759: : OK
13760: else
13761: am_cv_prog_cc_c_o=no
13762: break
13763: fi
13764: done
13765: rm -f core conftest*
13766: unset am_i
13767: fi
1.7 ! ohara 13768: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
! 13769: printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
1.5 ohara 13770: if test "$am_cv_prog_cc_c_o" != yes; then
13771: # Losing compiler, so override with the script.
13772: # FIXME: It is wrong to rewrite CC.
13773: # But if we don't then we get into trouble of one sort or another.
13774: # A longer-term fix would be to have automake use am__CC in this case,
13775: # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
13776: CC="$am_aux_dir/compile $CC"
13777: fi
13778: ac_ext=c
13779: ac_cpp='$CPP $CPPFLAGS'
13780: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13781: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13782: ac_compiler_gnu=$ac_cv_c_compiler_gnu
13783:
13784:
13785: depcc="$CC" am_compiler_list=
13786:
1.7 ! ohara 13787: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
! 13788: printf %s "checking dependency style of $depcc... " >&6; }
! 13789: if test ${am_cv_CC_dependencies_compiler_type+y}
! 13790: then :
! 13791: printf %s "(cached) " >&6
! 13792: else $as_nop
1.5 ohara 13793: if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
13794: # We make a subdir and do the tests there. Otherwise we can end up
13795: # making bogus files that we don't know about and never remove. For
13796: # instance it was reported that on HP-UX the gcc test will end up
13797: # making a dummy file named 'D' -- because '-MD' means "put the output
13798: # in D".
13799: rm -rf conftest.dir
13800: mkdir conftest.dir
13801: # Copy depcomp to subdir because otherwise we won't find it if we're
13802: # using a relative directory.
13803: cp "$am_depcomp" conftest.dir
13804: cd conftest.dir
13805: # We will build objects and dependencies in a subdirectory because
13806: # it helps to detect inapplicable dependency modes. For instance
13807: # both Tru64's cc and ICC support -MD to output dependencies as a
13808: # side effect of compilation, but ICC will put the dependencies in
13809: # the current directory while Tru64 will put them in the object
13810: # directory.
13811: mkdir sub
13812:
13813: am_cv_CC_dependencies_compiler_type=none
13814: if test "$am_compiler_list" = ""; then
13815: am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
13816: fi
13817: am__universal=false
13818: case " $depcc " in #(
13819: *\ -arch\ *\ -arch\ *) am__universal=true ;;
13820: esac
13821:
13822: for depmode in $am_compiler_list; do
13823: # Setup a source with many dependencies, because some compilers
13824: # like to wrap large dependency lists on column 80 (with \), and
13825: # we should not choose a depcomp mode which is confused by this.
13826: #
13827: # We need to recreate these files for each test, as the compiler may
13828: # overwrite some of them when testing with obscure command lines.
13829: # This happens at least with the AIX C compiler.
13830: : > sub/conftest.c
13831: for i in 1 2 3 4 5 6; do
13832: echo '#include "conftst'$i'.h"' >> sub/conftest.c
13833: # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
13834: # Solaris 10 /bin/sh.
13835: echo '/* dummy */' > sub/conftst$i.h
13836: done
13837: echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
13838:
13839: # We check with '-c' and '-o' for the sake of the "dashmstdout"
13840: # mode. It turns out that the SunPro C++ compiler does not properly
13841: # handle '-M -o', and we need to detect this. Also, some Intel
13842: # versions had trouble with output in subdirs.
13843: am__obj=sub/conftest.${OBJEXT-o}
13844: am__minus_obj="-o $am__obj"
13845: case $depmode in
13846: gcc)
13847: # This depmode causes a compiler race in universal mode.
13848: test "$am__universal" = false || continue
13849: ;;
13850: nosideeffect)
13851: # After this tag, mechanisms are not by side-effect, so they'll
13852: # only be used when explicitly requested.
13853: if test "x$enable_dependency_tracking" = xyes; then
13854: continue
13855: else
13856: break
13857: fi
13858: ;;
13859: msvc7 | msvc7msys | msvisualcpp | msvcmsys)
13860: # This compiler won't grok '-c -o', but also, the minuso test has
13861: # not run yet. These depmodes are late enough in the game, and
13862: # so weak that their functioning should not be impacted.
13863: am__obj=conftest.${OBJEXT-o}
13864: am__minus_obj=
13865: ;;
13866: none) break ;;
13867: esac
13868: if depmode=$depmode \
13869: source=sub/conftest.c object=$am__obj \
13870: depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
13871: $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
13872: >/dev/null 2>conftest.err &&
13873: grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
13874: grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
13875: grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
13876: ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
13877: # icc doesn't choke on unknown options, it will just issue warnings
13878: # or remarks (even with -Werror). So we grep stderr for any message
13879: # that says an option was ignored or not supported.
13880: # When given -MP, icc 7.0 and 7.1 complain thusly:
13881: # icc: Command line warning: ignoring option '-M'; no argument required
13882: # The diagnosis changed in icc 8.0:
13883: # icc: Command line remark: option '-MP' not supported
13884: if (grep 'ignoring option' conftest.err ||
13885: grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
13886: am_cv_CC_dependencies_compiler_type=$depmode
13887: break
13888: fi
13889: fi
1.1 noro 13890: done
13891:
1.5 ohara 13892: cd ..
13893: rm -rf conftest.dir
13894: else
13895: am_cv_CC_dependencies_compiler_type=none
1.1 noro 13896: fi
1.5 ohara 13897:
1.1 noro 13898: fi
1.7 ! ohara 13899: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
! 13900: printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
1.5 ohara 13901: CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
13902:
13903: if
13904: test "x$enable_dependency_tracking" != xno \
13905: && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
13906: am__fastdepCC_TRUE=
13907: am__fastdepCC_FALSE='#'
1.1 noro 13908: else
1.5 ohara 13909: am__fastdepCC_TRUE='#'
13910: am__fastdepCC_FALSE=
1.1 noro 13911: fi
13912:
1.5 ohara 13913:
13914:
1.7 ! ohara 13915: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
! 13916: printf %s "checking whether ln -s works... " >&6; }
1.5 ohara 13917: LN_S=$as_ln_s
13918: if test "$LN_S" = "ln -s"; then
1.7 ! ohara 13919: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
! 13920: printf "%s\n" "yes" >&6; }
1.1 noro 13921: else
1.7 ! ohara 13922: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
! 13923: printf "%s\n" "no, using $LN_S" >&6; }
1.1 noro 13924: fi
13925:
1.5 ohara 13926: if test -n "$ac_tool_prefix"; then
13927: # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13928: set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1.7 ! ohara 13929: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 13930: printf %s "checking for $ac_word... " >&6; }
! 13931: if test ${ac_cv_prog_RANLIB+y}
! 13932: then :
! 13933: printf %s "(cached) " >&6
! 13934: else $as_nop
1.5 ohara 13935: if test -n "$RANLIB"; then
13936: ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1.1 noro 13937: else
13938: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13939: for as_dir in $PATH
13940: do
13941: IFS=$as_save_IFS
1.7 ! ohara 13942: case $as_dir in #(((
! 13943: '') as_dir=./ ;;
! 13944: */) ;;
! 13945: *) as_dir=$as_dir/ ;;
! 13946: esac
1.1 noro 13947: for ac_exec_ext in '' $ac_executable_extensions; do
1.7 ! ohara 13948: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.5 ohara 13949: ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1.7 ! ohara 13950: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.1 noro 13951: break 2
13952: fi
13953: done
13954: done
13955: IFS=$as_save_IFS
13956:
13957: fi
13958: fi
1.5 ohara 13959: RANLIB=$ac_cv_prog_RANLIB
13960: if test -n "$RANLIB"; then
1.7 ! ohara 13961: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
! 13962: printf "%s\n" "$RANLIB" >&6; }
1.1 noro 13963: else
1.7 ! ohara 13964: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 13965: printf "%s\n" "no" >&6; }
1.1 noro 13966: fi
13967:
13968:
13969: fi
1.5 ohara 13970: if test -z "$ac_cv_prog_RANLIB"; then
13971: ac_ct_RANLIB=$RANLIB
13972: # Extract the first word of "ranlib", so it can be a program name with args.
13973: set dummy ranlib; ac_word=$2
1.7 ! ohara 13974: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 13975: printf %s "checking for $ac_word... " >&6; }
! 13976: if test ${ac_cv_prog_ac_ct_RANLIB+y}
! 13977: then :
! 13978: printf %s "(cached) " >&6
! 13979: else $as_nop
1.5 ohara 13980: if test -n "$ac_ct_RANLIB"; then
13981: ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13982: else
13983: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13984: for as_dir in $PATH
1.1 noro 13985: do
1.5 ohara 13986: IFS=$as_save_IFS
1.7 ! ohara 13987: case $as_dir in #(((
! 13988: '') as_dir=./ ;;
! 13989: */) ;;
! 13990: *) as_dir=$as_dir/ ;;
! 13991: esac
1.5 ohara 13992: for ac_exec_ext in '' $ac_executable_extensions; do
1.7 ! ohara 13993: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.5 ohara 13994: ac_cv_prog_ac_ct_RANLIB="ranlib"
1.7 ! ohara 13995: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.5 ohara 13996: break 2
13997: fi
1.1 noro 13998: done
1.5 ohara 13999: done
14000: IFS=$as_save_IFS
1.1 noro 14001:
14002: fi
14003: fi
1.5 ohara 14004: ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
14005: if test -n "$ac_ct_RANLIB"; then
1.7 ! ohara 14006: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
! 14007: printf "%s\n" "$ac_ct_RANLIB" >&6; }
1.1 noro 14008: else
1.7 ! ohara 14009: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 14010: printf "%s\n" "no" >&6; }
1.1 noro 14011: fi
14012:
1.5 ohara 14013: if test "x$ac_ct_RANLIB" = x; then
14014: RANLIB=":"
14015: else
14016: case $cross_compiling:$ac_tool_warned in
14017: yes:)
1.7 ! ohara 14018: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
! 14019: printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
1.5 ohara 14020: ac_tool_warned=yes ;;
14021: esac
14022: RANLIB=$ac_ct_RANLIB
14023: fi
1.1 noro 14024: else
1.5 ohara 14025: RANLIB="$ac_cv_prog_RANLIB"
1.1 noro 14026: fi
14027:
1.7 ! ohara 14028: for ac_prog in 'bison -y' byacc
1.5 ohara 14029: do
14030: # Extract the first word of "$ac_prog", so it can be a program name with args.
14031: set dummy $ac_prog; ac_word=$2
1.7 ! ohara 14032: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 14033: printf %s "checking for $ac_word... " >&6; }
! 14034: if test ${ac_cv_prog_YACC+y}
! 14035: then :
! 14036: printf %s "(cached) " >&6
! 14037: else $as_nop
1.5 ohara 14038: if test -n "$YACC"; then
14039: ac_cv_prog_YACC="$YACC" # Let the user override the test.
14040: else
14041: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14042: for as_dir in $PATH
14043: do
14044: IFS=$as_save_IFS
1.7 ! ohara 14045: case $as_dir in #(((
! 14046: '') as_dir=./ ;;
! 14047: */) ;;
! 14048: *) as_dir=$as_dir/ ;;
! 14049: esac
1.5 ohara 14050: for ac_exec_ext in '' $ac_executable_extensions; do
1.7 ! ohara 14051: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.5 ohara 14052: ac_cv_prog_YACC="$ac_prog"
1.7 ! ohara 14053: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.5 ohara 14054: break 2
14055: fi
1.1 noro 14056: done
1.5 ohara 14057: done
14058: IFS=$as_save_IFS
1.1 noro 14059:
1.5 ohara 14060: fi
14061: fi
14062: YACC=$ac_cv_prog_YACC
14063: if test -n "$YACC"; then
1.7 ! ohara 14064: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
! 14065: printf "%s\n" "$YACC" >&6; }
1.1 noro 14066: else
1.7 ! ohara 14067: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 14068: printf "%s\n" "no" >&6; }
1.1 noro 14069: fi
14070:
1.5 ohara 14071:
14072: test -n "$YACC" && break
14073: done
14074: test -n "$YACC" || YACC="yacc"
14075:
1.1 noro 14076:
14077:
1.7 ! ohara 14078: ac_ext=c
! 14079: ac_cpp='$CPP $CPPFLAGS'
! 14080: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
! 14081: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
! 14082: ac_compiler_gnu=$ac_cv_c_compiler_gnu
! 14083: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
! 14084: printf %s "checking how to run the C preprocessor... " >&6; }
! 14085: # On Suns, sometimes $CPP names a directory.
! 14086: if test -n "$CPP" && test -d "$CPP"; then
! 14087: CPP=
! 14088: fi
! 14089: if test -z "$CPP"; then
! 14090: if test ${ac_cv_prog_CPP+y}
! 14091: then :
! 14092: printf %s "(cached) " >&6
! 14093: else $as_nop
! 14094: # Double quotes because $CC needs to be expanded
! 14095: for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
! 14096: do
! 14097: ac_preproc_ok=false
! 14098: for ac_c_preproc_warn_flag in '' yes
! 14099: do
! 14100: # Use a header file that comes with gcc, so configuring glibc
! 14101: # with a fresh cross-compiler works.
! 14102: # On the NeXT, cc -E runs the code through the compiler's parser,
! 14103: # not just through cpp. "Syntax error" is here to catch this case.
! 14104: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
! 14105: /* end confdefs.h. */
! 14106: #include <limits.h>
! 14107: Syntax error
! 14108: _ACEOF
! 14109: if ac_fn_c_try_cpp "$LINENO"
! 14110: then :
! 14111:
! 14112: else $as_nop
! 14113: # Broken: fails on valid input.
! 14114: continue
! 14115: fi
! 14116: rm -f conftest.err conftest.i conftest.$ac_ext
! 14117:
! 14118: # OK, works on sane cases. Now check whether nonexistent headers
! 14119: # can be detected and how.
! 14120: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
! 14121: /* end confdefs.h. */
! 14122: #include <ac_nonexistent.h>
! 14123: _ACEOF
! 14124: if ac_fn_c_try_cpp "$LINENO"
! 14125: then :
! 14126: # Broken: success on invalid input.
! 14127: continue
! 14128: else $as_nop
! 14129: # Passes both tests.
! 14130: ac_preproc_ok=:
! 14131: break
! 14132: fi
! 14133: rm -f conftest.err conftest.i conftest.$ac_ext
! 14134:
! 14135: done
! 14136: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
! 14137: rm -f conftest.i conftest.err conftest.$ac_ext
! 14138: if $ac_preproc_ok
! 14139: then :
! 14140: break
! 14141: fi
! 14142:
! 14143: done
! 14144: ac_cv_prog_CPP=$CPP
! 14145:
! 14146: fi
! 14147: CPP=$ac_cv_prog_CPP
! 14148: else
! 14149: ac_cv_prog_CPP=$CPP
! 14150: fi
! 14151: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
! 14152: printf "%s\n" "$CPP" >&6; }
! 14153: ac_preproc_ok=false
! 14154: for ac_c_preproc_warn_flag in '' yes
! 14155: do
! 14156: # Use a header file that comes with gcc, so configuring glibc
! 14157: # with a fresh cross-compiler works.
! 14158: # On the NeXT, cc -E runs the code through the compiler's parser,
! 14159: # not just through cpp. "Syntax error" is here to catch this case.
! 14160: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
! 14161: /* end confdefs.h. */
! 14162: #include <limits.h>
! 14163: Syntax error
! 14164: _ACEOF
! 14165: if ac_fn_c_try_cpp "$LINENO"
! 14166: then :
! 14167:
! 14168: else $as_nop
! 14169: # Broken: fails on valid input.
! 14170: continue
! 14171: fi
! 14172: rm -f conftest.err conftest.i conftest.$ac_ext
! 14173:
! 14174: # OK, works on sane cases. Now check whether nonexistent headers
! 14175: # can be detected and how.
! 14176: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
! 14177: /* end confdefs.h. */
! 14178: #include <ac_nonexistent.h>
! 14179: _ACEOF
! 14180: if ac_fn_c_try_cpp "$LINENO"
! 14181: then :
! 14182: # Broken: success on invalid input.
! 14183: continue
! 14184: else $as_nop
! 14185: # Passes both tests.
! 14186: ac_preproc_ok=:
! 14187: break
! 14188: fi
! 14189: rm -f conftest.err conftest.i conftest.$ac_ext
! 14190:
! 14191: done
! 14192: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
! 14193: rm -f conftest.i conftest.err conftest.$ac_ext
! 14194: if $ac_preproc_ok
! 14195: then :
! 14196:
! 14197: else $as_nop
! 14198: { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
! 14199: printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
! 14200: as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
! 14201: See \`config.log' for more details" "$LINENO" 5; }
! 14202: fi
! 14203:
! 14204: ac_ext=c
! 14205: ac_cpp='$CPP $CPPFLAGS'
! 14206: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
! 14207: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
! 14208: ac_compiler_gnu=$ac_cv_c_compiler_gnu
! 14209:
! 14210:
! 14211: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for X" >&5
! 14212: printf %s "checking for X... " >&6; }
1.1 noro 14213:
14214:
14215: # Check whether --with-x was given.
1.7 ! ohara 14216: if test ${with_x+y}
! 14217: then :
1.1 noro 14218: withval=$with_x;
14219: fi
14220:
14221: # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
14222: if test "x$with_x" = xno; then
14223: # The user explicitly disabled X.
14224: have_x=disabled
14225: else
14226: case $x_includes,$x_libraries in #(
14227: *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
1.7 ! ohara 14228: *,NONE | NONE,*) if test ${ac_cv_have_x+y}
! 14229: then :
! 14230: printf %s "(cached) " >&6
! 14231: else $as_nop
1.1 noro 14232: # One or both of the vars are not set, and there is no cached value.
1.7 ! ohara 14233: ac_x_includes=no
! 14234: ac_x_libraries=no
! 14235: # Do we need to do anything special at all?
! 14236: ac_save_LIBS=$LIBS
! 14237: LIBS="-lX11 $LIBS"
! 14238: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
! 14239: /* end confdefs.h. */
! 14240: #include <X11/Xlib.h>
! 14241: int
! 14242: main (void)
! 14243: {
! 14244: XrmInitialize ()
! 14245: ;
! 14246: return 0;
! 14247: }
! 14248: _ACEOF
! 14249: if ac_fn_c_try_link "$LINENO"
! 14250: then :
! 14251: # We can compile and link X programs with no special options.
! 14252: ac_x_includes=
! 14253: ac_x_libraries=
! 14254: fi
! 14255: rm -f core conftest.err conftest.$ac_objext conftest.beam \
! 14256: conftest$ac_exeext conftest.$ac_ext
! 14257: LIBS="$ac_save_LIBS"
! 14258: # If that didn't work, only try xmkmf and file system searches
! 14259: # for native compilation.
! 14260: if test x"$ac_x_includes" = xno && test "$cross_compiling" = no
! 14261: then :
! 14262: rm -f -r conftest.dir
1.1 noro 14263: if mkdir conftest.dir; then
14264: cd conftest.dir
14265: cat >Imakefile <<'_ACEOF'
14266: incroot:
14267: @echo incroot='${INCROOT}'
14268: usrlibdir:
14269: @echo usrlibdir='${USRLIBDIR}'
14270: libdir:
14271: @echo libdir='${LIBDIR}'
14272: _ACEOF
14273: if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
14274: # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
14275: for ac_var in incroot usrlibdir libdir; do
14276: eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
14277: done
14278: # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
14279: for ac_extension in a so sl dylib la dll; do
14280: if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
14281: test -f "$ac_im_libdir/libX11.$ac_extension"; then
14282: ac_im_usrlibdir=$ac_im_libdir; break
14283: fi
14284: done
14285: # Screen out bogus values from the imake configuration. They are
14286: # bogus both because they are the default anyway, and because
14287: # using them would break gcc on systems where it needs fixed includes.
14288: case $ac_im_incroot in
14289: /usr/include) ac_x_includes= ;;
14290: *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
14291: esac
14292: case $ac_im_usrlibdir in
14293: /usr/lib | /usr/lib64 | /lib | /lib64) ;;
14294: *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
14295: esac
14296: fi
14297: cd ..
14298: rm -f -r conftest.dir
14299: fi
14300:
1.7 ! ohara 14301: # Standard set of common directories for X headers.
1.1 noro 14302: # Check X11 before X11Rn because it is often a symlink to the current release.
14303: ac_x_header_dirs='
14304: /usr/X11/include
14305: /usr/X11R7/include
14306: /usr/X11R6/include
14307: /usr/X11R5/include
14308: /usr/X11R4/include
14309:
14310: /usr/include/X11
14311: /usr/include/X11R7
14312: /usr/include/X11R6
14313: /usr/include/X11R5
14314: /usr/include/X11R4
14315:
14316: /usr/local/X11/include
14317: /usr/local/X11R7/include
14318: /usr/local/X11R6/include
14319: /usr/local/X11R5/include
14320: /usr/local/X11R4/include
14321:
14322: /usr/local/include/X11
14323: /usr/local/include/X11R7
14324: /usr/local/include/X11R6
14325: /usr/local/include/X11R5
14326: /usr/local/include/X11R4
14327:
1.7 ! ohara 14328: /opt/X11/include
! 14329:
1.1 noro 14330: /usr/X386/include
14331: /usr/x386/include
14332: /usr/XFree86/include/X11
14333:
14334: /usr/include
14335: /usr/local/include
14336: /usr/unsupported/include
14337: /usr/athena/include
14338: /usr/local/x11r5/include
14339: /usr/lpp/Xamples/include
14340:
14341: /usr/openwin/include
14342: /usr/openwin/share/include'
14343:
14344: if test "$ac_x_includes" = no; then
14345: # Guess where to find include files, by looking for Xlib.h.
14346: # First, try using that file with no special directory specified.
14347: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14348: /* end confdefs.h. */
14349: #include <X11/Xlib.h>
14350: _ACEOF
1.7 ! ohara 14351: if ac_fn_c_try_cpp "$LINENO"
! 14352: then :
1.1 noro 14353: # We can compile using X headers with no special include directory.
14354: ac_x_includes=
1.7 ! ohara 14355: else $as_nop
1.1 noro 14356: for ac_dir in $ac_x_header_dirs; do
14357: if test -r "$ac_dir/X11/Xlib.h"; then
14358: ac_x_includes=$ac_dir
14359: break
14360: fi
14361: done
14362: fi
14363: rm -f conftest.err conftest.i conftest.$ac_ext
14364: fi # $ac_x_includes = no
14365:
14366: if test "$ac_x_libraries" = no; then
14367: # Check for the libraries.
14368: # See if we find them without any special options.
14369: # Don't add to $LIBS permanently.
14370: ac_save_LIBS=$LIBS
14371: LIBS="-lX11 $LIBS"
14372: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14373: /* end confdefs.h. */
14374: #include <X11/Xlib.h>
14375: int
1.7 ! ohara 14376: main (void)
1.1 noro 14377: {
14378: XrmInitialize ()
14379: ;
14380: return 0;
14381: }
14382: _ACEOF
1.7 ! ohara 14383: if ac_fn_c_try_link "$LINENO"
! 14384: then :
1.1 noro 14385: LIBS=$ac_save_LIBS
14386: # We can link X programs with no special library path.
14387: ac_x_libraries=
1.7 ! ohara 14388: else $as_nop
1.1 noro 14389: LIBS=$ac_save_LIBS
1.7 ! ohara 14390: for ac_dir in `printf "%s\n" "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
1.1 noro 14391: do
14392: # Don't even attempt the hair of trying to link an X program!
14393: for ac_extension in a so sl dylib la dll; do
14394: if test -r "$ac_dir/libX11.$ac_extension"; then
14395: ac_x_libraries=$ac_dir
14396: break 2
14397: fi
14398: done
14399: done
14400: fi
1.7 ! ohara 14401: rm -f core conftest.err conftest.$ac_objext conftest.beam \
1.1 noro 14402: conftest$ac_exeext conftest.$ac_ext
14403: fi # $ac_x_libraries = no
14404:
1.7 ! ohara 14405: fi
! 14406: # Record the results.
1.1 noro 14407: case $ac_x_includes,$ac_x_libraries in #(
1.7 ! ohara 14408: no,* | *,no | *\'*) :
1.1 noro 14409: # Didn't find X, or a directory has "'" in its name.
1.7 ! ohara 14410: ac_cv_have_x="have_x=no" ;; #(
! 14411: *) :
1.1 noro 14412: # Record where we found X for the cache.
14413: ac_cv_have_x="have_x=yes\
14414: ac_x_includes='$ac_x_includes'\
1.7 ! ohara 14415: ac_x_libraries='$ac_x_libraries'" ;;
1.1 noro 14416: esac
14417: fi
14418: ;; #(
14419: *) have_x=yes;;
14420: esac
14421: eval "$ac_cv_have_x"
14422: fi # $with_x != no
14423:
14424: if test "$have_x" != yes; then
1.7 ! ohara 14425: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
! 14426: printf "%s\n" "$have_x" >&6; }
1.1 noro 14427: no_x=yes
14428: else
14429: # If each of the values was on the command line, it overrides each guess.
14430: test "x$x_includes" = xNONE && x_includes=$ac_x_includes
14431: test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
14432: # Update the cache value to reflect the command line values.
14433: ac_cv_have_x="have_x=yes\
14434: ac_x_includes='$x_includes'\
14435: ac_x_libraries='$x_libraries'"
1.7 ! ohara 14436: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
! 14437: printf "%s\n" "libraries $x_libraries, headers $x_includes" >&6; }
1.1 noro 14438: fi
14439:
14440: if test "$no_x" = yes; then
14441: # Not all programs may use this symbol, but it does not hurt to define it.
14442:
1.7 ! ohara 14443: printf "%s\n" "#define X_DISPLAY_MISSING 1" >>confdefs.h
1.1 noro 14444:
14445: X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
14446: else
14447: if test -n "$x_includes"; then
14448: X_CFLAGS="$X_CFLAGS -I$x_includes"
14449: fi
14450:
14451: # It would also be nice to do this for all -L options, not just this one.
14452: if test -n "$x_libraries"; then
14453: X_LIBS="$X_LIBS -L$x_libraries"
14454: # For Solaris; some versions of Sun CC require a space after -R and
14455: # others require no space. Words are not sufficient . . . .
1.7 ! ohara 14456: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
! 14457: printf %s "checking whether -R must be followed by a space... " >&6; }
1.1 noro 14458: ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
14459: ac_xsave_c_werror_flag=$ac_c_werror_flag
14460: ac_c_werror_flag=yes
14461: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14462: /* end confdefs.h. */
14463:
14464: int
1.7 ! ohara 14465: main (void)
1.1 noro 14466: {
14467:
14468: ;
14469: return 0;
14470: }
14471: _ACEOF
1.7 ! ohara 14472: if ac_fn_c_try_link "$LINENO"
! 14473: then :
! 14474: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 14475: printf "%s\n" "no" >&6; }
1.1 noro 14476: X_LIBS="$X_LIBS -R$x_libraries"
1.7 ! ohara 14477: else $as_nop
1.1 noro 14478: LIBS="$ac_xsave_LIBS -R $x_libraries"
14479: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14480: /* end confdefs.h. */
14481:
14482: int
1.7 ! ohara 14483: main (void)
1.1 noro 14484: {
14485:
14486: ;
14487: return 0;
14488: }
14489: _ACEOF
1.7 ! ohara 14490: if ac_fn_c_try_link "$LINENO"
! 14491: then :
! 14492: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
! 14493: printf "%s\n" "yes" >&6; }
1.1 noro 14494: X_LIBS="$X_LIBS -R $x_libraries"
1.7 ! ohara 14495: else $as_nop
! 14496: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
! 14497: printf "%s\n" "neither works" >&6; }
1.1 noro 14498: fi
1.7 ! ohara 14499: rm -f core conftest.err conftest.$ac_objext conftest.beam \
1.1 noro 14500: conftest$ac_exeext conftest.$ac_ext
14501: fi
1.7 ! ohara 14502: rm -f core conftest.err conftest.$ac_objext conftest.beam \
1.1 noro 14503: conftest$ac_exeext conftest.$ac_ext
14504: ac_c_werror_flag=$ac_xsave_c_werror_flag
14505: LIBS=$ac_xsave_LIBS
14506: fi
14507:
14508: # Check for system-dependent libraries X programs must link with.
14509: # Do this before checking for the system-independent R6 libraries
14510: # (-lICE), since we may need -lsocket or whatever for X linking.
14511:
14512: if test "$ISC" = yes; then
14513: X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
14514: else
14515: # Martyn Johnson says this is needed for Ultrix, if the X
14516: # libraries were built with DECnet support. And Karl Berry says
14517: # the Alpha needs dnet_stub (dnet does not exist).
14518: ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
14519: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14520: /* end confdefs.h. */
14521:
14522: /* Override any GCC internal prototype to avoid an error.
14523: Use char because int might match the return type of a GCC
14524: builtin and then its argument prototype would still apply. */
14525: char XOpenDisplay ();
14526: int
1.7 ! ohara 14527: main (void)
1.1 noro 14528: {
14529: return XOpenDisplay ();
14530: ;
14531: return 0;
14532: }
14533: _ACEOF
1.7 ! ohara 14534: if ac_fn_c_try_link "$LINENO"
! 14535: then :
1.1 noro 14536:
1.7 ! ohara 14537: else $as_nop
! 14538: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
! 14539: printf %s "checking for dnet_ntoa in -ldnet... " >&6; }
! 14540: if test ${ac_cv_lib_dnet_dnet_ntoa+y}
! 14541: then :
! 14542: printf %s "(cached) " >&6
! 14543: else $as_nop
1.1 noro 14544: ac_check_lib_save_LIBS=$LIBS
14545: LIBS="-ldnet $LIBS"
14546: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14547: /* end confdefs.h. */
14548:
14549: /* Override any GCC internal prototype to avoid an error.
14550: Use char because int might match the return type of a GCC
14551: builtin and then its argument prototype would still apply. */
14552: char dnet_ntoa ();
14553: int
1.7 ! ohara 14554: main (void)
1.1 noro 14555: {
14556: return dnet_ntoa ();
14557: ;
14558: return 0;
14559: }
14560: _ACEOF
1.7 ! ohara 14561: if ac_fn_c_try_link "$LINENO"
! 14562: then :
1.1 noro 14563: ac_cv_lib_dnet_dnet_ntoa=yes
1.7 ! ohara 14564: else $as_nop
1.1 noro 14565: ac_cv_lib_dnet_dnet_ntoa=no
14566: fi
1.7 ! ohara 14567: rm -f core conftest.err conftest.$ac_objext conftest.beam \
1.1 noro 14568: conftest$ac_exeext conftest.$ac_ext
14569: LIBS=$ac_check_lib_save_LIBS
14570: fi
1.7 ! ohara 14571: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
! 14572: printf "%s\n" "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
! 14573: if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes
! 14574: then :
1.1 noro 14575: X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
14576: fi
14577:
14578: if test $ac_cv_lib_dnet_dnet_ntoa = no; then
1.7 ! ohara 14579: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
! 14580: printf %s "checking for dnet_ntoa in -ldnet_stub... " >&6; }
! 14581: if test ${ac_cv_lib_dnet_stub_dnet_ntoa+y}
! 14582: then :
! 14583: printf %s "(cached) " >&6
! 14584: else $as_nop
1.1 noro 14585: ac_check_lib_save_LIBS=$LIBS
14586: LIBS="-ldnet_stub $LIBS"
14587: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14588: /* end confdefs.h. */
14589:
14590: /* Override any GCC internal prototype to avoid an error.
14591: Use char because int might match the return type of a GCC
14592: builtin and then its argument prototype would still apply. */
14593: char dnet_ntoa ();
14594: int
1.7 ! ohara 14595: main (void)
1.1 noro 14596: {
14597: return dnet_ntoa ();
14598: ;
14599: return 0;
14600: }
14601: _ACEOF
1.7 ! ohara 14602: if ac_fn_c_try_link "$LINENO"
! 14603: then :
1.1 noro 14604: ac_cv_lib_dnet_stub_dnet_ntoa=yes
1.7 ! ohara 14605: else $as_nop
1.1 noro 14606: ac_cv_lib_dnet_stub_dnet_ntoa=no
14607: fi
1.7 ! ohara 14608: rm -f core conftest.err conftest.$ac_objext conftest.beam \
1.1 noro 14609: conftest$ac_exeext conftest.$ac_ext
14610: LIBS=$ac_check_lib_save_LIBS
14611: fi
1.7 ! ohara 14612: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
! 14613: printf "%s\n" "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
! 14614: if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes
! 14615: then :
1.1 noro 14616: X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
14617: fi
14618:
14619: fi
14620: fi
1.7 ! ohara 14621: rm -f core conftest.err conftest.$ac_objext conftest.beam \
1.1 noro 14622: conftest$ac_exeext conftest.$ac_ext
14623: LIBS="$ac_xsave_LIBS"
14624:
14625: # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
14626: # to get the SysV transport functions.
14627: # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
14628: # needs -lnsl.
14629: # The nsl library prevents programs from opening the X display
14630: # on Irix 5.2, according to T.E. Dickey.
14631: # The functions gethostbyname, getservbyname, and inet_addr are
14632: # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
14633: ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
1.7 ! ohara 14634: if test "x$ac_cv_func_gethostbyname" = xyes
! 14635: then :
1.1 noro 14636:
14637: fi
14638:
1.5 ohara 14639: if test $ac_cv_func_gethostbyname = no; then
1.7 ! ohara 14640: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
! 14641: printf %s "checking for gethostbyname in -lnsl... " >&6; }
! 14642: if test ${ac_cv_lib_nsl_gethostbyname+y}
! 14643: then :
! 14644: printf %s "(cached) " >&6
! 14645: else $as_nop
1.1 noro 14646: ac_check_lib_save_LIBS=$LIBS
1.5 ohara 14647: LIBS="-lnsl $LIBS"
1.1 noro 14648: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14649: /* end confdefs.h. */
14650:
14651: /* Override any GCC internal prototype to avoid an error.
14652: Use char because int might match the return type of a GCC
14653: builtin and then its argument prototype would still apply. */
1.5 ohara 14654: char gethostbyname ();
1.1 noro 14655: int
1.7 ! ohara 14656: main (void)
1.1 noro 14657: {
1.5 ohara 14658: return gethostbyname ();
1.1 noro 14659: ;
14660: return 0;
14661: }
14662: _ACEOF
1.7 ! ohara 14663: if ac_fn_c_try_link "$LINENO"
! 14664: then :
1.5 ohara 14665: ac_cv_lib_nsl_gethostbyname=yes
1.7 ! ohara 14666: else $as_nop
1.5 ohara 14667: ac_cv_lib_nsl_gethostbyname=no
1.1 noro 14668: fi
1.7 ! ohara 14669: rm -f core conftest.err conftest.$ac_objext conftest.beam \
1.1 noro 14670: conftest$ac_exeext conftest.$ac_ext
14671: LIBS=$ac_check_lib_save_LIBS
14672: fi
1.7 ! ohara 14673: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
! 14674: printf "%s\n" "$ac_cv_lib_nsl_gethostbyname" >&6; }
! 14675: if test "x$ac_cv_lib_nsl_gethostbyname" = xyes
! 14676: then :
1.5 ohara 14677: X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
1.1 noro 14678: fi
14679:
1.5 ohara 14680: if test $ac_cv_lib_nsl_gethostbyname = no; then
1.7 ! ohara 14681: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
! 14682: printf %s "checking for gethostbyname in -lbsd... " >&6; }
! 14683: if test ${ac_cv_lib_bsd_gethostbyname+y}
! 14684: then :
! 14685: printf %s "(cached) " >&6
! 14686: else $as_nop
1.1 noro 14687: ac_check_lib_save_LIBS=$LIBS
1.5 ohara 14688: LIBS="-lbsd $LIBS"
1.1 noro 14689: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14690: /* end confdefs.h. */
14691:
14692: /* Override any GCC internal prototype to avoid an error.
14693: Use char because int might match the return type of a GCC
14694: builtin and then its argument prototype would still apply. */
1.5 ohara 14695: char gethostbyname ();
1.1 noro 14696: int
1.7 ! ohara 14697: main (void)
1.1 noro 14698: {
1.5 ohara 14699: return gethostbyname ();
1.1 noro 14700: ;
14701: return 0;
14702: }
14703: _ACEOF
1.7 ! ohara 14704: if ac_fn_c_try_link "$LINENO"
! 14705: then :
1.5 ohara 14706: ac_cv_lib_bsd_gethostbyname=yes
1.7 ! ohara 14707: else $as_nop
1.5 ohara 14708: ac_cv_lib_bsd_gethostbyname=no
1.1 noro 14709: fi
1.7 ! ohara 14710: rm -f core conftest.err conftest.$ac_objext conftest.beam \
1.1 noro 14711: conftest$ac_exeext conftest.$ac_ext
14712: LIBS=$ac_check_lib_save_LIBS
14713: fi
1.7 ! ohara 14714: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
! 14715: printf "%s\n" "$ac_cv_lib_bsd_gethostbyname" >&6; }
! 14716: if test "x$ac_cv_lib_bsd_gethostbyname" = xyes
! 14717: then :
1.5 ohara 14718: X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
1.1 noro 14719: fi
14720:
1.5 ohara 14721: fi
14722: fi
14723:
14724: # lieder@skyler.mavd.honeywell.com says without -lsocket,
14725: # socket/setsockopt and other routines are undefined under SCO ODT
14726: # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
14727: # on later versions), says Simon Leinen: it contains gethostby*
14728: # variants that don't use the name server (or something). -lsocket
14729: # must be given before -lnsl if both are needed. We assume that
14730: # if connect needs -lnsl, so does gethostbyname.
14731: ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
1.7 ! ohara 14732: if test "x$ac_cv_func_connect" = xyes
! 14733: then :
1.5 ohara 14734:
1.1 noro 14735: fi
14736:
1.5 ohara 14737: if test $ac_cv_func_connect = no; then
1.7 ! ohara 14738: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
! 14739: printf %s "checking for connect in -lsocket... " >&6; }
! 14740: if test ${ac_cv_lib_socket_connect+y}
! 14741: then :
! 14742: printf %s "(cached) " >&6
! 14743: else $as_nop
1.5 ohara 14744: ac_check_lib_save_LIBS=$LIBS
14745: LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
14746: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 noro 14747: /* end confdefs.h. */
14748:
1.5 ohara 14749: /* Override any GCC internal prototype to avoid an error.
14750: Use char because int might match the return type of a GCC
14751: builtin and then its argument prototype would still apply. */
14752: char connect ();
1.1 noro 14753: int
1.7 ! ohara 14754: main (void)
1.1 noro 14755: {
1.5 ohara 14756: return connect ();
1.1 noro 14757: ;
14758: return 0;
14759: }
14760: _ACEOF
1.7 ! ohara 14761: if ac_fn_c_try_link "$LINENO"
! 14762: then :
1.5 ohara 14763: ac_cv_lib_socket_connect=yes
1.7 ! ohara 14764: else $as_nop
1.5 ohara 14765: ac_cv_lib_socket_connect=no
14766: fi
1.7 ! ohara 14767: rm -f core conftest.err conftest.$ac_objext conftest.beam \
1.5 ohara 14768: conftest$ac_exeext conftest.$ac_ext
14769: LIBS=$ac_check_lib_save_LIBS
14770: fi
1.7 ! ohara 14771: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
! 14772: printf "%s\n" "$ac_cv_lib_socket_connect" >&6; }
! 14773: if test "x$ac_cv_lib_socket_connect" = xyes
! 14774: then :
1.5 ohara 14775: X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
14776: fi
14777:
14778: fi
14779:
14780: # Guillermo Gomez says -lposix is necessary on A/UX.
14781: ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
1.7 ! ohara 14782: if test "x$ac_cv_func_remove" = xyes
! 14783: then :
1.5 ohara 14784:
1.1 noro 14785: fi
14786:
1.5 ohara 14787: if test $ac_cv_func_remove = no; then
1.7 ! ohara 14788: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
! 14789: printf %s "checking for remove in -lposix... " >&6; }
! 14790: if test ${ac_cv_lib_posix_remove+y}
! 14791: then :
! 14792: printf %s "(cached) " >&6
! 14793: else $as_nop
1.5 ohara 14794: ac_check_lib_save_LIBS=$LIBS
14795: LIBS="-lposix $LIBS"
14796: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 noro 14797: /* end confdefs.h. */
14798:
1.5 ohara 14799: /* Override any GCC internal prototype to avoid an error.
14800: Use char because int might match the return type of a GCC
14801: builtin and then its argument prototype would still apply. */
14802: char remove ();
14803: int
1.7 ! ohara 14804: main (void)
1.5 ohara 14805: {
14806: return remove ();
14807: ;
14808: return 0;
14809: }
1.1 noro 14810: _ACEOF
1.7 ! ohara 14811: if ac_fn_c_try_link "$LINENO"
! 14812: then :
1.5 ohara 14813: ac_cv_lib_posix_remove=yes
1.7 ! ohara 14814: else $as_nop
1.5 ohara 14815: ac_cv_lib_posix_remove=no
14816: fi
1.7 ! ohara 14817: rm -f core conftest.err conftest.$ac_objext conftest.beam \
1.5 ohara 14818: conftest$ac_exeext conftest.$ac_ext
14819: LIBS=$ac_check_lib_save_LIBS
14820: fi
1.7 ! ohara 14821: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
! 14822: printf "%s\n" "$ac_cv_lib_posix_remove" >&6; }
! 14823: if test "x$ac_cv_lib_posix_remove" = xyes
! 14824: then :
1.5 ohara 14825: X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
1.1 noro 14826: fi
1.5 ohara 14827:
14828: fi
14829:
14830: # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
14831: ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
1.7 ! ohara 14832: if test "x$ac_cv_func_shmat" = xyes
! 14833: then :
1.1 noro 14834:
14835: fi
14836:
1.5 ohara 14837: if test $ac_cv_func_shmat = no; then
1.7 ! ohara 14838: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
! 14839: printf %s "checking for shmat in -lipc... " >&6; }
! 14840: if test ${ac_cv_lib_ipc_shmat+y}
! 14841: then :
! 14842: printf %s "(cached) " >&6
! 14843: else $as_nop
1.5 ohara 14844: ac_check_lib_save_LIBS=$LIBS
14845: LIBS="-lipc $LIBS"
14846: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 noro 14847: /* end confdefs.h. */
14848:
1.5 ohara 14849: /* Override any GCC internal prototype to avoid an error.
14850: Use char because int might match the return type of a GCC
14851: builtin and then its argument prototype would still apply. */
14852: char shmat ();
14853: int
1.7 ! ohara 14854: main (void)
1.5 ohara 14855: {
14856: return shmat ();
14857: ;
14858: return 0;
14859: }
1.1 noro 14860: _ACEOF
1.7 ! ohara 14861: if ac_fn_c_try_link "$LINENO"
! 14862: then :
1.5 ohara 14863: ac_cv_lib_ipc_shmat=yes
1.7 ! ohara 14864: else $as_nop
1.5 ohara 14865: ac_cv_lib_ipc_shmat=no
14866: fi
1.7 ! ohara 14867: rm -f core conftest.err conftest.$ac_objext conftest.beam \
1.5 ohara 14868: conftest$ac_exeext conftest.$ac_ext
14869: LIBS=$ac_check_lib_save_LIBS
14870: fi
1.7 ! ohara 14871: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
! 14872: printf "%s\n" "$ac_cv_lib_ipc_shmat" >&6; }
! 14873: if test "x$ac_cv_lib_ipc_shmat" = xyes
! 14874: then :
1.5 ohara 14875: X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
1.1 noro 14876: fi
14877:
1.5 ohara 14878: fi
14879: fi
1.1 noro 14880:
1.5 ohara 14881: # Check for libraries that X11R6 Xt/Xaw programs need.
14882: ac_save_LDFLAGS=$LDFLAGS
14883: test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
14884: # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
14885: # check for ICE first), but we must link in the order -lSM -lICE or
14886: # we get undefined symbols. So assume we have SM if we have ICE.
14887: # These have to be linked with before -lX11, unlike the other
14888: # libraries we check for below, so use a different variable.
14889: # John Interrante, Karl Berry
1.7 ! ohara 14890: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
! 14891: printf %s "checking for IceConnectionNumber in -lICE... " >&6; }
! 14892: if test ${ac_cv_lib_ICE_IceConnectionNumber+y}
! 14893: then :
! 14894: printf %s "(cached) " >&6
! 14895: else $as_nop
1.5 ohara 14896: ac_check_lib_save_LIBS=$LIBS
14897: LIBS="-lICE $X_EXTRA_LIBS $LIBS"
14898: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 noro 14899: /* end confdefs.h. */
1.5 ohara 14900:
14901: /* Override any GCC internal prototype to avoid an error.
14902: Use char because int might match the return type of a GCC
14903: builtin and then its argument prototype would still apply. */
14904: char IceConnectionNumber ();
1.1 noro 14905: int
1.7 ! ohara 14906: main (void)
1.1 noro 14907: {
1.5 ohara 14908: return IceConnectionNumber ();
14909: ;
1.1 noro 14910: return 0;
14911: }
14912: _ACEOF
1.7 ! ohara 14913: if ac_fn_c_try_link "$LINENO"
! 14914: then :
1.5 ohara 14915: ac_cv_lib_ICE_IceConnectionNumber=yes
1.7 ! ohara 14916: else $as_nop
1.5 ohara 14917: ac_cv_lib_ICE_IceConnectionNumber=no
14918: fi
1.7 ! ohara 14919: rm -f core conftest.err conftest.$ac_objext conftest.beam \
1.5 ohara 14920: conftest$ac_exeext conftest.$ac_ext
14921: LIBS=$ac_check_lib_save_LIBS
14922: fi
1.7 ! ohara 14923: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
! 14924: printf "%s\n" "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
! 14925: if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes
! 14926: then :
1.5 ohara 14927: X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
14928: fi
14929:
14930: LDFLAGS=$ac_save_LDFLAGS
14931:
14932: fi
14933:
1.1 noro 14934:
1.6 ohara 14935: # Check whether --enable-static_asir was given.
1.7 ! ohara 14936: if test ${enable_static_asir+y}
! 14937: then :
1.6 ohara 14938: enableval=$enable_static_asir; enable_static_asir=${enableval}
1.7 ! ohara 14939: else $as_nop
1.6 ohara 14940: enable_static_asir=yes
1.1 noro 14941: fi
1.5 ohara 14942:
1.6 ohara 14943: if test "${enable_static_asir}" = yes; then
14944: ASIR_STATIC_TRUE=
14945: ASIR_STATIC_FALSE='#'
14946: else
14947: ASIR_STATIC_TRUE='#'
14948: ASIR_STATIC_FALSE=
14949: fi
1.5 ohara 14950:
1.1 noro 14951:
1.5 ohara 14952: if test "${ac_test_CFLAGS}" != set -a "${GCC}" = yes ; then
14953: if test "${ac_cv_prog_cc_g}" = yes; then
14954: CFLAGS="-g -O"
14955: else
14956: CFLAGS="-O"
14957: fi
14958: elif test `basename ./"${CC}"` = "icc" ; then
14959: CFLAGS="-g -O"
1.1 noro 14960: fi
14961:
14962:
1.5 ohara 14963: # Check whether --with-asir-gc was given.
1.7 ! ohara 14964: if test ${with_asir_gc+y}
! 14965: then :
1.5 ohara 14966: withval=$with_asir_gc; with_asir_gc=${withval}
1.7 ! ohara 14967: else $as_nop
1.5 ohara 14968: with_asir_gc=yes
1.1 noro 14969: fi
14970:
1.5 ohara 14971: if test ${with_asir_gc:=yes} != no; then
14972: GCLIB='-L${prefix}/lib -lasir-gc'
14973: else
14974: GCLIB='-L${prefix}/lib -lgc'
1.7 ! ohara 14975: printf "%s\n" "#define NO_ASIR_GC 1" >>confdefs.h
1.1 noro 14976:
14977: fi
1.5 ohara 14978: GCINC='-I${prefix}/include'
1.7 ! ohara 14979: printf "%s\n" "#define GC7 1" >>confdefs.h
1.5 ohara 14980:
1.1 noro 14981:
14982:
14983:
14984: ac_fn_c_check_type "$LINENO" "unsigned long long" "ac_cv_type_unsigned_long_long" "$ac_includes_default"
1.7 ! ohara 14985: if test "x$ac_cv_type_unsigned_long_long" = xyes
! 14986: then :
1.1 noro 14987:
1.7 ! ohara 14988: printf "%s\n" "#define HAVE_UNSIGNED_LONG_LONG 1" >>confdefs.h
1.1 noro 14989:
14990:
14991: fi
14992:
14993: # The cast to long int works around a bug in the HP C Compiler
14994: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14995: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14996: # This bug is HP SR number 8606223364.
1.7 ! ohara 14997: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
! 14998: printf %s "checking size of long... " >&6; }
! 14999: if test ${ac_cv_sizeof_long+y}
! 15000: then :
! 15001: printf %s "(cached) " >&6
! 15002: else $as_nop
! 15003: if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"
! 15004: then :
1.1 noro 15005:
1.7 ! ohara 15006: else $as_nop
1.1 noro 15007: if test "$ac_cv_type_long" = yes; then
1.7 ! ohara 15008: { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
! 15009: printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
1.1 noro 15010: as_fn_error 77 "cannot compute sizeof (long)
15011: See \`config.log' for more details" "$LINENO" 5; }
15012: else
15013: ac_cv_sizeof_long=0
15014: fi
15015: fi
15016:
15017: fi
1.7 ! ohara 15018: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
! 15019: printf "%s\n" "$ac_cv_sizeof_long" >&6; }
1.1 noro 15020:
15021:
15022:
1.7 ! ohara 15023: printf "%s\n" "#define SIZEOF_LONG $ac_cv_sizeof_long" >>confdefs.h
1.1 noro 15024:
15025:
15026: if test "${ac_cv_sizeof_long}" = 8; then
1.7 ! ohara 15027: printf "%s\n" "#define LONG_IS_64BIT 1" >>confdefs.h
1.1 noro 15028:
15029: else
1.7 ! ohara 15030: printf "%s\n" "#define LONG_IS_32BIT 1" >>confdefs.h
1.1 noro 15031:
15032: fi
15033: if test "${no_x}" != yes ; then
15034: if test -f "${x_libraries}/libXpm.a" -o -f "${x_libraries}/libXpm.dll.a" ; then
15035: XPMLIB="-lXpm"
15036: fi
15037: # Check whether --enable-plot was given.
1.7 ! ohara 15038: if test ${enable_plot+y}
! 15039: then :
1.1 noro 15040: enableval=$enable_plot; enable_plot=yes
1.7 ! ohara 15041: else $as_nop
1.1 noro 15042: enable_plot=no
15043: fi
15044:
15045: fi
15046:
15047:
1.5 ohara 15048: sufx=""
1.1 noro 15049: if test ${enable_plot:=no} != no ; then
1.5 ohara 15050: sufx=${sufx}_X
1.7 ! ohara 15051: printf "%s\n" "#define DO_PLOT 1" >>confdefs.h
1.1 noro 15052:
15053: fi
15054: if test "$enable_plot" = yes; then
15055: USE_PLOT_TRUE=
15056: USE_PLOT_FALSE='#'
15057: else
15058: USE_PLOT_TRUE='#'
15059: USE_PLOT_FALSE=
15060: fi
15061:
15062:
1.4 kondoh 15063: GMPLIB="-L${libdir} -lmpfi -lmpc -lmpfr -lgmp"
1.1 noro 15064: # Check whether --enable-static_gmp was given.
1.7 ! ohara 15065: if test ${enable_static_gmp+y}
! 15066: then :
1.1 noro 15067: enableval=$enable_static_gmp; enable_static_gmp=yes
1.7 ! ohara 15068: else $as_nop
1.1 noro 15069: enable_static_gmp=no
15070: fi
15071:
15072: if test ${enable_static_gmp:=no} != no ; then
1.5 ohara 15073: GMPLIB='${libdir}/libmpfi.a ${libdir}/libmpc.a ${libdir}/libmpfr.a ${libdir}/libgmp.a'
1.1 noro 15074: fi
15075:
15076:
15077: # Check whether --enable-interval was given.
1.7 ! ohara 15078: if test ${enable_interval+y}
! 15079: then :
1.1 noro 15080: enableval=$enable_interval; enable_interval=${enableval}
1.7 ! ohara 15081: else $as_nop
1.1 noro 15082: enable_interval=no
15083: fi
15084:
15085:
15086: if test ${enable_interval:=no} != no ; then
1.5 ohara 15087: sufx=${sufx}_itv
1.7 ! ohara 15088: printf "%s\n" "#define INTERVAL 1" >>confdefs.h
1.1 noro 15089:
15090: if test "${enable_interval}" = debug ; then
1.7 ! ohara 15091: printf "%s\n" "#define ITVDEBUG 1" >>confdefs.h
1.1 noro 15092:
15093: fi
15094: fi
15095:
1.7 ! ohara 15096: # Check whether --enable-fep was given.
! 15097: if test ${enable_fep+y}
! 15098: then :
! 15099: enableval=$enable_fep; enable_fep=yes
! 15100: else $as_nop
! 15101: enable_fep=no
! 15102: fi
! 15103:
1.1 noro 15104:
15105: if test "${enable_fep:=no}" != no ; then
1.7 ! ohara 15106: printf "%s\n" "#define FEP 1" >>confdefs.h
1.1 noro 15107:
1.7 ! ohara 15108: FEPLIB="-L${prefix}/lib -ledit"
1.1 noro 15109: fi
15110:
15111:
15112: # Check whether --enable-fft-float was given.
1.7 ! ohara 15113: if test ${enable_fft_float+y}
! 15114: then :
1.1 noro 15115: enableval=$enable_fft_float; enable_fft_float=yes
1.7 ! ohara 15116: else $as_nop
1.1 noro 15117: enable_fft_float=no
15118: fi
15119:
15120:
15121: if test "${enable_fft_float:=no}" != no ; then
1.7 ! ohara 15122: printf "%s\n" "#define USE_FLOAT 1" >>confdefs.h
1.1 noro 15123:
15124: fi
15125:
15126:
15127: # Check whether --with-mpi was given.
1.7 ! ohara 15128: if test ${with_mpi+y}
! 15129: then :
1.1 noro 15130: withval=$with_mpi; with_mpi=${withval}
1.7 ! ohara 15131: else $as_nop
1.1 noro 15132: with_mpi=no
15133: fi
15134:
15135:
15136: if test "${with_mpi:=no}" != no ; then
1.7 ! ohara 15137: printf "%s\n" "#define MPI 1" >>confdefs.h
1.1 noro 15138:
15139: fi
15140:
15141:
15142: if test "${with_lapack:=no}" != no ; then
15143: LAPACKLIB="-llapack -lblas -lg2c"
1.7 ! ohara 15144: printf "%s\n" "#define LAPACK 1" >>confdefs.h
1.1 noro 15145:
15146: fi
15147:
15148:
15149:
15150:
15151: case "${host}" in
15152: i[3-6]86-*-linux*|x86-*-linux*)
1.7 ! ohara 15153: printf "%s\n" "#define _BSD_SOURCE 1" >>confdefs.h
1.1 noro 15154:
15155: ;;
1.5 ohara 15156: arm*-*-linux*)
15157: if test "${ac_test_CFLAGS}" != set -a "${GCC}" = yes ; then
15158: CFLAGS="${CFLAGS} -fsigned-char"
15159: fi
1.1 noro 15160: ;;
1.5 ohara 15161: *-*-interix*)
1.7 ! ohara 15162: printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h
1.1 noro 15163:
15164: ;;
15165: sparc-sun-solaris2.*)
15166: case "`uname -m`" in
1.5 ohara 15167: sun4u*) if test "${ac_test_CFLAGS}" != set -a "${GCC}" = yes ; then
1.1 noro 15168: CFLAGS="${CFLAGS} -m64"
15169: fi
15170:
15171: ;;
15172: esac
1.7 ! ohara 15173: printf "%s\n" "#define SYSV 1" >>confdefs.h
1.1 noro 15174:
15175: ;;
15176: *-apple-darwin*)
1.7 ! ohara 15177: printf "%s\n" "#define __DARWIN__ 1" >>confdefs.h
1.1 noro 15178:
15179: if test -d /usr/X11/include -a x"${X_CFLAGS}" = x ; then
15180: X_CFLAGS=-I/usr/X11/include
15181: fi
15182: ;;
15183: *-*-mingw*)
15184: WSLIB="-lws2_32"
15185: ;;
15186: esac
15187:
15188:
1.7 ! ohara 15189: ac_fn_c_check_func "$LINENO" "sigaction" "ac_cv_func_sigaction"
! 15190: if test "x$ac_cv_func_sigaction" = xyes
! 15191: then :
! 15192: printf "%s\n" "#define HAVE_SIGACTION 1" >>confdefs.h
1.1 noro 15193:
15194: fi
15195:
15196: ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
1.7 ! ohara 15197: if test "x$ac_cv_func_socket" = xyes
! 15198: then :
1.1 noro 15199:
1.7 ! ohara 15200: else $as_nop
! 15201: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
! 15202: printf %s "checking for socket in -lsocket... " >&6; }
! 15203: if test ${ac_cv_lib_socket_socket+y}
! 15204: then :
! 15205: printf %s "(cached) " >&6
! 15206: else $as_nop
1.1 noro 15207: ac_check_lib_save_LIBS=$LIBS
15208: LIBS="-lsocket $LIBS"
15209: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15210: /* end confdefs.h. */
15211:
15212: /* Override any GCC internal prototype to avoid an error.
15213: Use char because int might match the return type of a GCC
15214: builtin and then its argument prototype would still apply. */
15215: char socket ();
15216: int
1.7 ! ohara 15217: main (void)
1.1 noro 15218: {
15219: return socket ();
15220: ;
15221: return 0;
15222: }
15223: _ACEOF
1.7 ! ohara 15224: if ac_fn_c_try_link "$LINENO"
! 15225: then :
1.1 noro 15226: ac_cv_lib_socket_socket=yes
1.7 ! ohara 15227: else $as_nop
1.1 noro 15228: ac_cv_lib_socket_socket=no
15229: fi
1.7 ! ohara 15230: rm -f core conftest.err conftest.$ac_objext conftest.beam \
1.1 noro 15231: conftest$ac_exeext conftest.$ac_ext
15232: LIBS=$ac_check_lib_save_LIBS
15233: fi
1.7 ! ohara 15234: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
! 15235: printf "%s\n" "$ac_cv_lib_socket_socket" >&6; }
! 15236: if test "x$ac_cv_lib_socket_socket" = xyes
! 15237: then :
! 15238: printf "%s\n" "#define HAVE_LIBSOCKET 1" >>confdefs.h
1.1 noro 15239:
15240: LIBS="-lsocket $LIBS"
15241:
15242: fi
15243:
15244: fi
15245:
15246: ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
1.7 ! ohara 15247: if test "x$ac_cv_func_gethostbyname" = xyes
! 15248: then :
1.1 noro 15249:
1.7 ! ohara 15250: else $as_nop
! 15251: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
! 15252: printf %s "checking for gethostbyname in -lnsl... " >&6; }
! 15253: if test ${ac_cv_lib_nsl_gethostbyname+y}
! 15254: then :
! 15255: printf %s "(cached) " >&6
! 15256: else $as_nop
1.1 noro 15257: ac_check_lib_save_LIBS=$LIBS
15258: LIBS="-lnsl $LIBS"
15259: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15260: /* end confdefs.h. */
15261:
15262: /* Override any GCC internal prototype to avoid an error.
15263: Use char because int might match the return type of a GCC
15264: builtin and then its argument prototype would still apply. */
15265: char gethostbyname ();
15266: int
1.7 ! ohara 15267: main (void)
1.1 noro 15268: {
15269: return gethostbyname ();
15270: ;
15271: return 0;
15272: }
15273: _ACEOF
1.7 ! ohara 15274: if ac_fn_c_try_link "$LINENO"
! 15275: then :
1.1 noro 15276: ac_cv_lib_nsl_gethostbyname=yes
1.7 ! ohara 15277: else $as_nop
1.1 noro 15278: ac_cv_lib_nsl_gethostbyname=no
15279: fi
1.7 ! ohara 15280: rm -f core conftest.err conftest.$ac_objext conftest.beam \
1.1 noro 15281: conftest$ac_exeext conftest.$ac_ext
15282: LIBS=$ac_check_lib_save_LIBS
15283: fi
1.7 ! ohara 15284: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
! 15285: printf "%s\n" "$ac_cv_lib_nsl_gethostbyname" >&6; }
! 15286: if test "x$ac_cv_lib_nsl_gethostbyname" = xyes
! 15287: then :
! 15288: printf "%s\n" "#define HAVE_LIBNSL 1" >>confdefs.h
1.1 noro 15289:
15290: LIBS="-lnsl $LIBS"
15291:
15292: fi
15293:
15294: fi
15295:
15296:
1.5 ohara 15297: ac_config_files="$ac_config_files Makefile"
1.1 noro 15298:
15299: cat >confcache <<\_ACEOF
15300: # This file is a shell script that caches the results of configure
15301: # tests run on this system so they can be shared between configure
15302: # scripts and configure runs, see configure's option --config-cache.
15303: # It is not useful on other systems. If it contains results you don't
15304: # want to keep, you may remove or edit it.
15305: #
15306: # config.status only pays attention to the cache file if you give it
15307: # the --recheck option to rerun configure.
15308: #
15309: # `ac_cv_env_foo' variables (set or unset) will be overridden when
15310: # loading this file, other *unset* `ac_cv_foo' will be assigned the
15311: # following values.
15312:
15313: _ACEOF
15314:
15315: # The following way of writing the cache mishandles newlines in values,
15316: # but we know of no workaround that is simple, portable, and efficient.
15317: # So, we kill variables containing newlines.
15318: # Ultrix sh set writes to stderr and can't be redirected directly,
15319: # and sets the high bit in the cache file unless we assign to the vars.
15320: (
15321: for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15322: eval ac_val=\$$ac_var
15323: case $ac_val in #(
15324: *${as_nl}*)
15325: case $ac_var in #(
1.7 ! ohara 15326: *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
! 15327: printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1.1 noro 15328: esac
15329: case $ac_var in #(
15330: _ | IFS | as_nl) ;; #(
15331: BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15332: *) { eval $ac_var=; unset $ac_var;} ;;
15333: esac ;;
15334: esac
15335: done
15336:
15337: (set) 2>&1 |
15338: case $as_nl`(ac_space=' '; set) 2>&1` in #(
15339: *${as_nl}ac_space=\ *)
15340: # `set' does not quote correctly, so add quotes: double-quote
15341: # substitution turns \\\\ into \\, and sed turns \\ into \.
15342: sed -n \
15343: "s/'/'\\\\''/g;
15344: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15345: ;; #(
15346: *)
15347: # `set' quotes correctly as required by POSIX, so do not add quotes.
15348: sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15349: ;;
15350: esac |
15351: sort
15352: ) |
15353: sed '
15354: /^ac_cv_env_/b end
15355: t clear
15356: :clear
1.7 ! ohara 15357: s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
1.1 noro 15358: t end
15359: s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15360: :end' >>confcache
15361: if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15362: if test -w "$cache_file"; then
15363: if test "x$cache_file" != "x/dev/null"; then
1.7 ! ohara 15364: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
! 15365: printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
1.1 noro 15366: if test ! -f "$cache_file" || test -h "$cache_file"; then
15367: cat confcache >"$cache_file"
15368: else
15369: case $cache_file in #(
15370: */* | ?:*)
15371: mv -f confcache "$cache_file"$$ &&
15372: mv -f "$cache_file"$$ "$cache_file" ;; #(
15373: *)
15374: mv -f confcache "$cache_file" ;;
15375: esac
15376: fi
15377: fi
15378: else
1.7 ! ohara 15379: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
! 15380: printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
1.1 noro 15381: fi
15382: fi
15383: rm -f confcache
15384:
15385: test "x$prefix" = xNONE && prefix=$ac_default_prefix
15386: # Let make expand exec_prefix.
15387: test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15388:
15389: # Transform confdefs.h into DEFS.
15390: # Protect against shell expansion while executing Makefile rules.
15391: # Protect against Makefile macro expansion.
15392: #
15393: # If the first sed substitution is executed (which looks for macros that
15394: # take arguments), then branch to the quote section. Otherwise,
15395: # look for a macro that doesn't take arguments.
15396: ac_script='
15397: :mline
15398: /\\$/{
15399: N
15400: s,\\\n,,
15401: b mline
15402: }
15403: t clear
15404: :clear
15405: s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
15406: t quote
15407: s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
15408: t quote
15409: b any
15410: :quote
15411: s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
15412: s/\[/\\&/g
15413: s/\]/\\&/g
15414: s/\$/$$/g
15415: H
15416: :any
15417: ${
15418: g
15419: s/^\n//
15420: s/\n/ /g
15421: p
15422: }
15423: '
15424: DEFS=`sed -n "$ac_script" confdefs.h`
15425:
15426:
15427: ac_libobjs=
15428: ac_ltlibobjs=
15429: U=
15430: for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15431: # 1. Remove the extension, and $U if already installed.
15432: ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
1.7 ! ohara 15433: ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
1.1 noro 15434: # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15435: # will be set to the directory where LIBOBJS objects are built.
15436: as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15437: as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15438: done
15439: LIBOBJS=$ac_libobjs
15440:
15441: LTLIBOBJS=$ac_ltlibobjs
15442:
15443:
1.7 ! ohara 15444: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
! 15445: printf %s "checking that generated files are newer than configure... " >&6; }
1.1 noro 15446: if test -n "$am_sleep_pid"; then
15447: # Hide warnings about reused PIDs.
15448: wait $am_sleep_pid 2>/dev/null
15449: fi
1.7 ! ohara 15450: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
! 15451: printf "%s\n" "done" >&6; }
1.1 noro 15452: if test -n "$EXEEXT"; then
15453: am__EXEEXT_TRUE=
15454: am__EXEEXT_FALSE='#'
15455: else
15456: am__EXEEXT_TRUE='#'
15457: am__EXEEXT_FALSE=
15458: fi
15459:
15460: if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15461: as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
15462: Usually this means the macro was only invoked conditionally." "$LINENO" 5
15463: fi
15464: if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15465: as_fn_error $? "conditional \"AMDEP\" was never defined.
15466: Usually this means the macro was only invoked conditionally." "$LINENO" 5
15467: fi
15468: if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15469: as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
15470: Usually this means the macro was only invoked conditionally." "$LINENO" 5
15471: fi
1.5 ohara 15472: if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15473: as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
15474: Usually this means the macro was only invoked conditionally." "$LINENO" 5
15475: fi
1.6 ohara 15476: if test -z "${ASIR_STATIC_TRUE}" && test -z "${ASIR_STATIC_FALSE}"; then
15477: as_fn_error $? "conditional \"ASIR_STATIC\" was never defined.
15478: Usually this means the macro was only invoked conditionally." "$LINENO" 5
15479: fi
1.1 noro 15480: if test -z "${USE_PLOT_TRUE}" && test -z "${USE_PLOT_FALSE}"; then
15481: as_fn_error $? "conditional \"USE_PLOT\" was never defined.
15482: Usually this means the macro was only invoked conditionally." "$LINENO" 5
15483: fi
15484:
15485: : "${CONFIG_STATUS=./config.status}"
15486: ac_write_fail=0
15487: ac_clean_files_save=$ac_clean_files
15488: ac_clean_files="$ac_clean_files $CONFIG_STATUS"
1.7 ! ohara 15489: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
! 15490: printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
1.1 noro 15491: as_write_fail=0
15492: cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15493: #! $SHELL
15494: # Generated by $as_me.
15495: # Run this file to recreate the current configuration.
15496: # Compiler output produced by configure, useful for debugging
15497: # configure, is in config.log if it exists.
15498:
15499: debug=false
15500: ac_cs_recheck=false
15501: ac_cs_silent=false
15502:
15503: SHELL=\${CONFIG_SHELL-$SHELL}
15504: export SHELL
15505: _ASEOF
15506: cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15507: ## -------------------- ##
15508: ## M4sh Initialization. ##
15509: ## -------------------- ##
15510:
15511: # Be more Bourne compatible
15512: DUALCASE=1; export DUALCASE # for MKS sh
1.7 ! ohara 15513: as_nop=:
! 15514: if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
! 15515: then :
1.1 noro 15516: emulate sh
15517: NULLCMD=:
15518: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15519: # is contrary to our usage. Disable this feature.
15520: alias -g '${1+"$@"}'='"$@"'
15521: setopt NO_GLOB_SUBST
1.7 ! ohara 15522: else $as_nop
1.1 noro 15523: case `(set -o) 2>/dev/null` in #(
15524: *posix*) :
15525: set -o posix ;; #(
15526: *) :
15527: ;;
15528: esac
15529: fi
15530:
15531:
1.7 ! ohara 15532:
! 15533: # Reset variables that may have inherited troublesome values from
! 15534: # the environment.
! 15535:
! 15536: # IFS needs to be set, to space, tab, and newline, in precisely that order.
! 15537: # (If _AS_PATH_WALK were called with IFS unset, it would have the
! 15538: # side effect of setting IFS to empty, thus disabling word splitting.)
! 15539: # Quoting is to prevent editors from complaining about space-tab.
1.1 noro 15540: as_nl='
15541: '
15542: export as_nl
1.7 ! ohara 15543: IFS=" "" $as_nl"
! 15544:
! 15545: PS1='$ '
! 15546: PS2='> '
! 15547: PS4='+ '
! 15548:
! 15549: # Ensure predictable behavior from utilities with locale-dependent output.
! 15550: LC_ALL=C
! 15551: export LC_ALL
! 15552: LANGUAGE=C
! 15553: export LANGUAGE
! 15554:
! 15555: # We cannot yet rely on "unset" to work, but we need these variables
! 15556: # to be unset--not just set to an empty or harmless value--now, to
! 15557: # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
! 15558: # also avoids known problems related to "unset" and subshell syntax
! 15559: # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
! 15560: for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
! 15561: do eval test \${$as_var+y} \
! 15562: && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
! 15563: done
! 15564:
! 15565: # Ensure that fds 0, 1, and 2 are open.
! 15566: if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
! 15567: if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
! 15568: if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
1.1 noro 15569:
15570: # The user is always right.
1.7 ! ohara 15571: if ${PATH_SEPARATOR+false} :; then
1.1 noro 15572: PATH_SEPARATOR=:
15573: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15574: (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15575: PATH_SEPARATOR=';'
15576: }
15577: fi
15578:
15579:
15580: # Find who we are. Look in the path if we contain no directory separator.
15581: as_myself=
15582: case $0 in #((
15583: *[\\/]* ) as_myself=$0 ;;
15584: *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15585: for as_dir in $PATH
15586: do
15587: IFS=$as_save_IFS
1.7 ! ohara 15588: case $as_dir in #(((
! 15589: '') as_dir=./ ;;
! 15590: */) ;;
! 15591: *) as_dir=$as_dir/ ;;
! 15592: esac
! 15593: test -r "$as_dir$0" && as_myself=$as_dir$0 && break
1.1 noro 15594: done
15595: IFS=$as_save_IFS
15596:
15597: ;;
15598: esac
15599: # We did not find ourselves, most probably we were run as `sh COMMAND'
15600: # in which case we are not to be found in the path.
15601: if test "x$as_myself" = x; then
15602: as_myself=$0
15603: fi
15604: if test ! -f "$as_myself"; then
1.7 ! ohara 15605: printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
1.1 noro 15606: exit 1
15607: fi
15608:
15609:
15610:
15611: # as_fn_error STATUS ERROR [LINENO LOG_FD]
15612: # ----------------------------------------
15613: # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15614: # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15615: # script with STATUS, using 1 if that was 0.
15616: as_fn_error ()
15617: {
15618: as_status=$1; test $as_status -eq 0 && as_status=1
15619: if test "$4"; then
15620: as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1.7 ! ohara 15621: printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
1.1 noro 15622: fi
1.7 ! ohara 15623: printf "%s\n" "$as_me: error: $2" >&2
1.1 noro 15624: as_fn_exit $as_status
15625: } # as_fn_error
15626:
15627:
1.7 ! ohara 15628:
1.1 noro 15629: # as_fn_set_status STATUS
15630: # -----------------------
15631: # Set $? to STATUS, without forking.
15632: as_fn_set_status ()
15633: {
15634: return $1
15635: } # as_fn_set_status
15636:
15637: # as_fn_exit STATUS
15638: # -----------------
15639: # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15640: as_fn_exit ()
15641: {
15642: set +e
15643: as_fn_set_status $1
15644: exit $1
15645: } # as_fn_exit
15646:
15647: # as_fn_unset VAR
15648: # ---------------
15649: # Portably unset VAR.
15650: as_fn_unset ()
15651: {
15652: { eval $1=; unset $1;}
15653: }
15654: as_unset=as_fn_unset
1.7 ! ohara 15655:
1.1 noro 15656: # as_fn_append VAR VALUE
15657: # ----------------------
15658: # Append the text in VALUE to the end of the definition contained in VAR. Take
15659: # advantage of any shell optimizations that allow amortized linear growth over
15660: # repeated appends, instead of the typical quadratic growth present in naive
15661: # implementations.
1.7 ! ohara 15662: if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
! 15663: then :
1.1 noro 15664: eval 'as_fn_append ()
15665: {
15666: eval $1+=\$2
15667: }'
1.7 ! ohara 15668: else $as_nop
1.1 noro 15669: as_fn_append ()
15670: {
15671: eval $1=\$$1\$2
15672: }
15673: fi # as_fn_append
15674:
15675: # as_fn_arith ARG...
15676: # ------------------
15677: # Perform arithmetic evaluation on the ARGs, and store the result in the
15678: # global $as_val. Take advantage of shells that can avoid forks. The arguments
15679: # must be portable across $(()) and expr.
1.7 ! ohara 15680: if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
! 15681: then :
1.1 noro 15682: eval 'as_fn_arith ()
15683: {
15684: as_val=$(( $* ))
15685: }'
1.7 ! ohara 15686: else $as_nop
1.1 noro 15687: as_fn_arith ()
15688: {
15689: as_val=`expr "$@" || test $? -eq 1`
15690: }
15691: fi # as_fn_arith
15692:
15693:
15694: if expr a : '\(a\)' >/dev/null 2>&1 &&
15695: test "X`expr 00001 : '.*\(...\)'`" = X001; then
15696: as_expr=expr
15697: else
15698: as_expr=false
15699: fi
15700:
15701: if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15702: as_basename=basename
15703: else
15704: as_basename=false
15705: fi
15706:
15707: if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15708: as_dirname=dirname
15709: else
15710: as_dirname=false
15711: fi
15712:
15713: as_me=`$as_basename -- "$0" ||
15714: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15715: X"$0" : 'X\(//\)$' \| \
15716: X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1.7 ! ohara 15717: printf "%s\n" X/"$0" |
1.1 noro 15718: sed '/^.*\/\([^/][^/]*\)\/*$/{
15719: s//\1/
15720: q
15721: }
15722: /^X\/\(\/\/\)$/{
15723: s//\1/
15724: q
15725: }
15726: /^X\/\(\/\).*/{
15727: s//\1/
15728: q
15729: }
15730: s/.*/./; q'`
15731:
15732: # Avoid depending upon Character Ranges.
15733: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15734: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15735: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15736: as_cr_digits='0123456789'
15737: as_cr_alnum=$as_cr_Letters$as_cr_digits
15738:
1.7 ! ohara 15739:
! 15740: # Determine whether it's possible to make 'echo' print without a newline.
! 15741: # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
! 15742: # for compatibility with existing Makefiles.
1.1 noro 15743: ECHO_C= ECHO_N= ECHO_T=
15744: case `echo -n x` in #(((((
15745: -n*)
15746: case `echo 'xy\c'` in
15747: *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15748: xy) ECHO_C='\c';;
15749: *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15750: ECHO_T=' ';;
15751: esac;;
15752: *)
15753: ECHO_N='-n';;
15754: esac
15755:
1.7 ! ohara 15756: # For backward compatibility with old third-party macros, we provide
! 15757: # the shell variables $as_echo and $as_echo_n. New code should use
! 15758: # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
! 15759: as_echo='printf %s\n'
! 15760: as_echo_n='printf %s'
! 15761:
1.1 noro 15762: rm -f conf$$ conf$$.exe conf$$.file
15763: if test -d conf$$.dir; then
15764: rm -f conf$$.dir/conf$$.file
15765: else
15766: rm -f conf$$.dir
15767: mkdir conf$$.dir 2>/dev/null
15768: fi
15769: if (echo >conf$$.file) 2>/dev/null; then
15770: if ln -s conf$$.file conf$$ 2>/dev/null; then
15771: as_ln_s='ln -s'
15772: # ... but there are two gotchas:
15773: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15774: # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15775: # In both cases, we have to default to `cp -pR'.
15776: ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15777: as_ln_s='cp -pR'
15778: elif ln conf$$.file conf$$ 2>/dev/null; then
15779: as_ln_s=ln
15780: else
15781: as_ln_s='cp -pR'
15782: fi
15783: else
15784: as_ln_s='cp -pR'
15785: fi
15786: rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15787: rmdir conf$$.dir 2>/dev/null
15788:
15789:
15790: # as_fn_mkdir_p
15791: # -------------
15792: # Create "$as_dir" as a directory, including parents if necessary.
15793: as_fn_mkdir_p ()
15794: {
15795:
15796: case $as_dir in #(
15797: -*) as_dir=./$as_dir;;
15798: esac
15799: test -d "$as_dir" || eval $as_mkdir_p || {
15800: as_dirs=
15801: while :; do
15802: case $as_dir in #(
1.7 ! ohara 15803: *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
1.1 noro 15804: *) as_qdir=$as_dir;;
15805: esac
15806: as_dirs="'$as_qdir' $as_dirs"
15807: as_dir=`$as_dirname -- "$as_dir" ||
15808: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15809: X"$as_dir" : 'X\(//\)[^/]' \| \
15810: X"$as_dir" : 'X\(//\)$' \| \
15811: X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
1.7 ! ohara 15812: printf "%s\n" X"$as_dir" |
1.1 noro 15813: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15814: s//\1/
15815: q
15816: }
15817: /^X\(\/\/\)[^/].*/{
15818: s//\1/
15819: q
15820: }
15821: /^X\(\/\/\)$/{
15822: s//\1/
15823: q
15824: }
15825: /^X\(\/\).*/{
15826: s//\1/
15827: q
15828: }
15829: s/.*/./; q'`
15830: test -d "$as_dir" && break
15831: done
15832: test -z "$as_dirs" || eval "mkdir $as_dirs"
15833: } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15834:
15835:
15836: } # as_fn_mkdir_p
15837: if mkdir -p . 2>/dev/null; then
15838: as_mkdir_p='mkdir -p "$as_dir"'
15839: else
15840: test -d ./-p && rmdir ./-p
15841: as_mkdir_p=false
15842: fi
15843:
15844:
15845: # as_fn_executable_p FILE
15846: # -----------------------
15847: # Test if FILE is an executable regular file.
15848: as_fn_executable_p ()
15849: {
15850: test -f "$1" && test -x "$1"
15851: } # as_fn_executable_p
15852: as_test_x='test -x'
15853: as_executable_p=as_fn_executable_p
15854:
15855: # Sed expression to map a string onto a valid CPP name.
15856: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15857:
15858: # Sed expression to map a string onto a valid variable name.
15859: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15860:
15861:
15862: exec 6>&1
15863: ## ----------------------------------- ##
15864: ## Main body of $CONFIG_STATUS script. ##
15865: ## ----------------------------------- ##
15866: _ASEOF
15867: test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15868:
15869: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15870: # Save the log message, to keep $0 and so on meaningful, and to
15871: # report actual input values of CONFIG_FILES etc. instead of their
15872: # values after options handling.
15873: ac_log="
1.5 ohara 15874: This file was extended by asir $as_me 1.16, which was
1.7 ! ohara 15875: generated by GNU Autoconf 2.71. Invocation command line was
1.1 noro 15876:
15877: CONFIG_FILES = $CONFIG_FILES
15878: CONFIG_HEADERS = $CONFIG_HEADERS
15879: CONFIG_LINKS = $CONFIG_LINKS
15880: CONFIG_COMMANDS = $CONFIG_COMMANDS
15881: $ $0 $@
15882:
15883: on `(hostname || uname -n) 2>/dev/null | sed 1q`
15884: "
15885:
15886: _ACEOF
15887:
15888: case $ac_config_files in *"
15889: "*) set x $ac_config_files; shift; ac_config_files=$*;;
15890: esac
15891:
15892:
15893:
15894: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15895: # Files that config.status was made for.
15896: config_files="$ac_config_files"
15897: config_commands="$ac_config_commands"
15898:
15899: _ACEOF
15900:
15901: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15902: ac_cs_usage="\
15903: \`$as_me' instantiates files and other configuration actions
15904: from templates according to the current configuration. Unless the files
15905: and actions are specified as TAGs, all are instantiated by default.
15906:
15907: Usage: $0 [OPTION]... [TAG]...
15908:
15909: -h, --help print this help, then exit
15910: -V, --version print version number and configuration settings, then exit
15911: --config print configuration, then exit
15912: -q, --quiet, --silent
15913: do not print progress messages
15914: -d, --debug don't remove temporary files
15915: --recheck update $as_me by reconfiguring in the same conditions
15916: --file=FILE[:TEMPLATE]
15917: instantiate the configuration file FILE
15918:
15919: Configuration files:
15920: $config_files
15921:
15922: Configuration commands:
15923: $config_commands
15924:
15925: Report bugs to the package provider."
15926:
15927: _ACEOF
1.7 ! ohara 15928: ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
! 15929: ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
1.1 noro 15930: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1.7 ! ohara 15931: ac_cs_config='$ac_cs_config_escaped'
1.1 noro 15932: ac_cs_version="\\
1.5 ohara 15933: asir config.status 1.16
1.7 ! ohara 15934: configured by $0, generated by GNU Autoconf 2.71,
1.1 noro 15935: with options \\"\$ac_cs_config\\"
15936:
1.7 ! ohara 15937: Copyright (C) 2021 Free Software Foundation, Inc.
1.1 noro 15938: This config.status script is free software; the Free Software Foundation
15939: gives unlimited permission to copy, distribute and modify it."
15940:
15941: ac_pwd='$ac_pwd'
15942: srcdir='$srcdir'
15943: INSTALL='$INSTALL'
15944: MKDIR_P='$MKDIR_P'
15945: AWK='$AWK'
15946: test -n "\$AWK" || AWK=awk
15947: _ACEOF
15948:
15949: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15950: # The default lists apply if the user does not specify any file.
15951: ac_need_defaults=:
15952: while test $# != 0
15953: do
15954: case $1 in
15955: --*=?*)
15956: ac_option=`expr "X$1" : 'X\([^=]*\)='`
15957: ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15958: ac_shift=:
15959: ;;
15960: --*=)
15961: ac_option=`expr "X$1" : 'X\([^=]*\)='`
15962: ac_optarg=
15963: ac_shift=:
15964: ;;
15965: *)
15966: ac_option=$1
15967: ac_optarg=$2
15968: ac_shift=shift
15969: ;;
15970: esac
15971:
15972: case $ac_option in
15973: # Handling of the options.
15974: -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15975: ac_cs_recheck=: ;;
15976: --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
1.7 ! ohara 15977: printf "%s\n" "$ac_cs_version"; exit ;;
1.1 noro 15978: --config | --confi | --conf | --con | --co | --c )
1.7 ! ohara 15979: printf "%s\n" "$ac_cs_config"; exit ;;
1.1 noro 15980: --debug | --debu | --deb | --de | --d | -d )
15981: debug=: ;;
15982: --file | --fil | --fi | --f )
15983: $ac_shift
15984: case $ac_optarg in
1.7 ! ohara 15985: *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
1.1 noro 15986: '') as_fn_error $? "missing file argument" ;;
15987: esac
15988: as_fn_append CONFIG_FILES " '$ac_optarg'"
15989: ac_need_defaults=false;;
15990: --he | --h | --help | --hel | -h )
1.7 ! ohara 15991: printf "%s\n" "$ac_cs_usage"; exit ;;
1.1 noro 15992: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15993: | -silent | --silent | --silen | --sile | --sil | --si | --s)
15994: ac_cs_silent=: ;;
15995:
15996: # This is an error.
15997: -*) as_fn_error $? "unrecognized option: \`$1'
15998: Try \`$0 --help' for more information." ;;
15999:
16000: *) as_fn_append ac_config_targets " $1"
16001: ac_need_defaults=false ;;
16002:
16003: esac
16004: shift
16005: done
16006:
16007: ac_configure_extra_args=
16008:
16009: if $ac_cs_silent; then
16010: exec 6>/dev/null
16011: ac_configure_extra_args="$ac_configure_extra_args --silent"
16012: fi
16013:
16014: _ACEOF
16015: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16016: if \$ac_cs_recheck; then
16017: set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16018: shift
1.7 ! ohara 16019: \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
1.1 noro 16020: CONFIG_SHELL='$SHELL'
16021: export CONFIG_SHELL
16022: exec "\$@"
16023: fi
16024:
16025: _ACEOF
16026: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16027: exec 5>>config.log
16028: {
16029: echo
16030: sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16031: ## Running $as_me. ##
16032: _ASBOX
1.7 ! ohara 16033: printf "%s\n" "$ac_log"
1.1 noro 16034: } >&5
16035:
16036: _ACEOF
16037: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16038: #
16039: # INIT-COMMANDS
16040: #
1.5 ohara 16041: AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
16042:
16043:
16044: # The HP-UX ksh and POSIX shell print the target directory to stdout
16045: # if CDPATH is set.
16046: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16047:
16048: sed_quote_subst='$sed_quote_subst'
16049: double_quote_subst='$double_quote_subst'
16050: delay_variable_subst='$delay_variable_subst'
16051: macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16052: macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16053: enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16054: enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16055: pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16056: enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16057: shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
16058: SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16059: ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16060: PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
16061: host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16062: host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16063: host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16064: build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16065: build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16066: build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16067: SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16068: Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16069: GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16070: EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16071: FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16072: LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16073: NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16074: LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16075: max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16076: ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16077: exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16078: lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16079: lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16080: lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16081: lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
16082: lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
16083: reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16084: reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
1.7 ! ohara 16085: FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
1.5 ohara 16086: OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16087: deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16088: file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16089: file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
16090: want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
16091: DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
16092: sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
16093: AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
1.7 ! ohara 16094: lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
1.5 ohara 16095: AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16096: archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
16097: STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16098: RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16099: old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16100: old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16101: old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16102: lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16103: CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16104: CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16105: compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16106: GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16107: lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16108: lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16109: lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
16110: lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16111: lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
16112: lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
16113: nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
16114: lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
16115: lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
16116: objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16117: MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16118: lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16119: lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16120: lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16121: lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16122: lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16123: need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16124: MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
16125: DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16126: NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16127: LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16128: OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16129: OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16130: libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16131: shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16132: extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16133: archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16134: enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16135: export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16136: whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16137: compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16138: old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16139: old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16140: archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16141: archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16142: module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16143: module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16144: with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16145: allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16146: no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16147: hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16148: hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16149: hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16150: hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16151: hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16152: hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16153: hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16154: inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16155: link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16156: always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16157: export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16158: exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16159: include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16160: prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16161: postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
16162: file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16163: variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16164: need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16165: need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16166: version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16167: runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16168: shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16169: shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16170: libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16171: library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16172: soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16173: install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16174: postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16175: postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16176: finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16177: finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16178: hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16179: sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16180: configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
16181: configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
16182: hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16183: enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16184: enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16185: enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16186: old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16187: striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16188:
16189: LTCC='$LTCC'
16190: LTCFLAGS='$LTCFLAGS'
16191: compiler='$compiler_DEFAULT'
16192:
16193: # A function that is used when there is no print builtin or printf.
16194: func_fallback_echo ()
16195: {
16196: eval 'cat <<_LTECHO_EOF
16197: \$1
16198: _LTECHO_EOF'
16199: }
16200:
16201: # Quote evaled strings.
16202: for var in SHELL \
16203: ECHO \
16204: PATH_SEPARATOR \
16205: SED \
16206: GREP \
16207: EGREP \
16208: FGREP \
16209: LD \
16210: NM \
16211: LN_S \
16212: lt_SP2NL \
16213: lt_NL2SP \
16214: reload_flag \
1.7 ! ohara 16215: FILECMD \
1.5 ohara 16216: OBJDUMP \
16217: deplibs_check_method \
16218: file_magic_cmd \
16219: file_magic_glob \
16220: want_nocaseglob \
16221: DLLTOOL \
16222: sharedlib_from_linklib_cmd \
16223: AR \
16224: archiver_list_spec \
16225: STRIP \
16226: RANLIB \
16227: CC \
16228: CFLAGS \
16229: compiler \
16230: lt_cv_sys_global_symbol_pipe \
16231: lt_cv_sys_global_symbol_to_cdecl \
16232: lt_cv_sys_global_symbol_to_import \
16233: lt_cv_sys_global_symbol_to_c_name_address \
16234: lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16235: lt_cv_nm_interface \
16236: nm_file_list_spec \
16237: lt_cv_truncate_bin \
16238: lt_prog_compiler_no_builtin_flag \
16239: lt_prog_compiler_pic \
16240: lt_prog_compiler_wl \
16241: lt_prog_compiler_static \
16242: lt_cv_prog_compiler_c_o \
16243: need_locks \
16244: MANIFEST_TOOL \
16245: DSYMUTIL \
16246: NMEDIT \
16247: LIPO \
16248: OTOOL \
16249: OTOOL64 \
16250: shrext_cmds \
16251: export_dynamic_flag_spec \
16252: whole_archive_flag_spec \
16253: compiler_needs_object \
16254: with_gnu_ld \
16255: allow_undefined_flag \
16256: no_undefined_flag \
16257: hardcode_libdir_flag_spec \
16258: hardcode_libdir_separator \
16259: exclude_expsyms \
16260: include_expsyms \
16261: file_list_spec \
16262: variables_saved_for_relink \
16263: libname_spec \
16264: library_names_spec \
16265: soname_spec \
16266: install_override_mode \
16267: finish_eval \
16268: old_striplib \
16269: striplib; do
16270: case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16271: *[\\\\\\\`\\"\\\$]*)
16272: eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
16273: ;;
16274: *)
16275: eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16276: ;;
16277: esac
16278: done
16279:
16280: # Double-quote double-evaled strings.
16281: for var in reload_cmds \
16282: old_postinstall_cmds \
16283: old_postuninstall_cmds \
16284: old_archive_cmds \
16285: extract_expsyms_cmds \
16286: old_archive_from_new_cmds \
16287: old_archive_from_expsyms_cmds \
16288: archive_cmds \
16289: archive_expsym_cmds \
16290: module_cmds \
16291: module_expsym_cmds \
16292: export_symbols_cmds \
16293: prelink_cmds \
16294: postlink_cmds \
16295: postinstall_cmds \
16296: postuninstall_cmds \
16297: finish_cmds \
16298: sys_lib_search_path_spec \
16299: configure_time_dlsearch_path \
16300: configure_time_lt_sys_library_path; do
16301: case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16302: *[\\\\\\\`\\"\\\$]*)
16303: eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
16304: ;;
16305: *)
16306: eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16307: ;;
16308: esac
16309: done
16310:
16311: ac_aux_dir='$ac_aux_dir'
16312:
16313: # See if we are running on zsh, and set the options that allow our
16314: # commands through without removal of \ escapes INIT.
16315: if test -n "\${ZSH_VERSION+set}"; then
16316: setopt NO_GLOB_SUBST
16317: fi
16318:
16319:
16320: PACKAGE='$PACKAGE'
16321: VERSION='$VERSION'
16322: RM='$RM'
16323: ofile='$ofile'
16324:
16325:
16326:
1.1 noro 16327:
16328: _ACEOF
16329:
16330: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16331:
16332: # Handling of arguments.
16333: for ac_config_target in $ac_config_targets
16334: do
16335: case $ac_config_target in
16336: "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
1.5 ohara 16337: "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
1.1 noro 16338: "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16339:
16340: *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16341: esac
16342: done
16343:
16344:
16345: # If the user did not use the arguments to specify the items to instantiate,
16346: # then the envvar interface is used. Set only those that are not.
16347: # We use the long form for the default assignment because of an extremely
16348: # bizarre bug on SunOS 4.1.3.
16349: if $ac_need_defaults; then
1.7 ! ohara 16350: test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
! 16351: test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
1.1 noro 16352: fi
16353:
16354: # Have a temporary directory for convenience. Make it in the build tree
16355: # simply because there is no reason against having it here, and in addition,
16356: # creating and moving files from /tmp can sometimes cause problems.
16357: # Hook for its removal unless debugging.
16358: # Note that there is a small window in which the directory will not be cleaned:
16359: # after its creation but before its name has been assigned to `$tmp'.
16360: $debug ||
16361: {
16362: tmp= ac_tmp=
16363: trap 'exit_status=$?
16364: : "${ac_tmp:=$tmp}"
16365: { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16366: ' 0
16367: trap 'as_fn_exit 1' 1 2 13 15
16368: }
16369: # Create a (secure) tmp directory for tmp files.
16370:
16371: {
16372: tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16373: test -d "$tmp"
16374: } ||
16375: {
16376: tmp=./conf$$-$RANDOM
16377: (umask 077 && mkdir "$tmp")
16378: } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16379: ac_tmp=$tmp
16380:
16381: # Set up the scripts for CONFIG_FILES section.
16382: # No need to generate them if there are no CONFIG_FILES.
16383: # This happens for instance with `./config.status config.h'.
16384: if test -n "$CONFIG_FILES"; then
16385:
16386:
16387: ac_cr=`echo X | tr X '\015'`
16388: # On cygwin, bash can eat \r inside `` if the user requested igncr.
16389: # But we know of no other shell where ac_cr would be empty at this
16390: # point, so we can use a bashism as a fallback.
16391: if test "x$ac_cr" = x; then
16392: eval ac_cr=\$\'\\r\'
16393: fi
16394: ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16395: if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16396: ac_cs_awk_cr='\\r'
16397: else
16398: ac_cs_awk_cr=$ac_cr
16399: fi
16400:
16401: echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16402: _ACEOF
16403:
16404:
16405: {
16406: echo "cat >conf$$subs.awk <<_ACEOF" &&
16407: echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16408: echo "_ACEOF"
16409: } >conf$$subs.sh ||
16410: as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16411: ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16412: ac_delim='%!_!# '
16413: for ac_last_try in false false false false false :; do
16414: . ./conf$$subs.sh ||
16415: as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16416:
16417: ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16418: if test $ac_delim_n = $ac_delim_num; then
16419: break
16420: elif $ac_last_try; then
16421: as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16422: else
16423: ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16424: fi
16425: done
16426: rm -f conf$$subs.sh
16427:
16428: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16429: cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16430: _ACEOF
16431: sed -n '
16432: h
16433: s/^/S["/; s/!.*/"]=/
16434: p
16435: g
16436: s/^[^!]*!//
16437: :repl
16438: t repl
16439: s/'"$ac_delim"'$//
16440: t delim
16441: :nl
16442: h
16443: s/\(.\{148\}\)..*/\1/
16444: t more1
16445: s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16446: p
16447: n
16448: b repl
16449: :more1
16450: s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16451: p
16452: g
16453: s/.\{148\}//
16454: t nl
16455: :delim
16456: h
16457: s/\(.\{148\}\)..*/\1/
16458: t more2
16459: s/["\\]/\\&/g; s/^/"/; s/$/"/
16460: p
16461: b
16462: :more2
16463: s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16464: p
16465: g
16466: s/.\{148\}//
16467: t delim
16468: ' <conf$$subs.awk | sed '
16469: /^[^""]/{
16470: N
16471: s/\n//
16472: }
16473: ' >>$CONFIG_STATUS || ac_write_fail=1
16474: rm -f conf$$subs.awk
16475: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16476: _ACAWK
16477: cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16478: for (key in S) S_is_set[key] = 1
16479: FS = ""
16480:
16481: }
16482: {
16483: line = $ 0
16484: nfields = split(line, field, "@")
16485: substed = 0
16486: len = length(field[1])
16487: for (i = 2; i < nfields; i++) {
16488: key = field[i]
16489: keylen = length(key)
16490: if (S_is_set[key]) {
16491: value = S[key]
16492: line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16493: len += length(value) + length(field[++i])
16494: substed = 1
16495: } else
16496: len += 1 + keylen
16497: }
16498:
16499: print line
16500: }
16501:
16502: _ACAWK
16503: _ACEOF
16504: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16505: if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16506: sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16507: else
16508: cat
16509: fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16510: || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16511: _ACEOF
16512:
16513: # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16514: # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16515: # trailing colons and then remove the whole line if VPATH becomes empty
16516: # (actually we leave an empty line to preserve line numbers).
16517: if test "x$srcdir" = x.; then
16518: ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16519: h
16520: s///
16521: s/^/:/
16522: s/[ ]*$/:/
16523: s/:\$(srcdir):/:/g
16524: s/:\${srcdir}:/:/g
16525: s/:@srcdir@:/:/g
16526: s/^:*//
16527: s/:*$//
16528: x
16529: s/\(=[ ]*\).*/\1/
16530: G
16531: s/\n//
16532: s/^[^=]*=[ ]*$//
16533: }'
16534: fi
16535:
16536: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16537: fi # test -n "$CONFIG_FILES"
16538:
16539:
16540: eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
16541: shift
16542: for ac_tag
16543: do
16544: case $ac_tag in
16545: :[FHLC]) ac_mode=$ac_tag; continue;;
16546: esac
16547: case $ac_mode$ac_tag in
16548: :[FHL]*:*);;
16549: :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16550: :[FH]-) ac_tag=-:-;;
16551: :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16552: esac
16553: ac_save_IFS=$IFS
16554: IFS=:
16555: set x $ac_tag
16556: IFS=$ac_save_IFS
16557: shift
16558: ac_file=$1
16559: shift
16560:
16561: case $ac_mode in
16562: :L) ac_source=$1;;
16563: :[FH])
16564: ac_file_inputs=
16565: for ac_f
16566: do
16567: case $ac_f in
16568: -) ac_f="$ac_tmp/stdin";;
16569: *) # Look for the file first in the build tree, then in the source tree
16570: # (if the path is not absolute). The absolute path cannot be DOS-style,
16571: # because $ac_f cannot contain `:'.
16572: test -f "$ac_f" ||
16573: case $ac_f in
16574: [\\/$]*) false;;
16575: *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16576: esac ||
16577: as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16578: esac
1.7 ! ohara 16579: case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
1.1 noro 16580: as_fn_append ac_file_inputs " '$ac_f'"
16581: done
16582:
16583: # Let's still pretend it is `configure' which instantiates (i.e., don't
16584: # use $as_me), people would be surprised to read:
16585: # /* config.h. Generated by config.status. */
16586: configure_input='Generated from '`
1.7 ! ohara 16587: printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
1.1 noro 16588: `' by configure.'
16589: if test x"$ac_file" != x-; then
16590: configure_input="$ac_file. $configure_input"
1.7 ! ohara 16591: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
! 16592: printf "%s\n" "$as_me: creating $ac_file" >&6;}
1.1 noro 16593: fi
16594: # Neutralize special characters interpreted by sed in replacement strings.
16595: case $configure_input in #(
16596: *\&* | *\|* | *\\* )
1.7 ! ohara 16597: ac_sed_conf_input=`printf "%s\n" "$configure_input" |
1.1 noro 16598: sed 's/[\\\\&|]/\\\\&/g'`;; #(
16599: *) ac_sed_conf_input=$configure_input;;
16600: esac
16601:
16602: case $ac_tag in
16603: *:-:* | *:-) cat >"$ac_tmp/stdin" \
16604: || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16605: esac
16606: ;;
16607: esac
16608:
16609: ac_dir=`$as_dirname -- "$ac_file" ||
16610: $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16611: X"$ac_file" : 'X\(//\)[^/]' \| \
16612: X"$ac_file" : 'X\(//\)$' \| \
16613: X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
1.7 ! ohara 16614: printf "%s\n" X"$ac_file" |
1.1 noro 16615: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16616: s//\1/
16617: q
16618: }
16619: /^X\(\/\/\)[^/].*/{
16620: s//\1/
16621: q
16622: }
16623: /^X\(\/\/\)$/{
16624: s//\1/
16625: q
16626: }
16627: /^X\(\/\).*/{
16628: s//\1/
16629: q
16630: }
16631: s/.*/./; q'`
16632: as_dir="$ac_dir"; as_fn_mkdir_p
16633: ac_builddir=.
16634:
16635: case "$ac_dir" in
16636: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16637: *)
1.7 ! ohara 16638: ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1.1 noro 16639: # A ".." for each directory in $ac_dir_suffix.
1.7 ! ohara 16640: ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1.1 noro 16641: case $ac_top_builddir_sub in
16642: "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16643: *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16644: esac ;;
16645: esac
16646: ac_abs_top_builddir=$ac_pwd
16647: ac_abs_builddir=$ac_pwd$ac_dir_suffix
16648: # for backward compatibility:
16649: ac_top_builddir=$ac_top_build_prefix
16650:
16651: case $srcdir in
16652: .) # We are building in place.
16653: ac_srcdir=.
16654: ac_top_srcdir=$ac_top_builddir_sub
16655: ac_abs_top_srcdir=$ac_pwd ;;
16656: [\\/]* | ?:[\\/]* ) # Absolute name.
16657: ac_srcdir=$srcdir$ac_dir_suffix;
16658: ac_top_srcdir=$srcdir
16659: ac_abs_top_srcdir=$srcdir ;;
16660: *) # Relative name.
16661: ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16662: ac_top_srcdir=$ac_top_build_prefix$srcdir
16663: ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16664: esac
16665: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16666:
16667:
16668: case $ac_mode in
16669: :F)
16670: #
16671: # CONFIG_FILE
16672: #
16673:
16674: case $INSTALL in
16675: [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16676: *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16677: esac
16678: ac_MKDIR_P=$MKDIR_P
16679: case $MKDIR_P in
16680: [\\/$]* | ?:[\\/]* ) ;;
16681: */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16682: esac
16683: _ACEOF
16684:
16685: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16686: # If the template does not know about datarootdir, expand it.
16687: # FIXME: This hack should be removed a few years after 2.60.
16688: ac_datarootdir_hack=; ac_datarootdir_seen=
16689: ac_sed_dataroot='
16690: /datarootdir/ {
16691: p
16692: q
16693: }
16694: /@datadir@/p
16695: /@docdir@/p
16696: /@infodir@/p
16697: /@localedir@/p
16698: /@mandir@/p'
16699: case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16700: *datarootdir*) ac_datarootdir_seen=yes;;
16701: *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
1.7 ! ohara 16702: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
! 16703: printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
1.1 noro 16704: _ACEOF
16705: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16706: ac_datarootdir_hack='
16707: s&@datadir@&$datadir&g
16708: s&@docdir@&$docdir&g
16709: s&@infodir@&$infodir&g
16710: s&@localedir@&$localedir&g
16711: s&@mandir@&$mandir&g
16712: s&\\\${datarootdir}&$datarootdir&g' ;;
16713: esac
16714: _ACEOF
16715:
16716: # Neutralize VPATH when `$srcdir' = `.'.
16717: # Shell code in configure.ac might set extrasub.
16718: # FIXME: do we really want to maintain this feature?
16719: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16720: ac_sed_extra="$ac_vpsub
16721: $extrasub
16722: _ACEOF
16723: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16724: :t
16725: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16726: s|@configure_input@|$ac_sed_conf_input|;t t
16727: s&@top_builddir@&$ac_top_builddir_sub&;t t
16728: s&@top_build_prefix@&$ac_top_build_prefix&;t t
16729: s&@srcdir@&$ac_srcdir&;t t
16730: s&@abs_srcdir@&$ac_abs_srcdir&;t t
16731: s&@top_srcdir@&$ac_top_srcdir&;t t
16732: s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16733: s&@builddir@&$ac_builddir&;t t
16734: s&@abs_builddir@&$ac_abs_builddir&;t t
16735: s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16736: s&@INSTALL@&$ac_INSTALL&;t t
16737: s&@MKDIR_P@&$ac_MKDIR_P&;t t
16738: $ac_datarootdir_hack
16739: "
16740: eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16741: >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16742:
16743: test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16744: { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16745: { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16746: "$ac_tmp/out"`; test -z "$ac_out"; } &&
1.7 ! ohara 16747: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
1.1 noro 16748: which seems to be undefined. Please make sure it is defined" >&5
1.7 ! ohara 16749: printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
1.1 noro 16750: which seems to be undefined. Please make sure it is defined" >&2;}
16751:
16752: rm -f "$ac_tmp/stdin"
16753: case $ac_file in
16754: -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16755: *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16756: esac \
16757: || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16758: ;;
16759:
16760:
1.7 ! ohara 16761: :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
! 16762: printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
1.1 noro 16763: ;;
16764: esac
16765:
16766:
16767: case $ac_file$ac_mode in
16768: "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16769: # Older Autoconf quotes --file arguments for eval, but not when files
16770: # are listed without --file. Let's play safe and only enable the eval
16771: # if we detect the quoting.
1.5 ohara 16772: # TODO: see whether this extra hack can be removed once we start
16773: # requiring Autoconf 2.70 or later.
16774: case $CONFIG_FILES in #(
16775: *\'*) :
16776: eval set x "$CONFIG_FILES" ;; #(
16777: *) :
16778: set x $CONFIG_FILES ;; #(
16779: *) :
16780: ;;
16781: esac
1.1 noro 16782: shift
1.5 ohara 16783: # Used to flag and report bootstrapping failures.
16784: am_rc=0
16785: for am_mf
1.1 noro 16786: do
16787: # Strip MF so we end up with the name of the file.
1.7 ! ohara 16788: am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
1.5 ohara 16789: # Check whether this is an Automake generated Makefile which includes
16790: # dependency-tracking related rules and includes.
16791: # Grep'ing the whole file directly is not great: AIX grep has a line
1.1 noro 16792: # limit of 2048, but all sed's we know have understand at least 4000.
1.5 ohara 16793: sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
16794: || continue
16795: am_dirpart=`$as_dirname -- "$am_mf" ||
16796: $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16797: X"$am_mf" : 'X\(//\)[^/]' \| \
16798: X"$am_mf" : 'X\(//\)$' \| \
16799: X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
1.7 ! ohara 16800: printf "%s\n" X"$am_mf" |
1.1 noro 16801: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16802: s//\1/
16803: q
16804: }
16805: /^X\(\/\/\)[^/].*/{
16806: s//\1/
16807: q
16808: }
16809: /^X\(\/\/\)$/{
16810: s//\1/
16811: q
16812: }
16813: /^X\(\/\).*/{
16814: s//\1/
16815: q
16816: }
16817: s/.*/./; q'`
1.5 ohara 16818: am_filepart=`$as_basename -- "$am_mf" ||
16819: $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
16820: X"$am_mf" : 'X\(//\)$' \| \
16821: X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
1.7 ! ohara 16822: printf "%s\n" X/"$am_mf" |
1.5 ohara 16823: sed '/^.*\/\([^/][^/]*\)\/*$/{
1.1 noro 16824: s//\1/
16825: q
16826: }
1.5 ohara 16827: /^X\/\(\/\/\)$/{
1.1 noro 16828: s//\1/
16829: q
16830: }
1.5 ohara 16831: /^X\/\(\/\).*/{
1.1 noro 16832: s//\1/
16833: q
16834: }
16835: s/.*/./; q'`
1.5 ohara 16836: { echo "$as_me:$LINENO: cd "$am_dirpart" \
16837: && sed -e '/# am--include-marker/d' "$am_filepart" \
16838: | $MAKE -f - am--depfiles" >&5
16839: (cd "$am_dirpart" \
16840: && sed -e '/# am--include-marker/d' "$am_filepart" \
16841: | $MAKE -f - am--depfiles) >&5 2>&5
16842: ac_status=$?
16843: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16844: (exit $ac_status); } || am_rc=$?
16845: done
16846: if test $am_rc -ne 0; then
1.7 ! ohara 16847: { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
! 16848: printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
1.5 ohara 16849: as_fn_error $? "Something went wrong bootstrapping makefile fragments
1.7 ! ohara 16850: for automatic dependency tracking. If GNU make was not used, consider
! 16851: re-running the configure script with MAKE=\"gmake\" (or whatever is
! 16852: necessary). You can also try re-running configure with the
1.5 ohara 16853: '--disable-dependency-tracking' option to at least be able to build
16854: the package (albeit without support for automatic dependency tracking).
16855: See \`config.log' for more details" "$LINENO" 5; }
16856: fi
16857: { am_dirpart=; unset am_dirpart;}
16858: { am_filepart=; unset am_filepart;}
16859: { am_mf=; unset am_mf;}
16860: { am_rc=; unset am_rc;}
16861: rm -f conftest-deps.mk
16862: }
16863: ;;
16864: "libtool":C)
16865:
16866: # See if we are running on zsh, and set the options that allow our
16867: # commands through without removal of \ escapes.
16868: if test -n "${ZSH_VERSION+set}"; then
16869: setopt NO_GLOB_SUBST
16870: fi
16871:
16872: cfgfile=${ofile}T
16873: trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16874: $RM "$cfgfile"
16875:
16876: cat <<_LT_EOF >> "$cfgfile"
16877: #! $SHELL
16878: # Generated automatically by $as_me ($PACKAGE) $VERSION
16879: # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16880: # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16881:
16882: # Provide generalized library-building support services.
16883: # Written by Gordon Matzigkeit, 1996
16884:
16885: # Copyright (C) 2014 Free Software Foundation, Inc.
16886: # This is free software; see the source for copying conditions. There is NO
16887: # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
16888:
16889: # GNU Libtool is free software; you can redistribute it and/or modify
16890: # it under the terms of the GNU General Public License as published by
16891: # the Free Software Foundation; either version 2 of of the License, or
16892: # (at your option) any later version.
16893: #
16894: # As a special exception to the GNU General Public License, if you
16895: # distribute this file as part of a program or library that is built
16896: # using GNU Libtool, you may include this file under the same
16897: # distribution terms that you use for the rest of that program.
16898: #
16899: # GNU Libtool is distributed in the hope that it will be useful, but
16900: # WITHOUT ANY WARRANTY; without even the implied warranty of
16901: # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16902: # GNU General Public License for more details.
16903: #
16904: # You should have received a copy of the GNU General Public License
16905: # along with this program. If not, see <http://www.gnu.org/licenses/>.
16906:
16907:
16908: # The names of the tagged configurations supported by this script.
16909: available_tags=''
16910:
16911: # Configured defaults for sys_lib_dlsearch_path munging.
16912: : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
16913:
16914: # ### BEGIN LIBTOOL CONFIG
16915:
16916: # Which release of libtool.m4 was used?
16917: macro_version=$macro_version
16918: macro_revision=$macro_revision
16919:
16920: # Whether or not to build shared libraries.
16921: build_libtool_libs=$enable_shared
16922:
16923: # Whether or not to build static libraries.
16924: build_old_libs=$enable_static
16925:
16926: # What type of objects to build.
16927: pic_mode=$pic_mode
16928:
16929: # Whether or not to optimize for fast installation.
16930: fast_install=$enable_fast_install
16931:
16932: # Shared archive member basename,for filename based shared library versioning on AIX.
16933: shared_archive_member_spec=$shared_archive_member_spec
16934:
16935: # Shell to use when invoking shell scripts.
16936: SHELL=$lt_SHELL
16937:
16938: # An echo program that protects backslashes.
16939: ECHO=$lt_ECHO
16940:
16941: # The PATH separator for the build system.
16942: PATH_SEPARATOR=$lt_PATH_SEPARATOR
16943:
16944: # The host system.
16945: host_alias=$host_alias
16946: host=$host
16947: host_os=$host_os
16948:
16949: # The build system.
16950: build_alias=$build_alias
16951: build=$build
16952: build_os=$build_os
16953:
16954: # A sed program that does not truncate output.
16955: SED=$lt_SED
16956:
16957: # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16958: Xsed="\$SED -e 1s/^X//"
16959:
16960: # A grep program that handles long lines.
16961: GREP=$lt_GREP
16962:
16963: # An ERE matcher.
16964: EGREP=$lt_EGREP
16965:
16966: # A literal string matcher.
16967: FGREP=$lt_FGREP
16968:
16969: # A BSD- or MS-compatible name lister.
16970: NM=$lt_NM
16971:
16972: # Whether we need soft or hard links.
16973: LN_S=$lt_LN_S
16974:
16975: # What is the maximum length of a command?
16976: max_cmd_len=$max_cmd_len
16977:
16978: # Object file suffix (normally "o").
16979: objext=$ac_objext
16980:
16981: # Executable file suffix (normally "").
16982: exeext=$exeext
16983:
16984: # whether the shell understands "unset".
16985: lt_unset=$lt_unset
16986:
16987: # turn spaces into newlines.
16988: SP2NL=$lt_lt_SP2NL
16989:
16990: # turn newlines into spaces.
16991: NL2SP=$lt_lt_NL2SP
16992:
16993: # convert \$build file names to \$host format.
16994: to_host_file_cmd=$lt_cv_to_host_file_cmd
16995:
16996: # convert \$build files to toolchain format.
16997: to_tool_file_cmd=$lt_cv_to_tool_file_cmd
16998:
1.7 ! ohara 16999: # A file(cmd) program that detects file types.
! 17000: FILECMD=$lt_FILECMD
! 17001:
1.5 ohara 17002: # An object symbol dumper.
17003: OBJDUMP=$lt_OBJDUMP
17004:
17005: # Method to check whether dependent libraries are shared objects.
17006: deplibs_check_method=$lt_deplibs_check_method
17007:
17008: # Command to use when deplibs_check_method = "file_magic".
17009: file_magic_cmd=$lt_file_magic_cmd
17010:
17011: # How to find potential files when deplibs_check_method = "file_magic".
17012: file_magic_glob=$lt_file_magic_glob
17013:
17014: # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
17015: want_nocaseglob=$lt_want_nocaseglob
17016:
17017: # DLL creation program.
17018: DLLTOOL=$lt_DLLTOOL
17019:
17020: # Command to associate shared and link libraries.
17021: sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
17022:
17023: # The archiver.
17024: AR=$lt_AR
17025:
1.7 ! ohara 17026: # Flags to create an archive (by configure).
! 17027: lt_ar_flags=$lt_ar_flags
! 17028:
1.5 ohara 17029: # Flags to create an archive.
1.7 ! ohara 17030: AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
1.5 ohara 17031:
17032: # How to feed a file listing to the archiver.
17033: archiver_list_spec=$lt_archiver_list_spec
17034:
17035: # A symbol stripping program.
17036: STRIP=$lt_STRIP
17037:
17038: # Commands used to install an old-style archive.
17039: RANLIB=$lt_RANLIB
17040: old_postinstall_cmds=$lt_old_postinstall_cmds
17041: old_postuninstall_cmds=$lt_old_postuninstall_cmds
17042:
17043: # Whether to use a lock for old archive extraction.
17044: lock_old_archive_extraction=$lock_old_archive_extraction
17045:
17046: # A C compiler.
17047: LTCC=$lt_CC
17048:
17049: # LTCC compiler flags.
17050: LTCFLAGS=$lt_CFLAGS
17051:
17052: # Take the output of nm and produce a listing of raw symbols and C names.
17053: global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17054:
17055: # Transform the output of nm in a proper C declaration.
17056: global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17057:
17058: # Transform the output of nm into a list of symbols to manually relocate.
17059: global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
17060:
17061: # Transform the output of nm in a C name address pair.
17062: global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17063:
17064: # Transform the output of nm in a C name address pair when lib prefix is needed.
17065: global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17066:
17067: # The name lister interface.
17068: nm_interface=$lt_lt_cv_nm_interface
17069:
17070: # Specify filename containing input files for \$NM.
17071: nm_file_list_spec=$lt_nm_file_list_spec
17072:
17073: # The root where to search for dependent libraries,and where our libraries should be installed.
17074: lt_sysroot=$lt_sysroot
17075:
17076: # Command to truncate a binary pipe.
17077: lt_truncate_bin=$lt_lt_cv_truncate_bin
17078:
17079: # The name of the directory that contains temporary libtool files.
17080: objdir=$objdir
17081:
17082: # Used to examine libraries when file_magic_cmd begins with "file".
17083: MAGIC_CMD=$MAGIC_CMD
17084:
17085: # Must we lock files when doing compilation?
17086: need_locks=$lt_need_locks
17087:
17088: # Manifest tool.
17089: MANIFEST_TOOL=$lt_MANIFEST_TOOL
17090:
17091: # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17092: DSYMUTIL=$lt_DSYMUTIL
17093:
17094: # Tool to change global to local symbols on Mac OS X.
17095: NMEDIT=$lt_NMEDIT
17096:
17097: # Tool to manipulate fat objects and archives on Mac OS X.
17098: LIPO=$lt_LIPO
17099:
17100: # ldd/readelf like tool for Mach-O binaries on Mac OS X.
17101: OTOOL=$lt_OTOOL
17102:
17103: # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17104: OTOOL64=$lt_OTOOL64
17105:
17106: # Old archive suffix (normally "a").
17107: libext=$libext
17108:
17109: # Shared library suffix (normally ".so").
17110: shrext_cmds=$lt_shrext_cmds
17111:
17112: # The commands to extract the exported symbol list from a shared archive.
17113: extract_expsyms_cmds=$lt_extract_expsyms_cmds
17114:
17115: # Variables whose values should be saved in libtool wrapper scripts and
17116: # restored at link time.
17117: variables_saved_for_relink=$lt_variables_saved_for_relink
17118:
17119: # Do we need the "lib" prefix for modules?
17120: need_lib_prefix=$need_lib_prefix
17121:
17122: # Do we need a version for libraries?
17123: need_version=$need_version
17124:
17125: # Library versioning type.
17126: version_type=$version_type
17127:
17128: # Shared library runtime path variable.
17129: runpath_var=$runpath_var
17130:
17131: # Shared library path variable.
17132: shlibpath_var=$shlibpath_var
17133:
17134: # Is shlibpath searched before the hard-coded library search path?
17135: shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17136:
17137: # Format of library name prefix.
17138: libname_spec=$lt_libname_spec
17139:
17140: # List of archive names. First name is the real one, the rest are links.
17141: # The last name is the one that the linker finds with -lNAME
17142: library_names_spec=$lt_library_names_spec
17143:
17144: # The coded name of the library, if different from the real name.
17145: soname_spec=$lt_soname_spec
17146:
17147: # Permission mode override for installation of shared libraries.
17148: install_override_mode=$lt_install_override_mode
17149:
17150: # Command to use after installation of a shared archive.
17151: postinstall_cmds=$lt_postinstall_cmds
17152:
17153: # Command to use after uninstallation of a shared archive.
17154: postuninstall_cmds=$lt_postuninstall_cmds
17155:
17156: # Commands used to finish a libtool library installation in a directory.
17157: finish_cmds=$lt_finish_cmds
17158:
17159: # As "finish_cmds", except a single script fragment to be evaled but
17160: # not shown.
17161: finish_eval=$lt_finish_eval
17162:
17163: # Whether we should hardcode library paths into libraries.
17164: hardcode_into_libs=$hardcode_into_libs
17165:
17166: # Compile-time system search path for libraries.
17167: sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17168:
17169: # Detected run-time system search path for libraries.
17170: sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
17171:
17172: # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
17173: configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
17174:
17175: # Whether dlopen is supported.
17176: dlopen_support=$enable_dlopen
17177:
17178: # Whether dlopen of programs is supported.
17179: dlopen_self=$enable_dlopen_self
17180:
17181: # Whether dlopen of statically linked programs is supported.
17182: dlopen_self_static=$enable_dlopen_self_static
17183:
17184: # Commands to strip libraries.
17185: old_striplib=$lt_old_striplib
17186: striplib=$lt_striplib
17187:
17188:
17189: # The linker used to build libraries.
17190: LD=$lt_LD
17191:
17192: # How to create reloadable object files.
17193: reload_flag=$lt_reload_flag
17194: reload_cmds=$lt_reload_cmds
17195:
17196: # Commands used to build an old-style archive.
17197: old_archive_cmds=$lt_old_archive_cmds
17198:
17199: # A language specific compiler.
17200: CC=$lt_compiler
17201:
17202: # Is the compiler the GNU compiler?
17203: with_gcc=$GCC
17204:
17205: # Compiler flag to turn off builtin functions.
17206: no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17207:
17208: # Additional compiler flags for building library objects.
17209: pic_flag=$lt_lt_prog_compiler_pic
17210:
17211: # How to pass a linker flag through the compiler.
17212: wl=$lt_lt_prog_compiler_wl
17213:
17214: # Compiler flag to prevent dynamic linking.
17215: link_static_flag=$lt_lt_prog_compiler_static
17216:
17217: # Does compiler simultaneously support -c and -o options?
17218: compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17219:
17220: # Whether or not to add -lc for building shared libraries.
17221: build_libtool_need_lc=$archive_cmds_need_lc
17222:
17223: # Whether or not to disallow shared libs when runtime libs are static.
17224: allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17225:
17226: # Compiler flag to allow reflexive dlopens.
17227: export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17228:
17229: # Compiler flag to generate shared objects directly from archives.
17230: whole_archive_flag_spec=$lt_whole_archive_flag_spec
17231:
17232: # Whether the compiler copes with passing no objects directly.
17233: compiler_needs_object=$lt_compiler_needs_object
17234:
17235: # Create an old-style archive from a shared archive.
17236: old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17237:
17238: # Create a temporary old-style archive to link instead of a shared archive.
17239: old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17240:
17241: # Commands used to build a shared archive.
17242: archive_cmds=$lt_archive_cmds
17243: archive_expsym_cmds=$lt_archive_expsym_cmds
17244:
17245: # Commands used to build a loadable module if different from building
17246: # a shared archive.
17247: module_cmds=$lt_module_cmds
17248: module_expsym_cmds=$lt_module_expsym_cmds
17249:
17250: # Whether we are building with GNU ld or not.
17251: with_gnu_ld=$lt_with_gnu_ld
17252:
17253: # Flag that allows shared libraries with undefined symbols to be built.
17254: allow_undefined_flag=$lt_allow_undefined_flag
17255:
17256: # Flag that enforces no undefined symbols.
17257: no_undefined_flag=$lt_no_undefined_flag
17258:
17259: # Flag to hardcode \$libdir into a binary during linking.
17260: # This must work even if \$libdir does not exist
17261: hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17262:
17263: # Whether we need a single "-rpath" flag with a separated argument.
17264: hardcode_libdir_separator=$lt_hardcode_libdir_separator
17265:
17266: # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
17267: # DIR into the resulting binary.
17268: hardcode_direct=$hardcode_direct
17269:
17270: # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
17271: # DIR into the resulting binary and the resulting library dependency is
17272: # "absolute",i.e impossible to change by setting \$shlibpath_var if the
17273: # library is relocated.
17274: hardcode_direct_absolute=$hardcode_direct_absolute
17275:
17276: # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17277: # into the resulting binary.
17278: hardcode_minus_L=$hardcode_minus_L
17279:
17280: # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17281: # into the resulting binary.
17282: hardcode_shlibpath_var=$hardcode_shlibpath_var
17283:
17284: # Set to "yes" if building a shared library automatically hardcodes DIR
17285: # into the library and all subsequent libraries and executables linked
17286: # against it.
17287: hardcode_automatic=$hardcode_automatic
17288:
17289: # Set to yes if linker adds runtime paths of dependent libraries
17290: # to runtime path list.
17291: inherit_rpath=$inherit_rpath
17292:
17293: # Whether libtool must link a program against all its dependency libraries.
17294: link_all_deplibs=$link_all_deplibs
17295:
17296: # Set to "yes" if exported symbols are required.
17297: always_export_symbols=$always_export_symbols
17298:
17299: # The commands to list exported symbols.
17300: export_symbols_cmds=$lt_export_symbols_cmds
17301:
17302: # Symbols that should not be listed in the preloaded symbols.
17303: exclude_expsyms=$lt_exclude_expsyms
17304:
17305: # Symbols that must always be exported.
17306: include_expsyms=$lt_include_expsyms
17307:
17308: # Commands necessary for linking programs (against libraries) with templates.
17309: prelink_cmds=$lt_prelink_cmds
17310:
17311: # Commands necessary for finishing linking programs.
17312: postlink_cmds=$lt_postlink_cmds
17313:
17314: # Specify filename containing input files.
17315: file_list_spec=$lt_file_list_spec
17316:
17317: # How to hardcode a shared library path into an executable.
17318: hardcode_action=$hardcode_action
17319:
17320: # ### END LIBTOOL CONFIG
17321:
17322: _LT_EOF
17323:
17324: cat <<'_LT_EOF' >> "$cfgfile"
17325:
17326: # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
17327:
17328: # func_munge_path_list VARIABLE PATH
17329: # -----------------------------------
17330: # VARIABLE is name of variable containing _space_ separated list of
17331: # directories to be munged by the contents of PATH, which is string
17332: # having a format:
17333: # "DIR[:DIR]:"
17334: # string "DIR[ DIR]" will be prepended to VARIABLE
17335: # ":DIR[:DIR]"
17336: # string "DIR[ DIR]" will be appended to VARIABLE
17337: # "DIRP[:DIRP]::[DIRA:]DIRA"
17338: # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
17339: # "DIRA[ DIRA]" will be appended to VARIABLE
17340: # "DIR[:DIR]"
17341: # VARIABLE will be replaced by "DIR[ DIR]"
17342: func_munge_path_list ()
17343: {
17344: case x$2 in
17345: x)
17346: ;;
17347: *:)
17348: eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
17349: ;;
17350: x:*)
17351: eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
17352: ;;
17353: *::*)
17354: eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
17355: eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
17356: ;;
17357: *)
17358: eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
17359: ;;
17360: esac
17361: }
17362:
17363:
17364: # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
17365: func_cc_basename ()
17366: {
17367: for cc_temp in $*""; do
17368: case $cc_temp in
17369: compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17370: distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17371: \-*) ;;
17372: *) break;;
17373: esac
1.1 noro 17374: done
1.5 ohara 17375: func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
1.1 noro 17376: }
1.5 ohara 17377:
17378:
17379: # ### END FUNCTIONS SHARED WITH CONFIGURE
17380:
17381: _LT_EOF
17382:
17383: case $host_os in
17384: aix3*)
17385: cat <<\_LT_EOF >> "$cfgfile"
17386: # AIX sometimes has problems with the GCC collect2 program. For some
17387: # reason, if we set the COLLECT_NAMES environment variable, the problems
17388: # vanish in a puff of smoke.
17389: if test set != "${COLLECT_NAMES+set}"; then
17390: COLLECT_NAMES=
17391: export COLLECT_NAMES
17392: fi
17393: _LT_EOF
17394: ;;
17395: esac
17396:
17397:
1.7 ! ohara 17398:
1.5 ohara 17399: ltmain=$ac_aux_dir/ltmain.sh
17400:
17401:
17402: # We use sed instead of cat because bash on DJGPP gets confused if
17403: # if finds mixed CR/LF and LF-only lines. Since sed operates in
17404: # text mode, it properly converts lines to CR/LF. This bash problem
17405: # is reportedly fixed, but why not run on old versions too?
1.7 ! ohara 17406: $SED '$q' "$ltmain" >> "$cfgfile" \
1.5 ohara 17407: || (rm -f "$cfgfile"; exit 1)
17408:
17409: mv -f "$cfgfile" "$ofile" ||
17410: (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17411: chmod +x "$ofile"
17412:
1.1 noro 17413: ;;
17414:
17415: esac
17416: done # for ac_tag
17417:
17418:
17419: as_fn_exit 0
17420: _ACEOF
17421: ac_clean_files=$ac_clean_files_save
17422:
17423: test $ac_write_fail = 0 ||
17424: as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17425:
17426:
17427: # configure is writing to config.log, and then calls config.status.
17428: # config.status does its own redirection, appending to config.log.
17429: # Unfortunately, on DOS this fails, as config.log is still kept open
17430: # by configure, so config.status won't be able to write to it; its
17431: # output is simply discarded. So we exec the FD to /dev/null,
17432: # effectively closing config.log, so it can be properly (re)opened and
17433: # appended to by config.status. When coming back to configure, we
17434: # need to make the FD available again.
17435: if test "$no_create" != yes; then
17436: ac_cs_success=:
17437: ac_config_status_args=
17438: test "$silent" = yes &&
17439: ac_config_status_args="$ac_config_status_args --quiet"
17440: exec 5>/dev/null
17441: $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17442: exec 5>>config.log
17443: # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17444: # would make configure fail if this is the last instruction.
17445: $ac_cs_success || as_fn_exit 1
17446: fi
17447: if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
1.7 ! ohara 17448: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
! 17449: printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
1.1 noro 17450: fi
17451:
1.7 ! ohara 17452:
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>