Annotation of OpenXM_contrib2/asir2018/configure, Revision 1.6
1.1 noro 1: #! /bin/sh
2: # Guess values for system-dependent variables and create Makefiles.
1.5 ohara 3: # Generated by GNU Autoconf 2.69 for asir 1.16.
1.1 noro 4: #
5: #
6: # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7: #
8: #
9: # This configure script is free software; the Free Software Foundation
10: # gives unlimited permission to copy, distribute and modify it.
11: ## -------------------- ##
12: ## M4sh Initialization. ##
13: ## -------------------- ##
14:
15: # Be more Bourne compatible
16: DUALCASE=1; export DUALCASE # for MKS sh
17: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18: emulate sh
19: NULLCMD=:
20: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21: # is contrary to our usage. Disable this feature.
22: alias -g '${1+"$@"}'='"$@"'
23: setopt NO_GLOB_SUBST
24: else
25: case `(set -o) 2>/dev/null` in #(
26: *posix*) :
27: set -o posix ;; #(
28: *) :
29: ;;
30: esac
31: fi
32:
33:
34: as_nl='
35: '
36: export as_nl
37: # Printing a long string crashes Solaris 7 /usr/bin/printf.
38: as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41: # Prefer a ksh shell builtin over an external printf program on Solaris,
42: # but without wasting forks for bash or zsh.
43: if test -z "$BASH_VERSION$ZSH_VERSION" \
44: && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45: as_echo='print -r --'
46: as_echo_n='print -rn --'
47: elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48: as_echo='printf %s\n'
49: as_echo_n='printf %s'
50: else
51: if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52: as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53: as_echo_n='/usr/ucb/echo -n'
54: else
55: as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56: as_echo_n_body='eval
57: arg=$1;
58: case $arg in #(
59: *"$as_nl"*)
60: expr "X$arg" : "X\\(.*\\)$as_nl";
61: arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62: esac;
63: expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64: '
65: export as_echo_n_body
66: as_echo_n='sh -c $as_echo_n_body as_echo'
67: fi
68: export as_echo_body
69: as_echo='sh -c $as_echo_body as_echo'
70: fi
71:
72: # The user is always right.
73: if test "${PATH_SEPARATOR+set}" != set; then
74: PATH_SEPARATOR=:
75: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76: (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77: PATH_SEPARATOR=';'
78: }
79: fi
80:
81:
82: # IFS
83: # We need space, tab and new line, in precisely that order. Quoting is
84: # there to prevent editors from complaining about space-tab.
85: # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86: # splitting by setting IFS to empty value.)
87: IFS=" "" $as_nl"
88:
89: # Find who we are. Look in the path if we contain no directory separator.
90: as_myself=
91: case $0 in #((
92: *[\\/]* ) as_myself=$0 ;;
93: *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94: for as_dir in $PATH
95: do
96: IFS=$as_save_IFS
97: test -z "$as_dir" && as_dir=.
98: test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
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
110: $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111: exit 1
112: fi
113:
114: # Unset variables that we do not need and which cause bugs (e.g. in
115: # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116: # suppresses any "Segmentation fault" message there. '((' could
117: # trigger a bug in pdksh 5.2.14.
118: for as_var in BASH_ENV ENV MAIL MAILPATH
119: do eval test x\${$as_var+set} = xset \
120: && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121: done
122: PS1='$ '
123: PS2='> '
124: PS4='+ '
125:
126: # NLS nuisances.
127: LC_ALL=C
128: export LC_ALL
129: LANGUAGE=C
130: export LANGUAGE
131:
132: # CDPATH.
133: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134:
135: # Use a proper internal environment variable to ensure we don't fall
136: # into an infinite loop, continuously re-executing ourselves.
137: if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138: _as_can_reexec=no; export _as_can_reexec;
139: # We cannot yet assume a decent shell, so we have to provide a
140: # neutralization value for shells without unset; and this also
141: # works around shells that cannot unset nonexistent variables.
142: # Preserve -v and -x to the replacement shell.
143: BASH_ENV=/dev/null
144: ENV=/dev/null
145: (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146: case $- in # ((((
147: *v*x* | *x*v* ) as_opts=-vx ;;
148: *v* ) as_opts=-v ;;
149: *x* ) as_opts=-x ;;
150: * ) as_opts= ;;
151: esac
152: exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153: # Admittedly, this is quite paranoid, since all the known shells bail
154: # out after a failed `exec'.
155: $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156: as_fn_exit 255
157: fi
158: # We don't want this to propagate to other subprocesses.
159: { _as_can_reexec=; unset _as_can_reexec;}
160: if test "x$CONFIG_SHELL" = x; then
161: as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162: emulate sh
163: NULLCMD=:
164: # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165: # is contrary to our usage. Disable this feature.
166: alias -g '\${1+\"\$@\"}'='\"\$@\"'
167: setopt NO_GLOB_SUBST
168: else
169: case \`(set -o) 2>/dev/null\` in #(
170: *posix*) :
171: set -o posix ;; #(
172: *) :
173: ;;
174: esac
175: fi
176: "
177: as_required="as_fn_return () { (exit \$1); }
178: as_fn_success () { as_fn_return 0; }
179: as_fn_failure () { as_fn_return 1; }
180: as_fn_ret_success () { return 0; }
181: as_fn_ret_failure () { return 1; }
182:
183: exitcode=0
184: as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185: as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186: as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187: as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188: if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189:
190: else
191: exitcode=1; echo positional parameters were not saved.
192: fi
193: test x\$exitcode = x0 || exit 1
194: test -x / || exit 1"
195: as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196: as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197: eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198: test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
1.5 ohara 199:
200: test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
201: ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
202: ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
203: ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204: PATH=/empty FPATH=/empty; export PATH FPATH
205: test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
206: || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
1.1 noro 207: test \$(( 1 + 1 )) = 2 || exit 1"
208: if (eval "$as_required") 2>/dev/null; then :
209: as_have_required=yes
210: else
211: as_have_required=no
212: fi
213: if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
214:
215: else
216: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
217: as_found=false
218: for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
219: do
220: IFS=$as_save_IFS
221: test -z "$as_dir" && as_dir=.
222: as_found=:
223: case $as_dir in #(
224: /*)
225: for as_base in sh bash ksh sh5; do
226: # Try only shells that exist, to save several forks.
227: as_shell=$as_dir/$as_base
228: if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229: { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230: CONFIG_SHELL=$as_shell as_have_required=yes
231: if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
232: break 2
233: fi
234: fi
235: done;;
236: esac
237: as_found=false
238: done
239: $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240: { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241: CONFIG_SHELL=$SHELL as_have_required=yes
242: fi; }
243: IFS=$as_save_IFS
244:
245:
246: if test "x$CONFIG_SHELL" != x; then :
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'.
264: $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
265: exit 255
266: fi
267:
268: if test x$as_have_required = xno; then :
269: $as_echo "$0: This script requires a shell more modern than all"
270: $as_echo "$0: the shells that I found on your system."
271: if test x${ZSH_VERSION+set} = xset ; then
272: $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273: $as_echo "$0: be upgraded to zsh 4.3.4 or later."
274: else
275: $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
276: $0: including any error possibly output before this
277: $0: message. Then install a modern shell, or manually run
278: $0: the script under such a shell if you do have one."
279: fi
280: exit 1
281: fi
282: fi
283: fi
284: SHELL=${CONFIG_SHELL-/bin/sh}
285: export SHELL
286: # Unset more variables known to interfere with behavior of common tools.
287: CLICOLOR_FORCE= GREP_OPTIONS=
288: unset CLICOLOR_FORCE GREP_OPTIONS
289:
290: ## --------------------- ##
291: ## M4sh Shell Functions. ##
292: ## --------------------- ##
293: # as_fn_unset VAR
294: # ---------------
295: # Portably unset VAR.
296: as_fn_unset ()
297: {
298: { eval $1=; unset $1;}
299: }
300: as_unset=as_fn_unset
301:
302: # as_fn_set_status STATUS
303: # -----------------------
304: # Set $? to STATUS, without forking.
305: as_fn_set_status ()
306: {
307: return $1
308: } # as_fn_set_status
309:
310: # as_fn_exit STATUS
311: # -----------------
312: # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
313: as_fn_exit ()
314: {
315: set +e
316: as_fn_set_status $1
317: exit $1
318: } # as_fn_exit
319:
320: # as_fn_mkdir_p
321: # -------------
322: # Create "$as_dir" as a directory, including parents if necessary.
323: as_fn_mkdir_p ()
324: {
325:
326: case $as_dir in #(
327: -*) as_dir=./$as_dir;;
328: esac
329: test -d "$as_dir" || eval $as_mkdir_p || {
330: as_dirs=
331: while :; do
332: case $as_dir in #(
333: *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
334: *) as_qdir=$as_dir;;
335: esac
336: as_dirs="'$as_qdir' $as_dirs"
337: as_dir=`$as_dirname -- "$as_dir" ||
338: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339: X"$as_dir" : 'X\(//\)[^/]' \| \
340: X"$as_dir" : 'X\(//\)$' \| \
341: X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342: $as_echo X"$as_dir" |
343: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
344: s//\1/
345: q
346: }
347: /^X\(\/\/\)[^/].*/{
348: s//\1/
349: q
350: }
351: /^X\(\/\/\)$/{
352: s//\1/
353: q
354: }
355: /^X\(\/\).*/{
356: s//\1/
357: q
358: }
359: s/.*/./; q'`
360: test -d "$as_dir" && break
361: done
362: test -z "$as_dirs" || eval "mkdir $as_dirs"
363: } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
364:
365:
366: } # as_fn_mkdir_p
367:
368: # as_fn_executable_p FILE
369: # -----------------------
370: # Test if FILE is an executable regular file.
371: as_fn_executable_p ()
372: {
373: test -f "$1" && test -x "$1"
374: } # as_fn_executable_p
375: # as_fn_append VAR VALUE
376: # ----------------------
377: # Append the text in VALUE to the end of the definition contained in VAR. Take
378: # advantage of any shell optimizations that allow amortized linear growth over
379: # repeated appends, instead of the typical quadratic growth present in naive
380: # implementations.
381: if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382: eval 'as_fn_append ()
383: {
384: eval $1+=\$2
385: }'
386: else
387: as_fn_append ()
388: {
389: eval $1=\$$1\$2
390: }
391: fi # as_fn_append
392:
393: # as_fn_arith ARG...
394: # ------------------
395: # Perform arithmetic evaluation on the ARGs, and store the result in the
396: # global $as_val. Take advantage of shells that can avoid forks. The arguments
397: # must be portable across $(()) and expr.
398: if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
399: eval 'as_fn_arith ()
400: {
401: as_val=$(( $* ))
402: }'
403: else
404: as_fn_arith ()
405: {
406: as_val=`expr "$@" || test $? -eq 1`
407: }
408: fi # as_fn_arith
409:
410:
411: # as_fn_error STATUS ERROR [LINENO LOG_FD]
412: # ----------------------------------------
413: # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414: # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415: # script with STATUS, using 1 if that was 0.
416: as_fn_error ()
417: {
418: as_status=$1; test $as_status -eq 0 && as_status=1
419: if test "$4"; then
420: as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421: $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
422: fi
423: $as_echo "$as_me: error: $2" >&2
424: as_fn_exit $as_status
425: } # as_fn_error
426:
427: if expr a : '\(a\)' >/dev/null 2>&1 &&
428: test "X`expr 00001 : '.*\(...\)'`" = X001; then
429: as_expr=expr
430: else
431: as_expr=false
432: fi
433:
434: if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435: as_basename=basename
436: else
437: as_basename=false
438: fi
439:
440: if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441: as_dirname=dirname
442: else
443: as_dirname=false
444: fi
445:
446: as_me=`$as_basename -- "$0" ||
447: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448: X"$0" : 'X\(//\)$' \| \
449: X"$0" : 'X\(/\)' \| . 2>/dev/null ||
450: $as_echo X/"$0" |
451: sed '/^.*\/\([^/][^/]*\)\/*$/{
452: s//\1/
453: q
454: }
455: /^X\/\(\/\/\)$/{
456: s//\1/
457: q
458: }
459: /^X\/\(\/\).*/{
460: s//\1/
461: q
462: }
463: s/.*/./; q'`
464:
465: # Avoid depending upon Character Ranges.
466: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469: as_cr_digits='0123456789'
470: as_cr_alnum=$as_cr_Letters$as_cr_digits
471:
472:
473: as_lineno_1=$LINENO as_lineno_1a=$LINENO
474: as_lineno_2=$LINENO as_lineno_2a=$LINENO
475: eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476: test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477: # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
478: sed -n '
479: p
480: /[$]LINENO/=
481: ' <$as_myself |
482: sed '
483: s/[$]LINENO.*/&-/
484: t lineno
485: b
486: :lineno
487: N
488: :loop
489: s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
490: t loop
491: s/-\n.*//
492: ' >$as_me.lineno &&
493: chmod +x "$as_me.lineno" ||
494: { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
495:
496: # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497: # already done that, so ensure we don't try to do so again and fall
498: # in an infinite loop. This has already happened in practice.
499: _as_can_reexec=no; export _as_can_reexec
500: # Don't try to exec as it changes $[0], causing all sort of problems
501: # (the dirname of $[0] is not the place where we might find the
502: # original and so on. Autoconf is especially sensitive to this).
503: . "./$as_me.lineno"
504: # Exit status is that of the last command.
505: exit
506: }
507:
508: ECHO_C= ECHO_N= ECHO_T=
509: case `echo -n x` in #(((((
510: -n*)
511: case `echo 'xy\c'` in
512: *c*) ECHO_T=' ';; # ECHO_T is single tab character.
513: xy) ECHO_C='\c';;
514: *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
515: ECHO_T=' ';;
516: esac;;
517: *)
518: ECHO_N='-n';;
519: esac
520:
521: rm -f conf$$ conf$$.exe conf$$.file
522: if test -d conf$$.dir; then
523: rm -f conf$$.dir/conf$$.file
524: else
525: rm -f conf$$.dir
526: mkdir conf$$.dir 2>/dev/null
527: fi
528: if (echo >conf$$.file) 2>/dev/null; then
529: if ln -s conf$$.file conf$$ 2>/dev/null; then
530: as_ln_s='ln -s'
531: # ... but there are two gotchas:
532: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533: # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
534: # In both cases, we have to default to `cp -pR'.
535: ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
536: as_ln_s='cp -pR'
537: elif ln conf$$.file conf$$ 2>/dev/null; then
538: as_ln_s=ln
539: else
540: as_ln_s='cp -pR'
541: fi
542: else
543: as_ln_s='cp -pR'
544: fi
545: rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546: rmdir conf$$.dir 2>/dev/null
547:
548: if mkdir -p . 2>/dev/null; then
549: as_mkdir_p='mkdir -p "$as_dir"'
550: else
551: test -d ./-p && rmdir ./-p
552: as_mkdir_p=false
553: fi
554:
555: as_test_x='test -x'
556: as_executable_p=as_fn_executable_p
557:
558: # Sed expression to map a string onto a valid CPP name.
559: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
560:
561: # Sed expression to map a string onto a valid variable name.
562: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
563:
1.5 ohara 564: SHELL=${CONFIG_SHELL-/bin/sh}
565:
1.1 noro 566:
567: test -n "$DJDIR" || exec 7<&0 </dev/null
568: exec 6>&1
569:
570: # Name of the host.
571: # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
572: # so uname gets run too.
573: ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
574:
575: #
576: # Initializations.
577: #
578: ac_default_prefix=/usr/local
579: ac_clean_files=
580: ac_config_libobj_dir=.
581: LIBOBJS=
582: cross_compiling=no
583: subdirs=
584: MFLAGS=
585: MAKEFLAGS=
586:
587: # Identity of this package.
588: PACKAGE_NAME='asir'
589: PACKAGE_TARNAME='asir'
1.5 ohara 590: PACKAGE_VERSION='1.16'
591: PACKAGE_STRING='asir 1.16'
1.1 noro 592: PACKAGE_BUGREPORT=''
593: PACKAGE_URL=''
594:
595: ac_unique_file="LICENSE"
596: # Factoring default headers for most tests.
597: ac_includes_default="\
598: #include <stdio.h>
599: #ifdef HAVE_SYS_TYPES_H
600: # include <sys/types.h>
601: #endif
602: #ifdef HAVE_SYS_STAT_H
603: # include <sys/stat.h>
604: #endif
605: #ifdef STDC_HEADERS
606: # include <stdlib.h>
607: # include <stddef.h>
608: #else
609: # ifdef HAVE_STDLIB_H
610: # include <stdlib.h>
611: # endif
612: #endif
613: #ifdef HAVE_STRING_H
614: # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
615: # include <memory.h>
616: # endif
617: # include <string.h>
618: #endif
619: #ifdef HAVE_STRINGS_H
620: # include <strings.h>
621: #endif
622: #ifdef HAVE_INTTYPES_H
623: # include <inttypes.h>
624: #endif
625: #ifdef HAVE_STDINT_H
626: # include <stdint.h>
627: #endif
628: #ifdef HAVE_UNISTD_H
629: # include <unistd.h>
630: #endif"
631:
632: ac_subst_vars='am__EXEEXT_FALSE
633: am__EXEEXT_TRUE
634: LTLIBOBJS
635: LIBOBJS
636: WSLIB
637: USE_GC_SPARC64
1.5 ohara 638: sufx
1.1 noro 639: LAPACKLIB
640: FEPLIB
641: GMPLIB
642: USE_PLOT_FALSE
643: USE_PLOT_TRUE
644: XPMLIB
645: GCINC
646: GCLIB
1.6 ! ohara 647: ASIR_STATIC_FALSE
! 648: ASIR_STATIC_TRUE
1.1 noro 649: X_EXTRA_LIBS
650: X_LIBS
651: X_PRE_LIBS
652: X_CFLAGS
653: XMKMF
654: YFLAGS
655: YACC
1.5 ohara 656: CPP
657: LT_SYS_LIBRARY_PATH
658: OTOOL64
659: OTOOL
660: LIPO
661: NMEDIT
662: DSYMUTIL
663: MANIFEST_TOOL
1.1 noro 664: RANLIB
1.5 ohara 665: ac_ct_AR
666: AR
667: DLLTOOL
668: OBJDUMP
1.1 noro 669: LN_S
1.5 ohara 670: NM
671: ac_ct_DUMPBIN
672: DUMPBIN
673: LD
674: FGREP
675: EGREP
676: GREP
677: SED
1.1 noro 678: am__fastdepCC_FALSE
679: am__fastdepCC_TRUE
680: CCDEPMODE
681: am__nodep
682: AMDEPBACKSLASH
683: AMDEP_FALSE
684: AMDEP_TRUE
685: am__include
686: DEPDIR
687: OBJEXT
688: EXEEXT
689: ac_ct_CC
690: CPPFLAGS
691: LDFLAGS
692: CFLAGS
693: CC
1.5 ohara 694: LIBTOOL
1.1 noro 695: MAINT
696: MAINTAINER_MODE_FALSE
697: MAINTAINER_MODE_TRUE
698: AM_BACKSLASH
699: AM_DEFAULT_VERBOSITY
700: AM_DEFAULT_V
701: AM_V
702: am__untar
703: am__tar
704: AMTAR
705: am__leading_dot
706: SET_MAKE
707: AWK
708: mkdir_p
709: MKDIR_P
710: INSTALL_STRIP_PROGRAM
711: STRIP
712: install_sh
713: MAKEINFO
714: AUTOHEADER
715: AUTOMAKE
716: AUTOCONF
717: ACLOCAL
718: VERSION
719: PACKAGE
720: CYGPATH_W
721: am__isrc
722: INSTALL_DATA
723: INSTALL_SCRIPT
724: INSTALL_PROGRAM
725: target_os
726: target_vendor
727: target_cpu
728: target
729: host_os
730: host_vendor
731: host_cpu
732: host
733: build_os
734: build_vendor
735: build_cpu
736: build
737: target_alias
738: host_alias
739: build_alias
740: LIBS
741: ECHO_T
742: ECHO_N
743: ECHO_C
744: DEFS
745: mandir
746: localedir
747: libdir
748: psdir
749: pdfdir
750: dvidir
751: htmldir
752: infodir
753: docdir
754: oldincludedir
755: includedir
756: localstatedir
757: sharedstatedir
758: sysconfdir
759: datadir
760: datarootdir
761: libexecdir
762: sbindir
763: bindir
764: program_transform_name
765: prefix
766: exec_prefix
767: PACKAGE_URL
768: PACKAGE_BUGREPORT
769: PACKAGE_STRING
770: PACKAGE_VERSION
771: PACKAGE_TARNAME
772: PACKAGE_NAME
773: PATH_SEPARATOR
1.5 ohara 774: SHELL
775: am__quote'
1.1 noro 776: ac_subst_files=''
777: ac_user_opts='
778: enable_option_checking
779: enable_silent_rules
780: enable_maintainer_mode
1.5 ohara 781: enable_shared
782: enable_static
783: with_pic
784: enable_fast_install
785: with_aix_soname
1.1 noro 786: enable_dependency_tracking
1.5 ohara 787: with_gnu_ld
788: with_sysroot
789: enable_libtool_lock
1.1 noro 790: with_x
1.6 ! ohara 791: enable_static_asir
1.1 noro 792: with_asir_gc
793: enable_plot
794: enable_static_gmp
795: enable_interval
796: enable_fft_float
797: with_mpi
798: '
799: ac_precious_vars='build_alias
800: host_alias
801: target_alias
802: CC
803: CFLAGS
804: LDFLAGS
805: LIBS
806: CPPFLAGS
1.5 ohara 807: LT_SYS_LIBRARY_PATH
808: CPP
1.1 noro 809: YACC
810: YFLAGS
1.5 ohara 811: XMKMF'
1.1 noro 812:
813:
814: # Initialize some variables set by options.
815: ac_init_help=
816: ac_init_version=false
817: ac_unrecognized_opts=
818: ac_unrecognized_sep=
819: # The variables have the same names as the options, with
820: # dashes changed to underlines.
821: cache_file=/dev/null
822: exec_prefix=NONE
823: no_create=
824: no_recursion=
825: prefix=NONE
826: program_prefix=NONE
827: program_suffix=NONE
828: program_transform_name=s,x,x,
829: silent=
830: site=
831: srcdir=
832: verbose=
833: x_includes=NONE
834: x_libraries=NONE
835:
836: # Installation directory options.
837: # These are left unexpanded so users can "make install exec_prefix=/foo"
838: # and all the variables that are supposed to be based on exec_prefix
839: # by default will actually change.
840: # Use braces instead of parens because sh, perl, etc. also accept them.
841: # (The list follows the same order as the GNU Coding Standards.)
842: bindir='${exec_prefix}/bin'
843: sbindir='${exec_prefix}/sbin'
844: libexecdir='${exec_prefix}/libexec'
845: datarootdir='${prefix}/share'
846: datadir='${datarootdir}'
847: sysconfdir='${prefix}/etc'
848: sharedstatedir='${prefix}/com'
849: localstatedir='${prefix}/var'
850: includedir='${prefix}/include'
851: oldincludedir='/usr/include'
852: docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
853: infodir='${datarootdir}/info'
854: htmldir='${docdir}'
855: dvidir='${docdir}'
856: pdfdir='${docdir}'
857: psdir='${docdir}'
858: libdir='${exec_prefix}/lib'
859: localedir='${datarootdir}/locale'
860: mandir='${datarootdir}/man'
861:
862: ac_prev=
863: ac_dashdash=
864: for ac_option
865: do
866: # If the previous option needs an argument, assign it.
867: if test -n "$ac_prev"; then
868: eval $ac_prev=\$ac_option
869: ac_prev=
870: continue
871: fi
872:
873: case $ac_option in
874: *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
875: *=) ac_optarg= ;;
876: *) ac_optarg=yes ;;
877: esac
878:
879: # Accept the important Cygnus configure options, so we can diagnose typos.
880:
881: case $ac_dashdash$ac_option in
882: --)
883: ac_dashdash=yes ;;
884:
885: -bindir | --bindir | --bindi | --bind | --bin | --bi)
886: ac_prev=bindir ;;
887: -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
888: bindir=$ac_optarg ;;
889:
890: -build | --build | --buil | --bui | --bu)
891: ac_prev=build_alias ;;
892: -build=* | --build=* | --buil=* | --bui=* | --bu=*)
893: build_alias=$ac_optarg ;;
894:
895: -cache-file | --cache-file | --cache-fil | --cache-fi \
896: | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
897: ac_prev=cache_file ;;
898: -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
899: | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
900: cache_file=$ac_optarg ;;
901:
902: --config-cache | -C)
903: cache_file=config.cache ;;
904:
905: -datadir | --datadir | --datadi | --datad)
906: ac_prev=datadir ;;
907: -datadir=* | --datadir=* | --datadi=* | --datad=*)
908: datadir=$ac_optarg ;;
909:
910: -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
911: | --dataroo | --dataro | --datar)
912: ac_prev=datarootdir ;;
913: -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
914: | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
915: datarootdir=$ac_optarg ;;
916:
917: -disable-* | --disable-*)
918: ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
919: # Reject names that are not valid shell variable names.
920: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
921: as_fn_error $? "invalid feature name: $ac_useropt"
922: ac_useropt_orig=$ac_useropt
923: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
924: case $ac_user_opts in
925: *"
926: "enable_$ac_useropt"
927: "*) ;;
928: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
929: ac_unrecognized_sep=', ';;
930: esac
931: eval enable_$ac_useropt=no ;;
932:
933: -docdir | --docdir | --docdi | --doc | --do)
934: ac_prev=docdir ;;
935: -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
936: docdir=$ac_optarg ;;
937:
938: -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
939: ac_prev=dvidir ;;
940: -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
941: dvidir=$ac_optarg ;;
942:
943: -enable-* | --enable-*)
944: ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
945: # Reject names that are not valid shell variable names.
946: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
947: as_fn_error $? "invalid feature name: $ac_useropt"
948: ac_useropt_orig=$ac_useropt
949: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
950: case $ac_user_opts in
951: *"
952: "enable_$ac_useropt"
953: "*) ;;
954: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
955: ac_unrecognized_sep=', ';;
956: esac
957: eval enable_$ac_useropt=\$ac_optarg ;;
958:
959: -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
960: | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
961: | --exec | --exe | --ex)
962: ac_prev=exec_prefix ;;
963: -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
964: | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
965: | --exec=* | --exe=* | --ex=*)
966: exec_prefix=$ac_optarg ;;
967:
968: -gas | --gas | --ga | --g)
969: # Obsolete; use --with-gas.
970: with_gas=yes ;;
971:
972: -help | --help | --hel | --he | -h)
973: ac_init_help=long ;;
974: -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
975: ac_init_help=recursive ;;
976: -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
977: ac_init_help=short ;;
978:
979: -host | --host | --hos | --ho)
980: ac_prev=host_alias ;;
981: -host=* | --host=* | --hos=* | --ho=*)
982: host_alias=$ac_optarg ;;
983:
984: -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
985: ac_prev=htmldir ;;
986: -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
987: | --ht=*)
988: htmldir=$ac_optarg ;;
989:
990: -includedir | --includedir | --includedi | --included | --include \
991: | --includ | --inclu | --incl | --inc)
992: ac_prev=includedir ;;
993: -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
994: | --includ=* | --inclu=* | --incl=* | --inc=*)
995: includedir=$ac_optarg ;;
996:
997: -infodir | --infodir | --infodi | --infod | --info | --inf)
998: ac_prev=infodir ;;
999: -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1000: infodir=$ac_optarg ;;
1001:
1002: -libdir | --libdir | --libdi | --libd)
1003: ac_prev=libdir ;;
1004: -libdir=* | --libdir=* | --libdi=* | --libd=*)
1005: libdir=$ac_optarg ;;
1006:
1007: -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1008: | --libexe | --libex | --libe)
1009: ac_prev=libexecdir ;;
1010: -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1011: | --libexe=* | --libex=* | --libe=*)
1012: libexecdir=$ac_optarg ;;
1013:
1014: -localedir | --localedir | --localedi | --localed | --locale)
1015: ac_prev=localedir ;;
1016: -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1017: localedir=$ac_optarg ;;
1018:
1019: -localstatedir | --localstatedir | --localstatedi | --localstated \
1020: | --localstate | --localstat | --localsta | --localst | --locals)
1021: ac_prev=localstatedir ;;
1022: -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1023: | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1024: localstatedir=$ac_optarg ;;
1025:
1026: -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1027: ac_prev=mandir ;;
1028: -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1029: mandir=$ac_optarg ;;
1030:
1031: -nfp | --nfp | --nf)
1032: # Obsolete; use --without-fp.
1033: with_fp=no ;;
1034:
1035: -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1036: | --no-cr | --no-c | -n)
1037: no_create=yes ;;
1038:
1039: -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1040: | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1041: no_recursion=yes ;;
1042:
1043: -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1044: | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1045: | --oldin | --oldi | --old | --ol | --o)
1046: ac_prev=oldincludedir ;;
1047: -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1048: | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1049: | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1050: oldincludedir=$ac_optarg ;;
1051:
1052: -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1053: ac_prev=prefix ;;
1054: -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1055: prefix=$ac_optarg ;;
1056:
1057: -program-prefix | --program-prefix | --program-prefi | --program-pref \
1058: | --program-pre | --program-pr | --program-p)
1059: ac_prev=program_prefix ;;
1060: -program-prefix=* | --program-prefix=* | --program-prefi=* \
1061: | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1062: program_prefix=$ac_optarg ;;
1063:
1064: -program-suffix | --program-suffix | --program-suffi | --program-suff \
1065: | --program-suf | --program-su | --program-s)
1066: ac_prev=program_suffix ;;
1067: -program-suffix=* | --program-suffix=* | --program-suffi=* \
1068: | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1069: program_suffix=$ac_optarg ;;
1070:
1071: -program-transform-name | --program-transform-name \
1072: | --program-transform-nam | --program-transform-na \
1073: | --program-transform-n | --program-transform- \
1074: | --program-transform | --program-transfor \
1075: | --program-transfo | --program-transf \
1076: | --program-trans | --program-tran \
1077: | --progr-tra | --program-tr | --program-t)
1078: ac_prev=program_transform_name ;;
1079: -program-transform-name=* | --program-transform-name=* \
1080: | --program-transform-nam=* | --program-transform-na=* \
1081: | --program-transform-n=* | --program-transform-=* \
1082: | --program-transform=* | --program-transfor=* \
1083: | --program-transfo=* | --program-transf=* \
1084: | --program-trans=* | --program-tran=* \
1085: | --progr-tra=* | --program-tr=* | --program-t=*)
1086: program_transform_name=$ac_optarg ;;
1087:
1088: -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1089: ac_prev=pdfdir ;;
1090: -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1091: pdfdir=$ac_optarg ;;
1092:
1093: -psdir | --psdir | --psdi | --psd | --ps)
1094: ac_prev=psdir ;;
1095: -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1096: psdir=$ac_optarg ;;
1097:
1098: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1099: | -silent | --silent | --silen | --sile | --sil)
1100: silent=yes ;;
1101:
1102: -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1103: ac_prev=sbindir ;;
1104: -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1105: | --sbi=* | --sb=*)
1106: sbindir=$ac_optarg ;;
1107:
1108: -sharedstatedir | --sharedstatedir | --sharedstatedi \
1109: | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1110: | --sharedst | --shareds | --shared | --share | --shar \
1111: | --sha | --sh)
1112: ac_prev=sharedstatedir ;;
1113: -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1114: | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1115: | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1116: | --sha=* | --sh=*)
1117: sharedstatedir=$ac_optarg ;;
1118:
1119: -site | --site | --sit)
1120: ac_prev=site ;;
1121: -site=* | --site=* | --sit=*)
1122: site=$ac_optarg ;;
1123:
1124: -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1125: ac_prev=srcdir ;;
1126: -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1127: srcdir=$ac_optarg ;;
1128:
1129: -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1130: | --syscon | --sysco | --sysc | --sys | --sy)
1131: ac_prev=sysconfdir ;;
1132: -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1133: | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1134: sysconfdir=$ac_optarg ;;
1135:
1136: -target | --target | --targe | --targ | --tar | --ta | --t)
1137: ac_prev=target_alias ;;
1138: -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1139: target_alias=$ac_optarg ;;
1140:
1141: -v | -verbose | --verbose | --verbos | --verbo | --verb)
1142: verbose=yes ;;
1143:
1144: -version | --version | --versio | --versi | --vers | -V)
1145: ac_init_version=: ;;
1146:
1147: -with-* | --with-*)
1148: ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1149: # Reject names that are not valid shell variable names.
1150: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1151: as_fn_error $? "invalid package name: $ac_useropt"
1152: ac_useropt_orig=$ac_useropt
1153: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1154: case $ac_user_opts in
1155: *"
1156: "with_$ac_useropt"
1157: "*) ;;
1158: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1159: ac_unrecognized_sep=', ';;
1160: esac
1161: eval with_$ac_useropt=\$ac_optarg ;;
1162:
1163: -without-* | --without-*)
1164: ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1165: # Reject names that are not valid shell variable names.
1166: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1167: as_fn_error $? "invalid package name: $ac_useropt"
1168: ac_useropt_orig=$ac_useropt
1169: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1170: case $ac_user_opts in
1171: *"
1172: "with_$ac_useropt"
1173: "*) ;;
1174: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1175: ac_unrecognized_sep=', ';;
1176: esac
1177: eval with_$ac_useropt=no ;;
1178:
1179: --x)
1180: # Obsolete; use --with-x.
1181: with_x=yes ;;
1182:
1183: -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1184: | --x-incl | --x-inc | --x-in | --x-i)
1185: ac_prev=x_includes ;;
1186: -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1187: | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1188: x_includes=$ac_optarg ;;
1189:
1190: -x-libraries | --x-libraries | --x-librarie | --x-librari \
1191: | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1192: ac_prev=x_libraries ;;
1193: -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1194: | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1195: x_libraries=$ac_optarg ;;
1196:
1197: -*) as_fn_error $? "unrecognized option: \`$ac_option'
1198: Try \`$0 --help' for more information"
1199: ;;
1200:
1201: *=*)
1202: ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1203: # Reject names that are not valid shell variable names.
1204: case $ac_envvar in #(
1205: '' | [0-9]* | *[!_$as_cr_alnum]* )
1206: as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1207: esac
1208: eval $ac_envvar=\$ac_optarg
1209: export $ac_envvar ;;
1210:
1211: *)
1212: # FIXME: should be removed in autoconf 3.0.
1213: $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1214: expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1215: $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1216: : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1217: ;;
1218:
1219: esac
1220: done
1221:
1222: if test -n "$ac_prev"; then
1223: ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1224: as_fn_error $? "missing argument to $ac_option"
1225: fi
1226:
1227: if test -n "$ac_unrecognized_opts"; then
1228: case $enable_option_checking in
1229: no) ;;
1230: fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1231: *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1232: esac
1233: fi
1234:
1235: # Check all directory arguments for consistency.
1236: for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1237: datadir sysconfdir sharedstatedir localstatedir includedir \
1238: oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1.5 ohara 1239: libdir localedir mandir
1.1 noro 1240: do
1241: eval ac_val=\$$ac_var
1242: # Remove trailing slashes.
1243: case $ac_val in
1244: */ )
1245: ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1246: eval $ac_var=\$ac_val;;
1247: esac
1248: # Be sure to have absolute directory names.
1249: case $ac_val in
1250: [\\/$]* | ?:[\\/]* ) continue;;
1251: NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1252: esac
1253: as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1254: done
1255:
1256: # There might be people who depend on the old broken behavior: `$host'
1257: # used to hold the argument of --host etc.
1258: # FIXME: To remove some day.
1259: build=$build_alias
1260: host=$host_alias
1261: target=$target_alias
1262:
1263: # FIXME: To remove some day.
1264: if test "x$host_alias" != x; then
1265: if test "x$build_alias" = x; then
1266: cross_compiling=maybe
1267: elif test "x$build_alias" != "x$host_alias"; then
1268: cross_compiling=yes
1269: fi
1270: fi
1271:
1272: ac_tool_prefix=
1273: test -n "$host_alias" && ac_tool_prefix=$host_alias-
1274:
1275: test "$silent" = yes && exec 6>/dev/null
1276:
1277:
1278: ac_pwd=`pwd` && test -n "$ac_pwd" &&
1279: ac_ls_di=`ls -di .` &&
1280: ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1281: as_fn_error $? "working directory cannot be determined"
1282: test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1283: as_fn_error $? "pwd does not report name of working directory"
1284:
1285:
1286: # Find the source files, if location was not specified.
1287: if test -z "$srcdir"; then
1288: ac_srcdir_defaulted=yes
1289: # Try the directory containing this script, then the parent directory.
1290: ac_confdir=`$as_dirname -- "$as_myself" ||
1291: $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1292: X"$as_myself" : 'X\(//\)[^/]' \| \
1293: X"$as_myself" : 'X\(//\)$' \| \
1294: X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1295: $as_echo X"$as_myself" |
1296: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1297: s//\1/
1298: q
1299: }
1300: /^X\(\/\/\)[^/].*/{
1301: s//\1/
1302: q
1303: }
1304: /^X\(\/\/\)$/{
1305: s//\1/
1306: q
1307: }
1308: /^X\(\/\).*/{
1309: s//\1/
1310: q
1311: }
1312: s/.*/./; q'`
1313: srcdir=$ac_confdir
1314: if test ! -r "$srcdir/$ac_unique_file"; then
1315: srcdir=..
1316: fi
1317: else
1318: ac_srcdir_defaulted=no
1319: fi
1320: if test ! -r "$srcdir/$ac_unique_file"; then
1321: test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1322: as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1323: fi
1324: ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1325: ac_abs_confdir=`(
1326: cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1327: pwd)`
1328: # When building in place, set srcdir=.
1329: if test "$ac_abs_confdir" = "$ac_pwd"; then
1330: srcdir=.
1331: fi
1332: # Remove unnecessary trailing slashes from srcdir.
1333: # Double slashes in file names in object file debugging info
1334: # mess up M-x gdb in Emacs.
1335: case $srcdir in
1336: */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1337: esac
1338: for ac_var in $ac_precious_vars; do
1339: eval ac_env_${ac_var}_set=\${${ac_var}+set}
1340: eval ac_env_${ac_var}_value=\$${ac_var}
1341: eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1342: eval ac_cv_env_${ac_var}_value=\$${ac_var}
1343: done
1344:
1345: #
1346: # Report the --help message.
1347: #
1348: if test "$ac_init_help" = "long"; then
1349: # Omit some internal or obsolete options to make the list less imposing.
1350: # This message is too long to be a string in the A/UX 3.1 sh.
1351: cat <<_ACEOF
1.5 ohara 1352: \`configure' configures asir 1.16 to adapt to many kinds of systems.
1.1 noro 1353:
1354: Usage: $0 [OPTION]... [VAR=VALUE]...
1355:
1356: To assign environment variables (e.g., CC, CFLAGS...), specify them as
1357: VAR=VALUE. See below for descriptions of some of the useful variables.
1358:
1359: Defaults for the options are specified in brackets.
1360:
1361: Configuration:
1362: -h, --help display this help and exit
1363: --help=short display options specific to this package
1364: --help=recursive display the short help of all the included packages
1365: -V, --version display version information and exit
1366: -q, --quiet, --silent do not print \`checking ...' messages
1367: --cache-file=FILE cache test results in FILE [disabled]
1368: -C, --config-cache alias for \`--cache-file=config.cache'
1369: -n, --no-create do not create output files
1370: --srcdir=DIR find the sources in DIR [configure dir or \`..']
1371:
1372: Installation directories:
1373: --prefix=PREFIX install architecture-independent files in PREFIX
1374: [$ac_default_prefix]
1375: --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1376: [PREFIX]
1377:
1378: By default, \`make install' will install all the files in
1379: \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1380: an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1381: for instance \`--prefix=\$HOME'.
1382:
1383: For better control, use the options below.
1384:
1385: Fine tuning of the installation directories:
1386: --bindir=DIR user executables [EPREFIX/bin]
1387: --sbindir=DIR system admin executables [EPREFIX/sbin]
1388: --libexecdir=DIR program executables [EPREFIX/libexec]
1389: --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1390: --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1391: --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1392: --libdir=DIR object code libraries [EPREFIX/lib]
1393: --includedir=DIR C header files [PREFIX/include]
1394: --oldincludedir=DIR C header files for non-gcc [/usr/include]
1395: --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1396: --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1397: --infodir=DIR info documentation [DATAROOTDIR/info]
1398: --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1399: --mandir=DIR man documentation [DATAROOTDIR/man]
1400: --docdir=DIR documentation root [DATAROOTDIR/doc/asir]
1401: --htmldir=DIR html documentation [DOCDIR]
1402: --dvidir=DIR dvi documentation [DOCDIR]
1403: --pdfdir=DIR pdf documentation [DOCDIR]
1404: --psdir=DIR ps documentation [DOCDIR]
1405: _ACEOF
1406:
1407: cat <<\_ACEOF
1408:
1409: Program names:
1410: --program-prefix=PREFIX prepend PREFIX to installed program names
1411: --program-suffix=SUFFIX append SUFFIX to installed program names
1412: --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1413:
1414: X features:
1415: --x-includes=DIR X include files are in DIR
1416: --x-libraries=DIR X library files are in DIR
1417:
1418: System types:
1419: --build=BUILD configure for building on BUILD [guessed]
1420: --host=HOST cross-compile to build programs to run on HOST [BUILD]
1421: --target=TARGET configure for building compilers for TARGET [HOST]
1422: _ACEOF
1423: fi
1424:
1425: if test -n "$ac_init_help"; then
1426: case $ac_init_help in
1.5 ohara 1427: short | recursive ) echo "Configuration of asir 1.16:";;
1.1 noro 1428: esac
1429: cat <<\_ACEOF
1430:
1431: Optional Features:
1432: --disable-option-checking ignore unrecognized --enable/--with options
1433: --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1434: --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1435: --enable-silent-rules less verbose build output (undo: "make V=1")
1436: --disable-silent-rules verbose build output (undo: "make V=0")
1437: --enable-maintainer-mode
1438: enable make rules and dependencies not useful (and
1439: sometimes confusing) to the casual installer
1.5 ohara 1440: --enable-shared[=PKGS] build shared libraries [default=yes]
1441: --enable-static[=PKGS] build static libraries [default=yes]
1442: --enable-fast-install[=PKGS]
1443: optimize for fast installation [default=yes]
1.1 noro 1444: --enable-dependency-tracking
1445: do not reject slow dependency extractors
1446: --disable-dependency-tracking
1447: speeds up one-time build
1.5 ohara 1448: --disable-libtool-lock avoid locking (might break parallel builds)
1.6 ! ohara 1449: --enable-static-asir force to link statically with libasir. [yes]
1.1 noro 1450: --enable-plot enable plot feature. [no]
1451: --enable-static-gmp force to link statically with gmp. [no]
1452: --enable-interval enable interval feature. [no]
1453: --enable-fft-float enable FFT-FLOAT feature. [no]
1454:
1455: Optional Packages:
1456: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1457: --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1.5 ohara 1458: --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1459: both]
1460: --with-aix-soname=aix|svr4|both
1461: shared library versioning (aka "SONAME") variant to
1462: provide on AIX, [default=aix].
1463: --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1464: --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1465: compiler's sysroot if not specified).
1.1 noro 1466: --with-x use the X Window System
1467: --with-asir-gc modify Boehm's GC [yes]
1468: --with-mpi use the MPI library. [no]
1469:
1470: Some influential environment variables:
1471: CC C compiler command
1472: CFLAGS C compiler flags
1473: LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1474: nonstandard directory <lib dir>
1475: LIBS libraries to pass to the linker, e.g. -l<library>
1476: CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1477: you have headers in a nonstandard directory <include dir>
1.5 ohara 1478: LT_SYS_LIBRARY_PATH
1479: User-defined run-time library search path.
1480: CPP C preprocessor
1.1 noro 1481: YACC The `Yet Another Compiler Compiler' implementation to use.
1.5 ohara 1482: Defaults to the first program found out of: `bison -o y.tab.c',
1483: `byacc', `yacc'.
1.1 noro 1484: YFLAGS The list of arguments that will be passed by default to $YACC.
1485: This script will default YFLAGS to the empty string to avoid a
1486: default value of `-d' given by some make applications.
1487: XMKMF Path to xmkmf, Makefile generator for X Window System
1488:
1489: Use these variables to override the choices made by `configure' or to help
1490: it to find libraries and programs with nonstandard names/locations.
1491:
1492: Report bugs to the package provider.
1493: _ACEOF
1494: ac_status=$?
1495: fi
1496:
1497: if test "$ac_init_help" = "recursive"; then
1498: # If there are subdirs, report their specific --help.
1499: for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1500: test -d "$ac_dir" ||
1501: { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1502: continue
1503: ac_builddir=.
1504:
1505: case "$ac_dir" in
1506: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1507: *)
1508: ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1509: # A ".." for each directory in $ac_dir_suffix.
1510: ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1511: case $ac_top_builddir_sub in
1512: "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1513: *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1514: esac ;;
1515: esac
1516: ac_abs_top_builddir=$ac_pwd
1517: ac_abs_builddir=$ac_pwd$ac_dir_suffix
1518: # for backward compatibility:
1519: ac_top_builddir=$ac_top_build_prefix
1520:
1521: case $srcdir in
1522: .) # We are building in place.
1523: ac_srcdir=.
1524: ac_top_srcdir=$ac_top_builddir_sub
1525: ac_abs_top_srcdir=$ac_pwd ;;
1526: [\\/]* | ?:[\\/]* ) # Absolute name.
1527: ac_srcdir=$srcdir$ac_dir_suffix;
1528: ac_top_srcdir=$srcdir
1529: ac_abs_top_srcdir=$srcdir ;;
1530: *) # Relative name.
1531: ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1532: ac_top_srcdir=$ac_top_build_prefix$srcdir
1533: ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1534: esac
1535: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1536:
1537: cd "$ac_dir" || { ac_status=$?; continue; }
1538: # Check for guested configure.
1539: if test -f "$ac_srcdir/configure.gnu"; then
1540: echo &&
1541: $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1542: elif test -f "$ac_srcdir/configure"; then
1543: echo &&
1544: $SHELL "$ac_srcdir/configure" --help=recursive
1545: else
1546: $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1547: fi || ac_status=$?
1548: cd "$ac_pwd" || { ac_status=$?; break; }
1549: done
1550: fi
1551:
1552: test -n "$ac_init_help" && exit $ac_status
1553: if $ac_init_version; then
1554: cat <<\_ACEOF
1.5 ohara 1555: asir configure 1.16
1.1 noro 1556: generated by GNU Autoconf 2.69
1557:
1558: Copyright (C) 2012 Free Software Foundation, Inc.
1559: This configure script is free software; the Free Software Foundation
1560: gives unlimited permission to copy, distribute and modify it.
1561: _ACEOF
1562: exit
1563: fi
1564:
1565: ## ------------------------ ##
1566: ## Autoconf initialization. ##
1567: ## ------------------------ ##
1568:
1569: # ac_fn_c_try_compile LINENO
1570: # --------------------------
1571: # Try to compile conftest.$ac_ext, and return whether this succeeded.
1572: ac_fn_c_try_compile ()
1573: {
1574: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1575: rm -f conftest.$ac_objext
1576: if { { ac_try="$ac_compile"
1577: case "(($ac_try" in
1578: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1579: *) ac_try_echo=$ac_try;;
1580: esac
1581: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1582: $as_echo "$ac_try_echo"; } >&5
1583: (eval "$ac_compile") 2>conftest.err
1584: ac_status=$?
1585: if test -s conftest.err; then
1586: grep -v '^ *+' conftest.err >conftest.er1
1587: cat conftest.er1 >&5
1588: mv -f conftest.er1 conftest.err
1589: fi
1590: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1591: test $ac_status = 0; } && {
1592: test -z "$ac_c_werror_flag" ||
1593: test ! -s conftest.err
1594: } && test -s conftest.$ac_objext; then :
1595: ac_retval=0
1596: else
1597: $as_echo "$as_me: failed program was:" >&5
1598: sed 's/^/| /' conftest.$ac_ext >&5
1599:
1600: ac_retval=1
1601: fi
1602: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1603: as_fn_set_status $ac_retval
1604:
1605: } # ac_fn_c_try_compile
1606:
1.5 ohara 1607: # ac_fn_c_try_link LINENO
1608: # -----------------------
1609: # Try to link conftest.$ac_ext, and return whether this succeeded.
1610: ac_fn_c_try_link ()
1611: {
1612: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1613: rm -f conftest.$ac_objext conftest$ac_exeext
1614: if { { ac_try="$ac_link"
1615: case "(($ac_try" in
1616: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1617: *) ac_try_echo=$ac_try;;
1618: esac
1619: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1620: $as_echo "$ac_try_echo"; } >&5
1621: (eval "$ac_link") 2>conftest.err
1622: ac_status=$?
1623: if test -s conftest.err; then
1624: grep -v '^ *+' conftest.err >conftest.er1
1625: cat conftest.er1 >&5
1626: mv -f conftest.er1 conftest.err
1627: fi
1628: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1629: test $ac_status = 0; } && {
1630: test -z "$ac_c_werror_flag" ||
1631: test ! -s conftest.err
1632: } && test -s conftest$ac_exeext && {
1633: test "$cross_compiling" = yes ||
1634: test -x conftest$ac_exeext
1635: }; then :
1636: ac_retval=0
1637: else
1638: $as_echo "$as_me: failed program was:" >&5
1639: sed 's/^/| /' conftest.$ac_ext >&5
1640:
1641: ac_retval=1
1642: fi
1643: # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1644: # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1645: # interfere with the next link command; also delete a directory that is
1646: # left behind by Apple's compiler. We do this before executing the actions.
1647: rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1648: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1649: as_fn_set_status $ac_retval
1650:
1651: } # ac_fn_c_try_link
1652:
1653: # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1654: # -------------------------------------------------------
1655: # Tests whether HEADER exists and can be compiled using the include files in
1656: # INCLUDES, setting the cache variable VAR accordingly.
1657: ac_fn_c_check_header_compile ()
1658: {
1659: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1660: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1661: $as_echo_n "checking for $2... " >&6; }
1662: if eval \${$3+:} false; then :
1663: $as_echo_n "(cached) " >&6
1664: else
1665: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1666: /* end confdefs.h. */
1667: $4
1668: #include <$2>
1669: _ACEOF
1670: if ac_fn_c_try_compile "$LINENO"; then :
1671: eval "$3=yes"
1672: else
1673: eval "$3=no"
1674: fi
1675: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1676: fi
1677: eval ac_res=\$$3
1678: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1679: $as_echo "$ac_res" >&6; }
1680: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1681:
1682: } # ac_fn_c_check_header_compile
1683:
1.1 noro 1684: # ac_fn_c_try_cpp LINENO
1685: # ----------------------
1686: # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1687: ac_fn_c_try_cpp ()
1688: {
1689: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1690: if { { ac_try="$ac_cpp conftest.$ac_ext"
1691: case "(($ac_try" in
1692: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1693: *) ac_try_echo=$ac_try;;
1694: esac
1695: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1696: $as_echo "$ac_try_echo"; } >&5
1697: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1698: ac_status=$?
1699: if test -s conftest.err; then
1700: grep -v '^ *+' conftest.err >conftest.er1
1701: cat conftest.er1 >&5
1702: mv -f conftest.er1 conftest.err
1703: fi
1704: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1705: test $ac_status = 0; } > conftest.i && {
1706: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1707: test ! -s conftest.err
1708: }; then :
1709: ac_retval=0
1710: else
1711: $as_echo "$as_me: failed program was:" >&5
1712: sed 's/^/| /' conftest.$ac_ext >&5
1713:
1714: ac_retval=1
1715: fi
1716: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1717: as_fn_set_status $ac_retval
1718:
1719: } # ac_fn_c_try_cpp
1720:
1.5 ohara 1721: # ac_fn_c_try_run LINENO
1722: # ----------------------
1723: # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1724: # that executables *can* be run.
1725: ac_fn_c_try_run ()
1.1 noro 1726: {
1727: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1728: if { { ac_try="$ac_link"
1729: case "(($ac_try" in
1730: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1731: *) ac_try_echo=$ac_try;;
1732: esac
1733: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1734: $as_echo "$ac_try_echo"; } >&5
1.5 ohara 1735: (eval "$ac_link") 2>&5
1736: ac_status=$?
1737: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1738: test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1739: { { case "(($ac_try" in
1740: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1741: *) ac_try_echo=$ac_try;;
1742: esac
1743: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1744: $as_echo "$ac_try_echo"; } >&5
1745: (eval "$ac_try") 2>&5
1.1 noro 1746: ac_status=$?
1747: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1.5 ohara 1748: test $ac_status = 0; }; }; then :
1.1 noro 1749: ac_retval=0
1750: else
1.5 ohara 1751: $as_echo "$as_me: program exited with status $ac_status" >&5
1752: $as_echo "$as_me: failed program was:" >&5
1.1 noro 1753: sed 's/^/| /' conftest.$ac_ext >&5
1754:
1.5 ohara 1755: ac_retval=$ac_status
1.1 noro 1756: fi
1757: rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1758: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1759: as_fn_set_status $ac_retval
1760:
1.5 ohara 1761: } # ac_fn_c_try_run
1.1 noro 1762:
1763: # ac_fn_c_check_func LINENO FUNC VAR
1764: # ----------------------------------
1765: # Tests whether FUNC exists, setting the cache variable VAR accordingly
1766: ac_fn_c_check_func ()
1767: {
1768: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1769: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1770: $as_echo_n "checking for $2... " >&6; }
1771: if eval \${$3+:} false; then :
1772: $as_echo_n "(cached) " >&6
1773: else
1774: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1775: /* end confdefs.h. */
1776: /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1777: For example, HP-UX 11i <limits.h> declares gettimeofday. */
1778: #define $2 innocuous_$2
1779:
1780: /* System header to define __stub macros and hopefully few prototypes,
1781: which can conflict with char $2 (); below.
1782: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1783: <limits.h> exists even on freestanding compilers. */
1784:
1785: #ifdef __STDC__
1786: # include <limits.h>
1787: #else
1788: # include <assert.h>
1789: #endif
1790:
1791: #undef $2
1792:
1793: /* Override any GCC internal prototype to avoid an error.
1794: Use char because int might match the return type of a GCC
1795: builtin and then its argument prototype would still apply. */
1796: #ifdef __cplusplus
1797: extern "C"
1798: #endif
1799: char $2 ();
1800: /* The GNU C library defines this for functions which it implements
1801: to always fail with ENOSYS. Some functions are actually named
1802: something starting with __ and the normal name is an alias. */
1803: #if defined __stub_$2 || defined __stub___$2
1804: choke me
1805: #endif
1806:
1807: int
1808: main ()
1809: {
1810: return $2 ();
1811: ;
1812: return 0;
1813: }
1814: _ACEOF
1815: if ac_fn_c_try_link "$LINENO"; then :
1816: eval "$3=yes"
1817: else
1818: eval "$3=no"
1819: fi
1820: rm -f core conftest.err conftest.$ac_objext \
1821: conftest$ac_exeext conftest.$ac_ext
1822: fi
1823: eval ac_res=\$$3
1824: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1825: $as_echo "$ac_res" >&6; }
1826: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1827:
1828: } # ac_fn_c_check_func
1829:
1830: # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1831: # -------------------------------------------
1832: # Tests whether TYPE exists after having included INCLUDES, setting cache
1833: # variable VAR accordingly.
1834: ac_fn_c_check_type ()
1835: {
1836: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1837: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1838: $as_echo_n "checking for $2... " >&6; }
1839: if eval \${$3+:} false; then :
1840: $as_echo_n "(cached) " >&6
1841: else
1842: eval "$3=no"
1843: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1844: /* end confdefs.h. */
1845: $4
1846: int
1847: main ()
1848: {
1849: if (sizeof ($2))
1850: return 0;
1851: ;
1852: return 0;
1853: }
1854: _ACEOF
1855: if ac_fn_c_try_compile "$LINENO"; then :
1856: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1857: /* end confdefs.h. */
1858: $4
1859: int
1860: main ()
1861: {
1862: if (sizeof (($2)))
1863: return 0;
1864: ;
1865: return 0;
1866: }
1867: _ACEOF
1868: if ac_fn_c_try_compile "$LINENO"; then :
1869:
1870: else
1871: eval "$3=yes"
1872: fi
1873: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1874: fi
1875: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1876: fi
1877: eval ac_res=\$$3
1878: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1879: $as_echo "$ac_res" >&6; }
1880: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1881:
1882: } # ac_fn_c_check_type
1883:
1884: # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1885: # --------------------------------------------
1886: # Tries to find the compile-time value of EXPR in a program that includes
1887: # INCLUDES, setting VAR accordingly. Returns whether the value could be
1888: # computed
1889: ac_fn_c_compute_int ()
1890: {
1891: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1892: if test "$cross_compiling" = yes; then
1893: # Depending upon the size, compute the lo and hi bounds.
1894: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1895: /* end confdefs.h. */
1896: $4
1897: int
1898: main ()
1899: {
1900: static int test_array [1 - 2 * !(($2) >= 0)];
1901: test_array [0] = 0;
1902: return test_array [0];
1903:
1904: ;
1905: return 0;
1906: }
1907: _ACEOF
1908: if ac_fn_c_try_compile "$LINENO"; then :
1909: ac_lo=0 ac_mid=0
1910: while :; do
1911: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1912: /* end confdefs.h. */
1913: $4
1914: int
1915: main ()
1916: {
1917: static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1918: test_array [0] = 0;
1919: return test_array [0];
1920:
1921: ;
1922: return 0;
1923: }
1924: _ACEOF
1925: if ac_fn_c_try_compile "$LINENO"; then :
1926: ac_hi=$ac_mid; break
1927: else
1928: as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1929: if test $ac_lo -le $ac_mid; then
1930: ac_lo= ac_hi=
1931: break
1932: fi
1933: as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1934: fi
1935: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1936: done
1937: else
1938: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1939: /* end confdefs.h. */
1940: $4
1941: int
1942: main ()
1943: {
1944: static int test_array [1 - 2 * !(($2) < 0)];
1945: test_array [0] = 0;
1946: return test_array [0];
1947:
1948: ;
1949: return 0;
1950: }
1951: _ACEOF
1952: if ac_fn_c_try_compile "$LINENO"; then :
1953: ac_hi=-1 ac_mid=-1
1954: while :; do
1955: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1956: /* end confdefs.h. */
1957: $4
1958: int
1959: main ()
1960: {
1961: static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1962: test_array [0] = 0;
1963: return test_array [0];
1964:
1965: ;
1966: return 0;
1967: }
1968: _ACEOF
1969: if ac_fn_c_try_compile "$LINENO"; then :
1970: ac_lo=$ac_mid; break
1971: else
1972: as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1973: if test $ac_mid -le $ac_hi; then
1974: ac_lo= ac_hi=
1975: break
1976: fi
1977: as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1978: fi
1979: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1980: done
1981: else
1982: ac_lo= ac_hi=
1983: fi
1984: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1985: fi
1986: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1987: # Binary search between lo and hi bounds.
1988: while test "x$ac_lo" != "x$ac_hi"; do
1989: as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1990: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1991: /* end confdefs.h. */
1992: $4
1993: int
1994: main ()
1995: {
1996: static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1997: test_array [0] = 0;
1998: return test_array [0];
1999:
2000: ;
2001: return 0;
2002: }
2003: _ACEOF
2004: if ac_fn_c_try_compile "$LINENO"; then :
2005: ac_hi=$ac_mid
2006: else
2007: as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2008: fi
2009: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2010: done
2011: case $ac_lo in #((
2012: ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2013: '') ac_retval=1 ;;
2014: esac
2015: else
2016: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2017: /* end confdefs.h. */
2018: $4
2019: static long int longval () { return $2; }
2020: static unsigned long int ulongval () { return $2; }
2021: #include <stdio.h>
2022: #include <stdlib.h>
2023: int
2024: main ()
2025: {
2026:
2027: FILE *f = fopen ("conftest.val", "w");
2028: if (! f)
2029: return 1;
2030: if (($2) < 0)
2031: {
2032: long int i = longval ();
2033: if (i != ($2))
2034: return 1;
2035: fprintf (f, "%ld", i);
2036: }
2037: else
2038: {
2039: unsigned long int i = ulongval ();
2040: if (i != ($2))
2041: return 1;
2042: fprintf (f, "%lu", i);
2043: }
2044: /* Do not output a trailing newline, as this causes \r\n confusion
2045: on some platforms. */
2046: return ferror (f) || fclose (f) != 0;
2047:
2048: ;
2049: return 0;
2050: }
2051: _ACEOF
2052: if ac_fn_c_try_run "$LINENO"; then :
2053: echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2054: else
2055: ac_retval=1
2056: fi
2057: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2058: conftest.$ac_objext conftest.beam conftest.$ac_ext
2059: rm -f conftest.val
2060:
2061: fi
2062: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2063: as_fn_set_status $ac_retval
2064:
2065: } # ac_fn_c_compute_int
2066: cat >config.log <<_ACEOF
2067: This file contains any messages produced by compilers while
2068: running configure, to aid debugging if configure makes a mistake.
2069:
1.5 ohara 2070: It was created by asir $as_me 1.16, which was
1.1 noro 2071: generated by GNU Autoconf 2.69. Invocation command line was
2072:
2073: $ $0 $@
2074:
2075: _ACEOF
2076: exec 5>>config.log
2077: {
2078: cat <<_ASUNAME
2079: ## --------- ##
2080: ## Platform. ##
2081: ## --------- ##
2082:
2083: hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2084: uname -m = `(uname -m) 2>/dev/null || echo unknown`
2085: uname -r = `(uname -r) 2>/dev/null || echo unknown`
2086: uname -s = `(uname -s) 2>/dev/null || echo unknown`
2087: uname -v = `(uname -v) 2>/dev/null || echo unknown`
2088:
2089: /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2090: /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2091:
2092: /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2093: /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2094: /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2095: /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2096: /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2097: /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2098: /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2099:
2100: _ASUNAME
2101:
2102: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2103: for as_dir in $PATH
2104: do
2105: IFS=$as_save_IFS
2106: test -z "$as_dir" && as_dir=.
2107: $as_echo "PATH: $as_dir"
2108: done
2109: IFS=$as_save_IFS
2110:
2111: } >&5
2112:
2113: cat >&5 <<_ACEOF
2114:
2115:
2116: ## ----------- ##
2117: ## Core tests. ##
2118: ## ----------- ##
2119:
2120: _ACEOF
2121:
2122:
2123: # Keep a trace of the command line.
2124: # Strip out --no-create and --no-recursion so they do not pile up.
2125: # Strip out --silent because we don't want to record it for future runs.
2126: # Also quote any args containing shell meta-characters.
2127: # Make two passes to allow for proper duplicate-argument suppression.
2128: ac_configure_args=
2129: ac_configure_args0=
2130: ac_configure_args1=
2131: ac_must_keep_next=false
2132: for ac_pass in 1 2
2133: do
2134: for ac_arg
2135: do
2136: case $ac_arg in
2137: -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2138: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2139: | -silent | --silent | --silen | --sile | --sil)
2140: continue ;;
2141: *\'*)
2142: ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2143: esac
2144: case $ac_pass in
2145: 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2146: 2)
2147: as_fn_append ac_configure_args1 " '$ac_arg'"
2148: if test $ac_must_keep_next = true; then
2149: ac_must_keep_next=false # Got value, back to normal.
2150: else
2151: case $ac_arg in
2152: *=* | --config-cache | -C | -disable-* | --disable-* \
2153: | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2154: | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2155: | -with-* | --with-* | -without-* | --without-* | --x)
2156: case "$ac_configure_args0 " in
2157: "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2158: esac
2159: ;;
2160: -* ) ac_must_keep_next=true ;;
2161: esac
2162: fi
2163: as_fn_append ac_configure_args " '$ac_arg'"
2164: ;;
2165: esac
2166: done
2167: done
2168: { ac_configure_args0=; unset ac_configure_args0;}
2169: { ac_configure_args1=; unset ac_configure_args1;}
2170:
2171: # When interrupted or exit'd, cleanup temporary files, and complete
2172: # config.log. We remove comments because anyway the quotes in there
2173: # would cause problems or look ugly.
2174: # WARNING: Use '\'' to represent an apostrophe within the trap.
2175: # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2176: trap 'exit_status=$?
2177: # Save into config.log some information that might help in debugging.
2178: {
2179: echo
2180:
2181: $as_echo "## ---------------- ##
2182: ## Cache variables. ##
2183: ## ---------------- ##"
2184: echo
2185: # The following way of writing the cache mishandles newlines in values,
2186: (
2187: for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2188: eval ac_val=\$$ac_var
2189: case $ac_val in #(
2190: *${as_nl}*)
2191: case $ac_var in #(
2192: *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2193: $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2194: esac
2195: case $ac_var in #(
2196: _ | IFS | as_nl) ;; #(
2197: BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2198: *) { eval $ac_var=; unset $ac_var;} ;;
2199: esac ;;
2200: esac
2201: done
2202: (set) 2>&1 |
2203: case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2204: *${as_nl}ac_space=\ *)
2205: sed -n \
2206: "s/'\''/'\''\\\\'\'''\''/g;
2207: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2208: ;; #(
2209: *)
2210: sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2211: ;;
2212: esac |
2213: sort
2214: )
2215: echo
2216:
2217: $as_echo "## ----------------- ##
2218: ## Output variables. ##
2219: ## ----------------- ##"
2220: echo
2221: for ac_var in $ac_subst_vars
2222: do
2223: eval ac_val=\$$ac_var
2224: case $ac_val in
2225: *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2226: esac
2227: $as_echo "$ac_var='\''$ac_val'\''"
2228: done | sort
2229: echo
2230:
2231: if test -n "$ac_subst_files"; then
2232: $as_echo "## ------------------- ##
2233: ## File substitutions. ##
2234: ## ------------------- ##"
2235: echo
2236: for ac_var in $ac_subst_files
2237: do
2238: eval ac_val=\$$ac_var
2239: case $ac_val in
2240: *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2241: esac
2242: $as_echo "$ac_var='\''$ac_val'\''"
2243: done | sort
2244: echo
2245: fi
2246:
2247: if test -s confdefs.h; then
2248: $as_echo "## ----------- ##
2249: ## confdefs.h. ##
2250: ## ----------- ##"
2251: echo
2252: cat confdefs.h
2253: echo
2254: fi
2255: test "$ac_signal" != 0 &&
2256: $as_echo "$as_me: caught signal $ac_signal"
2257: $as_echo "$as_me: exit $exit_status"
2258: } >&5
2259: rm -f core *.core core.conftest.* &&
2260: rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2261: exit $exit_status
2262: ' 0
2263: for ac_signal in 1 2 13 15; do
2264: trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2265: done
2266: ac_signal=0
2267:
2268: # confdefs.h avoids OS command line length limits that DEFS can exceed.
2269: rm -f -r conftest* confdefs.h
2270:
2271: $as_echo "/* confdefs.h */" > confdefs.h
2272:
2273: # Predefined preprocessor variables.
2274:
2275: cat >>confdefs.h <<_ACEOF
2276: #define PACKAGE_NAME "$PACKAGE_NAME"
2277: _ACEOF
2278:
2279: cat >>confdefs.h <<_ACEOF
2280: #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2281: _ACEOF
2282:
2283: cat >>confdefs.h <<_ACEOF
2284: #define PACKAGE_VERSION "$PACKAGE_VERSION"
2285: _ACEOF
2286:
2287: cat >>confdefs.h <<_ACEOF
2288: #define PACKAGE_STRING "$PACKAGE_STRING"
2289: _ACEOF
2290:
2291: cat >>confdefs.h <<_ACEOF
2292: #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2293: _ACEOF
2294:
2295: cat >>confdefs.h <<_ACEOF
2296: #define PACKAGE_URL "$PACKAGE_URL"
2297: _ACEOF
2298:
2299:
2300: # Let the site file select an alternate cache file if it wants to.
2301: # Prefer an explicitly selected file to automatically selected ones.
2302: ac_site_file1=NONE
2303: ac_site_file2=NONE
2304: if test -n "$CONFIG_SITE"; then
2305: # We do not want a PATH search for config.site.
2306: case $CONFIG_SITE in #((
2307: -*) ac_site_file1=./$CONFIG_SITE;;
2308: */*) ac_site_file1=$CONFIG_SITE;;
2309: *) ac_site_file1=./$CONFIG_SITE;;
2310: esac
2311: elif test "x$prefix" != xNONE; then
2312: ac_site_file1=$prefix/share/config.site
2313: ac_site_file2=$prefix/etc/config.site
2314: else
2315: ac_site_file1=$ac_default_prefix/share/config.site
2316: ac_site_file2=$ac_default_prefix/etc/config.site
2317: fi
2318: for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2319: do
2320: test "x$ac_site_file" = xNONE && continue
2321: if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2322: { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2323: $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2324: sed 's/^/| /' "$ac_site_file" >&5
2325: . "$ac_site_file" \
2326: || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2327: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2328: as_fn_error $? "failed to load site script $ac_site_file
2329: See \`config.log' for more details" "$LINENO" 5; }
2330: fi
2331: done
2332:
2333: if test -r "$cache_file"; then
2334: # Some versions of bash will fail to source /dev/null (special files
2335: # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2336: if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2337: { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2338: $as_echo "$as_me: loading cache $cache_file" >&6;}
2339: case $cache_file in
2340: [\\/]* | ?:[\\/]* ) . "$cache_file";;
2341: *) . "./$cache_file";;
2342: esac
2343: fi
2344: else
2345: { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2346: $as_echo "$as_me: creating cache $cache_file" >&6;}
2347: >$cache_file
2348: fi
2349:
2350: # Check that the precious variables saved in the cache have kept the same
2351: # value.
2352: ac_cache_corrupted=false
2353: for ac_var in $ac_precious_vars; do
2354: eval ac_old_set=\$ac_cv_env_${ac_var}_set
2355: eval ac_new_set=\$ac_env_${ac_var}_set
2356: eval ac_old_val=\$ac_cv_env_${ac_var}_value
2357: eval ac_new_val=\$ac_env_${ac_var}_value
2358: case $ac_old_set,$ac_new_set in
2359: set,)
2360: { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2361: $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2362: ac_cache_corrupted=: ;;
2363: ,set)
2364: { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2365: $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2366: ac_cache_corrupted=: ;;
2367: ,);;
2368: *)
2369: if test "x$ac_old_val" != "x$ac_new_val"; then
2370: # differences in whitespace do not lead to failure.
2371: ac_old_val_w=`echo x $ac_old_val`
2372: ac_new_val_w=`echo x $ac_new_val`
2373: if test "$ac_old_val_w" != "$ac_new_val_w"; then
2374: { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2375: $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2376: ac_cache_corrupted=:
2377: else
2378: { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2379: $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2380: eval $ac_var=\$ac_old_val
2381: fi
2382: { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2383: $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2384: { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2385: $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2386: fi;;
2387: esac
2388: # Pass precious variables to config.status.
2389: if test "$ac_new_set" = set; then
2390: case $ac_new_val in
2391: *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2392: *) ac_arg=$ac_var=$ac_new_val ;;
2393: esac
2394: case " $ac_configure_args " in
2395: *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2396: *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2397: esac
2398: fi
2399: done
2400: if $ac_cache_corrupted; then
2401: { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2402: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2403: { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2404: $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2405: as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2406: fi
2407: ## -------------------- ##
2408: ## Main body of script. ##
2409: ## -------------------- ##
2410:
2411: ac_ext=c
2412: ac_cpp='$CPP $CPPFLAGS'
2413: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2414: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2415: ac_compiler_gnu=$ac_cv_c_compiler_gnu
2416:
2417:
2418:
2419:
2420: ac_aux_dir=
2421: for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2422: if test -f "$ac_dir/install-sh"; then
2423: ac_aux_dir=$ac_dir
2424: ac_install_sh="$ac_aux_dir/install-sh -c"
2425: break
2426: elif test -f "$ac_dir/install.sh"; then
2427: ac_aux_dir=$ac_dir
2428: ac_install_sh="$ac_aux_dir/install.sh -c"
2429: break
2430: elif test -f "$ac_dir/shtool"; then
2431: ac_aux_dir=$ac_dir
2432: ac_install_sh="$ac_aux_dir/shtool install -c"
2433: break
2434: fi
2435: done
2436: if test -z "$ac_aux_dir"; then
2437: as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2438: fi
2439:
2440: # These three variables are undocumented and unsupported,
2441: # and are intended to be withdrawn in a future Autoconf release.
2442: # They can cause serious problems if a builder's source tree is in a directory
2443: # whose full name contains unusual characters.
2444: ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2445: ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2446: ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2447:
2448:
2449: # Make sure we can run config.sub.
2450: $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2451: as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2452:
2453: { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2454: $as_echo_n "checking build system type... " >&6; }
2455: if ${ac_cv_build+:} false; then :
2456: $as_echo_n "(cached) " >&6
2457: else
2458: ac_build_alias=$build_alias
2459: test "x$ac_build_alias" = x &&
2460: ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2461: test "x$ac_build_alias" = x &&
2462: as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2463: ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2464: as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2465:
2466: fi
2467: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2468: $as_echo "$ac_cv_build" >&6; }
2469: case $ac_cv_build in
2470: *-*-*) ;;
2471: *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2472: esac
2473: build=$ac_cv_build
2474: ac_save_IFS=$IFS; IFS='-'
2475: set x $ac_cv_build
2476: shift
2477: build_cpu=$1
2478: build_vendor=$2
2479: shift; shift
2480: # Remember, the first character of IFS is used to create $*,
2481: # except with old shells:
2482: build_os=$*
2483: IFS=$ac_save_IFS
2484: case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2485:
2486:
2487: { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2488: $as_echo_n "checking host system type... " >&6; }
2489: if ${ac_cv_host+:} false; then :
2490: $as_echo_n "(cached) " >&6
2491: else
2492: if test "x$host_alias" = x; then
2493: ac_cv_host=$ac_cv_build
2494: else
2495: ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2496: as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2497: fi
2498:
2499: fi
2500: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2501: $as_echo "$ac_cv_host" >&6; }
2502: case $ac_cv_host in
2503: *-*-*) ;;
2504: *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2505: esac
2506: host=$ac_cv_host
2507: ac_save_IFS=$IFS; IFS='-'
2508: set x $ac_cv_host
2509: shift
2510: host_cpu=$1
2511: host_vendor=$2
2512: shift; shift
2513: # Remember, the first character of IFS is used to create $*,
2514: # except with old shells:
2515: host_os=$*
2516: IFS=$ac_save_IFS
2517: case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2518:
2519:
2520: { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2521: $as_echo_n "checking target system type... " >&6; }
2522: if ${ac_cv_target+:} false; then :
2523: $as_echo_n "(cached) " >&6
2524: else
2525: if test "x$target_alias" = x; then
2526: ac_cv_target=$ac_cv_host
2527: else
2528: ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2529: as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2530: fi
2531:
2532: fi
2533: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2534: $as_echo "$ac_cv_target" >&6; }
2535: case $ac_cv_target in
2536: *-*-*) ;;
2537: *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2538: esac
2539: target=$ac_cv_target
2540: ac_save_IFS=$IFS; IFS='-'
2541: set x $ac_cv_target
2542: shift
2543: target_cpu=$1
2544: target_vendor=$2
2545: shift; shift
2546: # Remember, the first character of IFS is used to create $*,
2547: # except with old shells:
2548: target_os=$*
2549: IFS=$ac_save_IFS
2550: case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2551:
2552:
2553: # The aliases save the names the user supplied, while $host etc.
2554: # will get canonicalized.
2555: test -n "$target_alias" &&
2556: test "$program_prefix$program_suffix$program_transform_name" = \
2557: NONENONEs,x,x, &&
2558: program_prefix=${target_alias}-
1.5 ohara 2559: am__api_version='1.16'
1.1 noro 2560:
2561: # Find a good install program. We prefer a C program (faster),
2562: # so one script is as good as another. But avoid the broken or
2563: # incompatible versions:
2564: # SysV /etc/install, /usr/sbin/install
2565: # SunOS /usr/etc/install
2566: # IRIX /sbin/install
2567: # AIX /bin/install
2568: # AmigaOS /C/install, which installs bootblocks on floppy discs
2569: # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2570: # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2571: # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2572: # OS/2's system install, which has a completely different semantic
2573: # ./install, which can be erroneously created by make from ./install.sh.
2574: # Reject install programs that cannot install multiple files.
2575: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2576: $as_echo_n "checking for a BSD-compatible install... " >&6; }
2577: if test -z "$INSTALL"; then
2578: if ${ac_cv_path_install+:} false; then :
2579: $as_echo_n "(cached) " >&6
2580: else
2581: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2582: for as_dir in $PATH
2583: do
2584: IFS=$as_save_IFS
2585: test -z "$as_dir" && as_dir=.
2586: # Account for people who put trailing slashes in PATH elements.
2587: case $as_dir/ in #((
2588: ./ | .// | /[cC]/* | \
2589: /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2590: ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2591: /usr/ucb/* ) ;;
2592: *)
2593: # OSF1 and SCO ODT 3.0 have their own names for install.
2594: # Don't use installbsd from OSF since it installs stuff as root
2595: # by default.
2596: for ac_prog in ginstall scoinst install; do
2597: for ac_exec_ext in '' $ac_executable_extensions; do
2598: if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2599: if test $ac_prog = install &&
2600: grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2601: # AIX install. It has an incompatible calling convention.
2602: :
2603: elif test $ac_prog = install &&
2604: grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2605: # program-specific install script used by HP pwplus--don't use.
2606: :
2607: else
2608: rm -rf conftest.one conftest.two conftest.dir
2609: echo one > conftest.one
2610: echo two > conftest.two
2611: mkdir conftest.dir
2612: if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2613: test -s conftest.one && test -s conftest.two &&
2614: test -s conftest.dir/conftest.one &&
2615: test -s conftest.dir/conftest.two
2616: then
2617: ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2618: break 3
2619: fi
2620: fi
2621: fi
2622: done
2623: done
2624: ;;
2625: esac
2626:
2627: done
2628: IFS=$as_save_IFS
2629:
2630: rm -rf conftest.one conftest.two conftest.dir
2631:
2632: fi
2633: if test "${ac_cv_path_install+set}" = set; then
2634: INSTALL=$ac_cv_path_install
2635: else
2636: # As a last resort, use the slow shell script. Don't cache a
2637: # value for INSTALL within a source directory, because that will
2638: # break other packages using the cache if that directory is
2639: # removed, or if the value is a relative name.
2640: INSTALL=$ac_install_sh
2641: fi
2642: fi
2643: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2644: $as_echo "$INSTALL" >&6; }
2645:
2646: # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2647: # It thinks the first close brace ends the variable substitution.
2648: test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2649:
2650: test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2651:
2652: test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2653:
2654: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2655: $as_echo_n "checking whether build environment is sane... " >&6; }
2656: # Reject unsafe characters in $srcdir or the absolute working directory
2657: # name. Accept space and tab only in the latter.
2658: am_lf='
2659: '
2660: case `pwd` in
2661: *[\\\"\#\$\&\'\`$am_lf]*)
2662: as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2663: esac
2664: case $srcdir in
2665: *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2666: as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2667: esac
2668:
2669: # Do 'set' in a subshell so we don't clobber the current shell's
2670: # arguments. Must try -L first in case configure is actually a
2671: # symlink; some systems play weird games with the mod time of symlinks
2672: # (eg FreeBSD returns the mod time of the symlink's containing
2673: # directory).
2674: if (
2675: am_has_slept=no
2676: for am_try in 1 2; do
2677: echo "timestamp, slept: $am_has_slept" > conftest.file
2678: set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2679: if test "$*" = "X"; then
2680: # -L didn't work.
2681: set X `ls -t "$srcdir/configure" conftest.file`
2682: fi
2683: if test "$*" != "X $srcdir/configure conftest.file" \
2684: && test "$*" != "X conftest.file $srcdir/configure"; then
2685:
2686: # If neither matched, then we have a broken ls. This can happen
2687: # if, for instance, CONFIG_SHELL is bash and it inherits a
2688: # broken ls alias from the environment. This has actually
2689: # happened. Such a system could not be considered "sane".
2690: as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2691: alias in your environment" "$LINENO" 5
2692: fi
2693: if test "$2" = conftest.file || test $am_try -eq 2; then
2694: break
2695: fi
2696: # Just in case.
2697: sleep 1
2698: am_has_slept=yes
2699: done
2700: test "$2" = conftest.file
2701: )
2702: then
2703: # Ok.
2704: :
2705: else
2706: as_fn_error $? "newly created file is older than distributed files!
2707: Check your system clock" "$LINENO" 5
2708: fi
2709: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2710: $as_echo "yes" >&6; }
2711: # If we didn't sleep, we still need to ensure time stamps of config.status and
2712: # generated files are strictly newer.
2713: am_sleep_pid=
2714: if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2715: ( sleep 1 ) &
2716: am_sleep_pid=$!
2717: fi
2718:
2719: rm -f conftest.file
2720:
2721: test "$program_prefix" != NONE &&
2722: program_transform_name="s&^&$program_prefix&;$program_transform_name"
2723: # Use a double $ so make ignores it.
2724: test "$program_suffix" != NONE &&
2725: program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2726: # Double any \ or $.
2727: # By default was `s,x,x', remove it if useless.
2728: ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2729: program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2730:
2731: # Expand $ac_aux_dir to an absolute path.
2732: am_aux_dir=`cd "$ac_aux_dir" && pwd`
2733:
2734: if test x"${MISSING+set}" != xset; then
2735: case $am_aux_dir in
2736: *\ * | *\ *)
2737: MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2738: *)
2739: MISSING="\${SHELL} $am_aux_dir/missing" ;;
2740: esac
2741: fi
2742: # Use eval to expand $SHELL
2743: if eval "$MISSING --is-lightweight"; then
2744: am_missing_run="$MISSING "
2745: else
2746: am_missing_run=
2747: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2748: $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2749: fi
2750:
1.3 noro 2751: if test x"${install_sh+set}" != xset; then
1.1 noro 2752: case $am_aux_dir in
2753: *\ * | *\ *)
2754: install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2755: *)
2756: install_sh="\${SHELL} $am_aux_dir/install-sh"
2757: esac
2758: fi
2759:
2760: # Installed binaries are usually stripped using 'strip' when the user
2761: # run "make install-strip". However 'strip' might not be the right
2762: # tool to use in cross-compilation environments, therefore Automake
2763: # will honor the 'STRIP' environment variable to overrule this program.
2764: if test "$cross_compiling" != no; then
2765: if test -n "$ac_tool_prefix"; then
2766: # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2767: set dummy ${ac_tool_prefix}strip; ac_word=$2
2768: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2769: $as_echo_n "checking for $ac_word... " >&6; }
2770: if ${ac_cv_prog_STRIP+:} false; then :
2771: $as_echo_n "(cached) " >&6
2772: else
2773: if test -n "$STRIP"; then
2774: ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2775: else
2776: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2777: for as_dir in $PATH
2778: do
2779: IFS=$as_save_IFS
2780: test -z "$as_dir" && as_dir=.
2781: for ac_exec_ext in '' $ac_executable_extensions; do
2782: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2783: ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2784: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2785: break 2
2786: fi
2787: done
2788: done
2789: IFS=$as_save_IFS
2790:
2791: fi
2792: fi
2793: STRIP=$ac_cv_prog_STRIP
2794: if test -n "$STRIP"; then
2795: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2796: $as_echo "$STRIP" >&6; }
2797: else
2798: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2799: $as_echo "no" >&6; }
2800: fi
2801:
2802:
2803: fi
2804: if test -z "$ac_cv_prog_STRIP"; then
2805: ac_ct_STRIP=$STRIP
2806: # Extract the first word of "strip", so it can be a program name with args.
2807: set dummy strip; ac_word=$2
2808: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2809: $as_echo_n "checking for $ac_word... " >&6; }
2810: if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2811: $as_echo_n "(cached) " >&6
2812: else
2813: if test -n "$ac_ct_STRIP"; then
2814: ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2815: else
2816: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2817: for as_dir in $PATH
2818: do
2819: IFS=$as_save_IFS
2820: test -z "$as_dir" && as_dir=.
2821: for ac_exec_ext in '' $ac_executable_extensions; do
2822: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2823: ac_cv_prog_ac_ct_STRIP="strip"
2824: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2825: break 2
2826: fi
2827: done
2828: done
2829: IFS=$as_save_IFS
2830:
2831: fi
2832: fi
2833: ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2834: if test -n "$ac_ct_STRIP"; then
2835: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2836: $as_echo "$ac_ct_STRIP" >&6; }
2837: else
2838: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2839: $as_echo "no" >&6; }
2840: fi
2841:
2842: if test "x$ac_ct_STRIP" = x; then
2843: STRIP=":"
2844: else
2845: case $cross_compiling:$ac_tool_warned in
2846: yes:)
2847: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2848: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2849: ac_tool_warned=yes ;;
2850: esac
2851: STRIP=$ac_ct_STRIP
2852: fi
2853: else
2854: STRIP="$ac_cv_prog_STRIP"
2855: fi
2856:
2857: fi
2858: INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2859:
2860: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2861: $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2862: if test -z "$MKDIR_P"; then
2863: if ${ac_cv_path_mkdir+:} false; then :
2864: $as_echo_n "(cached) " >&6
2865: else
2866: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2867: for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2868: do
2869: IFS=$as_save_IFS
2870: test -z "$as_dir" && as_dir=.
2871: for ac_prog in mkdir gmkdir; do
2872: for ac_exec_ext in '' $ac_executable_extensions; do
2873: as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2874: case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2875: 'mkdir (GNU coreutils) '* | \
2876: 'mkdir (coreutils) '* | \
2877: 'mkdir (fileutils) '4.1*)
2878: ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2879: break 3;;
2880: esac
2881: done
2882: done
2883: done
2884: IFS=$as_save_IFS
2885:
2886: fi
2887:
2888: test -d ./--version && rmdir ./--version
2889: if test "${ac_cv_path_mkdir+set}" = set; then
2890: MKDIR_P="$ac_cv_path_mkdir -p"
2891: else
2892: # As a last resort, use the slow shell script. Don't cache a
2893: # value for MKDIR_P within a source directory, because that will
2894: # break other packages using the cache if that directory is
2895: # removed, or if the value is a relative name.
2896: MKDIR_P="$ac_install_sh -d"
2897: fi
2898: fi
2899: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2900: $as_echo "$MKDIR_P" >&6; }
2901:
2902: for ac_prog in gawk mawk nawk awk
2903: do
2904: # Extract the first word of "$ac_prog", so it can be a program name with args.
2905: set dummy $ac_prog; ac_word=$2
2906: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2907: $as_echo_n "checking for $ac_word... " >&6; }
2908: if ${ac_cv_prog_AWK+:} false; then :
2909: $as_echo_n "(cached) " >&6
2910: else
2911: if test -n "$AWK"; then
2912: ac_cv_prog_AWK="$AWK" # Let the user override the test.
2913: else
2914: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2915: for as_dir in $PATH
2916: do
2917: IFS=$as_save_IFS
2918: test -z "$as_dir" && as_dir=.
2919: for ac_exec_ext in '' $ac_executable_extensions; do
2920: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2921: ac_cv_prog_AWK="$ac_prog"
2922: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2923: break 2
2924: fi
2925: done
2926: done
2927: IFS=$as_save_IFS
2928:
2929: fi
2930: fi
2931: AWK=$ac_cv_prog_AWK
2932: if test -n "$AWK"; then
2933: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2934: $as_echo "$AWK" >&6; }
2935: else
2936: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2937: $as_echo "no" >&6; }
2938: fi
2939:
2940:
2941: test -n "$AWK" && break
2942: done
2943:
2944: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2945: $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2946: set x ${MAKE-make}
2947: ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2948: if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2949: $as_echo_n "(cached) " >&6
2950: else
2951: cat >conftest.make <<\_ACEOF
2952: SHELL = /bin/sh
2953: all:
2954: @echo '@@@%%%=$(MAKE)=@@@%%%'
2955: _ACEOF
2956: # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2957: case `${MAKE-make} -f conftest.make 2>/dev/null` in
2958: *@@@%%%=?*=@@@%%%*)
2959: eval ac_cv_prog_make_${ac_make}_set=yes;;
2960: *)
2961: eval ac_cv_prog_make_${ac_make}_set=no;;
2962: esac
2963: rm -f conftest.make
2964: fi
2965: if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2966: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2967: $as_echo "yes" >&6; }
2968: SET_MAKE=
2969: else
2970: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2971: $as_echo "no" >&6; }
2972: SET_MAKE="MAKE=${MAKE-make}"
2973: fi
2974:
2975: rm -rf .tst 2>/dev/null
2976: mkdir .tst 2>/dev/null
2977: if test -d .tst; then
2978: am__leading_dot=.
2979: else
2980: am__leading_dot=_
2981: fi
2982: rmdir .tst 2>/dev/null
2983:
2984: # Check whether --enable-silent-rules was given.
2985: if test "${enable_silent_rules+set}" = set; then :
2986: enableval=$enable_silent_rules;
2987: fi
2988:
2989: case $enable_silent_rules in # (((
2990: yes) AM_DEFAULT_VERBOSITY=0;;
2991: no) AM_DEFAULT_VERBOSITY=1;;
2992: *) AM_DEFAULT_VERBOSITY=1;;
2993: esac
2994: am_make=${MAKE-make}
2995: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2996: $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2997: if ${am_cv_make_support_nested_variables+:} false; then :
2998: $as_echo_n "(cached) " >&6
2999: else
3000: if $as_echo 'TRUE=$(BAR$(V))
3001: BAR0=false
3002: BAR1=true
3003: V=1
3004: am__doit:
3005: @$(TRUE)
3006: .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3007: am_cv_make_support_nested_variables=yes
3008: else
3009: am_cv_make_support_nested_variables=no
3010: fi
3011: fi
3012: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3013: $as_echo "$am_cv_make_support_nested_variables" >&6; }
3014: if test $am_cv_make_support_nested_variables = yes; then
3015: AM_V='$(V)'
3016: AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3017: else
3018: AM_V=$AM_DEFAULT_VERBOSITY
3019: AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3020: fi
3021: AM_BACKSLASH='\'
3022:
3023: if test "`cd $srcdir && pwd`" != "`pwd`"; then
3024: # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3025: # is not polluted with repeated "-I."
3026: am__isrc=' -I$(srcdir)'
3027: # test to see if srcdir already configured
3028: if test -f $srcdir/config.status; then
3029: as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3030: fi
3031: fi
3032:
3033: # test whether we have cygpath
3034: if test -z "$CYGPATH_W"; then
3035: if (cygpath --version) >/dev/null 2>/dev/null; then
3036: CYGPATH_W='cygpath -w'
3037: else
3038: CYGPATH_W=echo
3039: fi
3040: fi
3041:
3042:
3043: # Define the identity of the package.
3044: PACKAGE='asir'
1.5 ohara 3045: VERSION='1.16'
1.1 noro 3046:
3047:
3048: cat >>confdefs.h <<_ACEOF
3049: #define PACKAGE "$PACKAGE"
3050: _ACEOF
3051:
3052:
3053: cat >>confdefs.h <<_ACEOF
3054: #define VERSION "$VERSION"
3055: _ACEOF
3056:
3057: # Some tools Automake needs.
3058:
3059: ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3060:
3061:
3062: AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3063:
3064:
3065: AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3066:
3067:
3068: AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3069:
3070:
3071: MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3072:
3073: # For better backward compatibility. To be removed once Automake 1.9.x
3074: # dies out for good. For more background, see:
1.5 ohara 3075: # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3076: # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
1.1 noro 3077: mkdir_p='$(MKDIR_P)'
3078:
1.3 noro 3079: # We need awk for the "check" target (and possibly the TAP driver). The
3080: # system "awk" is bad on some platforms.
1.1 noro 3081: # Always define AMTAR for backward compatibility. Yes, it's still used
3082: # in the wild :-( We should find a proper way to deprecate it ...
3083: AMTAR='$${TAR-tar}'
3084:
3085:
3086: # We'll loop over all known methods to create a tar archive until one works.
3087: _am_tools='gnutar pax cpio none'
3088:
3089: am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3090:
3091:
3092:
3093:
3094:
3095:
3096: # POSIX will say in a future version that running "rm -f" with no argument
3097: # is OK; and we want to be able to make that assumption in our Makefile
3098: # recipes. So use an aggressive probe to check that the usage we want is
3099: # actually supported "in the wild" to an acceptable degree.
3100: # See automake bug#10828.
3101: # To make any issue more visible, cause the running configure to be aborted
3102: # by default if the 'rm' program in use doesn't match our expectations; the
3103: # user can still override this though.
3104: if rm -f && rm -fr && rm -rf; then : OK; else
3105: cat >&2 <<'END'
3106: Oops!
3107:
3108: Your 'rm' program seems unable to run without file operands specified
3109: on the command line, even when the '-f' option is present. This is contrary
3110: to the behaviour of most rm programs out there, and not conforming with
3111: the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3112:
3113: Please tell bug-automake@gnu.org about your system, including the value
3114: of your $PATH and any error possibly output before this message. This
3115: can help us improve future automake versions.
3116:
3117: END
3118: if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3119: echo 'Configuration will proceed anyway, since you have set the' >&2
3120: echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3121: echo >&2
3122: else
3123: cat >&2 <<'END'
3124: Aborting the configuration process, to ensure you take notice of the issue.
3125:
3126: You can download and install GNU coreutils to get an 'rm' implementation
1.5 ohara 3127: that behaves properly: <https://www.gnu.org/software/coreutils/>.
1.1 noro 3128:
3129: If you want to complete the configuration process using your problematic
3130: 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3131: to "yes", and re-run configure.
3132:
3133: END
3134: as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3135: fi
3136: fi
3137:
3138:
3139: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3140: $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3141: # Check whether --enable-maintainer-mode was given.
3142: if test "${enable_maintainer_mode+set}" = set; then :
3143: enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3144: else
3145: USE_MAINTAINER_MODE=no
3146: fi
3147:
3148: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3149: $as_echo "$USE_MAINTAINER_MODE" >&6; }
3150: if test $USE_MAINTAINER_MODE = yes; then
3151: MAINTAINER_MODE_TRUE=
3152: MAINTAINER_MODE_FALSE='#'
3153: else
3154: MAINTAINER_MODE_TRUE='#'
3155: MAINTAINER_MODE_FALSE=
3156: fi
3157:
3158: MAINT=$MAINTAINER_MODE_TRUE
3159:
3160:
1.5 ohara 3161: case `pwd` in
3162: *\ * | *\ *)
3163: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3164: $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3165: esac
3166:
1.1 noro 3167:
3168:
1.5 ohara 3169: macro_version='2.4.6'
3170: macro_revision='2.4.6'
3171:
3172:
3173:
3174:
3175:
3176:
3177:
3178:
3179:
3180:
3181:
3182:
3183:
3184: ltmain=$ac_aux_dir/ltmain.sh
3185:
3186: # Backslashify metacharacters that are still active within
3187: # double-quoted strings.
3188: sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3189:
3190: # Same as above, but do not quote variable references.
3191: double_quote_subst='s/\(["`\\]\)/\\\1/g'
3192:
3193: # Sed substitution to delay expansion of an escaped shell variable in a
3194: # double_quote_subst'ed string.
3195: delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3196:
3197: # Sed substitution to delay expansion of an escaped single quote.
3198: delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3199:
3200: # Sed substitution to avoid accidental globbing in evaled expressions
3201: no_glob_subst='s/\*/\\\*/g'
3202:
3203: ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3204: ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3205: ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3206:
3207: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3208: $as_echo_n "checking how to print strings... " >&6; }
3209: # Test print first, because it will be a builtin if present.
3210: if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
3211: test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3212: ECHO='print -r --'
3213: elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3214: ECHO='printf %s\n'
3215: else
3216: # Use this function as a fallback that always works.
3217: func_fallback_echo ()
3218: {
3219: eval 'cat <<_LTECHO_EOF
3220: $1
3221: _LTECHO_EOF'
3222: }
3223: ECHO='func_fallback_echo'
3224: fi
3225:
3226: # func_echo_all arg...
3227: # Invoke $ECHO with all args, space-separated.
3228: func_echo_all ()
3229: {
3230: $ECHO ""
3231: }
3232:
3233: case $ECHO in
3234: printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
3235: $as_echo "printf" >&6; } ;;
3236: print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
3237: $as_echo "print -r" >&6; } ;;
3238: *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
3239: $as_echo "cat" >&6; } ;;
3240: esac
3241:
3242:
3243:
3244:
3245:
3246:
3247:
3248:
3249:
3250:
3251:
3252:
3253:
3254:
3255: DEPDIR="${am__leading_dot}deps"
3256:
3257: ac_config_commands="$ac_config_commands depfiles"
3258:
3259: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3260: $as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
3261: cat > confinc.mk << 'END'
3262: am__doit:
3263: @echo this is the am__doit target >confinc.out
3264: .PHONY: am__doit
3265: END
3266: am__include="#"
3267: am__quote=
3268: # BSD make does it like this.
3269: echo '.include "confinc.mk" # ignored' > confmf.BSD
3270: # Other make implementations (GNU, Solaris 10, AIX) do it like this.
3271: echo 'include confinc.mk # ignored' > confmf.GNU
3272: _am_result=no
3273: for s in GNU BSD; do
3274: { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3275: (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3276: ac_status=$?
3277: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3278: (exit $ac_status); }
3279: case $?:`cat confinc.out 2>/dev/null` in #(
3280: '0:this is the am__doit target') :
3281: case $s in #(
3282: BSD) :
3283: am__include='.include' am__quote='"' ;; #(
3284: *) :
3285: am__include='include' am__quote='' ;;
3286: esac ;; #(
3287: *) :
3288: ;;
3289: esac
3290: if test "$am__include" != "#"; then
3291: _am_result="yes ($s style)"
3292: break
3293: fi
3294: done
3295: rm -f confinc.* confmf.*
3296: { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3297: $as_echo "${_am_result}" >&6; }
3298:
3299: # Check whether --enable-dependency-tracking was given.
3300: if test "${enable_dependency_tracking+set}" = set; then :
3301: enableval=$enable_dependency_tracking;
3302: fi
3303:
3304: if test "x$enable_dependency_tracking" != xno; then
3305: am_depcomp="$ac_aux_dir/depcomp"
3306: AMDEPBACKSLASH='\'
3307: am__nodep='_no'
3308: fi
3309: if test "x$enable_dependency_tracking" != xno; then
3310: AMDEP_TRUE=
3311: AMDEP_FALSE='#'
3312: else
3313: AMDEP_TRUE='#'
3314: AMDEP_FALSE=
3315: fi
3316:
3317:
3318: ac_ext=c
3319: ac_cpp='$CPP $CPPFLAGS'
3320: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3321: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3322: ac_compiler_gnu=$ac_cv_c_compiler_gnu
3323: if test -n "$ac_tool_prefix"; then
3324: # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3325: set dummy ${ac_tool_prefix}gcc; ac_word=$2
3326: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3327: $as_echo_n "checking for $ac_word... " >&6; }
3328: if ${ac_cv_prog_CC+:} false; then :
3329: $as_echo_n "(cached) " >&6
3330: else
3331: if test -n "$CC"; then
3332: ac_cv_prog_CC="$CC" # Let the user override the test.
3333: else
3334: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3335: for as_dir in $PATH
3336: do
3337: IFS=$as_save_IFS
3338: test -z "$as_dir" && as_dir=.
3339: for ac_exec_ext in '' $ac_executable_extensions; do
3340: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3341: ac_cv_prog_CC="${ac_tool_prefix}gcc"
3342: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3343: break 2
3344: fi
3345: done
3346: done
3347: IFS=$as_save_IFS
3348:
3349: fi
3350: fi
3351: CC=$ac_cv_prog_CC
3352: if test -n "$CC"; then
3353: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3354: $as_echo "$CC" >&6; }
3355: else
3356: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3357: $as_echo "no" >&6; }
3358: fi
1.1 noro 3359:
3360:
3361: fi
3362: if test -z "$ac_cv_prog_CC"; then
3363: ac_ct_CC=$CC
3364: # Extract the first word of "gcc", so it can be a program name with args.
3365: set dummy gcc; ac_word=$2
3366: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3367: $as_echo_n "checking for $ac_word... " >&6; }
3368: if ${ac_cv_prog_ac_ct_CC+:} false; then :
3369: $as_echo_n "(cached) " >&6
3370: else
3371: if test -n "$ac_ct_CC"; then
3372: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3373: else
3374: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3375: for as_dir in $PATH
3376: do
3377: IFS=$as_save_IFS
3378: test -z "$as_dir" && as_dir=.
3379: for ac_exec_ext in '' $ac_executable_extensions; do
3380: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3381: ac_cv_prog_ac_ct_CC="gcc"
3382: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3383: break 2
3384: fi
3385: done
3386: done
3387: IFS=$as_save_IFS
3388:
3389: fi
3390: fi
3391: ac_ct_CC=$ac_cv_prog_ac_ct_CC
3392: if test -n "$ac_ct_CC"; then
3393: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3394: $as_echo "$ac_ct_CC" >&6; }
3395: else
3396: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3397: $as_echo "no" >&6; }
3398: fi
3399:
3400: if test "x$ac_ct_CC" = x; then
3401: CC=""
3402: else
3403: case $cross_compiling:$ac_tool_warned in
3404: yes:)
3405: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3406: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3407: ac_tool_warned=yes ;;
3408: esac
3409: CC=$ac_ct_CC
3410: fi
3411: else
3412: CC="$ac_cv_prog_CC"
3413: fi
3414:
3415: if test -z "$CC"; then
3416: if test -n "$ac_tool_prefix"; then
3417: # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3418: set dummy ${ac_tool_prefix}cc; ac_word=$2
3419: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3420: $as_echo_n "checking for $ac_word... " >&6; }
3421: if ${ac_cv_prog_CC+:} false; then :
3422: $as_echo_n "(cached) " >&6
3423: else
3424: if test -n "$CC"; then
3425: ac_cv_prog_CC="$CC" # Let the user override the test.
3426: else
3427: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3428: for as_dir in $PATH
3429: do
3430: IFS=$as_save_IFS
3431: test -z "$as_dir" && as_dir=.
3432: for ac_exec_ext in '' $ac_executable_extensions; do
3433: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3434: ac_cv_prog_CC="${ac_tool_prefix}cc"
3435: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3436: break 2
3437: fi
3438: done
3439: done
3440: IFS=$as_save_IFS
3441:
3442: fi
3443: fi
3444: CC=$ac_cv_prog_CC
3445: if test -n "$CC"; then
3446: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3447: $as_echo "$CC" >&6; }
3448: else
3449: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3450: $as_echo "no" >&6; }
3451: fi
3452:
3453:
3454: fi
3455: fi
3456: if test -z "$CC"; then
3457: # Extract the first word of "cc", so it can be a program name with args.
3458: set dummy cc; ac_word=$2
3459: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3460: $as_echo_n "checking for $ac_word... " >&6; }
3461: if ${ac_cv_prog_CC+:} false; then :
3462: $as_echo_n "(cached) " >&6
3463: else
3464: if test -n "$CC"; then
3465: ac_cv_prog_CC="$CC" # Let the user override the test.
3466: else
3467: ac_prog_rejected=no
3468: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3469: for as_dir in $PATH
3470: do
3471: IFS=$as_save_IFS
3472: test -z "$as_dir" && as_dir=.
3473: for ac_exec_ext in '' $ac_executable_extensions; do
3474: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3475: if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3476: ac_prog_rejected=yes
3477: continue
3478: fi
3479: ac_cv_prog_CC="cc"
3480: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3481: break 2
3482: fi
3483: done
3484: done
3485: IFS=$as_save_IFS
3486:
3487: if test $ac_prog_rejected = yes; then
3488: # We found a bogon in the path, so make sure we never use it.
3489: set dummy $ac_cv_prog_CC
3490: shift
3491: if test $# != 0; then
3492: # We chose a different compiler from the bogus one.
3493: # However, it has the same basename, so the bogon will be chosen
3494: # first if we set CC to just the basename; use the full file name.
3495: shift
3496: ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3497: fi
3498: fi
3499: fi
3500: fi
3501: CC=$ac_cv_prog_CC
3502: if test -n "$CC"; then
3503: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3504: $as_echo "$CC" >&6; }
3505: else
3506: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3507: $as_echo "no" >&6; }
3508: fi
3509:
3510:
3511: fi
3512: if test -z "$CC"; then
3513: if test -n "$ac_tool_prefix"; then
3514: for ac_prog in cl.exe
3515: do
3516: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3517: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3518: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3519: $as_echo_n "checking for $ac_word... " >&6; }
3520: if ${ac_cv_prog_CC+:} false; then :
3521: $as_echo_n "(cached) " >&6
3522: else
3523: if test -n "$CC"; then
3524: ac_cv_prog_CC="$CC" # Let the user override the test.
3525: else
3526: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3527: for as_dir in $PATH
3528: do
3529: IFS=$as_save_IFS
3530: test -z "$as_dir" && as_dir=.
3531: for ac_exec_ext in '' $ac_executable_extensions; do
3532: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3533: ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3534: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3535: break 2
3536: fi
3537: done
3538: done
3539: IFS=$as_save_IFS
3540:
3541: fi
3542: fi
3543: CC=$ac_cv_prog_CC
3544: if test -n "$CC"; then
3545: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3546: $as_echo "$CC" >&6; }
3547: else
3548: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3549: $as_echo "no" >&6; }
3550: fi
3551:
3552:
3553: test -n "$CC" && break
3554: done
3555: fi
3556: if test -z "$CC"; then
3557: ac_ct_CC=$CC
3558: for ac_prog in cl.exe
3559: do
3560: # Extract the first word of "$ac_prog", so it can be a program name with args.
3561: set dummy $ac_prog; ac_word=$2
3562: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3563: $as_echo_n "checking for $ac_word... " >&6; }
3564: if ${ac_cv_prog_ac_ct_CC+:} false; then :
3565: $as_echo_n "(cached) " >&6
3566: else
3567: if test -n "$ac_ct_CC"; then
3568: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3569: else
3570: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3571: for as_dir in $PATH
3572: do
3573: IFS=$as_save_IFS
3574: test -z "$as_dir" && as_dir=.
3575: for ac_exec_ext in '' $ac_executable_extensions; do
3576: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3577: ac_cv_prog_ac_ct_CC="$ac_prog"
3578: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3579: break 2
3580: fi
3581: done
3582: done
3583: IFS=$as_save_IFS
3584:
3585: fi
3586: fi
3587: ac_ct_CC=$ac_cv_prog_ac_ct_CC
3588: if test -n "$ac_ct_CC"; then
3589: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3590: $as_echo "$ac_ct_CC" >&6; }
3591: else
3592: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3593: $as_echo "no" >&6; }
3594: fi
3595:
3596:
3597: test -n "$ac_ct_CC" && break
3598: done
3599:
3600: if test "x$ac_ct_CC" = x; then
3601: CC=""
3602: else
3603: case $cross_compiling:$ac_tool_warned in
3604: yes:)
3605: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3606: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3607: ac_tool_warned=yes ;;
3608: esac
3609: CC=$ac_ct_CC
3610: fi
3611: fi
3612:
3613: fi
3614:
3615:
3616: test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3617: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3618: as_fn_error $? "no acceptable C compiler found in \$PATH
3619: See \`config.log' for more details" "$LINENO" 5; }
3620:
3621: # Provide some information about the compiler.
3622: $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3623: set X $ac_compile
3624: ac_compiler=$2
3625: for ac_option in --version -v -V -qversion; do
3626: { { ac_try="$ac_compiler $ac_option >&5"
3627: case "(($ac_try" in
3628: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3629: *) ac_try_echo=$ac_try;;
3630: esac
3631: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3632: $as_echo "$ac_try_echo"; } >&5
3633: (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3634: ac_status=$?
3635: if test -s conftest.err; then
3636: sed '10a\
3637: ... rest of stderr output deleted ...
3638: 10q' conftest.err >conftest.er1
3639: cat conftest.er1 >&5
3640: fi
3641: rm -f conftest.er1 conftest.err
3642: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3643: test $ac_status = 0; }
3644: done
3645:
3646: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3647: /* end confdefs.h. */
3648:
3649: int
3650: main ()
3651: {
3652:
3653: ;
3654: return 0;
3655: }
3656: _ACEOF
3657: ac_clean_files_save=$ac_clean_files
3658: ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3659: # Try to create an executable without -o first, disregard a.out.
3660: # It will help us diagnose broken compilers, and finding out an intuition
3661: # of exeext.
3662: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3663: $as_echo_n "checking whether the C compiler works... " >&6; }
3664: ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3665:
3666: # The possible output files:
3667: ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3668:
3669: ac_rmfiles=
3670: for ac_file in $ac_files
3671: do
3672: case $ac_file in
3673: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3674: * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3675: esac
3676: done
3677: rm -f $ac_rmfiles
3678:
3679: if { { ac_try="$ac_link_default"
3680: case "(($ac_try" in
3681: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3682: *) ac_try_echo=$ac_try;;
3683: esac
3684: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3685: $as_echo "$ac_try_echo"; } >&5
3686: (eval "$ac_link_default") 2>&5
3687: ac_status=$?
3688: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3689: test $ac_status = 0; }; then :
3690: # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3691: # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3692: # in a Makefile. We should not override ac_cv_exeext if it was cached,
3693: # so that the user can short-circuit this test for compilers unknown to
3694: # Autoconf.
3695: for ac_file in $ac_files ''
3696: do
3697: test -f "$ac_file" || continue
3698: case $ac_file in
3699: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3700: ;;
3701: [ab].out )
3702: # We found the default executable, but exeext='' is most
3703: # certainly right.
3704: break;;
3705: *.* )
3706: if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3707: then :; else
3708: ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3709: fi
3710: # We set ac_cv_exeext here because the later test for it is not
3711: # safe: cross compilers may not add the suffix if given an `-o'
3712: # argument, so we may need to know it at that point already.
3713: # Even if this section looks crufty: it has the advantage of
3714: # actually working.
3715: break;;
3716: * )
3717: break;;
3718: esac
3719: done
3720: test "$ac_cv_exeext" = no && ac_cv_exeext=
3721:
3722: else
3723: ac_file=''
3724: fi
3725: if test -z "$ac_file"; then :
3726: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3727: $as_echo "no" >&6; }
3728: $as_echo "$as_me: failed program was:" >&5
3729: sed 's/^/| /' conftest.$ac_ext >&5
3730:
3731: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3732: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3733: as_fn_error 77 "C compiler cannot create executables
3734: See \`config.log' for more details" "$LINENO" 5; }
3735: else
3736: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3737: $as_echo "yes" >&6; }
3738: fi
3739: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3740: $as_echo_n "checking for C compiler default output file name... " >&6; }
3741: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3742: $as_echo "$ac_file" >&6; }
3743: ac_exeext=$ac_cv_exeext
3744:
3745: rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3746: ac_clean_files=$ac_clean_files_save
3747: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3748: $as_echo_n "checking for suffix of executables... " >&6; }
3749: if { { ac_try="$ac_link"
3750: case "(($ac_try" in
3751: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3752: *) ac_try_echo=$ac_try;;
3753: esac
3754: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3755: $as_echo "$ac_try_echo"; } >&5
3756: (eval "$ac_link") 2>&5
3757: ac_status=$?
3758: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3759: test $ac_status = 0; }; then :
3760: # If both `conftest.exe' and `conftest' are `present' (well, observable)
3761: # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3762: # work properly (i.e., refer to `conftest.exe'), while it won't with
3763: # `rm'.
3764: for ac_file in conftest.exe conftest conftest.*; do
3765: test -f "$ac_file" || continue
3766: case $ac_file in
3767: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3768: *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3769: break;;
3770: * ) break;;
3771: esac
3772: done
3773: else
3774: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3775: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3776: as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3777: See \`config.log' for more details" "$LINENO" 5; }
3778: fi
3779: rm -f conftest conftest$ac_cv_exeext
3780: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3781: $as_echo "$ac_cv_exeext" >&6; }
3782:
3783: rm -f conftest.$ac_ext
3784: EXEEXT=$ac_cv_exeext
3785: ac_exeext=$EXEEXT
3786: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3787: /* end confdefs.h. */
3788: #include <stdio.h>
3789: int
3790: main ()
3791: {
3792: FILE *f = fopen ("conftest.out", "w");
3793: return ferror (f) || fclose (f) != 0;
3794:
3795: ;
3796: return 0;
3797: }
3798: _ACEOF
3799: ac_clean_files="$ac_clean_files conftest.out"
3800: # Check that the compiler produces executables we can run. If not, either
3801: # the compiler is broken, or we cross compile.
3802: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3803: $as_echo_n "checking whether we are cross compiling... " >&6; }
3804: if test "$cross_compiling" != yes; then
3805: { { ac_try="$ac_link"
3806: case "(($ac_try" in
3807: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3808: *) ac_try_echo=$ac_try;;
3809: esac
3810: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3811: $as_echo "$ac_try_echo"; } >&5
3812: (eval "$ac_link") 2>&5
3813: ac_status=$?
3814: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3815: test $ac_status = 0; }
3816: if { ac_try='./conftest$ac_cv_exeext'
3817: { { case "(($ac_try" in
3818: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3819: *) ac_try_echo=$ac_try;;
3820: esac
3821: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3822: $as_echo "$ac_try_echo"; } >&5
3823: (eval "$ac_try") 2>&5
3824: ac_status=$?
3825: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3826: test $ac_status = 0; }; }; then
3827: cross_compiling=no
3828: else
3829: if test "$cross_compiling" = maybe; then
3830: cross_compiling=yes
3831: else
3832: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3833: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3834: as_fn_error $? "cannot run C compiled programs.
3835: If you meant to cross compile, use \`--host'.
3836: See \`config.log' for more details" "$LINENO" 5; }
3837: fi
3838: fi
3839: fi
3840: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3841: $as_echo "$cross_compiling" >&6; }
3842:
3843: rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3844: ac_clean_files=$ac_clean_files_save
3845: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3846: $as_echo_n "checking for suffix of object files... " >&6; }
3847: if ${ac_cv_objext+:} false; then :
3848: $as_echo_n "(cached) " >&6
3849: else
3850: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3851: /* end confdefs.h. */
3852:
3853: int
3854: main ()
3855: {
3856:
3857: ;
3858: return 0;
3859: }
3860: _ACEOF
3861: rm -f conftest.o conftest.obj
3862: if { { ac_try="$ac_compile"
3863: case "(($ac_try" in
3864: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3865: *) ac_try_echo=$ac_try;;
3866: esac
3867: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3868: $as_echo "$ac_try_echo"; } >&5
3869: (eval "$ac_compile") 2>&5
3870: ac_status=$?
3871: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3872: test $ac_status = 0; }; then :
3873: for ac_file in conftest.o conftest.obj conftest.*; do
3874: test -f "$ac_file" || continue;
3875: case $ac_file in
3876: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3877: *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3878: break;;
3879: esac
3880: done
3881: else
3882: $as_echo "$as_me: failed program was:" >&5
3883: sed 's/^/| /' conftest.$ac_ext >&5
3884:
3885: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3886: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3887: as_fn_error $? "cannot compute suffix of object files: cannot compile
3888: See \`config.log' for more details" "$LINENO" 5; }
3889: fi
3890: rm -f conftest.$ac_cv_objext conftest.$ac_ext
3891: fi
3892: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3893: $as_echo "$ac_cv_objext" >&6; }
3894: OBJEXT=$ac_cv_objext
3895: ac_objext=$OBJEXT
3896: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3897: $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3898: if ${ac_cv_c_compiler_gnu+:} false; then :
3899: $as_echo_n "(cached) " >&6
3900: else
3901: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3902: /* end confdefs.h. */
3903:
3904: int
3905: main ()
3906: {
3907: #ifndef __GNUC__
3908: choke me
3909: #endif
3910:
3911: ;
3912: return 0;
3913: }
3914: _ACEOF
3915: if ac_fn_c_try_compile "$LINENO"; then :
3916: ac_compiler_gnu=yes
3917: else
3918: ac_compiler_gnu=no
3919: fi
3920: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3921: ac_cv_c_compiler_gnu=$ac_compiler_gnu
3922:
3923: fi
3924: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3925: $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3926: if test $ac_compiler_gnu = yes; then
3927: GCC=yes
3928: else
3929: GCC=
3930: fi
3931: ac_test_CFLAGS=${CFLAGS+set}
3932: ac_save_CFLAGS=$CFLAGS
3933: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3934: $as_echo_n "checking whether $CC accepts -g... " >&6; }
3935: if ${ac_cv_prog_cc_g+:} false; then :
3936: $as_echo_n "(cached) " >&6
3937: else
3938: ac_save_c_werror_flag=$ac_c_werror_flag
3939: ac_c_werror_flag=yes
3940: ac_cv_prog_cc_g=no
3941: CFLAGS="-g"
3942: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3943: /* end confdefs.h. */
3944:
3945: int
3946: main ()
3947: {
3948:
3949: ;
3950: return 0;
3951: }
3952: _ACEOF
3953: if ac_fn_c_try_compile "$LINENO"; then :
3954: ac_cv_prog_cc_g=yes
3955: else
3956: CFLAGS=""
3957: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3958: /* end confdefs.h. */
3959:
3960: int
3961: main ()
3962: {
3963:
3964: ;
3965: return 0;
3966: }
3967: _ACEOF
3968: if ac_fn_c_try_compile "$LINENO"; then :
3969:
3970: else
3971: ac_c_werror_flag=$ac_save_c_werror_flag
3972: CFLAGS="-g"
3973: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3974: /* end confdefs.h. */
3975:
3976: int
3977: main ()
3978: {
3979:
3980: ;
3981: return 0;
3982: }
3983: _ACEOF
3984: if ac_fn_c_try_compile "$LINENO"; then :
3985: ac_cv_prog_cc_g=yes
3986: fi
3987: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3988: fi
3989: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3990: fi
3991: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3992: ac_c_werror_flag=$ac_save_c_werror_flag
3993: fi
3994: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3995: $as_echo "$ac_cv_prog_cc_g" >&6; }
3996: if test "$ac_test_CFLAGS" = set; then
3997: CFLAGS=$ac_save_CFLAGS
3998: elif test $ac_cv_prog_cc_g = yes; then
3999: if test "$GCC" = yes; then
4000: CFLAGS="-g -O2"
4001: else
4002: CFLAGS="-g"
4003: fi
4004: else
4005: if test "$GCC" = yes; then
4006: CFLAGS="-O2"
4007: else
4008: CFLAGS=
4009: fi
4010: fi
4011: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4012: $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4013: if ${ac_cv_prog_cc_c89+:} false; then :
4014: $as_echo_n "(cached) " >&6
4015: else
4016: ac_cv_prog_cc_c89=no
4017: ac_save_CC=$CC
4018: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4019: /* end confdefs.h. */
4020: #include <stdarg.h>
4021: #include <stdio.h>
4022: struct stat;
4023: /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4024: struct buf { int x; };
4025: FILE * (*rcsopen) (struct buf *, struct stat *, int);
4026: static char *e (p, i)
4027: char **p;
4028: int i;
4029: {
4030: return p[i];
4031: }
4032: static char *f (char * (*g) (char **, int), char **p, ...)
4033: {
4034: char *s;
4035: va_list v;
4036: va_start (v,p);
4037: s = g (p, va_arg (v,int));
4038: va_end (v);
4039: return s;
4040: }
4041:
4042: /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4043: function prototypes and stuff, but not '\xHH' hex character constants.
4044: These don't provoke an error unfortunately, instead are silently treated
4045: as 'x'. The following induces an error, until -std is added to get
4046: proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4047: array size at least. It's necessary to write '\x00'==0 to get something
4048: that's true only with -std. */
4049: int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4050:
4051: /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4052: inside strings and character constants. */
4053: #define FOO(x) 'x'
4054: int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4055:
4056: int test (int i, double x);
4057: struct s1 {int (*f) (int a);};
4058: struct s2 {int (*f) (double a);};
4059: int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4060: int argc;
4061: char **argv;
4062: int
4063: main ()
4064: {
4065: return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4066: ;
4067: return 0;
4068: }
4069: _ACEOF
4070: for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4071: -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4072: do
4073: CC="$ac_save_CC $ac_arg"
4074: if ac_fn_c_try_compile "$LINENO"; then :
4075: ac_cv_prog_cc_c89=$ac_arg
4076: fi
4077: rm -f core conftest.err conftest.$ac_objext
4078: test "x$ac_cv_prog_cc_c89" != "xno" && break
4079: done
4080: rm -f conftest.$ac_ext
4081: CC=$ac_save_CC
4082:
4083: fi
4084: # AC_CACHE_VAL
4085: case "x$ac_cv_prog_cc_c89" in
4086: x)
4087: { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4088: $as_echo "none needed" >&6; } ;;
4089: xno)
4090: { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4091: $as_echo "unsupported" >&6; } ;;
4092: *)
4093: CC="$CC $ac_cv_prog_cc_c89"
4094: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4095: $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4096: esac
4097: if test "x$ac_cv_prog_cc_c89" != xno; then :
4098:
4099: fi
4100:
4101: ac_ext=c
4102: ac_cpp='$CPP $CPPFLAGS'
4103: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4104: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4105: ac_compiler_gnu=$ac_cv_c_compiler_gnu
4106:
4107: ac_ext=c
4108: ac_cpp='$CPP $CPPFLAGS'
4109: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4110: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4111: ac_compiler_gnu=$ac_cv_c_compiler_gnu
4112: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4113: $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4114: if ${am_cv_prog_cc_c_o+:} false; then :
4115: $as_echo_n "(cached) " >&6
4116: else
4117: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4118: /* end confdefs.h. */
4119:
4120: int
4121: main ()
4122: {
4123:
4124: ;
4125: return 0;
4126: }
4127: _ACEOF
4128: # Make sure it works both with $CC and with simple cc.
4129: # Following AC_PROG_CC_C_O, we do the test twice because some
4130: # compilers refuse to overwrite an existing .o file with -o,
4131: # though they will create one.
4132: am_cv_prog_cc_c_o=yes
4133: for am_i in 1 2; do
4134: if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4135: ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4136: ac_status=$?
4137: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4138: (exit $ac_status); } \
4139: && test -f conftest2.$ac_objext; then
4140: : OK
4141: else
4142: am_cv_prog_cc_c_o=no
4143: break
4144: fi
4145: done
4146: rm -f core conftest*
4147: unset am_i
4148: fi
4149: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4150: $as_echo "$am_cv_prog_cc_c_o" >&6; }
4151: if test "$am_cv_prog_cc_c_o" != yes; then
4152: # Losing compiler, so override with the script.
4153: # FIXME: It is wrong to rewrite CC.
4154: # But if we don't then we get into trouble of one sort or another.
4155: # A longer-term fix would be to have automake use am__CC in this case,
4156: # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4157: CC="$am_aux_dir/compile $CC"
4158: fi
4159: ac_ext=c
4160: ac_cpp='$CPP $CPPFLAGS'
4161: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4162: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4163: ac_compiler_gnu=$ac_cv_c_compiler_gnu
4164:
4165:
4166: depcc="$CC" am_compiler_list=
4167:
4168: { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4169: $as_echo_n "checking dependency style of $depcc... " >&6; }
4170: if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4171: $as_echo_n "(cached) " >&6
4172: else
4173: if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4174: # We make a subdir and do the tests there. Otherwise we can end up
4175: # making bogus files that we don't know about and never remove. For
4176: # instance it was reported that on HP-UX the gcc test will end up
4177: # making a dummy file named 'D' -- because '-MD' means "put the output
4178: # in D".
4179: rm -rf conftest.dir
4180: mkdir conftest.dir
4181: # Copy depcomp to subdir because otherwise we won't find it if we're
4182: # using a relative directory.
4183: cp "$am_depcomp" conftest.dir
4184: cd conftest.dir
4185: # We will build objects and dependencies in a subdirectory because
4186: # it helps to detect inapplicable dependency modes. For instance
4187: # both Tru64's cc and ICC support -MD to output dependencies as a
4188: # side effect of compilation, but ICC will put the dependencies in
4189: # the current directory while Tru64 will put them in the object
4190: # directory.
4191: mkdir sub
4192:
4193: am_cv_CC_dependencies_compiler_type=none
4194: if test "$am_compiler_list" = ""; then
4195: am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4196: fi
4197: am__universal=false
4198: case " $depcc " in #(
4199: *\ -arch\ *\ -arch\ *) am__universal=true ;;
4200: esac
4201:
4202: for depmode in $am_compiler_list; do
4203: # Setup a source with many dependencies, because some compilers
4204: # like to wrap large dependency lists on column 80 (with \), and
4205: # we should not choose a depcomp mode which is confused by this.
4206: #
4207: # We need to recreate these files for each test, as the compiler may
4208: # overwrite some of them when testing with obscure command lines.
4209: # This happens at least with the AIX C compiler.
4210: : > sub/conftest.c
4211: for i in 1 2 3 4 5 6; do
4212: echo '#include "conftst'$i'.h"' >> sub/conftest.c
4213: # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4214: # Solaris 10 /bin/sh.
4215: echo '/* dummy */' > sub/conftst$i.h
4216: done
4217: echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4218:
4219: # We check with '-c' and '-o' for the sake of the "dashmstdout"
4220: # mode. It turns out that the SunPro C++ compiler does not properly
4221: # handle '-M -o', and we need to detect this. Also, some Intel
4222: # versions had trouble with output in subdirs.
4223: am__obj=sub/conftest.${OBJEXT-o}
4224: am__minus_obj="-o $am__obj"
4225: case $depmode in
4226: gcc)
4227: # This depmode causes a compiler race in universal mode.
4228: test "$am__universal" = false || continue
4229: ;;
4230: nosideeffect)
4231: # After this tag, mechanisms are not by side-effect, so they'll
4232: # only be used when explicitly requested.
4233: if test "x$enable_dependency_tracking" = xyes; then
4234: continue
4235: else
4236: break
4237: fi
4238: ;;
4239: msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4240: # This compiler won't grok '-c -o', but also, the minuso test has
4241: # not run yet. These depmodes are late enough in the game, and
4242: # so weak that their functioning should not be impacted.
4243: am__obj=conftest.${OBJEXT-o}
4244: am__minus_obj=
4245: ;;
4246: none) break ;;
4247: esac
4248: if depmode=$depmode \
4249: source=sub/conftest.c object=$am__obj \
4250: depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4251: $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4252: >/dev/null 2>conftest.err &&
4253: grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4254: grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4255: grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4256: ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4257: # icc doesn't choke on unknown options, it will just issue warnings
4258: # or remarks (even with -Werror). So we grep stderr for any message
4259: # that says an option was ignored or not supported.
4260: # When given -MP, icc 7.0 and 7.1 complain thusly:
4261: # icc: Command line warning: ignoring option '-M'; no argument required
4262: # The diagnosis changed in icc 8.0:
4263: # icc: Command line remark: option '-MP' not supported
4264: if (grep 'ignoring option' conftest.err ||
4265: grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4266: am_cv_CC_dependencies_compiler_type=$depmode
4267: break
4268: fi
4269: fi
4270: done
4271:
4272: cd ..
4273: rm -rf conftest.dir
4274: else
4275: am_cv_CC_dependencies_compiler_type=none
4276: fi
4277:
4278: fi
4279: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4280: $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4281: CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4282:
4283: if
4284: test "x$enable_dependency_tracking" != xno \
4285: && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4286: am__fastdepCC_TRUE=
4287: am__fastdepCC_FALSE='#'
4288: else
4289: am__fastdepCC_TRUE='#'
4290: am__fastdepCC_FALSE=
4291: fi
4292:
4293:
1.5 ohara 4294: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4295: $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4296: if ${ac_cv_path_SED+:} false; then :
1.1 noro 4297: $as_echo_n "(cached) " >&6
4298: else
1.5 ohara 4299: ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4300: for ac_i in 1 2 3 4 5 6 7; do
4301: ac_script="$ac_script$as_nl$ac_script"
4302: done
4303: echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4304: { ac_script=; unset ac_script;}
4305: if test -z "$SED"; then
4306: ac_path_SED_found=false
4307: # Loop through the user's path and test for each of PROGNAME-LIST
4308: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1.1 noro 4309: for as_dir in $PATH
4310: do
4311: IFS=$as_save_IFS
4312: test -z "$as_dir" && as_dir=.
1.5 ohara 4313: for ac_prog in sed gsed; do
1.1 noro 4314: for ac_exec_ext in '' $ac_executable_extensions; do
1.5 ohara 4315: ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4316: as_fn_executable_p "$ac_path_SED" || continue
4317: # Check for GNU ac_path_SED and select it if it is found.
4318: # Check for GNU $ac_path_SED
4319: case `"$ac_path_SED" --version 2>&1` in
4320: *GNU*)
4321: ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4322: *)
4323: ac_count=0
4324: $as_echo_n 0123456789 >"conftest.in"
4325: while :
4326: do
4327: cat "conftest.in" "conftest.in" >"conftest.tmp"
4328: mv "conftest.tmp" "conftest.in"
4329: cp "conftest.in" "conftest.nl"
4330: $as_echo '' >> "conftest.nl"
4331: "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4332: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4333: as_fn_arith $ac_count + 1 && ac_count=$as_val
4334: if test $ac_count -gt ${ac_path_SED_max-0}; then
4335: # Best one so far, save it but keep looking for a better one
4336: ac_cv_path_SED="$ac_path_SED"
4337: ac_path_SED_max=$ac_count
4338: fi
4339: # 10*(2^10) chars as input seems more than enough
4340: test $ac_count -gt 10 && break
4341: done
4342: rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4343: esac
4344:
4345: $ac_path_SED_found && break 3
4346: done
4347: done
1.1 noro 4348: done
4349: IFS=$as_save_IFS
1.5 ohara 4350: if test -z "$ac_cv_path_SED"; then
4351: as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4352: fi
4353: else
4354: ac_cv_path_SED=$SED
4355: fi
1.1 noro 4356:
4357: fi
1.5 ohara 4358: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4359: $as_echo "$ac_cv_path_SED" >&6; }
4360: SED="$ac_cv_path_SED"
4361: rm -f conftest.sed
4362:
4363: test -z "$SED" && SED=sed
4364: Xsed="$SED -e 1s/^X//"
4365:
4366:
4367:
4368:
4369:
4370:
4371:
4372:
4373:
1.1 noro 4374:
4375:
1.5 ohara 4376: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4377: $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4378: if ${ac_cv_path_GREP+:} false; then :
1.1 noro 4379: $as_echo_n "(cached) " >&6
4380: else
1.5 ohara 4381: if test -z "$GREP"; then
4382: ac_path_GREP_found=false
4383: # Loop through the user's path and test for each of PROGNAME-LIST
4384: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4385: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
1.1 noro 4386: do
4387: IFS=$as_save_IFS
4388: test -z "$as_dir" && as_dir=.
1.5 ohara 4389: for ac_prog in grep ggrep; do
1.1 noro 4390: for ac_exec_ext in '' $ac_executable_extensions; do
1.5 ohara 4391: ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4392: as_fn_executable_p "$ac_path_GREP" || continue
4393: # Check for GNU ac_path_GREP and select it if it is found.
4394: # Check for GNU $ac_path_GREP
4395: case `"$ac_path_GREP" --version 2>&1` in
4396: *GNU*)
4397: ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4398: *)
4399: ac_count=0
4400: $as_echo_n 0123456789 >"conftest.in"
4401: while :
4402: do
4403: cat "conftest.in" "conftest.in" >"conftest.tmp"
4404: mv "conftest.tmp" "conftest.in"
4405: cp "conftest.in" "conftest.nl"
4406: $as_echo 'GREP' >> "conftest.nl"
4407: "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4408: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4409: as_fn_arith $ac_count + 1 && ac_count=$as_val
4410: if test $ac_count -gt ${ac_path_GREP_max-0}; then
4411: # Best one so far, save it but keep looking for a better one
4412: ac_cv_path_GREP="$ac_path_GREP"
4413: ac_path_GREP_max=$ac_count
4414: fi
4415: # 10*(2^10) chars as input seems more than enough
4416: test $ac_count -gt 10 && break
4417: done
4418: rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4419: esac
4420:
4421: $ac_path_GREP_found && break 3
4422: done
4423: done
4424: done
4425: IFS=$as_save_IFS
4426: if test -z "$ac_cv_path_GREP"; then
4427: as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4428: fi
4429: else
4430: ac_cv_path_GREP=$GREP
4431: fi
4432:
4433: fi
4434: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4435: $as_echo "$ac_cv_path_GREP" >&6; }
4436: GREP="$ac_cv_path_GREP"
4437:
4438:
4439: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4440: $as_echo_n "checking for egrep... " >&6; }
4441: if ${ac_cv_path_EGREP+:} false; then :
4442: $as_echo_n "(cached) " >&6
4443: else
4444: if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4445: then ac_cv_path_EGREP="$GREP -E"
4446: else
4447: if test -z "$EGREP"; then
4448: ac_path_EGREP_found=false
4449: # Loop through the user's path and test for each of PROGNAME-LIST
4450: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4451: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4452: do
4453: IFS=$as_save_IFS
4454: test -z "$as_dir" && as_dir=.
4455: for ac_prog in egrep; do
4456: for ac_exec_ext in '' $ac_executable_extensions; do
4457: ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4458: as_fn_executable_p "$ac_path_EGREP" || continue
4459: # Check for GNU ac_path_EGREP and select it if it is found.
4460: # Check for GNU $ac_path_EGREP
4461: case `"$ac_path_EGREP" --version 2>&1` in
4462: *GNU*)
4463: ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4464: *)
4465: ac_count=0
4466: $as_echo_n 0123456789 >"conftest.in"
4467: while :
4468: do
4469: cat "conftest.in" "conftest.in" >"conftest.tmp"
4470: mv "conftest.tmp" "conftest.in"
4471: cp "conftest.in" "conftest.nl"
4472: $as_echo 'EGREP' >> "conftest.nl"
4473: "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4474: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4475: as_fn_arith $ac_count + 1 && ac_count=$as_val
4476: if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4477: # Best one so far, save it but keep looking for a better one
4478: ac_cv_path_EGREP="$ac_path_EGREP"
4479: ac_path_EGREP_max=$ac_count
4480: fi
4481: # 10*(2^10) chars as input seems more than enough
4482: test $ac_count -gt 10 && break
4483: done
4484: rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4485: esac
4486:
4487: $ac_path_EGREP_found && break 3
4488: done
4489: done
4490: done
4491: IFS=$as_save_IFS
4492: if test -z "$ac_cv_path_EGREP"; then
4493: as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4494: fi
4495: else
4496: ac_cv_path_EGREP=$EGREP
4497: fi
4498:
4499: fi
4500: fi
4501: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4502: $as_echo "$ac_cv_path_EGREP" >&6; }
4503: EGREP="$ac_cv_path_EGREP"
4504:
4505:
4506: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4507: $as_echo_n "checking for fgrep... " >&6; }
4508: if ${ac_cv_path_FGREP+:} false; then :
4509: $as_echo_n "(cached) " >&6
4510: else
4511: if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4512: then ac_cv_path_FGREP="$GREP -F"
4513: else
4514: if test -z "$FGREP"; then
4515: ac_path_FGREP_found=false
4516: # Loop through the user's path and test for each of PROGNAME-LIST
4517: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4518: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4519: do
4520: IFS=$as_save_IFS
4521: test -z "$as_dir" && as_dir=.
4522: for ac_prog in fgrep; do
4523: for ac_exec_ext in '' $ac_executable_extensions; do
4524: ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4525: as_fn_executable_p "$ac_path_FGREP" || continue
4526: # Check for GNU ac_path_FGREP and select it if it is found.
4527: # Check for GNU $ac_path_FGREP
4528: case `"$ac_path_FGREP" --version 2>&1` in
4529: *GNU*)
4530: ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4531: *)
4532: ac_count=0
4533: $as_echo_n 0123456789 >"conftest.in"
4534: while :
4535: do
4536: cat "conftest.in" "conftest.in" >"conftest.tmp"
4537: mv "conftest.tmp" "conftest.in"
4538: cp "conftest.in" "conftest.nl"
4539: $as_echo 'FGREP' >> "conftest.nl"
4540: "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4541: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4542: as_fn_arith $ac_count + 1 && ac_count=$as_val
4543: if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4544: # Best one so far, save it but keep looking for a better one
4545: ac_cv_path_FGREP="$ac_path_FGREP"
4546: ac_path_FGREP_max=$ac_count
4547: fi
4548: # 10*(2^10) chars as input seems more than enough
4549: test $ac_count -gt 10 && break
4550: done
4551: rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4552: esac
4553:
4554: $ac_path_FGREP_found && break 3
4555: done
4556: done
4557: done
4558: IFS=$as_save_IFS
4559: if test -z "$ac_cv_path_FGREP"; then
4560: as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4561: fi
4562: else
4563: ac_cv_path_FGREP=$FGREP
4564: fi
4565:
4566: fi
4567: fi
4568: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4569: $as_echo "$ac_cv_path_FGREP" >&6; }
4570: FGREP="$ac_cv_path_FGREP"
4571:
4572:
4573: test -z "$GREP" && GREP=grep
4574:
4575:
4576:
4577:
4578:
4579:
4580:
4581:
4582:
4583:
4584:
4585:
4586:
4587:
4588:
4589:
4590:
4591:
4592:
4593: # Check whether --with-gnu-ld was given.
4594: if test "${with_gnu_ld+set}" = set; then :
4595: withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
4596: else
4597: with_gnu_ld=no
4598: fi
4599:
4600: ac_prog=ld
4601: if test yes = "$GCC"; then
4602: # Check if gcc -print-prog-name=ld gives a path.
4603: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4604: $as_echo_n "checking for ld used by $CC... " >&6; }
4605: case $host in
4606: *-*-mingw*)
4607: # gcc leaves a trailing carriage return, which upsets mingw
4608: ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4609: *)
4610: ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4611: esac
4612: case $ac_prog in
4613: # Accept absolute paths.
4614: [\\/]* | ?:[\\/]*)
4615: re_direlt='/[^/][^/]*/\.\./'
4616: # Canonicalize the pathname of ld
4617: ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4618: while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4619: ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4620: done
4621: test -z "$LD" && LD=$ac_prog
4622: ;;
4623: "")
4624: # If it fails, then pretend we aren't using GCC.
4625: ac_prog=ld
4626: ;;
4627: *)
4628: # If it is relative, then search for the first ld in PATH.
4629: with_gnu_ld=unknown
4630: ;;
4631: esac
4632: elif test yes = "$with_gnu_ld"; then
4633: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4634: $as_echo_n "checking for GNU ld... " >&6; }
4635: else
4636: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4637: $as_echo_n "checking for non-GNU ld... " >&6; }
4638: fi
4639: if ${lt_cv_path_LD+:} false; then :
4640: $as_echo_n "(cached) " >&6
4641: else
4642: if test -z "$LD"; then
4643: lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4644: for ac_dir in $PATH; do
4645: IFS=$lt_save_ifs
4646: test -z "$ac_dir" && ac_dir=.
4647: if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4648: lt_cv_path_LD=$ac_dir/$ac_prog
4649: # Check to see if the program is GNU ld. I'd rather use --version,
4650: # but apparently some variants of GNU ld only accept -v.
4651: # Break only if it was the GNU/non-GNU ld that we prefer.
4652: case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4653: *GNU* | *'with BFD'*)
4654: test no != "$with_gnu_ld" && break
4655: ;;
4656: *)
4657: test yes != "$with_gnu_ld" && break
4658: ;;
4659: esac
4660: fi
4661: done
4662: IFS=$lt_save_ifs
4663: else
4664: lt_cv_path_LD=$LD # Let the user override the test with a path.
4665: fi
4666: fi
4667:
4668: LD=$lt_cv_path_LD
4669: if test -n "$LD"; then
4670: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4671: $as_echo "$LD" >&6; }
4672: else
4673: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4674: $as_echo "no" >&6; }
4675: fi
4676: test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4677: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4678: $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4679: if ${lt_cv_prog_gnu_ld+:} false; then :
4680: $as_echo_n "(cached) " >&6
4681: else
4682: # I'd rather use --version here, but apparently some GNU lds only accept -v.
4683: case `$LD -v 2>&1 </dev/null` in
4684: *GNU* | *'with BFD'*)
4685: lt_cv_prog_gnu_ld=yes
4686: ;;
4687: *)
4688: lt_cv_prog_gnu_ld=no
4689: ;;
4690: esac
4691: fi
4692: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4693: $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4694: with_gnu_ld=$lt_cv_prog_gnu_ld
4695:
4696:
4697:
4698:
4699:
4700:
4701:
4702:
4703:
4704: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4705: $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4706: if ${lt_cv_path_NM+:} false; then :
4707: $as_echo_n "(cached) " >&6
4708: else
4709: if test -n "$NM"; then
4710: # Let the user override the test.
4711: lt_cv_path_NM=$NM
4712: else
4713: lt_nm_to_check=${ac_tool_prefix}nm
4714: if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4715: lt_nm_to_check="$lt_nm_to_check nm"
4716: fi
4717: for lt_tmp_nm in $lt_nm_to_check; do
4718: lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4719: for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4720: IFS=$lt_save_ifs
4721: test -z "$ac_dir" && ac_dir=.
4722: tmp_nm=$ac_dir/$lt_tmp_nm
4723: if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
4724: # Check to see if the nm accepts a BSD-compat flag.
4725: # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
4726: # nm: unknown option "B" ignored
4727: # Tru64's nm complains that /dev/null is an invalid object file
4728: # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
4729: case $build_os in
4730: mingw*) lt_bad_file=conftest.nm/nofile ;;
4731: *) lt_bad_file=/dev/null ;;
4732: esac
4733: case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
4734: *$lt_bad_file* | *'Invalid file or object type'*)
4735: lt_cv_path_NM="$tmp_nm -B"
4736: break 2
4737: ;;
4738: *)
4739: case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4740: */dev/null*)
4741: lt_cv_path_NM="$tmp_nm -p"
4742: break 2
4743: ;;
4744: *)
4745: lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4746: continue # so that we can try to find one that supports BSD flags
4747: ;;
4748: esac
4749: ;;
4750: esac
4751: fi
4752: done
4753: IFS=$lt_save_ifs
4754: done
4755: : ${lt_cv_path_NM=no}
4756: fi
4757: fi
4758: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4759: $as_echo "$lt_cv_path_NM" >&6; }
4760: if test no != "$lt_cv_path_NM"; then
4761: NM=$lt_cv_path_NM
4762: else
4763: # Didn't find any BSD compatible name lister, look for dumpbin.
4764: if test -n "$DUMPBIN"; then :
4765: # Let the user override the test.
4766: else
4767: if test -n "$ac_tool_prefix"; then
4768: for ac_prog in dumpbin "link -dump"
4769: do
4770: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4771: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4772: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4773: $as_echo_n "checking for $ac_word... " >&6; }
4774: if ${ac_cv_prog_DUMPBIN+:} false; then :
4775: $as_echo_n "(cached) " >&6
4776: else
4777: if test -n "$DUMPBIN"; then
4778: ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4779: else
4780: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4781: for as_dir in $PATH
4782: do
4783: IFS=$as_save_IFS
4784: test -z "$as_dir" && as_dir=.
4785: for ac_exec_ext in '' $ac_executable_extensions; do
4786: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4787: ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4788: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4789: break 2
4790: fi
4791: done
4792: done
4793: IFS=$as_save_IFS
4794:
4795: fi
4796: fi
4797: DUMPBIN=$ac_cv_prog_DUMPBIN
4798: if test -n "$DUMPBIN"; then
4799: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4800: $as_echo "$DUMPBIN" >&6; }
4801: else
4802: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4803: $as_echo "no" >&6; }
4804: fi
4805:
4806:
4807: test -n "$DUMPBIN" && break
4808: done
4809: fi
4810: if test -z "$DUMPBIN"; then
4811: ac_ct_DUMPBIN=$DUMPBIN
4812: for ac_prog in dumpbin "link -dump"
4813: do
4814: # Extract the first word of "$ac_prog", so it can be a program name with args.
4815: set dummy $ac_prog; ac_word=$2
4816: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4817: $as_echo_n "checking for $ac_word... " >&6; }
4818: if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4819: $as_echo_n "(cached) " >&6
4820: else
4821: if test -n "$ac_ct_DUMPBIN"; then
4822: ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4823: else
4824: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4825: for as_dir in $PATH
4826: do
4827: IFS=$as_save_IFS
4828: test -z "$as_dir" && as_dir=.
4829: for ac_exec_ext in '' $ac_executable_extensions; do
4830: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4831: ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4832: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4833: break 2
4834: fi
4835: done
4836: done
4837: IFS=$as_save_IFS
4838:
4839: fi
4840: fi
4841: ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4842: if test -n "$ac_ct_DUMPBIN"; then
4843: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4844: $as_echo "$ac_ct_DUMPBIN" >&6; }
4845: else
4846: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4847: $as_echo "no" >&6; }
4848: fi
4849:
4850:
4851: test -n "$ac_ct_DUMPBIN" && break
4852: done
4853:
4854: if test "x$ac_ct_DUMPBIN" = x; then
4855: DUMPBIN=":"
4856: else
4857: case $cross_compiling:$ac_tool_warned in
4858: yes:)
4859: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4860: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4861: ac_tool_warned=yes ;;
4862: esac
4863: DUMPBIN=$ac_ct_DUMPBIN
4864: fi
4865: fi
4866:
4867: case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
4868: *COFF*)
4869: DUMPBIN="$DUMPBIN -symbols -headers"
4870: ;;
4871: *)
4872: DUMPBIN=:
4873: ;;
4874: esac
4875: fi
4876:
4877: if test : != "$DUMPBIN"; then
4878: NM=$DUMPBIN
4879: fi
4880: fi
4881: test -z "$NM" && NM=nm
4882:
4883:
4884:
4885:
4886:
4887:
4888: { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4889: $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4890: if ${lt_cv_nm_interface+:} false; then :
4891: $as_echo_n "(cached) " >&6
4892: else
4893: lt_cv_nm_interface="BSD nm"
4894: echo "int some_variable = 0;" > conftest.$ac_ext
4895: (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4896: (eval "$ac_compile" 2>conftest.err)
4897: cat conftest.err >&5
4898: (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4899: (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4900: cat conftest.err >&5
4901: (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4902: cat conftest.out >&5
4903: if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4904: lt_cv_nm_interface="MS dumpbin"
4905: fi
4906: rm -f conftest*
4907: fi
4908: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4909: $as_echo "$lt_cv_nm_interface" >&6; }
4910:
4911: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4912: $as_echo_n "checking whether ln -s works... " >&6; }
4913: LN_S=$as_ln_s
4914: if test "$LN_S" = "ln -s"; then
4915: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4916: $as_echo "yes" >&6; }
4917: else
4918: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4919: $as_echo "no, using $LN_S" >&6; }
4920: fi
4921:
4922: # find the maximum length of command line arguments
4923: { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4924: $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4925: if ${lt_cv_sys_max_cmd_len+:} false; then :
4926: $as_echo_n "(cached) " >&6
4927: else
4928: i=0
4929: teststring=ABCD
4930:
4931: case $build_os in
4932: msdosdjgpp*)
4933: # On DJGPP, this test can blow up pretty badly due to problems in libc
4934: # (any single argument exceeding 2000 bytes causes a buffer overrun
4935: # during glob expansion). Even if it were fixed, the result of this
4936: # check would be larger than it should be.
4937: lt_cv_sys_max_cmd_len=12288; # 12K is about right
4938: ;;
4939:
4940: gnu*)
4941: # Under GNU Hurd, this test is not required because there is
4942: # no limit to the length of command line arguments.
4943: # Libtool will interpret -1 as no limit whatsoever
4944: lt_cv_sys_max_cmd_len=-1;
4945: ;;
4946:
4947: cygwin* | mingw* | cegcc*)
4948: # On Win9x/ME, this test blows up -- it succeeds, but takes
4949: # about 5 minutes as the teststring grows exponentially.
4950: # Worse, since 9x/ME are not pre-emptively multitasking,
4951: # you end up with a "frozen" computer, even though with patience
4952: # the test eventually succeeds (with a max line length of 256k).
4953: # Instead, let's just punt: use the minimum linelength reported by
4954: # all of the supported platforms: 8192 (on NT/2K/XP).
4955: lt_cv_sys_max_cmd_len=8192;
4956: ;;
4957:
4958: mint*)
4959: # On MiNT this can take a long time and run out of memory.
4960: lt_cv_sys_max_cmd_len=8192;
4961: ;;
4962:
4963: amigaos*)
4964: # On AmigaOS with pdksh, this test takes hours, literally.
4965: # So we just punt and use a minimum line length of 8192.
4966: lt_cv_sys_max_cmd_len=8192;
4967: ;;
4968:
4969: bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
4970: # This has been around since 386BSD, at least. Likely further.
4971: if test -x /sbin/sysctl; then
4972: lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4973: elif test -x /usr/sbin/sysctl; then
4974: lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4975: else
4976: lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4977: fi
4978: # And add a safety zone
4979: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4980: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4981: ;;
4982:
4983: interix*)
4984: # We know the value 262144 and hardcode it with a safety zone (like BSD)
4985: lt_cv_sys_max_cmd_len=196608
4986: ;;
4987:
4988: os2*)
4989: # The test takes a long time on OS/2.
4990: lt_cv_sys_max_cmd_len=8192
4991: ;;
4992:
4993: osf*)
4994: # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4995: # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4996: # nice to cause kernel panics so lets avoid the loop below.
4997: # First set a reasonable default.
4998: lt_cv_sys_max_cmd_len=16384
4999: #
5000: if test -x /sbin/sysconfig; then
5001: case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5002: *1*) lt_cv_sys_max_cmd_len=-1 ;;
5003: esac
5004: fi
5005: ;;
5006: sco3.2v5*)
5007: lt_cv_sys_max_cmd_len=102400
5008: ;;
5009: sysv5* | sco5v6* | sysv4.2uw2*)
5010: kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5011: if test -n "$kargmax"; then
5012: lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5013: else
5014: lt_cv_sys_max_cmd_len=32768
5015: fi
5016: ;;
5017: *)
5018: lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5019: if test -n "$lt_cv_sys_max_cmd_len" && \
5020: test undefined != "$lt_cv_sys_max_cmd_len"; then
5021: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5022: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5023: else
5024: # Make teststring a little bigger before we do anything with it.
5025: # a 1K string should be a reasonable start.
5026: for i in 1 2 3 4 5 6 7 8; do
5027: teststring=$teststring$teststring
5028: done
5029: SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5030: # If test is not a shell built-in, we'll probably end up computing a
5031: # maximum length that is only half of the actual maximum length, but
5032: # we can't tell.
5033: while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5034: = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5035: test 17 != "$i" # 1/2 MB should be enough
5036: do
5037: i=`expr $i + 1`
5038: teststring=$teststring$teststring
5039: done
5040: # Only check the string length outside the loop.
5041: lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5042: teststring=
5043: # Add a significant safety factor because C++ compilers can tack on
5044: # massive amounts of additional arguments before passing them to the
5045: # linker. It appears as though 1/2 is a usable value.
5046: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5047: fi
5048: ;;
5049: esac
5050:
5051: fi
5052:
5053: if test -n "$lt_cv_sys_max_cmd_len"; then
5054: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5055: $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5056: else
5057: { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5058: $as_echo "none" >&6; }
5059: fi
5060: max_cmd_len=$lt_cv_sys_max_cmd_len
5061:
5062:
5063:
5064:
5065:
5066:
5067: : ${CP="cp -f"}
5068: : ${MV="mv -f"}
5069: : ${RM="rm -f"}
5070:
5071: if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5072: lt_unset=unset
5073: else
5074: lt_unset=false
5075: fi
5076:
5077:
5078:
5079:
5080:
5081: # test EBCDIC or ASCII
5082: case `echo X|tr X '\101'` in
5083: A) # ASCII based system
5084: # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5085: lt_SP2NL='tr \040 \012'
5086: lt_NL2SP='tr \015\012 \040\040'
5087: ;;
5088: *) # EBCDIC based system
5089: lt_SP2NL='tr \100 \n'
5090: lt_NL2SP='tr \r\n \100\100'
5091: ;;
5092: esac
5093:
5094:
5095:
5096:
5097:
5098:
5099:
5100:
5101:
5102: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5103: $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5104: if ${lt_cv_to_host_file_cmd+:} false; then :
5105: $as_echo_n "(cached) " >&6
5106: else
5107: case $host in
5108: *-*-mingw* )
5109: case $build in
5110: *-*-mingw* ) # actually msys
5111: lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5112: ;;
5113: *-*-cygwin* )
5114: lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5115: ;;
5116: * ) # otherwise, assume *nix
5117: lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5118: ;;
5119: esac
5120: ;;
5121: *-*-cygwin* )
5122: case $build in
5123: *-*-mingw* ) # actually msys
5124: lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5125: ;;
5126: *-*-cygwin* )
5127: lt_cv_to_host_file_cmd=func_convert_file_noop
5128: ;;
5129: * ) # otherwise, assume *nix
5130: lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5131: ;;
5132: esac
5133: ;;
5134: * ) # unhandled hosts (and "normal" native builds)
5135: lt_cv_to_host_file_cmd=func_convert_file_noop
5136: ;;
5137: esac
5138:
5139: fi
5140:
5141: to_host_file_cmd=$lt_cv_to_host_file_cmd
5142: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5143: $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5144:
5145:
5146:
5147:
5148:
5149: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5150: $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5151: if ${lt_cv_to_tool_file_cmd+:} false; then :
5152: $as_echo_n "(cached) " >&6
5153: else
5154: #assume ordinary cross tools, or native build.
5155: lt_cv_to_tool_file_cmd=func_convert_file_noop
5156: case $host in
5157: *-*-mingw* )
5158: case $build in
5159: *-*-mingw* ) # actually msys
5160: lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5161: ;;
5162: esac
5163: ;;
5164: esac
5165:
5166: fi
5167:
5168: to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5169: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5170: $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5171:
5172:
5173:
5174:
5175:
5176: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5177: $as_echo_n "checking for $LD option to reload object files... " >&6; }
5178: if ${lt_cv_ld_reload_flag+:} false; then :
5179: $as_echo_n "(cached) " >&6
5180: else
5181: lt_cv_ld_reload_flag='-r'
5182: fi
5183: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5184: $as_echo "$lt_cv_ld_reload_flag" >&6; }
5185: reload_flag=$lt_cv_ld_reload_flag
5186: case $reload_flag in
5187: "" | " "*) ;;
5188: *) reload_flag=" $reload_flag" ;;
5189: esac
5190: reload_cmds='$LD$reload_flag -o $output$reload_objs'
5191: case $host_os in
5192: cygwin* | mingw* | pw32* | cegcc*)
5193: if test yes != "$GCC"; then
5194: reload_cmds=false
5195: fi
5196: ;;
5197: darwin*)
5198: if test yes = "$GCC"; then
5199: reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5200: else
5201: reload_cmds='$LD$reload_flag -o $output$reload_objs'
5202: fi
5203: ;;
5204: esac
5205:
5206:
5207:
5208:
5209:
5210:
5211:
5212:
5213:
5214: if test -n "$ac_tool_prefix"; then
5215: # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5216: set dummy ${ac_tool_prefix}objdump; ac_word=$2
5217: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5218: $as_echo_n "checking for $ac_word... " >&6; }
5219: if ${ac_cv_prog_OBJDUMP+:} false; then :
5220: $as_echo_n "(cached) " >&6
5221: else
5222: if test -n "$OBJDUMP"; then
5223: ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5224: else
5225: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5226: for as_dir in $PATH
5227: do
5228: IFS=$as_save_IFS
5229: test -z "$as_dir" && as_dir=.
5230: for ac_exec_ext in '' $ac_executable_extensions; do
5231: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5232: ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5233: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5234: break 2
5235: fi
5236: done
5237: done
5238: IFS=$as_save_IFS
5239:
5240: fi
5241: fi
5242: OBJDUMP=$ac_cv_prog_OBJDUMP
5243: if test -n "$OBJDUMP"; then
5244: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5245: $as_echo "$OBJDUMP" >&6; }
5246: else
5247: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5248: $as_echo "no" >&6; }
5249: fi
5250:
5251:
5252: fi
5253: if test -z "$ac_cv_prog_OBJDUMP"; then
5254: ac_ct_OBJDUMP=$OBJDUMP
5255: # Extract the first word of "objdump", so it can be a program name with args.
5256: set dummy objdump; ac_word=$2
5257: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5258: $as_echo_n "checking for $ac_word... " >&6; }
5259: if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5260: $as_echo_n "(cached) " >&6
5261: else
5262: if test -n "$ac_ct_OBJDUMP"; then
5263: ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5264: else
5265: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5266: for as_dir in $PATH
5267: do
5268: IFS=$as_save_IFS
5269: test -z "$as_dir" && as_dir=.
5270: for ac_exec_ext in '' $ac_executable_extensions; do
5271: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5272: ac_cv_prog_ac_ct_OBJDUMP="objdump"
5273: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5274: break 2
5275: fi
5276: done
5277: done
5278: IFS=$as_save_IFS
5279:
5280: fi
5281: fi
5282: ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5283: if test -n "$ac_ct_OBJDUMP"; then
5284: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5285: $as_echo "$ac_ct_OBJDUMP" >&6; }
5286: else
5287: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5288: $as_echo "no" >&6; }
5289: fi
5290:
5291: if test "x$ac_ct_OBJDUMP" = x; then
5292: OBJDUMP="false"
5293: else
5294: case $cross_compiling:$ac_tool_warned in
5295: yes:)
5296: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5297: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5298: ac_tool_warned=yes ;;
5299: esac
5300: OBJDUMP=$ac_ct_OBJDUMP
5301: fi
5302: else
5303: OBJDUMP="$ac_cv_prog_OBJDUMP"
5304: fi
5305:
5306: test -z "$OBJDUMP" && OBJDUMP=objdump
5307:
5308:
5309:
5310:
5311:
5312:
5313:
5314:
5315:
5316: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5317: $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5318: if ${lt_cv_deplibs_check_method+:} false; then :
5319: $as_echo_n "(cached) " >&6
5320: else
5321: lt_cv_file_magic_cmd='$MAGIC_CMD'
5322: lt_cv_file_magic_test_file=
5323: lt_cv_deplibs_check_method='unknown'
5324: # Need to set the preceding variable on all platforms that support
5325: # interlibrary dependencies.
5326: # 'none' -- dependencies not supported.
5327: # 'unknown' -- same as none, but documents that we really don't know.
5328: # 'pass_all' -- all dependencies passed with no checks.
5329: # 'test_compile' -- check by making test program.
5330: # 'file_magic [[regex]]' -- check by looking for files in library path
5331: # that responds to the $file_magic_cmd with a given extended regex.
5332: # If you have 'file' or equivalent on your system and you're not sure
5333: # whether 'pass_all' will *always* work, you probably want this one.
5334:
5335: case $host_os in
5336: aix[4-9]*)
5337: lt_cv_deplibs_check_method=pass_all
5338: ;;
5339:
5340: beos*)
5341: lt_cv_deplibs_check_method=pass_all
5342: ;;
5343:
5344: bsdi[45]*)
5345: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5346: lt_cv_file_magic_cmd='/usr/bin/file -L'
5347: lt_cv_file_magic_test_file=/shlib/libc.so
5348: ;;
5349:
5350: cygwin*)
5351: # func_win32_libid is a shell function defined in ltmain.sh
5352: lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5353: lt_cv_file_magic_cmd='func_win32_libid'
5354: ;;
5355:
5356: mingw* | pw32*)
5357: # Base MSYS/MinGW do not provide the 'file' command needed by
5358: # func_win32_libid shell function, so use a weaker test based on 'objdump',
5359: # unless we find 'file', for example because we are cross-compiling.
5360: if ( file / ) >/dev/null 2>&1; then
5361: lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5362: lt_cv_file_magic_cmd='func_win32_libid'
5363: else
5364: # Keep this pattern in sync with the one in func_win32_libid.
5365: lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5366: lt_cv_file_magic_cmd='$OBJDUMP -f'
5367: fi
5368: ;;
5369:
5370: cegcc*)
5371: # use the weaker test based on 'objdump'. See mingw*.
5372: lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5373: lt_cv_file_magic_cmd='$OBJDUMP -f'
5374: ;;
5375:
5376: darwin* | rhapsody*)
5377: lt_cv_deplibs_check_method=pass_all
5378: ;;
5379:
5380: freebsd* | dragonfly*)
5381: if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5382: case $host_cpu in
5383: i*86 )
5384: # Not sure whether the presence of OpenBSD here was a mistake.
5385: # Let's accept both of them until this is cleared up.
5386: lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5387: lt_cv_file_magic_cmd=/usr/bin/file
5388: lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5389: ;;
5390: esac
5391: else
5392: lt_cv_deplibs_check_method=pass_all
5393: fi
5394: ;;
5395:
5396: haiku*)
5397: lt_cv_deplibs_check_method=pass_all
5398: ;;
5399:
5400: hpux10.20* | hpux11*)
5401: lt_cv_file_magic_cmd=/usr/bin/file
5402: case $host_cpu in
5403: ia64*)
5404: lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5405: lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5406: ;;
5407: hppa*64*)
5408: 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]'
5409: lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5410: ;;
5411: *)
5412: lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5413: lt_cv_file_magic_test_file=/usr/lib/libc.sl
5414: ;;
5415: esac
5416: ;;
5417:
5418: interix[3-9]*)
5419: # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5420: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5421: ;;
5422:
5423: irix5* | irix6* | nonstopux*)
5424: case $LD in
5425: *-32|*"-32 ") libmagic=32-bit;;
5426: *-n32|*"-n32 ") libmagic=N32;;
5427: *-64|*"-64 ") libmagic=64-bit;;
5428: *) libmagic=never-match;;
5429: esac
5430: lt_cv_deplibs_check_method=pass_all
5431: ;;
5432:
5433: # This must be glibc/ELF.
5434: linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5435: lt_cv_deplibs_check_method=pass_all
5436: ;;
5437:
5438: netbsd*)
5439: if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5440: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5441: else
5442: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5443: fi
5444: ;;
5445:
5446: newos6*)
5447: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5448: lt_cv_file_magic_cmd=/usr/bin/file
5449: lt_cv_file_magic_test_file=/usr/lib/libnls.so
5450: ;;
5451:
5452: *nto* | *qnx*)
5453: lt_cv_deplibs_check_method=pass_all
5454: ;;
5455:
5456: openbsd* | bitrig*)
5457: if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5458: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5459: else
5460: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5461: fi
5462: ;;
5463:
5464: osf3* | osf4* | osf5*)
5465: lt_cv_deplibs_check_method=pass_all
5466: ;;
5467:
5468: rdos*)
5469: lt_cv_deplibs_check_method=pass_all
5470: ;;
5471:
5472: solaris*)
5473: lt_cv_deplibs_check_method=pass_all
5474: ;;
5475:
5476: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5477: lt_cv_deplibs_check_method=pass_all
5478: ;;
5479:
5480: sysv4 | sysv4.3*)
5481: case $host_vendor in
5482: motorola)
5483: 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]'
5484: lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5485: ;;
5486: ncr)
5487: lt_cv_deplibs_check_method=pass_all
5488: ;;
5489: sequent)
5490: lt_cv_file_magic_cmd='/bin/file'
5491: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5492: ;;
5493: sni)
5494: lt_cv_file_magic_cmd='/bin/file'
5495: lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5496: lt_cv_file_magic_test_file=/lib/libc.so
5497: ;;
5498: siemens)
5499: lt_cv_deplibs_check_method=pass_all
5500: ;;
5501: pc)
5502: lt_cv_deplibs_check_method=pass_all
5503: ;;
5504: esac
5505: ;;
5506:
5507: tpf*)
5508: lt_cv_deplibs_check_method=pass_all
5509: ;;
5510: os2*)
5511: lt_cv_deplibs_check_method=pass_all
5512: ;;
5513: esac
5514:
5515: fi
5516: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5517: $as_echo "$lt_cv_deplibs_check_method" >&6; }
5518:
5519: file_magic_glob=
5520: want_nocaseglob=no
5521: if test "$build" = "$host"; then
5522: case $host_os in
5523: mingw* | pw32*)
5524: if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5525: want_nocaseglob=yes
5526: else
5527: file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5528: fi
5529: ;;
5530: esac
5531: fi
5532:
5533: file_magic_cmd=$lt_cv_file_magic_cmd
5534: deplibs_check_method=$lt_cv_deplibs_check_method
5535: test -z "$deplibs_check_method" && deplibs_check_method=unknown
5536:
5537:
5538:
5539:
5540:
5541:
5542:
5543:
5544:
5545:
5546:
5547:
5548:
5549:
5550:
5551:
5552:
5553:
5554:
5555:
5556:
5557:
5558: if test -n "$ac_tool_prefix"; then
5559: # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5560: set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5561: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5562: $as_echo_n "checking for $ac_word... " >&6; }
5563: if ${ac_cv_prog_DLLTOOL+:} false; then :
5564: $as_echo_n "(cached) " >&6
5565: else
5566: if test -n "$DLLTOOL"; then
5567: ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5568: else
5569: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5570: for as_dir in $PATH
5571: do
5572: IFS=$as_save_IFS
5573: test -z "$as_dir" && as_dir=.
5574: for ac_exec_ext in '' $ac_executable_extensions; do
5575: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5576: ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5577: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5578: break 2
5579: fi
5580: done
5581: done
5582: IFS=$as_save_IFS
5583:
5584: fi
5585: fi
5586: DLLTOOL=$ac_cv_prog_DLLTOOL
5587: if test -n "$DLLTOOL"; then
5588: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5589: $as_echo "$DLLTOOL" >&6; }
5590: else
5591: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5592: $as_echo "no" >&6; }
5593: fi
5594:
5595:
5596: fi
5597: if test -z "$ac_cv_prog_DLLTOOL"; then
5598: ac_ct_DLLTOOL=$DLLTOOL
5599: # Extract the first word of "dlltool", so it can be a program name with args.
5600: set dummy dlltool; ac_word=$2
5601: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5602: $as_echo_n "checking for $ac_word... " >&6; }
5603: if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5604: $as_echo_n "(cached) " >&6
5605: else
5606: if test -n "$ac_ct_DLLTOOL"; then
5607: ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5608: else
5609: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5610: for as_dir in $PATH
5611: do
5612: IFS=$as_save_IFS
5613: test -z "$as_dir" && as_dir=.
5614: for ac_exec_ext in '' $ac_executable_extensions; do
5615: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5616: ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5617: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5618: break 2
5619: fi
5620: done
5621: done
5622: IFS=$as_save_IFS
5623:
5624: fi
5625: fi
5626: ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5627: if test -n "$ac_ct_DLLTOOL"; then
5628: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5629: $as_echo "$ac_ct_DLLTOOL" >&6; }
5630: else
5631: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5632: $as_echo "no" >&6; }
5633: fi
5634:
5635: if test "x$ac_ct_DLLTOOL" = x; then
5636: DLLTOOL="false"
5637: else
5638: case $cross_compiling:$ac_tool_warned in
5639: yes:)
5640: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5641: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5642: ac_tool_warned=yes ;;
5643: esac
5644: DLLTOOL=$ac_ct_DLLTOOL
5645: fi
5646: else
5647: DLLTOOL="$ac_cv_prog_DLLTOOL"
5648: fi
5649:
5650: test -z "$DLLTOOL" && DLLTOOL=dlltool
5651:
5652:
5653:
5654:
5655:
5656:
5657:
5658:
5659:
5660:
5661: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5662: $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5663: if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5664: $as_echo_n "(cached) " >&6
5665: else
5666: lt_cv_sharedlib_from_linklib_cmd='unknown'
5667:
5668: case $host_os in
5669: cygwin* | mingw* | pw32* | cegcc*)
5670: # two different shell functions defined in ltmain.sh;
5671: # decide which one to use based on capabilities of $DLLTOOL
5672: case `$DLLTOOL --help 2>&1` in
5673: *--identify-strict*)
5674: lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5675: ;;
5676: *)
5677: lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5678: ;;
5679: esac
5680: ;;
5681: *)
5682: # fallback: assume linklib IS sharedlib
5683: lt_cv_sharedlib_from_linklib_cmd=$ECHO
5684: ;;
5685: esac
5686:
5687: fi
5688: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5689: $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5690: sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5691: test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5692:
5693:
5694:
5695:
5696:
5697:
5698:
5699:
5700: if test -n "$ac_tool_prefix"; then
5701: for ac_prog in ar
5702: do
5703: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5704: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5705: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5706: $as_echo_n "checking for $ac_word... " >&6; }
5707: if ${ac_cv_prog_AR+:} false; then :
5708: $as_echo_n "(cached) " >&6
5709: else
5710: if test -n "$AR"; then
5711: ac_cv_prog_AR="$AR" # Let the user override the test.
5712: else
5713: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5714: for as_dir in $PATH
5715: do
5716: IFS=$as_save_IFS
5717: test -z "$as_dir" && as_dir=.
5718: for ac_exec_ext in '' $ac_executable_extensions; do
5719: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5720: ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5721: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5722: break 2
5723: fi
5724: done
5725: done
5726: IFS=$as_save_IFS
5727:
5728: fi
5729: fi
5730: AR=$ac_cv_prog_AR
5731: if test -n "$AR"; then
5732: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5733: $as_echo "$AR" >&6; }
5734: else
5735: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5736: $as_echo "no" >&6; }
5737: fi
5738:
5739:
5740: test -n "$AR" && break
5741: done
5742: fi
5743: if test -z "$AR"; then
5744: ac_ct_AR=$AR
5745: for ac_prog in ar
5746: do
5747: # Extract the first word of "$ac_prog", so it can be a program name with args.
5748: set dummy $ac_prog; ac_word=$2
5749: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5750: $as_echo_n "checking for $ac_word... " >&6; }
5751: if ${ac_cv_prog_ac_ct_AR+:} false; then :
5752: $as_echo_n "(cached) " >&6
5753: else
5754: if test -n "$ac_ct_AR"; then
5755: ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5756: else
5757: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5758: for as_dir in $PATH
5759: do
5760: IFS=$as_save_IFS
5761: test -z "$as_dir" && as_dir=.
5762: for ac_exec_ext in '' $ac_executable_extensions; do
5763: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5764: ac_cv_prog_ac_ct_AR="$ac_prog"
5765: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5766: break 2
5767: fi
5768: done
5769: done
5770: IFS=$as_save_IFS
5771:
5772: fi
5773: fi
5774: ac_ct_AR=$ac_cv_prog_ac_ct_AR
5775: if test -n "$ac_ct_AR"; then
5776: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5777: $as_echo "$ac_ct_AR" >&6; }
5778: else
5779: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5780: $as_echo "no" >&6; }
5781: fi
5782:
5783:
5784: test -n "$ac_ct_AR" && break
5785: done
5786:
5787: if test "x$ac_ct_AR" = x; then
5788: AR="false"
5789: else
5790: case $cross_compiling:$ac_tool_warned in
5791: yes:)
5792: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5793: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5794: ac_tool_warned=yes ;;
5795: esac
5796: AR=$ac_ct_AR
5797: fi
5798: fi
5799:
5800: : ${AR=ar}
5801: : ${AR_FLAGS=cru}
5802:
5803:
5804:
5805:
5806:
5807:
5808:
5809:
5810:
5811:
5812:
5813: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5814: $as_echo_n "checking for archiver @FILE support... " >&6; }
5815: if ${lt_cv_ar_at_file+:} false; then :
5816: $as_echo_n "(cached) " >&6
5817: else
5818: lt_cv_ar_at_file=no
5819: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5820: /* end confdefs.h. */
5821:
5822: int
5823: main ()
5824: {
5825:
5826: ;
5827: return 0;
5828: }
5829: _ACEOF
5830: if ac_fn_c_try_compile "$LINENO"; then :
5831: echo conftest.$ac_objext > conftest.lst
5832: lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5833: { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5834: (eval $lt_ar_try) 2>&5
5835: ac_status=$?
5836: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5837: test $ac_status = 0; }
5838: if test 0 -eq "$ac_status"; then
5839: # Ensure the archiver fails upon bogus file names.
5840: rm -f conftest.$ac_objext libconftest.a
5841: { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5842: (eval $lt_ar_try) 2>&5
5843: ac_status=$?
5844: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5845: test $ac_status = 0; }
5846: if test 0 -ne "$ac_status"; then
5847: lt_cv_ar_at_file=@
5848: fi
5849: fi
5850: rm -f conftest.* libconftest.a
5851:
5852: fi
5853: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5854:
5855: fi
5856: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5857: $as_echo "$lt_cv_ar_at_file" >&6; }
5858:
5859: if test no = "$lt_cv_ar_at_file"; then
5860: archiver_list_spec=
5861: else
5862: archiver_list_spec=$lt_cv_ar_at_file
5863: fi
5864:
5865:
5866:
5867:
5868:
5869:
5870:
5871: if test -n "$ac_tool_prefix"; then
5872: # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5873: set dummy ${ac_tool_prefix}strip; ac_word=$2
5874: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5875: $as_echo_n "checking for $ac_word... " >&6; }
5876: if ${ac_cv_prog_STRIP+:} false; then :
5877: $as_echo_n "(cached) " >&6
5878: else
5879: if test -n "$STRIP"; then
5880: ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5881: else
5882: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5883: for as_dir in $PATH
5884: do
5885: IFS=$as_save_IFS
5886: test -z "$as_dir" && as_dir=.
5887: for ac_exec_ext in '' $ac_executable_extensions; do
5888: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5889: ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5890: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5891: break 2
5892: fi
5893: done
5894: done
5895: IFS=$as_save_IFS
5896:
5897: fi
5898: fi
5899: STRIP=$ac_cv_prog_STRIP
5900: if test -n "$STRIP"; then
5901: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5902: $as_echo "$STRIP" >&6; }
5903: else
5904: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5905: $as_echo "no" >&6; }
5906: fi
5907:
5908:
5909: fi
5910: if test -z "$ac_cv_prog_STRIP"; then
5911: ac_ct_STRIP=$STRIP
5912: # Extract the first word of "strip", so it can be a program name with args.
5913: set dummy strip; ac_word=$2
5914: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5915: $as_echo_n "checking for $ac_word... " >&6; }
5916: if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5917: $as_echo_n "(cached) " >&6
5918: else
5919: if test -n "$ac_ct_STRIP"; then
5920: ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5921: else
5922: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5923: for as_dir in $PATH
5924: do
5925: IFS=$as_save_IFS
5926: test -z "$as_dir" && as_dir=.
5927: for ac_exec_ext in '' $ac_executable_extensions; do
5928: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5929: ac_cv_prog_ac_ct_STRIP="strip"
5930: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5931: break 2
5932: fi
5933: done
5934: done
5935: IFS=$as_save_IFS
5936:
5937: fi
5938: fi
5939: ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5940: if test -n "$ac_ct_STRIP"; then
5941: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5942: $as_echo "$ac_ct_STRIP" >&6; }
5943: else
5944: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5945: $as_echo "no" >&6; }
5946: fi
5947:
5948: if test "x$ac_ct_STRIP" = x; then
5949: STRIP=":"
5950: else
5951: case $cross_compiling:$ac_tool_warned in
5952: yes:)
5953: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5954: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5955: ac_tool_warned=yes ;;
5956: esac
5957: STRIP=$ac_ct_STRIP
5958: fi
5959: else
5960: STRIP="$ac_cv_prog_STRIP"
5961: fi
5962:
5963: test -z "$STRIP" && STRIP=:
5964:
5965:
5966:
5967:
5968:
5969:
5970: if test -n "$ac_tool_prefix"; then
5971: # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5972: set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5973: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5974: $as_echo_n "checking for $ac_word... " >&6; }
5975: if ${ac_cv_prog_RANLIB+:} false; then :
5976: $as_echo_n "(cached) " >&6
5977: else
5978: if test -n "$RANLIB"; then
5979: ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5980: else
5981: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5982: for as_dir in $PATH
5983: do
5984: IFS=$as_save_IFS
5985: test -z "$as_dir" && as_dir=.
5986: for ac_exec_ext in '' $ac_executable_extensions; do
5987: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5988: ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5989: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5990: break 2
5991: fi
5992: done
5993: done
5994: IFS=$as_save_IFS
5995:
5996: fi
5997: fi
5998: RANLIB=$ac_cv_prog_RANLIB
5999: if test -n "$RANLIB"; then
6000: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6001: $as_echo "$RANLIB" >&6; }
6002: else
6003: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6004: $as_echo "no" >&6; }
6005: fi
6006:
6007:
6008: fi
6009: if test -z "$ac_cv_prog_RANLIB"; then
6010: ac_ct_RANLIB=$RANLIB
6011: # Extract the first word of "ranlib", so it can be a program name with args.
6012: set dummy ranlib; ac_word=$2
6013: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6014: $as_echo_n "checking for $ac_word... " >&6; }
6015: if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6016: $as_echo_n "(cached) " >&6
6017: else
6018: if test -n "$ac_ct_RANLIB"; then
6019: ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # 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: test -z "$as_dir" && as_dir=.
6026: for ac_exec_ext in '' $ac_executable_extensions; do
6027: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6028: ac_cv_prog_ac_ct_RANLIB="ranlib"
6029: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6030: break 2
6031: fi
6032: done
6033: done
6034: IFS=$as_save_IFS
6035:
6036: fi
6037: fi
6038: ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6039: if test -n "$ac_ct_RANLIB"; then
6040: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6041: $as_echo "$ac_ct_RANLIB" >&6; }
6042: else
6043: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6044: $as_echo "no" >&6; }
6045: fi
6046:
6047: if test "x$ac_ct_RANLIB" = x; then
6048: RANLIB=":"
6049: else
6050: case $cross_compiling:$ac_tool_warned in
6051: yes:)
6052: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6053: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6054: ac_tool_warned=yes ;;
6055: esac
6056: RANLIB=$ac_ct_RANLIB
6057: fi
6058: else
6059: RANLIB="$ac_cv_prog_RANLIB"
6060: fi
6061:
6062: test -z "$RANLIB" && RANLIB=:
6063:
6064:
6065:
6066:
6067:
6068:
6069: # Determine commands to create old-style static archives.
6070: old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6071: old_postinstall_cmds='chmod 644 $oldlib'
6072: old_postuninstall_cmds=
6073:
6074: if test -n "$RANLIB"; then
6075: case $host_os in
6076: bitrig* | openbsd*)
6077: old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6078: ;;
6079: *)
6080: old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6081: ;;
6082: esac
6083: old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6084: fi
6085:
6086: case $host_os in
6087: darwin*)
6088: lock_old_archive_extraction=yes ;;
6089: *)
6090: lock_old_archive_extraction=no ;;
6091: esac
6092:
6093:
6094:
6095:
6096:
6097:
6098:
6099:
6100:
6101:
6102:
6103:
6104:
6105:
6106:
6107:
6108:
6109:
6110:
6111:
6112:
6113:
6114:
6115:
6116:
6117:
6118:
6119:
6120:
6121:
6122:
6123:
6124:
6125:
6126:
6127:
6128:
6129:
6130:
6131: # If no C compiler was specified, use CC.
6132: LTCC=${LTCC-"$CC"}
6133:
6134: # If no C compiler flags were specified, use CFLAGS.
6135: LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6136:
6137: # Allow CC to be a program name with arguments.
6138: compiler=$CC
6139:
6140:
6141: # Check for command to grab the raw symbol name followed by C symbol from nm.
6142: { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6143: $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6144: if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6145: $as_echo_n "(cached) " >&6
6146: else
6147:
6148: # These are sane defaults that work on at least a few old systems.
6149: # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6150:
6151: # Character class describing NM global symbol codes.
6152: symcode='[BCDEGRST]'
6153:
6154: # Regexp to match symbols that can be accessed directly from C.
6155: sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6156:
6157: # Define system-specific variables.
6158: case $host_os in
6159: aix*)
6160: symcode='[BCDT]'
6161: ;;
6162: cygwin* | mingw* | pw32* | cegcc*)
6163: symcode='[ABCDGISTW]'
6164: ;;
6165: hpux*)
6166: if test ia64 = "$host_cpu"; then
6167: symcode='[ABCDEGRST]'
6168: fi
6169: ;;
6170: irix* | nonstopux*)
6171: symcode='[BCDEGRST]'
6172: ;;
6173: osf*)
6174: symcode='[BCDEGQRST]'
6175: ;;
6176: solaris*)
6177: symcode='[BDRT]'
6178: ;;
6179: sco3.2v5*)
6180: symcode='[DT]'
6181: ;;
6182: sysv4.2uw2*)
6183: symcode='[DT]'
6184: ;;
6185: sysv5* | sco5v6* | unixware* | OpenUNIX*)
6186: symcode='[ABDT]'
6187: ;;
6188: sysv4)
6189: symcode='[DFNSTU]'
6190: ;;
6191: esac
6192:
6193: # If we're using GNU nm, then use its standard symbol codes.
6194: case `$NM -V 2>&1` in
6195: *GNU* | *'with BFD'*)
6196: symcode='[ABCDGIRSTW]' ;;
6197: esac
6198:
6199: if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6200: # Gets list of data symbols to import.
6201: lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6202: # Adjust the below global symbol transforms to fixup imported variables.
6203: lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6204: lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
6205: lt_c_name_lib_hook="\
6206: -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
6207: -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
6208: else
6209: # Disable hooks by default.
6210: lt_cv_sys_global_symbol_to_import=
6211: lt_cdecl_hook=
6212: lt_c_name_hook=
6213: lt_c_name_lib_hook=
6214: fi
6215:
6216: # Transform an extracted symbol line into a proper C declaration.
6217: # Some systems (esp. on ia64) link data and code symbols differently,
6218: # so use this general approach.
6219: lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6220: $lt_cdecl_hook\
6221: " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6222: " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6223:
6224: # Transform an extracted symbol line into symbol name and symbol address
6225: lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6226: $lt_c_name_hook\
6227: " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6228: " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
6229:
6230: # Transform an extracted symbol line into symbol name with lib prefix and
6231: # symbol address.
6232: lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6233: $lt_c_name_lib_hook\
6234: " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6235: " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
6236: " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
6237:
6238: # Handle CRLF in mingw tool chain
6239: opt_cr=
6240: case $build_os in
6241: mingw*)
6242: opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6243: ;;
6244: esac
6245:
6246: # Try without a prefix underscore, then with it.
6247: for ac_symprfx in "" "_"; do
6248:
6249: # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6250: symxfrm="\\1 $ac_symprfx\\2 \\2"
6251:
6252: # Write the raw and C identifiers.
6253: if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6254: # Fake it for dumpbin and say T for any non-static function,
6255: # D for any global variable and I for any imported variable.
6256: # Also find C++ and __fastcall symbols from MSVC++,
6257: # which start with @ or ?.
6258: lt_cv_sys_global_symbol_pipe="$AWK '"\
6259: " {last_section=section; section=\$ 3};"\
6260: " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6261: " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6262: " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6263: " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6264: " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6265: " \$ 0!~/External *\|/{next};"\
6266: " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6267: " {if(hide[section]) next};"\
6268: " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6269: " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6270: " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6271: " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6272: " ' prfx=^$ac_symprfx"
6273: else
6274: lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6275: fi
6276: lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6277:
6278: # Check to see that the pipe works correctly.
6279: pipe_works=no
6280:
6281: rm -f conftest*
6282: cat > conftest.$ac_ext <<_LT_EOF
6283: #ifdef __cplusplus
6284: extern "C" {
6285: #endif
6286: char nm_test_var;
6287: void nm_test_func(void);
6288: void nm_test_func(void){}
6289: #ifdef __cplusplus
6290: }
6291: #endif
6292: int main(){nm_test_var='a';nm_test_func();return(0);}
6293: _LT_EOF
6294:
6295: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6296: (eval $ac_compile) 2>&5
6297: ac_status=$?
6298: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6299: test $ac_status = 0; }; then
6300: # Now try to grab the symbols.
6301: nlist=conftest.nm
6302: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6303: (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6304: ac_status=$?
6305: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6306: test $ac_status = 0; } && test -s "$nlist"; then
6307: # Try sorting and uniquifying the output.
6308: if sort "$nlist" | uniq > "$nlist"T; then
6309: mv -f "$nlist"T "$nlist"
6310: else
6311: rm -f "$nlist"T
6312: fi
6313:
6314: # Make sure that we snagged all the symbols we need.
6315: if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6316: if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6317: cat <<_LT_EOF > conftest.$ac_ext
6318: /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6319: #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6320: /* DATA imports from DLLs on WIN32 can't be const, because runtime
6321: relocations are performed -- see ld's documentation on pseudo-relocs. */
6322: # define LT_DLSYM_CONST
6323: #elif defined __osf__
6324: /* This system does not cope well with relocations in const data. */
6325: # define LT_DLSYM_CONST
6326: #else
6327: # define LT_DLSYM_CONST const
6328: #endif
6329:
6330: #ifdef __cplusplus
6331: extern "C" {
6332: #endif
6333:
6334: _LT_EOF
6335: # Now generate the symbol file.
6336: eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6337:
6338: cat <<_LT_EOF >> conftest.$ac_ext
6339:
6340: /* The mapping between symbol names and symbols. */
6341: LT_DLSYM_CONST struct {
6342: const char *name;
6343: void *address;
6344: }
6345: lt__PROGRAM__LTX_preloaded_symbols[] =
6346: {
6347: { "@PROGRAM@", (void *) 0 },
6348: _LT_EOF
6349: $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6350: cat <<\_LT_EOF >> conftest.$ac_ext
6351: {0, (void *) 0}
6352: };
6353:
6354: /* This works around a problem in FreeBSD linker */
6355: #ifdef FREEBSD_WORKAROUND
6356: static const void *lt_preloaded_setup() {
6357: return lt__PROGRAM__LTX_preloaded_symbols;
6358: }
6359: #endif
6360:
6361: #ifdef __cplusplus
6362: }
6363: #endif
6364: _LT_EOF
6365: # Now try linking the two files.
6366: mv conftest.$ac_objext conftstm.$ac_objext
6367: lt_globsym_save_LIBS=$LIBS
6368: lt_globsym_save_CFLAGS=$CFLAGS
6369: LIBS=conftstm.$ac_objext
6370: CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6371: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6372: (eval $ac_link) 2>&5
6373: ac_status=$?
6374: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6375: test $ac_status = 0; } && test -s conftest$ac_exeext; then
6376: pipe_works=yes
6377: fi
6378: LIBS=$lt_globsym_save_LIBS
6379: CFLAGS=$lt_globsym_save_CFLAGS
6380: else
6381: echo "cannot find nm_test_func in $nlist" >&5
6382: fi
6383: else
6384: echo "cannot find nm_test_var in $nlist" >&5
6385: fi
6386: else
6387: echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6388: fi
6389: else
6390: echo "$progname: failed program was:" >&5
6391: cat conftest.$ac_ext >&5
6392: fi
6393: rm -rf conftest* conftst*
6394:
6395: # Do not use the global_symbol_pipe unless it works.
6396: if test yes = "$pipe_works"; then
6397: break
6398: else
6399: lt_cv_sys_global_symbol_pipe=
6400: fi
6401: done
6402:
6403: fi
6404:
6405: if test -z "$lt_cv_sys_global_symbol_pipe"; then
6406: lt_cv_sys_global_symbol_to_cdecl=
6407: fi
6408: if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6409: { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6410: $as_echo "failed" >&6; }
6411: else
6412: { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6413: $as_echo "ok" >&6; }
6414: fi
6415:
6416: # Response file support.
6417: if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6418: nm_file_list_spec='@'
6419: elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6420: nm_file_list_spec='@'
6421: fi
6422:
6423:
6424:
6425:
6426:
6427:
6428:
6429:
6430:
6431:
6432:
6433:
6434:
6435:
6436:
6437:
6438:
6439:
6440:
6441:
6442:
6443:
6444:
6445:
6446:
6447:
6448:
6449:
6450:
6451:
6452:
6453:
6454:
6455:
6456:
6457:
6458:
6459: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6460: $as_echo_n "checking for sysroot... " >&6; }
6461:
6462: # Check whether --with-sysroot was given.
6463: if test "${with_sysroot+set}" = set; then :
6464: withval=$with_sysroot;
6465: else
6466: with_sysroot=no
6467: fi
6468:
6469:
6470: lt_sysroot=
6471: case $with_sysroot in #(
6472: yes)
6473: if test yes = "$GCC"; then
6474: lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6475: fi
6476: ;; #(
6477: /*)
6478: lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6479: ;; #(
6480: no|'')
6481: ;; #(
6482: *)
6483: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
6484: $as_echo "$with_sysroot" >&6; }
6485: as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6486: ;;
6487: esac
6488:
6489: { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6490: $as_echo "${lt_sysroot:-no}" >&6; }
6491:
6492:
6493:
6494:
6495:
6496: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
6497: $as_echo_n "checking for a working dd... " >&6; }
6498: if ${ac_cv_path_lt_DD+:} false; then :
6499: $as_echo_n "(cached) " >&6
6500: else
6501: printf 0123456789abcdef0123456789abcdef >conftest.i
6502: cat conftest.i conftest.i >conftest2.i
6503: : ${lt_DD:=$DD}
6504: if test -z "$lt_DD"; then
6505: ac_path_lt_DD_found=false
6506: # Loop through the user's path and test for each of PROGNAME-LIST
6507: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6508: for as_dir in $PATH
6509: do
6510: IFS=$as_save_IFS
6511: test -z "$as_dir" && as_dir=.
6512: for ac_prog in dd; do
6513: for ac_exec_ext in '' $ac_executable_extensions; do
6514: ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
6515: as_fn_executable_p "$ac_path_lt_DD" || continue
6516: if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6517: cmp -s conftest.i conftest.out \
6518: && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
6519: fi
6520: $ac_path_lt_DD_found && break 3
6521: done
6522: done
6523: done
6524: IFS=$as_save_IFS
6525: if test -z "$ac_cv_path_lt_DD"; then
6526: :
6527: fi
6528: else
6529: ac_cv_path_lt_DD=$lt_DD
6530: fi
6531:
6532: rm -f conftest.i conftest2.i conftest.out
6533: fi
6534: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
6535: $as_echo "$ac_cv_path_lt_DD" >&6; }
6536:
6537:
6538: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
6539: $as_echo_n "checking how to truncate binary pipes... " >&6; }
6540: if ${lt_cv_truncate_bin+:} false; then :
6541: $as_echo_n "(cached) " >&6
6542: else
6543: printf 0123456789abcdef0123456789abcdef >conftest.i
6544: cat conftest.i conftest.i >conftest2.i
6545: lt_cv_truncate_bin=
6546: if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6547: cmp -s conftest.i conftest.out \
6548: && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
6549: fi
6550: rm -f conftest.i conftest2.i conftest.out
6551: test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
6552: fi
6553: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
6554: $as_echo "$lt_cv_truncate_bin" >&6; }
6555:
6556:
6557:
6558:
6559:
6560:
6561:
6562: # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
6563: func_cc_basename ()
6564: {
6565: for cc_temp in $*""; do
6566: case $cc_temp in
6567: compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6568: distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6569: \-*) ;;
6570: *) break;;
6571: esac
6572: done
6573: func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
6574: }
6575:
6576: # Check whether --enable-libtool-lock was given.
6577: if test "${enable_libtool_lock+set}" = set; then :
6578: enableval=$enable_libtool_lock;
6579: fi
6580:
6581: test no = "$enable_libtool_lock" || enable_libtool_lock=yes
6582:
6583: # Some flags need to be propagated to the compiler or linker for good
6584: # libtool support.
6585: case $host in
6586: ia64-*-hpux*)
6587: # Find out what ABI is being produced by ac_compile, and set mode
6588: # options accordingly.
6589: echo 'int i;' > conftest.$ac_ext
6590: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6591: (eval $ac_compile) 2>&5
6592: ac_status=$?
6593: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6594: test $ac_status = 0; }; then
6595: case `/usr/bin/file conftest.$ac_objext` in
6596: *ELF-32*)
6597: HPUX_IA64_MODE=32
6598: ;;
6599: *ELF-64*)
6600: HPUX_IA64_MODE=64
6601: ;;
6602: esac
6603: fi
6604: rm -rf conftest*
6605: ;;
6606: *-*-irix6*)
6607: # Find out what ABI is being produced by ac_compile, and set linker
6608: # options accordingly.
6609: echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6610: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6611: (eval $ac_compile) 2>&5
6612: ac_status=$?
6613: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6614: test $ac_status = 0; }; then
6615: if test yes = "$lt_cv_prog_gnu_ld"; then
6616: case `/usr/bin/file conftest.$ac_objext` in
6617: *32-bit*)
6618: LD="${LD-ld} -melf32bsmip"
6619: ;;
6620: *N32*)
6621: LD="${LD-ld} -melf32bmipn32"
6622: ;;
6623: *64-bit*)
6624: LD="${LD-ld} -melf64bmip"
6625: ;;
6626: esac
6627: else
6628: case `/usr/bin/file conftest.$ac_objext` in
6629: *32-bit*)
6630: LD="${LD-ld} -32"
6631: ;;
6632: *N32*)
6633: LD="${LD-ld} -n32"
6634: ;;
6635: *64-bit*)
6636: LD="${LD-ld} -64"
6637: ;;
6638: esac
6639: fi
6640: fi
6641: rm -rf conftest*
6642: ;;
6643:
6644: mips64*-*linux*)
6645: # Find out what ABI is being produced by ac_compile, and set linker
6646: # options accordingly.
6647: echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6648: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6649: (eval $ac_compile) 2>&5
6650: ac_status=$?
6651: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6652: test $ac_status = 0; }; then
6653: emul=elf
6654: case `/usr/bin/file conftest.$ac_objext` in
6655: *32-bit*)
6656: emul="${emul}32"
6657: ;;
6658: *64-bit*)
6659: emul="${emul}64"
6660: ;;
6661: esac
6662: case `/usr/bin/file conftest.$ac_objext` in
6663: *MSB*)
6664: emul="${emul}btsmip"
6665: ;;
6666: *LSB*)
6667: emul="${emul}ltsmip"
6668: ;;
6669: esac
6670: case `/usr/bin/file conftest.$ac_objext` in
6671: *N32*)
6672: emul="${emul}n32"
6673: ;;
6674: esac
6675: LD="${LD-ld} -m $emul"
6676: fi
6677: rm -rf conftest*
6678: ;;
6679:
6680: x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6681: s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6682: # Find out what ABI is being produced by ac_compile, and set linker
6683: # options accordingly. Note that the listed cases only cover the
6684: # situations where additional linker options are needed (such as when
6685: # doing 32-bit compilation for a host where ld defaults to 64-bit, or
6686: # vice versa); the common cases where no linker options are needed do
6687: # not appear in the list.
6688: echo 'int i;' > conftest.$ac_ext
6689: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6690: (eval $ac_compile) 2>&5
6691: ac_status=$?
6692: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6693: test $ac_status = 0; }; then
6694: case `/usr/bin/file conftest.o` in
6695: *32-bit*)
6696: case $host in
6697: x86_64-*kfreebsd*-gnu)
6698: LD="${LD-ld} -m elf_i386_fbsd"
6699: ;;
6700: x86_64-*linux*)
6701: case `/usr/bin/file conftest.o` in
6702: *x86-64*)
6703: LD="${LD-ld} -m elf32_x86_64"
6704: ;;
6705: *)
6706: LD="${LD-ld} -m elf_i386"
6707: ;;
6708: esac
6709: ;;
6710: powerpc64le-*linux*)
6711: LD="${LD-ld} -m elf32lppclinux"
6712: ;;
6713: powerpc64-*linux*)
6714: LD="${LD-ld} -m elf32ppclinux"
6715: ;;
6716: s390x-*linux*)
6717: LD="${LD-ld} -m elf_s390"
6718: ;;
6719: sparc64-*linux*)
6720: LD="${LD-ld} -m elf32_sparc"
6721: ;;
6722: esac
6723: ;;
6724: *64-bit*)
6725: case $host in
6726: x86_64-*kfreebsd*-gnu)
6727: LD="${LD-ld} -m elf_x86_64_fbsd"
6728: ;;
6729: x86_64-*linux*)
6730: LD="${LD-ld} -m elf_x86_64"
6731: ;;
6732: powerpcle-*linux*)
6733: LD="${LD-ld} -m elf64lppc"
6734: ;;
6735: powerpc-*linux*)
6736: LD="${LD-ld} -m elf64ppc"
6737: ;;
6738: s390*-*linux*|s390*-*tpf*)
6739: LD="${LD-ld} -m elf64_s390"
6740: ;;
6741: sparc*-*linux*)
6742: LD="${LD-ld} -m elf64_sparc"
6743: ;;
6744: esac
6745: ;;
6746: esac
6747: fi
6748: rm -rf conftest*
6749: ;;
6750:
6751: *-*-sco3.2v5*)
6752: # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6753: SAVE_CFLAGS=$CFLAGS
6754: CFLAGS="$CFLAGS -belf"
6755: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6756: $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6757: if ${lt_cv_cc_needs_belf+:} false; then :
6758: $as_echo_n "(cached) " >&6
6759: else
6760: ac_ext=c
6761: ac_cpp='$CPP $CPPFLAGS'
6762: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6763: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6764: ac_compiler_gnu=$ac_cv_c_compiler_gnu
6765:
6766: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6767: /* end confdefs.h. */
6768:
6769: int
6770: main ()
6771: {
6772:
6773: ;
6774: return 0;
6775: }
6776: _ACEOF
6777: if ac_fn_c_try_link "$LINENO"; then :
6778: lt_cv_cc_needs_belf=yes
6779: else
6780: lt_cv_cc_needs_belf=no
6781: fi
6782: rm -f core conftest.err conftest.$ac_objext \
6783: conftest$ac_exeext conftest.$ac_ext
6784: ac_ext=c
6785: ac_cpp='$CPP $CPPFLAGS'
6786: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6787: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6788: ac_compiler_gnu=$ac_cv_c_compiler_gnu
6789:
6790: fi
6791: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6792: $as_echo "$lt_cv_cc_needs_belf" >&6; }
6793: if test yes != "$lt_cv_cc_needs_belf"; then
6794: # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6795: CFLAGS=$SAVE_CFLAGS
6796: fi
6797: ;;
6798: *-*solaris*)
6799: # Find out what ABI is being produced by ac_compile, and set linker
6800: # options accordingly.
6801: echo 'int i;' > conftest.$ac_ext
6802: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6803: (eval $ac_compile) 2>&5
6804: ac_status=$?
6805: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6806: test $ac_status = 0; }; then
6807: case `/usr/bin/file conftest.o` in
6808: *64-bit*)
6809: case $lt_cv_prog_gnu_ld in
6810: yes*)
6811: case $host in
6812: i?86-*-solaris*|x86_64-*-solaris*)
6813: LD="${LD-ld} -m elf_x86_64"
6814: ;;
6815: sparc*-*-solaris*)
6816: LD="${LD-ld} -m elf64_sparc"
6817: ;;
6818: esac
6819: # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6820: if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6821: LD=${LD-ld}_sol2
6822: fi
6823: ;;
6824: *)
6825: if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6826: LD="${LD-ld} -64"
6827: fi
6828: ;;
6829: esac
6830: ;;
6831: esac
6832: fi
6833: rm -rf conftest*
6834: ;;
6835: esac
6836:
6837: need_locks=$enable_libtool_lock
6838:
6839: if test -n "$ac_tool_prefix"; then
6840: # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6841: set dummy ${ac_tool_prefix}mt; ac_word=$2
6842: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6843: $as_echo_n "checking for $ac_word... " >&6; }
6844: if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6845: $as_echo_n "(cached) " >&6
6846: else
6847: if test -n "$MANIFEST_TOOL"; then
6848: ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6849: else
6850: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6851: for as_dir in $PATH
6852: do
6853: IFS=$as_save_IFS
6854: test -z "$as_dir" && as_dir=.
6855: for ac_exec_ext in '' $ac_executable_extensions; do
6856: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6857: ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6858: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6859: break 2
6860: fi
6861: done
6862: done
6863: IFS=$as_save_IFS
6864:
6865: fi
6866: fi
6867: MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6868: if test -n "$MANIFEST_TOOL"; then
6869: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6870: $as_echo "$MANIFEST_TOOL" >&6; }
6871: else
6872: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6873: $as_echo "no" >&6; }
6874: fi
6875:
6876:
6877: fi
6878: if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6879: ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6880: # Extract the first word of "mt", so it can be a program name with args.
6881: set dummy mt; ac_word=$2
6882: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6883: $as_echo_n "checking for $ac_word... " >&6; }
6884: if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6885: $as_echo_n "(cached) " >&6
6886: else
6887: if test -n "$ac_ct_MANIFEST_TOOL"; then
6888: ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6889: else
6890: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6891: for as_dir in $PATH
6892: do
6893: IFS=$as_save_IFS
6894: test -z "$as_dir" && as_dir=.
6895: for ac_exec_ext in '' $ac_executable_extensions; do
6896: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6897: ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6898: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6899: break 2
6900: fi
6901: done
6902: done
6903: IFS=$as_save_IFS
6904:
6905: fi
6906: fi
6907: ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6908: if test -n "$ac_ct_MANIFEST_TOOL"; then
6909: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6910: $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6911: else
6912: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6913: $as_echo "no" >&6; }
6914: fi
6915:
6916: if test "x$ac_ct_MANIFEST_TOOL" = x; then
6917: MANIFEST_TOOL=":"
6918: else
6919: case $cross_compiling:$ac_tool_warned in
6920: yes:)
6921: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6922: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6923: ac_tool_warned=yes ;;
6924: esac
6925: MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6926: fi
6927: else
6928: MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6929: fi
6930:
6931: test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6932: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6933: $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6934: if ${lt_cv_path_mainfest_tool+:} false; then :
6935: $as_echo_n "(cached) " >&6
6936: else
6937: lt_cv_path_mainfest_tool=no
6938: echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6939: $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6940: cat conftest.err >&5
6941: if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6942: lt_cv_path_mainfest_tool=yes
6943: fi
6944: rm -f conftest*
6945: fi
6946: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6947: $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6948: if test yes != "$lt_cv_path_mainfest_tool"; then
6949: MANIFEST_TOOL=:
6950: fi
6951:
6952:
6953:
6954:
6955:
6956:
6957: case $host_os in
6958: rhapsody* | darwin*)
6959: if test -n "$ac_tool_prefix"; then
6960: # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6961: set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6962: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6963: $as_echo_n "checking for $ac_word... " >&6; }
6964: if ${ac_cv_prog_DSYMUTIL+:} false; then :
6965: $as_echo_n "(cached) " >&6
6966: else
6967: if test -n "$DSYMUTIL"; then
6968: ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6969: else
6970: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6971: for as_dir in $PATH
6972: do
6973: IFS=$as_save_IFS
6974: test -z "$as_dir" && as_dir=.
6975: for ac_exec_ext in '' $ac_executable_extensions; do
6976: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6977: ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6978: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6979: break 2
6980: fi
6981: done
6982: done
6983: IFS=$as_save_IFS
6984:
6985: fi
6986: fi
6987: DSYMUTIL=$ac_cv_prog_DSYMUTIL
6988: if test -n "$DSYMUTIL"; then
6989: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6990: $as_echo "$DSYMUTIL" >&6; }
6991: else
6992: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6993: $as_echo "no" >&6; }
6994: fi
6995:
6996:
6997: fi
6998: if test -z "$ac_cv_prog_DSYMUTIL"; then
6999: ac_ct_DSYMUTIL=$DSYMUTIL
7000: # Extract the first word of "dsymutil", so it can be a program name with args.
7001: set dummy dsymutil; ac_word=$2
7002: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7003: $as_echo_n "checking for $ac_word... " >&6; }
7004: if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7005: $as_echo_n "(cached) " >&6
7006: else
7007: if test -n "$ac_ct_DSYMUTIL"; then
7008: ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7009: else
7010: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7011: for as_dir in $PATH
7012: do
7013: IFS=$as_save_IFS
7014: test -z "$as_dir" && as_dir=.
7015: for ac_exec_ext in '' $ac_executable_extensions; do
7016: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7017: ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7018: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7019: break 2
7020: fi
7021: done
7022: done
7023: IFS=$as_save_IFS
7024:
7025: fi
7026: fi
7027: ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7028: if test -n "$ac_ct_DSYMUTIL"; then
7029: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7030: $as_echo "$ac_ct_DSYMUTIL" >&6; }
7031: else
7032: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7033: $as_echo "no" >&6; }
7034: fi
7035:
7036: if test "x$ac_ct_DSYMUTIL" = x; then
7037: DSYMUTIL=":"
7038: else
7039: case $cross_compiling:$ac_tool_warned in
7040: yes:)
7041: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7042: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7043: ac_tool_warned=yes ;;
7044: esac
7045: DSYMUTIL=$ac_ct_DSYMUTIL
7046: fi
7047: else
7048: DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7049: fi
7050:
7051: if test -n "$ac_tool_prefix"; then
7052: # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7053: set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7054: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7055: $as_echo_n "checking for $ac_word... " >&6; }
7056: if ${ac_cv_prog_NMEDIT+:} false; then :
7057: $as_echo_n "(cached) " >&6
7058: else
7059: if test -n "$NMEDIT"; then
7060: ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7061: else
7062: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7063: for as_dir in $PATH
7064: do
7065: IFS=$as_save_IFS
7066: test -z "$as_dir" && as_dir=.
7067: for ac_exec_ext in '' $ac_executable_extensions; do
7068: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7069: ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7070: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7071: break 2
7072: fi
7073: done
7074: done
7075: IFS=$as_save_IFS
7076:
7077: fi
7078: fi
7079: NMEDIT=$ac_cv_prog_NMEDIT
7080: if test -n "$NMEDIT"; then
7081: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7082: $as_echo "$NMEDIT" >&6; }
7083: else
7084: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7085: $as_echo "no" >&6; }
7086: fi
7087:
7088:
7089: fi
7090: if test -z "$ac_cv_prog_NMEDIT"; then
7091: ac_ct_NMEDIT=$NMEDIT
7092: # Extract the first word of "nmedit", so it can be a program name with args.
7093: set dummy nmedit; ac_word=$2
7094: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7095: $as_echo_n "checking for $ac_word... " >&6; }
7096: if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7097: $as_echo_n "(cached) " >&6
7098: else
7099: if test -n "$ac_ct_NMEDIT"; then
7100: ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7101: else
7102: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7103: for as_dir in $PATH
7104: do
7105: IFS=$as_save_IFS
7106: test -z "$as_dir" && as_dir=.
7107: for ac_exec_ext in '' $ac_executable_extensions; do
7108: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7109: ac_cv_prog_ac_ct_NMEDIT="nmedit"
7110: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7111: break 2
7112: fi
7113: done
7114: done
7115: IFS=$as_save_IFS
7116:
7117: fi
7118: fi
7119: ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7120: if test -n "$ac_ct_NMEDIT"; then
7121: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7122: $as_echo "$ac_ct_NMEDIT" >&6; }
7123: else
7124: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7125: $as_echo "no" >&6; }
7126: fi
7127:
7128: if test "x$ac_ct_NMEDIT" = x; then
7129: NMEDIT=":"
7130: else
7131: case $cross_compiling:$ac_tool_warned in
7132: yes:)
7133: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7134: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7135: ac_tool_warned=yes ;;
7136: esac
7137: NMEDIT=$ac_ct_NMEDIT
7138: fi
7139: else
7140: NMEDIT="$ac_cv_prog_NMEDIT"
7141: fi
7142:
7143: if test -n "$ac_tool_prefix"; then
7144: # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7145: set dummy ${ac_tool_prefix}lipo; ac_word=$2
7146: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7147: $as_echo_n "checking for $ac_word... " >&6; }
7148: if ${ac_cv_prog_LIPO+:} false; then :
7149: $as_echo_n "(cached) " >&6
7150: else
7151: if test -n "$LIPO"; then
7152: ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7153: else
7154: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7155: for as_dir in $PATH
7156: do
7157: IFS=$as_save_IFS
7158: test -z "$as_dir" && as_dir=.
7159: for ac_exec_ext in '' $ac_executable_extensions; do
7160: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7161: ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7162: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7163: break 2
7164: fi
7165: done
7166: done
7167: IFS=$as_save_IFS
7168:
7169: fi
7170: fi
7171: LIPO=$ac_cv_prog_LIPO
7172: if test -n "$LIPO"; then
7173: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7174: $as_echo "$LIPO" >&6; }
7175: else
7176: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7177: $as_echo "no" >&6; }
7178: fi
7179:
7180:
7181: fi
7182: if test -z "$ac_cv_prog_LIPO"; then
7183: ac_ct_LIPO=$LIPO
7184: # Extract the first word of "lipo", so it can be a program name with args.
7185: set dummy lipo; ac_word=$2
7186: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7187: $as_echo_n "checking for $ac_word... " >&6; }
7188: if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7189: $as_echo_n "(cached) " >&6
7190: else
7191: if test -n "$ac_ct_LIPO"; then
7192: ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7193: else
7194: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7195: for as_dir in $PATH
7196: do
7197: IFS=$as_save_IFS
7198: test -z "$as_dir" && as_dir=.
7199: for ac_exec_ext in '' $ac_executable_extensions; do
7200: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7201: ac_cv_prog_ac_ct_LIPO="lipo"
7202: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7203: break 2
7204: fi
7205: done
7206: done
7207: IFS=$as_save_IFS
7208:
7209: fi
7210: fi
7211: ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7212: if test -n "$ac_ct_LIPO"; then
7213: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7214: $as_echo "$ac_ct_LIPO" >&6; }
7215: else
7216: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7217: $as_echo "no" >&6; }
7218: fi
7219:
7220: if test "x$ac_ct_LIPO" = x; then
7221: LIPO=":"
7222: else
7223: case $cross_compiling:$ac_tool_warned in
7224: yes:)
7225: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7226: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7227: ac_tool_warned=yes ;;
7228: esac
7229: LIPO=$ac_ct_LIPO
7230: fi
7231: else
7232: LIPO="$ac_cv_prog_LIPO"
7233: fi
7234:
7235: if test -n "$ac_tool_prefix"; then
7236: # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7237: set dummy ${ac_tool_prefix}otool; ac_word=$2
7238: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7239: $as_echo_n "checking for $ac_word... " >&6; }
7240: if ${ac_cv_prog_OTOOL+:} false; then :
7241: $as_echo_n "(cached) " >&6
7242: else
7243: if test -n "$OTOOL"; then
7244: ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7245: else
7246: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7247: for as_dir in $PATH
7248: do
7249: IFS=$as_save_IFS
7250: test -z "$as_dir" && as_dir=.
7251: for ac_exec_ext in '' $ac_executable_extensions; do
7252: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7253: ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7254: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7255: break 2
7256: fi
7257: done
7258: done
7259: IFS=$as_save_IFS
7260:
7261: fi
7262: fi
7263: OTOOL=$ac_cv_prog_OTOOL
7264: if test -n "$OTOOL"; then
7265: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7266: $as_echo "$OTOOL" >&6; }
7267: else
7268: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7269: $as_echo "no" >&6; }
7270: fi
7271:
7272:
7273: fi
7274: if test -z "$ac_cv_prog_OTOOL"; then
7275: ac_ct_OTOOL=$OTOOL
7276: # Extract the first word of "otool", so it can be a program name with args.
7277: set dummy otool; ac_word=$2
7278: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7279: $as_echo_n "checking for $ac_word... " >&6; }
7280: if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7281: $as_echo_n "(cached) " >&6
7282: else
7283: if test -n "$ac_ct_OTOOL"; then
7284: ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7285: else
7286: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7287: for as_dir in $PATH
7288: do
7289: IFS=$as_save_IFS
7290: test -z "$as_dir" && as_dir=.
7291: for ac_exec_ext in '' $ac_executable_extensions; do
7292: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7293: ac_cv_prog_ac_ct_OTOOL="otool"
7294: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7295: break 2
7296: fi
7297: done
7298: done
7299: IFS=$as_save_IFS
7300:
7301: fi
7302: fi
7303: ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7304: if test -n "$ac_ct_OTOOL"; then
7305: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7306: $as_echo "$ac_ct_OTOOL" >&6; }
7307: else
7308: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7309: $as_echo "no" >&6; }
7310: fi
7311:
7312: if test "x$ac_ct_OTOOL" = x; then
7313: OTOOL=":"
7314: else
7315: case $cross_compiling:$ac_tool_warned in
7316: yes:)
7317: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7318: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7319: ac_tool_warned=yes ;;
7320: esac
7321: OTOOL=$ac_ct_OTOOL
7322: fi
7323: else
7324: OTOOL="$ac_cv_prog_OTOOL"
7325: fi
7326:
7327: if test -n "$ac_tool_prefix"; then
7328: # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7329: set dummy ${ac_tool_prefix}otool64; ac_word=$2
7330: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7331: $as_echo_n "checking for $ac_word... " >&6; }
7332: if ${ac_cv_prog_OTOOL64+:} false; then :
7333: $as_echo_n "(cached) " >&6
7334: else
7335: if test -n "$OTOOL64"; then
7336: ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7337: else
7338: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7339: for as_dir in $PATH
7340: do
7341: IFS=$as_save_IFS
7342: test -z "$as_dir" && as_dir=.
7343: for ac_exec_ext in '' $ac_executable_extensions; do
7344: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7345: ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7346: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7347: break 2
7348: fi
7349: done
7350: done
7351: IFS=$as_save_IFS
7352:
7353: fi
7354: fi
7355: OTOOL64=$ac_cv_prog_OTOOL64
7356: if test -n "$OTOOL64"; then
7357: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7358: $as_echo "$OTOOL64" >&6; }
7359: else
7360: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7361: $as_echo "no" >&6; }
7362: fi
7363:
7364:
7365: fi
7366: if test -z "$ac_cv_prog_OTOOL64"; then
7367: ac_ct_OTOOL64=$OTOOL64
7368: # Extract the first word of "otool64", so it can be a program name with args.
7369: set dummy otool64; ac_word=$2
7370: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7371: $as_echo_n "checking for $ac_word... " >&6; }
7372: if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7373: $as_echo_n "(cached) " >&6
7374: else
7375: if test -n "$ac_ct_OTOOL64"; then
7376: ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7377: else
7378: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7379: for as_dir in $PATH
7380: do
7381: IFS=$as_save_IFS
7382: test -z "$as_dir" && as_dir=.
7383: for ac_exec_ext in '' $ac_executable_extensions; do
7384: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7385: ac_cv_prog_ac_ct_OTOOL64="otool64"
7386: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7387: break 2
7388: fi
7389: done
7390: done
7391: IFS=$as_save_IFS
7392:
7393: fi
7394: fi
7395: ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7396: if test -n "$ac_ct_OTOOL64"; then
7397: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7398: $as_echo "$ac_ct_OTOOL64" >&6; }
7399: else
7400: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7401: $as_echo "no" >&6; }
7402: fi
7403:
7404: if test "x$ac_ct_OTOOL64" = x; then
7405: OTOOL64=":"
7406: else
7407: case $cross_compiling:$ac_tool_warned in
7408: yes:)
7409: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7410: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7411: ac_tool_warned=yes ;;
7412: esac
7413: OTOOL64=$ac_ct_OTOOL64
7414: fi
7415: else
7416: OTOOL64="$ac_cv_prog_OTOOL64"
7417: fi
7418:
7419:
7420:
7421:
7422:
7423:
7424:
7425:
7426:
7427:
7428:
7429:
7430:
7431:
7432:
7433:
7434:
7435:
7436:
7437:
7438:
7439:
7440:
7441:
7442:
7443:
7444:
7445: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7446: $as_echo_n "checking for -single_module linker flag... " >&6; }
7447: if ${lt_cv_apple_cc_single_mod+:} false; then :
7448: $as_echo_n "(cached) " >&6
7449: else
7450: lt_cv_apple_cc_single_mod=no
7451: if test -z "$LT_MULTI_MODULE"; then
7452: # By default we will add the -single_module flag. You can override
7453: # by either setting the environment variable LT_MULTI_MODULE
7454: # non-empty at configure time, or by adding -multi_module to the
7455: # link flags.
7456: rm -rf libconftest.dylib*
7457: echo "int foo(void){return 1;}" > conftest.c
7458: echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7459: -dynamiclib -Wl,-single_module conftest.c" >&5
7460: $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7461: -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7462: _lt_result=$?
7463: # If there is a non-empty error log, and "single_module"
7464: # appears in it, assume the flag caused a linker warning
7465: if test -s conftest.err && $GREP single_module conftest.err; then
7466: cat conftest.err >&5
7467: # Otherwise, if the output was created with a 0 exit code from
7468: # the compiler, it worked.
7469: elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
7470: lt_cv_apple_cc_single_mod=yes
7471: else
7472: cat conftest.err >&5
7473: fi
7474: rm -rf libconftest.dylib*
7475: rm -f conftest.*
7476: fi
7477: fi
7478: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7479: $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7480:
7481: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7482: $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7483: if ${lt_cv_ld_exported_symbols_list+:} false; then :
7484: $as_echo_n "(cached) " >&6
7485: else
7486: lt_cv_ld_exported_symbols_list=no
7487: save_LDFLAGS=$LDFLAGS
7488: echo "_main" > conftest.sym
7489: LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7490: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7491: /* end confdefs.h. */
7492:
7493: int
7494: main ()
7495: {
7496:
7497: ;
7498: return 0;
7499: }
7500: _ACEOF
7501: if ac_fn_c_try_link "$LINENO"; then :
7502: lt_cv_ld_exported_symbols_list=yes
7503: else
7504: lt_cv_ld_exported_symbols_list=no
7505: fi
7506: rm -f core conftest.err conftest.$ac_objext \
7507: conftest$ac_exeext conftest.$ac_ext
7508: LDFLAGS=$save_LDFLAGS
7509:
7510: fi
7511: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7512: $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7513:
7514: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7515: $as_echo_n "checking for -force_load linker flag... " >&6; }
7516: if ${lt_cv_ld_force_load+:} false; then :
7517: $as_echo_n "(cached) " >&6
7518: else
7519: lt_cv_ld_force_load=no
7520: cat > conftest.c << _LT_EOF
7521: int forced_loaded() { return 2;}
7522: _LT_EOF
7523: echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7524: $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7525: echo "$AR cru libconftest.a conftest.o" >&5
7526: $AR cru libconftest.a conftest.o 2>&5
7527: echo "$RANLIB libconftest.a" >&5
7528: $RANLIB libconftest.a 2>&5
7529: cat > conftest.c << _LT_EOF
7530: int main() { return 0;}
7531: _LT_EOF
7532: echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7533: $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7534: _lt_result=$?
7535: if test -s conftest.err && $GREP force_load conftest.err; then
7536: cat conftest.err >&5
7537: elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
7538: lt_cv_ld_force_load=yes
7539: else
7540: cat conftest.err >&5
7541: fi
7542: rm -f conftest.err libconftest.a conftest conftest.c
7543: rm -rf conftest.dSYM
7544:
7545: fi
7546: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7547: $as_echo "$lt_cv_ld_force_load" >&6; }
7548: case $host_os in
7549: rhapsody* | darwin1.[012])
7550: _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
7551: darwin1.*)
7552: _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7553: darwin*) # darwin 5.x on
7554: # if running on 10.5 or later, the deployment target defaults
7555: # to the OS version, if on x86, and 10.4, the deployment
7556: # target defaults to 10.4. Don't you love it?
7557: case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7558: 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7559: _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7560: 10.[012][,.]*)
7561: _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7562: 10.*)
7563: _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7564: esac
7565: ;;
7566: esac
7567: if test yes = "$lt_cv_apple_cc_single_mod"; then
7568: _lt_dar_single_mod='$single_module'
7569: fi
7570: if test yes = "$lt_cv_ld_exported_symbols_list"; then
7571: _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
7572: else
7573: _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
7574: fi
7575: if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
7576: _lt_dsymutil='~$DSYMUTIL $lib || :'
7577: else
7578: _lt_dsymutil=
7579: fi
7580: ;;
7581: esac
7582:
7583: # func_munge_path_list VARIABLE PATH
7584: # -----------------------------------
7585: # VARIABLE is name of variable containing _space_ separated list of
7586: # directories to be munged by the contents of PATH, which is string
7587: # having a format:
7588: # "DIR[:DIR]:"
7589: # string "DIR[ DIR]" will be prepended to VARIABLE
7590: # ":DIR[:DIR]"
7591: # string "DIR[ DIR]" will be appended to VARIABLE
7592: # "DIRP[:DIRP]::[DIRA:]DIRA"
7593: # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
7594: # "DIRA[ DIRA]" will be appended to VARIABLE
7595: # "DIR[:DIR]"
7596: # VARIABLE will be replaced by "DIR[ DIR]"
7597: func_munge_path_list ()
7598: {
7599: case x$2 in
7600: x)
7601: ;;
7602: *:)
7603: eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
7604: ;;
7605: x:*)
7606: eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
7607: ;;
7608: *::*)
7609: eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
7610: eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
7611: ;;
7612: *)
7613: eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
7614: ;;
7615: esac
7616: }
7617:
7618: ac_ext=c
7619: ac_cpp='$CPP $CPPFLAGS'
7620: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7621: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7622: ac_compiler_gnu=$ac_cv_c_compiler_gnu
7623: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7624: $as_echo_n "checking how to run the C preprocessor... " >&6; }
7625: # On Suns, sometimes $CPP names a directory.
7626: if test -n "$CPP" && test -d "$CPP"; then
7627: CPP=
7628: fi
7629: if test -z "$CPP"; then
7630: if ${ac_cv_prog_CPP+:} false; then :
7631: $as_echo_n "(cached) " >&6
7632: else
7633: # Double quotes because CPP needs to be expanded
7634: for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7635: do
7636: ac_preproc_ok=false
7637: for ac_c_preproc_warn_flag in '' yes
7638: do
7639: # Use a header file that comes with gcc, so configuring glibc
7640: # with a fresh cross-compiler works.
7641: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7642: # <limits.h> exists even on freestanding compilers.
7643: # On the NeXT, cc -E runs the code through the compiler's parser,
7644: # not just through cpp. "Syntax error" is here to catch this case.
7645: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7646: /* end confdefs.h. */
7647: #ifdef __STDC__
7648: # include <limits.h>
7649: #else
7650: # include <assert.h>
7651: #endif
7652: Syntax error
7653: _ACEOF
7654: if ac_fn_c_try_cpp "$LINENO"; then :
7655:
7656: else
7657: # Broken: fails on valid input.
7658: continue
7659: fi
7660: rm -f conftest.err conftest.i conftest.$ac_ext
7661:
7662: # OK, works on sane cases. Now check whether nonexistent headers
7663: # can be detected and how.
7664: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7665: /* end confdefs.h. */
7666: #include <ac_nonexistent.h>
7667: _ACEOF
7668: if ac_fn_c_try_cpp "$LINENO"; then :
7669: # Broken: success on invalid input.
7670: continue
7671: else
7672: # Passes both tests.
7673: ac_preproc_ok=:
7674: break
7675: fi
7676: rm -f conftest.err conftest.i conftest.$ac_ext
7677:
7678: done
7679: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7680: rm -f conftest.i conftest.err conftest.$ac_ext
7681: if $ac_preproc_ok; then :
7682: break
7683: fi
7684:
7685: done
7686: ac_cv_prog_CPP=$CPP
7687:
7688: fi
7689: CPP=$ac_cv_prog_CPP
7690: else
7691: ac_cv_prog_CPP=$CPP
7692: fi
7693: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7694: $as_echo "$CPP" >&6; }
7695: ac_preproc_ok=false
7696: for ac_c_preproc_warn_flag in '' yes
7697: do
7698: # Use a header file that comes with gcc, so configuring glibc
7699: # with a fresh cross-compiler works.
7700: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7701: # <limits.h> exists even on freestanding compilers.
7702: # On the NeXT, cc -E runs the code through the compiler's parser,
7703: # not just through cpp. "Syntax error" is here to catch this case.
7704: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7705: /* end confdefs.h. */
7706: #ifdef __STDC__
7707: # include <limits.h>
7708: #else
7709: # include <assert.h>
7710: #endif
7711: Syntax error
7712: _ACEOF
7713: if ac_fn_c_try_cpp "$LINENO"; then :
7714:
7715: else
7716: # Broken: fails on valid input.
7717: continue
7718: fi
7719: rm -f conftest.err conftest.i conftest.$ac_ext
7720:
7721: # OK, works on sane cases. Now check whether nonexistent headers
7722: # can be detected and how.
7723: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7724: /* end confdefs.h. */
7725: #include <ac_nonexistent.h>
7726: _ACEOF
7727: if ac_fn_c_try_cpp "$LINENO"; then :
7728: # Broken: success on invalid input.
7729: continue
7730: else
7731: # Passes both tests.
7732: ac_preproc_ok=:
7733: break
7734: fi
7735: rm -f conftest.err conftest.i conftest.$ac_ext
7736:
7737: done
7738: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7739: rm -f conftest.i conftest.err conftest.$ac_ext
7740: if $ac_preproc_ok; then :
7741:
7742: else
7743: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7744: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7745: as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7746: See \`config.log' for more details" "$LINENO" 5; }
7747: fi
7748:
7749: ac_ext=c
7750: ac_cpp='$CPP $CPPFLAGS'
7751: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7752: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7753: ac_compiler_gnu=$ac_cv_c_compiler_gnu
7754:
7755:
7756: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7757: $as_echo_n "checking for ANSI C header files... " >&6; }
7758: if ${ac_cv_header_stdc+:} false; then :
7759: $as_echo_n "(cached) " >&6
7760: else
7761: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7762: /* end confdefs.h. */
7763: #include <stdlib.h>
7764: #include <stdarg.h>
7765: #include <string.h>
7766: #include <float.h>
7767:
7768: int
7769: main ()
7770: {
7771:
7772: ;
7773: return 0;
7774: }
7775: _ACEOF
7776: if ac_fn_c_try_compile "$LINENO"; then :
7777: ac_cv_header_stdc=yes
7778: else
7779: ac_cv_header_stdc=no
7780: fi
7781: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7782:
7783: if test $ac_cv_header_stdc = yes; then
7784: # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7785: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7786: /* end confdefs.h. */
7787: #include <string.h>
7788:
7789: _ACEOF
7790: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7791: $EGREP "memchr" >/dev/null 2>&1; then :
7792:
7793: else
7794: ac_cv_header_stdc=no
7795: fi
7796: rm -f conftest*
7797:
7798: fi
7799:
7800: if test $ac_cv_header_stdc = yes; then
7801: # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7802: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7803: /* end confdefs.h. */
7804: #include <stdlib.h>
7805:
7806: _ACEOF
7807: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7808: $EGREP "free" >/dev/null 2>&1; then :
7809:
7810: else
7811: ac_cv_header_stdc=no
7812: fi
7813: rm -f conftest*
7814:
7815: fi
7816:
7817: if test $ac_cv_header_stdc = yes; then
7818: # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7819: if test "$cross_compiling" = yes; then :
7820: :
7821: else
7822: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7823: /* end confdefs.h. */
7824: #include <ctype.h>
7825: #include <stdlib.h>
7826: #if ((' ' & 0x0FF) == 0x020)
7827: # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7828: # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7829: #else
7830: # define ISLOWER(c) \
7831: (('a' <= (c) && (c) <= 'i') \
7832: || ('j' <= (c) && (c) <= 'r') \
7833: || ('s' <= (c) && (c) <= 'z'))
7834: # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7835: #endif
7836:
7837: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7838: int
7839: main ()
7840: {
7841: int i;
7842: for (i = 0; i < 256; i++)
7843: if (XOR (islower (i), ISLOWER (i))
7844: || toupper (i) != TOUPPER (i))
7845: return 2;
7846: return 0;
7847: }
7848: _ACEOF
7849: if ac_fn_c_try_run "$LINENO"; then :
7850:
7851: else
7852: ac_cv_header_stdc=no
7853: fi
7854: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7855: conftest.$ac_objext conftest.beam conftest.$ac_ext
7856: fi
7857:
7858: fi
7859: fi
7860: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7861: $as_echo "$ac_cv_header_stdc" >&6; }
7862: if test $ac_cv_header_stdc = yes; then
7863:
7864: $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7865:
7866: fi
7867:
7868: # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7869: for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7870: inttypes.h stdint.h unistd.h
7871: do :
7872: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7873: ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7874: "
7875: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7876: cat >>confdefs.h <<_ACEOF
7877: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7878: _ACEOF
7879:
7880: fi
7881:
7882: done
7883:
7884:
7885: for ac_header in dlfcn.h
7886: do :
7887: ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7888: "
7889: if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7890: cat >>confdefs.h <<_ACEOF
7891: #define HAVE_DLFCN_H 1
7892: _ACEOF
7893:
7894: fi
7895:
7896: done
7897:
7898:
7899:
7900:
7901:
7902: # Set options
7903:
7904:
7905:
7906: enable_dlopen=no
7907:
7908:
7909: enable_win32_dll=no
7910:
7911:
7912: # Check whether --enable-shared was given.
7913: if test "${enable_shared+set}" = set; then :
7914: enableval=$enable_shared; p=${PACKAGE-default}
7915: case $enableval in
7916: yes) enable_shared=yes ;;
7917: no) enable_shared=no ;;
7918: *)
7919: enable_shared=no
7920: # Look at the argument we got. We use all the common list separators.
7921: lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7922: for pkg in $enableval; do
7923: IFS=$lt_save_ifs
7924: if test "X$pkg" = "X$p"; then
7925: enable_shared=yes
7926: fi
7927: done
7928: IFS=$lt_save_ifs
7929: ;;
7930: esac
7931: else
7932: enable_shared=yes
7933: fi
7934:
7935:
7936:
7937:
7938:
7939:
7940:
7941:
7942:
7943: # Check whether --enable-static was given.
7944: if test "${enable_static+set}" = set; then :
7945: enableval=$enable_static; p=${PACKAGE-default}
7946: case $enableval in
7947: yes) enable_static=yes ;;
7948: no) enable_static=no ;;
7949: *)
7950: enable_static=no
7951: # Look at the argument we got. We use all the common list separators.
7952: lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7953: for pkg in $enableval; do
7954: IFS=$lt_save_ifs
7955: if test "X$pkg" = "X$p"; then
7956: enable_static=yes
7957: fi
7958: done
7959: IFS=$lt_save_ifs
7960: ;;
7961: esac
7962: else
7963: enable_static=yes
7964: fi
7965:
7966:
7967:
7968:
7969:
7970:
7971:
7972:
7973:
7974:
7975: # Check whether --with-pic was given.
7976: if test "${with_pic+set}" = set; then :
7977: withval=$with_pic; lt_p=${PACKAGE-default}
7978: case $withval in
7979: yes|no) pic_mode=$withval ;;
7980: *)
7981: pic_mode=default
7982: # Look at the argument we got. We use all the common list separators.
7983: lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7984: for lt_pkg in $withval; do
7985: IFS=$lt_save_ifs
7986: if test "X$lt_pkg" = "X$lt_p"; then
7987: pic_mode=yes
7988: fi
7989: done
7990: IFS=$lt_save_ifs
7991: ;;
7992: esac
7993: else
7994: pic_mode=default
7995: fi
7996:
7997:
7998:
7999:
8000:
8001:
8002:
8003:
8004: # Check whether --enable-fast-install was given.
8005: if test "${enable_fast_install+set}" = set; then :
8006: enableval=$enable_fast_install; p=${PACKAGE-default}
8007: case $enableval in
8008: yes) enable_fast_install=yes ;;
8009: no) enable_fast_install=no ;;
8010: *)
8011: enable_fast_install=no
8012: # Look at the argument we got. We use all the common list separators.
8013: lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8014: for pkg in $enableval; do
8015: IFS=$lt_save_ifs
8016: if test "X$pkg" = "X$p"; then
8017: enable_fast_install=yes
8018: fi
8019: done
8020: IFS=$lt_save_ifs
8021: ;;
8022: esac
8023: else
8024: enable_fast_install=yes
8025: fi
8026:
8027:
8028:
8029:
8030:
8031:
8032:
8033:
8034: shared_archive_member_spec=
8035: case $host,$enable_shared in
8036: power*-*-aix[5-9]*,yes)
8037: { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8038: $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
8039:
8040: # Check whether --with-aix-soname was given.
8041: if test "${with_aix_soname+set}" = set; then :
8042: withval=$with_aix_soname; case $withval in
8043: aix|svr4|both)
8044: ;;
8045: *)
8046: as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8047: ;;
8048: esac
8049: lt_cv_with_aix_soname=$with_aix_soname
8050: else
8051: if ${lt_cv_with_aix_soname+:} false; then :
8052: $as_echo_n "(cached) " >&6
8053: else
8054: lt_cv_with_aix_soname=aix
8055: fi
8056:
8057: with_aix_soname=$lt_cv_with_aix_soname
8058: fi
8059:
8060: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8061: $as_echo "$with_aix_soname" >&6; }
8062: if test aix != "$with_aix_soname"; then
8063: # For the AIX way of multilib, we name the shared archive member
8064: # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8065: # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8066: # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8067: # the AIX toolchain works better with OBJECT_MODE set (default 32).
8068: if test 64 = "${OBJECT_MODE-32}"; then
8069: shared_archive_member_spec=shr_64
8070: else
8071: shared_archive_member_spec=shr
8072: fi
8073: fi
8074: ;;
8075: *)
8076: with_aix_soname=aix
8077: ;;
8078: esac
8079:
8080:
8081:
8082:
8083:
8084:
8085:
8086:
8087:
8088:
8089: # This can be used to rebuild libtool when needed
8090: LIBTOOL_DEPS=$ltmain
8091:
8092: # Always use our own libtool.
8093: LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8094:
8095:
8096:
8097:
8098:
8099:
8100:
8101:
8102:
8103:
8104:
8105:
8106:
8107:
8108:
8109:
8110:
8111:
8112:
8113:
8114:
8115:
8116:
8117:
8118:
8119:
8120:
8121:
8122:
8123:
8124: test -z "$LN_S" && LN_S="ln -s"
8125:
8126:
8127:
8128:
8129:
8130:
8131:
8132:
8133:
8134:
8135:
8136:
8137:
8138:
8139: if test -n "${ZSH_VERSION+set}"; then
8140: setopt NO_GLOB_SUBST
8141: fi
8142:
8143: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8144: $as_echo_n "checking for objdir... " >&6; }
8145: if ${lt_cv_objdir+:} false; then :
8146: $as_echo_n "(cached) " >&6
8147: else
8148: rm -f .libs 2>/dev/null
8149: mkdir .libs 2>/dev/null
8150: if test -d .libs; then
8151: lt_cv_objdir=.libs
8152: else
8153: # MS-DOS does not allow filenames that begin with a dot.
8154: lt_cv_objdir=_libs
8155: fi
8156: rmdir .libs 2>/dev/null
8157: fi
8158: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8159: $as_echo "$lt_cv_objdir" >&6; }
8160: objdir=$lt_cv_objdir
8161:
8162:
8163:
8164:
8165:
8166: cat >>confdefs.h <<_ACEOF
8167: #define LT_OBJDIR "$lt_cv_objdir/"
8168: _ACEOF
8169:
8170:
8171:
8172:
8173: case $host_os in
8174: aix3*)
8175: # AIX sometimes has problems with the GCC collect2 program. For some
8176: # reason, if we set the COLLECT_NAMES environment variable, the problems
8177: # vanish in a puff of smoke.
8178: if test set != "${COLLECT_NAMES+set}"; then
8179: COLLECT_NAMES=
8180: export COLLECT_NAMES
8181: fi
8182: ;;
8183: esac
8184:
8185: # Global variables:
8186: ofile=libtool
8187: can_build_shared=yes
8188:
8189: # All known linkers require a '.a' archive for static linking (except MSVC,
8190: # which needs '.lib').
8191: libext=a
8192:
8193: with_gnu_ld=$lt_cv_prog_gnu_ld
8194:
8195: old_CC=$CC
8196: old_CFLAGS=$CFLAGS
8197:
8198: # Set sane defaults for various variables
8199: test -z "$CC" && CC=cc
8200: test -z "$LTCC" && LTCC=$CC
8201: test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8202: test -z "$LD" && LD=ld
8203: test -z "$ac_objext" && ac_objext=o
8204:
8205: func_cc_basename $compiler
8206: cc_basename=$func_cc_basename_result
8207:
8208:
8209: # Only perform the check for file, if the check method requires it
8210: test -z "$MAGIC_CMD" && MAGIC_CMD=file
8211: case $deplibs_check_method in
8212: file_magic*)
8213: if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8214: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8215: $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8216: if ${lt_cv_path_MAGIC_CMD+:} false; then :
8217: $as_echo_n "(cached) " >&6
8218: else
8219: case $MAGIC_CMD in
8220: [\\/*] | ?:[\\/]*)
8221: lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8222: ;;
8223: *)
8224: lt_save_MAGIC_CMD=$MAGIC_CMD
8225: lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8226: ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8227: for ac_dir in $ac_dummy; do
8228: IFS=$lt_save_ifs
8229: test -z "$ac_dir" && ac_dir=.
8230: if test -f "$ac_dir/${ac_tool_prefix}file"; then
8231: lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8232: if test -n "$file_magic_test_file"; then
8233: case $deplibs_check_method in
8234: "file_magic "*)
8235: file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8236: MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8237: if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8238: $EGREP "$file_magic_regex" > /dev/null; then
8239: :
8240: else
8241: cat <<_LT_EOF 1>&2
8242:
8243: *** Warning: the command libtool uses to detect shared libraries,
8244: *** $file_magic_cmd, produces output that libtool cannot recognize.
8245: *** The result is that libtool may fail to recognize shared libraries
8246: *** as such. This will affect the creation of libtool libraries that
8247: *** depend on shared libraries, but programs linked with such libtool
8248: *** libraries will work regardless of this problem. Nevertheless, you
8249: *** may want to report the problem to your system manager and/or to
8250: *** bug-libtool@gnu.org
8251:
8252: _LT_EOF
8253: fi ;;
8254: esac
8255: fi
8256: break
8257: fi
8258: done
8259: IFS=$lt_save_ifs
8260: MAGIC_CMD=$lt_save_MAGIC_CMD
8261: ;;
8262: esac
8263: fi
8264:
8265: MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8266: if test -n "$MAGIC_CMD"; then
8267: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8268: $as_echo "$MAGIC_CMD" >&6; }
8269: else
8270: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8271: $as_echo "no" >&6; }
8272: fi
8273:
8274:
8275:
8276:
8277:
8278: if test -z "$lt_cv_path_MAGIC_CMD"; then
8279: if test -n "$ac_tool_prefix"; then
8280: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8281: $as_echo_n "checking for file... " >&6; }
8282: if ${lt_cv_path_MAGIC_CMD+:} false; then :
8283: $as_echo_n "(cached) " >&6
8284: else
8285: case $MAGIC_CMD in
8286: [\\/*] | ?:[\\/]*)
8287: lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8288: ;;
8289: *)
8290: lt_save_MAGIC_CMD=$MAGIC_CMD
8291: lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8292: ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8293: for ac_dir in $ac_dummy; do
8294: IFS=$lt_save_ifs
8295: test -z "$ac_dir" && ac_dir=.
8296: if test -f "$ac_dir/file"; then
8297: lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8298: if test -n "$file_magic_test_file"; then
8299: case $deplibs_check_method in
8300: "file_magic "*)
8301: file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8302: MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8303: if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8304: $EGREP "$file_magic_regex" > /dev/null; then
8305: :
8306: else
8307: cat <<_LT_EOF 1>&2
8308:
8309: *** Warning: the command libtool uses to detect shared libraries,
8310: *** $file_magic_cmd, produces output that libtool cannot recognize.
8311: *** The result is that libtool may fail to recognize shared libraries
8312: *** as such. This will affect the creation of libtool libraries that
8313: *** depend on shared libraries, but programs linked with such libtool
8314: *** libraries will work regardless of this problem. Nevertheless, you
8315: *** may want to report the problem to your system manager and/or to
8316: *** bug-libtool@gnu.org
8317:
8318: _LT_EOF
8319: fi ;;
8320: esac
8321: fi
8322: break
8323: fi
8324: done
8325: IFS=$lt_save_ifs
8326: MAGIC_CMD=$lt_save_MAGIC_CMD
8327: ;;
8328: esac
8329: fi
8330:
8331: MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8332: if test -n "$MAGIC_CMD"; then
8333: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8334: $as_echo "$MAGIC_CMD" >&6; }
8335: else
8336: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8337: $as_echo "no" >&6; }
8338: fi
8339:
8340:
8341: else
8342: MAGIC_CMD=:
8343: fi
8344: fi
8345:
8346: fi
8347: ;;
8348: esac
8349:
8350: # Use C for the default configuration in the libtool script
8351:
8352: lt_save_CC=$CC
8353: ac_ext=c
8354: ac_cpp='$CPP $CPPFLAGS'
8355: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8356: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8357: ac_compiler_gnu=$ac_cv_c_compiler_gnu
8358:
8359:
8360: # Source file extension for C test sources.
8361: ac_ext=c
8362:
8363: # Object file extension for compiled C test sources.
8364: objext=o
8365: objext=$objext
8366:
8367: # Code to be used in simple compile tests
8368: lt_simple_compile_test_code="int some_variable = 0;"
8369:
8370: # Code to be used in simple link tests
8371: lt_simple_link_test_code='int main(){return(0);}'
8372:
8373:
8374:
8375:
8376:
8377:
8378:
8379: # If no C compiler was specified, use CC.
8380: LTCC=${LTCC-"$CC"}
8381:
8382: # If no C compiler flags were specified, use CFLAGS.
8383: LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8384:
8385: # Allow CC to be a program name with arguments.
8386: compiler=$CC
8387:
8388: # Save the default compiler, since it gets overwritten when the other
8389: # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8390: compiler_DEFAULT=$CC
8391:
8392: # save warnings/boilerplate of simple test code
8393: ac_outfile=conftest.$ac_objext
8394: echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8395: eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8396: _lt_compiler_boilerplate=`cat conftest.err`
8397: $RM conftest*
8398:
8399: ac_outfile=conftest.$ac_objext
8400: echo "$lt_simple_link_test_code" >conftest.$ac_ext
8401: eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8402: _lt_linker_boilerplate=`cat conftest.err`
8403: $RM -r conftest*
8404:
8405:
8406: if test -n "$compiler"; then
8407:
8408: lt_prog_compiler_no_builtin_flag=
8409:
8410: if test yes = "$GCC"; then
8411: case $cc_basename in
8412: nvcc*)
8413: lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8414: *)
8415: lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8416: esac
8417:
8418: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8419: $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8420: if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8421: $as_echo_n "(cached) " >&6
8422: else
8423: lt_cv_prog_compiler_rtti_exceptions=no
8424: ac_outfile=conftest.$ac_objext
8425: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8426: lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
8427: # Insert the option either (1) after the last *FLAGS variable, or
8428: # (2) before a word containing "conftest.", or (3) at the end.
8429: # Note that $ac_compile itself does not contain backslashes and begins
8430: # with a dollar sign (not a hyphen), so the echo should work correctly.
8431: # The option is referenced via a variable to avoid confusing sed.
8432: lt_compile=`echo "$ac_compile" | $SED \
8433: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8434: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8435: -e 's:$: $lt_compiler_flag:'`
8436: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8437: (eval "$lt_compile" 2>conftest.err)
8438: ac_status=$?
8439: cat conftest.err >&5
8440: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8441: if (exit $ac_status) && test -s "$ac_outfile"; then
8442: # The compiler can only warn and ignore the option if not recognized
8443: # So say no if there are warnings other than the usual output.
8444: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8445: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8446: if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8447: lt_cv_prog_compiler_rtti_exceptions=yes
8448: fi
8449: fi
8450: $RM conftest*
8451:
8452: fi
8453: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8454: $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8455:
8456: if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8457: lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8458: else
8459: :
8460: fi
8461:
8462: fi
8463:
8464:
8465:
8466:
8467:
8468:
8469: lt_prog_compiler_wl=
8470: lt_prog_compiler_pic=
8471: lt_prog_compiler_static=
8472:
8473:
8474: if test yes = "$GCC"; then
8475: lt_prog_compiler_wl='-Wl,'
8476: lt_prog_compiler_static='-static'
8477:
8478: case $host_os in
8479: aix*)
8480: # All AIX code is PIC.
8481: if test ia64 = "$host_cpu"; then
8482: # AIX 5 now supports IA64 processor
8483: lt_prog_compiler_static='-Bstatic'
8484: fi
8485: lt_prog_compiler_pic='-fPIC'
8486: ;;
8487:
8488: amigaos*)
8489: case $host_cpu in
8490: powerpc)
8491: # see comment about AmigaOS4 .so support
8492: lt_prog_compiler_pic='-fPIC'
8493: ;;
8494: m68k)
8495: # FIXME: we need at least 68020 code to build shared libraries, but
8496: # adding the '-m68020' flag to GCC prevents building anything better,
8497: # like '-m68040'.
8498: lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8499: ;;
8500: esac
8501: ;;
8502:
8503: beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8504: # PIC is the default for these OSes.
8505: ;;
8506:
8507: mingw* | cygwin* | pw32* | os2* | cegcc*)
8508: # This hack is so that the source file can tell whether it is being
8509: # built for inclusion in a dll (and should export symbols for example).
8510: # Although the cygwin gcc ignores -fPIC, still need this for old-style
8511: # (--disable-auto-import) libraries
8512: lt_prog_compiler_pic='-DDLL_EXPORT'
8513: case $host_os in
8514: os2*)
8515: lt_prog_compiler_static='$wl-static'
8516: ;;
8517: esac
8518: ;;
8519:
8520: darwin* | rhapsody*)
8521: # PIC is the default on this platform
8522: # Common symbols not allowed in MH_DYLIB files
8523: lt_prog_compiler_pic='-fno-common'
8524: ;;
8525:
8526: haiku*)
8527: # PIC is the default for Haiku.
8528: # The "-static" flag exists, but is broken.
8529: lt_prog_compiler_static=
8530: ;;
8531:
8532: hpux*)
8533: # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8534: # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8535: # sets the default TLS model and affects inlining.
8536: case $host_cpu in
8537: hppa*64*)
8538: # +Z the default
8539: ;;
8540: *)
8541: lt_prog_compiler_pic='-fPIC'
8542: ;;
8543: esac
8544: ;;
8545:
8546: interix[3-9]*)
8547: # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8548: # Instead, we relocate shared libraries at runtime.
8549: ;;
8550:
8551: msdosdjgpp*)
8552: # Just because we use GCC doesn't mean we suddenly get shared libraries
8553: # on systems that don't support them.
8554: lt_prog_compiler_can_build_shared=no
8555: enable_shared=no
8556: ;;
8557:
8558: *nto* | *qnx*)
8559: # QNX uses GNU C++, but need to define -shared option too, otherwise
8560: # it will coredump.
8561: lt_prog_compiler_pic='-fPIC -shared'
8562: ;;
8563:
8564: sysv4*MP*)
8565: if test -d /usr/nec; then
8566: lt_prog_compiler_pic=-Kconform_pic
8567: fi
8568: ;;
8569:
8570: *)
8571: lt_prog_compiler_pic='-fPIC'
8572: ;;
8573: esac
8574:
8575: case $cc_basename in
8576: nvcc*) # Cuda Compiler Driver 2.2
8577: lt_prog_compiler_wl='-Xlinker '
8578: if test -n "$lt_prog_compiler_pic"; then
8579: lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8580: fi
8581: ;;
8582: esac
8583: else
8584: # PORTME Check for flag to pass linker flags through the system compiler.
8585: case $host_os in
8586: aix*)
8587: lt_prog_compiler_wl='-Wl,'
8588: if test ia64 = "$host_cpu"; then
8589: # AIX 5 now supports IA64 processor
8590: lt_prog_compiler_static='-Bstatic'
8591: else
8592: lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8593: fi
8594: ;;
8595:
8596: darwin* | rhapsody*)
8597: # PIC is the default on this platform
8598: # Common symbols not allowed in MH_DYLIB files
8599: lt_prog_compiler_pic='-fno-common'
8600: case $cc_basename in
8601: nagfor*)
8602: # NAG Fortran compiler
8603: lt_prog_compiler_wl='-Wl,-Wl,,'
8604: lt_prog_compiler_pic='-PIC'
8605: lt_prog_compiler_static='-Bstatic'
8606: ;;
8607: esac
8608: ;;
8609:
8610: mingw* | cygwin* | pw32* | os2* | cegcc*)
8611: # This hack is so that the source file can tell whether it is being
8612: # built for inclusion in a dll (and should export symbols for example).
8613: lt_prog_compiler_pic='-DDLL_EXPORT'
8614: case $host_os in
8615: os2*)
8616: lt_prog_compiler_static='$wl-static'
8617: ;;
8618: esac
8619: ;;
8620:
8621: hpux9* | hpux10* | hpux11*)
8622: lt_prog_compiler_wl='-Wl,'
8623: # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8624: # not for PA HP-UX.
8625: case $host_cpu in
8626: hppa*64*|ia64*)
8627: # +Z the default
8628: ;;
8629: *)
8630: lt_prog_compiler_pic='+Z'
8631: ;;
8632: esac
8633: # Is there a better lt_prog_compiler_static that works with the bundled CC?
8634: lt_prog_compiler_static='$wl-a ${wl}archive'
8635: ;;
8636:
8637: irix5* | irix6* | nonstopux*)
8638: lt_prog_compiler_wl='-Wl,'
8639: # PIC (with -KPIC) is the default.
8640: lt_prog_compiler_static='-non_shared'
8641: ;;
8642:
8643: linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8644: case $cc_basename in
8645: # old Intel for x86_64, which still supported -KPIC.
8646: ecc*)
8647: lt_prog_compiler_wl='-Wl,'
8648: lt_prog_compiler_pic='-KPIC'
8649: lt_prog_compiler_static='-static'
8650: ;;
8651: # icc used to be incompatible with GCC.
8652: # ICC 10 doesn't accept -KPIC any more.
8653: icc* | ifort*)
8654: lt_prog_compiler_wl='-Wl,'
8655: lt_prog_compiler_pic='-fPIC'
8656: lt_prog_compiler_static='-static'
8657: ;;
8658: # Lahey Fortran 8.1.
8659: lf95*)
8660: lt_prog_compiler_wl='-Wl,'
8661: lt_prog_compiler_pic='--shared'
8662: lt_prog_compiler_static='--static'
8663: ;;
8664: nagfor*)
8665: # NAG Fortran compiler
8666: lt_prog_compiler_wl='-Wl,-Wl,,'
8667: lt_prog_compiler_pic='-PIC'
8668: lt_prog_compiler_static='-Bstatic'
8669: ;;
8670: tcc*)
8671: # Fabrice Bellard et al's Tiny C Compiler
8672: lt_prog_compiler_wl='-Wl,'
8673: lt_prog_compiler_pic='-fPIC'
8674: lt_prog_compiler_static='-static'
8675: ;;
8676: pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8677: # Portland Group compilers (*not* the Pentium gcc compiler,
8678: # which looks to be a dead project)
8679: lt_prog_compiler_wl='-Wl,'
8680: lt_prog_compiler_pic='-fpic'
8681: lt_prog_compiler_static='-Bstatic'
8682: ;;
8683: ccc*)
8684: lt_prog_compiler_wl='-Wl,'
8685: # All Alpha code is PIC.
8686: lt_prog_compiler_static='-non_shared'
8687: ;;
8688: xl* | bgxl* | bgf* | mpixl*)
8689: # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8690: lt_prog_compiler_wl='-Wl,'
8691: lt_prog_compiler_pic='-qpic'
8692: lt_prog_compiler_static='-qstaticlink'
8693: ;;
8694: *)
8695: case `$CC -V 2>&1 | sed 5q` in
8696: *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8697: # Sun Fortran 8.3 passes all unrecognized flags to the linker
8698: lt_prog_compiler_pic='-KPIC'
8699: lt_prog_compiler_static='-Bstatic'
8700: lt_prog_compiler_wl=''
8701: ;;
8702: *Sun\ F* | *Sun*Fortran*)
8703: lt_prog_compiler_pic='-KPIC'
8704: lt_prog_compiler_static='-Bstatic'
8705: lt_prog_compiler_wl='-Qoption ld '
8706: ;;
8707: *Sun\ C*)
8708: # Sun C 5.9
8709: lt_prog_compiler_pic='-KPIC'
8710: lt_prog_compiler_static='-Bstatic'
8711: lt_prog_compiler_wl='-Wl,'
8712: ;;
8713: *Intel*\ [CF]*Compiler*)
8714: lt_prog_compiler_wl='-Wl,'
8715: lt_prog_compiler_pic='-fPIC'
8716: lt_prog_compiler_static='-static'
8717: ;;
8718: *Portland\ Group*)
8719: lt_prog_compiler_wl='-Wl,'
8720: lt_prog_compiler_pic='-fpic'
8721: lt_prog_compiler_static='-Bstatic'
8722: ;;
8723: esac
8724: ;;
8725: esac
8726: ;;
8727:
8728: newsos6)
8729: lt_prog_compiler_pic='-KPIC'
8730: lt_prog_compiler_static='-Bstatic'
8731: ;;
8732:
8733: *nto* | *qnx*)
8734: # QNX uses GNU C++, but need to define -shared option too, otherwise
8735: # it will coredump.
8736: lt_prog_compiler_pic='-fPIC -shared'
8737: ;;
8738:
8739: osf3* | osf4* | osf5*)
8740: lt_prog_compiler_wl='-Wl,'
8741: # All OSF/1 code is PIC.
8742: lt_prog_compiler_static='-non_shared'
8743: ;;
8744:
8745: rdos*)
8746: lt_prog_compiler_static='-non_shared'
8747: ;;
8748:
8749: solaris*)
8750: lt_prog_compiler_pic='-KPIC'
8751: lt_prog_compiler_static='-Bstatic'
8752: case $cc_basename in
8753: f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8754: lt_prog_compiler_wl='-Qoption ld ';;
8755: *)
8756: lt_prog_compiler_wl='-Wl,';;
8757: esac
8758: ;;
8759:
8760: sunos4*)
8761: lt_prog_compiler_wl='-Qoption ld '
8762: lt_prog_compiler_pic='-PIC'
8763: lt_prog_compiler_static='-Bstatic'
8764: ;;
8765:
8766: sysv4 | sysv4.2uw2* | sysv4.3*)
8767: lt_prog_compiler_wl='-Wl,'
8768: lt_prog_compiler_pic='-KPIC'
8769: lt_prog_compiler_static='-Bstatic'
8770: ;;
8771:
8772: sysv4*MP*)
8773: if test -d /usr/nec; then
8774: lt_prog_compiler_pic='-Kconform_pic'
8775: lt_prog_compiler_static='-Bstatic'
8776: fi
8777: ;;
8778:
8779: sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8780: lt_prog_compiler_wl='-Wl,'
8781: lt_prog_compiler_pic='-KPIC'
8782: lt_prog_compiler_static='-Bstatic'
8783: ;;
8784:
8785: unicos*)
8786: lt_prog_compiler_wl='-Wl,'
8787: lt_prog_compiler_can_build_shared=no
8788: ;;
8789:
8790: uts4*)
8791: lt_prog_compiler_pic='-pic'
8792: lt_prog_compiler_static='-Bstatic'
8793: ;;
8794:
8795: *)
8796: lt_prog_compiler_can_build_shared=no
8797: ;;
8798: esac
8799: fi
8800:
8801: case $host_os in
8802: # For platforms that do not support PIC, -DPIC is meaningless:
8803: *djgpp*)
8804: lt_prog_compiler_pic=
8805: ;;
8806: *)
8807: lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8808: ;;
8809: esac
8810:
8811: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8812: $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8813: if ${lt_cv_prog_compiler_pic+:} false; then :
8814: $as_echo_n "(cached) " >&6
8815: else
8816: lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8817: fi
8818: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8819: $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8820: lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8821:
8822: #
8823: # Check to make sure the PIC flag actually works.
8824: #
8825: if test -n "$lt_prog_compiler_pic"; then
8826: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8827: $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8828: if ${lt_cv_prog_compiler_pic_works+:} false; then :
8829: $as_echo_n "(cached) " >&6
8830: else
8831: lt_cv_prog_compiler_pic_works=no
8832: ac_outfile=conftest.$ac_objext
8833: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8834: lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
8835: # Insert the option either (1) after the last *FLAGS variable, or
8836: # (2) before a word containing "conftest.", or (3) at the end.
8837: # Note that $ac_compile itself does not contain backslashes and begins
8838: # with a dollar sign (not a hyphen), so the echo should work correctly.
8839: # The option is referenced via a variable to avoid confusing sed.
8840: lt_compile=`echo "$ac_compile" | $SED \
8841: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8842: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8843: -e 's:$: $lt_compiler_flag:'`
8844: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8845: (eval "$lt_compile" 2>conftest.err)
8846: ac_status=$?
8847: cat conftest.err >&5
8848: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8849: if (exit $ac_status) && test -s "$ac_outfile"; then
8850: # The compiler can only warn and ignore the option if not recognized
8851: # So say no if there are warnings other than the usual output.
8852: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8853: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8854: if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8855: lt_cv_prog_compiler_pic_works=yes
8856: fi
8857: fi
8858: $RM conftest*
8859:
8860: fi
8861: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8862: $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8863:
8864: if test yes = "$lt_cv_prog_compiler_pic_works"; then
8865: case $lt_prog_compiler_pic in
8866: "" | " "*) ;;
8867: *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8868: esac
8869: else
8870: lt_prog_compiler_pic=
8871: lt_prog_compiler_can_build_shared=no
8872: fi
8873:
8874: fi
8875:
8876:
8877:
8878:
8879:
8880:
8881:
8882:
8883:
8884:
8885:
8886: #
8887: # Check to make sure the static flag actually works.
8888: #
8889: wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8890: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8891: $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8892: if ${lt_cv_prog_compiler_static_works+:} false; then :
8893: $as_echo_n "(cached) " >&6
8894: else
8895: lt_cv_prog_compiler_static_works=no
8896: save_LDFLAGS=$LDFLAGS
8897: LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8898: echo "$lt_simple_link_test_code" > conftest.$ac_ext
8899: if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8900: # The linker can only warn and ignore the option if not recognized
8901: # So say no if there are warnings
8902: if test -s conftest.err; then
8903: # Append any errors to the config.log.
8904: cat conftest.err 1>&5
8905: $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8906: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8907: if diff conftest.exp conftest.er2 >/dev/null; then
8908: lt_cv_prog_compiler_static_works=yes
8909: fi
8910: else
8911: lt_cv_prog_compiler_static_works=yes
8912: fi
8913: fi
8914: $RM -r conftest*
8915: LDFLAGS=$save_LDFLAGS
8916:
8917: fi
8918: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8919: $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8920:
8921: if test yes = "$lt_cv_prog_compiler_static_works"; then
8922: :
8923: else
8924: lt_prog_compiler_static=
8925: fi
8926:
8927:
8928:
8929:
8930:
8931:
8932:
8933: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8934: $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8935: if ${lt_cv_prog_compiler_c_o+:} false; then :
8936: $as_echo_n "(cached) " >&6
8937: else
8938: lt_cv_prog_compiler_c_o=no
8939: $RM -r conftest 2>/dev/null
8940: mkdir conftest
8941: cd conftest
8942: mkdir out
8943: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8944:
8945: lt_compiler_flag="-o out/conftest2.$ac_objext"
8946: # Insert the option either (1) after the last *FLAGS variable, or
8947: # (2) before a word containing "conftest.", or (3) at the end.
8948: # Note that $ac_compile itself does not contain backslashes and begins
8949: # with a dollar sign (not a hyphen), so the echo should work correctly.
8950: lt_compile=`echo "$ac_compile" | $SED \
8951: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8952: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8953: -e 's:$: $lt_compiler_flag:'`
8954: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8955: (eval "$lt_compile" 2>out/conftest.err)
8956: ac_status=$?
8957: cat out/conftest.err >&5
8958: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8959: if (exit $ac_status) && test -s out/conftest2.$ac_objext
8960: then
8961: # The compiler can only warn and ignore the option if not recognized
8962: # So say no if there are warnings
8963: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8964: $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8965: if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8966: lt_cv_prog_compiler_c_o=yes
8967: fi
8968: fi
8969: chmod u+w . 2>&5
8970: $RM conftest*
8971: # SGI C++ compiler will create directory out/ii_files/ for
8972: # template instantiation
8973: test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8974: $RM out/* && rmdir out
8975: cd ..
8976: $RM -r conftest
8977: $RM conftest*
8978:
8979: fi
8980: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8981: $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8982:
8983:
8984:
8985:
8986:
8987:
8988: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8989: $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8990: if ${lt_cv_prog_compiler_c_o+:} false; then :
8991: $as_echo_n "(cached) " >&6
8992: else
8993: lt_cv_prog_compiler_c_o=no
8994: $RM -r conftest 2>/dev/null
8995: mkdir conftest
8996: cd conftest
8997: mkdir out
8998: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8999:
9000: lt_compiler_flag="-o out/conftest2.$ac_objext"
9001: # Insert the option either (1) after the last *FLAGS variable, or
9002: # (2) before a word containing "conftest.", or (3) at the end.
9003: # Note that $ac_compile itself does not contain backslashes and begins
9004: # with a dollar sign (not a hyphen), so the echo should work correctly.
9005: lt_compile=`echo "$ac_compile" | $SED \
9006: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9007: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9008: -e 's:$: $lt_compiler_flag:'`
9009: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9010: (eval "$lt_compile" 2>out/conftest.err)
9011: ac_status=$?
9012: cat out/conftest.err >&5
9013: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9014: if (exit $ac_status) && test -s out/conftest2.$ac_objext
9015: then
9016: # The compiler can only warn and ignore the option if not recognized
9017: # So say no if there are warnings
9018: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9019: $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9020: if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9021: lt_cv_prog_compiler_c_o=yes
9022: fi
9023: fi
9024: chmod u+w . 2>&5
9025: $RM conftest*
9026: # SGI C++ compiler will create directory out/ii_files/ for
9027: # template instantiation
9028: test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9029: $RM out/* && rmdir out
9030: cd ..
9031: $RM -r conftest
9032: $RM conftest*
9033:
9034: fi
9035: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9036: $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9037:
9038:
9039:
9040:
9041: hard_links=nottested
9042: if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9043: # do not overwrite the value of need_locks provided by the user
9044: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9045: $as_echo_n "checking if we can lock with hard links... " >&6; }
9046: hard_links=yes
9047: $RM conftest*
9048: ln conftest.a conftest.b 2>/dev/null && hard_links=no
9049: touch conftest.a
9050: ln conftest.a conftest.b 2>&5 || hard_links=no
9051: ln conftest.a conftest.b 2>/dev/null && hard_links=no
9052: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9053: $as_echo "$hard_links" >&6; }
9054: if test no = "$hard_links"; then
9055: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9056: $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9057: need_locks=warn
9058: fi
9059: else
9060: need_locks=no
9061: fi
9062:
9063:
9064:
9065:
9066:
9067:
9068: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9069: $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9070:
9071: runpath_var=
9072: allow_undefined_flag=
9073: always_export_symbols=no
9074: archive_cmds=
9075: archive_expsym_cmds=
9076: compiler_needs_object=no
9077: enable_shared_with_static_runtimes=no
9078: export_dynamic_flag_spec=
9079: export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9080: hardcode_automatic=no
9081: hardcode_direct=no
9082: hardcode_direct_absolute=no
9083: hardcode_libdir_flag_spec=
9084: hardcode_libdir_separator=
9085: hardcode_minus_L=no
9086: hardcode_shlibpath_var=unsupported
9087: inherit_rpath=no
9088: link_all_deplibs=unknown
9089: module_cmds=
9090: module_expsym_cmds=
9091: old_archive_from_new_cmds=
9092: old_archive_from_expsyms_cmds=
9093: thread_safe_flag_spec=
9094: whole_archive_flag_spec=
9095: # include_expsyms should be a list of space-separated symbols to be *always*
9096: # included in the symbol list
9097: include_expsyms=
9098: # exclude_expsyms can be an extended regexp of symbols to exclude
9099: # it will be wrapped by ' (' and ')$', so one must not match beginning or
9100: # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9101: # as well as any symbol that contains 'd'.
9102: exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9103: # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9104: # platforms (ab)use it in PIC code, but their linkers get confused if
9105: # the symbol is explicitly referenced. Since portable code cannot
9106: # rely on this symbol name, it's probably fine to never include it in
9107: # preloaded symbol tables.
9108: # Exclude shared library initialization/finalization symbols.
9109: extract_expsyms_cmds=
9110:
9111: case $host_os in
9112: cygwin* | mingw* | pw32* | cegcc*)
9113: # FIXME: the MSVC++ port hasn't been tested in a loooong time
9114: # When not using gcc, we currently assume that we are using
9115: # Microsoft Visual C++.
9116: if test yes != "$GCC"; then
9117: with_gnu_ld=no
9118: fi
9119: ;;
9120: interix*)
9121: # we just hope/assume this is gcc and not c89 (= MSVC++)
9122: with_gnu_ld=yes
9123: ;;
9124: openbsd* | bitrig*)
9125: with_gnu_ld=no
9126: ;;
9127: esac
9128:
9129: ld_shlibs=yes
9130:
9131: # On some targets, GNU ld is compatible enough with the native linker
9132: # that we're better off using the native interface for both.
9133: lt_use_gnu_ld_interface=no
9134: if test yes = "$with_gnu_ld"; then
9135: case $host_os in
9136: aix*)
9137: # The AIX port of GNU ld has always aspired to compatibility
9138: # with the native linker. However, as the warning in the GNU ld
9139: # block says, versions before 2.19.5* couldn't really create working
9140: # shared libraries, regardless of the interface used.
9141: case `$LD -v 2>&1` in
9142: *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9143: *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9144: *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9145: *)
9146: lt_use_gnu_ld_interface=yes
9147: ;;
9148: esac
9149: ;;
9150: *)
9151: lt_use_gnu_ld_interface=yes
9152: ;;
9153: esac
9154: fi
9155:
9156: if test yes = "$lt_use_gnu_ld_interface"; then
9157: # If archive_cmds runs LD, not CC, wlarc should be empty
9158: wlarc='$wl'
9159:
9160: # Set some defaults for GNU ld with shared library support. These
9161: # are reset later if shared libraries are not supported. Putting them
9162: # here allows them to be overridden if necessary.
9163: runpath_var=LD_RUN_PATH
9164: hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9165: export_dynamic_flag_spec='$wl--export-dynamic'
9166: # ancient GNU ld didn't support --whole-archive et. al.
9167: if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9168: whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9169: else
9170: whole_archive_flag_spec=
9171: fi
9172: supports_anon_versioning=no
9173: case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
9174: *GNU\ gold*) supports_anon_versioning=yes ;;
9175: *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9176: *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9177: *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9178: *\ 2.11.*) ;; # other 2.11 versions
9179: *) supports_anon_versioning=yes ;;
9180: esac
9181:
9182: # See if GNU ld supports shared libraries.
9183: case $host_os in
9184: aix[3-9]*)
9185: # On AIX/PPC, the GNU linker is very broken
9186: if test ia64 != "$host_cpu"; then
9187: ld_shlibs=no
9188: cat <<_LT_EOF 1>&2
9189:
9190: *** Warning: the GNU linker, at least up to release 2.19, is reported
9191: *** to be unable to reliably create shared libraries on AIX.
9192: *** Therefore, libtool is disabling shared libraries support. If you
9193: *** really care for shared libraries, you may want to install binutils
9194: *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9195: *** You will then need to restart the configuration process.
9196:
9197: _LT_EOF
9198: fi
9199: ;;
9200:
9201: amigaos*)
9202: case $host_cpu in
9203: powerpc)
9204: # see comment about AmigaOS4 .so support
9205: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9206: archive_expsym_cmds=''
9207: ;;
9208: m68k)
9209: 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)'
9210: hardcode_libdir_flag_spec='-L$libdir'
9211: hardcode_minus_L=yes
9212: ;;
9213: esac
9214: ;;
9215:
9216: beos*)
9217: if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9218: allow_undefined_flag=unsupported
9219: # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9220: # support --undefined. This deserves some investigation. FIXME
9221: archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9222: else
9223: ld_shlibs=no
9224: fi
9225: ;;
9226:
9227: cygwin* | mingw* | pw32* | cegcc*)
9228: # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9229: # as there is no search path for DLLs.
9230: hardcode_libdir_flag_spec='-L$libdir'
9231: export_dynamic_flag_spec='$wl--export-all-symbols'
9232: allow_undefined_flag=unsupported
9233: always_export_symbols=no
9234: enable_shared_with_static_runtimes=yes
9235: 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'
9236: exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9237:
9238: if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9239: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9240: # If the export-symbols file already is a .def file, use it as
9241: # is; otherwise, prepend EXPORTS...
9242: archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9243: cp $export_symbols $output_objdir/$soname.def;
9244: else
9245: echo EXPORTS > $output_objdir/$soname.def;
9246: cat $export_symbols >> $output_objdir/$soname.def;
9247: fi~
9248: $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9249: else
9250: ld_shlibs=no
9251: fi
9252: ;;
9253:
9254: haiku*)
9255: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9256: link_all_deplibs=yes
9257: ;;
9258:
9259: os2*)
9260: hardcode_libdir_flag_spec='-L$libdir'
9261: hardcode_minus_L=yes
9262: allow_undefined_flag=unsupported
9263: shrext_cmds=.dll
9264: archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9265: $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9266: $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9267: $ECHO EXPORTS >> $output_objdir/$libname.def~
9268: emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9269: $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9270: emximp -o $lib $output_objdir/$libname.def'
9271: archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9272: $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9273: $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9274: $ECHO EXPORTS >> $output_objdir/$libname.def~
9275: prefix_cmds="$SED"~
9276: if test EXPORTS = "`$SED 1q $export_symbols`"; then
9277: prefix_cmds="$prefix_cmds -e 1d";
9278: fi~
9279: prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9280: cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9281: $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9282: emximp -o $lib $output_objdir/$libname.def'
9283: old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9284: enable_shared_with_static_runtimes=yes
9285: ;;
9286:
9287: interix[3-9]*)
9288: hardcode_direct=no
9289: hardcode_shlibpath_var=no
9290: hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9291: export_dynamic_flag_spec='$wl-E'
9292: # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9293: # Instead, shared libraries are loaded at an image base (0x10000000 by
9294: # default) and relocated if they conflict, which is a slow very memory
9295: # consuming and fragmenting process. To avoid this, we pick a random,
9296: # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9297: # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9298: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9299: 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'
9300: ;;
9301:
9302: gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9303: tmp_diet=no
9304: if test linux-dietlibc = "$host_os"; then
9305: case $cc_basename in
9306: diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9307: esac
9308: fi
9309: if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9310: && test no = "$tmp_diet"
9311: then
9312: tmp_addflag=' $pic_flag'
9313: tmp_sharedflag='-shared'
9314: case $cc_basename,$host_cpu in
9315: pgcc*) # Portland Group C compiler
9316: 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'
9317: tmp_addflag=' $pic_flag'
9318: ;;
9319: pgf77* | pgf90* | pgf95* | pgfortran*)
9320: # Portland Group f77 and f90 compilers
9321: 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'
9322: tmp_addflag=' $pic_flag -Mnomain' ;;
9323: ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9324: tmp_addflag=' -i_dynamic' ;;
9325: efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9326: tmp_addflag=' -i_dynamic -nofor_main' ;;
9327: ifc* | ifort*) # Intel Fortran compiler
9328: tmp_addflag=' -nofor_main' ;;
9329: lf95*) # Lahey Fortran 8.1
9330: whole_archive_flag_spec=
9331: tmp_sharedflag='--shared' ;;
9332: nagfor*) # NAGFOR 5.3
9333: tmp_sharedflag='-Wl,-shared' ;;
9334: xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9335: tmp_sharedflag='-qmkshrobj'
9336: tmp_addflag= ;;
9337: nvcc*) # Cuda Compiler Driver 2.2
9338: 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'
9339: compiler_needs_object=yes
9340: ;;
9341: esac
9342: case `$CC -V 2>&1 | sed 5q` in
9343: *Sun\ C*) # Sun C 5.9
9344: 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'
9345: compiler_needs_object=yes
9346: tmp_sharedflag='-G' ;;
9347: *Sun\ F*) # Sun Fortran 8.3
9348: tmp_sharedflag='-G' ;;
9349: esac
9350: archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9351:
9352: if test yes = "$supports_anon_versioning"; then
9353: archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9354: cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9355: echo "local: *; };" >> $output_objdir/$libname.ver~
9356: $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9357: fi
9358:
9359: case $cc_basename in
9360: tcc*)
9361: export_dynamic_flag_spec='-rdynamic'
9362: ;;
9363: xlf* | bgf* | bgxlf* | mpixlf*)
9364: # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9365: whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9366: hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9367: archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9368: if test yes = "$supports_anon_versioning"; then
9369: archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9370: cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9371: echo "local: *; };" >> $output_objdir/$libname.ver~
9372: $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9373: fi
9374: ;;
9375: esac
9376: else
9377: ld_shlibs=no
9378: fi
9379: ;;
9380:
9381: netbsd*)
9382: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9383: archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9384: wlarc=
9385: else
9386: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9387: archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9388: fi
9389: ;;
9390:
9391: solaris*)
9392: if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9393: ld_shlibs=no
9394: cat <<_LT_EOF 1>&2
9395:
9396: *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9397: *** create shared libraries on Solaris systems. Therefore, libtool
9398: *** is disabling shared libraries support. We urge you to upgrade GNU
9399: *** binutils to release 2.9.1 or newer. Another option is to modify
9400: *** your PATH or compiler configuration so that the native linker is
9401: *** used, and then restart.
9402:
9403: _LT_EOF
9404: elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9405: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9406: archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9407: else
9408: ld_shlibs=no
9409: fi
9410: ;;
9411:
9412: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9413: case `$LD -v 2>&1` in
9414: *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9415: ld_shlibs=no
9416: cat <<_LT_EOF 1>&2
9417:
9418: *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9419: *** reliably create shared libraries on SCO systems. Therefore, libtool
9420: *** is disabling shared libraries support. We urge you to upgrade GNU
9421: *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9422: *** your PATH or compiler configuration so that the native linker is
9423: *** used, and then restart.
9424:
9425: _LT_EOF
9426: ;;
9427: *)
9428: # For security reasons, it is highly recommended that you always
9429: # use absolute paths for naming shared libraries, and exclude the
9430: # DT_RUNPATH tag from executables and libraries. But doing so
9431: # requires that you compile everything twice, which is a pain.
9432: if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9433: hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9434: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9435: archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9436: else
9437: ld_shlibs=no
9438: fi
9439: ;;
9440: esac
9441: ;;
9442:
9443: sunos4*)
9444: archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9445: wlarc=
9446: hardcode_direct=yes
9447: hardcode_shlibpath_var=no
9448: ;;
9449:
9450: *)
9451: if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9452: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9453: archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9454: else
9455: ld_shlibs=no
9456: fi
9457: ;;
9458: esac
9459:
9460: if test no = "$ld_shlibs"; then
9461: runpath_var=
9462: hardcode_libdir_flag_spec=
9463: export_dynamic_flag_spec=
9464: whole_archive_flag_spec=
9465: fi
9466: else
9467: # PORTME fill in a description of your system's linker (not GNU ld)
9468: case $host_os in
9469: aix3*)
9470: allow_undefined_flag=unsupported
9471: always_export_symbols=yes
9472: 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'
9473: # Note: this linker hardcodes the directories in LIBPATH if there
9474: # are no directories specified by -L.
9475: hardcode_minus_L=yes
9476: if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9477: # Neither direct hardcoding nor static linking is supported with a
9478: # broken collect2.
9479: hardcode_direct=unsupported
9480: fi
9481: ;;
9482:
9483: aix[4-9]*)
9484: if test ia64 = "$host_cpu"; then
9485: # On IA64, the linker does run time linking by default, so we don't
9486: # have to do anything special.
9487: aix_use_runtimelinking=no
9488: exp_sym_flag='-Bexport'
9489: no_entry_flag=
9490: else
9491: # If we're using GNU nm, then we don't want the "-C" option.
9492: # -C means demangle to GNU nm, but means don't demangle to AIX nm.
9493: # Without the "-l" option, or with the "-B" option, AIX nm treats
9494: # weak defined symbols like other global defined symbols, whereas
9495: # GNU nm marks them as "W".
9496: # While the 'weak' keyword is ignored in the Export File, we need
9497: # it in the Import File for the 'aix-soname' feature, so we have
9498: # to replace the "-B" option with "-P" for AIX nm.
9499: if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9500: 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'
9501: else
9502: 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 == "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'
9503: fi
9504: aix_use_runtimelinking=no
9505:
9506: # Test if we are trying to use run time linking or normal
9507: # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9508: # have runtime linking enabled, and use it for executables.
9509: # For shared libraries, we enable/disable runtime linking
9510: # depending on the kind of the shared library created -
9511: # when "with_aix_soname,aix_use_runtimelinking" is:
9512: # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
9513: # "aix,yes" lib.so shared, rtl:yes, for executables
9514: # lib.a static archive
9515: # "both,no" lib.so.V(shr.o) shared, rtl:yes
9516: # lib.a(lib.so.V) shared, rtl:no, for executables
9517: # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9518: # lib.a(lib.so.V) shared, rtl:no
9519: # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
9520: # lib.a static archive
9521: case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9522: for ld_flag in $LDFLAGS; do
9523: if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
9524: aix_use_runtimelinking=yes
9525: break
9526: fi
9527: done
9528: if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
9529: # With aix-soname=svr4, we create the lib.so.V shared archives only,
9530: # so we don't have lib.a shared libs to link our executables.
9531: # We have to force runtime linking in this case.
9532: aix_use_runtimelinking=yes
9533: LDFLAGS="$LDFLAGS -Wl,-brtl"
9534: fi
9535: ;;
9536: esac
9537:
9538: exp_sym_flag='-bexport'
9539: no_entry_flag='-bnoentry'
9540: fi
9541:
9542: # When large executables or shared objects are built, AIX ld can
9543: # have problems creating the table of contents. If linking a library
9544: # or program results in "error TOC overflow" add -mminimal-toc to
9545: # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9546: # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9547:
9548: archive_cmds=''
9549: hardcode_direct=yes
9550: hardcode_direct_absolute=yes
9551: hardcode_libdir_separator=':'
9552: link_all_deplibs=yes
9553: file_list_spec='$wl-f,'
9554: case $with_aix_soname,$aix_use_runtimelinking in
9555: aix,*) ;; # traditional, no import file
9556: svr4,* | *,yes) # use import file
9557: # The Import File defines what to hardcode.
9558: hardcode_direct=no
9559: hardcode_direct_absolute=no
9560: ;;
9561: esac
9562:
9563: if test yes = "$GCC"; then
9564: case $host_os in aix4.[012]|aix4.[012].*)
9565: # We only want to do this on AIX 4.2 and lower, the check
9566: # below for broken collect2 doesn't work under 4.3+
9567: collect2name=`$CC -print-prog-name=collect2`
9568: if test -f "$collect2name" &&
9569: strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9570: then
9571: # We have reworked collect2
9572: :
9573: else
9574: # We have old collect2
9575: hardcode_direct=unsupported
9576: # It fails to find uninstalled libraries when the uninstalled
9577: # path is not listed in the libpath. Setting hardcode_minus_L
9578: # to unsupported forces relinking
9579: hardcode_minus_L=yes
9580: hardcode_libdir_flag_spec='-L$libdir'
9581: hardcode_libdir_separator=
9582: fi
9583: ;;
9584: esac
9585: shared_flag='-shared'
9586: if test yes = "$aix_use_runtimelinking"; then
9587: shared_flag="$shared_flag "'$wl-G'
9588: fi
9589: # Need to ensure runtime linking is disabled for the traditional
9590: # shared library, or the linker may eventually find shared libraries
9591: # /with/ Import File - we do not want to mix them.
9592: shared_flag_aix='-shared'
9593: shared_flag_svr4='-shared $wl-G'
9594: else
9595: # not using gcc
9596: if test ia64 = "$host_cpu"; then
9597: # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9598: # chokes on -Wl,-G. The following line is correct:
9599: shared_flag='-G'
9600: else
9601: if test yes = "$aix_use_runtimelinking"; then
9602: shared_flag='$wl-G'
9603: else
9604: shared_flag='$wl-bM:SRE'
9605: fi
9606: shared_flag_aix='$wl-bM:SRE'
9607: shared_flag_svr4='$wl-G'
9608: fi
9609: fi
9610:
9611: export_dynamic_flag_spec='$wl-bexpall'
9612: # It seems that -bexpall does not export symbols beginning with
9613: # underscore (_), so it is better to generate a list of symbols to export.
9614: always_export_symbols=yes
9615: if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
9616: # Warning - without using the other runtime loading flags (-brtl),
9617: # -berok will link without error, but may produce a broken library.
9618: allow_undefined_flag='-berok'
9619: # Determine the default libpath from the value encoded in an
9620: # empty executable.
9621: if test set = "${lt_cv_aix_libpath+set}"; then
9622: aix_libpath=$lt_cv_aix_libpath
9623: else
9624: if ${lt_cv_aix_libpath_+:} false; then :
9625: $as_echo_n "(cached) " >&6
9626: else
9627: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9628: /* end confdefs.h. */
9629:
9630: int
9631: main ()
9632: {
9633:
9634: ;
9635: return 0;
9636: }
9637: _ACEOF
9638: if ac_fn_c_try_link "$LINENO"; then :
9639:
9640: lt_aix_libpath_sed='
9641: /Import File Strings/,/^$/ {
9642: /^0/ {
9643: s/^0 *\([^ ]*\) *$/\1/
9644: p
9645: }
9646: }'
9647: lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9648: # Check for a 64-bit object if we didn't find anything.
9649: if test -z "$lt_cv_aix_libpath_"; then
9650: lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9651: fi
9652: fi
9653: rm -f core conftest.err conftest.$ac_objext \
9654: conftest$ac_exeext conftest.$ac_ext
9655: if test -z "$lt_cv_aix_libpath_"; then
9656: lt_cv_aix_libpath_=/usr/lib:/lib
9657: fi
9658:
9659: fi
9660:
9661: aix_libpath=$lt_cv_aix_libpath_
9662: fi
9663:
9664: hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9665: 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
9666: else
9667: if test ia64 = "$host_cpu"; then
9668: hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
9669: allow_undefined_flag="-z nodefs"
9670: 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"
9671: else
9672: # Determine the default libpath from the value encoded in an
9673: # empty executable.
9674: if test set = "${lt_cv_aix_libpath+set}"; then
9675: aix_libpath=$lt_cv_aix_libpath
9676: else
9677: if ${lt_cv_aix_libpath_+:} false; then :
9678: $as_echo_n "(cached) " >&6
9679: else
9680: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9681: /* end confdefs.h. */
9682:
9683: int
9684: main ()
9685: {
9686:
9687: ;
9688: return 0;
9689: }
9690: _ACEOF
9691: if ac_fn_c_try_link "$LINENO"; then :
9692:
9693: lt_aix_libpath_sed='
9694: /Import File Strings/,/^$/ {
9695: /^0/ {
9696: s/^0 *\([^ ]*\) *$/\1/
9697: p
9698: }
9699: }'
9700: lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9701: # Check for a 64-bit object if we didn't find anything.
9702: if test -z "$lt_cv_aix_libpath_"; then
9703: lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9704: fi
9705: fi
9706: rm -f core conftest.err conftest.$ac_objext \
9707: conftest$ac_exeext conftest.$ac_ext
9708: if test -z "$lt_cv_aix_libpath_"; then
9709: lt_cv_aix_libpath_=/usr/lib:/lib
9710: fi
9711:
9712: fi
9713:
9714: aix_libpath=$lt_cv_aix_libpath_
9715: fi
9716:
9717: hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9718: # Warning - without using the other run time loading flags,
9719: # -berok will link without error, but may produce a broken library.
9720: no_undefined_flag=' $wl-bernotok'
9721: allow_undefined_flag=' $wl-berok'
9722: if test yes = "$with_gnu_ld"; then
9723: # We only use this code for GNU lds that support --whole-archive.
9724: whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
9725: else
9726: # Exported symbols can be pulled into shared objects from archives
9727: whole_archive_flag_spec='$convenience'
9728: fi
9729: archive_cmds_need_lc=yes
9730: archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
9731: # -brtl affects multiple linker settings, -berok does not and is overridden later
9732: compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
9733: if test svr4 != "$with_aix_soname"; then
9734: # This is similar to how AIX traditionally builds its shared libraries.
9735: 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'
9736: fi
9737: if test aix != "$with_aix_soname"; then
9738: 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'
9739: else
9740: # used by -dlpreopen to get the symbols
9741: archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
9742: fi
9743: archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
9744: fi
9745: fi
9746: ;;
9747:
9748: amigaos*)
9749: case $host_cpu in
9750: powerpc)
9751: # see comment about AmigaOS4 .so support
9752: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9753: archive_expsym_cmds=''
9754: ;;
9755: m68k)
9756: 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)'
9757: hardcode_libdir_flag_spec='-L$libdir'
9758: hardcode_minus_L=yes
9759: ;;
9760: esac
9761: ;;
9762:
9763: bsdi[45]*)
9764: export_dynamic_flag_spec=-rdynamic
9765: ;;
9766:
9767: cygwin* | mingw* | pw32* | cegcc*)
9768: # When not using gcc, we currently assume that we are using
9769: # Microsoft Visual C++.
9770: # hardcode_libdir_flag_spec is actually meaningless, as there is
9771: # no search path for DLLs.
9772: case $cc_basename in
9773: cl*)
9774: # Native MSVC
9775: hardcode_libdir_flag_spec=' '
9776: allow_undefined_flag=unsupported
9777: always_export_symbols=yes
9778: file_list_spec='@'
9779: # Tell ltmain to make .lib files, not .a files.
9780: libext=lib
9781: # Tell ltmain to make .dll files, not .so files.
9782: shrext_cmds=.dll
9783: # FIXME: Setting linknames here is a bad hack.
9784: archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
9785: archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9786: cp "$export_symbols" "$output_objdir/$soname.def";
9787: echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
9788: else
9789: $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
9790: fi~
9791: $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9792: linknames='
9793: # The linker will not automatically build a static lib if we build a DLL.
9794: # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9795: enable_shared_with_static_runtimes=yes
9796: exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9797: export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9798: # Don't use ranlib
9799: old_postinstall_cmds='chmod 644 $oldlib'
9800: postlink_cmds='lt_outputfile="@OUTPUT@"~
9801: lt_tool_outputfile="@TOOL_OUTPUT@"~
9802: case $lt_outputfile in
9803: *.exe|*.EXE) ;;
9804: *)
9805: lt_outputfile=$lt_outputfile.exe
9806: lt_tool_outputfile=$lt_tool_outputfile.exe
9807: ;;
9808: esac~
9809: if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
9810: $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9811: $RM "$lt_outputfile.manifest";
9812: fi'
9813: ;;
9814: *)
9815: # Assume MSVC wrapper
9816: hardcode_libdir_flag_spec=' '
9817: allow_undefined_flag=unsupported
9818: # Tell ltmain to make .lib files, not .a files.
9819: libext=lib
9820: # Tell ltmain to make .dll files, not .so files.
9821: shrext_cmds=.dll
9822: # FIXME: Setting linknames here is a bad hack.
9823: archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9824: # The linker will automatically build a .lib file if we build a DLL.
9825: old_archive_from_new_cmds='true'
9826: # FIXME: Should let the user specify the lib program.
9827: old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9828: enable_shared_with_static_runtimes=yes
9829: ;;
9830: esac
9831: ;;
9832:
9833: darwin* | rhapsody*)
9834:
9835:
9836: archive_cmds_need_lc=no
9837: hardcode_direct=no
9838: hardcode_automatic=yes
9839: hardcode_shlibpath_var=unsupported
9840: if test yes = "$lt_cv_ld_force_load"; then
9841: 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\"`'
9842:
9843: else
9844: whole_archive_flag_spec=''
9845: fi
9846: link_all_deplibs=yes
9847: allow_undefined_flag=$_lt_dar_allow_undefined
9848: case $cc_basename in
9849: ifort*|nagfor*) _lt_dar_can_shared=yes ;;
9850: *) _lt_dar_can_shared=$GCC ;;
9851: esac
9852: if test yes = "$_lt_dar_can_shared"; then
9853: output_verbose_link_cmd=func_echo_all
9854: archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
9855: module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
9856: 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"
9857: 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"
9858:
9859: else
9860: ld_shlibs=no
9861: fi
9862:
9863: ;;
9864:
9865: dgux*)
9866: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9867: hardcode_libdir_flag_spec='-L$libdir'
9868: hardcode_shlibpath_var=no
9869: ;;
9870:
9871: # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9872: # support. Future versions do this automatically, but an explicit c++rt0.o
9873: # does not break anything, and helps significantly (at the cost of a little
9874: # extra space).
9875: freebsd2.2*)
9876: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9877: hardcode_libdir_flag_spec='-R$libdir'
9878: hardcode_direct=yes
9879: hardcode_shlibpath_var=no
9880: ;;
9881:
9882: # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9883: freebsd2.*)
9884: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9885: hardcode_direct=yes
9886: hardcode_minus_L=yes
9887: hardcode_shlibpath_var=no
9888: ;;
9889:
9890: # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9891: freebsd* | dragonfly*)
9892: archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9893: hardcode_libdir_flag_spec='-R$libdir'
9894: hardcode_direct=yes
9895: hardcode_shlibpath_var=no
9896: ;;
9897:
9898: hpux9*)
9899: if test yes = "$GCC"; then
9900: 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'
9901: else
9902: 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'
9903: fi
9904: hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9905: hardcode_libdir_separator=:
9906: hardcode_direct=yes
9907:
9908: # hardcode_minus_L: Not really in the search PATH,
9909: # but as the default location of the library.
9910: hardcode_minus_L=yes
9911: export_dynamic_flag_spec='$wl-E'
9912: ;;
9913:
9914: hpux10*)
9915: if test yes,no = "$GCC,$with_gnu_ld"; then
9916: archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9917: else
9918: archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9919: fi
9920: if test no = "$with_gnu_ld"; then
9921: hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9922: hardcode_libdir_separator=:
9923: hardcode_direct=yes
9924: hardcode_direct_absolute=yes
9925: export_dynamic_flag_spec='$wl-E'
9926: # hardcode_minus_L: Not really in the search PATH,
9927: # but as the default location of the library.
9928: hardcode_minus_L=yes
9929: fi
9930: ;;
9931:
9932: hpux11*)
9933: if test yes,no = "$GCC,$with_gnu_ld"; then
9934: case $host_cpu in
9935: hppa*64*)
9936: archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9937: ;;
9938: ia64*)
9939: archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9940: ;;
9941: *)
9942: archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9943: ;;
9944: esac
9945: else
9946: case $host_cpu in
9947: hppa*64*)
9948: archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9949: ;;
9950: ia64*)
9951: archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9952: ;;
9953: *)
9954:
9955: # Older versions of the 11.00 compiler do not understand -b yet
9956: # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9957: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9958: $as_echo_n "checking if $CC understands -b... " >&6; }
9959: if ${lt_cv_prog_compiler__b+:} false; then :
9960: $as_echo_n "(cached) " >&6
9961: else
9962: lt_cv_prog_compiler__b=no
9963: save_LDFLAGS=$LDFLAGS
9964: LDFLAGS="$LDFLAGS -b"
9965: echo "$lt_simple_link_test_code" > conftest.$ac_ext
9966: if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9967: # The linker can only warn and ignore the option if not recognized
9968: # So say no if there are warnings
9969: if test -s conftest.err; then
9970: # Append any errors to the config.log.
9971: cat conftest.err 1>&5
9972: $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9973: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9974: if diff conftest.exp conftest.er2 >/dev/null; then
9975: lt_cv_prog_compiler__b=yes
9976: fi
9977: else
9978: lt_cv_prog_compiler__b=yes
9979: fi
9980: fi
9981: $RM -r conftest*
9982: LDFLAGS=$save_LDFLAGS
9983:
9984: fi
9985: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9986: $as_echo "$lt_cv_prog_compiler__b" >&6; }
9987:
9988: if test yes = "$lt_cv_prog_compiler__b"; then
9989: archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9990: else
9991: archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9992: fi
9993:
9994: ;;
9995: esac
9996: fi
9997: if test no = "$with_gnu_ld"; then
9998: hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9999: hardcode_libdir_separator=:
10000:
10001: case $host_cpu in
10002: hppa*64*|ia64*)
10003: hardcode_direct=no
10004: hardcode_shlibpath_var=no
10005: ;;
10006: *)
10007: hardcode_direct=yes
10008: hardcode_direct_absolute=yes
10009: export_dynamic_flag_spec='$wl-E'
10010:
10011: # hardcode_minus_L: Not really in the search PATH,
10012: # but as the default location of the library.
10013: hardcode_minus_L=yes
10014: ;;
10015: esac
10016: fi
10017: ;;
10018:
10019: irix5* | irix6* | nonstopux*)
10020: if test yes = "$GCC"; then
10021: 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'
10022: # Try to use the -exported_symbol ld option, if it does not
10023: # work, assume that -exports_file does not work either and
10024: # implicitly export all symbols.
10025: # This should be the same for all languages, so no per-tag cache variable.
10026: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10027: $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10028: if ${lt_cv_irix_exported_symbol+:} false; then :
10029: $as_echo_n "(cached) " >&6
10030: else
10031: save_LDFLAGS=$LDFLAGS
10032: LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10033: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10034: /* end confdefs.h. */
10035: int foo (void) { return 0; }
10036: _ACEOF
10037: if ac_fn_c_try_link "$LINENO"; then :
10038: lt_cv_irix_exported_symbol=yes
10039: else
10040: lt_cv_irix_exported_symbol=no
10041: fi
10042: rm -f core conftest.err conftest.$ac_objext \
10043: conftest$ac_exeext conftest.$ac_ext
10044: LDFLAGS=$save_LDFLAGS
10045: fi
10046: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10047: $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10048: if test yes = "$lt_cv_irix_exported_symbol"; then
10049: 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'
10050: fi
10051: else
10052: 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'
10053: 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'
10054: fi
10055: archive_cmds_need_lc='no'
10056: hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10057: hardcode_libdir_separator=:
10058: inherit_rpath=yes
10059: link_all_deplibs=yes
10060: ;;
10061:
10062: linux*)
10063: case $cc_basename in
10064: tcc*)
10065: # Fabrice Bellard et al's Tiny C Compiler
10066: ld_shlibs=yes
10067: archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10068: ;;
10069: esac
10070: ;;
10071:
10072: netbsd*)
10073: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10074: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10075: else
10076: archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10077: fi
10078: hardcode_libdir_flag_spec='-R$libdir'
10079: hardcode_direct=yes
10080: hardcode_shlibpath_var=no
10081: ;;
10082:
10083: newsos6)
10084: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10085: hardcode_direct=yes
10086: hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10087: hardcode_libdir_separator=:
10088: hardcode_shlibpath_var=no
10089: ;;
10090:
10091: *nto* | *qnx*)
10092: ;;
10093:
10094: openbsd* | bitrig*)
10095: if test -f /usr/libexec/ld.so; then
10096: hardcode_direct=yes
10097: hardcode_shlibpath_var=no
10098: hardcode_direct_absolute=yes
10099: if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10100: archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10101: archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10102: hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10103: export_dynamic_flag_spec='$wl-E'
10104: else
10105: archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10106: hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10107: fi
10108: else
10109: ld_shlibs=no
10110: fi
10111: ;;
10112:
10113: os2*)
10114: hardcode_libdir_flag_spec='-L$libdir'
10115: hardcode_minus_L=yes
10116: allow_undefined_flag=unsupported
10117: shrext_cmds=.dll
10118: archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10119: $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10120: $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10121: $ECHO EXPORTS >> $output_objdir/$libname.def~
10122: emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10123: $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10124: emximp -o $lib $output_objdir/$libname.def'
10125: archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10126: $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10127: $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10128: $ECHO EXPORTS >> $output_objdir/$libname.def~
10129: prefix_cmds="$SED"~
10130: if test EXPORTS = "`$SED 1q $export_symbols`"; then
10131: prefix_cmds="$prefix_cmds -e 1d";
10132: fi~
10133: prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10134: cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10135: $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10136: emximp -o $lib $output_objdir/$libname.def'
10137: old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10138: enable_shared_with_static_runtimes=yes
10139: ;;
10140:
10141: osf3*)
10142: if test yes = "$GCC"; then
10143: allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10144: 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'
10145: else
10146: allow_undefined_flag=' -expect_unresolved \*'
10147: 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'
10148: fi
10149: archive_cmds_need_lc='no'
10150: hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10151: hardcode_libdir_separator=:
10152: ;;
10153:
10154: osf4* | osf5*) # as osf3* with the addition of -msym flag
10155: if test yes = "$GCC"; then
10156: allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10157: 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'
10158: hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10159: else
10160: allow_undefined_flag=' -expect_unresolved \*'
10161: 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'
10162: 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~
10163: $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'
10164:
10165: # Both c and cxx compiler support -rpath directly
10166: hardcode_libdir_flag_spec='-rpath $libdir'
10167: fi
10168: archive_cmds_need_lc='no'
10169: hardcode_libdir_separator=:
10170: ;;
10171:
10172: solaris*)
10173: no_undefined_flag=' -z defs'
10174: if test yes = "$GCC"; then
10175: wlarc='$wl'
10176: archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10177: archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10178: $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'
10179: else
10180: case `$CC -V 2>&1` in
10181: *"Compilers 5.0"*)
10182: wlarc=''
10183: archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10184: archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10185: $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10186: ;;
10187: *)
10188: wlarc='$wl'
10189: archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10190: archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10191: $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10192: ;;
10193: esac
10194: fi
10195: hardcode_libdir_flag_spec='-R$libdir'
10196: hardcode_shlibpath_var=no
10197: case $host_os in
10198: solaris2.[0-5] | solaris2.[0-5].*) ;;
10199: *)
10200: # The compiler driver will combine and reorder linker options,
10201: # but understands '-z linker_flag'. GCC discards it without '$wl',
10202: # but is careful enough not to reorder.
10203: # Supported since Solaris 2.6 (maybe 2.5.1?)
10204: if test yes = "$GCC"; then
10205: whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10206: else
10207: whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10208: fi
10209: ;;
10210: esac
10211: link_all_deplibs=yes
10212: ;;
10213:
10214: sunos4*)
10215: if test sequent = "$host_vendor"; then
10216: # Use $CC to link under sequent, because it throws in some extra .o
10217: # files that make .init and .fini sections work.
10218: archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10219: else
10220: archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10221: fi
10222: hardcode_libdir_flag_spec='-L$libdir'
10223: hardcode_direct=yes
10224: hardcode_minus_L=yes
10225: hardcode_shlibpath_var=no
10226: ;;
10227:
10228: sysv4)
10229: case $host_vendor in
10230: sni)
10231: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10232: hardcode_direct=yes # is this really true???
10233: ;;
10234: siemens)
10235: ## LD is ld it makes a PLAMLIB
10236: ## CC just makes a GrossModule.
10237: archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10238: reload_cmds='$CC -r -o $output$reload_objs'
10239: hardcode_direct=no
10240: ;;
10241: motorola)
10242: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10243: hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10244: ;;
10245: esac
10246: runpath_var='LD_RUN_PATH'
10247: hardcode_shlibpath_var=no
10248: ;;
10249:
10250: sysv4.3*)
10251: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10252: hardcode_shlibpath_var=no
10253: export_dynamic_flag_spec='-Bexport'
10254: ;;
10255:
10256: sysv4*MP*)
10257: if test -d /usr/nec; then
10258: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10259: hardcode_shlibpath_var=no
10260: runpath_var=LD_RUN_PATH
10261: hardcode_runpath_var=yes
10262: ld_shlibs=yes
10263: fi
10264: ;;
10265:
10266: sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10267: no_undefined_flag='$wl-z,text'
10268: archive_cmds_need_lc=no
10269: hardcode_shlibpath_var=no
10270: runpath_var='LD_RUN_PATH'
10271:
10272: if test yes = "$GCC"; then
10273: archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10274: archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10275: else
10276: archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10277: archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10278: fi
10279: ;;
10280:
10281: sysv5* | sco3.2v5* | sco5v6*)
10282: # Note: We CANNOT use -z defs as we might desire, because we do not
10283: # link with -lc, and that would cause any symbols used from libc to
10284: # always be unresolved, which means just about no library would
10285: # ever link correctly. If we're not using GNU ld we use -z text
10286: # though, which does catch some bad symbols but isn't as heavy-handed
10287: # as -z defs.
10288: no_undefined_flag='$wl-z,text'
10289: allow_undefined_flag='$wl-z,nodefs'
10290: archive_cmds_need_lc=no
10291: hardcode_shlibpath_var=no
10292: hardcode_libdir_flag_spec='$wl-R,$libdir'
10293: hardcode_libdir_separator=':'
10294: link_all_deplibs=yes
10295: export_dynamic_flag_spec='$wl-Bexport'
10296: runpath_var='LD_RUN_PATH'
10297:
10298: if test yes = "$GCC"; then
10299: archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10300: archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10301: else
10302: archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10303: archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10304: fi
10305: ;;
10306:
10307: uts4*)
10308: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10309: hardcode_libdir_flag_spec='-L$libdir'
10310: hardcode_shlibpath_var=no
10311: ;;
10312:
10313: *)
10314: ld_shlibs=no
10315: ;;
10316: esac
10317:
10318: if test sni = "$host_vendor"; then
10319: case $host in
10320: sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10321: export_dynamic_flag_spec='$wl-Blargedynsym'
10322: ;;
10323: esac
10324: fi
10325: fi
10326:
10327: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10328: $as_echo "$ld_shlibs" >&6; }
10329: test no = "$ld_shlibs" && can_build_shared=no
10330:
10331: with_gnu_ld=$with_gnu_ld
10332:
10333:
10334:
10335:
10336:
10337:
10338:
10339:
10340:
10341:
10342:
10343:
10344:
10345:
10346:
10347: #
10348: # Do we need to explicitly link libc?
10349: #
10350: case "x$archive_cmds_need_lc" in
10351: x|xyes)
10352: # Assume -lc should be added
10353: archive_cmds_need_lc=yes
10354:
10355: if test yes,yes = "$GCC,$enable_shared"; then
10356: case $archive_cmds in
10357: *'~'*)
10358: # FIXME: we may have to deal with multi-command sequences.
10359: ;;
10360: '$CC '*)
10361: # Test whether the compiler implicitly links with -lc since on some
10362: # systems, -lgcc has to come before -lc. If gcc already passes -lc
10363: # to ld, don't add -lc before -lgcc.
10364: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10365: $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10366: if ${lt_cv_archive_cmds_need_lc+:} false; then :
10367: $as_echo_n "(cached) " >&6
10368: else
10369: $RM conftest*
10370: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10371:
10372: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10373: (eval $ac_compile) 2>&5
10374: ac_status=$?
10375: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10376: test $ac_status = 0; } 2>conftest.err; then
10377: soname=conftest
10378: lib=conftest
10379: libobjs=conftest.$ac_objext
10380: deplibs=
10381: wl=$lt_prog_compiler_wl
10382: pic_flag=$lt_prog_compiler_pic
10383: compiler_flags=-v
10384: linker_flags=-v
10385: verstring=
10386: output_objdir=.
10387: libname=conftest
10388: lt_save_allow_undefined_flag=$allow_undefined_flag
10389: allow_undefined_flag=
10390: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10391: (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10392: ac_status=$?
10393: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10394: test $ac_status = 0; }
10395: then
10396: lt_cv_archive_cmds_need_lc=no
10397: else
10398: lt_cv_archive_cmds_need_lc=yes
10399: fi
10400: allow_undefined_flag=$lt_save_allow_undefined_flag
10401: else
10402: cat conftest.err 1>&5
10403: fi
10404: $RM conftest*
10405:
10406: fi
10407: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10408: $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10409: archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10410: ;;
10411: esac
10412: fi
10413: ;;
10414: esac
10415:
10416:
10417:
10418:
10419:
10420:
10421:
10422:
10423:
10424:
10425:
10426:
10427:
10428:
10429:
10430:
10431:
10432:
10433:
10434:
10435:
10436:
10437:
10438:
10439:
10440:
10441:
10442:
10443:
10444:
10445:
10446:
10447:
10448:
10449:
10450:
10451:
10452:
10453:
10454:
10455:
10456:
10457:
10458:
10459:
10460:
10461:
10462:
10463:
10464:
10465:
10466:
10467:
10468:
10469:
10470:
10471:
10472:
10473:
10474:
10475:
10476:
10477:
10478:
10479:
10480:
10481:
10482:
10483:
10484:
10485:
10486:
10487:
10488:
10489:
10490:
10491:
10492:
10493:
10494:
10495:
10496:
10497:
10498:
10499:
10500:
10501:
10502:
10503:
10504:
10505:
10506:
10507:
10508:
10509:
10510:
10511:
10512:
10513:
10514:
10515:
10516:
10517:
10518:
10519:
10520:
10521:
10522:
10523:
10524:
10525:
10526:
10527:
10528:
10529:
10530:
10531:
10532:
10533:
10534:
10535:
10536:
10537:
10538:
10539:
10540:
10541:
10542:
10543:
10544:
10545:
10546:
10547:
10548:
10549:
10550:
10551:
10552:
10553:
10554:
10555:
10556:
10557:
10558:
10559:
10560:
10561:
10562:
10563:
10564:
10565:
10566:
10567: { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10568: $as_echo_n "checking dynamic linker characteristics... " >&6; }
10569:
10570: if test yes = "$GCC"; then
10571: case $host_os in
10572: darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
10573: *) lt_awk_arg='/^libraries:/' ;;
10574: esac
10575: case $host_os in
10576: mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
10577: *) lt_sed_strip_eq='s|=/|/|g' ;;
10578: esac
10579: lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10580: case $lt_search_path_spec in
10581: *\;*)
10582: # if the path contains ";" then we assume it to be the separator
10583: # otherwise default to the standard path separator (i.e. ":") - it is
10584: # assumed that no part of a normal pathname contains ";" but that should
10585: # okay in the real world where ";" in dirpaths is itself problematic.
10586: lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10587: ;;
10588: *)
10589: lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10590: ;;
10591: esac
10592: # Ok, now we have the path, separated by spaces, we can step through it
10593: # and add multilib dir if necessary...
10594: lt_tmp_lt_search_path_spec=
10595: lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10596: # ...but if some path component already ends with the multilib dir we assume
10597: # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
10598: case "$lt_multi_os_dir; $lt_search_path_spec " in
10599: "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
10600: lt_multi_os_dir=
10601: ;;
10602: esac
10603: for lt_sys_path in $lt_search_path_spec; do
10604: if test -d "$lt_sys_path$lt_multi_os_dir"; then
10605: lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
10606: elif test -n "$lt_multi_os_dir"; then
10607: test -d "$lt_sys_path" && \
10608: lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10609: fi
10610: done
10611: lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10612: BEGIN {RS = " "; FS = "/|\n";} {
10613: lt_foo = "";
10614: lt_count = 0;
10615: for (lt_i = NF; lt_i > 0; lt_i--) {
10616: if ($lt_i != "" && $lt_i != ".") {
10617: if ($lt_i == "..") {
10618: lt_count++;
10619: } else {
10620: if (lt_count == 0) {
10621: lt_foo = "/" $lt_i lt_foo;
10622: } else {
10623: lt_count--;
10624: }
10625: }
10626: }
10627: }
10628: if (lt_foo != "") { lt_freq[lt_foo]++; }
10629: if (lt_freq[lt_foo] == 1) { print lt_foo; }
10630: }'`
10631: # AWK program above erroneously prepends '/' to C:/dos/paths
10632: # for these hosts.
10633: case $host_os in
10634: mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10635: $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
10636: esac
10637: sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10638: else
10639: sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10640: fi
10641: library_names_spec=
10642: libname_spec='lib$name'
10643: soname_spec=
10644: shrext_cmds=.so
10645: postinstall_cmds=
10646: postuninstall_cmds=
10647: finish_cmds=
10648: finish_eval=
10649: shlibpath_var=
10650: shlibpath_overrides_runpath=unknown
10651: version_type=none
10652: dynamic_linker="$host_os ld.so"
10653: sys_lib_dlsearch_path_spec="/lib /usr/lib"
10654: need_lib_prefix=unknown
10655: hardcode_into_libs=no
10656:
10657: # when you set need_version to no, make sure it does not cause -set_version
10658: # flags to be left without arguments
10659: need_version=unknown
10660:
10661:
10662:
10663: case $host_os in
10664: aix3*)
10665: version_type=linux # correct to gnu/linux during the next big refactor
10666: library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
10667: shlibpath_var=LIBPATH
10668:
10669: # AIX 3 has no versioning support, so we append a major version to the name.
10670: soname_spec='$libname$release$shared_ext$major'
10671: ;;
10672:
10673: aix[4-9]*)
10674: version_type=linux # correct to gnu/linux during the next big refactor
10675: need_lib_prefix=no
10676: need_version=no
10677: hardcode_into_libs=yes
10678: if test ia64 = "$host_cpu"; then
10679: # AIX 5 supports IA64
10680: library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
10681: shlibpath_var=LD_LIBRARY_PATH
10682: else
10683: # With GCC up to 2.95.x, collect2 would create an import file
10684: # for dependence libraries. The import file would start with
10685: # the line '#! .'. This would cause the generated library to
10686: # depend on '.', always an invalid library. This was fixed in
10687: # development snapshots of GCC prior to 3.0.
10688: case $host_os in
10689: aix4 | aix4.[01] | aix4.[01].*)
10690: if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10691: echo ' yes '
10692: echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
10693: :
10694: else
10695: can_build_shared=no
10696: fi
10697: ;;
10698: esac
10699: # Using Import Files as archive members, it is possible to support
10700: # filename-based versioning of shared library archives on AIX. While
10701: # this would work for both with and without runtime linking, it will
10702: # prevent static linking of such archives. So we do filename-based
10703: # shared library versioning with .so extension only, which is used
10704: # when both runtime linking and shared linking is enabled.
10705: # Unfortunately, runtime linking may impact performance, so we do
10706: # not want this to be the default eventually. Also, we use the
10707: # versioned .so libs for executables only if there is the -brtl
10708: # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
10709: # To allow for filename-based versioning support, we need to create
10710: # libNAME.so.V as an archive file, containing:
10711: # *) an Import File, referring to the versioned filename of the
10712: # archive as well as the shared archive member, telling the
10713: # bitwidth (32 or 64) of that shared object, and providing the
10714: # list of exported symbols of that shared object, eventually
10715: # decorated with the 'weak' keyword
10716: # *) the shared object with the F_LOADONLY flag set, to really avoid
10717: # it being seen by the linker.
10718: # At run time we better use the real file rather than another symlink,
10719: # but for link time we create the symlink libNAME.so -> libNAME.so.V
10720:
10721: case $with_aix_soname,$aix_use_runtimelinking in
10722: # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
10723: # soname into executable. Probably we can add versioning support to
10724: # collect2, so additional links can be useful in future.
10725: aix,yes) # traditional libtool
10726: dynamic_linker='AIX unversionable lib.so'
10727: # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10728: # instead of lib<name>.a to let people know that these are not
10729: # typical AIX shared libraries.
10730: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10731: ;;
10732: aix,no) # traditional AIX only
10733: dynamic_linker='AIX lib.a(lib.so.V)'
10734: # We preserve .a as extension for shared libraries through AIX4.2
10735: # and later when we are not doing run time linking.
10736: library_names_spec='$libname$release.a $libname.a'
10737: soname_spec='$libname$release$shared_ext$major'
10738: ;;
10739: svr4,*) # full svr4 only
10740: dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
10741: library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10742: # We do not specify a path in Import Files, so LIBPATH fires.
10743: shlibpath_overrides_runpath=yes
10744: ;;
10745: *,yes) # both, prefer svr4
10746: dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
10747: library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10748: # unpreferred sharedlib libNAME.a needs extra handling
10749: 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"'
10750: 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"'
10751: # We do not specify a path in Import Files, so LIBPATH fires.
10752: shlibpath_overrides_runpath=yes
10753: ;;
10754: *,no) # both, prefer aix
10755: dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
10756: library_names_spec='$libname$release.a $libname.a'
10757: soname_spec='$libname$release$shared_ext$major'
10758: # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
10759: 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)'
10760: 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"'
10761: ;;
10762: esac
10763: shlibpath_var=LIBPATH
10764: fi
10765: ;;
10766:
10767: amigaos*)
10768: case $host_cpu in
10769: powerpc)
10770: # Since July 2007 AmigaOS4 officially supports .so libraries.
10771: # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10772: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10773: ;;
10774: m68k)
10775: library_names_spec='$libname.ixlibrary $libname.a'
10776: # Create ${libname}_ixlibrary.a entries in /sys/libs.
10777: 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'
10778: ;;
10779: esac
10780: ;;
10781:
10782: beos*)
10783: library_names_spec='$libname$shared_ext'
10784: dynamic_linker="$host_os ld.so"
10785: shlibpath_var=LIBRARY_PATH
10786: ;;
10787:
10788: bsdi[45]*)
10789: version_type=linux # correct to gnu/linux during the next big refactor
10790: need_version=no
10791: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10792: soname_spec='$libname$release$shared_ext$major'
10793: finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10794: shlibpath_var=LD_LIBRARY_PATH
10795: sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10796: sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10797: # the default ld.so.conf also contains /usr/contrib/lib and
10798: # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10799: # libtool to hard-code these into programs
10800: ;;
10801:
10802: cygwin* | mingw* | pw32* | cegcc*)
10803: version_type=windows
10804: shrext_cmds=.dll
10805: need_version=no
10806: need_lib_prefix=no
10807:
10808: case $GCC,$cc_basename in
10809: yes,*)
10810: # gcc
10811: library_names_spec='$libname.dll.a'
10812: # DLL is installed to $(libdir)/../bin by postinstall_cmds
10813: postinstall_cmds='base_file=`basename \$file`~
10814: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10815: dldir=$destdir/`dirname \$dlpath`~
10816: test -d \$dldir || mkdir -p \$dldir~
10817: $install_prog $dir/$dlname \$dldir/$dlname~
10818: chmod a+x \$dldir/$dlname~
10819: if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10820: eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10821: fi'
10822: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10823: dlpath=$dir/\$dldll~
10824: $RM \$dlpath'
10825: shlibpath_overrides_runpath=yes
10826:
10827: case $host_os in
10828: cygwin*)
10829: # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10830: soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10831:
10832: sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10833: ;;
10834: mingw* | cegcc*)
10835: # MinGW DLLs use traditional 'lib' prefix
10836: soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10837: ;;
10838: pw32*)
10839: # pw32 DLLs use 'pw' prefix rather than 'lib'
10840: library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10841: ;;
10842: esac
10843: dynamic_linker='Win32 ld.exe'
10844: ;;
10845:
10846: *,cl*)
10847: # Native MSVC
10848: libname_spec='$name'
10849: soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10850: library_names_spec='$libname.dll.lib'
10851:
10852: case $build_os in
10853: mingw*)
10854: sys_lib_search_path_spec=
10855: lt_save_ifs=$IFS
10856: IFS=';'
10857: for lt_path in $LIB
10858: do
10859: IFS=$lt_save_ifs
10860: # Let DOS variable expansion print the short 8.3 style file name.
10861: lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10862: sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10863: done
10864: IFS=$lt_save_ifs
10865: # Convert to MSYS style.
10866: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10867: ;;
10868: cygwin*)
10869: # Convert to unix form, then to dos form, then back to unix form
10870: # but this time dos style (no spaces!) so that the unix form looks
10871: # like /cygdrive/c/PROGRA~1:/cygdr...
10872: sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10873: sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10874: sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10875: ;;
10876: *)
10877: sys_lib_search_path_spec=$LIB
10878: if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10879: # It is most probably a Windows format PATH.
10880: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10881: else
10882: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10883: fi
10884: # FIXME: find the short name or the path components, as spaces are
10885: # common. (e.g. "Program Files" -> "PROGRA~1")
10886: ;;
10887: esac
10888:
10889: # DLL is installed to $(libdir)/../bin by postinstall_cmds
10890: postinstall_cmds='base_file=`basename \$file`~
10891: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10892: dldir=$destdir/`dirname \$dlpath`~
10893: test -d \$dldir || mkdir -p \$dldir~
10894: $install_prog $dir/$dlname \$dldir/$dlname'
10895: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10896: dlpath=$dir/\$dldll~
10897: $RM \$dlpath'
10898: shlibpath_overrides_runpath=yes
10899: dynamic_linker='Win32 link.exe'
10900: ;;
10901:
10902: *)
10903: # Assume MSVC wrapper
10904: library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
10905: dynamic_linker='Win32 ld.exe'
10906: ;;
10907: esac
10908: # FIXME: first we should search . and the directory the executable is in
10909: shlibpath_var=PATH
10910: ;;
10911:
10912: darwin* | rhapsody*)
10913: dynamic_linker="$host_os dyld"
10914: version_type=darwin
10915: need_lib_prefix=no
10916: need_version=no
10917: library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
10918: soname_spec='$libname$release$major$shared_ext'
10919: shlibpath_overrides_runpath=yes
10920: shlibpath_var=DYLD_LIBRARY_PATH
10921: shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10922:
10923: sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10924: sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10925: ;;
10926:
10927: dgux*)
10928: version_type=linux # correct to gnu/linux during the next big refactor
10929: need_lib_prefix=no
10930: need_version=no
10931: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10932: soname_spec='$libname$release$shared_ext$major'
10933: shlibpath_var=LD_LIBRARY_PATH
10934: ;;
10935:
10936: freebsd* | dragonfly*)
10937: # DragonFly does not have aout. When/if they implement a new
10938: # versioning mechanism, adjust this.
10939: if test -x /usr/bin/objformat; then
10940: objformat=`/usr/bin/objformat`
10941: else
10942: case $host_os in
10943: freebsd[23].*) objformat=aout ;;
10944: *) objformat=elf ;;
10945: esac
10946: fi
10947: version_type=freebsd-$objformat
10948: case $version_type in
10949: freebsd-elf*)
10950: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10951: soname_spec='$libname$release$shared_ext$major'
10952: need_version=no
10953: need_lib_prefix=no
10954: ;;
10955: freebsd-*)
10956: library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10957: need_version=yes
10958: ;;
10959: esac
10960: shlibpath_var=LD_LIBRARY_PATH
10961: case $host_os in
10962: freebsd2.*)
10963: shlibpath_overrides_runpath=yes
10964: ;;
10965: freebsd3.[01]* | freebsdelf3.[01]*)
10966: shlibpath_overrides_runpath=yes
10967: hardcode_into_libs=yes
10968: ;;
10969: freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10970: freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10971: shlibpath_overrides_runpath=no
10972: hardcode_into_libs=yes
10973: ;;
10974: *) # from 4.6 on, and DragonFly
10975: shlibpath_overrides_runpath=yes
10976: hardcode_into_libs=yes
10977: ;;
10978: esac
10979: ;;
10980:
10981: haiku*)
10982: version_type=linux # correct to gnu/linux during the next big refactor
10983: need_lib_prefix=no
10984: need_version=no
10985: dynamic_linker="$host_os runtime_loader"
10986: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10987: soname_spec='$libname$release$shared_ext$major'
10988: shlibpath_var=LIBRARY_PATH
10989: shlibpath_overrides_runpath=no
10990: sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10991: hardcode_into_libs=yes
10992: ;;
10993:
10994: hpux9* | hpux10* | hpux11*)
10995: # Give a soname corresponding to the major version so that dld.sl refuses to
10996: # link against other versions.
10997: version_type=sunos
10998: need_lib_prefix=no
10999: need_version=no
11000: case $host_cpu in
11001: ia64*)
11002: shrext_cmds='.so'
11003: hardcode_into_libs=yes
11004: dynamic_linker="$host_os dld.so"
11005: shlibpath_var=LD_LIBRARY_PATH
11006: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11007: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11008: soname_spec='$libname$release$shared_ext$major'
11009: if test 32 = "$HPUX_IA64_MODE"; then
11010: sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11011: sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11012: else
11013: sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11014: sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11015: fi
11016: ;;
11017: hppa*64*)
11018: shrext_cmds='.sl'
11019: hardcode_into_libs=yes
11020: dynamic_linker="$host_os dld.sl"
11021: shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11022: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11023: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11024: soname_spec='$libname$release$shared_ext$major'
11025: sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11026: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11027: ;;
11028: *)
11029: shrext_cmds='.sl'
11030: dynamic_linker="$host_os dld.sl"
11031: shlibpath_var=SHLIB_PATH
11032: shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11033: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11034: soname_spec='$libname$release$shared_ext$major'
11035: ;;
11036: esac
11037: # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11038: postinstall_cmds='chmod 555 $lib'
11039: # or fails outright, so override atomically:
11040: install_override_mode=555
11041: ;;
11042:
11043: interix[3-9]*)
11044: version_type=linux # correct to gnu/linux during the next big refactor
11045: need_lib_prefix=no
11046: need_version=no
11047: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11048: soname_spec='$libname$release$shared_ext$major'
11049: dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11050: shlibpath_var=LD_LIBRARY_PATH
11051: shlibpath_overrides_runpath=no
11052: hardcode_into_libs=yes
11053: ;;
11054:
11055: irix5* | irix6* | nonstopux*)
11056: case $host_os in
11057: nonstopux*) version_type=nonstopux ;;
11058: *)
11059: if test yes = "$lt_cv_prog_gnu_ld"; then
11060: version_type=linux # correct to gnu/linux during the next big refactor
11061: else
11062: version_type=irix
11063: fi ;;
11064: esac
11065: need_lib_prefix=no
11066: need_version=no
11067: soname_spec='$libname$release$shared_ext$major'
11068: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11069: case $host_os in
11070: irix5* | nonstopux*)
11071: libsuff= shlibsuff=
11072: ;;
11073: *)
11074: case $LD in # libtool.m4 will add one of these switches to LD
11075: *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11076: libsuff= shlibsuff= libmagic=32-bit;;
11077: *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11078: libsuff=32 shlibsuff=N32 libmagic=N32;;
11079: *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11080: libsuff=64 shlibsuff=64 libmagic=64-bit;;
11081: *) libsuff= shlibsuff= libmagic=never-match;;
11082: esac
11083: ;;
11084: esac
11085: shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11086: shlibpath_overrides_runpath=no
11087: sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11088: sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11089: hardcode_into_libs=yes
11090: ;;
11091:
11092: # No shared lib support for Linux oldld, aout, or coff.
11093: linux*oldld* | linux*aout* | linux*coff*)
11094: dynamic_linker=no
11095: ;;
11096:
11097: linux*android*)
11098: version_type=none # Android doesn't support versioned libraries.
11099: need_lib_prefix=no
11100: need_version=no
11101: library_names_spec='$libname$release$shared_ext'
11102: soname_spec='$libname$release$shared_ext'
11103: finish_cmds=
11104: shlibpath_var=LD_LIBRARY_PATH
11105: shlibpath_overrides_runpath=yes
11106:
11107: # This implies no fast_install, which is unacceptable.
11108: # Some rework will be needed to allow for fast_install
11109: # before this can be enabled.
11110: hardcode_into_libs=yes
11111:
11112: dynamic_linker='Android linker'
11113: # Don't embed -rpath directories since the linker doesn't support them.
11114: hardcode_libdir_flag_spec='-L$libdir'
11115: ;;
11116:
11117: # This must be glibc/ELF.
11118: linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11119: version_type=linux # correct to gnu/linux during the next big refactor
11120: need_lib_prefix=no
11121: need_version=no
11122: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11123: soname_spec='$libname$release$shared_ext$major'
11124: finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11125: shlibpath_var=LD_LIBRARY_PATH
11126: shlibpath_overrides_runpath=no
11127:
11128: # Some binutils ld are patched to set DT_RUNPATH
11129: if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11130: $as_echo_n "(cached) " >&6
11131: else
11132: lt_cv_shlibpath_overrides_runpath=no
11133: save_LDFLAGS=$LDFLAGS
11134: save_libdir=$libdir
11135: eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11136: LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11137: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11138: /* end confdefs.h. */
11139:
11140: int
11141: main ()
11142: {
11143:
11144: ;
11145: return 0;
11146: }
11147: _ACEOF
11148: if ac_fn_c_try_link "$LINENO"; then :
11149: if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11150: lt_cv_shlibpath_overrides_runpath=yes
11151: fi
11152: fi
11153: rm -f core conftest.err conftest.$ac_objext \
11154: conftest$ac_exeext conftest.$ac_ext
11155: LDFLAGS=$save_LDFLAGS
11156: libdir=$save_libdir
11157:
11158: fi
11159:
11160: shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11161:
11162: # This implies no fast_install, which is unacceptable.
11163: # Some rework will be needed to allow for fast_install
11164: # before this can be enabled.
11165: hardcode_into_libs=yes
11166:
11167: # Ideally, we could use ldconfig to report *all* directores which are
11168: # searched for libraries, however this is still not possible. Aside from not
11169: # being certain /sbin/ldconfig is available, command
11170: # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11171: # even though it is searched at run-time. Try to do the best guess by
11172: # appending ld.so.conf contents (and includes) to the search path.
11173: if test -f /etc/ld.so.conf; then
11174: 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' ' '`
11175: sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11176: fi
11177:
11178: # We used to test for /lib/ld.so.1 and disable shared libraries on
11179: # powerpc, because MkLinux only supported shared libraries with the
11180: # GNU dynamic linker. Since this was broken with cross compilers,
11181: # most powerpc-linux boxes support dynamic linking these days and
11182: # people can always --disable-shared, the test was removed, and we
11183: # assume the GNU/Linux dynamic linker is in use.
11184: dynamic_linker='GNU/Linux ld.so'
11185: ;;
11186:
11187: netbsd*)
11188: version_type=sunos
11189: need_lib_prefix=no
11190: need_version=no
11191: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11192: library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11193: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11194: dynamic_linker='NetBSD (a.out) ld.so'
11195: else
11196: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11197: soname_spec='$libname$release$shared_ext$major'
11198: dynamic_linker='NetBSD ld.elf_so'
11199: fi
11200: shlibpath_var=LD_LIBRARY_PATH
11201: shlibpath_overrides_runpath=yes
11202: hardcode_into_libs=yes
11203: ;;
11204:
11205: newsos6)
11206: version_type=linux # correct to gnu/linux during the next big refactor
11207: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11208: shlibpath_var=LD_LIBRARY_PATH
11209: shlibpath_overrides_runpath=yes
11210: ;;
11211:
11212: *nto* | *qnx*)
11213: version_type=qnx
11214: need_lib_prefix=no
11215: need_version=no
11216: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11217: soname_spec='$libname$release$shared_ext$major'
11218: shlibpath_var=LD_LIBRARY_PATH
11219: shlibpath_overrides_runpath=no
11220: hardcode_into_libs=yes
11221: dynamic_linker='ldqnx.so'
11222: ;;
11223:
11224: openbsd* | bitrig*)
11225: version_type=sunos
11226: sys_lib_dlsearch_path_spec=/usr/lib
11227: need_lib_prefix=no
11228: if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11229: need_version=no
11230: else
11231: need_version=yes
11232: fi
11233: library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11234: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11235: shlibpath_var=LD_LIBRARY_PATH
11236: shlibpath_overrides_runpath=yes
11237: ;;
11238:
11239: os2*)
11240: libname_spec='$name'
11241: version_type=windows
11242: shrext_cmds=.dll
11243: need_version=no
11244: need_lib_prefix=no
11245: # OS/2 can only load a DLL with a base name of 8 characters or less.
11246: soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11247: v=$($ECHO $release$versuffix | tr -d .-);
11248: n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11249: $ECHO $n$v`$shared_ext'
11250: library_names_spec='${libname}_dll.$libext'
11251: dynamic_linker='OS/2 ld.exe'
11252: shlibpath_var=BEGINLIBPATH
11253: sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11254: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11255: postinstall_cmds='base_file=`basename \$file`~
11256: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11257: dldir=$destdir/`dirname \$dlpath`~
11258: test -d \$dldir || mkdir -p \$dldir~
11259: $install_prog $dir/$dlname \$dldir/$dlname~
11260: chmod a+x \$dldir/$dlname~
11261: if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11262: eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11263: fi'
11264: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11265: dlpath=$dir/\$dldll~
11266: $RM \$dlpath'
11267: ;;
11268:
11269: osf3* | osf4* | osf5*)
11270: version_type=osf
11271: need_lib_prefix=no
11272: need_version=no
11273: soname_spec='$libname$release$shared_ext$major'
11274: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11275: shlibpath_var=LD_LIBRARY_PATH
11276: sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11277: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11278: ;;
11279:
11280: rdos*)
11281: dynamic_linker=no
11282: ;;
11283:
11284: solaris*)
11285: version_type=linux # correct to gnu/linux during the next big refactor
11286: need_lib_prefix=no
11287: need_version=no
11288: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11289: soname_spec='$libname$release$shared_ext$major'
11290: shlibpath_var=LD_LIBRARY_PATH
11291: shlibpath_overrides_runpath=yes
11292: hardcode_into_libs=yes
11293: # ldd complains unless libraries are executable
11294: postinstall_cmds='chmod +x $lib'
11295: ;;
11296:
11297: sunos4*)
11298: version_type=sunos
11299: library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11300: finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11301: shlibpath_var=LD_LIBRARY_PATH
11302: shlibpath_overrides_runpath=yes
11303: if test yes = "$with_gnu_ld"; then
11304: need_lib_prefix=no
11305: fi
11306: need_version=yes
11307: ;;
11308:
11309: sysv4 | sysv4.3*)
11310: version_type=linux # correct to gnu/linux during the next big refactor
11311: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11312: soname_spec='$libname$release$shared_ext$major'
11313: shlibpath_var=LD_LIBRARY_PATH
11314: case $host_vendor in
11315: sni)
11316: shlibpath_overrides_runpath=no
11317: need_lib_prefix=no
11318: runpath_var=LD_RUN_PATH
11319: ;;
11320: siemens)
11321: need_lib_prefix=no
11322: ;;
11323: motorola)
11324: need_lib_prefix=no
11325: need_version=no
11326: shlibpath_overrides_runpath=no
11327: sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11328: ;;
11329: esac
11330: ;;
11331:
11332: sysv4*MP*)
11333: if test -d /usr/nec; then
11334: version_type=linux # correct to gnu/linux during the next big refactor
11335: library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11336: soname_spec='$libname$shared_ext.$major'
11337: shlibpath_var=LD_LIBRARY_PATH
11338: fi
11339: ;;
11340:
11341: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11342: version_type=sco
11343: need_lib_prefix=no
11344: need_version=no
11345: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11346: soname_spec='$libname$release$shared_ext$major'
11347: shlibpath_var=LD_LIBRARY_PATH
11348: shlibpath_overrides_runpath=yes
11349: hardcode_into_libs=yes
11350: if test yes = "$with_gnu_ld"; then
11351: sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11352: else
11353: sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11354: case $host_os in
11355: sco3.2v5*)
11356: sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11357: ;;
11358: esac
11359: fi
11360: sys_lib_dlsearch_path_spec='/usr/lib'
11361: ;;
11362:
11363: tpf*)
11364: # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11365: version_type=linux # correct to gnu/linux during the next big refactor
11366: need_lib_prefix=no
11367: need_version=no
11368: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11369: shlibpath_var=LD_LIBRARY_PATH
11370: shlibpath_overrides_runpath=no
11371: hardcode_into_libs=yes
11372: ;;
11373:
11374: uts4*)
11375: version_type=linux # correct to gnu/linux during the next big refactor
11376: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11377: soname_spec='$libname$release$shared_ext$major'
11378: shlibpath_var=LD_LIBRARY_PATH
11379: ;;
11380:
11381: *)
11382: dynamic_linker=no
11383: ;;
11384: esac
11385: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11386: $as_echo "$dynamic_linker" >&6; }
11387: test no = "$dynamic_linker" && can_build_shared=no
11388:
11389: variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11390: if test yes = "$GCC"; then
11391: variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11392: fi
11393:
11394: if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11395: sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11396: fi
11397:
11398: if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11399: sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11400: fi
11401:
11402: # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11403: configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11404:
11405: # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11406: func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11407:
11408: # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11409: configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
11410:
11411:
11412:
11413:
11414:
11415:
11416:
11417:
11418:
11419:
11420:
11421:
11422:
11423:
11424:
11425:
11426:
11427:
11428:
11429:
11430:
11431:
11432:
11433:
11434:
11435:
11436:
11437:
11438:
11439:
11440:
11441:
11442:
11443:
11444:
11445:
11446:
11447:
11448:
11449:
11450:
11451:
11452:
11453:
11454:
11455:
11456:
11457:
11458:
11459:
11460:
11461:
11462:
11463:
11464:
11465:
11466:
11467:
11468:
11469:
11470:
11471:
11472:
11473:
11474:
11475:
11476:
11477:
11478:
11479:
11480:
11481:
11482:
11483:
11484:
11485:
11486:
11487:
11488:
11489:
11490:
11491:
11492:
11493:
11494:
11495:
11496:
11497:
11498:
11499:
11500:
11501:
11502:
11503:
11504:
11505:
11506:
11507: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11508: $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11509: hardcode_action=
11510: if test -n "$hardcode_libdir_flag_spec" ||
11511: test -n "$runpath_var" ||
11512: test yes = "$hardcode_automatic"; then
11513:
11514: # We can hardcode non-existent directories.
11515: if test no != "$hardcode_direct" &&
11516: # If the only mechanism to avoid hardcoding is shlibpath_var, we
11517: # have to relink, otherwise we might link with an installed library
11518: # when we should be linking with a yet-to-be-installed one
11519: ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11520: test no != "$hardcode_minus_L"; then
11521: # Linking always hardcodes the temporary library directory.
11522: hardcode_action=relink
11523: else
11524: # We can link without hardcoding, and we can hardcode nonexisting dirs.
11525: hardcode_action=immediate
11526: fi
11527: else
11528: # We cannot hardcode anything, or else we can only hardcode existing
11529: # directories.
11530: hardcode_action=unsupported
11531: fi
11532: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11533: $as_echo "$hardcode_action" >&6; }
11534:
11535: if test relink = "$hardcode_action" ||
11536: test yes = "$inherit_rpath"; then
11537: # Fast installation is not supported
11538: enable_fast_install=no
11539: elif test yes = "$shlibpath_overrides_runpath" ||
11540: test no = "$enable_shared"; then
11541: # Fast installation is not necessary
11542: enable_fast_install=needless
11543: fi
11544:
11545:
11546:
11547:
11548:
11549:
11550: if test yes != "$enable_dlopen"; then
11551: enable_dlopen=unknown
11552: enable_dlopen_self=unknown
11553: enable_dlopen_self_static=unknown
11554: else
11555: lt_cv_dlopen=no
11556: lt_cv_dlopen_libs=
11557:
11558: case $host_os in
11559: beos*)
11560: lt_cv_dlopen=load_add_on
11561: lt_cv_dlopen_libs=
11562: lt_cv_dlopen_self=yes
11563: ;;
11564:
11565: mingw* | pw32* | cegcc*)
11566: lt_cv_dlopen=LoadLibrary
11567: lt_cv_dlopen_libs=
11568: ;;
11569:
11570: cygwin*)
11571: lt_cv_dlopen=dlopen
11572: lt_cv_dlopen_libs=
11573: ;;
11574:
11575: darwin*)
11576: # if libdl is installed we need to link against it
11577: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11578: $as_echo_n "checking for dlopen in -ldl... " >&6; }
11579: if ${ac_cv_lib_dl_dlopen+:} false; then :
11580: $as_echo_n "(cached) " >&6
11581: else
11582: ac_check_lib_save_LIBS=$LIBS
11583: LIBS="-ldl $LIBS"
11584: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11585: /* end confdefs.h. */
11586:
11587: /* Override any GCC internal prototype to avoid an error.
11588: Use char because int might match the return type of a GCC
11589: builtin and then its argument prototype would still apply. */
11590: #ifdef __cplusplus
11591: extern "C"
11592: #endif
11593: char dlopen ();
11594: int
11595: main ()
11596: {
11597: return dlopen ();
11598: ;
11599: return 0;
11600: }
11601: _ACEOF
11602: if ac_fn_c_try_link "$LINENO"; then :
11603: ac_cv_lib_dl_dlopen=yes
11604: else
11605: ac_cv_lib_dl_dlopen=no
11606: fi
11607: rm -f core conftest.err conftest.$ac_objext \
11608: conftest$ac_exeext conftest.$ac_ext
11609: LIBS=$ac_check_lib_save_LIBS
11610: fi
11611: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11612: $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11613: if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11614: lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11615: else
11616:
11617: lt_cv_dlopen=dyld
11618: lt_cv_dlopen_libs=
11619: lt_cv_dlopen_self=yes
11620:
11621: fi
11622:
11623: ;;
11624:
11625: tpf*)
11626: # Don't try to run any link tests for TPF. We know it's impossible
11627: # because TPF is a cross-compiler, and we know how we open DSOs.
11628: lt_cv_dlopen=dlopen
11629: lt_cv_dlopen_libs=
11630: lt_cv_dlopen_self=no
11631: ;;
11632:
11633: *)
11634: ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11635: if test "x$ac_cv_func_shl_load" = xyes; then :
11636: lt_cv_dlopen=shl_load
11637: else
11638: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11639: $as_echo_n "checking for shl_load in -ldld... " >&6; }
11640: if ${ac_cv_lib_dld_shl_load+:} false; then :
11641: $as_echo_n "(cached) " >&6
11642: else
11643: ac_check_lib_save_LIBS=$LIBS
11644: LIBS="-ldld $LIBS"
11645: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11646: /* end confdefs.h. */
11647:
11648: /* Override any GCC internal prototype to avoid an error.
11649: Use char because int might match the return type of a GCC
11650: builtin and then its argument prototype would still apply. */
11651: #ifdef __cplusplus
11652: extern "C"
11653: #endif
11654: char shl_load ();
11655: int
11656: main ()
11657: {
11658: return shl_load ();
11659: ;
11660: return 0;
11661: }
11662: _ACEOF
11663: if ac_fn_c_try_link "$LINENO"; then :
11664: ac_cv_lib_dld_shl_load=yes
11665: else
11666: ac_cv_lib_dld_shl_load=no
11667: fi
11668: rm -f core conftest.err conftest.$ac_objext \
11669: conftest$ac_exeext conftest.$ac_ext
11670: LIBS=$ac_check_lib_save_LIBS
11671: fi
11672: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11673: $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11674: if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11675: lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
11676: else
11677: ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11678: if test "x$ac_cv_func_dlopen" = xyes; then :
11679: lt_cv_dlopen=dlopen
11680: else
11681: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11682: $as_echo_n "checking for dlopen in -ldl... " >&6; }
11683: if ${ac_cv_lib_dl_dlopen+:} false; then :
11684: $as_echo_n "(cached) " >&6
11685: else
11686: ac_check_lib_save_LIBS=$LIBS
11687: LIBS="-ldl $LIBS"
11688: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11689: /* end confdefs.h. */
11690:
11691: /* Override any GCC internal prototype to avoid an error.
11692: Use char because int might match the return type of a GCC
11693: builtin and then its argument prototype would still apply. */
11694: #ifdef __cplusplus
11695: extern "C"
11696: #endif
11697: char dlopen ();
11698: int
11699: main ()
11700: {
11701: return dlopen ();
11702: ;
11703: return 0;
11704: }
11705: _ACEOF
11706: if ac_fn_c_try_link "$LINENO"; then :
11707: ac_cv_lib_dl_dlopen=yes
11708: else
11709: ac_cv_lib_dl_dlopen=no
11710: fi
11711: rm -f core conftest.err conftest.$ac_objext \
11712: conftest$ac_exeext conftest.$ac_ext
11713: LIBS=$ac_check_lib_save_LIBS
11714: fi
11715: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11716: $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11717: if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11718: lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11719: else
11720: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11721: $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11722: if ${ac_cv_lib_svld_dlopen+:} false; then :
11723: $as_echo_n "(cached) " >&6
11724: else
11725: ac_check_lib_save_LIBS=$LIBS
11726: LIBS="-lsvld $LIBS"
11727: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11728: /* end confdefs.h. */
11729:
11730: /* Override any GCC internal prototype to avoid an error.
11731: Use char because int might match the return type of a GCC
11732: builtin and then its argument prototype would still apply. */
11733: #ifdef __cplusplus
11734: extern "C"
11735: #endif
11736: char dlopen ();
11737: int
11738: main ()
11739: {
11740: return dlopen ();
11741: ;
11742: return 0;
11743: }
11744: _ACEOF
11745: if ac_fn_c_try_link "$LINENO"; then :
11746: ac_cv_lib_svld_dlopen=yes
11747: else
11748: ac_cv_lib_svld_dlopen=no
11749: fi
11750: rm -f core conftest.err conftest.$ac_objext \
11751: conftest$ac_exeext conftest.$ac_ext
11752: LIBS=$ac_check_lib_save_LIBS
11753: fi
11754: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11755: $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11756: if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11757: lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
11758: else
11759: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11760: $as_echo_n "checking for dld_link in -ldld... " >&6; }
11761: if ${ac_cv_lib_dld_dld_link+:} false; then :
11762: $as_echo_n "(cached) " >&6
11763: else
11764: ac_check_lib_save_LIBS=$LIBS
11765: LIBS="-ldld $LIBS"
11766: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11767: /* end confdefs.h. */
11768:
11769: /* Override any GCC internal prototype to avoid an error.
11770: Use char because int might match the return type of a GCC
11771: builtin and then its argument prototype would still apply. */
11772: #ifdef __cplusplus
11773: extern "C"
11774: #endif
11775: char dld_link ();
11776: int
11777: main ()
11778: {
11779: return dld_link ();
11780: ;
11781: return 0;
11782: }
11783: _ACEOF
11784: if ac_fn_c_try_link "$LINENO"; then :
11785: ac_cv_lib_dld_dld_link=yes
11786: else
11787: ac_cv_lib_dld_dld_link=no
11788: fi
11789: rm -f core conftest.err conftest.$ac_objext \
11790: conftest$ac_exeext conftest.$ac_ext
11791: LIBS=$ac_check_lib_save_LIBS
11792: fi
11793: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11794: $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11795: if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11796: lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
11797: fi
11798:
11799:
11800: fi
11801:
11802:
11803: fi
11804:
11805:
11806: fi
11807:
11808:
11809: fi
11810:
11811:
11812: fi
11813:
11814: ;;
11815: esac
11816:
11817: if test no = "$lt_cv_dlopen"; then
11818: enable_dlopen=no
11819: else
11820: enable_dlopen=yes
11821: fi
11822:
11823: case $lt_cv_dlopen in
11824: dlopen)
11825: save_CPPFLAGS=$CPPFLAGS
11826: test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11827:
11828: save_LDFLAGS=$LDFLAGS
11829: wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11830:
11831: save_LIBS=$LIBS
11832: LIBS="$lt_cv_dlopen_libs $LIBS"
11833:
11834: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11835: $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11836: if ${lt_cv_dlopen_self+:} false; then :
11837: $as_echo_n "(cached) " >&6
11838: else
11839: if test yes = "$cross_compiling"; then :
11840: lt_cv_dlopen_self=cross
11841: else
11842: lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11843: lt_status=$lt_dlunknown
11844: cat > conftest.$ac_ext <<_LT_EOF
11845: #line $LINENO "configure"
11846: #include "confdefs.h"
11847:
11848: #if HAVE_DLFCN_H
11849: #include <dlfcn.h>
11850: #endif
11851:
11852: #include <stdio.h>
11853:
11854: #ifdef RTLD_GLOBAL
11855: # define LT_DLGLOBAL RTLD_GLOBAL
11856: #else
11857: # ifdef DL_GLOBAL
11858: # define LT_DLGLOBAL DL_GLOBAL
11859: # else
11860: # define LT_DLGLOBAL 0
11861: # endif
11862: #endif
11863:
11864: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11865: find out it does not work in some platform. */
11866: #ifndef LT_DLLAZY_OR_NOW
11867: # ifdef RTLD_LAZY
11868: # define LT_DLLAZY_OR_NOW RTLD_LAZY
11869: # else
11870: # ifdef DL_LAZY
11871: # define LT_DLLAZY_OR_NOW DL_LAZY
11872: # else
11873: # ifdef RTLD_NOW
11874: # define LT_DLLAZY_OR_NOW RTLD_NOW
11875: # else
11876: # ifdef DL_NOW
11877: # define LT_DLLAZY_OR_NOW DL_NOW
11878: # else
11879: # define LT_DLLAZY_OR_NOW 0
11880: # endif
11881: # endif
11882: # endif
11883: # endif
11884: #endif
11885:
11886: /* When -fvisibility=hidden is used, assume the code has been annotated
11887: correspondingly for the symbols needed. */
11888: #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11889: int fnord () __attribute__((visibility("default")));
11890: #endif
11891:
11892: int fnord () { return 42; }
11893: int main ()
11894: {
11895: void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11896: int status = $lt_dlunknown;
11897:
11898: if (self)
11899: {
11900: if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11901: else
11902: {
11903: if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11904: else puts (dlerror ());
11905: }
11906: /* dlclose (self); */
11907: }
11908: else
11909: puts (dlerror ());
11910:
11911: return status;
11912: }
11913: _LT_EOF
11914: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11915: (eval $ac_link) 2>&5
11916: ac_status=$?
11917: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11918: test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
11919: (./conftest; exit; ) >&5 2>/dev/null
11920: lt_status=$?
11921: case x$lt_status in
11922: x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11923: x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11924: x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11925: esac
11926: else :
11927: # compilation failed
11928: lt_cv_dlopen_self=no
11929: fi
11930: fi
11931: rm -fr conftest*
11932:
11933:
11934: fi
11935: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11936: $as_echo "$lt_cv_dlopen_self" >&6; }
11937:
11938: if test yes = "$lt_cv_dlopen_self"; then
11939: wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11940: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11941: $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11942: if ${lt_cv_dlopen_self_static+:} false; then :
11943: $as_echo_n "(cached) " >&6
11944: else
11945: if test yes = "$cross_compiling"; then :
11946: lt_cv_dlopen_self_static=cross
11947: else
11948: lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11949: lt_status=$lt_dlunknown
11950: cat > conftest.$ac_ext <<_LT_EOF
11951: #line $LINENO "configure"
11952: #include "confdefs.h"
11953:
11954: #if HAVE_DLFCN_H
11955: #include <dlfcn.h>
11956: #endif
11957:
11958: #include <stdio.h>
11959:
11960: #ifdef RTLD_GLOBAL
11961: # define LT_DLGLOBAL RTLD_GLOBAL
11962: #else
11963: # ifdef DL_GLOBAL
11964: # define LT_DLGLOBAL DL_GLOBAL
11965: # else
11966: # define LT_DLGLOBAL 0
11967: # endif
11968: #endif
11969:
11970: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11971: find out it does not work in some platform. */
11972: #ifndef LT_DLLAZY_OR_NOW
11973: # ifdef RTLD_LAZY
11974: # define LT_DLLAZY_OR_NOW RTLD_LAZY
11975: # else
11976: # ifdef DL_LAZY
11977: # define LT_DLLAZY_OR_NOW DL_LAZY
11978: # else
11979: # ifdef RTLD_NOW
11980: # define LT_DLLAZY_OR_NOW RTLD_NOW
11981: # else
11982: # ifdef DL_NOW
11983: # define LT_DLLAZY_OR_NOW DL_NOW
11984: # else
11985: # define LT_DLLAZY_OR_NOW 0
11986: # endif
11987: # endif
11988: # endif
11989: # endif
11990: #endif
11991:
11992: /* When -fvisibility=hidden is used, assume the code has been annotated
11993: correspondingly for the symbols needed. */
11994: #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11995: int fnord () __attribute__((visibility("default")));
11996: #endif
11997:
11998: int fnord () { return 42; }
11999: int main ()
12000: {
12001: void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12002: int status = $lt_dlunknown;
12003:
12004: if (self)
12005: {
12006: if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12007: else
12008: {
12009: if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12010: else puts (dlerror ());
12011: }
12012: /* dlclose (self); */
12013: }
12014: else
12015: puts (dlerror ());
12016:
12017: return status;
12018: }
12019: _LT_EOF
12020: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12021: (eval $ac_link) 2>&5
12022: ac_status=$?
12023: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12024: test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12025: (./conftest; exit; ) >&5 2>/dev/null
12026: lt_status=$?
12027: case x$lt_status in
12028: x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12029: x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12030: x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12031: esac
12032: else :
12033: # compilation failed
12034: lt_cv_dlopen_self_static=no
12035: fi
12036: fi
12037: rm -fr conftest*
12038:
12039:
12040: fi
12041: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12042: $as_echo "$lt_cv_dlopen_self_static" >&6; }
12043: fi
12044:
12045: CPPFLAGS=$save_CPPFLAGS
12046: LDFLAGS=$save_LDFLAGS
12047: LIBS=$save_LIBS
12048: ;;
12049: esac
12050:
12051: case $lt_cv_dlopen_self in
12052: yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12053: *) enable_dlopen_self=unknown ;;
12054: esac
12055:
12056: case $lt_cv_dlopen_self_static in
12057: yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12058: *) enable_dlopen_self_static=unknown ;;
12059: esac
12060: fi
12061:
12062:
12063:
12064:
12065:
12066:
12067:
12068:
12069:
12070:
12071:
12072:
12073:
12074:
12075:
12076:
12077:
12078: striplib=
12079: old_striplib=
12080: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12081: $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12082: if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12083: test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12084: test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12085: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12086: $as_echo "yes" >&6; }
12087: else
12088: # FIXME - insert some real tests, host_os isn't really good enough
12089: case $host_os in
12090: darwin*)
12091: if test -n "$STRIP"; then
12092: striplib="$STRIP -x"
12093: old_striplib="$STRIP -S"
12094: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12095: $as_echo "yes" >&6; }
12096: else
12097: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12098: $as_echo "no" >&6; }
12099: fi
12100: ;;
12101: *)
12102: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12103: $as_echo "no" >&6; }
12104: ;;
12105: esac
12106: fi
12107:
12108:
12109:
12110:
12111:
12112:
12113:
12114:
12115:
12116:
12117:
12118:
12119: # Report what library types will actually be built
12120: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12121: $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12122: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12123: $as_echo "$can_build_shared" >&6; }
12124:
12125: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12126: $as_echo_n "checking whether to build shared libraries... " >&6; }
12127: test no = "$can_build_shared" && enable_shared=no
12128:
12129: # On AIX, shared libraries and static libraries use the same namespace, and
12130: # are all built from PIC.
12131: case $host_os in
12132: aix3*)
12133: test yes = "$enable_shared" && enable_static=no
12134: if test -n "$RANLIB"; then
12135: archive_cmds="$archive_cmds~\$RANLIB \$lib"
12136: postinstall_cmds='$RANLIB $lib'
12137: fi
12138: ;;
12139:
12140: aix[4-9]*)
12141: if test ia64 != "$host_cpu"; then
12142: case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12143: yes,aix,yes) ;; # shared object as lib.so file only
12144: yes,svr4,*) ;; # shared object as lib.so archive member only
12145: yes,*) enable_static=no ;; # shared object in lib.a archive as well
12146: esac
12147: fi
12148: ;;
12149: esac
12150: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12151: $as_echo "$enable_shared" >&6; }
12152:
12153: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12154: $as_echo_n "checking whether to build static libraries... " >&6; }
12155: # Make sure either enable_shared or enable_static is yes.
12156: test yes = "$enable_shared" || enable_static=yes
12157: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12158: $as_echo "$enable_static" >&6; }
12159:
12160:
12161:
12162:
12163: fi
12164: ac_ext=c
12165: ac_cpp='$CPP $CPPFLAGS'
12166: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12167: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12168: ac_compiler_gnu=$ac_cv_c_compiler_gnu
12169:
12170: CC=$lt_save_CC
12171:
12172:
12173:
12174:
12175:
12176:
12177:
12178:
12179:
12180:
12181:
12182:
12183:
12184:
12185:
12186: ac_config_commands="$ac_config_commands libtool"
12187:
12188:
12189:
12190:
12191: # Only expand once:
12192:
12193:
12194:
12195: ac_ext=c
12196: ac_cpp='$CPP $CPPFLAGS'
12197: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12198: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12199: ac_compiler_gnu=$ac_cv_c_compiler_gnu
12200: if test -n "$ac_tool_prefix"; then
12201: # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
12202: set dummy ${ac_tool_prefix}gcc; ac_word=$2
12203: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12204: $as_echo_n "checking for $ac_word... " >&6; }
12205: if ${ac_cv_prog_CC+:} false; then :
12206: $as_echo_n "(cached) " >&6
12207: else
12208: if test -n "$CC"; then
12209: ac_cv_prog_CC="$CC" # Let the user override the test.
12210: else
12211: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12212: for as_dir in $PATH
12213: do
12214: IFS=$as_save_IFS
12215: test -z "$as_dir" && as_dir=.
12216: for ac_exec_ext in '' $ac_executable_extensions; do
12217: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12218: ac_cv_prog_CC="${ac_tool_prefix}gcc"
12219: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12220: break 2
12221: fi
12222: done
12223: done
12224: IFS=$as_save_IFS
12225:
12226: fi
12227: fi
12228: CC=$ac_cv_prog_CC
12229: if test -n "$CC"; then
12230: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12231: $as_echo "$CC" >&6; }
12232: else
12233: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12234: $as_echo "no" >&6; }
12235: fi
12236:
12237:
12238: fi
12239: if test -z "$ac_cv_prog_CC"; then
12240: ac_ct_CC=$CC
12241: # Extract the first word of "gcc", so it can be a program name with args.
12242: set dummy gcc; ac_word=$2
12243: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12244: $as_echo_n "checking for $ac_word... " >&6; }
12245: if ${ac_cv_prog_ac_ct_CC+:} false; then :
12246: $as_echo_n "(cached) " >&6
12247: else
12248: if test -n "$ac_ct_CC"; then
12249: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12250: else
12251: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12252: for as_dir in $PATH
12253: do
12254: IFS=$as_save_IFS
12255: test -z "$as_dir" && as_dir=.
12256: for ac_exec_ext in '' $ac_executable_extensions; do
12257: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12258: ac_cv_prog_ac_ct_CC="gcc"
12259: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12260: break 2
12261: fi
12262: done
12263: done
12264: IFS=$as_save_IFS
12265:
12266: fi
12267: fi
12268: ac_ct_CC=$ac_cv_prog_ac_ct_CC
12269: if test -n "$ac_ct_CC"; then
12270: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
12271: $as_echo "$ac_ct_CC" >&6; }
12272: else
12273: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12274: $as_echo "no" >&6; }
12275: fi
12276:
12277: if test "x$ac_ct_CC" = x; then
12278: CC=""
12279: else
12280: case $cross_compiling:$ac_tool_warned in
12281: yes:)
12282: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12283: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12284: ac_tool_warned=yes ;;
12285: esac
12286: CC=$ac_ct_CC
12287: fi
12288: else
12289: CC="$ac_cv_prog_CC"
12290: fi
12291:
12292: if test -z "$CC"; then
12293: if test -n "$ac_tool_prefix"; then
12294: # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
12295: set dummy ${ac_tool_prefix}cc; ac_word=$2
12296: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12297: $as_echo_n "checking for $ac_word... " >&6; }
12298: if ${ac_cv_prog_CC+:} false; then :
12299: $as_echo_n "(cached) " >&6
12300: else
12301: if test -n "$CC"; then
12302: ac_cv_prog_CC="$CC" # Let the user override the test.
12303: else
12304: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12305: for as_dir in $PATH
12306: do
12307: IFS=$as_save_IFS
12308: test -z "$as_dir" && as_dir=.
12309: for ac_exec_ext in '' $ac_executable_extensions; do
12310: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12311: ac_cv_prog_CC="${ac_tool_prefix}cc"
12312: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12313: break 2
12314: fi
12315: done
12316: done
12317: IFS=$as_save_IFS
12318:
12319: fi
12320: fi
12321: CC=$ac_cv_prog_CC
12322: if test -n "$CC"; then
12323: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12324: $as_echo "$CC" >&6; }
12325: else
12326: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12327: $as_echo "no" >&6; }
12328: fi
12329:
12330:
12331: fi
12332: fi
12333: if test -z "$CC"; then
12334: # Extract the first word of "cc", so it can be a program name with args.
12335: set dummy cc; ac_word=$2
12336: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12337: $as_echo_n "checking for $ac_word... " >&6; }
12338: if ${ac_cv_prog_CC+:} false; then :
12339: $as_echo_n "(cached) " >&6
12340: else
12341: if test -n "$CC"; then
12342: ac_cv_prog_CC="$CC" # Let the user override the test.
12343: else
12344: ac_prog_rejected=no
12345: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12346: for as_dir in $PATH
12347: do
12348: IFS=$as_save_IFS
12349: test -z "$as_dir" && as_dir=.
12350: for ac_exec_ext in '' $ac_executable_extensions; do
12351: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12352: if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
12353: ac_prog_rejected=yes
12354: continue
12355: fi
12356: ac_cv_prog_CC="cc"
12357: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12358: break 2
12359: fi
12360: done
12361: done
12362: IFS=$as_save_IFS
12363:
12364: if test $ac_prog_rejected = yes; then
12365: # We found a bogon in the path, so make sure we never use it.
12366: set dummy $ac_cv_prog_CC
12367: shift
12368: if test $# != 0; then
12369: # We chose a different compiler from the bogus one.
12370: # However, it has the same basename, so the bogon will be chosen
12371: # first if we set CC to just the basename; use the full file name.
12372: shift
12373: ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
12374: fi
12375: fi
12376: fi
12377: fi
12378: CC=$ac_cv_prog_CC
12379: if test -n "$CC"; then
12380: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12381: $as_echo "$CC" >&6; }
12382: else
12383: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12384: $as_echo "no" >&6; }
12385: fi
12386:
12387:
12388: fi
12389: if test -z "$CC"; then
12390: if test -n "$ac_tool_prefix"; then
12391: for ac_prog in cl.exe
12392: do
12393: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12394: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12395: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12396: $as_echo_n "checking for $ac_word... " >&6; }
12397: if ${ac_cv_prog_CC+:} false; then :
12398: $as_echo_n "(cached) " >&6
12399: else
12400: if test -n "$CC"; then
12401: ac_cv_prog_CC="$CC" # Let the user override the test.
12402: else
12403: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12404: for as_dir in $PATH
12405: do
12406: IFS=$as_save_IFS
12407: test -z "$as_dir" && as_dir=.
12408: for ac_exec_ext in '' $ac_executable_extensions; do
12409: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12410: ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
12411: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12412: break 2
12413: fi
12414: done
12415: done
12416: IFS=$as_save_IFS
12417:
12418: fi
12419: fi
12420: CC=$ac_cv_prog_CC
12421: if test -n "$CC"; then
12422: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12423: $as_echo "$CC" >&6; }
12424: else
12425: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12426: $as_echo "no" >&6; }
12427: fi
12428:
12429:
12430: test -n "$CC" && break
12431: done
12432: fi
12433: if test -z "$CC"; then
12434: ac_ct_CC=$CC
12435: for ac_prog in cl.exe
12436: do
12437: # Extract the first word of "$ac_prog", so it can be a program name with args.
12438: set dummy $ac_prog; ac_word=$2
12439: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12440: $as_echo_n "checking for $ac_word... " >&6; }
12441: if ${ac_cv_prog_ac_ct_CC+:} false; then :
12442: $as_echo_n "(cached) " >&6
12443: else
12444: if test -n "$ac_ct_CC"; then
12445: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12446: else
12447: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12448: for as_dir in $PATH
12449: do
12450: IFS=$as_save_IFS
12451: test -z "$as_dir" && as_dir=.
12452: for ac_exec_ext in '' $ac_executable_extensions; do
12453: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12454: ac_cv_prog_ac_ct_CC="$ac_prog"
12455: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12456: break 2
12457: fi
12458: done
12459: done
12460: IFS=$as_save_IFS
12461:
12462: fi
12463: fi
12464: ac_ct_CC=$ac_cv_prog_ac_ct_CC
12465: if test -n "$ac_ct_CC"; then
12466: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
12467: $as_echo "$ac_ct_CC" >&6; }
12468: else
12469: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12470: $as_echo "no" >&6; }
12471: fi
12472:
12473:
12474: test -n "$ac_ct_CC" && break
12475: done
12476:
12477: if test "x$ac_ct_CC" = x; then
12478: CC=""
12479: else
12480: case $cross_compiling:$ac_tool_warned in
12481: yes:)
12482: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12483: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12484: ac_tool_warned=yes ;;
12485: esac
12486: CC=$ac_ct_CC
12487: fi
12488: fi
12489:
12490: fi
12491:
12492:
12493: test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12494: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12495: as_fn_error $? "no acceptable C compiler found in \$PATH
12496: See \`config.log' for more details" "$LINENO" 5; }
12497:
12498: # Provide some information about the compiler.
12499: $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
12500: set X $ac_compile
12501: ac_compiler=$2
12502: for ac_option in --version -v -V -qversion; do
12503: { { ac_try="$ac_compiler $ac_option >&5"
12504: case "(($ac_try" in
12505: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12506: *) ac_try_echo=$ac_try;;
12507: esac
12508: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12509: $as_echo "$ac_try_echo"; } >&5
12510: (eval "$ac_compiler $ac_option >&5") 2>conftest.err
12511: ac_status=$?
12512: if test -s conftest.err; then
12513: sed '10a\
12514: ... rest of stderr output deleted ...
12515: 10q' conftest.err >conftest.er1
12516: cat conftest.er1 >&5
12517: fi
12518: rm -f conftest.er1 conftest.err
12519: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12520: test $ac_status = 0; }
12521: done
12522:
12523: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
12524: $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
12525: if ${ac_cv_c_compiler_gnu+:} false; then :
12526: $as_echo_n "(cached) " >&6
12527: else
12528: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12529: /* end confdefs.h. */
12530:
12531: int
12532: main ()
12533: {
12534: #ifndef __GNUC__
12535: choke me
12536: #endif
12537:
12538: ;
12539: return 0;
12540: }
12541: _ACEOF
12542: if ac_fn_c_try_compile "$LINENO"; then :
12543: ac_compiler_gnu=yes
12544: else
12545: ac_compiler_gnu=no
12546: fi
12547: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12548: ac_cv_c_compiler_gnu=$ac_compiler_gnu
12549:
12550: fi
12551: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
12552: $as_echo "$ac_cv_c_compiler_gnu" >&6; }
12553: if test $ac_compiler_gnu = yes; then
12554: GCC=yes
12555: else
12556: GCC=
12557: fi
12558: ac_test_CFLAGS=${CFLAGS+set}
12559: ac_save_CFLAGS=$CFLAGS
12560: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
12561: $as_echo_n "checking whether $CC accepts -g... " >&6; }
12562: if ${ac_cv_prog_cc_g+:} false; then :
12563: $as_echo_n "(cached) " >&6
12564: else
12565: ac_save_c_werror_flag=$ac_c_werror_flag
12566: ac_c_werror_flag=yes
12567: ac_cv_prog_cc_g=no
12568: CFLAGS="-g"
12569: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12570: /* end confdefs.h. */
12571:
12572: int
12573: main ()
12574: {
12575:
12576: ;
12577: return 0;
12578: }
12579: _ACEOF
12580: if ac_fn_c_try_compile "$LINENO"; then :
12581: ac_cv_prog_cc_g=yes
12582: else
12583: CFLAGS=""
12584: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12585: /* end confdefs.h. */
12586:
12587: int
12588: main ()
12589: {
12590:
12591: ;
12592: return 0;
12593: }
12594: _ACEOF
12595: if ac_fn_c_try_compile "$LINENO"; then :
12596:
12597: else
12598: ac_c_werror_flag=$ac_save_c_werror_flag
12599: CFLAGS="-g"
12600: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12601: /* end confdefs.h. */
12602:
12603: int
12604: main ()
12605: {
12606:
12607: ;
12608: return 0;
12609: }
12610: _ACEOF
12611: if ac_fn_c_try_compile "$LINENO"; then :
12612: ac_cv_prog_cc_g=yes
12613: fi
12614: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12615: fi
12616: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12617: fi
12618: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12619: ac_c_werror_flag=$ac_save_c_werror_flag
12620: fi
12621: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
12622: $as_echo "$ac_cv_prog_cc_g" >&6; }
12623: if test "$ac_test_CFLAGS" = set; then
12624: CFLAGS=$ac_save_CFLAGS
12625: elif test $ac_cv_prog_cc_g = yes; then
12626: if test "$GCC" = yes; then
12627: CFLAGS="-g -O2"
12628: else
12629: CFLAGS="-g"
12630: fi
12631: else
12632: if test "$GCC" = yes; then
12633: CFLAGS="-O2"
12634: else
12635: CFLAGS=
12636: fi
12637: fi
12638: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
12639: $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
12640: if ${ac_cv_prog_cc_c89+:} false; then :
12641: $as_echo_n "(cached) " >&6
12642: else
12643: ac_cv_prog_cc_c89=no
12644: ac_save_CC=$CC
12645: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12646: /* end confdefs.h. */
12647: #include <stdarg.h>
12648: #include <stdio.h>
12649: struct stat;
12650: /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
12651: struct buf { int x; };
12652: FILE * (*rcsopen) (struct buf *, struct stat *, int);
12653: static char *e (p, i)
12654: char **p;
12655: int i;
12656: {
12657: return p[i];
12658: }
12659: static char *f (char * (*g) (char **, int), char **p, ...)
12660: {
12661: char *s;
12662: va_list v;
12663: va_start (v,p);
12664: s = g (p, va_arg (v,int));
12665: va_end (v);
12666: return s;
12667: }
12668:
12669: /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
12670: function prototypes and stuff, but not '\xHH' hex character constants.
12671: These don't provoke an error unfortunately, instead are silently treated
12672: as 'x'. The following induces an error, until -std is added to get
12673: proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
12674: array size at least. It's necessary to write '\x00'==0 to get something
12675: that's true only with -std. */
12676: int osf4_cc_array ['\x00' == 0 ? 1 : -1];
12677:
12678: /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
12679: inside strings and character constants. */
12680: #define FOO(x) 'x'
12681: int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
12682:
12683: int test (int i, double x);
12684: struct s1 {int (*f) (int a);};
12685: struct s2 {int (*f) (double a);};
12686: int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
12687: int argc;
12688: char **argv;
12689: int
12690: main ()
12691: {
12692: return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
12693: ;
12694: return 0;
12695: }
12696: _ACEOF
12697: for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
12698: -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
12699: do
12700: CC="$ac_save_CC $ac_arg"
12701: if ac_fn_c_try_compile "$LINENO"; then :
12702: ac_cv_prog_cc_c89=$ac_arg
12703: fi
12704: rm -f core conftest.err conftest.$ac_objext
12705: test "x$ac_cv_prog_cc_c89" != "xno" && break
12706: done
12707: rm -f conftest.$ac_ext
12708: CC=$ac_save_CC
12709:
12710: fi
12711: # AC_CACHE_VAL
12712: case "x$ac_cv_prog_cc_c89" in
12713: x)
12714: { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
12715: $as_echo "none needed" >&6; } ;;
12716: xno)
12717: { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
12718: $as_echo "unsupported" >&6; } ;;
12719: *)
12720: CC="$CC $ac_cv_prog_cc_c89"
12721: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
12722: $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
12723: esac
12724: if test "x$ac_cv_prog_cc_c89" != xno; then :
12725:
12726: fi
12727:
12728: ac_ext=c
12729: ac_cpp='$CPP $CPPFLAGS'
12730: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12731: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12732: ac_compiler_gnu=$ac_cv_c_compiler_gnu
12733:
12734: ac_ext=c
12735: ac_cpp='$CPP $CPPFLAGS'
12736: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12737: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12738: ac_compiler_gnu=$ac_cv_c_compiler_gnu
12739: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
12740: $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
12741: if ${am_cv_prog_cc_c_o+:} false; then :
12742: $as_echo_n "(cached) " >&6
12743: else
12744: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12745: /* end confdefs.h. */
12746:
12747: int
12748: main ()
12749: {
12750:
12751: ;
12752: return 0;
12753: }
12754: _ACEOF
12755: # Make sure it works both with $CC and with simple cc.
12756: # Following AC_PROG_CC_C_O, we do the test twice because some
12757: # compilers refuse to overwrite an existing .o file with -o,
12758: # though they will create one.
12759: am_cv_prog_cc_c_o=yes
12760: for am_i in 1 2; do
12761: if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
12762: ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
12763: ac_status=$?
12764: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12765: (exit $ac_status); } \
12766: && test -f conftest2.$ac_objext; then
12767: : OK
12768: else
12769: am_cv_prog_cc_c_o=no
12770: break
12771: fi
12772: done
12773: rm -f core conftest*
12774: unset am_i
12775: fi
12776: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
12777: $as_echo "$am_cv_prog_cc_c_o" >&6; }
12778: if test "$am_cv_prog_cc_c_o" != yes; then
12779: # Losing compiler, so override with the script.
12780: # FIXME: It is wrong to rewrite CC.
12781: # But if we don't then we get into trouble of one sort or another.
12782: # A longer-term fix would be to have automake use am__CC in this case,
12783: # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
12784: CC="$am_aux_dir/compile $CC"
12785: fi
12786: ac_ext=c
12787: ac_cpp='$CPP $CPPFLAGS'
12788: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12789: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12790: ac_compiler_gnu=$ac_cv_c_compiler_gnu
12791:
12792:
12793: depcc="$CC" am_compiler_list=
12794:
12795: { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
12796: $as_echo_n "checking dependency style of $depcc... " >&6; }
12797: if ${am_cv_CC_dependencies_compiler_type+:} false; then :
12798: $as_echo_n "(cached) " >&6
12799: else
12800: if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12801: # We make a subdir and do the tests there. Otherwise we can end up
12802: # making bogus files that we don't know about and never remove. For
12803: # instance it was reported that on HP-UX the gcc test will end up
12804: # making a dummy file named 'D' -- because '-MD' means "put the output
12805: # in D".
12806: rm -rf conftest.dir
12807: mkdir conftest.dir
12808: # Copy depcomp to subdir because otherwise we won't find it if we're
12809: # using a relative directory.
12810: cp "$am_depcomp" conftest.dir
12811: cd conftest.dir
12812: # We will build objects and dependencies in a subdirectory because
12813: # it helps to detect inapplicable dependency modes. For instance
12814: # both Tru64's cc and ICC support -MD to output dependencies as a
12815: # side effect of compilation, but ICC will put the dependencies in
12816: # the current directory while Tru64 will put them in the object
12817: # directory.
12818: mkdir sub
12819:
12820: am_cv_CC_dependencies_compiler_type=none
12821: if test "$am_compiler_list" = ""; then
12822: am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12823: fi
12824: am__universal=false
12825: case " $depcc " in #(
12826: *\ -arch\ *\ -arch\ *) am__universal=true ;;
12827: esac
12828:
12829: for depmode in $am_compiler_list; do
12830: # Setup a source with many dependencies, because some compilers
12831: # like to wrap large dependency lists on column 80 (with \), and
12832: # we should not choose a depcomp mode which is confused by this.
12833: #
12834: # We need to recreate these files for each test, as the compiler may
12835: # overwrite some of them when testing with obscure command lines.
12836: # This happens at least with the AIX C compiler.
12837: : > sub/conftest.c
12838: for i in 1 2 3 4 5 6; do
12839: echo '#include "conftst'$i'.h"' >> sub/conftest.c
12840: # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
12841: # Solaris 10 /bin/sh.
12842: echo '/* dummy */' > sub/conftst$i.h
12843: done
12844: echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12845:
12846: # We check with '-c' and '-o' for the sake of the "dashmstdout"
12847: # mode. It turns out that the SunPro C++ compiler does not properly
12848: # handle '-M -o', and we need to detect this. Also, some Intel
12849: # versions had trouble with output in subdirs.
12850: am__obj=sub/conftest.${OBJEXT-o}
12851: am__minus_obj="-o $am__obj"
12852: case $depmode in
12853: gcc)
12854: # This depmode causes a compiler race in universal mode.
12855: test "$am__universal" = false || continue
12856: ;;
12857: nosideeffect)
12858: # After this tag, mechanisms are not by side-effect, so they'll
12859: # only be used when explicitly requested.
12860: if test "x$enable_dependency_tracking" = xyes; then
12861: continue
12862: else
12863: break
12864: fi
12865: ;;
12866: msvc7 | msvc7msys | msvisualcpp | msvcmsys)
12867: # This compiler won't grok '-c -o', but also, the minuso test has
12868: # not run yet. These depmodes are late enough in the game, and
12869: # so weak that their functioning should not be impacted.
12870: am__obj=conftest.${OBJEXT-o}
12871: am__minus_obj=
12872: ;;
12873: none) break ;;
12874: esac
12875: if depmode=$depmode \
12876: source=sub/conftest.c object=$am__obj \
12877: depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12878: $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
12879: >/dev/null 2>conftest.err &&
12880: grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
12881: grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12882: grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
12883: ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12884: # icc doesn't choke on unknown options, it will just issue warnings
12885: # or remarks (even with -Werror). So we grep stderr for any message
12886: # that says an option was ignored or not supported.
12887: # When given -MP, icc 7.0 and 7.1 complain thusly:
12888: # icc: Command line warning: ignoring option '-M'; no argument required
12889: # The diagnosis changed in icc 8.0:
12890: # icc: Command line remark: option '-MP' not supported
12891: if (grep 'ignoring option' conftest.err ||
12892: grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12893: am_cv_CC_dependencies_compiler_type=$depmode
12894: break
12895: fi
12896: fi
1.1 noro 12897: done
12898:
1.5 ohara 12899: cd ..
12900: rm -rf conftest.dir
12901: else
12902: am_cv_CC_dependencies_compiler_type=none
1.1 noro 12903: fi
1.5 ohara 12904:
1.1 noro 12905: fi
1.5 ohara 12906: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
12907: $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
12908: CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
12909:
12910: if
12911: test "x$enable_dependency_tracking" != xno \
12912: && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
12913: am__fastdepCC_TRUE=
12914: am__fastdepCC_FALSE='#'
1.1 noro 12915: else
1.5 ohara 12916: am__fastdepCC_TRUE='#'
12917: am__fastdepCC_FALSE=
1.1 noro 12918: fi
12919:
1.5 ohara 12920:
12921:
12922: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
12923: $as_echo_n "checking whether ln -s works... " >&6; }
12924: LN_S=$as_ln_s
12925: if test "$LN_S" = "ln -s"; then
12926: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12927: $as_echo "yes" >&6; }
1.1 noro 12928: else
1.5 ohara 12929: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
12930: $as_echo "no, using $LN_S" >&6; }
1.1 noro 12931: fi
12932:
1.5 ohara 12933: if test -n "$ac_tool_prefix"; then
12934: # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12935: set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1.1 noro 12936: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12937: $as_echo_n "checking for $ac_word... " >&6; }
1.5 ohara 12938: if ${ac_cv_prog_RANLIB+:} false; then :
1.1 noro 12939: $as_echo_n "(cached) " >&6
12940: else
1.5 ohara 12941: if test -n "$RANLIB"; then
12942: ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1.1 noro 12943: else
12944: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12945: for as_dir in $PATH
12946: do
12947: IFS=$as_save_IFS
12948: test -z "$as_dir" && as_dir=.
12949: for ac_exec_ext in '' $ac_executable_extensions; do
12950: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.5 ohara 12951: ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1.1 noro 12952: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12953: break 2
12954: fi
12955: done
12956: done
12957: IFS=$as_save_IFS
12958:
12959: fi
12960: fi
1.5 ohara 12961: RANLIB=$ac_cv_prog_RANLIB
12962: if test -n "$RANLIB"; then
12963: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
12964: $as_echo "$RANLIB" >&6; }
1.1 noro 12965: else
12966: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12967: $as_echo "no" >&6; }
12968: fi
12969:
12970:
12971: fi
1.5 ohara 12972: if test -z "$ac_cv_prog_RANLIB"; then
12973: ac_ct_RANLIB=$RANLIB
12974: # Extract the first word of "ranlib", so it can be a program name with args.
12975: set dummy ranlib; ac_word=$2
12976: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12977: $as_echo_n "checking for $ac_word... " >&6; }
12978: if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
1.1 noro 12979: $as_echo_n "(cached) " >&6
12980: else
1.5 ohara 12981: if test -n "$ac_ct_RANLIB"; then
12982: ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12983: else
12984: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12985: for as_dir in $PATH
1.1 noro 12986: do
1.5 ohara 12987: IFS=$as_save_IFS
12988: test -z "$as_dir" && as_dir=.
12989: for ac_exec_ext in '' $ac_executable_extensions; do
12990: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12991: ac_cv_prog_ac_ct_RANLIB="ranlib"
12992: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12993: break 2
12994: fi
1.1 noro 12995: done
1.5 ohara 12996: done
12997: IFS=$as_save_IFS
1.1 noro 12998:
12999: fi
13000: fi
1.5 ohara 13001: ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13002: if test -n "$ac_ct_RANLIB"; then
13003: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
13004: $as_echo "$ac_ct_RANLIB" >&6; }
1.1 noro 13005: else
1.5 ohara 13006: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13007: $as_echo "no" >&6; }
1.1 noro 13008: fi
13009:
1.5 ohara 13010: if test "x$ac_ct_RANLIB" = x; then
13011: RANLIB=":"
13012: else
13013: case $cross_compiling:$ac_tool_warned in
13014: yes:)
13015: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13016: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13017: ac_tool_warned=yes ;;
13018: esac
13019: RANLIB=$ac_ct_RANLIB
13020: fi
1.1 noro 13021: else
1.5 ohara 13022: RANLIB="$ac_cv_prog_RANLIB"
1.1 noro 13023: fi
13024:
1.5 ohara 13025: for ac_prog in 'bison -o y.tab.c' byacc
13026: do
13027: # Extract the first word of "$ac_prog", so it can be a program name with args.
13028: set dummy $ac_prog; ac_word=$2
13029: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13030: $as_echo_n "checking for $ac_word... " >&6; }
13031: if ${ac_cv_prog_YACC+:} false; then :
13032: $as_echo_n "(cached) " >&6
13033: else
13034: if test -n "$YACC"; then
13035: ac_cv_prog_YACC="$YACC" # Let the user override the test.
13036: else
13037: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13038: for as_dir in $PATH
13039: do
13040: IFS=$as_save_IFS
13041: test -z "$as_dir" && as_dir=.
13042: for ac_exec_ext in '' $ac_executable_extensions; do
13043: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13044: ac_cv_prog_YACC="$ac_prog"
13045: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13046: break 2
13047: fi
1.1 noro 13048: done
1.5 ohara 13049: done
13050: IFS=$as_save_IFS
1.1 noro 13051:
1.5 ohara 13052: fi
13053: fi
13054: YACC=$ac_cv_prog_YACC
13055: if test -n "$YACC"; then
13056: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
13057: $as_echo "$YACC" >&6; }
1.1 noro 13058: else
1.5 ohara 13059: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13060: $as_echo "no" >&6; }
1.1 noro 13061: fi
13062:
1.5 ohara 13063:
13064: test -n "$YACC" && break
13065: done
13066: test -n "$YACC" || YACC="yacc"
13067:
1.1 noro 13068:
13069:
13070: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
13071: $as_echo_n "checking for X... " >&6; }
13072:
13073:
13074: # Check whether --with-x was given.
13075: if test "${with_x+set}" = set; then :
13076: withval=$with_x;
13077: fi
13078:
13079: # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
13080: if test "x$with_x" = xno; then
13081: # The user explicitly disabled X.
13082: have_x=disabled
13083: else
13084: case $x_includes,$x_libraries in #(
13085: *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
13086: *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
13087: $as_echo_n "(cached) " >&6
13088: else
13089: # One or both of the vars are not set, and there is no cached value.
13090: ac_x_includes=no ac_x_libraries=no
13091: rm -f -r conftest.dir
13092: if mkdir conftest.dir; then
13093: cd conftest.dir
13094: cat >Imakefile <<'_ACEOF'
13095: incroot:
13096: @echo incroot='${INCROOT}'
13097: usrlibdir:
13098: @echo usrlibdir='${USRLIBDIR}'
13099: libdir:
13100: @echo libdir='${LIBDIR}'
13101: _ACEOF
13102: if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
13103: # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
13104: for ac_var in incroot usrlibdir libdir; do
13105: eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
13106: done
13107: # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
13108: for ac_extension in a so sl dylib la dll; do
13109: if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
13110: test -f "$ac_im_libdir/libX11.$ac_extension"; then
13111: ac_im_usrlibdir=$ac_im_libdir; break
13112: fi
13113: done
13114: # Screen out bogus values from the imake configuration. They are
13115: # bogus both because they are the default anyway, and because
13116: # using them would break gcc on systems where it needs fixed includes.
13117: case $ac_im_incroot in
13118: /usr/include) ac_x_includes= ;;
13119: *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
13120: esac
13121: case $ac_im_usrlibdir in
13122: /usr/lib | /usr/lib64 | /lib | /lib64) ;;
13123: *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
13124: esac
13125: fi
13126: cd ..
13127: rm -f -r conftest.dir
13128: fi
13129:
13130: # Standard set of common directories for X headers.
13131: # Check X11 before X11Rn because it is often a symlink to the current release.
13132: ac_x_header_dirs='
13133: /usr/X11/include
13134: /usr/X11R7/include
13135: /usr/X11R6/include
13136: /usr/X11R5/include
13137: /usr/X11R4/include
13138:
13139: /usr/include/X11
13140: /usr/include/X11R7
13141: /usr/include/X11R6
13142: /usr/include/X11R5
13143: /usr/include/X11R4
13144:
13145: /usr/local/X11/include
13146: /usr/local/X11R7/include
13147: /usr/local/X11R6/include
13148: /usr/local/X11R5/include
13149: /usr/local/X11R4/include
13150:
13151: /usr/local/include/X11
13152: /usr/local/include/X11R7
13153: /usr/local/include/X11R6
13154: /usr/local/include/X11R5
13155: /usr/local/include/X11R4
13156:
13157: /usr/X386/include
13158: /usr/x386/include
13159: /usr/XFree86/include/X11
13160:
13161: /usr/include
13162: /usr/local/include
13163: /usr/unsupported/include
13164: /usr/athena/include
13165: /usr/local/x11r5/include
13166: /usr/lpp/Xamples/include
13167:
13168: /usr/openwin/include
13169: /usr/openwin/share/include'
13170:
13171: if test "$ac_x_includes" = no; then
13172: # Guess where to find include files, by looking for Xlib.h.
13173: # First, try using that file with no special directory specified.
13174: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13175: /* end confdefs.h. */
13176: #include <X11/Xlib.h>
13177: _ACEOF
13178: if ac_fn_c_try_cpp "$LINENO"; then :
13179: # We can compile using X headers with no special include directory.
13180: ac_x_includes=
13181: else
13182: for ac_dir in $ac_x_header_dirs; do
13183: if test -r "$ac_dir/X11/Xlib.h"; then
13184: ac_x_includes=$ac_dir
13185: break
13186: fi
13187: done
13188: fi
13189: rm -f conftest.err conftest.i conftest.$ac_ext
13190: fi # $ac_x_includes = no
13191:
13192: if test "$ac_x_libraries" = no; then
13193: # Check for the libraries.
13194: # See if we find them without any special options.
13195: # Don't add to $LIBS permanently.
13196: ac_save_LIBS=$LIBS
13197: LIBS="-lX11 $LIBS"
13198: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13199: /* end confdefs.h. */
13200: #include <X11/Xlib.h>
13201: int
13202: main ()
13203: {
13204: XrmInitialize ()
13205: ;
13206: return 0;
13207: }
13208: _ACEOF
13209: if ac_fn_c_try_link "$LINENO"; then :
13210: LIBS=$ac_save_LIBS
13211: # We can link X programs with no special library path.
13212: ac_x_libraries=
13213: else
13214: LIBS=$ac_save_LIBS
13215: for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
13216: do
13217: # Don't even attempt the hair of trying to link an X program!
13218: for ac_extension in a so sl dylib la dll; do
13219: if test -r "$ac_dir/libX11.$ac_extension"; then
13220: ac_x_libraries=$ac_dir
13221: break 2
13222: fi
13223: done
13224: done
13225: fi
13226: rm -f core conftest.err conftest.$ac_objext \
13227: conftest$ac_exeext conftest.$ac_ext
13228: fi # $ac_x_libraries = no
13229:
13230: case $ac_x_includes,$ac_x_libraries in #(
13231: no,* | *,no | *\'*)
13232: # Didn't find X, or a directory has "'" in its name.
13233: ac_cv_have_x="have_x=no";; #(
13234: *)
13235: # Record where we found X for the cache.
13236: ac_cv_have_x="have_x=yes\
13237: ac_x_includes='$ac_x_includes'\
13238: ac_x_libraries='$ac_x_libraries'"
13239: esac
13240: fi
13241: ;; #(
13242: *) have_x=yes;;
13243: esac
13244: eval "$ac_cv_have_x"
13245: fi # $with_x != no
13246:
13247: if test "$have_x" != yes; then
13248: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
13249: $as_echo "$have_x" >&6; }
13250: no_x=yes
13251: else
13252: # If each of the values was on the command line, it overrides each guess.
13253: test "x$x_includes" = xNONE && x_includes=$ac_x_includes
13254: test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
13255: # Update the cache value to reflect the command line values.
13256: ac_cv_have_x="have_x=yes\
13257: ac_x_includes='$x_includes'\
13258: ac_x_libraries='$x_libraries'"
13259: { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
13260: $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
13261: fi
13262:
13263: if test "$no_x" = yes; then
13264: # Not all programs may use this symbol, but it does not hurt to define it.
13265:
13266: $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
13267:
13268: X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
13269: else
13270: if test -n "$x_includes"; then
13271: X_CFLAGS="$X_CFLAGS -I$x_includes"
13272: fi
13273:
13274: # It would also be nice to do this for all -L options, not just this one.
13275: if test -n "$x_libraries"; then
13276: X_LIBS="$X_LIBS -L$x_libraries"
13277: # For Solaris; some versions of Sun CC require a space after -R and
13278: # others require no space. Words are not sufficient . . . .
13279: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
13280: $as_echo_n "checking whether -R must be followed by a space... " >&6; }
13281: ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
13282: ac_xsave_c_werror_flag=$ac_c_werror_flag
13283: ac_c_werror_flag=yes
13284: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13285: /* end confdefs.h. */
13286:
13287: int
13288: main ()
13289: {
13290:
13291: ;
13292: return 0;
13293: }
13294: _ACEOF
13295: if ac_fn_c_try_link "$LINENO"; then :
13296: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13297: $as_echo "no" >&6; }
13298: X_LIBS="$X_LIBS -R$x_libraries"
13299: else
13300: LIBS="$ac_xsave_LIBS -R $x_libraries"
13301: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13302: /* end confdefs.h. */
13303:
13304: int
13305: main ()
13306: {
13307:
13308: ;
13309: return 0;
13310: }
13311: _ACEOF
13312: if ac_fn_c_try_link "$LINENO"; then :
13313: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13314: $as_echo "yes" >&6; }
13315: X_LIBS="$X_LIBS -R $x_libraries"
13316: else
13317: { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
13318: $as_echo "neither works" >&6; }
13319: fi
13320: rm -f core conftest.err conftest.$ac_objext \
13321: conftest$ac_exeext conftest.$ac_ext
13322: fi
13323: rm -f core conftest.err conftest.$ac_objext \
13324: conftest$ac_exeext conftest.$ac_ext
13325: ac_c_werror_flag=$ac_xsave_c_werror_flag
13326: LIBS=$ac_xsave_LIBS
13327: fi
13328:
13329: # Check for system-dependent libraries X programs must link with.
13330: # Do this before checking for the system-independent R6 libraries
13331: # (-lICE), since we may need -lsocket or whatever for X linking.
13332:
13333: if test "$ISC" = yes; then
13334: X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
13335: else
13336: # Martyn Johnson says this is needed for Ultrix, if the X
13337: # libraries were built with DECnet support. And Karl Berry says
13338: # the Alpha needs dnet_stub (dnet does not exist).
13339: ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
13340: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13341: /* end confdefs.h. */
13342:
13343: /* Override any GCC internal prototype to avoid an error.
13344: Use char because int might match the return type of a GCC
13345: builtin and then its argument prototype would still apply. */
13346: #ifdef __cplusplus
13347: extern "C"
13348: #endif
13349: char XOpenDisplay ();
13350: int
13351: main ()
13352: {
13353: return XOpenDisplay ();
13354: ;
13355: return 0;
13356: }
13357: _ACEOF
13358: if ac_fn_c_try_link "$LINENO"; then :
13359:
13360: else
13361: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
13362: $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
13363: if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
13364: $as_echo_n "(cached) " >&6
13365: else
13366: ac_check_lib_save_LIBS=$LIBS
13367: LIBS="-ldnet $LIBS"
13368: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13369: /* end confdefs.h. */
13370:
13371: /* Override any GCC internal prototype to avoid an error.
13372: Use char because int might match the return type of a GCC
13373: builtin and then its argument prototype would still apply. */
13374: #ifdef __cplusplus
13375: extern "C"
13376: #endif
13377: char dnet_ntoa ();
13378: int
13379: main ()
13380: {
13381: return dnet_ntoa ();
13382: ;
13383: return 0;
13384: }
13385: _ACEOF
13386: if ac_fn_c_try_link "$LINENO"; then :
13387: ac_cv_lib_dnet_dnet_ntoa=yes
13388: else
13389: ac_cv_lib_dnet_dnet_ntoa=no
13390: fi
13391: rm -f core conftest.err conftest.$ac_objext \
13392: conftest$ac_exeext conftest.$ac_ext
13393: LIBS=$ac_check_lib_save_LIBS
13394: fi
13395: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
13396: $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
13397: if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
13398: X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
13399: fi
13400:
13401: if test $ac_cv_lib_dnet_dnet_ntoa = no; then
13402: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
13403: $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
13404: if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
13405: $as_echo_n "(cached) " >&6
13406: else
13407: ac_check_lib_save_LIBS=$LIBS
13408: LIBS="-ldnet_stub $LIBS"
13409: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13410: /* end confdefs.h. */
13411:
13412: /* Override any GCC internal prototype to avoid an error.
13413: Use char because int might match the return type of a GCC
13414: builtin and then its argument prototype would still apply. */
13415: #ifdef __cplusplus
13416: extern "C"
13417: #endif
13418: char dnet_ntoa ();
13419: int
13420: main ()
13421: {
13422: return dnet_ntoa ();
13423: ;
13424: return 0;
13425: }
13426: _ACEOF
13427: if ac_fn_c_try_link "$LINENO"; then :
13428: ac_cv_lib_dnet_stub_dnet_ntoa=yes
13429: else
13430: ac_cv_lib_dnet_stub_dnet_ntoa=no
13431: fi
13432: rm -f core conftest.err conftest.$ac_objext \
13433: conftest$ac_exeext conftest.$ac_ext
13434: LIBS=$ac_check_lib_save_LIBS
13435: fi
13436: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
13437: $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
13438: if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
13439: X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
13440: fi
13441:
13442: fi
13443: fi
13444: rm -f core conftest.err conftest.$ac_objext \
13445: conftest$ac_exeext conftest.$ac_ext
13446: LIBS="$ac_xsave_LIBS"
13447:
13448: # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
13449: # to get the SysV transport functions.
13450: # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
13451: # needs -lnsl.
13452: # The nsl library prevents programs from opening the X display
13453: # on Irix 5.2, according to T.E. Dickey.
13454: # The functions gethostbyname, getservbyname, and inet_addr are
13455: # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
13456: ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
13457: if test "x$ac_cv_func_gethostbyname" = xyes; then :
13458:
13459: fi
13460:
1.5 ohara 13461: if test $ac_cv_func_gethostbyname = no; then
13462: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
13463: $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
13464: if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
1.1 noro 13465: $as_echo_n "(cached) " >&6
13466: else
13467: ac_check_lib_save_LIBS=$LIBS
1.5 ohara 13468: LIBS="-lnsl $LIBS"
1.1 noro 13469: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13470: /* end confdefs.h. */
13471:
13472: /* Override any GCC internal prototype to avoid an error.
13473: Use char because int might match the return type of a GCC
13474: builtin and then its argument prototype would still apply. */
13475: #ifdef __cplusplus
13476: extern "C"
13477: #endif
1.5 ohara 13478: char gethostbyname ();
1.1 noro 13479: int
13480: main ()
13481: {
1.5 ohara 13482: return gethostbyname ();
1.1 noro 13483: ;
13484: return 0;
13485: }
13486: _ACEOF
13487: if ac_fn_c_try_link "$LINENO"; then :
1.5 ohara 13488: ac_cv_lib_nsl_gethostbyname=yes
1.1 noro 13489: else
1.5 ohara 13490: ac_cv_lib_nsl_gethostbyname=no
1.1 noro 13491: fi
13492: rm -f core conftest.err conftest.$ac_objext \
13493: conftest$ac_exeext conftest.$ac_ext
13494: LIBS=$ac_check_lib_save_LIBS
13495: fi
1.5 ohara 13496: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
13497: $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
13498: if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
13499: X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
1.1 noro 13500: fi
13501:
1.5 ohara 13502: if test $ac_cv_lib_nsl_gethostbyname = no; then
13503: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
13504: $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
13505: if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
1.1 noro 13506: $as_echo_n "(cached) " >&6
13507: else
13508: ac_check_lib_save_LIBS=$LIBS
1.5 ohara 13509: LIBS="-lbsd $LIBS"
1.1 noro 13510: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13511: /* end confdefs.h. */
13512:
13513: /* Override any GCC internal prototype to avoid an error.
13514: Use char because int might match the return type of a GCC
13515: builtin and then its argument prototype would still apply. */
13516: #ifdef __cplusplus
13517: extern "C"
13518: #endif
1.5 ohara 13519: char gethostbyname ();
1.1 noro 13520: int
13521: main ()
13522: {
1.5 ohara 13523: return gethostbyname ();
1.1 noro 13524: ;
13525: return 0;
13526: }
13527: _ACEOF
13528: if ac_fn_c_try_link "$LINENO"; then :
1.5 ohara 13529: ac_cv_lib_bsd_gethostbyname=yes
1.1 noro 13530: else
1.5 ohara 13531: ac_cv_lib_bsd_gethostbyname=no
1.1 noro 13532: fi
13533: rm -f core conftest.err conftest.$ac_objext \
13534: conftest$ac_exeext conftest.$ac_ext
13535: LIBS=$ac_check_lib_save_LIBS
13536: fi
1.5 ohara 13537: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
13538: $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
13539: if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
13540: X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
1.1 noro 13541: fi
13542:
1.5 ohara 13543: fi
13544: fi
13545:
13546: # lieder@skyler.mavd.honeywell.com says without -lsocket,
13547: # socket/setsockopt and other routines are undefined under SCO ODT
13548: # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
13549: # on later versions), says Simon Leinen: it contains gethostby*
13550: # variants that don't use the name server (or something). -lsocket
13551: # must be given before -lnsl if both are needed. We assume that
13552: # if connect needs -lnsl, so does gethostbyname.
13553: ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
13554: if test "x$ac_cv_func_connect" = xyes; then :
13555:
1.1 noro 13556: fi
13557:
1.5 ohara 13558: if test $ac_cv_func_connect = no; then
13559: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
13560: $as_echo_n "checking for connect in -lsocket... " >&6; }
13561: if ${ac_cv_lib_socket_connect+:} false; then :
1.1 noro 13562: $as_echo_n "(cached) " >&6
13563: else
1.5 ohara 13564: ac_check_lib_save_LIBS=$LIBS
13565: LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
13566: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 noro 13567: /* end confdefs.h. */
13568:
1.5 ohara 13569: /* Override any GCC internal prototype to avoid an error.
13570: Use char because int might match the return type of a GCC
13571: builtin and then its argument prototype would still apply. */
13572: #ifdef __cplusplus
13573: extern "C"
13574: #endif
13575: char connect ();
1.1 noro 13576: int
13577: main ()
13578: {
1.5 ohara 13579: return connect ();
1.1 noro 13580: ;
13581: return 0;
13582: }
13583: _ACEOF
1.5 ohara 13584: if ac_fn_c_try_link "$LINENO"; then :
13585: ac_cv_lib_socket_connect=yes
1.1 noro 13586: else
1.5 ohara 13587: ac_cv_lib_socket_connect=no
13588: fi
13589: rm -f core conftest.err conftest.$ac_objext \
13590: conftest$ac_exeext conftest.$ac_ext
13591: LIBS=$ac_check_lib_save_LIBS
13592: fi
13593: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
13594: $as_echo "$ac_cv_lib_socket_connect" >&6; }
13595: if test "x$ac_cv_lib_socket_connect" = xyes; then :
13596: X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
13597: fi
13598:
13599: fi
13600:
13601: # Guillermo Gomez says -lposix is necessary on A/UX.
13602: ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
13603: if test "x$ac_cv_func_remove" = xyes; then :
13604:
1.1 noro 13605: fi
13606:
1.5 ohara 13607: if test $ac_cv_func_remove = no; then
13608: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
13609: $as_echo_n "checking for remove in -lposix... " >&6; }
13610: if ${ac_cv_lib_posix_remove+:} false; then :
13611: $as_echo_n "(cached) " >&6
13612: else
13613: ac_check_lib_save_LIBS=$LIBS
13614: LIBS="-lposix $LIBS"
13615: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 noro 13616: /* end confdefs.h. */
13617:
1.5 ohara 13618: /* Override any GCC internal prototype to avoid an error.
13619: Use char because int might match the return type of a GCC
13620: builtin and then its argument prototype would still apply. */
13621: #ifdef __cplusplus
13622: extern "C"
13623: #endif
13624: char remove ();
13625: int
13626: main ()
13627: {
13628: return remove ();
13629: ;
13630: return 0;
13631: }
1.1 noro 13632: _ACEOF
1.5 ohara 13633: if ac_fn_c_try_link "$LINENO"; then :
13634: ac_cv_lib_posix_remove=yes
1.1 noro 13635: else
1.5 ohara 13636: ac_cv_lib_posix_remove=no
13637: fi
13638: rm -f core conftest.err conftest.$ac_objext \
13639: conftest$ac_exeext conftest.$ac_ext
13640: LIBS=$ac_check_lib_save_LIBS
13641: fi
13642: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
13643: $as_echo "$ac_cv_lib_posix_remove" >&6; }
13644: if test "x$ac_cv_lib_posix_remove" = xyes; then :
13645: X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
1.1 noro 13646: fi
1.5 ohara 13647:
13648: fi
13649:
13650: # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
13651: ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
13652: if test "x$ac_cv_func_shmat" = xyes; then :
1.1 noro 13653:
13654: fi
13655:
1.5 ohara 13656: if test $ac_cv_func_shmat = no; then
13657: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
13658: $as_echo_n "checking for shmat in -lipc... " >&6; }
13659: if ${ac_cv_lib_ipc_shmat+:} false; then :
13660: $as_echo_n "(cached) " >&6
13661: else
13662: ac_check_lib_save_LIBS=$LIBS
13663: LIBS="-lipc $LIBS"
13664: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 noro 13665: /* end confdefs.h. */
13666:
1.5 ohara 13667: /* Override any GCC internal prototype to avoid an error.
13668: Use char because int might match the return type of a GCC
13669: builtin and then its argument prototype would still apply. */
13670: #ifdef __cplusplus
13671: extern "C"
13672: #endif
13673: char shmat ();
13674: int
13675: main ()
13676: {
13677: return shmat ();
13678: ;
13679: return 0;
13680: }
1.1 noro 13681: _ACEOF
1.5 ohara 13682: if ac_fn_c_try_link "$LINENO"; then :
13683: ac_cv_lib_ipc_shmat=yes
1.1 noro 13684: else
1.5 ohara 13685: ac_cv_lib_ipc_shmat=no
13686: fi
13687: rm -f core conftest.err conftest.$ac_objext \
13688: conftest$ac_exeext conftest.$ac_ext
13689: LIBS=$ac_check_lib_save_LIBS
13690: fi
13691: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
13692: $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
13693: if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
13694: X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
1.1 noro 13695: fi
13696:
1.5 ohara 13697: fi
13698: fi
1.1 noro 13699:
1.5 ohara 13700: # Check for libraries that X11R6 Xt/Xaw programs need.
13701: ac_save_LDFLAGS=$LDFLAGS
13702: test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
13703: # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
13704: # check for ICE first), but we must link in the order -lSM -lICE or
13705: # we get undefined symbols. So assume we have SM if we have ICE.
13706: # These have to be linked with before -lX11, unlike the other
13707: # libraries we check for below, so use a different variable.
13708: # John Interrante, Karl Berry
13709: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
13710: $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
13711: if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
13712: $as_echo_n "(cached) " >&6
1.1 noro 13713: else
1.5 ohara 13714: ac_check_lib_save_LIBS=$LIBS
13715: LIBS="-lICE $X_EXTRA_LIBS $LIBS"
13716: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 noro 13717: /* end confdefs.h. */
1.5 ohara 13718:
13719: /* Override any GCC internal prototype to avoid an error.
13720: Use char because int might match the return type of a GCC
13721: builtin and then its argument prototype would still apply. */
13722: #ifdef __cplusplus
13723: extern "C"
1.1 noro 13724: #endif
1.5 ohara 13725: char IceConnectionNumber ();
1.1 noro 13726: int
13727: main ()
13728: {
1.5 ohara 13729: return IceConnectionNumber ();
13730: ;
1.1 noro 13731: return 0;
13732: }
13733: _ACEOF
1.5 ohara 13734: if ac_fn_c_try_link "$LINENO"; then :
13735: ac_cv_lib_ICE_IceConnectionNumber=yes
13736: else
13737: ac_cv_lib_ICE_IceConnectionNumber=no
13738: fi
13739: rm -f core conftest.err conftest.$ac_objext \
13740: conftest$ac_exeext conftest.$ac_ext
13741: LIBS=$ac_check_lib_save_LIBS
13742: fi
13743: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
13744: $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
13745: if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
13746: X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
13747: fi
13748:
13749: LDFLAGS=$ac_save_LDFLAGS
13750:
13751: fi
13752:
1.1 noro 13753:
1.6 ! ohara 13754: # Check whether --enable-static_asir was given.
! 13755: if test "${enable_static_asir+set}" = set; then :
! 13756: enableval=$enable_static_asir; enable_static_asir=${enableval}
1.1 noro 13757: else
1.6 ! ohara 13758: enable_static_asir=yes
1.1 noro 13759: fi
1.5 ohara 13760:
1.6 ! ohara 13761: if test "${enable_static_asir}" = yes; then
! 13762: ASIR_STATIC_TRUE=
! 13763: ASIR_STATIC_FALSE='#'
! 13764: else
! 13765: ASIR_STATIC_TRUE='#'
! 13766: ASIR_STATIC_FALSE=
! 13767: fi
1.5 ohara 13768:
1.1 noro 13769:
1.5 ohara 13770: if test "${ac_test_CFLAGS}" != set -a "${GCC}" = yes ; then
13771: if test "${ac_cv_prog_cc_g}" = yes; then
13772: CFLAGS="-g -O"
13773: else
13774: CFLAGS="-O"
13775: fi
13776: elif test `basename ./"${CC}"` = "icc" ; then
13777: CFLAGS="-g -O"
1.1 noro 13778: fi
13779:
13780:
1.5 ohara 13781: # Check whether --with-asir-gc was given.
13782: if test "${with_asir_gc+set}" = set; then :
13783: withval=$with_asir_gc; with_asir_gc=${withval}
13784: else
13785: with_asir_gc=yes
1.1 noro 13786: fi
13787:
1.5 ohara 13788: if test ${with_asir_gc:=yes} != no; then
13789: GCLIB='-L${prefix}/lib -lasir-gc'
13790: else
13791: GCLIB='-L${prefix}/lib -lgc'
13792: $as_echo "#define NO_ASIR_GC 1" >>confdefs.h
1.1 noro 13793:
13794: fi
1.5 ohara 13795: GCINC='-I${prefix}/include'
13796: $as_echo "#define GC7 1" >>confdefs.h
13797:
1.1 noro 13798:
13799:
13800:
13801: ac_fn_c_check_type "$LINENO" "unsigned long long" "ac_cv_type_unsigned_long_long" "$ac_includes_default"
13802: if test "x$ac_cv_type_unsigned_long_long" = xyes; then :
13803:
13804: cat >>confdefs.h <<_ACEOF
13805: #define HAVE_UNSIGNED_LONG_LONG 1
13806: _ACEOF
13807:
13808:
13809: fi
13810:
13811: # The cast to long int works around a bug in the HP C Compiler
13812: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13813: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13814: # This bug is HP SR number 8606223364.
13815: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
13816: $as_echo_n "checking size of long... " >&6; }
13817: if ${ac_cv_sizeof_long+:} false; then :
13818: $as_echo_n "(cached) " >&6
13819: else
13820: if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
13821:
13822: else
13823: if test "$ac_cv_type_long" = yes; then
13824: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13825: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13826: as_fn_error 77 "cannot compute sizeof (long)
13827: See \`config.log' for more details" "$LINENO" 5; }
13828: else
13829: ac_cv_sizeof_long=0
13830: fi
13831: fi
13832:
13833: fi
13834: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
13835: $as_echo "$ac_cv_sizeof_long" >&6; }
13836:
13837:
13838:
13839: cat >>confdefs.h <<_ACEOF
13840: #define SIZEOF_LONG $ac_cv_sizeof_long
13841: _ACEOF
13842:
13843:
13844: if test "${ac_cv_sizeof_long}" = 8; then
13845: $as_echo "#define LONG_IS_64BIT 1" >>confdefs.h
13846:
13847: else
13848: $as_echo "#define LONG_IS_32BIT 1" >>confdefs.h
13849:
13850: fi
13851: if test "${no_x}" != yes ; then
13852: if test -f "${x_libraries}/libXpm.a" -o -f "${x_libraries}/libXpm.dll.a" ; then
13853: XPMLIB="-lXpm"
13854: fi
13855: # Check whether --enable-plot was given.
13856: if test "${enable_plot+set}" = set; then :
13857: enableval=$enable_plot; enable_plot=yes
13858: else
13859: enable_plot=no
13860: fi
13861:
13862: fi
13863:
13864:
1.5 ohara 13865: sufx=""
1.1 noro 13866: if test ${enable_plot:=no} != no ; then
1.5 ohara 13867: sufx=${sufx}_X
1.1 noro 13868: $as_echo "#define DO_PLOT 1" >>confdefs.h
13869:
13870: fi
13871: if test "$enable_plot" = yes; then
13872: USE_PLOT_TRUE=
13873: USE_PLOT_FALSE='#'
13874: else
13875: USE_PLOT_TRUE='#'
13876: USE_PLOT_FALSE=
13877: fi
13878:
13879:
1.4 kondoh 13880: GMPLIB="-L${libdir} -lmpfi -lmpc -lmpfr -lgmp"
1.1 noro 13881: # Check whether --enable-static_gmp was given.
13882: if test "${enable_static_gmp+set}" = set; then :
13883: enableval=$enable_static_gmp; enable_static_gmp=yes
13884: else
13885: enable_static_gmp=no
13886: fi
13887:
13888: if test ${enable_static_gmp:=no} != no ; then
1.5 ohara 13889: GMPLIB='${libdir}/libmpfi.a ${libdir}/libmpc.a ${libdir}/libmpfr.a ${libdir}/libgmp.a'
1.1 noro 13890: fi
13891:
13892:
13893: # Check whether --enable-interval was given.
13894: if test "${enable_interval+set}" = set; then :
13895: enableval=$enable_interval; enable_interval=${enableval}
13896: else
13897: enable_interval=no
13898: fi
13899:
13900:
13901: if test ${enable_interval:=no} != no ; then
1.5 ohara 13902: sufx=${sufx}_itv
1.1 noro 13903: $as_echo "#define INTERVAL 1" >>confdefs.h
13904:
13905: if test "${enable_interval}" = debug ; then
13906: $as_echo "#define ITVDEBUG 1" >>confdefs.h
13907:
13908: fi
13909: fi
13910:
13911:
13912: if test "${enable_fep:=no}" != no ; then
13913: $as_echo "#define FEP 1" >>confdefs.h
13914:
13915: FEPLIB="-lreadline -ltermcap"
13916: fi
13917:
13918:
13919: # Check whether --enable-fft-float was given.
13920: if test "${enable_fft_float+set}" = set; then :
13921: enableval=$enable_fft_float; enable_fft_float=yes
13922: else
13923: enable_fft_float=no
13924: fi
13925:
13926:
13927: if test "${enable_fft_float:=no}" != no ; then
13928: $as_echo "#define USE_FLOAT 1" >>confdefs.h
13929:
13930: fi
13931:
13932:
13933: # Check whether --with-mpi was given.
13934: if test "${with_mpi+set}" = set; then :
13935: withval=$with_mpi; with_mpi=${withval}
13936: else
13937: with_mpi=no
13938: fi
13939:
13940:
13941: if test "${with_mpi:=no}" != no ; then
13942: $as_echo "#define MPI 1" >>confdefs.h
13943:
13944: fi
13945:
13946:
13947: if test "${with_lapack:=no}" != no ; then
13948: LAPACKLIB="-llapack -lblas -lg2c"
13949: $as_echo "#define LAPACK 1" >>confdefs.h
13950:
13951: fi
13952:
13953:
13954:
13955:
13956: case "${host}" in
13957: i[3-6]86-*-linux*|x86-*-linux*)
13958: $as_echo "#define _BSD_SOURCE 1" >>confdefs.h
13959:
13960: ;;
1.5 ohara 13961: arm*-*-linux*)
13962: if test "${ac_test_CFLAGS}" != set -a "${GCC}" = yes ; then
13963: CFLAGS="${CFLAGS} -fsigned-char"
13964: fi
1.1 noro 13965: ;;
1.5 ohara 13966: *-*-interix*)
1.1 noro 13967: $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
13968:
13969: ;;
13970: sparc-sun-solaris2.*)
13971: case "`uname -m`" in
1.5 ohara 13972: sun4u*) if test "${ac_test_CFLAGS}" != set -a "${GCC}" = yes ; then
1.1 noro 13973: CFLAGS="${CFLAGS} -m64"
13974: fi
13975:
13976: ;;
13977: esac
13978: $as_echo "#define SYSV 1" >>confdefs.h
13979:
13980: ;;
13981: *-apple-darwin*)
13982: $as_echo "#define __DARWIN__ 1" >>confdefs.h
13983:
13984: if test -d /usr/X11/include -a x"${X_CFLAGS}" = x ; then
13985: X_CFLAGS=-I/usr/X11/include
13986: fi
13987: ;;
13988: *-*-mingw*)
13989: WSLIB="-lws2_32"
13990: ;;
13991: esac
13992:
13993:
13994: for ac_func in sigaction
13995: do :
13996: ac_fn_c_check_func "$LINENO" "sigaction" "ac_cv_func_sigaction"
13997: if test "x$ac_cv_func_sigaction" = xyes; then :
13998: cat >>confdefs.h <<_ACEOF
13999: #define HAVE_SIGACTION 1
14000: _ACEOF
14001:
14002: fi
14003: done
14004:
14005: ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
14006: if test "x$ac_cv_func_socket" = xyes; then :
14007:
14008: else
14009: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
14010: $as_echo_n "checking for socket in -lsocket... " >&6; }
14011: if ${ac_cv_lib_socket_socket+:} false; then :
14012: $as_echo_n "(cached) " >&6
14013: else
14014: ac_check_lib_save_LIBS=$LIBS
14015: LIBS="-lsocket $LIBS"
14016: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14017: /* end confdefs.h. */
14018:
14019: /* Override any GCC internal prototype to avoid an error.
14020: Use char because int might match the return type of a GCC
14021: builtin and then its argument prototype would still apply. */
14022: #ifdef __cplusplus
14023: extern "C"
14024: #endif
14025: char socket ();
14026: int
14027: main ()
14028: {
14029: return socket ();
14030: ;
14031: return 0;
14032: }
14033: _ACEOF
14034: if ac_fn_c_try_link "$LINENO"; then :
14035: ac_cv_lib_socket_socket=yes
14036: else
14037: ac_cv_lib_socket_socket=no
14038: fi
14039: rm -f core conftest.err conftest.$ac_objext \
14040: conftest$ac_exeext conftest.$ac_ext
14041: LIBS=$ac_check_lib_save_LIBS
14042: fi
14043: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
14044: $as_echo "$ac_cv_lib_socket_socket" >&6; }
14045: if test "x$ac_cv_lib_socket_socket" = xyes; then :
14046: cat >>confdefs.h <<_ACEOF
14047: #define HAVE_LIBSOCKET 1
14048: _ACEOF
14049:
14050: LIBS="-lsocket $LIBS"
14051:
14052: fi
14053:
14054: fi
14055:
14056: ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
14057: if test "x$ac_cv_func_gethostbyname" = xyes; then :
14058:
14059: else
14060: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
14061: $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
14062: if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
14063: $as_echo_n "(cached) " >&6
14064: else
14065: ac_check_lib_save_LIBS=$LIBS
14066: LIBS="-lnsl $LIBS"
14067: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14068: /* end confdefs.h. */
14069:
14070: /* Override any GCC internal prototype to avoid an error.
14071: Use char because int might match the return type of a GCC
14072: builtin and then its argument prototype would still apply. */
14073: #ifdef __cplusplus
14074: extern "C"
14075: #endif
14076: char gethostbyname ();
14077: int
14078: main ()
14079: {
14080: return gethostbyname ();
14081: ;
14082: return 0;
14083: }
14084: _ACEOF
14085: if ac_fn_c_try_link "$LINENO"; then :
14086: ac_cv_lib_nsl_gethostbyname=yes
14087: else
14088: ac_cv_lib_nsl_gethostbyname=no
14089: fi
14090: rm -f core conftest.err conftest.$ac_objext \
14091: conftest$ac_exeext conftest.$ac_ext
14092: LIBS=$ac_check_lib_save_LIBS
14093: fi
14094: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
14095: $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
14096: if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
14097: cat >>confdefs.h <<_ACEOF
14098: #define HAVE_LIBNSL 1
14099: _ACEOF
14100:
14101: LIBS="-lnsl $LIBS"
14102:
14103: fi
14104:
14105: fi
14106:
14107:
1.5 ohara 14108: ac_config_files="$ac_config_files Makefile"
1.1 noro 14109:
14110: cat >confcache <<\_ACEOF
14111: # This file is a shell script that caches the results of configure
14112: # tests run on this system so they can be shared between configure
14113: # scripts and configure runs, see configure's option --config-cache.
14114: # It is not useful on other systems. If it contains results you don't
14115: # want to keep, you may remove or edit it.
14116: #
14117: # config.status only pays attention to the cache file if you give it
14118: # the --recheck option to rerun configure.
14119: #
14120: # `ac_cv_env_foo' variables (set or unset) will be overridden when
14121: # loading this file, other *unset* `ac_cv_foo' will be assigned the
14122: # following values.
14123:
14124: _ACEOF
14125:
14126: # The following way of writing the cache mishandles newlines in values,
14127: # but we know of no workaround that is simple, portable, and efficient.
14128: # So, we kill variables containing newlines.
14129: # Ultrix sh set writes to stderr and can't be redirected directly,
14130: # and sets the high bit in the cache file unless we assign to the vars.
14131: (
14132: for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14133: eval ac_val=\$$ac_var
14134: case $ac_val in #(
14135: *${as_nl}*)
14136: case $ac_var in #(
14137: *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14138: $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14139: esac
14140: case $ac_var in #(
14141: _ | IFS | as_nl) ;; #(
14142: BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14143: *) { eval $ac_var=; unset $ac_var;} ;;
14144: esac ;;
14145: esac
14146: done
14147:
14148: (set) 2>&1 |
14149: case $as_nl`(ac_space=' '; set) 2>&1` in #(
14150: *${as_nl}ac_space=\ *)
14151: # `set' does not quote correctly, so add quotes: double-quote
14152: # substitution turns \\\\ into \\, and sed turns \\ into \.
14153: sed -n \
14154: "s/'/'\\\\''/g;
14155: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14156: ;; #(
14157: *)
14158: # `set' quotes correctly as required by POSIX, so do not add quotes.
14159: sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14160: ;;
14161: esac |
14162: sort
14163: ) |
14164: sed '
14165: /^ac_cv_env_/b end
14166: t clear
14167: :clear
14168: s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14169: t end
14170: s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14171: :end' >>confcache
14172: if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14173: if test -w "$cache_file"; then
14174: if test "x$cache_file" != "x/dev/null"; then
14175: { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14176: $as_echo "$as_me: updating cache $cache_file" >&6;}
14177: if test ! -f "$cache_file" || test -h "$cache_file"; then
14178: cat confcache >"$cache_file"
14179: else
14180: case $cache_file in #(
14181: */* | ?:*)
14182: mv -f confcache "$cache_file"$$ &&
14183: mv -f "$cache_file"$$ "$cache_file" ;; #(
14184: *)
14185: mv -f confcache "$cache_file" ;;
14186: esac
14187: fi
14188: fi
14189: else
14190: { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14191: $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14192: fi
14193: fi
14194: rm -f confcache
14195:
14196: test "x$prefix" = xNONE && prefix=$ac_default_prefix
14197: # Let make expand exec_prefix.
14198: test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14199:
14200: # Transform confdefs.h into DEFS.
14201: # Protect against shell expansion while executing Makefile rules.
14202: # Protect against Makefile macro expansion.
14203: #
14204: # If the first sed substitution is executed (which looks for macros that
14205: # take arguments), then branch to the quote section. Otherwise,
14206: # look for a macro that doesn't take arguments.
14207: ac_script='
14208: :mline
14209: /\\$/{
14210: N
14211: s,\\\n,,
14212: b mline
14213: }
14214: t clear
14215: :clear
14216: s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
14217: t quote
14218: s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
14219: t quote
14220: b any
14221: :quote
14222: s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
14223: s/\[/\\&/g
14224: s/\]/\\&/g
14225: s/\$/$$/g
14226: H
14227: :any
14228: ${
14229: g
14230: s/^\n//
14231: s/\n/ /g
14232: p
14233: }
14234: '
14235: DEFS=`sed -n "$ac_script" confdefs.h`
14236:
14237:
14238: ac_libobjs=
14239: ac_ltlibobjs=
14240: U=
14241: for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14242: # 1. Remove the extension, and $U if already installed.
14243: ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14244: ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14245: # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14246: # will be set to the directory where LIBOBJS objects are built.
14247: as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14248: as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14249: done
14250: LIBOBJS=$ac_libobjs
14251:
14252: LTLIBOBJS=$ac_ltlibobjs
14253:
14254:
14255: { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
14256: $as_echo_n "checking that generated files are newer than configure... " >&6; }
14257: if test -n "$am_sleep_pid"; then
14258: # Hide warnings about reused PIDs.
14259: wait $am_sleep_pid 2>/dev/null
14260: fi
14261: { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
14262: $as_echo "done" >&6; }
14263: if test -n "$EXEEXT"; then
14264: am__EXEEXT_TRUE=
14265: am__EXEEXT_FALSE='#'
14266: else
14267: am__EXEEXT_TRUE='#'
14268: am__EXEEXT_FALSE=
14269: fi
14270:
14271: if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
14272: as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
14273: Usually this means the macro was only invoked conditionally." "$LINENO" 5
14274: fi
14275: if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14276: as_fn_error $? "conditional \"AMDEP\" was never defined.
14277: Usually this means the macro was only invoked conditionally." "$LINENO" 5
14278: fi
14279: if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14280: as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
14281: Usually this means the macro was only invoked conditionally." "$LINENO" 5
14282: fi
1.5 ohara 14283: if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14284: as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
14285: Usually this means the macro was only invoked conditionally." "$LINENO" 5
14286: fi
1.6 ! ohara 14287: if test -z "${ASIR_STATIC_TRUE}" && test -z "${ASIR_STATIC_FALSE}"; then
! 14288: as_fn_error $? "conditional \"ASIR_STATIC\" was never defined.
! 14289: Usually this means the macro was only invoked conditionally." "$LINENO" 5
! 14290: fi
1.1 noro 14291: if test -z "${USE_PLOT_TRUE}" && test -z "${USE_PLOT_FALSE}"; then
14292: as_fn_error $? "conditional \"USE_PLOT\" was never defined.
14293: Usually this means the macro was only invoked conditionally." "$LINENO" 5
14294: fi
14295:
14296: : "${CONFIG_STATUS=./config.status}"
14297: ac_write_fail=0
14298: ac_clean_files_save=$ac_clean_files
14299: ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14300: { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14301: $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14302: as_write_fail=0
14303: cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14304: #! $SHELL
14305: # Generated by $as_me.
14306: # Run this file to recreate the current configuration.
14307: # Compiler output produced by configure, useful for debugging
14308: # configure, is in config.log if it exists.
14309:
14310: debug=false
14311: ac_cs_recheck=false
14312: ac_cs_silent=false
14313:
14314: SHELL=\${CONFIG_SHELL-$SHELL}
14315: export SHELL
14316: _ASEOF
14317: cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14318: ## -------------------- ##
14319: ## M4sh Initialization. ##
14320: ## -------------------- ##
14321:
14322: # Be more Bourne compatible
14323: DUALCASE=1; export DUALCASE # for MKS sh
14324: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14325: emulate sh
14326: NULLCMD=:
14327: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14328: # is contrary to our usage. Disable this feature.
14329: alias -g '${1+"$@"}'='"$@"'
14330: setopt NO_GLOB_SUBST
14331: else
14332: case `(set -o) 2>/dev/null` in #(
14333: *posix*) :
14334: set -o posix ;; #(
14335: *) :
14336: ;;
14337: esac
14338: fi
14339:
14340:
14341: as_nl='
14342: '
14343: export as_nl
14344: # Printing a long string crashes Solaris 7 /usr/bin/printf.
14345: as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14346: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14347: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14348: # Prefer a ksh shell builtin over an external printf program on Solaris,
14349: # but without wasting forks for bash or zsh.
14350: if test -z "$BASH_VERSION$ZSH_VERSION" \
14351: && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14352: as_echo='print -r --'
14353: as_echo_n='print -rn --'
14354: elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14355: as_echo='printf %s\n'
14356: as_echo_n='printf %s'
14357: else
14358: if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14359: as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14360: as_echo_n='/usr/ucb/echo -n'
14361: else
14362: as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14363: as_echo_n_body='eval
14364: arg=$1;
14365: case $arg in #(
14366: *"$as_nl"*)
14367: expr "X$arg" : "X\\(.*\\)$as_nl";
14368: arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14369: esac;
14370: expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14371: '
14372: export as_echo_n_body
14373: as_echo_n='sh -c $as_echo_n_body as_echo'
14374: fi
14375: export as_echo_body
14376: as_echo='sh -c $as_echo_body as_echo'
14377: fi
14378:
14379: # The user is always right.
14380: if test "${PATH_SEPARATOR+set}" != set; then
14381: PATH_SEPARATOR=:
14382: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14383: (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14384: PATH_SEPARATOR=';'
14385: }
14386: fi
14387:
14388:
14389: # IFS
14390: # We need space, tab and new line, in precisely that order. Quoting is
14391: # there to prevent editors from complaining about space-tab.
14392: # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14393: # splitting by setting IFS to empty value.)
14394: IFS=" "" $as_nl"
14395:
14396: # Find who we are. Look in the path if we contain no directory separator.
14397: as_myself=
14398: case $0 in #((
14399: *[\\/]* ) as_myself=$0 ;;
14400: *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14401: for as_dir in $PATH
14402: do
14403: IFS=$as_save_IFS
14404: test -z "$as_dir" && as_dir=.
14405: test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14406: done
14407: IFS=$as_save_IFS
14408:
14409: ;;
14410: esac
14411: # We did not find ourselves, most probably we were run as `sh COMMAND'
14412: # in which case we are not to be found in the path.
14413: if test "x$as_myself" = x; then
14414: as_myself=$0
14415: fi
14416: if test ! -f "$as_myself"; then
14417: $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14418: exit 1
14419: fi
14420:
14421: # Unset variables that we do not need and which cause bugs (e.g. in
14422: # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14423: # suppresses any "Segmentation fault" message there. '((' could
14424: # trigger a bug in pdksh 5.2.14.
14425: for as_var in BASH_ENV ENV MAIL MAILPATH
14426: do eval test x\${$as_var+set} = xset \
14427: && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14428: done
14429: PS1='$ '
14430: PS2='> '
14431: PS4='+ '
14432:
14433: # NLS nuisances.
14434: LC_ALL=C
14435: export LC_ALL
14436: LANGUAGE=C
14437: export LANGUAGE
14438:
14439: # CDPATH.
14440: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14441:
14442:
14443: # as_fn_error STATUS ERROR [LINENO LOG_FD]
14444: # ----------------------------------------
14445: # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14446: # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14447: # script with STATUS, using 1 if that was 0.
14448: as_fn_error ()
14449: {
14450: as_status=$1; test $as_status -eq 0 && as_status=1
14451: if test "$4"; then
14452: as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14453: $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
14454: fi
14455: $as_echo "$as_me: error: $2" >&2
14456: as_fn_exit $as_status
14457: } # as_fn_error
14458:
14459:
14460: # as_fn_set_status STATUS
14461: # -----------------------
14462: # Set $? to STATUS, without forking.
14463: as_fn_set_status ()
14464: {
14465: return $1
14466: } # as_fn_set_status
14467:
14468: # as_fn_exit STATUS
14469: # -----------------
14470: # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14471: as_fn_exit ()
14472: {
14473: set +e
14474: as_fn_set_status $1
14475: exit $1
14476: } # as_fn_exit
14477:
14478: # as_fn_unset VAR
14479: # ---------------
14480: # Portably unset VAR.
14481: as_fn_unset ()
14482: {
14483: { eval $1=; unset $1;}
14484: }
14485: as_unset=as_fn_unset
14486: # as_fn_append VAR VALUE
14487: # ----------------------
14488: # Append the text in VALUE to the end of the definition contained in VAR. Take
14489: # advantage of any shell optimizations that allow amortized linear growth over
14490: # repeated appends, instead of the typical quadratic growth present in naive
14491: # implementations.
14492: if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14493: eval 'as_fn_append ()
14494: {
14495: eval $1+=\$2
14496: }'
14497: else
14498: as_fn_append ()
14499: {
14500: eval $1=\$$1\$2
14501: }
14502: fi # as_fn_append
14503:
14504: # as_fn_arith ARG...
14505: # ------------------
14506: # Perform arithmetic evaluation on the ARGs, and store the result in the
14507: # global $as_val. Take advantage of shells that can avoid forks. The arguments
14508: # must be portable across $(()) and expr.
14509: if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14510: eval 'as_fn_arith ()
14511: {
14512: as_val=$(( $* ))
14513: }'
14514: else
14515: as_fn_arith ()
14516: {
14517: as_val=`expr "$@" || test $? -eq 1`
14518: }
14519: fi # as_fn_arith
14520:
14521:
14522: if expr a : '\(a\)' >/dev/null 2>&1 &&
14523: test "X`expr 00001 : '.*\(...\)'`" = X001; then
14524: as_expr=expr
14525: else
14526: as_expr=false
14527: fi
14528:
14529: if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14530: as_basename=basename
14531: else
14532: as_basename=false
14533: fi
14534:
14535: if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14536: as_dirname=dirname
14537: else
14538: as_dirname=false
14539: fi
14540:
14541: as_me=`$as_basename -- "$0" ||
14542: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14543: X"$0" : 'X\(//\)$' \| \
14544: X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14545: $as_echo X/"$0" |
14546: sed '/^.*\/\([^/][^/]*\)\/*$/{
14547: s//\1/
14548: q
14549: }
14550: /^X\/\(\/\/\)$/{
14551: s//\1/
14552: q
14553: }
14554: /^X\/\(\/\).*/{
14555: s//\1/
14556: q
14557: }
14558: s/.*/./; q'`
14559:
14560: # Avoid depending upon Character Ranges.
14561: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14562: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14563: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14564: as_cr_digits='0123456789'
14565: as_cr_alnum=$as_cr_Letters$as_cr_digits
14566:
14567: ECHO_C= ECHO_N= ECHO_T=
14568: case `echo -n x` in #(((((
14569: -n*)
14570: case `echo 'xy\c'` in
14571: *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14572: xy) ECHO_C='\c';;
14573: *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14574: ECHO_T=' ';;
14575: esac;;
14576: *)
14577: ECHO_N='-n';;
14578: esac
14579:
14580: rm -f conf$$ conf$$.exe conf$$.file
14581: if test -d conf$$.dir; then
14582: rm -f conf$$.dir/conf$$.file
14583: else
14584: rm -f conf$$.dir
14585: mkdir conf$$.dir 2>/dev/null
14586: fi
14587: if (echo >conf$$.file) 2>/dev/null; then
14588: if ln -s conf$$.file conf$$ 2>/dev/null; then
14589: as_ln_s='ln -s'
14590: # ... but there are two gotchas:
14591: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14592: # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14593: # In both cases, we have to default to `cp -pR'.
14594: ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14595: as_ln_s='cp -pR'
14596: elif ln conf$$.file conf$$ 2>/dev/null; then
14597: as_ln_s=ln
14598: else
14599: as_ln_s='cp -pR'
14600: fi
14601: else
14602: as_ln_s='cp -pR'
14603: fi
14604: rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14605: rmdir conf$$.dir 2>/dev/null
14606:
14607:
14608: # as_fn_mkdir_p
14609: # -------------
14610: # Create "$as_dir" as a directory, including parents if necessary.
14611: as_fn_mkdir_p ()
14612: {
14613:
14614: case $as_dir in #(
14615: -*) as_dir=./$as_dir;;
14616: esac
14617: test -d "$as_dir" || eval $as_mkdir_p || {
14618: as_dirs=
14619: while :; do
14620: case $as_dir in #(
14621: *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14622: *) as_qdir=$as_dir;;
14623: esac
14624: as_dirs="'$as_qdir' $as_dirs"
14625: as_dir=`$as_dirname -- "$as_dir" ||
14626: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14627: X"$as_dir" : 'X\(//\)[^/]' \| \
14628: X"$as_dir" : 'X\(//\)$' \| \
14629: X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14630: $as_echo X"$as_dir" |
14631: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14632: s//\1/
14633: q
14634: }
14635: /^X\(\/\/\)[^/].*/{
14636: s//\1/
14637: q
14638: }
14639: /^X\(\/\/\)$/{
14640: s//\1/
14641: q
14642: }
14643: /^X\(\/\).*/{
14644: s//\1/
14645: q
14646: }
14647: s/.*/./; q'`
14648: test -d "$as_dir" && break
14649: done
14650: test -z "$as_dirs" || eval "mkdir $as_dirs"
14651: } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
14652:
14653:
14654: } # as_fn_mkdir_p
14655: if mkdir -p . 2>/dev/null; then
14656: as_mkdir_p='mkdir -p "$as_dir"'
14657: else
14658: test -d ./-p && rmdir ./-p
14659: as_mkdir_p=false
14660: fi
14661:
14662:
14663: # as_fn_executable_p FILE
14664: # -----------------------
14665: # Test if FILE is an executable regular file.
14666: as_fn_executable_p ()
14667: {
14668: test -f "$1" && test -x "$1"
14669: } # as_fn_executable_p
14670: as_test_x='test -x'
14671: as_executable_p=as_fn_executable_p
14672:
14673: # Sed expression to map a string onto a valid CPP name.
14674: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14675:
14676: # Sed expression to map a string onto a valid variable name.
14677: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14678:
14679:
14680: exec 6>&1
14681: ## ----------------------------------- ##
14682: ## Main body of $CONFIG_STATUS script. ##
14683: ## ----------------------------------- ##
14684: _ASEOF
14685: test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14686:
14687: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14688: # Save the log message, to keep $0 and so on meaningful, and to
14689: # report actual input values of CONFIG_FILES etc. instead of their
14690: # values after options handling.
14691: ac_log="
1.5 ohara 14692: This file was extended by asir $as_me 1.16, which was
1.1 noro 14693: generated by GNU Autoconf 2.69. Invocation command line was
14694:
14695: CONFIG_FILES = $CONFIG_FILES
14696: CONFIG_HEADERS = $CONFIG_HEADERS
14697: CONFIG_LINKS = $CONFIG_LINKS
14698: CONFIG_COMMANDS = $CONFIG_COMMANDS
14699: $ $0 $@
14700:
14701: on `(hostname || uname -n) 2>/dev/null | sed 1q`
14702: "
14703:
14704: _ACEOF
14705:
14706: case $ac_config_files in *"
14707: "*) set x $ac_config_files; shift; ac_config_files=$*;;
14708: esac
14709:
14710:
14711:
14712: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14713: # Files that config.status was made for.
14714: config_files="$ac_config_files"
14715: config_commands="$ac_config_commands"
14716:
14717: _ACEOF
14718:
14719: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14720: ac_cs_usage="\
14721: \`$as_me' instantiates files and other configuration actions
14722: from templates according to the current configuration. Unless the files
14723: and actions are specified as TAGs, all are instantiated by default.
14724:
14725: Usage: $0 [OPTION]... [TAG]...
14726:
14727: -h, --help print this help, then exit
14728: -V, --version print version number and configuration settings, then exit
14729: --config print configuration, then exit
14730: -q, --quiet, --silent
14731: do not print progress messages
14732: -d, --debug don't remove temporary files
14733: --recheck update $as_me by reconfiguring in the same conditions
14734: --file=FILE[:TEMPLATE]
14735: instantiate the configuration file FILE
14736:
14737: Configuration files:
14738: $config_files
14739:
14740: Configuration commands:
14741: $config_commands
14742:
14743: Report bugs to the package provider."
14744:
14745: _ACEOF
14746: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14747: ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
14748: ac_cs_version="\\
1.5 ohara 14749: asir config.status 1.16
1.1 noro 14750: configured by $0, generated by GNU Autoconf 2.69,
14751: with options \\"\$ac_cs_config\\"
14752:
14753: Copyright (C) 2012 Free Software Foundation, Inc.
14754: This config.status script is free software; the Free Software Foundation
14755: gives unlimited permission to copy, distribute and modify it."
14756:
14757: ac_pwd='$ac_pwd'
14758: srcdir='$srcdir'
14759: INSTALL='$INSTALL'
14760: MKDIR_P='$MKDIR_P'
14761: AWK='$AWK'
14762: test -n "\$AWK" || AWK=awk
14763: _ACEOF
14764:
14765: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14766: # The default lists apply if the user does not specify any file.
14767: ac_need_defaults=:
14768: while test $# != 0
14769: do
14770: case $1 in
14771: --*=?*)
14772: ac_option=`expr "X$1" : 'X\([^=]*\)='`
14773: ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14774: ac_shift=:
14775: ;;
14776: --*=)
14777: ac_option=`expr "X$1" : 'X\([^=]*\)='`
14778: ac_optarg=
14779: ac_shift=:
14780: ;;
14781: *)
14782: ac_option=$1
14783: ac_optarg=$2
14784: ac_shift=shift
14785: ;;
14786: esac
14787:
14788: case $ac_option in
14789: # Handling of the options.
14790: -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14791: ac_cs_recheck=: ;;
14792: --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14793: $as_echo "$ac_cs_version"; exit ;;
14794: --config | --confi | --conf | --con | --co | --c )
14795: $as_echo "$ac_cs_config"; exit ;;
14796: --debug | --debu | --deb | --de | --d | -d )
14797: debug=: ;;
14798: --file | --fil | --fi | --f )
14799: $ac_shift
14800: case $ac_optarg in
14801: *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14802: '') as_fn_error $? "missing file argument" ;;
14803: esac
14804: as_fn_append CONFIG_FILES " '$ac_optarg'"
14805: ac_need_defaults=false;;
14806: --he | --h | --help | --hel | -h )
14807: $as_echo "$ac_cs_usage"; exit ;;
14808: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14809: | -silent | --silent | --silen | --sile | --sil | --si | --s)
14810: ac_cs_silent=: ;;
14811:
14812: # This is an error.
14813: -*) as_fn_error $? "unrecognized option: \`$1'
14814: Try \`$0 --help' for more information." ;;
14815:
14816: *) as_fn_append ac_config_targets " $1"
14817: ac_need_defaults=false ;;
14818:
14819: esac
14820: shift
14821: done
14822:
14823: ac_configure_extra_args=
14824:
14825: if $ac_cs_silent; then
14826: exec 6>/dev/null
14827: ac_configure_extra_args="$ac_configure_extra_args --silent"
14828: fi
14829:
14830: _ACEOF
14831: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14832: if \$ac_cs_recheck; then
14833: set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14834: shift
14835: \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14836: CONFIG_SHELL='$SHELL'
14837: export CONFIG_SHELL
14838: exec "\$@"
14839: fi
14840:
14841: _ACEOF
14842: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14843: exec 5>>config.log
14844: {
14845: echo
14846: sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14847: ## Running $as_me. ##
14848: _ASBOX
14849: $as_echo "$ac_log"
14850: } >&5
14851:
14852: _ACEOF
14853: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14854: #
14855: # INIT-COMMANDS
14856: #
1.5 ohara 14857: AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
14858:
14859:
14860: # The HP-UX ksh and POSIX shell print the target directory to stdout
14861: # if CDPATH is set.
14862: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14863:
14864: sed_quote_subst='$sed_quote_subst'
14865: double_quote_subst='$double_quote_subst'
14866: delay_variable_subst='$delay_variable_subst'
14867: macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
14868: macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
14869: enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
14870: enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
14871: pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
14872: enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
14873: shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
14874: SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
14875: ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
14876: PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
14877: host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
14878: host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
14879: host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
14880: build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
14881: build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
14882: build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
14883: SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
14884: Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
14885: GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
14886: EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
14887: FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
14888: LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
14889: NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
14890: LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
14891: max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
14892: ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
14893: exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
14894: lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
14895: lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
14896: lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
14897: lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
14898: lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
14899: reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
14900: reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
14901: OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
14902: deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
14903: file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
14904: file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
14905: want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
14906: DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
14907: sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
14908: AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
14909: AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
14910: archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
14911: STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
14912: RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
14913: old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14914: old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14915: old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
14916: lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
14917: CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
14918: CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
14919: compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
14920: GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
14921: lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
14922: lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
14923: lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
14924: lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
14925: 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"`'
14926: lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
14927: nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
14928: lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
14929: lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
14930: objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
14931: MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
14932: lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
14933: lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
14934: lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
14935: lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
14936: lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
14937: need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
14938: MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
14939: DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
14940: NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
14941: LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
14942: OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
14943: OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
14944: libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
14945: shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
14946: extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14947: archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
14948: enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
14949: export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
14950: whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
14951: compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
14952: old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
14953: old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14954: archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
14955: archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14956: module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
14957: module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14958: with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
14959: allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
14960: no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
14961: hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
14962: hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
14963: hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
14964: hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
14965: hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
14966: hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
14967: hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
14968: inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
14969: link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
14970: always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
14971: export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
14972: exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
14973: include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
14974: prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
14975: postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
14976: file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
14977: variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
14978: need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
14979: need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
14980: version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
14981: runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
14982: shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
14983: shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
14984: libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
14985: library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
14986: soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
14987: install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
14988: postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14989: postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14990: finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
14991: finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
14992: hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
14993: sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
14994: configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
14995: configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
14996: hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
14997: enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
14998: enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
14999: enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15000: old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15001: striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15002:
15003: LTCC='$LTCC'
15004: LTCFLAGS='$LTCFLAGS'
15005: compiler='$compiler_DEFAULT'
15006:
15007: # A function that is used when there is no print builtin or printf.
15008: func_fallback_echo ()
15009: {
15010: eval 'cat <<_LTECHO_EOF
15011: \$1
15012: _LTECHO_EOF'
15013: }
15014:
15015: # Quote evaled strings.
15016: for var in SHELL \
15017: ECHO \
15018: PATH_SEPARATOR \
15019: SED \
15020: GREP \
15021: EGREP \
15022: FGREP \
15023: LD \
15024: NM \
15025: LN_S \
15026: lt_SP2NL \
15027: lt_NL2SP \
15028: reload_flag \
15029: OBJDUMP \
15030: deplibs_check_method \
15031: file_magic_cmd \
15032: file_magic_glob \
15033: want_nocaseglob \
15034: DLLTOOL \
15035: sharedlib_from_linklib_cmd \
15036: AR \
15037: AR_FLAGS \
15038: archiver_list_spec \
15039: STRIP \
15040: RANLIB \
15041: CC \
15042: CFLAGS \
15043: compiler \
15044: lt_cv_sys_global_symbol_pipe \
15045: lt_cv_sys_global_symbol_to_cdecl \
15046: lt_cv_sys_global_symbol_to_import \
15047: lt_cv_sys_global_symbol_to_c_name_address \
15048: lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15049: lt_cv_nm_interface \
15050: nm_file_list_spec \
15051: lt_cv_truncate_bin \
15052: lt_prog_compiler_no_builtin_flag \
15053: lt_prog_compiler_pic \
15054: lt_prog_compiler_wl \
15055: lt_prog_compiler_static \
15056: lt_cv_prog_compiler_c_o \
15057: need_locks \
15058: MANIFEST_TOOL \
15059: DSYMUTIL \
15060: NMEDIT \
15061: LIPO \
15062: OTOOL \
15063: OTOOL64 \
15064: shrext_cmds \
15065: export_dynamic_flag_spec \
15066: whole_archive_flag_spec \
15067: compiler_needs_object \
15068: with_gnu_ld \
15069: allow_undefined_flag \
15070: no_undefined_flag \
15071: hardcode_libdir_flag_spec \
15072: hardcode_libdir_separator \
15073: exclude_expsyms \
15074: include_expsyms \
15075: file_list_spec \
15076: variables_saved_for_relink \
15077: libname_spec \
15078: library_names_spec \
15079: soname_spec \
15080: install_override_mode \
15081: finish_eval \
15082: old_striplib \
15083: striplib; do
15084: case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15085: *[\\\\\\\`\\"\\\$]*)
15086: eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
15087: ;;
15088: *)
15089: eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15090: ;;
15091: esac
15092: done
15093:
15094: # Double-quote double-evaled strings.
15095: for var in reload_cmds \
15096: old_postinstall_cmds \
15097: old_postuninstall_cmds \
15098: old_archive_cmds \
15099: extract_expsyms_cmds \
15100: old_archive_from_new_cmds \
15101: old_archive_from_expsyms_cmds \
15102: archive_cmds \
15103: archive_expsym_cmds \
15104: module_cmds \
15105: module_expsym_cmds \
15106: export_symbols_cmds \
15107: prelink_cmds \
15108: postlink_cmds \
15109: postinstall_cmds \
15110: postuninstall_cmds \
15111: finish_cmds \
15112: sys_lib_search_path_spec \
15113: configure_time_dlsearch_path \
15114: configure_time_lt_sys_library_path; do
15115: case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15116: *[\\\\\\\`\\"\\\$]*)
15117: eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
15118: ;;
15119: *)
15120: eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15121: ;;
15122: esac
15123: done
15124:
15125: ac_aux_dir='$ac_aux_dir'
15126:
15127: # See if we are running on zsh, and set the options that allow our
15128: # commands through without removal of \ escapes INIT.
15129: if test -n "\${ZSH_VERSION+set}"; then
15130: setopt NO_GLOB_SUBST
15131: fi
15132:
15133:
15134: PACKAGE='$PACKAGE'
15135: VERSION='$VERSION'
15136: RM='$RM'
15137: ofile='$ofile'
15138:
15139:
15140:
1.1 noro 15141:
15142: _ACEOF
15143:
15144: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15145:
15146: # Handling of arguments.
15147: for ac_config_target in $ac_config_targets
15148: do
15149: case $ac_config_target in
15150: "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
1.5 ohara 15151: "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
1.1 noro 15152: "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15153:
15154: *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15155: esac
15156: done
15157:
15158:
15159: # If the user did not use the arguments to specify the items to instantiate,
15160: # then the envvar interface is used. Set only those that are not.
15161: # We use the long form for the default assignment because of an extremely
15162: # bizarre bug on SunOS 4.1.3.
15163: if $ac_need_defaults; then
15164: test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15165: test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15166: fi
15167:
15168: # Have a temporary directory for convenience. Make it in the build tree
15169: # simply because there is no reason against having it here, and in addition,
15170: # creating and moving files from /tmp can sometimes cause problems.
15171: # Hook for its removal unless debugging.
15172: # Note that there is a small window in which the directory will not be cleaned:
15173: # after its creation but before its name has been assigned to `$tmp'.
15174: $debug ||
15175: {
15176: tmp= ac_tmp=
15177: trap 'exit_status=$?
15178: : "${ac_tmp:=$tmp}"
15179: { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15180: ' 0
15181: trap 'as_fn_exit 1' 1 2 13 15
15182: }
15183: # Create a (secure) tmp directory for tmp files.
15184:
15185: {
15186: tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15187: test -d "$tmp"
15188: } ||
15189: {
15190: tmp=./conf$$-$RANDOM
15191: (umask 077 && mkdir "$tmp")
15192: } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15193: ac_tmp=$tmp
15194:
15195: # Set up the scripts for CONFIG_FILES section.
15196: # No need to generate them if there are no CONFIG_FILES.
15197: # This happens for instance with `./config.status config.h'.
15198: if test -n "$CONFIG_FILES"; then
15199:
15200:
15201: ac_cr=`echo X | tr X '\015'`
15202: # On cygwin, bash can eat \r inside `` if the user requested igncr.
15203: # But we know of no other shell where ac_cr would be empty at this
15204: # point, so we can use a bashism as a fallback.
15205: if test "x$ac_cr" = x; then
15206: eval ac_cr=\$\'\\r\'
15207: fi
15208: ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15209: if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15210: ac_cs_awk_cr='\\r'
15211: else
15212: ac_cs_awk_cr=$ac_cr
15213: fi
15214:
15215: echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
15216: _ACEOF
15217:
15218:
15219: {
15220: echo "cat >conf$$subs.awk <<_ACEOF" &&
15221: echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15222: echo "_ACEOF"
15223: } >conf$$subs.sh ||
15224: as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15225: ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15226: ac_delim='%!_!# '
15227: for ac_last_try in false false false false false :; do
15228: . ./conf$$subs.sh ||
15229: as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15230:
15231: ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15232: if test $ac_delim_n = $ac_delim_num; then
15233: break
15234: elif $ac_last_try; then
15235: as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15236: else
15237: ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15238: fi
15239: done
15240: rm -f conf$$subs.sh
15241:
15242: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15243: cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
15244: _ACEOF
15245: sed -n '
15246: h
15247: s/^/S["/; s/!.*/"]=/
15248: p
15249: g
15250: s/^[^!]*!//
15251: :repl
15252: t repl
15253: s/'"$ac_delim"'$//
15254: t delim
15255: :nl
15256: h
15257: s/\(.\{148\}\)..*/\1/
15258: t more1
15259: s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15260: p
15261: n
15262: b repl
15263: :more1
15264: s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15265: p
15266: g
15267: s/.\{148\}//
15268: t nl
15269: :delim
15270: h
15271: s/\(.\{148\}\)..*/\1/
15272: t more2
15273: s/["\\]/\\&/g; s/^/"/; s/$/"/
15274: p
15275: b
15276: :more2
15277: s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15278: p
15279: g
15280: s/.\{148\}//
15281: t delim
15282: ' <conf$$subs.awk | sed '
15283: /^[^""]/{
15284: N
15285: s/\n//
15286: }
15287: ' >>$CONFIG_STATUS || ac_write_fail=1
15288: rm -f conf$$subs.awk
15289: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15290: _ACAWK
15291: cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
15292: for (key in S) S_is_set[key] = 1
15293: FS = ""
15294:
15295: }
15296: {
15297: line = $ 0
15298: nfields = split(line, field, "@")
15299: substed = 0
15300: len = length(field[1])
15301: for (i = 2; i < nfields; i++) {
15302: key = field[i]
15303: keylen = length(key)
15304: if (S_is_set[key]) {
15305: value = S[key]
15306: line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15307: len += length(value) + length(field[++i])
15308: substed = 1
15309: } else
15310: len += 1 + keylen
15311: }
15312:
15313: print line
15314: }
15315:
15316: _ACAWK
15317: _ACEOF
15318: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15319: if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15320: sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15321: else
15322: cat
15323: fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
15324: || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
15325: _ACEOF
15326:
15327: # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15328: # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
15329: # trailing colons and then remove the whole line if VPATH becomes empty
15330: # (actually we leave an empty line to preserve line numbers).
15331: if test "x$srcdir" = x.; then
15332: ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
15333: h
15334: s///
15335: s/^/:/
15336: s/[ ]*$/:/
15337: s/:\$(srcdir):/:/g
15338: s/:\${srcdir}:/:/g
15339: s/:@srcdir@:/:/g
15340: s/^:*//
15341: s/:*$//
15342: x
15343: s/\(=[ ]*\).*/\1/
15344: G
15345: s/\n//
15346: s/^[^=]*=[ ]*$//
15347: }'
15348: fi
15349:
15350: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15351: fi # test -n "$CONFIG_FILES"
15352:
15353:
15354: eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
15355: shift
15356: for ac_tag
15357: do
15358: case $ac_tag in
15359: :[FHLC]) ac_mode=$ac_tag; continue;;
15360: esac
15361: case $ac_mode$ac_tag in
15362: :[FHL]*:*);;
15363: :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
15364: :[FH]-) ac_tag=-:-;;
15365: :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15366: esac
15367: ac_save_IFS=$IFS
15368: IFS=:
15369: set x $ac_tag
15370: IFS=$ac_save_IFS
15371: shift
15372: ac_file=$1
15373: shift
15374:
15375: case $ac_mode in
15376: :L) ac_source=$1;;
15377: :[FH])
15378: ac_file_inputs=
15379: for ac_f
15380: do
15381: case $ac_f in
15382: -) ac_f="$ac_tmp/stdin";;
15383: *) # Look for the file first in the build tree, then in the source tree
15384: # (if the path is not absolute). The absolute path cannot be DOS-style,
15385: # because $ac_f cannot contain `:'.
15386: test -f "$ac_f" ||
15387: case $ac_f in
15388: [\\/$]*) false;;
15389: *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15390: esac ||
15391: as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15392: esac
15393: case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15394: as_fn_append ac_file_inputs " '$ac_f'"
15395: done
15396:
15397: # Let's still pretend it is `configure' which instantiates (i.e., don't
15398: # use $as_me), people would be surprised to read:
15399: # /* config.h. Generated by config.status. */
15400: configure_input='Generated from '`
15401: $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15402: `' by configure.'
15403: if test x"$ac_file" != x-; then
15404: configure_input="$ac_file. $configure_input"
15405: { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15406: $as_echo "$as_me: creating $ac_file" >&6;}
15407: fi
15408: # Neutralize special characters interpreted by sed in replacement strings.
15409: case $configure_input in #(
15410: *\&* | *\|* | *\\* )
15411: ac_sed_conf_input=`$as_echo "$configure_input" |
15412: sed 's/[\\\\&|]/\\\\&/g'`;; #(
15413: *) ac_sed_conf_input=$configure_input;;
15414: esac
15415:
15416: case $ac_tag in
15417: *:-:* | *:-) cat >"$ac_tmp/stdin" \
15418: || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
15419: esac
15420: ;;
15421: esac
15422:
15423: ac_dir=`$as_dirname -- "$ac_file" ||
15424: $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15425: X"$ac_file" : 'X\(//\)[^/]' \| \
15426: X"$ac_file" : 'X\(//\)$' \| \
15427: X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15428: $as_echo X"$ac_file" |
15429: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15430: s//\1/
15431: q
15432: }
15433: /^X\(\/\/\)[^/].*/{
15434: s//\1/
15435: q
15436: }
15437: /^X\(\/\/\)$/{
15438: s//\1/
15439: q
15440: }
15441: /^X\(\/\).*/{
15442: s//\1/
15443: q
15444: }
15445: s/.*/./; q'`
15446: as_dir="$ac_dir"; as_fn_mkdir_p
15447: ac_builddir=.
15448:
15449: case "$ac_dir" in
15450: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15451: *)
15452: ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15453: # A ".." for each directory in $ac_dir_suffix.
15454: ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15455: case $ac_top_builddir_sub in
15456: "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15457: *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15458: esac ;;
15459: esac
15460: ac_abs_top_builddir=$ac_pwd
15461: ac_abs_builddir=$ac_pwd$ac_dir_suffix
15462: # for backward compatibility:
15463: ac_top_builddir=$ac_top_build_prefix
15464:
15465: case $srcdir in
15466: .) # We are building in place.
15467: ac_srcdir=.
15468: ac_top_srcdir=$ac_top_builddir_sub
15469: ac_abs_top_srcdir=$ac_pwd ;;
15470: [\\/]* | ?:[\\/]* ) # Absolute name.
15471: ac_srcdir=$srcdir$ac_dir_suffix;
15472: ac_top_srcdir=$srcdir
15473: ac_abs_top_srcdir=$srcdir ;;
15474: *) # Relative name.
15475: ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15476: ac_top_srcdir=$ac_top_build_prefix$srcdir
15477: ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15478: esac
15479: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15480:
15481:
15482: case $ac_mode in
15483: :F)
15484: #
15485: # CONFIG_FILE
15486: #
15487:
15488: case $INSTALL in
15489: [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15490: *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15491: esac
15492: ac_MKDIR_P=$MKDIR_P
15493: case $MKDIR_P in
15494: [\\/$]* | ?:[\\/]* ) ;;
15495: */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15496: esac
15497: _ACEOF
15498:
15499: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15500: # If the template does not know about datarootdir, expand it.
15501: # FIXME: This hack should be removed a few years after 2.60.
15502: ac_datarootdir_hack=; ac_datarootdir_seen=
15503: ac_sed_dataroot='
15504: /datarootdir/ {
15505: p
15506: q
15507: }
15508: /@datadir@/p
15509: /@docdir@/p
15510: /@infodir@/p
15511: /@localedir@/p
15512: /@mandir@/p'
15513: case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15514: *datarootdir*) ac_datarootdir_seen=yes;;
15515: *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15516: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15517: $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15518: _ACEOF
15519: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15520: ac_datarootdir_hack='
15521: s&@datadir@&$datadir&g
15522: s&@docdir@&$docdir&g
15523: s&@infodir@&$infodir&g
15524: s&@localedir@&$localedir&g
15525: s&@mandir@&$mandir&g
15526: s&\\\${datarootdir}&$datarootdir&g' ;;
15527: esac
15528: _ACEOF
15529:
15530: # Neutralize VPATH when `$srcdir' = `.'.
15531: # Shell code in configure.ac might set extrasub.
15532: # FIXME: do we really want to maintain this feature?
15533: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15534: ac_sed_extra="$ac_vpsub
15535: $extrasub
15536: _ACEOF
15537: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15538: :t
15539: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15540: s|@configure_input@|$ac_sed_conf_input|;t t
15541: s&@top_builddir@&$ac_top_builddir_sub&;t t
15542: s&@top_build_prefix@&$ac_top_build_prefix&;t t
15543: s&@srcdir@&$ac_srcdir&;t t
15544: s&@abs_srcdir@&$ac_abs_srcdir&;t t
15545: s&@top_srcdir@&$ac_top_srcdir&;t t
15546: s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15547: s&@builddir@&$ac_builddir&;t t
15548: s&@abs_builddir@&$ac_abs_builddir&;t t
15549: s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15550: s&@INSTALL@&$ac_INSTALL&;t t
15551: s&@MKDIR_P@&$ac_MKDIR_P&;t t
15552: $ac_datarootdir_hack
15553: "
15554: eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
15555: >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15556:
15557: test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15558: { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
15559: { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
15560: "$ac_tmp/out"`; test -z "$ac_out"; } &&
15561: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15562: which seems to be undefined. Please make sure it is defined" >&5
15563: $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15564: which seems to be undefined. Please make sure it is defined" >&2;}
15565:
15566: rm -f "$ac_tmp/stdin"
15567: case $ac_file in
15568: -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
15569: *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
15570: esac \
15571: || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15572: ;;
15573:
15574:
15575: :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15576: $as_echo "$as_me: executing $ac_file commands" >&6;}
15577: ;;
15578: esac
15579:
15580:
15581: case $ac_file$ac_mode in
15582: "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
15583: # Older Autoconf quotes --file arguments for eval, but not when files
15584: # are listed without --file. Let's play safe and only enable the eval
15585: # if we detect the quoting.
1.5 ohara 15586: # TODO: see whether this extra hack can be removed once we start
15587: # requiring Autoconf 2.70 or later.
15588: case $CONFIG_FILES in #(
15589: *\'*) :
15590: eval set x "$CONFIG_FILES" ;; #(
15591: *) :
15592: set x $CONFIG_FILES ;; #(
15593: *) :
15594: ;;
15595: esac
1.1 noro 15596: shift
1.5 ohara 15597: # Used to flag and report bootstrapping failures.
15598: am_rc=0
15599: for am_mf
1.1 noro 15600: do
15601: # Strip MF so we end up with the name of the file.
1.5 ohara 15602: am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
15603: # Check whether this is an Automake generated Makefile which includes
15604: # dependency-tracking related rules and includes.
15605: # Grep'ing the whole file directly is not great: AIX grep has a line
1.1 noro 15606: # limit of 2048, but all sed's we know have understand at least 4000.
1.5 ohara 15607: sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
15608: || continue
15609: am_dirpart=`$as_dirname -- "$am_mf" ||
15610: $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15611: X"$am_mf" : 'X\(//\)[^/]' \| \
15612: X"$am_mf" : 'X\(//\)$' \| \
15613: X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
15614: $as_echo X"$am_mf" |
1.1 noro 15615: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15616: s//\1/
15617: q
15618: }
15619: /^X\(\/\/\)[^/].*/{
15620: s//\1/
15621: q
15622: }
15623: /^X\(\/\/\)$/{
15624: s//\1/
15625: q
15626: }
15627: /^X\(\/\).*/{
15628: s//\1/
15629: q
15630: }
15631: s/.*/./; q'`
1.5 ohara 15632: am_filepart=`$as_basename -- "$am_mf" ||
15633: $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
15634: X"$am_mf" : 'X\(//\)$' \| \
15635: X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
15636: $as_echo X/"$am_mf" |
15637: sed '/^.*\/\([^/][^/]*\)\/*$/{
1.1 noro 15638: s//\1/
15639: q
15640: }
1.5 ohara 15641: /^X\/\(\/\/\)$/{
1.1 noro 15642: s//\1/
15643: q
15644: }
1.5 ohara 15645: /^X\/\(\/\).*/{
1.1 noro 15646: s//\1/
15647: q
15648: }
15649: s/.*/./; q'`
1.5 ohara 15650: { echo "$as_me:$LINENO: cd "$am_dirpart" \
15651: && sed -e '/# am--include-marker/d' "$am_filepart" \
15652: | $MAKE -f - am--depfiles" >&5
15653: (cd "$am_dirpart" \
15654: && sed -e '/# am--include-marker/d' "$am_filepart" \
15655: | $MAKE -f - am--depfiles) >&5 2>&5
15656: ac_status=$?
15657: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15658: (exit $ac_status); } || am_rc=$?
15659: done
15660: if test $am_rc -ne 0; then
15661: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15662: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15663: as_fn_error $? "Something went wrong bootstrapping makefile fragments
15664: for automatic dependency tracking. Try re-running configure with the
15665: '--disable-dependency-tracking' option to at least be able to build
15666: the package (albeit without support for automatic dependency tracking).
15667: See \`config.log' for more details" "$LINENO" 5; }
15668: fi
15669: { am_dirpart=; unset am_dirpart;}
15670: { am_filepart=; unset am_filepart;}
15671: { am_mf=; unset am_mf;}
15672: { am_rc=; unset am_rc;}
15673: rm -f conftest-deps.mk
15674: }
15675: ;;
15676: "libtool":C)
15677:
15678: # See if we are running on zsh, and set the options that allow our
15679: # commands through without removal of \ escapes.
15680: if test -n "${ZSH_VERSION+set}"; then
15681: setopt NO_GLOB_SUBST
15682: fi
15683:
15684: cfgfile=${ofile}T
15685: trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15686: $RM "$cfgfile"
15687:
15688: cat <<_LT_EOF >> "$cfgfile"
15689: #! $SHELL
15690: # Generated automatically by $as_me ($PACKAGE) $VERSION
15691: # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15692: # NOTE: Changes made to this file will be lost: look at ltmain.sh.
15693:
15694: # Provide generalized library-building support services.
15695: # Written by Gordon Matzigkeit, 1996
15696:
15697: # Copyright (C) 2014 Free Software Foundation, Inc.
15698: # This is free software; see the source for copying conditions. There is NO
15699: # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
15700:
15701: # GNU Libtool is free software; you can redistribute it and/or modify
15702: # it under the terms of the GNU General Public License as published by
15703: # the Free Software Foundation; either version 2 of of the License, or
15704: # (at your option) any later version.
15705: #
15706: # As a special exception to the GNU General Public License, if you
15707: # distribute this file as part of a program or library that is built
15708: # using GNU Libtool, you may include this file under the same
15709: # distribution terms that you use for the rest of that program.
15710: #
15711: # GNU Libtool is distributed in the hope that it will be useful, but
15712: # WITHOUT ANY WARRANTY; without even the implied warranty of
15713: # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15714: # GNU General Public License for more details.
15715: #
15716: # You should have received a copy of the GNU General Public License
15717: # along with this program. If not, see <http://www.gnu.org/licenses/>.
15718:
15719:
15720: # The names of the tagged configurations supported by this script.
15721: available_tags=''
15722:
15723: # Configured defaults for sys_lib_dlsearch_path munging.
15724: : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
15725:
15726: # ### BEGIN LIBTOOL CONFIG
15727:
15728: # Which release of libtool.m4 was used?
15729: macro_version=$macro_version
15730: macro_revision=$macro_revision
15731:
15732: # Whether or not to build shared libraries.
15733: build_libtool_libs=$enable_shared
15734:
15735: # Whether or not to build static libraries.
15736: build_old_libs=$enable_static
15737:
15738: # What type of objects to build.
15739: pic_mode=$pic_mode
15740:
15741: # Whether or not to optimize for fast installation.
15742: fast_install=$enable_fast_install
15743:
15744: # Shared archive member basename,for filename based shared library versioning on AIX.
15745: shared_archive_member_spec=$shared_archive_member_spec
15746:
15747: # Shell to use when invoking shell scripts.
15748: SHELL=$lt_SHELL
15749:
15750: # An echo program that protects backslashes.
15751: ECHO=$lt_ECHO
15752:
15753: # The PATH separator for the build system.
15754: PATH_SEPARATOR=$lt_PATH_SEPARATOR
15755:
15756: # The host system.
15757: host_alias=$host_alias
15758: host=$host
15759: host_os=$host_os
15760:
15761: # The build system.
15762: build_alias=$build_alias
15763: build=$build
15764: build_os=$build_os
15765:
15766: # A sed program that does not truncate output.
15767: SED=$lt_SED
15768:
15769: # Sed that helps us avoid accidentally triggering echo(1) options like -n.
15770: Xsed="\$SED -e 1s/^X//"
15771:
15772: # A grep program that handles long lines.
15773: GREP=$lt_GREP
15774:
15775: # An ERE matcher.
15776: EGREP=$lt_EGREP
15777:
15778: # A literal string matcher.
15779: FGREP=$lt_FGREP
15780:
15781: # A BSD- or MS-compatible name lister.
15782: NM=$lt_NM
15783:
15784: # Whether we need soft or hard links.
15785: LN_S=$lt_LN_S
15786:
15787: # What is the maximum length of a command?
15788: max_cmd_len=$max_cmd_len
15789:
15790: # Object file suffix (normally "o").
15791: objext=$ac_objext
15792:
15793: # Executable file suffix (normally "").
15794: exeext=$exeext
15795:
15796: # whether the shell understands "unset".
15797: lt_unset=$lt_unset
15798:
15799: # turn spaces into newlines.
15800: SP2NL=$lt_lt_SP2NL
15801:
15802: # turn newlines into spaces.
15803: NL2SP=$lt_lt_NL2SP
15804:
15805: # convert \$build file names to \$host format.
15806: to_host_file_cmd=$lt_cv_to_host_file_cmd
15807:
15808: # convert \$build files to toolchain format.
15809: to_tool_file_cmd=$lt_cv_to_tool_file_cmd
15810:
15811: # An object symbol dumper.
15812: OBJDUMP=$lt_OBJDUMP
15813:
15814: # Method to check whether dependent libraries are shared objects.
15815: deplibs_check_method=$lt_deplibs_check_method
15816:
15817: # Command to use when deplibs_check_method = "file_magic".
15818: file_magic_cmd=$lt_file_magic_cmd
15819:
15820: # How to find potential files when deplibs_check_method = "file_magic".
15821: file_magic_glob=$lt_file_magic_glob
15822:
15823: # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
15824: want_nocaseglob=$lt_want_nocaseglob
15825:
15826: # DLL creation program.
15827: DLLTOOL=$lt_DLLTOOL
15828:
15829: # Command to associate shared and link libraries.
15830: sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
15831:
15832: # The archiver.
15833: AR=$lt_AR
15834:
15835: # Flags to create an archive.
15836: AR_FLAGS=$lt_AR_FLAGS
15837:
15838: # How to feed a file listing to the archiver.
15839: archiver_list_spec=$lt_archiver_list_spec
15840:
15841: # A symbol stripping program.
15842: STRIP=$lt_STRIP
15843:
15844: # Commands used to install an old-style archive.
15845: RANLIB=$lt_RANLIB
15846: old_postinstall_cmds=$lt_old_postinstall_cmds
15847: old_postuninstall_cmds=$lt_old_postuninstall_cmds
15848:
15849: # Whether to use a lock for old archive extraction.
15850: lock_old_archive_extraction=$lock_old_archive_extraction
15851:
15852: # A C compiler.
15853: LTCC=$lt_CC
15854:
15855: # LTCC compiler flags.
15856: LTCFLAGS=$lt_CFLAGS
15857:
15858: # Take the output of nm and produce a listing of raw symbols and C names.
15859: global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15860:
15861: # Transform the output of nm in a proper C declaration.
15862: global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15863:
15864: # Transform the output of nm into a list of symbols to manually relocate.
15865: global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
15866:
15867: # Transform the output of nm in a C name address pair.
15868: global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15869:
15870: # Transform the output of nm in a C name address pair when lib prefix is needed.
15871: global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15872:
15873: # The name lister interface.
15874: nm_interface=$lt_lt_cv_nm_interface
15875:
15876: # Specify filename containing input files for \$NM.
15877: nm_file_list_spec=$lt_nm_file_list_spec
15878:
15879: # The root where to search for dependent libraries,and where our libraries should be installed.
15880: lt_sysroot=$lt_sysroot
15881:
15882: # Command to truncate a binary pipe.
15883: lt_truncate_bin=$lt_lt_cv_truncate_bin
15884:
15885: # The name of the directory that contains temporary libtool files.
15886: objdir=$objdir
15887:
15888: # Used to examine libraries when file_magic_cmd begins with "file".
15889: MAGIC_CMD=$MAGIC_CMD
15890:
15891: # Must we lock files when doing compilation?
15892: need_locks=$lt_need_locks
15893:
15894: # Manifest tool.
15895: MANIFEST_TOOL=$lt_MANIFEST_TOOL
15896:
15897: # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15898: DSYMUTIL=$lt_DSYMUTIL
15899:
15900: # Tool to change global to local symbols on Mac OS X.
15901: NMEDIT=$lt_NMEDIT
15902:
15903: # Tool to manipulate fat objects and archives on Mac OS X.
15904: LIPO=$lt_LIPO
15905:
15906: # ldd/readelf like tool for Mach-O binaries on Mac OS X.
15907: OTOOL=$lt_OTOOL
15908:
15909: # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15910: OTOOL64=$lt_OTOOL64
15911:
15912: # Old archive suffix (normally "a").
15913: libext=$libext
15914:
15915: # Shared library suffix (normally ".so").
15916: shrext_cmds=$lt_shrext_cmds
15917:
15918: # The commands to extract the exported symbol list from a shared archive.
15919: extract_expsyms_cmds=$lt_extract_expsyms_cmds
15920:
15921: # Variables whose values should be saved in libtool wrapper scripts and
15922: # restored at link time.
15923: variables_saved_for_relink=$lt_variables_saved_for_relink
15924:
15925: # Do we need the "lib" prefix for modules?
15926: need_lib_prefix=$need_lib_prefix
15927:
15928: # Do we need a version for libraries?
15929: need_version=$need_version
15930:
15931: # Library versioning type.
15932: version_type=$version_type
15933:
15934: # Shared library runtime path variable.
15935: runpath_var=$runpath_var
15936:
15937: # Shared library path variable.
15938: shlibpath_var=$shlibpath_var
15939:
15940: # Is shlibpath searched before the hard-coded library search path?
15941: shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15942:
15943: # Format of library name prefix.
15944: libname_spec=$lt_libname_spec
15945:
15946: # List of archive names. First name is the real one, the rest are links.
15947: # The last name is the one that the linker finds with -lNAME
15948: library_names_spec=$lt_library_names_spec
15949:
15950: # The coded name of the library, if different from the real name.
15951: soname_spec=$lt_soname_spec
15952:
15953: # Permission mode override for installation of shared libraries.
15954: install_override_mode=$lt_install_override_mode
15955:
15956: # Command to use after installation of a shared archive.
15957: postinstall_cmds=$lt_postinstall_cmds
15958:
15959: # Command to use after uninstallation of a shared archive.
15960: postuninstall_cmds=$lt_postuninstall_cmds
15961:
15962: # Commands used to finish a libtool library installation in a directory.
15963: finish_cmds=$lt_finish_cmds
15964:
15965: # As "finish_cmds", except a single script fragment to be evaled but
15966: # not shown.
15967: finish_eval=$lt_finish_eval
15968:
15969: # Whether we should hardcode library paths into libraries.
15970: hardcode_into_libs=$hardcode_into_libs
15971:
15972: # Compile-time system search path for libraries.
15973: sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15974:
15975: # Detected run-time system search path for libraries.
15976: sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
15977:
15978: # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
15979: configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
15980:
15981: # Whether dlopen is supported.
15982: dlopen_support=$enable_dlopen
15983:
15984: # Whether dlopen of programs is supported.
15985: dlopen_self=$enable_dlopen_self
15986:
15987: # Whether dlopen of statically linked programs is supported.
15988: dlopen_self_static=$enable_dlopen_self_static
15989:
15990: # Commands to strip libraries.
15991: old_striplib=$lt_old_striplib
15992: striplib=$lt_striplib
15993:
15994:
15995: # The linker used to build libraries.
15996: LD=$lt_LD
15997:
15998: # How to create reloadable object files.
15999: reload_flag=$lt_reload_flag
16000: reload_cmds=$lt_reload_cmds
16001:
16002: # Commands used to build an old-style archive.
16003: old_archive_cmds=$lt_old_archive_cmds
16004:
16005: # A language specific compiler.
16006: CC=$lt_compiler
16007:
16008: # Is the compiler the GNU compiler?
16009: with_gcc=$GCC
16010:
16011: # Compiler flag to turn off builtin functions.
16012: no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16013:
16014: # Additional compiler flags for building library objects.
16015: pic_flag=$lt_lt_prog_compiler_pic
16016:
16017: # How to pass a linker flag through the compiler.
16018: wl=$lt_lt_prog_compiler_wl
16019:
16020: # Compiler flag to prevent dynamic linking.
16021: link_static_flag=$lt_lt_prog_compiler_static
16022:
16023: # Does compiler simultaneously support -c and -o options?
16024: compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16025:
16026: # Whether or not to add -lc for building shared libraries.
16027: build_libtool_need_lc=$archive_cmds_need_lc
16028:
16029: # Whether or not to disallow shared libs when runtime libs are static.
16030: allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16031:
16032: # Compiler flag to allow reflexive dlopens.
16033: export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16034:
16035: # Compiler flag to generate shared objects directly from archives.
16036: whole_archive_flag_spec=$lt_whole_archive_flag_spec
16037:
16038: # Whether the compiler copes with passing no objects directly.
16039: compiler_needs_object=$lt_compiler_needs_object
16040:
16041: # Create an old-style archive from a shared archive.
16042: old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16043:
16044: # Create a temporary old-style archive to link instead of a shared archive.
16045: old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16046:
16047: # Commands used to build a shared archive.
16048: archive_cmds=$lt_archive_cmds
16049: archive_expsym_cmds=$lt_archive_expsym_cmds
16050:
16051: # Commands used to build a loadable module if different from building
16052: # a shared archive.
16053: module_cmds=$lt_module_cmds
16054: module_expsym_cmds=$lt_module_expsym_cmds
16055:
16056: # Whether we are building with GNU ld or not.
16057: with_gnu_ld=$lt_with_gnu_ld
16058:
16059: # Flag that allows shared libraries with undefined symbols to be built.
16060: allow_undefined_flag=$lt_allow_undefined_flag
16061:
16062: # Flag that enforces no undefined symbols.
16063: no_undefined_flag=$lt_no_undefined_flag
16064:
16065: # Flag to hardcode \$libdir into a binary during linking.
16066: # This must work even if \$libdir does not exist
16067: hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16068:
16069: # Whether we need a single "-rpath" flag with a separated argument.
16070: hardcode_libdir_separator=$lt_hardcode_libdir_separator
16071:
16072: # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
16073: # DIR into the resulting binary.
16074: hardcode_direct=$hardcode_direct
16075:
16076: # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
16077: # DIR into the resulting binary and the resulting library dependency is
16078: # "absolute",i.e impossible to change by setting \$shlibpath_var if the
16079: # library is relocated.
16080: hardcode_direct_absolute=$hardcode_direct_absolute
16081:
16082: # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16083: # into the resulting binary.
16084: hardcode_minus_L=$hardcode_minus_L
16085:
16086: # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16087: # into the resulting binary.
16088: hardcode_shlibpath_var=$hardcode_shlibpath_var
16089:
16090: # Set to "yes" if building a shared library automatically hardcodes DIR
16091: # into the library and all subsequent libraries and executables linked
16092: # against it.
16093: hardcode_automatic=$hardcode_automatic
16094:
16095: # Set to yes if linker adds runtime paths of dependent libraries
16096: # to runtime path list.
16097: inherit_rpath=$inherit_rpath
16098:
16099: # Whether libtool must link a program against all its dependency libraries.
16100: link_all_deplibs=$link_all_deplibs
16101:
16102: # Set to "yes" if exported symbols are required.
16103: always_export_symbols=$always_export_symbols
16104:
16105: # The commands to list exported symbols.
16106: export_symbols_cmds=$lt_export_symbols_cmds
16107:
16108: # Symbols that should not be listed in the preloaded symbols.
16109: exclude_expsyms=$lt_exclude_expsyms
16110:
16111: # Symbols that must always be exported.
16112: include_expsyms=$lt_include_expsyms
16113:
16114: # Commands necessary for linking programs (against libraries) with templates.
16115: prelink_cmds=$lt_prelink_cmds
16116:
16117: # Commands necessary for finishing linking programs.
16118: postlink_cmds=$lt_postlink_cmds
16119:
16120: # Specify filename containing input files.
16121: file_list_spec=$lt_file_list_spec
16122:
16123: # How to hardcode a shared library path into an executable.
16124: hardcode_action=$hardcode_action
16125:
16126: # ### END LIBTOOL CONFIG
16127:
16128: _LT_EOF
16129:
16130: cat <<'_LT_EOF' >> "$cfgfile"
16131:
16132: # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
16133:
16134: # func_munge_path_list VARIABLE PATH
16135: # -----------------------------------
16136: # VARIABLE is name of variable containing _space_ separated list of
16137: # directories to be munged by the contents of PATH, which is string
16138: # having a format:
16139: # "DIR[:DIR]:"
16140: # string "DIR[ DIR]" will be prepended to VARIABLE
16141: # ":DIR[:DIR]"
16142: # string "DIR[ DIR]" will be appended to VARIABLE
16143: # "DIRP[:DIRP]::[DIRA:]DIRA"
16144: # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
16145: # "DIRA[ DIRA]" will be appended to VARIABLE
16146: # "DIR[:DIR]"
16147: # VARIABLE will be replaced by "DIR[ DIR]"
16148: func_munge_path_list ()
16149: {
16150: case x$2 in
16151: x)
16152: ;;
16153: *:)
16154: eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
16155: ;;
16156: x:*)
16157: eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
16158: ;;
16159: *::*)
16160: eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
16161: eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
16162: ;;
16163: *)
16164: eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
16165: ;;
16166: esac
16167: }
16168:
16169:
16170: # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
16171: func_cc_basename ()
16172: {
16173: for cc_temp in $*""; do
16174: case $cc_temp in
16175: compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16176: distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16177: \-*) ;;
16178: *) break;;
16179: esac
1.1 noro 16180: done
1.5 ohara 16181: func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
1.1 noro 16182: }
1.5 ohara 16183:
16184:
16185: # ### END FUNCTIONS SHARED WITH CONFIGURE
16186:
16187: _LT_EOF
16188:
16189: case $host_os in
16190: aix3*)
16191: cat <<\_LT_EOF >> "$cfgfile"
16192: # AIX sometimes has problems with the GCC collect2 program. For some
16193: # reason, if we set the COLLECT_NAMES environment variable, the problems
16194: # vanish in a puff of smoke.
16195: if test set != "${COLLECT_NAMES+set}"; then
16196: COLLECT_NAMES=
16197: export COLLECT_NAMES
16198: fi
16199: _LT_EOF
16200: ;;
16201: esac
16202:
16203:
16204: ltmain=$ac_aux_dir/ltmain.sh
16205:
16206:
16207: # We use sed instead of cat because bash on DJGPP gets confused if
16208: # if finds mixed CR/LF and LF-only lines. Since sed operates in
16209: # text mode, it properly converts lines to CR/LF. This bash problem
16210: # is reportedly fixed, but why not run on old versions too?
16211: sed '$q' "$ltmain" >> "$cfgfile" \
16212: || (rm -f "$cfgfile"; exit 1)
16213:
16214: mv -f "$cfgfile" "$ofile" ||
16215: (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16216: chmod +x "$ofile"
16217:
1.1 noro 16218: ;;
16219:
16220: esac
16221: done # for ac_tag
16222:
16223:
16224: as_fn_exit 0
16225: _ACEOF
16226: ac_clean_files=$ac_clean_files_save
16227:
16228: test $ac_write_fail = 0 ||
16229: as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
16230:
16231:
16232: # configure is writing to config.log, and then calls config.status.
16233: # config.status does its own redirection, appending to config.log.
16234: # Unfortunately, on DOS this fails, as config.log is still kept open
16235: # by configure, so config.status won't be able to write to it; its
16236: # output is simply discarded. So we exec the FD to /dev/null,
16237: # effectively closing config.log, so it can be properly (re)opened and
16238: # appended to by config.status. When coming back to configure, we
16239: # need to make the FD available again.
16240: if test "$no_create" != yes; then
16241: ac_cs_success=:
16242: ac_config_status_args=
16243: test "$silent" = yes &&
16244: ac_config_status_args="$ac_config_status_args --quiet"
16245: exec 5>/dev/null
16246: $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16247: exec 5>>config.log
16248: # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16249: # would make configure fail if this is the last instruction.
16250: $ac_cs_success || as_fn_exit 1
16251: fi
16252: if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16253: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16254: $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16255: fi
16256:
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>