c++: Fix g++.dg/ext/sve-sizeless-1.C regression
[official-gcc.git] / libgrust / configure
blob14a391643c692ce2793eed78b6de81d85146001e
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for libgrust version-unused.
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
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 ## -------------------- ##
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 *) :
30 esac
34 as_nl='
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"
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
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=';'
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"
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
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
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
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
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='+ '
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
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
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 *) :
174 esac
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; }
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 :
190 else
191 exitcode=1; echo positional parameters were not saved.
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
199 test \$(( 1 + 1 )) = 2 || exit 1
201 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
202 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205 PATH=/empty FPATH=/empty; export PATH FPATH
206 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
207 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
208 if (eval "$as_required") 2>/dev/null; then :
209 as_have_required=yes
210 else
211 as_have_required=no
213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
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
220 IFS=$as_save_IFS
221 test -z "$as_dir" && as_dir=.
222 as_found=:
223 case $as_dir in #(
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
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
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
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."
280 exit 1
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
290 ## --------------------- ##
291 ## M4sh Shell Functions. ##
292 ## --------------------- ##
293 # as_fn_unset VAR
294 # ---------------
295 # Portably unset VAR.
296 as_fn_unset ()
298 { eval $1=; unset $1;}
300 as_unset=as_fn_unset
302 # as_fn_set_status STATUS
303 # -----------------------
304 # Set $? to STATUS, without forking.
305 as_fn_set_status ()
307 return $1
308 } # as_fn_set_status
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 ()
315 set +e
316 as_fn_set_status $1
317 exit $1
318 } # as_fn_exit
320 # as_fn_mkdir_p
321 # -------------
322 # Create "$as_dir" as a directory, including parents if necessary.
323 as_fn_mkdir_p ()
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/
347 /^X\(\/\/\)[^/].*/{
348 s//\1/
351 /^X\(\/\/\)$/{
352 s//\1/
355 /^X\(\/\).*/{
356 s//\1/
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"
366 } # as_fn_mkdir_p
368 # as_fn_executable_p FILE
369 # -----------------------
370 # Test if FILE is an executable regular file.
371 as_fn_executable_p ()
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 ()
384 eval $1+=\$2
386 else
387 as_fn_append ()
389 eval $1=\$$1\$2
391 fi # as_fn_append
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 ()
401 as_val=$(( $* ))
403 else
404 as_fn_arith ()
406 as_val=`expr "$@" || test $? -eq 1`
408 fi # as_fn_arith
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 ()
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
423 $as_echo "$as_me: error: $2" >&2
424 as_fn_exit $as_status
425 } # as_fn_error
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
434 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435 as_basename=basename
436 else
437 as_basename=false
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
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/
455 /^X\/\(\/\/\)$/{
456 s//\1/
459 /^X\/\(\/\).*/{
460 s//\1/
463 s/.*/./; q'`
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
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 '
480 /[$]LINENO/=
481 ' <$as_myself |
482 sed '
483 s/[$]LINENO.*/&-/
484 t lineno
486 :lineno
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; }
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
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;;
518 ECHO_N='-n';;
519 esac
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
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'
542 else
543 as_ln_s='cp -pR'
545 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546 rmdir conf$$.dir 2>/dev/null
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
555 as_test_x='test -x'
556 as_executable_p=as_fn_executable_p
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'"
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'"
564 SHELL=${CONFIG_SHELL-/bin/sh}
567 test -n "$DJDIR" || exec 7<&0 </dev/null
568 exec 6>&1
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`
576 # Initializations.
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=
587 # Identity of this package.
588 PACKAGE_NAME='libgrust'
589 PACKAGE_TARNAME='libgrust'
590 PACKAGE_VERSION='version-unused'
591 PACKAGE_STRING='libgrust version-unused'
592 PACKAGE_BUGREPORT=''
593 PACKAGE_URL=''
595 ac_unique_file="Makefile.am"
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"
632 ac_subst_vars='am__EXEEXT_FALSE
633 am__EXEEXT_TRUE
634 LTLIBOBJS
635 LIBOBJS
636 get_gcc_base_ver
637 TARGET_LIBRARY_FALSE
638 TARGET_LIBRARY_TRUE
639 toolexeclibdir
640 toolexecdir
641 target_subdir
642 host_subdir
643 build_subdir
644 build_libsubdir
645 target_noncanonical
646 host_noncanonical
647 CXXCPP
648 OTOOL64
649 OTOOL
650 LIPO
651 NMEDIT
652 DSYMUTIL
653 RANLIB
654 OBJDUMP
655 LN_S
657 ac_ct_DUMPBIN
658 DUMPBIN
660 FGREP
662 LIBTOOL
663 am__fastdepCCAS_FALSE
664 am__fastdepCCAS_TRUE
665 CCASDEPMODE
666 CCASFLAGS
667 CCAS
668 am__fastdepCXX_FALSE
669 am__fastdepCXX_TRUE
670 CXXDEPMODE
671 ac_ct_CXX
672 CXXFLAGS
674 ac_ct_AR
676 EGREP
677 GREP
679 am__fastdepCC_FALSE
680 am__fastdepCC_TRUE
681 CCDEPMODE
682 am__nodep
683 AMDEPBACKSLASH
684 AMDEP_FALSE
685 AMDEP_TRUE
686 am__quote
687 am__include
688 DEPDIR
689 OBJEXT
690 EXEEXT
691 ac_ct_CC
692 CPPFLAGS
693 LDFLAGS
694 CFLAGS
696 AM_BACKSLASH
697 AM_DEFAULT_VERBOSITY
698 AM_DEFAULT_V
699 AM_V
700 am__untar
701 am__tar
702 AMTAR
703 am__leading_dot
704 SET_MAKE
706 mkdir_p
707 MKDIR_P
708 INSTALL_STRIP_PROGRAM
709 STRIP
710 install_sh
711 MAKEINFO
712 AUTOHEADER
713 AUTOMAKE
714 AUTOCONF
715 ACLOCAL
716 VERSION
717 PACKAGE
718 CYGPATH_W
719 am__isrc
720 INSTALL_DATA
721 INSTALL_SCRIPT
722 INSTALL_PROGRAM
723 MAINT
724 MAINTAINER_MODE_FALSE
725 MAINTAINER_MODE_TRUE
726 target_os
727 target_vendor
728 target_cpu
729 target
730 host_os
731 host_vendor
732 host_cpu
733 host
734 build_os
735 build_vendor
736 build_cpu
737 build
738 multi_basedir
739 target_alias
740 host_alias
741 build_alias
742 LIBS
743 ECHO_T
744 ECHO_N
745 ECHO_C
746 DEFS
747 mandir
748 localedir
749 libdir
750 psdir
751 pdfdir
752 dvidir
753 htmldir
754 infodir
755 docdir
756 oldincludedir
757 includedir
758 localstatedir
759 sharedstatedir
760 sysconfdir
761 datadir
762 datarootdir
763 libexecdir
764 sbindir
765 bindir
766 program_transform_name
767 prefix
768 exec_prefix
769 PACKAGE_URL
770 PACKAGE_BUGREPORT
771 PACKAGE_STRING
772 PACKAGE_VERSION
773 PACKAGE_TARNAME
774 PACKAGE_NAME
775 PATH_SEPARATOR
776 SHELL'
777 ac_subst_files=''
778 ac_user_opts='
779 enable_option_checking
780 enable_multilib
781 enable_maintainer_mode
782 enable_silent_rules
783 with_toolexeclibdir
784 enable_dependency_tracking
785 enable_werror
786 enable_cet
787 enable_shared
788 enable_static
789 with_pic
790 enable_fast_install
791 with_gnu_ld
792 enable_libtool_lock
793 enable_darwin_at_rpath
794 with_build_libsubdir
795 enable_version_specific_runtime_libs
796 with_gcc_major_version_only
798 ac_precious_vars='build_alias
799 host_alias
800 target_alias
802 CFLAGS
803 LDFLAGS
804 LIBS
805 CPPFLAGS
808 CXXFLAGS
810 CCAS
811 CCASFLAGS
812 CXXCPP'
815 # Initialize some variables set by options.
816 ac_init_help=
817 ac_init_version=false
818 ac_unrecognized_opts=
819 ac_unrecognized_sep=
820 # The variables have the same names as the options, with
821 # dashes changed to underlines.
822 cache_file=/dev/null
823 exec_prefix=NONE
824 no_create=
825 no_recursion=
826 prefix=NONE
827 program_prefix=NONE
828 program_suffix=NONE
829 program_transform_name=s,x,x,
830 silent=
831 site=
832 srcdir=
833 verbose=
834 x_includes=NONE
835 x_libraries=NONE
837 # Installation directory options.
838 # These are left unexpanded so users can "make install exec_prefix=/foo"
839 # and all the variables that are supposed to be based on exec_prefix
840 # by default will actually change.
841 # Use braces instead of parens because sh, perl, etc. also accept them.
842 # (The list follows the same order as the GNU Coding Standards.)
843 bindir='${exec_prefix}/bin'
844 sbindir='${exec_prefix}/sbin'
845 libexecdir='${exec_prefix}/libexec'
846 datarootdir='${prefix}/share'
847 datadir='${datarootdir}'
848 sysconfdir='${prefix}/etc'
849 sharedstatedir='${prefix}/com'
850 localstatedir='${prefix}/var'
851 includedir='${prefix}/include'
852 oldincludedir='/usr/include'
853 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
854 infodir='${datarootdir}/info'
855 htmldir='${docdir}'
856 dvidir='${docdir}'
857 pdfdir='${docdir}'
858 psdir='${docdir}'
859 libdir='${exec_prefix}/lib'
860 localedir='${datarootdir}/locale'
861 mandir='${datarootdir}/man'
863 ac_prev=
864 ac_dashdash=
865 for ac_option
867 # If the previous option needs an argument, assign it.
868 if test -n "$ac_prev"; then
869 eval $ac_prev=\$ac_option
870 ac_prev=
871 continue
874 case $ac_option in
875 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
876 *=) ac_optarg= ;;
877 *) ac_optarg=yes ;;
878 esac
880 # Accept the important Cygnus configure options, so we can diagnose typos.
882 case $ac_dashdash$ac_option in
884 ac_dashdash=yes ;;
886 -bindir | --bindir | --bindi | --bind | --bin | --bi)
887 ac_prev=bindir ;;
888 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
889 bindir=$ac_optarg ;;
891 -build | --build | --buil | --bui | --bu)
892 ac_prev=build_alias ;;
893 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
894 build_alias=$ac_optarg ;;
896 -cache-file | --cache-file | --cache-fil | --cache-fi \
897 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
898 ac_prev=cache_file ;;
899 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
900 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
901 cache_file=$ac_optarg ;;
903 --config-cache | -C)
904 cache_file=config.cache ;;
906 -datadir | --datadir | --datadi | --datad)
907 ac_prev=datadir ;;
908 -datadir=* | --datadir=* | --datadi=* | --datad=*)
909 datadir=$ac_optarg ;;
911 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
912 | --dataroo | --dataro | --datar)
913 ac_prev=datarootdir ;;
914 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
915 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
916 datarootdir=$ac_optarg ;;
918 -disable-* | --disable-*)
919 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
920 # Reject names that are not valid shell variable names.
921 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
922 as_fn_error $? "invalid feature name: $ac_useropt"
923 ac_useropt_orig=$ac_useropt
924 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
925 case $ac_user_opts in
927 "enable_$ac_useropt"
928 "*) ;;
929 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
930 ac_unrecognized_sep=', ';;
931 esac
932 eval enable_$ac_useropt=no ;;
934 -docdir | --docdir | --docdi | --doc | --do)
935 ac_prev=docdir ;;
936 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
937 docdir=$ac_optarg ;;
939 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
940 ac_prev=dvidir ;;
941 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
942 dvidir=$ac_optarg ;;
944 -enable-* | --enable-*)
945 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
946 # Reject names that are not valid shell variable names.
947 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
948 as_fn_error $? "invalid feature name: $ac_useropt"
949 ac_useropt_orig=$ac_useropt
950 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
951 case $ac_user_opts in
953 "enable_$ac_useropt"
954 "*) ;;
955 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
956 ac_unrecognized_sep=', ';;
957 esac
958 eval enable_$ac_useropt=\$ac_optarg ;;
960 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
961 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
962 | --exec | --exe | --ex)
963 ac_prev=exec_prefix ;;
964 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
965 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
966 | --exec=* | --exe=* | --ex=*)
967 exec_prefix=$ac_optarg ;;
969 -gas | --gas | --ga | --g)
970 # Obsolete; use --with-gas.
971 with_gas=yes ;;
973 -help | --help | --hel | --he | -h)
974 ac_init_help=long ;;
975 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
976 ac_init_help=recursive ;;
977 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
978 ac_init_help=short ;;
980 -host | --host | --hos | --ho)
981 ac_prev=host_alias ;;
982 -host=* | --host=* | --hos=* | --ho=*)
983 host_alias=$ac_optarg ;;
985 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
986 ac_prev=htmldir ;;
987 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
988 | --ht=*)
989 htmldir=$ac_optarg ;;
991 -includedir | --includedir | --includedi | --included | --include \
992 | --includ | --inclu | --incl | --inc)
993 ac_prev=includedir ;;
994 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
995 | --includ=* | --inclu=* | --incl=* | --inc=*)
996 includedir=$ac_optarg ;;
998 -infodir | --infodir | --infodi | --infod | --info | --inf)
999 ac_prev=infodir ;;
1000 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1001 infodir=$ac_optarg ;;
1003 -libdir | --libdir | --libdi | --libd)
1004 ac_prev=libdir ;;
1005 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1006 libdir=$ac_optarg ;;
1008 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1009 | --libexe | --libex | --libe)
1010 ac_prev=libexecdir ;;
1011 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1012 | --libexe=* | --libex=* | --libe=*)
1013 libexecdir=$ac_optarg ;;
1015 -localedir | --localedir | --localedi | --localed | --locale)
1016 ac_prev=localedir ;;
1017 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1018 localedir=$ac_optarg ;;
1020 -localstatedir | --localstatedir | --localstatedi | --localstated \
1021 | --localstate | --localstat | --localsta | --localst | --locals)
1022 ac_prev=localstatedir ;;
1023 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1024 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1025 localstatedir=$ac_optarg ;;
1027 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1028 ac_prev=mandir ;;
1029 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1030 mandir=$ac_optarg ;;
1032 -nfp | --nfp | --nf)
1033 # Obsolete; use --without-fp.
1034 with_fp=no ;;
1036 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1037 | --no-cr | --no-c | -n)
1038 no_create=yes ;;
1040 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1041 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1042 no_recursion=yes ;;
1044 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1045 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1046 | --oldin | --oldi | --old | --ol | --o)
1047 ac_prev=oldincludedir ;;
1048 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1049 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1050 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1051 oldincludedir=$ac_optarg ;;
1053 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1054 ac_prev=prefix ;;
1055 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1056 prefix=$ac_optarg ;;
1058 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1059 | --program-pre | --program-pr | --program-p)
1060 ac_prev=program_prefix ;;
1061 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1062 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1063 program_prefix=$ac_optarg ;;
1065 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1066 | --program-suf | --program-su | --program-s)
1067 ac_prev=program_suffix ;;
1068 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1069 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1070 program_suffix=$ac_optarg ;;
1072 -program-transform-name | --program-transform-name \
1073 | --program-transform-nam | --program-transform-na \
1074 | --program-transform-n | --program-transform- \
1075 | --program-transform | --program-transfor \
1076 | --program-transfo | --program-transf \
1077 | --program-trans | --program-tran \
1078 | --progr-tra | --program-tr | --program-t)
1079 ac_prev=program_transform_name ;;
1080 -program-transform-name=* | --program-transform-name=* \
1081 | --program-transform-nam=* | --program-transform-na=* \
1082 | --program-transform-n=* | --program-transform-=* \
1083 | --program-transform=* | --program-transfor=* \
1084 | --program-transfo=* | --program-transf=* \
1085 | --program-trans=* | --program-tran=* \
1086 | --progr-tra=* | --program-tr=* | --program-t=*)
1087 program_transform_name=$ac_optarg ;;
1089 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1090 ac_prev=pdfdir ;;
1091 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1092 pdfdir=$ac_optarg ;;
1094 -psdir | --psdir | --psdi | --psd | --ps)
1095 ac_prev=psdir ;;
1096 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1097 psdir=$ac_optarg ;;
1099 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1100 | -silent | --silent | --silen | --sile | --sil)
1101 silent=yes ;;
1103 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1104 ac_prev=sbindir ;;
1105 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1106 | --sbi=* | --sb=*)
1107 sbindir=$ac_optarg ;;
1109 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1110 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1111 | --sharedst | --shareds | --shared | --share | --shar \
1112 | --sha | --sh)
1113 ac_prev=sharedstatedir ;;
1114 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1115 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1116 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1117 | --sha=* | --sh=*)
1118 sharedstatedir=$ac_optarg ;;
1120 -site | --site | --sit)
1121 ac_prev=site ;;
1122 -site=* | --site=* | --sit=*)
1123 site=$ac_optarg ;;
1125 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1126 ac_prev=srcdir ;;
1127 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1128 srcdir=$ac_optarg ;;
1130 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1131 | --syscon | --sysco | --sysc | --sys | --sy)
1132 ac_prev=sysconfdir ;;
1133 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1134 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1135 sysconfdir=$ac_optarg ;;
1137 -target | --target | --targe | --targ | --tar | --ta | --t)
1138 ac_prev=target_alias ;;
1139 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1140 target_alias=$ac_optarg ;;
1142 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1143 verbose=yes ;;
1145 -version | --version | --versio | --versi | --vers | -V)
1146 ac_init_version=: ;;
1148 -with-* | --with-*)
1149 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1150 # Reject names that are not valid shell variable names.
1151 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1152 as_fn_error $? "invalid package name: $ac_useropt"
1153 ac_useropt_orig=$ac_useropt
1154 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1155 case $ac_user_opts in
1157 "with_$ac_useropt"
1158 "*) ;;
1159 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1160 ac_unrecognized_sep=', ';;
1161 esac
1162 eval with_$ac_useropt=\$ac_optarg ;;
1164 -without-* | --without-*)
1165 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1166 # Reject names that are not valid shell variable names.
1167 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1168 as_fn_error $? "invalid package name: $ac_useropt"
1169 ac_useropt_orig=$ac_useropt
1170 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1171 case $ac_user_opts in
1173 "with_$ac_useropt"
1174 "*) ;;
1175 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1176 ac_unrecognized_sep=', ';;
1177 esac
1178 eval with_$ac_useropt=no ;;
1180 --x)
1181 # Obsolete; use --with-x.
1182 with_x=yes ;;
1184 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1185 | --x-incl | --x-inc | --x-in | --x-i)
1186 ac_prev=x_includes ;;
1187 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1188 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1189 x_includes=$ac_optarg ;;
1191 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1192 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1193 ac_prev=x_libraries ;;
1194 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1195 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1196 x_libraries=$ac_optarg ;;
1198 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1199 Try \`$0 --help' for more information"
1202 *=*)
1203 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1204 # Reject names that are not valid shell variable names.
1205 case $ac_envvar in #(
1206 '' | [0-9]* | *[!_$as_cr_alnum]* )
1207 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1208 esac
1209 eval $ac_envvar=\$ac_optarg
1210 export $ac_envvar ;;
1213 # FIXME: should be removed in autoconf 3.0.
1214 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1215 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1216 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1217 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1220 esac
1221 done
1223 if test -n "$ac_prev"; then
1224 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1225 as_fn_error $? "missing argument to $ac_option"
1228 if test -n "$ac_unrecognized_opts"; then
1229 case $enable_option_checking in
1230 no) ;;
1231 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1232 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1233 esac
1236 # Check all directory arguments for consistency.
1237 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1238 datadir sysconfdir sharedstatedir localstatedir includedir \
1239 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1240 libdir localedir mandir
1242 eval ac_val=\$$ac_var
1243 # Remove trailing slashes.
1244 case $ac_val in
1245 */ )
1246 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1247 eval $ac_var=\$ac_val;;
1248 esac
1249 # Be sure to have absolute directory names.
1250 case $ac_val in
1251 [\\/$]* | ?:[\\/]* ) continue;;
1252 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1253 esac
1254 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1255 done
1257 # There might be people who depend on the old broken behavior: `$host'
1258 # used to hold the argument of --host etc.
1259 # FIXME: To remove some day.
1260 build=$build_alias
1261 host=$host_alias
1262 target=$target_alias
1264 # FIXME: To remove some day.
1265 if test "x$host_alias" != x; then
1266 if test "x$build_alias" = x; then
1267 cross_compiling=maybe
1268 elif test "x$build_alias" != "x$host_alias"; then
1269 cross_compiling=yes
1273 ac_tool_prefix=
1274 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1276 test "$silent" = yes && exec 6>/dev/null
1279 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1280 ac_ls_di=`ls -di .` &&
1281 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1282 as_fn_error $? "working directory cannot be determined"
1283 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1284 as_fn_error $? "pwd does not report name of working directory"
1287 # Find the source files, if location was not specified.
1288 if test -z "$srcdir"; then
1289 ac_srcdir_defaulted=yes
1290 # Try the directory containing this script, then the parent directory.
1291 ac_confdir=`$as_dirname -- "$as_myself" ||
1292 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1293 X"$as_myself" : 'X\(//\)[^/]' \| \
1294 X"$as_myself" : 'X\(//\)$' \| \
1295 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1296 $as_echo X"$as_myself" |
1297 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1298 s//\1/
1301 /^X\(\/\/\)[^/].*/{
1302 s//\1/
1305 /^X\(\/\/\)$/{
1306 s//\1/
1309 /^X\(\/\).*/{
1310 s//\1/
1313 s/.*/./; q'`
1314 srcdir=$ac_confdir
1315 if test ! -r "$srcdir/$ac_unique_file"; then
1316 srcdir=..
1318 else
1319 ac_srcdir_defaulted=no
1321 if test ! -r "$srcdir/$ac_unique_file"; then
1322 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1323 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1325 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1326 ac_abs_confdir=`(
1327 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1328 pwd)`
1329 # When building in place, set srcdir=.
1330 if test "$ac_abs_confdir" = "$ac_pwd"; then
1331 srcdir=.
1333 # Remove unnecessary trailing slashes from srcdir.
1334 # Double slashes in file names in object file debugging info
1335 # mess up M-x gdb in Emacs.
1336 case $srcdir in
1337 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1338 esac
1339 for ac_var in $ac_precious_vars; do
1340 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1341 eval ac_env_${ac_var}_value=\$${ac_var}
1342 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1343 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1344 done
1347 # Report the --help message.
1349 if test "$ac_init_help" = "long"; then
1350 # Omit some internal or obsolete options to make the list less imposing.
1351 # This message is too long to be a string in the A/UX 3.1 sh.
1352 cat <<_ACEOF
1353 \`configure' configures libgrust version-unused to adapt to many kinds of systems.
1355 Usage: $0 [OPTION]... [VAR=VALUE]...
1357 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1358 VAR=VALUE. See below for descriptions of some of the useful variables.
1360 Defaults for the options are specified in brackets.
1362 Configuration:
1363 -h, --help display this help and exit
1364 --help=short display options specific to this package
1365 --help=recursive display the short help of all the included packages
1366 -V, --version display version information and exit
1367 -q, --quiet, --silent do not print \`checking ...' messages
1368 --cache-file=FILE cache test results in FILE [disabled]
1369 -C, --config-cache alias for \`--cache-file=config.cache'
1370 -n, --no-create do not create output files
1371 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1373 Installation directories:
1374 --prefix=PREFIX install architecture-independent files in PREFIX
1375 [$ac_default_prefix]
1376 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1377 [PREFIX]
1379 By default, \`make install' will install all the files in
1380 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1381 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1382 for instance \`--prefix=\$HOME'.
1384 For better control, use the options below.
1386 Fine tuning of the installation directories:
1387 --bindir=DIR user executables [EPREFIX/bin]
1388 --sbindir=DIR system admin executables [EPREFIX/sbin]
1389 --libexecdir=DIR program executables [EPREFIX/libexec]
1390 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1391 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1392 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1393 --libdir=DIR object code libraries [EPREFIX/lib]
1394 --includedir=DIR C header files [PREFIX/include]
1395 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1396 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1397 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1398 --infodir=DIR info documentation [DATAROOTDIR/info]
1399 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1400 --mandir=DIR man documentation [DATAROOTDIR/man]
1401 --docdir=DIR documentation root [DATAROOTDIR/doc/libgrust]
1402 --htmldir=DIR html documentation [DOCDIR]
1403 --dvidir=DIR dvi documentation [DOCDIR]
1404 --pdfdir=DIR pdf documentation [DOCDIR]
1405 --psdir=DIR ps documentation [DOCDIR]
1406 _ACEOF
1408 cat <<\_ACEOF
1410 Program names:
1411 --program-prefix=PREFIX prepend PREFIX to installed program names
1412 --program-suffix=SUFFIX append SUFFIX to installed program names
1413 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1415 System types:
1416 --build=BUILD configure for building on BUILD [guessed]
1417 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1418 --target=TARGET configure for building compilers for TARGET [HOST]
1419 _ACEOF
1422 if test -n "$ac_init_help"; then
1423 case $ac_init_help in
1424 short | recursive ) echo "Configuration of libgrust version-unused:";;
1425 esac
1426 cat <<\_ACEOF
1428 Optional Features:
1429 --disable-option-checking ignore unrecognized --enable/--with options
1430 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1431 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1432 --enable-multilib build many library versions (default)
1433 --enable-maintainer-mode
1434 enable make rules and dependencies not useful (and
1435 sometimes confusing) to the casual installer
1436 --enable-silent-rules less verbose build output (undo: "make V=1")
1437 --disable-silent-rules verbose build output (undo: "make V=0")
1438 --enable-dependency-tracking
1439 do not reject slow dependency extractors
1440 --disable-dependency-tracking
1441 speeds up one-time build
1442 --disable-werror disable building with -Werror
1443 --enable-cet enable Intel CET in target libraries [default=auto]
1444 --enable-shared[=PKGS] build shared libraries [default=yes]
1445 --enable-static[=PKGS] build static libraries [default=yes]
1446 --enable-fast-install[=PKGS]
1447 optimize for fast installation [default=yes]
1448 --disable-libtool-lock avoid locking (might break parallel builds)
1449 --enable-darwin-at-rpath
1450 install libraries with @rpath/library-name, requires
1451 rpaths to be added to executables
1452 --enable-version-specific-runtime-libs Specify that runtime libraries should be installed in a compiler-specific directory
1454 Optional Packages:
1455 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1456 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1457 --with-toolexeclibdir=DIR
1458 install libraries built with a cross compiler within
1460 --with-pic try to use only PIC/non-PIC objects [default=use
1461 both]
1462 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1463 --with-build-libsubdir=DIR Directory where to find libraries for build system
1464 --with-gcc-major-version-only
1465 use only GCC major number in filesystem paths
1467 Some influential environment variables:
1468 CC C compiler command
1469 CFLAGS C compiler flags
1470 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1471 nonstandard directory <lib dir>
1472 LIBS libraries to pass to the linker, e.g. -l<library>
1473 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1474 you have headers in a nonstandard directory <include dir>
1475 CPP C preprocessor
1476 CXX C++ compiler command
1477 CXXFLAGS C++ compiler flags
1478 CCAS assembler compiler command (defaults to CC)
1479 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1480 CXXCPP C++ preprocessor
1482 Use these variables to override the choices made by `configure' or to help
1483 it to find libraries and programs with nonstandard names/locations.
1485 Report bugs to the package provider.
1486 _ACEOF
1487 ac_status=$?
1490 if test "$ac_init_help" = "recursive"; then
1491 # If there are subdirs, report their specific --help.
1492 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1493 test -d "$ac_dir" ||
1494 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1495 continue
1496 ac_builddir=.
1498 case "$ac_dir" in
1499 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1501 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1502 # A ".." for each directory in $ac_dir_suffix.
1503 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1504 case $ac_top_builddir_sub in
1505 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1506 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1507 esac ;;
1508 esac
1509 ac_abs_top_builddir=$ac_pwd
1510 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1511 # for backward compatibility:
1512 ac_top_builddir=$ac_top_build_prefix
1514 case $srcdir in
1515 .) # We are building in place.
1516 ac_srcdir=.
1517 ac_top_srcdir=$ac_top_builddir_sub
1518 ac_abs_top_srcdir=$ac_pwd ;;
1519 [\\/]* | ?:[\\/]* ) # Absolute name.
1520 ac_srcdir=$srcdir$ac_dir_suffix;
1521 ac_top_srcdir=$srcdir
1522 ac_abs_top_srcdir=$srcdir ;;
1523 *) # Relative name.
1524 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1525 ac_top_srcdir=$ac_top_build_prefix$srcdir
1526 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1527 esac
1528 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1530 cd "$ac_dir" || { ac_status=$?; continue; }
1531 # Check for guested configure.
1532 if test -f "$ac_srcdir/configure.gnu"; then
1533 echo &&
1534 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1535 elif test -f "$ac_srcdir/configure"; then
1536 echo &&
1537 $SHELL "$ac_srcdir/configure" --help=recursive
1538 else
1539 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1540 fi || ac_status=$?
1541 cd "$ac_pwd" || { ac_status=$?; break; }
1542 done
1545 test -n "$ac_init_help" && exit $ac_status
1546 if $ac_init_version; then
1547 cat <<\_ACEOF
1548 libgrust configure version-unused
1549 generated by GNU Autoconf 2.69
1551 Copyright (C) 2012 Free Software Foundation, Inc.
1552 This configure script is free software; the Free Software Foundation
1553 gives unlimited permission to copy, distribute and modify it.
1554 _ACEOF
1555 exit
1558 ## ------------------------ ##
1559 ## Autoconf initialization. ##
1560 ## ------------------------ ##
1562 # ac_fn_c_try_compile LINENO
1563 # --------------------------
1564 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1565 ac_fn_c_try_compile ()
1567 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1568 rm -f conftest.$ac_objext
1569 if { { ac_try="$ac_compile"
1570 case "(($ac_try" in
1571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1572 *) ac_try_echo=$ac_try;;
1573 esac
1574 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1575 $as_echo "$ac_try_echo"; } >&5
1576 (eval "$ac_compile") 2>conftest.err
1577 ac_status=$?
1578 if test -s conftest.err; then
1579 grep -v '^ *+' conftest.err >conftest.er1
1580 cat conftest.er1 >&5
1581 mv -f conftest.er1 conftest.err
1583 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1584 test $ac_status = 0; } && {
1585 test -z "$ac_c_werror_flag" ||
1586 test ! -s conftest.err
1587 } && test -s conftest.$ac_objext; then :
1588 ac_retval=0
1589 else
1590 $as_echo "$as_me: failed program was:" >&5
1591 sed 's/^/| /' conftest.$ac_ext >&5
1593 ac_retval=1
1595 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1596 as_fn_set_status $ac_retval
1598 } # ac_fn_c_try_compile
1600 # ac_fn_c_try_cpp LINENO
1601 # ----------------------
1602 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1603 ac_fn_c_try_cpp ()
1605 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1606 if { { ac_try="$ac_cpp conftest.$ac_ext"
1607 case "(($ac_try" in
1608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1609 *) ac_try_echo=$ac_try;;
1610 esac
1611 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1612 $as_echo "$ac_try_echo"; } >&5
1613 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1614 ac_status=$?
1615 if test -s conftest.err; then
1616 grep -v '^ *+' conftest.err >conftest.er1
1617 cat conftest.er1 >&5
1618 mv -f conftest.er1 conftest.err
1620 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1621 test $ac_status = 0; } > conftest.i && {
1622 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1623 test ! -s conftest.err
1624 }; then :
1625 ac_retval=0
1626 else
1627 $as_echo "$as_me: failed program was:" >&5
1628 sed 's/^/| /' conftest.$ac_ext >&5
1630 ac_retval=1
1632 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1633 as_fn_set_status $ac_retval
1635 } # ac_fn_c_try_cpp
1637 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1638 # -------------------------------------------------------
1639 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1640 # the include files in INCLUDES and setting the cache variable VAR
1641 # accordingly.
1642 ac_fn_c_check_header_mongrel ()
1644 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1645 if eval \${$3+:} false; then :
1646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1647 $as_echo_n "checking for $2... " >&6; }
1648 if eval \${$3+:} false; then :
1649 $as_echo_n "(cached) " >&6
1651 eval ac_res=\$$3
1652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1653 $as_echo "$ac_res" >&6; }
1654 else
1655 # Is the header compilable?
1656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1657 $as_echo_n "checking $2 usability... " >&6; }
1658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1659 /* end confdefs.h. */
1661 #include <$2>
1662 _ACEOF
1663 if ac_fn_c_try_compile "$LINENO"; then :
1664 ac_header_compiler=yes
1665 else
1666 ac_header_compiler=no
1668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1670 $as_echo "$ac_header_compiler" >&6; }
1672 # Is the header present?
1673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1674 $as_echo_n "checking $2 presence... " >&6; }
1675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1676 /* end confdefs.h. */
1677 #include <$2>
1678 _ACEOF
1679 if ac_fn_c_try_cpp "$LINENO"; then :
1680 ac_header_preproc=yes
1681 else
1682 ac_header_preproc=no
1684 rm -f conftest.err conftest.i conftest.$ac_ext
1685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1686 $as_echo "$ac_header_preproc" >&6; }
1688 # So? What about this header?
1689 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1690 yes:no: )
1691 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1692 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1693 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1694 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1696 no:yes:* )
1697 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1698 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1699 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1700 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1701 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1702 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1703 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1704 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1705 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1706 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1708 esac
1709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1710 $as_echo_n "checking for $2... " >&6; }
1711 if eval \${$3+:} false; then :
1712 $as_echo_n "(cached) " >&6
1713 else
1714 eval "$3=\$ac_header_compiler"
1716 eval ac_res=\$$3
1717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1718 $as_echo "$ac_res" >&6; }
1720 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1722 } # ac_fn_c_check_header_mongrel
1724 # ac_fn_c_try_run LINENO
1725 # ----------------------
1726 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1727 # that executables *can* be run.
1728 ac_fn_c_try_run ()
1730 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1731 if { { ac_try="$ac_link"
1732 case "(($ac_try" in
1733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1734 *) ac_try_echo=$ac_try;;
1735 esac
1736 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1737 $as_echo "$ac_try_echo"; } >&5
1738 (eval "$ac_link") 2>&5
1739 ac_status=$?
1740 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1741 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1742 { { case "(($ac_try" in
1743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1744 *) ac_try_echo=$ac_try;;
1745 esac
1746 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1747 $as_echo "$ac_try_echo"; } >&5
1748 (eval "$ac_try") 2>&5
1749 ac_status=$?
1750 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1751 test $ac_status = 0; }; }; then :
1752 ac_retval=0
1753 else
1754 $as_echo "$as_me: program exited with status $ac_status" >&5
1755 $as_echo "$as_me: failed program was:" >&5
1756 sed 's/^/| /' conftest.$ac_ext >&5
1758 ac_retval=$ac_status
1760 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1761 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1762 as_fn_set_status $ac_retval
1764 } # ac_fn_c_try_run
1766 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1767 # -------------------------------------------------------
1768 # Tests whether HEADER exists and can be compiled using the include files in
1769 # INCLUDES, setting the cache variable VAR accordingly.
1770 ac_fn_c_check_header_compile ()
1772 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1774 $as_echo_n "checking for $2... " >&6; }
1775 if eval \${$3+:} false; then :
1776 $as_echo_n "(cached) " >&6
1777 else
1778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1779 /* end confdefs.h. */
1781 #include <$2>
1782 _ACEOF
1783 if ac_fn_c_try_compile "$LINENO"; then :
1784 eval "$3=yes"
1785 else
1786 eval "$3=no"
1788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1790 eval ac_res=\$$3
1791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1792 $as_echo "$ac_res" >&6; }
1793 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1795 } # ac_fn_c_check_header_compile
1797 # ac_fn_cxx_try_compile LINENO
1798 # ----------------------------
1799 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1800 ac_fn_cxx_try_compile ()
1802 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1803 rm -f conftest.$ac_objext
1804 if { { ac_try="$ac_compile"
1805 case "(($ac_try" in
1806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1807 *) ac_try_echo=$ac_try;;
1808 esac
1809 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1810 $as_echo "$ac_try_echo"; } >&5
1811 (eval "$ac_compile") 2>conftest.err
1812 ac_status=$?
1813 if test -s conftest.err; then
1814 grep -v '^ *+' conftest.err >conftest.er1
1815 cat conftest.er1 >&5
1816 mv -f conftest.er1 conftest.err
1818 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1819 test $ac_status = 0; } && {
1820 test -z "$ac_cxx_werror_flag" ||
1821 test ! -s conftest.err
1822 } && test -s conftest.$ac_objext; then :
1823 ac_retval=0
1824 else
1825 $as_echo "$as_me: failed program was:" >&5
1826 sed 's/^/| /' conftest.$ac_ext >&5
1828 ac_retval=1
1830 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1831 as_fn_set_status $ac_retval
1833 } # ac_fn_cxx_try_compile
1835 # ac_fn_c_try_link LINENO
1836 # -----------------------
1837 # Try to link conftest.$ac_ext, and return whether this succeeded.
1838 ac_fn_c_try_link ()
1840 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1841 rm -f conftest.$ac_objext conftest$ac_exeext
1842 if { { ac_try="$ac_link"
1843 case "(($ac_try" in
1844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1845 *) ac_try_echo=$ac_try;;
1846 esac
1847 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1848 $as_echo "$ac_try_echo"; } >&5
1849 (eval "$ac_link") 2>conftest.err
1850 ac_status=$?
1851 if test -s conftest.err; then
1852 grep -v '^ *+' conftest.err >conftest.er1
1853 cat conftest.er1 >&5
1854 mv -f conftest.er1 conftest.err
1856 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1857 test $ac_status = 0; } && {
1858 test -z "$ac_c_werror_flag" ||
1859 test ! -s conftest.err
1860 } && test -s conftest$ac_exeext && {
1861 test "$cross_compiling" = yes ||
1862 test -x conftest$ac_exeext
1863 }; then :
1864 ac_retval=0
1865 else
1866 $as_echo "$as_me: failed program was:" >&5
1867 sed 's/^/| /' conftest.$ac_ext >&5
1869 ac_retval=1
1871 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1872 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1873 # interfere with the next link command; also delete a directory that is
1874 # left behind by Apple's compiler. We do this before executing the actions.
1875 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1876 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1877 as_fn_set_status $ac_retval
1879 } # ac_fn_c_try_link
1881 # ac_fn_c_check_func LINENO FUNC VAR
1882 # ----------------------------------
1883 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1884 ac_fn_c_check_func ()
1886 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1888 $as_echo_n "checking for $2... " >&6; }
1889 if eval \${$3+:} false; then :
1890 $as_echo_n "(cached) " >&6
1891 else
1892 if test x$gcc_no_link = xyes; then
1893 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1896 /* end confdefs.h. */
1897 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1898 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1899 #define $2 innocuous_$2
1901 /* System header to define __stub macros and hopefully few prototypes,
1902 which can conflict with char $2 (); below.
1903 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1904 <limits.h> exists even on freestanding compilers. */
1906 #ifdef __STDC__
1907 # include <limits.h>
1908 #else
1909 # include <assert.h>
1910 #endif
1912 #undef $2
1914 /* Override any GCC internal prototype to avoid an error.
1915 Use char because int might match the return type of a GCC
1916 builtin and then its argument prototype would still apply. */
1917 #ifdef __cplusplus
1918 extern "C"
1919 #endif
1920 char $2 ();
1921 /* The GNU C library defines this for functions which it implements
1922 to always fail with ENOSYS. Some functions are actually named
1923 something starting with __ and the normal name is an alias. */
1924 #if defined __stub_$2 || defined __stub___$2
1925 choke me
1926 #endif
1929 main ()
1931 return $2 ();
1933 return 0;
1935 _ACEOF
1936 if ac_fn_c_try_link "$LINENO"; then :
1937 eval "$3=yes"
1938 else
1939 eval "$3=no"
1941 rm -f core conftest.err conftest.$ac_objext \
1942 conftest$ac_exeext conftest.$ac_ext
1944 eval ac_res=\$$3
1945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1946 $as_echo "$ac_res" >&6; }
1947 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1949 } # ac_fn_c_check_func
1951 # ac_fn_cxx_try_cpp LINENO
1952 # ------------------------
1953 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1954 ac_fn_cxx_try_cpp ()
1956 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1957 if { { ac_try="$ac_cpp conftest.$ac_ext"
1958 case "(($ac_try" in
1959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1960 *) ac_try_echo=$ac_try;;
1961 esac
1962 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1963 $as_echo "$ac_try_echo"; } >&5
1964 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1965 ac_status=$?
1966 if test -s conftest.err; then
1967 grep -v '^ *+' conftest.err >conftest.er1
1968 cat conftest.er1 >&5
1969 mv -f conftest.er1 conftest.err
1971 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1972 test $ac_status = 0; } > conftest.i && {
1973 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1974 test ! -s conftest.err
1975 }; then :
1976 ac_retval=0
1977 else
1978 $as_echo "$as_me: failed program was:" >&5
1979 sed 's/^/| /' conftest.$ac_ext >&5
1981 ac_retval=1
1983 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1984 as_fn_set_status $ac_retval
1986 } # ac_fn_cxx_try_cpp
1988 # ac_fn_cxx_try_link LINENO
1989 # -------------------------
1990 # Try to link conftest.$ac_ext, and return whether this succeeded.
1991 ac_fn_cxx_try_link ()
1993 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1994 rm -f conftest.$ac_objext conftest$ac_exeext
1995 if { { ac_try="$ac_link"
1996 case "(($ac_try" in
1997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1998 *) ac_try_echo=$ac_try;;
1999 esac
2000 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2001 $as_echo "$ac_try_echo"; } >&5
2002 (eval "$ac_link") 2>conftest.err
2003 ac_status=$?
2004 if test -s conftest.err; then
2005 grep -v '^ *+' conftest.err >conftest.er1
2006 cat conftest.er1 >&5
2007 mv -f conftest.er1 conftest.err
2009 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2010 test $ac_status = 0; } && {
2011 test -z "$ac_cxx_werror_flag" ||
2012 test ! -s conftest.err
2013 } && test -s conftest$ac_exeext && {
2014 test "$cross_compiling" = yes ||
2015 test -x conftest$ac_exeext
2016 }; then :
2017 ac_retval=0
2018 else
2019 $as_echo "$as_me: failed program was:" >&5
2020 sed 's/^/| /' conftest.$ac_ext >&5
2022 ac_retval=1
2024 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2025 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2026 # interfere with the next link command; also delete a directory that is
2027 # left behind by Apple's compiler. We do this before executing the actions.
2028 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2029 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2030 as_fn_set_status $ac_retval
2032 } # ac_fn_cxx_try_link
2033 cat >config.log <<_ACEOF
2034 This file contains any messages produced by compilers while
2035 running configure, to aid debugging if configure makes a mistake.
2037 It was created by libgrust $as_me version-unused, which was
2038 generated by GNU Autoconf 2.69. Invocation command line was
2040 $ $0 $@
2042 _ACEOF
2043 exec 5>>config.log
2045 cat <<_ASUNAME
2046 ## --------- ##
2047 ## Platform. ##
2048 ## --------- ##
2050 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2051 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2052 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2053 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2054 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2056 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2057 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2059 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2060 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2061 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2062 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2063 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2064 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2065 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2067 _ASUNAME
2069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2070 for as_dir in $PATH
2072 IFS=$as_save_IFS
2073 test -z "$as_dir" && as_dir=.
2074 $as_echo "PATH: $as_dir"
2075 done
2076 IFS=$as_save_IFS
2078 } >&5
2080 cat >&5 <<_ACEOF
2083 ## ----------- ##
2084 ## Core tests. ##
2085 ## ----------- ##
2087 _ACEOF
2090 # Keep a trace of the command line.
2091 # Strip out --no-create and --no-recursion so they do not pile up.
2092 # Strip out --silent because we don't want to record it for future runs.
2093 # Also quote any args containing shell meta-characters.
2094 # Make two passes to allow for proper duplicate-argument suppression.
2095 ac_configure_args=
2096 ac_configure_args0=
2097 ac_configure_args1=
2098 ac_must_keep_next=false
2099 for ac_pass in 1 2
2101 for ac_arg
2103 case $ac_arg in
2104 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2105 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2106 | -silent | --silent | --silen | --sile | --sil)
2107 continue ;;
2108 *\'*)
2109 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2110 esac
2111 case $ac_pass in
2112 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2114 as_fn_append ac_configure_args1 " '$ac_arg'"
2115 if test $ac_must_keep_next = true; then
2116 ac_must_keep_next=false # Got value, back to normal.
2117 else
2118 case $ac_arg in
2119 *=* | --config-cache | -C | -disable-* | --disable-* \
2120 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2121 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2122 | -with-* | --with-* | -without-* | --without-* | --x)
2123 case "$ac_configure_args0 " in
2124 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2125 esac
2127 -* ) ac_must_keep_next=true ;;
2128 esac
2130 as_fn_append ac_configure_args " '$ac_arg'"
2132 esac
2133 done
2134 done
2135 { ac_configure_args0=; unset ac_configure_args0;}
2136 { ac_configure_args1=; unset ac_configure_args1;}
2138 # When interrupted or exit'd, cleanup temporary files, and complete
2139 # config.log. We remove comments because anyway the quotes in there
2140 # would cause problems or look ugly.
2141 # WARNING: Use '\'' to represent an apostrophe within the trap.
2142 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2143 trap 'exit_status=$?
2144 # Save into config.log some information that might help in debugging.
2146 echo
2148 $as_echo "## ---------------- ##
2149 ## Cache variables. ##
2150 ## ---------------- ##"
2151 echo
2152 # The following way of writing the cache mishandles newlines in values,
2154 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2155 eval ac_val=\$$ac_var
2156 case $ac_val in #(
2157 *${as_nl}*)
2158 case $ac_var in #(
2159 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2160 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2161 esac
2162 case $ac_var in #(
2163 _ | IFS | as_nl) ;; #(
2164 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2165 *) { eval $ac_var=; unset $ac_var;} ;;
2166 esac ;;
2167 esac
2168 done
2169 (set) 2>&1 |
2170 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2171 *${as_nl}ac_space=\ *)
2172 sed -n \
2173 "s/'\''/'\''\\\\'\'''\''/g;
2174 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2175 ;; #(
2177 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2179 esac |
2180 sort
2182 echo
2184 $as_echo "## ----------------- ##
2185 ## Output variables. ##
2186 ## ----------------- ##"
2187 echo
2188 for ac_var in $ac_subst_vars
2190 eval ac_val=\$$ac_var
2191 case $ac_val in
2192 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2193 esac
2194 $as_echo "$ac_var='\''$ac_val'\''"
2195 done | sort
2196 echo
2198 if test -n "$ac_subst_files"; then
2199 $as_echo "## ------------------- ##
2200 ## File substitutions. ##
2201 ## ------------------- ##"
2202 echo
2203 for ac_var in $ac_subst_files
2205 eval ac_val=\$$ac_var
2206 case $ac_val in
2207 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2208 esac
2209 $as_echo "$ac_var='\''$ac_val'\''"
2210 done | sort
2211 echo
2214 if test -s confdefs.h; then
2215 $as_echo "## ----------- ##
2216 ## confdefs.h. ##
2217 ## ----------- ##"
2218 echo
2219 cat confdefs.h
2220 echo
2222 test "$ac_signal" != 0 &&
2223 $as_echo "$as_me: caught signal $ac_signal"
2224 $as_echo "$as_me: exit $exit_status"
2225 } >&5
2226 rm -f core *.core core.conftest.* &&
2227 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2228 exit $exit_status
2230 for ac_signal in 1 2 13 15; do
2231 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2232 done
2233 ac_signal=0
2235 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2236 rm -f -r conftest* confdefs.h
2238 $as_echo "/* confdefs.h */" > confdefs.h
2240 # Predefined preprocessor variables.
2242 cat >>confdefs.h <<_ACEOF
2243 #define PACKAGE_NAME "$PACKAGE_NAME"
2244 _ACEOF
2246 cat >>confdefs.h <<_ACEOF
2247 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2248 _ACEOF
2250 cat >>confdefs.h <<_ACEOF
2251 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2252 _ACEOF
2254 cat >>confdefs.h <<_ACEOF
2255 #define PACKAGE_STRING "$PACKAGE_STRING"
2256 _ACEOF
2258 cat >>confdefs.h <<_ACEOF
2259 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2260 _ACEOF
2262 cat >>confdefs.h <<_ACEOF
2263 #define PACKAGE_URL "$PACKAGE_URL"
2264 _ACEOF
2267 # Let the site file select an alternate cache file if it wants to.
2268 # Prefer an explicitly selected file to automatically selected ones.
2269 ac_site_file1=NONE
2270 ac_site_file2=NONE
2271 if test -n "$CONFIG_SITE"; then
2272 # We do not want a PATH search for config.site.
2273 case $CONFIG_SITE in #((
2274 -*) ac_site_file1=./$CONFIG_SITE;;
2275 */*) ac_site_file1=$CONFIG_SITE;;
2276 *) ac_site_file1=./$CONFIG_SITE;;
2277 esac
2278 elif test "x$prefix" != xNONE; then
2279 ac_site_file1=$prefix/share/config.site
2280 ac_site_file2=$prefix/etc/config.site
2281 else
2282 ac_site_file1=$ac_default_prefix/share/config.site
2283 ac_site_file2=$ac_default_prefix/etc/config.site
2285 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2287 test "x$ac_site_file" = xNONE && continue
2288 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2289 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2290 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2291 sed 's/^/| /' "$ac_site_file" >&5
2292 . "$ac_site_file" \
2293 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2294 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2295 as_fn_error $? "failed to load site script $ac_site_file
2296 See \`config.log' for more details" "$LINENO" 5; }
2298 done
2300 if test -r "$cache_file"; then
2301 # Some versions of bash will fail to source /dev/null (special files
2302 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2303 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2304 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2305 $as_echo "$as_me: loading cache $cache_file" >&6;}
2306 case $cache_file in
2307 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2308 *) . "./$cache_file";;
2309 esac
2311 else
2312 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2313 $as_echo "$as_me: creating cache $cache_file" >&6;}
2314 >$cache_file
2317 # Check that the precious variables saved in the cache have kept the same
2318 # value.
2319 ac_cache_corrupted=false
2320 for ac_var in $ac_precious_vars; do
2321 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2322 eval ac_new_set=\$ac_env_${ac_var}_set
2323 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2324 eval ac_new_val=\$ac_env_${ac_var}_value
2325 case $ac_old_set,$ac_new_set in
2326 set,)
2327 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2328 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2329 ac_cache_corrupted=: ;;
2330 ,set)
2331 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2332 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2333 ac_cache_corrupted=: ;;
2334 ,);;
2336 if test "x$ac_old_val" != "x$ac_new_val"; then
2337 # differences in whitespace do not lead to failure.
2338 ac_old_val_w=`echo x $ac_old_val`
2339 ac_new_val_w=`echo x $ac_new_val`
2340 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2341 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2342 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2343 ac_cache_corrupted=:
2344 else
2345 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2346 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2347 eval $ac_var=\$ac_old_val
2349 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2350 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2351 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2352 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2353 fi;;
2354 esac
2355 # Pass precious variables to config.status.
2356 if test "$ac_new_set" = set; then
2357 case $ac_new_val in
2358 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2359 *) ac_arg=$ac_var=$ac_new_val ;;
2360 esac
2361 case " $ac_configure_args " in
2362 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2363 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2364 esac
2366 done
2367 if $ac_cache_corrupted; then
2368 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2369 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2370 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2371 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2372 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2374 ## -------------------- ##
2375 ## Main body of script. ##
2376 ## -------------------- ##
2378 ac_ext=c
2379 ac_cpp='$CPP $CPPFLAGS'
2380 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2381 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2382 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2389 ac_config_files="$ac_config_files Makefile"
2392 if test -n "${with_target_subdir}"; then
2393 # Default to --enable-multilib
2394 # Check whether --enable-multilib was given.
2395 if test "${enable_multilib+set}" = set; then :
2396 enableval=$enable_multilib; case "$enableval" in
2397 yes) multilib=yes ;;
2398 no) multilib=no ;;
2399 *) as_fn_error $? "bad value $enableval for multilib option" "$LINENO" 5 ;;
2400 esac
2401 else
2402 multilib=yes
2406 # We may get other options which we leave undocumented:
2407 # --with-target-subdir, --with-multisrctop, --with-multisubdir
2408 # See config-ml.in if you want the gory details.
2410 if test "$srcdir" = "."; then
2411 if test "$with_target_subdir" != "."; then
2412 multi_basedir="$srcdir/$with_multisrctop../.."
2413 else
2414 multi_basedir="$srcdir/$with_multisrctop.."
2416 else
2417 multi_basedir="$srcdir/.."
2421 # Even if the default multilib is not a cross compilation,
2422 # it may be that some of the other multilibs are.
2423 if test $cross_compiling = no && test $multilib = yes \
2424 && test "x${with_multisubdir}" != x ; then
2425 cross_compiling=maybe
2428 ac_config_commands="$ac_config_commands default-1"
2432 # Do not delete or change the following two lines. For why, see
2433 # http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
2434 ac_aux_dir=
2435 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2436 if test -f "$ac_dir/install-sh"; then
2437 ac_aux_dir=$ac_dir
2438 ac_install_sh="$ac_aux_dir/install-sh -c"
2439 break
2440 elif test -f "$ac_dir/install.sh"; then
2441 ac_aux_dir=$ac_dir
2442 ac_install_sh="$ac_aux_dir/install.sh -c"
2443 break
2444 elif test -f "$ac_dir/shtool"; then
2445 ac_aux_dir=$ac_dir
2446 ac_install_sh="$ac_aux_dir/shtool install -c"
2447 break
2449 done
2450 if test -z "$ac_aux_dir"; then
2451 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2454 # These three variables are undocumented and unsupported,
2455 # and are intended to be withdrawn in a future Autoconf release.
2456 # They can cause serious problems if a builder's source tree is in a directory
2457 # whose full name contains unusual characters.
2458 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2459 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2460 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2463 # Make sure we can run config.sub.
2464 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2465 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2468 $as_echo_n "checking build system type... " >&6; }
2469 if ${ac_cv_build+:} false; then :
2470 $as_echo_n "(cached) " >&6
2471 else
2472 ac_build_alias=$build_alias
2473 test "x$ac_build_alias" = x &&
2474 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2475 test "x$ac_build_alias" = x &&
2476 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2477 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2478 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2482 $as_echo "$ac_cv_build" >&6; }
2483 case $ac_cv_build in
2484 *-*-*) ;;
2485 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2486 esac
2487 build=$ac_cv_build
2488 ac_save_IFS=$IFS; IFS='-'
2489 set x $ac_cv_build
2490 shift
2491 build_cpu=$1
2492 build_vendor=$2
2493 shift; shift
2494 # Remember, the first character of IFS is used to create $*,
2495 # except with old shells:
2496 build_os=$*
2497 IFS=$ac_save_IFS
2498 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2502 $as_echo_n "checking host system type... " >&6; }
2503 if ${ac_cv_host+:} false; then :
2504 $as_echo_n "(cached) " >&6
2505 else
2506 if test "x$host_alias" = x; then
2507 ac_cv_host=$ac_cv_build
2508 else
2509 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2510 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2515 $as_echo "$ac_cv_host" >&6; }
2516 case $ac_cv_host in
2517 *-*-*) ;;
2518 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2519 esac
2520 host=$ac_cv_host
2521 ac_save_IFS=$IFS; IFS='-'
2522 set x $ac_cv_host
2523 shift
2524 host_cpu=$1
2525 host_vendor=$2
2526 shift; shift
2527 # Remember, the first character of IFS is used to create $*,
2528 # except with old shells:
2529 host_os=$*
2530 IFS=$ac_save_IFS
2531 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2535 $as_echo_n "checking target system type... " >&6; }
2536 if ${ac_cv_target+:} false; then :
2537 $as_echo_n "(cached) " >&6
2538 else
2539 if test "x$target_alias" = x; then
2540 ac_cv_target=$ac_cv_host
2541 else
2542 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2543 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2548 $as_echo "$ac_cv_target" >&6; }
2549 case $ac_cv_target in
2550 *-*-*) ;;
2551 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2552 esac
2553 target=$ac_cv_target
2554 ac_save_IFS=$IFS; IFS='-'
2555 set x $ac_cv_target
2556 shift
2557 target_cpu=$1
2558 target_vendor=$2
2559 shift; shift
2560 # Remember, the first character of IFS is used to create $*,
2561 # except with old shells:
2562 target_os=$*
2563 IFS=$ac_save_IFS
2564 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2567 # The aliases save the names the user supplied, while $host etc.
2568 # will get canonicalized.
2569 test -n "$target_alias" &&
2570 test "$program_prefix$program_suffix$program_transform_name" = \
2571 NONENONEs,x,x, &&
2572 program_prefix=${target_alias}-
2574 target_alias=${target_alias-$host_alias}
2577 # Automake should never attempt to rebuild configure
2579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2580 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2581 # Check whether --enable-maintainer-mode was given.
2582 if test "${enable_maintainer_mode+set}" = set; then :
2583 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2584 else
2585 USE_MAINTAINER_MODE=no
2588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2589 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2590 if test $USE_MAINTAINER_MODE = yes; then
2591 MAINTAINER_MODE_TRUE=
2592 MAINTAINER_MODE_FALSE='#'
2593 else
2594 MAINTAINER_MODE_TRUE='#'
2595 MAINTAINER_MODE_FALSE=
2598 MAINT=$MAINTAINER_MODE_TRUE
2602 am__api_version='1.15'
2604 # Find a good install program. We prefer a C program (faster),
2605 # so one script is as good as another. But avoid the broken or
2606 # incompatible versions:
2607 # SysV /etc/install, /usr/sbin/install
2608 # SunOS /usr/etc/install
2609 # IRIX /sbin/install
2610 # AIX /bin/install
2611 # AmigaOS /C/install, which installs bootblocks on floppy discs
2612 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2613 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2614 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2615 # OS/2's system install, which has a completely different semantic
2616 # ./install, which can be erroneously created by make from ./install.sh.
2617 # Reject install programs that cannot install multiple files.
2618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2619 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2620 if test -z "$INSTALL"; then
2621 if ${ac_cv_path_install+:} false; then :
2622 $as_echo_n "(cached) " >&6
2623 else
2624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2625 for as_dir in $PATH
2627 IFS=$as_save_IFS
2628 test -z "$as_dir" && as_dir=.
2629 # Account for people who put trailing slashes in PATH elements.
2630 case $as_dir/ in #((
2631 ./ | .// | /[cC]/* | \
2632 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2633 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2634 /usr/ucb/* ) ;;
2636 # OSF1 and SCO ODT 3.0 have their own names for install.
2637 # Don't use installbsd from OSF since it installs stuff as root
2638 # by default.
2639 for ac_prog in ginstall scoinst install; do
2640 for ac_exec_ext in '' $ac_executable_extensions; do
2641 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2642 if test $ac_prog = install &&
2643 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2644 # AIX install. It has an incompatible calling convention.
2646 elif test $ac_prog = install &&
2647 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2648 # program-specific install script used by HP pwplus--don't use.
2650 else
2651 rm -rf conftest.one conftest.two conftest.dir
2652 echo one > conftest.one
2653 echo two > conftest.two
2654 mkdir conftest.dir
2655 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2656 test -s conftest.one && test -s conftest.two &&
2657 test -s conftest.dir/conftest.one &&
2658 test -s conftest.dir/conftest.two
2659 then
2660 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2661 break 3
2665 done
2666 done
2668 esac
2670 done
2671 IFS=$as_save_IFS
2673 rm -rf conftest.one conftest.two conftest.dir
2676 if test "${ac_cv_path_install+set}" = set; then
2677 INSTALL=$ac_cv_path_install
2678 else
2679 # As a last resort, use the slow shell script. Don't cache a
2680 # value for INSTALL within a source directory, because that will
2681 # break other packages using the cache if that directory is
2682 # removed, or if the value is a relative name.
2683 INSTALL=$ac_install_sh
2686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2687 $as_echo "$INSTALL" >&6; }
2689 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2690 # It thinks the first close brace ends the variable substitution.
2691 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2693 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2695 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2698 $as_echo_n "checking whether build environment is sane... " >&6; }
2699 # Reject unsafe characters in $srcdir or the absolute working directory
2700 # name. Accept space and tab only in the latter.
2701 am_lf='
2703 case `pwd` in
2704 *[\\\"\#\$\&\'\`$am_lf]*)
2705 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2706 esac
2707 case $srcdir in
2708 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2709 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2710 esac
2712 # Do 'set' in a subshell so we don't clobber the current shell's
2713 # arguments. Must try -L first in case configure is actually a
2714 # symlink; some systems play weird games with the mod time of symlinks
2715 # (eg FreeBSD returns the mod time of the symlink's containing
2716 # directory).
2717 if (
2718 am_has_slept=no
2719 for am_try in 1 2; do
2720 echo "timestamp, slept: $am_has_slept" > conftest.file
2721 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2722 if test "$*" = "X"; then
2723 # -L didn't work.
2724 set X `ls -t "$srcdir/configure" conftest.file`
2726 if test "$*" != "X $srcdir/configure conftest.file" \
2727 && test "$*" != "X conftest.file $srcdir/configure"; then
2729 # If neither matched, then we have a broken ls. This can happen
2730 # if, for instance, CONFIG_SHELL is bash and it inherits a
2731 # broken ls alias from the environment. This has actually
2732 # happened. Such a system could not be considered "sane".
2733 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2734 alias in your environment" "$LINENO" 5
2736 if test "$2" = conftest.file || test $am_try -eq 2; then
2737 break
2739 # Just in case.
2740 sleep 1
2741 am_has_slept=yes
2742 done
2743 test "$2" = conftest.file
2745 then
2746 # Ok.
2748 else
2749 as_fn_error $? "newly created file is older than distributed files!
2750 Check your system clock" "$LINENO" 5
2752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2753 $as_echo "yes" >&6; }
2754 # If we didn't sleep, we still need to ensure time stamps of config.status and
2755 # generated files are strictly newer.
2756 am_sleep_pid=
2757 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2758 ( sleep 1 ) &
2759 am_sleep_pid=$!
2762 rm -f conftest.file
2764 test "$program_prefix" != NONE &&
2765 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2766 # Use a double $ so make ignores it.
2767 test "$program_suffix" != NONE &&
2768 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2769 # Double any \ or $.
2770 # By default was `s,x,x', remove it if useless.
2771 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2772 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2774 # Expand $ac_aux_dir to an absolute path.
2775 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2777 if test x"${MISSING+set}" != xset; then
2778 case $am_aux_dir in
2779 *\ * | *\ *)
2780 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2782 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2783 esac
2785 # Use eval to expand $SHELL
2786 if eval "$MISSING --is-lightweight"; then
2787 am_missing_run="$MISSING "
2788 else
2789 am_missing_run=
2790 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2791 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2794 if test x"${install_sh+set}" != xset; then
2795 case $am_aux_dir in
2796 *\ * | *\ *)
2797 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2799 install_sh="\${SHELL} $am_aux_dir/install-sh"
2800 esac
2803 # Installed binaries are usually stripped using 'strip' when the user
2804 # run "make install-strip". However 'strip' might not be the right
2805 # tool to use in cross-compilation environments, therefore Automake
2806 # will honor the 'STRIP' environment variable to overrule this program.
2807 if test "$cross_compiling" != no; then
2808 if test -n "$ac_tool_prefix"; then
2809 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2810 set dummy ${ac_tool_prefix}strip; ac_word=$2
2811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2812 $as_echo_n "checking for $ac_word... " >&6; }
2813 if ${ac_cv_prog_STRIP+:} false; then :
2814 $as_echo_n "(cached) " >&6
2815 else
2816 if test -n "$STRIP"; then
2817 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2818 else
2819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2820 for as_dir in $PATH
2822 IFS=$as_save_IFS
2823 test -z "$as_dir" && as_dir=.
2824 for ac_exec_ext in '' $ac_executable_extensions; do
2825 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2826 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2827 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2828 break 2
2830 done
2831 done
2832 IFS=$as_save_IFS
2836 STRIP=$ac_cv_prog_STRIP
2837 if test -n "$STRIP"; then
2838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2839 $as_echo "$STRIP" >&6; }
2840 else
2841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2842 $as_echo "no" >&6; }
2847 if test -z "$ac_cv_prog_STRIP"; then
2848 ac_ct_STRIP=$STRIP
2849 # Extract the first word of "strip", so it can be a program name with args.
2850 set dummy strip; ac_word=$2
2851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2852 $as_echo_n "checking for $ac_word... " >&6; }
2853 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2854 $as_echo_n "(cached) " >&6
2855 else
2856 if test -n "$ac_ct_STRIP"; then
2857 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2858 else
2859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2860 for as_dir in $PATH
2862 IFS=$as_save_IFS
2863 test -z "$as_dir" && as_dir=.
2864 for ac_exec_ext in '' $ac_executable_extensions; do
2865 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2866 ac_cv_prog_ac_ct_STRIP="strip"
2867 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2868 break 2
2870 done
2871 done
2872 IFS=$as_save_IFS
2876 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2877 if test -n "$ac_ct_STRIP"; then
2878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2879 $as_echo "$ac_ct_STRIP" >&6; }
2880 else
2881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2882 $as_echo "no" >&6; }
2885 if test "x$ac_ct_STRIP" = x; then
2886 STRIP=":"
2887 else
2888 case $cross_compiling:$ac_tool_warned in
2889 yes:)
2890 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2891 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2892 ac_tool_warned=yes ;;
2893 esac
2894 STRIP=$ac_ct_STRIP
2896 else
2897 STRIP="$ac_cv_prog_STRIP"
2901 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2904 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2905 if test -z "$MKDIR_P"; then
2906 if ${ac_cv_path_mkdir+:} false; then :
2907 $as_echo_n "(cached) " >&6
2908 else
2909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2910 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2912 IFS=$as_save_IFS
2913 test -z "$as_dir" && as_dir=.
2914 for ac_prog in mkdir gmkdir; do
2915 for ac_exec_ext in '' $ac_executable_extensions; do
2916 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2917 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2918 'mkdir (GNU coreutils) '* | \
2919 'mkdir (coreutils) '* | \
2920 'mkdir (fileutils) '4.1*)
2921 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2922 break 3;;
2923 esac
2924 done
2925 done
2926 done
2927 IFS=$as_save_IFS
2931 test -d ./--version && rmdir ./--version
2932 if test "${ac_cv_path_mkdir+set}" = set; then
2933 MKDIR_P="$ac_cv_path_mkdir -p"
2934 else
2935 # As a last resort, use the slow shell script. Don't cache a
2936 # value for MKDIR_P within a source directory, because that will
2937 # break other packages using the cache if that directory is
2938 # removed, or if the value is a relative name.
2939 MKDIR_P="$ac_install_sh -d"
2942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2943 $as_echo "$MKDIR_P" >&6; }
2945 for ac_prog in gawk mawk nawk awk
2947 # Extract the first word of "$ac_prog", so it can be a program name with args.
2948 set dummy $ac_prog; ac_word=$2
2949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2950 $as_echo_n "checking for $ac_word... " >&6; }
2951 if ${ac_cv_prog_AWK+:} false; then :
2952 $as_echo_n "(cached) " >&6
2953 else
2954 if test -n "$AWK"; then
2955 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2956 else
2957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2958 for as_dir in $PATH
2960 IFS=$as_save_IFS
2961 test -z "$as_dir" && as_dir=.
2962 for ac_exec_ext in '' $ac_executable_extensions; do
2963 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2964 ac_cv_prog_AWK="$ac_prog"
2965 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2966 break 2
2968 done
2969 done
2970 IFS=$as_save_IFS
2974 AWK=$ac_cv_prog_AWK
2975 if test -n "$AWK"; then
2976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2977 $as_echo "$AWK" >&6; }
2978 else
2979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2980 $as_echo "no" >&6; }
2984 test -n "$AWK" && break
2985 done
2987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2988 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2989 set x ${MAKE-make}
2990 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2991 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2992 $as_echo_n "(cached) " >&6
2993 else
2994 cat >conftest.make <<\_ACEOF
2995 SHELL = /bin/sh
2996 all:
2997 @echo '@@@%%%=$(MAKE)=@@@%%%'
2998 _ACEOF
2999 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3000 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3001 *@@@%%%=?*=@@@%%%*)
3002 eval ac_cv_prog_make_${ac_make}_set=yes;;
3004 eval ac_cv_prog_make_${ac_make}_set=no;;
3005 esac
3006 rm -f conftest.make
3008 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3010 $as_echo "yes" >&6; }
3011 SET_MAKE=
3012 else
3013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3014 $as_echo "no" >&6; }
3015 SET_MAKE="MAKE=${MAKE-make}"
3018 rm -rf .tst 2>/dev/null
3019 mkdir .tst 2>/dev/null
3020 if test -d .tst; then
3021 am__leading_dot=.
3022 else
3023 am__leading_dot=_
3025 rmdir .tst 2>/dev/null
3027 # Check whether --enable-silent-rules was given.
3028 if test "${enable_silent_rules+set}" = set; then :
3029 enableval=$enable_silent_rules;
3032 case $enable_silent_rules in # (((
3033 yes) AM_DEFAULT_VERBOSITY=0;;
3034 no) AM_DEFAULT_VERBOSITY=1;;
3035 *) AM_DEFAULT_VERBOSITY=1;;
3036 esac
3037 am_make=${MAKE-make}
3038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3039 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3040 if ${am_cv_make_support_nested_variables+:} false; then :
3041 $as_echo_n "(cached) " >&6
3042 else
3043 if $as_echo 'TRUE=$(BAR$(V))
3044 BAR0=false
3045 BAR1=true
3047 am__doit:
3048 @$(TRUE)
3049 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3050 am_cv_make_support_nested_variables=yes
3051 else
3052 am_cv_make_support_nested_variables=no
3055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3056 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3057 if test $am_cv_make_support_nested_variables = yes; then
3058 AM_V='$(V)'
3059 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3060 else
3061 AM_V=$AM_DEFAULT_VERBOSITY
3062 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3064 AM_BACKSLASH='\'
3066 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3067 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3068 # is not polluted with repeated "-I."
3069 am__isrc=' -I$(srcdir)'
3070 # test to see if srcdir already configured
3071 if test -f $srcdir/config.status; then
3072 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3076 # test whether we have cygpath
3077 if test -z "$CYGPATH_W"; then
3078 if (cygpath --version) >/dev/null 2>/dev/null; then
3079 CYGPATH_W='cygpath -w'
3080 else
3081 CYGPATH_W=echo
3086 # Define the identity of the package.
3087 PACKAGE='libgrust'
3088 VERSION='version-unused'
3091 cat >>confdefs.h <<_ACEOF
3092 #define PACKAGE "$PACKAGE"
3093 _ACEOF
3096 cat >>confdefs.h <<_ACEOF
3097 #define VERSION "$VERSION"
3098 _ACEOF
3100 # Some tools Automake needs.
3102 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3105 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3108 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3111 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3114 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3116 # For better backward compatibility. To be removed once Automake 1.9.x
3117 # dies out for good. For more background, see:
3118 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3119 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3120 mkdir_p='$(MKDIR_P)'
3122 # We need awk for the "check" target (and possibly the TAP driver). The
3123 # system "awk" is bad on some platforms.
3124 # Always define AMTAR for backward compatibility. Yes, it's still used
3125 # in the wild :-( We should find a proper way to deprecate it ...
3126 AMTAR='$${TAR-tar}'
3129 # We'll loop over all known methods to create a tar archive until one works.
3130 _am_tools='gnutar pax cpio none'
3132 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3139 # POSIX will say in a future version that running "rm -f" with no argument
3140 # is OK; and we want to be able to make that assumption in our Makefile
3141 # recipes. So use an aggressive probe to check that the usage we want is
3142 # actually supported "in the wild" to an acceptable degree.
3143 # See automake bug#10828.
3144 # To make any issue more visible, cause the running configure to be aborted
3145 # by default if the 'rm' program in use doesn't match our expectations; the
3146 # user can still override this though.
3147 if rm -f && rm -fr && rm -rf; then : OK; else
3148 cat >&2 <<'END'
3149 Oops!
3151 Your 'rm' program seems unable to run without file operands specified
3152 on the command line, even when the '-f' option is present. This is contrary
3153 to the behaviour of most rm programs out there, and not conforming with
3154 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3156 Please tell bug-automake@gnu.org about your system, including the value
3157 of your $PATH and any error possibly output before this message. This
3158 can help us improve future automake versions.
3161 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3162 echo 'Configuration will proceed anyway, since you have set the' >&2
3163 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3164 echo >&2
3165 else
3166 cat >&2 <<'END'
3167 Aborting the configuration process, to ensure you take notice of the issue.
3169 You can download and install GNU coreutils to get an 'rm' implementation
3170 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3172 If you want to complete the configuration process using your problematic
3173 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3174 to "yes", and re-run configure.
3177 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3182 # Make sure we don't test executables when making cross-tools.
3186 # Add the ability to change LIBTOOL directory
3188 # Check whether --with-toolexeclibdir was given.
3189 if test "${with_toolexeclibdir+set}" = set; then :
3190 withval=$with_toolexeclibdir; case ${with_toolexeclibdir} in
3194 with_toolexeclibdir=`echo $with_toolexeclibdir | sed 's,/$,,'`
3196 esac
3197 else
3198 with_toolexeclibdir=no
3203 # Use system specific extensions
3204 DEPDIR="${am__leading_dot}deps"
3206 ac_config_commands="$ac_config_commands depfiles"
3209 am_make=${MAKE-make}
3210 cat > confinc << 'END'
3211 am__doit:
3212 @echo this is the am__doit target
3213 .PHONY: am__doit
3215 # If we don't find an include directive, just comment out the code.
3216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3217 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3218 am__include="#"
3219 am__quote=
3220 _am_result=none
3221 # First try GNU make style include.
3222 echo "include confinc" > confmf
3223 # Ignore all kinds of additional output from 'make'.
3224 case `$am_make -s -f confmf 2> /dev/null` in #(
3225 *the\ am__doit\ target*)
3226 am__include=include
3227 am__quote=
3228 _am_result=GNU
3230 esac
3231 # Now try BSD make style include.
3232 if test "$am__include" = "#"; then
3233 echo '.include "confinc"' > confmf
3234 case `$am_make -s -f confmf 2> /dev/null` in #(
3235 *the\ am__doit\ target*)
3236 am__include=.include
3237 am__quote="\""
3238 _am_result=BSD
3240 esac
3244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3245 $as_echo "$_am_result" >&6; }
3246 rm -f confinc confmf
3248 # Check whether --enable-dependency-tracking was given.
3249 if test "${enable_dependency_tracking+set}" = set; then :
3250 enableval=$enable_dependency_tracking;
3253 if test "x$enable_dependency_tracking" != xno; then
3254 am_depcomp="$ac_aux_dir/depcomp"
3255 AMDEPBACKSLASH='\'
3256 am__nodep='_no'
3258 if test "x$enable_dependency_tracking" != xno; then
3259 AMDEP_TRUE=
3260 AMDEP_FALSE='#'
3261 else
3262 AMDEP_TRUE='#'
3263 AMDEP_FALSE=
3267 ac_ext=c
3268 ac_cpp='$CPP $CPPFLAGS'
3269 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3270 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3271 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3272 if test -n "$ac_tool_prefix"; then
3273 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3274 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3276 $as_echo_n "checking for $ac_word... " >&6; }
3277 if ${ac_cv_prog_CC+:} false; then :
3278 $as_echo_n "(cached) " >&6
3279 else
3280 if test -n "$CC"; then
3281 ac_cv_prog_CC="$CC" # Let the user override the test.
3282 else
3283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3284 for as_dir in $PATH
3286 IFS=$as_save_IFS
3287 test -z "$as_dir" && as_dir=.
3288 for ac_exec_ext in '' $ac_executable_extensions; do
3289 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3290 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3291 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3292 break 2
3294 done
3295 done
3296 IFS=$as_save_IFS
3300 CC=$ac_cv_prog_CC
3301 if test -n "$CC"; then
3302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3303 $as_echo "$CC" >&6; }
3304 else
3305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3306 $as_echo "no" >&6; }
3311 if test -z "$ac_cv_prog_CC"; then
3312 ac_ct_CC=$CC
3313 # Extract the first word of "gcc", so it can be a program name with args.
3314 set dummy gcc; ac_word=$2
3315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3316 $as_echo_n "checking for $ac_word... " >&6; }
3317 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3318 $as_echo_n "(cached) " >&6
3319 else
3320 if test -n "$ac_ct_CC"; then
3321 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3322 else
3323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3324 for as_dir in $PATH
3326 IFS=$as_save_IFS
3327 test -z "$as_dir" && as_dir=.
3328 for ac_exec_ext in '' $ac_executable_extensions; do
3329 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3330 ac_cv_prog_ac_ct_CC="gcc"
3331 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3332 break 2
3334 done
3335 done
3336 IFS=$as_save_IFS
3340 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3341 if test -n "$ac_ct_CC"; then
3342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3343 $as_echo "$ac_ct_CC" >&6; }
3344 else
3345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3346 $as_echo "no" >&6; }
3349 if test "x$ac_ct_CC" = x; then
3350 CC=""
3351 else
3352 case $cross_compiling:$ac_tool_warned in
3353 yes:)
3354 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3355 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3356 ac_tool_warned=yes ;;
3357 esac
3358 CC=$ac_ct_CC
3360 else
3361 CC="$ac_cv_prog_CC"
3364 if test -z "$CC"; then
3365 if test -n "$ac_tool_prefix"; then
3366 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3367 set dummy ${ac_tool_prefix}cc; ac_word=$2
3368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3369 $as_echo_n "checking for $ac_word... " >&6; }
3370 if ${ac_cv_prog_CC+:} false; then :
3371 $as_echo_n "(cached) " >&6
3372 else
3373 if test -n "$CC"; then
3374 ac_cv_prog_CC="$CC" # Let the user override the test.
3375 else
3376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3377 for as_dir in $PATH
3379 IFS=$as_save_IFS
3380 test -z "$as_dir" && as_dir=.
3381 for ac_exec_ext in '' $ac_executable_extensions; do
3382 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3383 ac_cv_prog_CC="${ac_tool_prefix}cc"
3384 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3385 break 2
3387 done
3388 done
3389 IFS=$as_save_IFS
3393 CC=$ac_cv_prog_CC
3394 if test -n "$CC"; then
3395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3396 $as_echo "$CC" >&6; }
3397 else
3398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3399 $as_echo "no" >&6; }
3405 if test -z "$CC"; then
3406 # Extract the first word of "cc", so it can be a program name with args.
3407 set dummy cc; ac_word=$2
3408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3409 $as_echo_n "checking for $ac_word... " >&6; }
3410 if ${ac_cv_prog_CC+:} false; then :
3411 $as_echo_n "(cached) " >&6
3412 else
3413 if test -n "$CC"; then
3414 ac_cv_prog_CC="$CC" # Let the user override the test.
3415 else
3416 ac_prog_rejected=no
3417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3418 for as_dir in $PATH
3420 IFS=$as_save_IFS
3421 test -z "$as_dir" && as_dir=.
3422 for ac_exec_ext in '' $ac_executable_extensions; do
3423 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3424 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3425 ac_prog_rejected=yes
3426 continue
3428 ac_cv_prog_CC="cc"
3429 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3430 break 2
3432 done
3433 done
3434 IFS=$as_save_IFS
3436 if test $ac_prog_rejected = yes; then
3437 # We found a bogon in the path, so make sure we never use it.
3438 set dummy $ac_cv_prog_CC
3439 shift
3440 if test $# != 0; then
3441 # We chose a different compiler from the bogus one.
3442 # However, it has the same basename, so the bogon will be chosen
3443 # first if we set CC to just the basename; use the full file name.
3444 shift
3445 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3450 CC=$ac_cv_prog_CC
3451 if test -n "$CC"; then
3452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3453 $as_echo "$CC" >&6; }
3454 else
3455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3456 $as_echo "no" >&6; }
3461 if test -z "$CC"; then
3462 if test -n "$ac_tool_prefix"; then
3463 for ac_prog in cl.exe
3465 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3466 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3468 $as_echo_n "checking for $ac_word... " >&6; }
3469 if ${ac_cv_prog_CC+:} false; then :
3470 $as_echo_n "(cached) " >&6
3471 else
3472 if test -n "$CC"; then
3473 ac_cv_prog_CC="$CC" # Let the user override the test.
3474 else
3475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3476 for as_dir in $PATH
3478 IFS=$as_save_IFS
3479 test -z "$as_dir" && as_dir=.
3480 for ac_exec_ext in '' $ac_executable_extensions; do
3481 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3482 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3483 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3484 break 2
3486 done
3487 done
3488 IFS=$as_save_IFS
3492 CC=$ac_cv_prog_CC
3493 if test -n "$CC"; then
3494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3495 $as_echo "$CC" >&6; }
3496 else
3497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3498 $as_echo "no" >&6; }
3502 test -n "$CC" && break
3503 done
3505 if test -z "$CC"; then
3506 ac_ct_CC=$CC
3507 for ac_prog in cl.exe
3509 # Extract the first word of "$ac_prog", so it can be a program name with args.
3510 set dummy $ac_prog; ac_word=$2
3511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3512 $as_echo_n "checking for $ac_word... " >&6; }
3513 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3514 $as_echo_n "(cached) " >&6
3515 else
3516 if test -n "$ac_ct_CC"; then
3517 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3518 else
3519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3520 for as_dir in $PATH
3522 IFS=$as_save_IFS
3523 test -z "$as_dir" && as_dir=.
3524 for ac_exec_ext in '' $ac_executable_extensions; do
3525 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3526 ac_cv_prog_ac_ct_CC="$ac_prog"
3527 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3528 break 2
3530 done
3531 done
3532 IFS=$as_save_IFS
3536 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3537 if test -n "$ac_ct_CC"; then
3538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3539 $as_echo "$ac_ct_CC" >&6; }
3540 else
3541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3542 $as_echo "no" >&6; }
3546 test -n "$ac_ct_CC" && break
3547 done
3549 if test "x$ac_ct_CC" = x; then
3550 CC=""
3551 else
3552 case $cross_compiling:$ac_tool_warned in
3553 yes:)
3554 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3555 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3556 ac_tool_warned=yes ;;
3557 esac
3558 CC=$ac_ct_CC
3565 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3566 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3567 as_fn_error $? "no acceptable C compiler found in \$PATH
3568 See \`config.log' for more details" "$LINENO" 5; }
3570 # Provide some information about the compiler.
3571 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3572 set X $ac_compile
3573 ac_compiler=$2
3574 for ac_option in --version -v -V -qversion; do
3575 { { ac_try="$ac_compiler $ac_option >&5"
3576 case "(($ac_try" in
3577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3578 *) ac_try_echo=$ac_try;;
3579 esac
3580 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3581 $as_echo "$ac_try_echo"; } >&5
3582 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3583 ac_status=$?
3584 if test -s conftest.err; then
3585 sed '10a\
3586 ... rest of stderr output deleted ...
3587 10q' conftest.err >conftest.er1
3588 cat conftest.er1 >&5
3590 rm -f conftest.er1 conftest.err
3591 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3592 test $ac_status = 0; }
3593 done
3595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3596 /* end confdefs.h. */
3597 #include <stdio.h>
3599 main ()
3601 printf ("hello world\n");
3603 return 0;
3605 _ACEOF
3606 # FIXME: Cleanup?
3607 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
3608 (eval $ac_link) 2>&5
3609 ac_status=$?
3610 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3611 test $ac_status = 0; }; then :
3612 gcc_no_link=no
3613 else
3614 gcc_no_link=yes
3616 if test x$gcc_no_link = xyes; then
3617 # Setting cross_compile will disable run tests; it will
3618 # also disable AC_CHECK_FILE but that's generally
3619 # correct if we can't link.
3620 cross_compiling=yes
3621 EXEEXT=
3622 else
3623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3624 /* end confdefs.h. */
3627 main ()
3631 return 0;
3633 _ACEOF
3634 ac_clean_files_save=$ac_clean_files
3635 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3636 # Try to create an executable without -o first, disregard a.out.
3637 # It will help us diagnose broken compilers, and finding out an intuition
3638 # of exeext.
3639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3640 $as_echo_n "checking whether the C compiler works... " >&6; }
3641 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3643 # The possible output files:
3644 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3646 ac_rmfiles=
3647 for ac_file in $ac_files
3649 case $ac_file in
3650 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3651 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3652 esac
3653 done
3654 rm -f $ac_rmfiles
3656 if { { ac_try="$ac_link_default"
3657 case "(($ac_try" in
3658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3659 *) ac_try_echo=$ac_try;;
3660 esac
3661 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3662 $as_echo "$ac_try_echo"; } >&5
3663 (eval "$ac_link_default") 2>&5
3664 ac_status=$?
3665 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3666 test $ac_status = 0; }; then :
3667 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3668 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3669 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3670 # so that the user can short-circuit this test for compilers unknown to
3671 # Autoconf.
3672 for ac_file in $ac_files ''
3674 test -f "$ac_file" || continue
3675 case $ac_file in
3676 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3678 [ab].out )
3679 # We found the default executable, but exeext='' is most
3680 # certainly right.
3681 break;;
3682 *.* )
3683 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3684 then :; else
3685 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3687 # We set ac_cv_exeext here because the later test for it is not
3688 # safe: cross compilers may not add the suffix if given an `-o'
3689 # argument, so we may need to know it at that point already.
3690 # Even if this section looks crufty: it has the advantage of
3691 # actually working.
3692 break;;
3694 break;;
3695 esac
3696 done
3697 test "$ac_cv_exeext" = no && ac_cv_exeext=
3699 else
3700 ac_file=''
3702 if test -z "$ac_file"; then :
3703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3704 $as_echo "no" >&6; }
3705 $as_echo "$as_me: failed program was:" >&5
3706 sed 's/^/| /' conftest.$ac_ext >&5
3708 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3709 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3710 as_fn_error 77 "C compiler cannot create executables
3711 See \`config.log' for more details" "$LINENO" 5; }
3712 else
3713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3714 $as_echo "yes" >&6; }
3716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3717 $as_echo_n "checking for C compiler default output file name... " >&6; }
3718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3719 $as_echo "$ac_file" >&6; }
3720 ac_exeext=$ac_cv_exeext
3722 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3723 ac_clean_files=$ac_clean_files_save
3724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3725 $as_echo_n "checking for suffix of executables... " >&6; }
3726 if { { ac_try="$ac_link"
3727 case "(($ac_try" in
3728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3729 *) ac_try_echo=$ac_try;;
3730 esac
3731 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3732 $as_echo "$ac_try_echo"; } >&5
3733 (eval "$ac_link") 2>&5
3734 ac_status=$?
3735 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3736 test $ac_status = 0; }; then :
3737 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3738 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3739 # work properly (i.e., refer to `conftest.exe'), while it won't with
3740 # `rm'.
3741 for ac_file in conftest.exe conftest conftest.*; do
3742 test -f "$ac_file" || continue
3743 case $ac_file in
3744 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3745 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3746 break;;
3747 * ) break;;
3748 esac
3749 done
3750 else
3751 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3752 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3753 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3754 See \`config.log' for more details" "$LINENO" 5; }
3756 rm -f conftest conftest$ac_cv_exeext
3757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3758 $as_echo "$ac_cv_exeext" >&6; }
3760 rm -f conftest.$ac_ext
3761 EXEEXT=$ac_cv_exeext
3762 ac_exeext=$EXEEXT
3763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3764 /* end confdefs.h. */
3765 #include <stdio.h>
3767 main ()
3769 FILE *f = fopen ("conftest.out", "w");
3770 return ferror (f) || fclose (f) != 0;
3773 return 0;
3775 _ACEOF
3776 ac_clean_files="$ac_clean_files conftest.out"
3777 # Check that the compiler produces executables we can run. If not, either
3778 # the compiler is broken, or we cross compile.
3779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3780 $as_echo_n "checking whether we are cross compiling... " >&6; }
3781 if test "$cross_compiling" != yes; then
3782 { { ac_try="$ac_link"
3783 case "(($ac_try" in
3784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3785 *) ac_try_echo=$ac_try;;
3786 esac
3787 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3788 $as_echo "$ac_try_echo"; } >&5
3789 (eval "$ac_link") 2>&5
3790 ac_status=$?
3791 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3792 test $ac_status = 0; }
3793 if { ac_try='./conftest$ac_cv_exeext'
3794 { { case "(($ac_try" in
3795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3796 *) ac_try_echo=$ac_try;;
3797 esac
3798 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3799 $as_echo "$ac_try_echo"; } >&5
3800 (eval "$ac_try") 2>&5
3801 ac_status=$?
3802 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3803 test $ac_status = 0; }; }; then
3804 cross_compiling=no
3805 else
3806 if test "$cross_compiling" = maybe; then
3807 cross_compiling=yes
3808 else
3809 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3810 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3811 as_fn_error $? "cannot run C compiled programs.
3812 If you meant to cross compile, use \`--host'.
3813 See \`config.log' for more details" "$LINENO" 5; }
3817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3818 $as_echo "$cross_compiling" >&6; }
3820 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3821 ac_clean_files=$ac_clean_files_save
3823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3824 $as_echo_n "checking for suffix of object files... " >&6; }
3825 if ${ac_cv_objext+:} false; then :
3826 $as_echo_n "(cached) " >&6
3827 else
3828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3829 /* end confdefs.h. */
3832 main ()
3836 return 0;
3838 _ACEOF
3839 rm -f conftest.o conftest.obj
3840 if { { ac_try="$ac_compile"
3841 case "(($ac_try" in
3842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3843 *) ac_try_echo=$ac_try;;
3844 esac
3845 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3846 $as_echo "$ac_try_echo"; } >&5
3847 (eval "$ac_compile") 2>&5
3848 ac_status=$?
3849 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3850 test $ac_status = 0; }; then :
3851 for ac_file in conftest.o conftest.obj conftest.*; do
3852 test -f "$ac_file" || continue;
3853 case $ac_file in
3854 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3855 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3856 break;;
3857 esac
3858 done
3859 else
3860 $as_echo "$as_me: failed program was:" >&5
3861 sed 's/^/| /' conftest.$ac_ext >&5
3863 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3864 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3865 as_fn_error $? "cannot compute suffix of object files: cannot compile
3866 See \`config.log' for more details" "$LINENO" 5; }
3868 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3871 $as_echo "$ac_cv_objext" >&6; }
3872 OBJEXT=$ac_cv_objext
3873 ac_objext=$OBJEXT
3874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3875 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3876 if ${ac_cv_c_compiler_gnu+:} false; then :
3877 $as_echo_n "(cached) " >&6
3878 else
3879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3880 /* end confdefs.h. */
3883 main ()
3885 #ifndef __GNUC__
3886 choke me
3887 #endif
3890 return 0;
3892 _ACEOF
3893 if ac_fn_c_try_compile "$LINENO"; then :
3894 ac_compiler_gnu=yes
3895 else
3896 ac_compiler_gnu=no
3898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3899 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3903 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3904 if test $ac_compiler_gnu = yes; then
3905 GCC=yes
3906 else
3907 GCC=
3909 ac_test_CFLAGS=${CFLAGS+set}
3910 ac_save_CFLAGS=$CFLAGS
3911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3912 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3913 if ${ac_cv_prog_cc_g+:} false; then :
3914 $as_echo_n "(cached) " >&6
3915 else
3916 ac_save_c_werror_flag=$ac_c_werror_flag
3917 ac_c_werror_flag=yes
3918 ac_cv_prog_cc_g=no
3919 CFLAGS="-g"
3920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3921 /* end confdefs.h. */
3924 main ()
3928 return 0;
3930 _ACEOF
3931 if ac_fn_c_try_compile "$LINENO"; then :
3932 ac_cv_prog_cc_g=yes
3933 else
3934 CFLAGS=""
3935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3936 /* end confdefs.h. */
3939 main ()
3943 return 0;
3945 _ACEOF
3946 if ac_fn_c_try_compile "$LINENO"; then :
3948 else
3949 ac_c_werror_flag=$ac_save_c_werror_flag
3950 CFLAGS="-g"
3951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3952 /* end confdefs.h. */
3955 main ()
3959 return 0;
3961 _ACEOF
3962 if ac_fn_c_try_compile "$LINENO"; then :
3963 ac_cv_prog_cc_g=yes
3965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3970 ac_c_werror_flag=$ac_save_c_werror_flag
3972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3973 $as_echo "$ac_cv_prog_cc_g" >&6; }
3974 if test "$ac_test_CFLAGS" = set; then
3975 CFLAGS=$ac_save_CFLAGS
3976 elif test $ac_cv_prog_cc_g = yes; then
3977 if test "$GCC" = yes; then
3978 CFLAGS="-g -O2"
3979 else
3980 CFLAGS="-g"
3982 else
3983 if test "$GCC" = yes; then
3984 CFLAGS="-O2"
3985 else
3986 CFLAGS=
3989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3990 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3991 if ${ac_cv_prog_cc_c89+:} false; then :
3992 $as_echo_n "(cached) " >&6
3993 else
3994 ac_cv_prog_cc_c89=no
3995 ac_save_CC=$CC
3996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3997 /* end confdefs.h. */
3998 #include <stdarg.h>
3999 #include <stdio.h>
4000 struct stat;
4001 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4002 struct buf { int x; };
4003 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4004 static char *e (p, i)
4005 char **p;
4006 int i;
4008 return p[i];
4010 static char *f (char * (*g) (char **, int), char **p, ...)
4012 char *s;
4013 va_list v;
4014 va_start (v,p);
4015 s = g (p, va_arg (v,int));
4016 va_end (v);
4017 return s;
4020 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4021 function prototypes and stuff, but not '\xHH' hex character constants.
4022 These don't provoke an error unfortunately, instead are silently treated
4023 as 'x'. The following induces an error, until -std is added to get
4024 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4025 array size at least. It's necessary to write '\x00'==0 to get something
4026 that's true only with -std. */
4027 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4029 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4030 inside strings and character constants. */
4031 #define FOO(x) 'x'
4032 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4034 int test (int i, double x);
4035 struct s1 {int (*f) (int a);};
4036 struct s2 {int (*f) (double a);};
4037 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4038 int argc;
4039 char **argv;
4041 main ()
4043 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4045 return 0;
4047 _ACEOF
4048 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4049 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4051 CC="$ac_save_CC $ac_arg"
4052 if ac_fn_c_try_compile "$LINENO"; then :
4053 ac_cv_prog_cc_c89=$ac_arg
4055 rm -f core conftest.err conftest.$ac_objext
4056 test "x$ac_cv_prog_cc_c89" != "xno" && break
4057 done
4058 rm -f conftest.$ac_ext
4059 CC=$ac_save_CC
4062 # AC_CACHE_VAL
4063 case "x$ac_cv_prog_cc_c89" in
4065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4066 $as_echo "none needed" >&6; } ;;
4067 xno)
4068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4069 $as_echo "unsupported" >&6; } ;;
4071 CC="$CC $ac_cv_prog_cc_c89"
4072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4073 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4074 esac
4075 if test "x$ac_cv_prog_cc_c89" != xno; then :
4079 ac_ext=c
4080 ac_cpp='$CPP $CPPFLAGS'
4081 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4082 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4083 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4085 ac_ext=c
4086 ac_cpp='$CPP $CPPFLAGS'
4087 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4088 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4089 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4091 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4092 if ${am_cv_prog_cc_c_o+:} false; then :
4093 $as_echo_n "(cached) " >&6
4094 else
4095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4096 /* end confdefs.h. */
4099 main ()
4103 return 0;
4105 _ACEOF
4106 # Make sure it works both with $CC and with simple cc.
4107 # Following AC_PROG_CC_C_O, we do the test twice because some
4108 # compilers refuse to overwrite an existing .o file with -o,
4109 # though they will create one.
4110 am_cv_prog_cc_c_o=yes
4111 for am_i in 1 2; do
4112 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4113 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4114 ac_status=$?
4115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4116 (exit $ac_status); } \
4117 && test -f conftest2.$ac_objext; then
4118 : OK
4119 else
4120 am_cv_prog_cc_c_o=no
4121 break
4123 done
4124 rm -f core conftest*
4125 unset am_i
4127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4128 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4129 if test "$am_cv_prog_cc_c_o" != yes; then
4130 # Losing compiler, so override with the script.
4131 # FIXME: It is wrong to rewrite CC.
4132 # But if we don't then we get into trouble of one sort or another.
4133 # A longer-term fix would be to have automake use am__CC in this case,
4134 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4135 CC="$am_aux_dir/compile $CC"
4137 ac_ext=c
4138 ac_cpp='$CPP $CPPFLAGS'
4139 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4140 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4141 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4144 depcc="$CC" am_compiler_list=
4146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4147 $as_echo_n "checking dependency style of $depcc... " >&6; }
4148 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4149 $as_echo_n "(cached) " >&6
4150 else
4151 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4152 # We make a subdir and do the tests there. Otherwise we can end up
4153 # making bogus files that we don't know about and never remove. For
4154 # instance it was reported that on HP-UX the gcc test will end up
4155 # making a dummy file named 'D' -- because '-MD' means "put the output
4156 # in D".
4157 rm -rf conftest.dir
4158 mkdir conftest.dir
4159 # Copy depcomp to subdir because otherwise we won't find it if we're
4160 # using a relative directory.
4161 cp "$am_depcomp" conftest.dir
4162 cd conftest.dir
4163 # We will build objects and dependencies in a subdirectory because
4164 # it helps to detect inapplicable dependency modes. For instance
4165 # both Tru64's cc and ICC support -MD to output dependencies as a
4166 # side effect of compilation, but ICC will put the dependencies in
4167 # the current directory while Tru64 will put them in the object
4168 # directory.
4169 mkdir sub
4171 am_cv_CC_dependencies_compiler_type=none
4172 if test "$am_compiler_list" = ""; then
4173 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4175 am__universal=false
4176 case " $depcc " in #(
4177 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4178 esac
4180 for depmode in $am_compiler_list; do
4181 # Setup a source with many dependencies, because some compilers
4182 # like to wrap large dependency lists on column 80 (with \), and
4183 # we should not choose a depcomp mode which is confused by this.
4185 # We need to recreate these files for each test, as the compiler may
4186 # overwrite some of them when testing with obscure command lines.
4187 # This happens at least with the AIX C compiler.
4188 : > sub/conftest.c
4189 for i in 1 2 3 4 5 6; do
4190 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4191 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4192 # Solaris 10 /bin/sh.
4193 echo '/* dummy */' > sub/conftst$i.h
4194 done
4195 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4197 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4198 # mode. It turns out that the SunPro C++ compiler does not properly
4199 # handle '-M -o', and we need to detect this. Also, some Intel
4200 # versions had trouble with output in subdirs.
4201 am__obj=sub/conftest.${OBJEXT-o}
4202 am__minus_obj="-o $am__obj"
4203 case $depmode in
4204 gcc)
4205 # This depmode causes a compiler race in universal mode.
4206 test "$am__universal" = false || continue
4208 nosideeffect)
4209 # After this tag, mechanisms are not by side-effect, so they'll
4210 # only be used when explicitly requested.
4211 if test "x$enable_dependency_tracking" = xyes; then
4212 continue
4213 else
4214 break
4217 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4218 # This compiler won't grok '-c -o', but also, the minuso test has
4219 # not run yet. These depmodes are late enough in the game, and
4220 # so weak that their functioning should not be impacted.
4221 am__obj=conftest.${OBJEXT-o}
4222 am__minus_obj=
4224 none) break ;;
4225 esac
4226 if depmode=$depmode \
4227 source=sub/conftest.c object=$am__obj \
4228 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4229 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4230 >/dev/null 2>conftest.err &&
4231 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4232 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4233 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4234 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4235 # icc doesn't choke on unknown options, it will just issue warnings
4236 # or remarks (even with -Werror). So we grep stderr for any message
4237 # that says an option was ignored or not supported.
4238 # When given -MP, icc 7.0 and 7.1 complain thusly:
4239 # icc: Command line warning: ignoring option '-M'; no argument required
4240 # The diagnosis changed in icc 8.0:
4241 # icc: Command line remark: option '-MP' not supported
4242 if (grep 'ignoring option' conftest.err ||
4243 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4244 am_cv_CC_dependencies_compiler_type=$depmode
4245 break
4248 done
4250 cd ..
4251 rm -rf conftest.dir
4252 else
4253 am_cv_CC_dependencies_compiler_type=none
4257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4258 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4259 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4262 test "x$enable_dependency_tracking" != xno \
4263 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4264 am__fastdepCC_TRUE=
4265 am__fastdepCC_FALSE='#'
4266 else
4267 am__fastdepCC_TRUE='#'
4268 am__fastdepCC_FALSE=
4273 ac_ext=c
4274 ac_cpp='$CPP $CPPFLAGS'
4275 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4276 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4277 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4279 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4280 # On Suns, sometimes $CPP names a directory.
4281 if test -n "$CPP" && test -d "$CPP"; then
4282 CPP=
4284 if test -z "$CPP"; then
4285 if ${ac_cv_prog_CPP+:} false; then :
4286 $as_echo_n "(cached) " >&6
4287 else
4288 # Double quotes because CPP needs to be expanded
4289 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4291 ac_preproc_ok=false
4292 for ac_c_preproc_warn_flag in '' yes
4294 # Use a header file that comes with gcc, so configuring glibc
4295 # with a fresh cross-compiler works.
4296 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4297 # <limits.h> exists even on freestanding compilers.
4298 # On the NeXT, cc -E runs the code through the compiler's parser,
4299 # not just through cpp. "Syntax error" is here to catch this case.
4300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4301 /* end confdefs.h. */
4302 #ifdef __STDC__
4303 # include <limits.h>
4304 #else
4305 # include <assert.h>
4306 #endif
4307 Syntax error
4308 _ACEOF
4309 if ac_fn_c_try_cpp "$LINENO"; then :
4311 else
4312 # Broken: fails on valid input.
4313 continue
4315 rm -f conftest.err conftest.i conftest.$ac_ext
4317 # OK, works on sane cases. Now check whether nonexistent headers
4318 # can be detected and how.
4319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4320 /* end confdefs.h. */
4321 #include <ac_nonexistent.h>
4322 _ACEOF
4323 if ac_fn_c_try_cpp "$LINENO"; then :
4324 # Broken: success on invalid input.
4325 continue
4326 else
4327 # Passes both tests.
4328 ac_preproc_ok=:
4329 break
4331 rm -f conftest.err conftest.i conftest.$ac_ext
4333 done
4334 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4335 rm -f conftest.i conftest.err conftest.$ac_ext
4336 if $ac_preproc_ok; then :
4337 break
4340 done
4341 ac_cv_prog_CPP=$CPP
4344 CPP=$ac_cv_prog_CPP
4345 else
4346 ac_cv_prog_CPP=$CPP
4348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4349 $as_echo "$CPP" >&6; }
4350 ac_preproc_ok=false
4351 for ac_c_preproc_warn_flag in '' yes
4353 # Use a header file that comes with gcc, so configuring glibc
4354 # with a fresh cross-compiler works.
4355 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4356 # <limits.h> exists even on freestanding compilers.
4357 # On the NeXT, cc -E runs the code through the compiler's parser,
4358 # not just through cpp. "Syntax error" is here to catch this case.
4359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4360 /* end confdefs.h. */
4361 #ifdef __STDC__
4362 # include <limits.h>
4363 #else
4364 # include <assert.h>
4365 #endif
4366 Syntax error
4367 _ACEOF
4368 if ac_fn_c_try_cpp "$LINENO"; then :
4370 else
4371 # Broken: fails on valid input.
4372 continue
4374 rm -f conftest.err conftest.i conftest.$ac_ext
4376 # OK, works on sane cases. Now check whether nonexistent headers
4377 # can be detected and how.
4378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4379 /* end confdefs.h. */
4380 #include <ac_nonexistent.h>
4381 _ACEOF
4382 if ac_fn_c_try_cpp "$LINENO"; then :
4383 # Broken: success on invalid input.
4384 continue
4385 else
4386 # Passes both tests.
4387 ac_preproc_ok=:
4388 break
4390 rm -f conftest.err conftest.i conftest.$ac_ext
4392 done
4393 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4394 rm -f conftest.i conftest.err conftest.$ac_ext
4395 if $ac_preproc_ok; then :
4397 else
4398 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4399 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4400 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4401 See \`config.log' for more details" "$LINENO" 5; }
4404 ac_ext=c
4405 ac_cpp='$CPP $CPPFLAGS'
4406 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4407 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4408 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4412 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4413 if ${ac_cv_path_GREP+:} false; then :
4414 $as_echo_n "(cached) " >&6
4415 else
4416 if test -z "$GREP"; then
4417 ac_path_GREP_found=false
4418 # Loop through the user's path and test for each of PROGNAME-LIST
4419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4420 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4422 IFS=$as_save_IFS
4423 test -z "$as_dir" && as_dir=.
4424 for ac_prog in grep ggrep; do
4425 for ac_exec_ext in '' $ac_executable_extensions; do
4426 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4427 as_fn_executable_p "$ac_path_GREP" || continue
4428 # Check for GNU ac_path_GREP and select it if it is found.
4429 # Check for GNU $ac_path_GREP
4430 case `"$ac_path_GREP" --version 2>&1` in
4431 *GNU*)
4432 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4434 ac_count=0
4435 $as_echo_n 0123456789 >"conftest.in"
4436 while :
4438 cat "conftest.in" "conftest.in" >"conftest.tmp"
4439 mv "conftest.tmp" "conftest.in"
4440 cp "conftest.in" "conftest.nl"
4441 $as_echo 'GREP' >> "conftest.nl"
4442 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4443 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4444 as_fn_arith $ac_count + 1 && ac_count=$as_val
4445 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4446 # Best one so far, save it but keep looking for a better one
4447 ac_cv_path_GREP="$ac_path_GREP"
4448 ac_path_GREP_max=$ac_count
4450 # 10*(2^10) chars as input seems more than enough
4451 test $ac_count -gt 10 && break
4452 done
4453 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4454 esac
4456 $ac_path_GREP_found && break 3
4457 done
4458 done
4459 done
4460 IFS=$as_save_IFS
4461 if test -z "$ac_cv_path_GREP"; then
4462 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4464 else
4465 ac_cv_path_GREP=$GREP
4469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4470 $as_echo "$ac_cv_path_GREP" >&6; }
4471 GREP="$ac_cv_path_GREP"
4474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4475 $as_echo_n "checking for egrep... " >&6; }
4476 if ${ac_cv_path_EGREP+:} false; then :
4477 $as_echo_n "(cached) " >&6
4478 else
4479 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4480 then ac_cv_path_EGREP="$GREP -E"
4481 else
4482 if test -z "$EGREP"; then
4483 ac_path_EGREP_found=false
4484 # Loop through the user's path and test for each of PROGNAME-LIST
4485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4486 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4488 IFS=$as_save_IFS
4489 test -z "$as_dir" && as_dir=.
4490 for ac_prog in egrep; do
4491 for ac_exec_ext in '' $ac_executable_extensions; do
4492 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4493 as_fn_executable_p "$ac_path_EGREP" || continue
4494 # Check for GNU ac_path_EGREP and select it if it is found.
4495 # Check for GNU $ac_path_EGREP
4496 case `"$ac_path_EGREP" --version 2>&1` in
4497 *GNU*)
4498 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4500 ac_count=0
4501 $as_echo_n 0123456789 >"conftest.in"
4502 while :
4504 cat "conftest.in" "conftest.in" >"conftest.tmp"
4505 mv "conftest.tmp" "conftest.in"
4506 cp "conftest.in" "conftest.nl"
4507 $as_echo 'EGREP' >> "conftest.nl"
4508 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4509 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4510 as_fn_arith $ac_count + 1 && ac_count=$as_val
4511 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4512 # Best one so far, save it but keep looking for a better one
4513 ac_cv_path_EGREP="$ac_path_EGREP"
4514 ac_path_EGREP_max=$ac_count
4516 # 10*(2^10) chars as input seems more than enough
4517 test $ac_count -gt 10 && break
4518 done
4519 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4520 esac
4522 $ac_path_EGREP_found && break 3
4523 done
4524 done
4525 done
4526 IFS=$as_save_IFS
4527 if test -z "$ac_cv_path_EGREP"; then
4528 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4530 else
4531 ac_cv_path_EGREP=$EGREP
4536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4537 $as_echo "$ac_cv_path_EGREP" >&6; }
4538 EGREP="$ac_cv_path_EGREP"
4541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4542 $as_echo_n "checking for ANSI C header files... " >&6; }
4543 if ${ac_cv_header_stdc+:} false; then :
4544 $as_echo_n "(cached) " >&6
4545 else
4546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4547 /* end confdefs.h. */
4548 #include <stdlib.h>
4549 #include <stdarg.h>
4550 #include <string.h>
4551 #include <float.h>
4554 main ()
4558 return 0;
4560 _ACEOF
4561 if ac_fn_c_try_compile "$LINENO"; then :
4562 ac_cv_header_stdc=yes
4563 else
4564 ac_cv_header_stdc=no
4566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4568 if test $ac_cv_header_stdc = yes; then
4569 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4571 /* end confdefs.h. */
4572 #include <string.h>
4574 _ACEOF
4575 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4576 $EGREP "memchr" >/dev/null 2>&1; then :
4578 else
4579 ac_cv_header_stdc=no
4581 rm -f conftest*
4585 if test $ac_cv_header_stdc = yes; then
4586 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4588 /* end confdefs.h. */
4589 #include <stdlib.h>
4591 _ACEOF
4592 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4593 $EGREP "free" >/dev/null 2>&1; then :
4595 else
4596 ac_cv_header_stdc=no
4598 rm -f conftest*
4602 if test $ac_cv_header_stdc = yes; then
4603 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4604 if test "$cross_compiling" = yes; then :
4606 else
4607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4608 /* end confdefs.h. */
4609 #include <ctype.h>
4610 #include <stdlib.h>
4611 #if ((' ' & 0x0FF) == 0x020)
4612 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4613 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4614 #else
4615 # define ISLOWER(c) \
4616 (('a' <= (c) && (c) <= 'i') \
4617 || ('j' <= (c) && (c) <= 'r') \
4618 || ('s' <= (c) && (c) <= 'z'))
4619 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4620 #endif
4622 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4624 main ()
4626 int i;
4627 for (i = 0; i < 256; i++)
4628 if (XOR (islower (i), ISLOWER (i))
4629 || toupper (i) != TOUPPER (i))
4630 return 2;
4631 return 0;
4633 _ACEOF
4634 if ac_fn_c_try_run "$LINENO"; then :
4636 else
4637 ac_cv_header_stdc=no
4639 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4640 conftest.$ac_objext conftest.beam conftest.$ac_ext
4645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4646 $as_echo "$ac_cv_header_stdc" >&6; }
4647 if test $ac_cv_header_stdc = yes; then
4649 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4653 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4654 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4655 inttypes.h stdint.h unistd.h
4656 do :
4657 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4658 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4660 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4661 cat >>confdefs.h <<_ACEOF
4662 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4663 _ACEOF
4667 done
4671 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4672 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4673 MINIX=yes
4674 else
4675 MINIX=
4679 if test "$MINIX" = yes; then
4681 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4684 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4687 $as_echo "#define _MINIX 1" >>confdefs.h
4692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4693 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4694 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4695 $as_echo_n "(cached) " >&6
4696 else
4697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4698 /* end confdefs.h. */
4700 # define __EXTENSIONS__ 1
4701 $ac_includes_default
4703 main ()
4707 return 0;
4709 _ACEOF
4710 if ac_fn_c_try_compile "$LINENO"; then :
4711 ac_cv_safe_to_define___extensions__=yes
4712 else
4713 ac_cv_safe_to_define___extensions__=no
4715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4718 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4719 test $ac_cv_safe_to_define___extensions__ = yes &&
4720 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4722 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4724 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4726 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4728 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4733 # Checks for header files.
4734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4735 $as_echo_n "checking for ANSI C header files... " >&6; }
4736 if ${ac_cv_header_stdc+:} false; then :
4737 $as_echo_n "(cached) " >&6
4738 else
4739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4740 /* end confdefs.h. */
4741 #include <stdlib.h>
4742 #include <stdarg.h>
4743 #include <string.h>
4744 #include <float.h>
4747 main ()
4751 return 0;
4753 _ACEOF
4754 if ac_fn_c_try_compile "$LINENO"; then :
4755 ac_cv_header_stdc=yes
4756 else
4757 ac_cv_header_stdc=no
4759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4761 if test $ac_cv_header_stdc = yes; then
4762 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4764 /* end confdefs.h. */
4765 #include <string.h>
4767 _ACEOF
4768 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4769 $EGREP "memchr" >/dev/null 2>&1; then :
4771 else
4772 ac_cv_header_stdc=no
4774 rm -f conftest*
4778 if test $ac_cv_header_stdc = yes; then
4779 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4781 /* end confdefs.h. */
4782 #include <stdlib.h>
4784 _ACEOF
4785 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4786 $EGREP "free" >/dev/null 2>&1; then :
4788 else
4789 ac_cv_header_stdc=no
4791 rm -f conftest*
4795 if test $ac_cv_header_stdc = yes; then
4796 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4797 if test "$cross_compiling" = yes; then :
4799 else
4800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4801 /* end confdefs.h. */
4802 #include <ctype.h>
4803 #include <stdlib.h>
4804 #if ((' ' & 0x0FF) == 0x020)
4805 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4806 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4807 #else
4808 # define ISLOWER(c) \
4809 (('a' <= (c) && (c) <= 'i') \
4810 || ('j' <= (c) && (c) <= 'r') \
4811 || ('s' <= (c) && (c) <= 'z'))
4812 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4813 #endif
4815 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4817 main ()
4819 int i;
4820 for (i = 0; i < 256; i++)
4821 if (XOR (islower (i), ISLOWER (i))
4822 || toupper (i) != TOUPPER (i))
4823 return 2;
4824 return 0;
4826 _ACEOF
4827 if ac_fn_c_try_run "$LINENO"; then :
4829 else
4830 ac_cv_header_stdc=no
4832 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4833 conftest.$ac_objext conftest.beam conftest.$ac_ext
4838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4839 $as_echo "$ac_cv_header_stdc" >&6; }
4840 if test $ac_cv_header_stdc = yes; then
4842 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
4847 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
4848 if ${ac_cv_header_sys_wait_h+:} false; then :
4849 $as_echo_n "(cached) " >&6
4850 else
4851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4852 /* end confdefs.h. */
4853 #include <sys/types.h>
4854 #include <sys/wait.h>
4855 #ifndef WEXITSTATUS
4856 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
4857 #endif
4858 #ifndef WIFEXITED
4859 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
4860 #endif
4863 main ()
4865 int s;
4866 wait (&s);
4867 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
4869 return 0;
4871 _ACEOF
4872 if ac_fn_c_try_compile "$LINENO"; then :
4873 ac_cv_header_sys_wait_h=yes
4874 else
4875 ac_cv_header_sys_wait_h=no
4877 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
4880 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
4881 if test $ac_cv_header_sys_wait_h = yes; then
4883 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
4887 for ac_header in limits.h stddef.h string.h strings.h stdlib.h \
4888 time.h sys/stat.h wchar.h
4889 do :
4890 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4891 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4892 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4893 cat >>confdefs.h <<_ACEOF
4894 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4895 _ACEOF
4899 done
4902 # Check whether --enable-werror was given.
4903 if test "${enable_werror+set}" = set; then :
4904 enableval=$enable_werror;
4908 # Add CET specific flags if CET is enabled
4909 # Check whether --enable-cet was given.
4910 if test "${enable_cet+set}" = set; then :
4911 enableval=$enable_cet;
4912 case "$enableval" in
4913 yes|no|auto) ;;
4914 *) as_fn_error $? "Unknown argument to enable/disable cet" "$LINENO" 5 ;;
4915 esac
4917 else
4918 enable_cet=auto
4922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5
4923 $as_echo_n "checking for CET support... " >&6; }
4925 # NB: Avoid nested save_CFLAGS and save_LDFLAGS.
4926 case "$host" in
4927 i[34567]86-*-linux* | x86_64-*-linux*)
4928 case "$enable_cet" in
4929 auto)
4930 # Check if target supports multi-byte NOPs
4931 # and if compiler and assembler support CET insn.
4932 cet_save_CFLAGS="$CFLAGS"
4933 CFLAGS="$CFLAGS -fcf-protection"
4934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4935 /* end confdefs.h. */
4938 main ()
4941 #if !defined(__SSE2__)
4942 #error target does not support multi-byte NOPs
4943 #else
4944 asm ("setssbsy");
4945 #endif
4948 return 0;
4950 _ACEOF
4951 if ac_fn_c_try_compile "$LINENO"; then :
4952 enable_cet=yes
4953 else
4954 enable_cet=no
4956 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4957 CFLAGS="$cet_save_CFLAGS"
4959 yes)
4960 # Check if assembler supports CET.
4961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4962 /* end confdefs.h. */
4965 main ()
4967 asm ("setssbsy");
4969 return 0;
4971 _ACEOF
4972 if ac_fn_c_try_compile "$LINENO"; then :
4974 else
4975 as_fn_error $? "assembler with CET support is required for --enable-cet" "$LINENO" 5
4977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4979 esac
4982 enable_cet=no
4984 esac
4985 if test x$enable_cet = xyes; then
4986 CET_FLAGS="-fcf-protection -mshstk"
4987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4988 $as_echo "yes" >&6; }
4989 else
4990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4991 $as_echo "no" >&6; }
4994 XCFLAGS="$XCFLAGS $CET_FLAGS"
4996 # Check for tools
4997 if test -n "$ac_tool_prefix"; then
4998 for ac_prog in ar lib "link -lib"
5000 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5001 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5003 $as_echo_n "checking for $ac_word... " >&6; }
5004 if ${ac_cv_prog_AR+:} false; then :
5005 $as_echo_n "(cached) " >&6
5006 else
5007 if test -n "$AR"; then
5008 ac_cv_prog_AR="$AR" # Let the user override the test.
5009 else
5010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5011 for as_dir in $PATH
5013 IFS=$as_save_IFS
5014 test -z "$as_dir" && as_dir=.
5015 for ac_exec_ext in '' $ac_executable_extensions; do
5016 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5017 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5018 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5019 break 2
5021 done
5022 done
5023 IFS=$as_save_IFS
5027 AR=$ac_cv_prog_AR
5028 if test -n "$AR"; then
5029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5030 $as_echo "$AR" >&6; }
5031 else
5032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5033 $as_echo "no" >&6; }
5037 test -n "$AR" && break
5038 done
5040 if test -z "$AR"; then
5041 ac_ct_AR=$AR
5042 for ac_prog in ar lib "link -lib"
5044 # Extract the first word of "$ac_prog", so it can be a program name with args.
5045 set dummy $ac_prog; ac_word=$2
5046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5047 $as_echo_n "checking for $ac_word... " >&6; }
5048 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5049 $as_echo_n "(cached) " >&6
5050 else
5051 if test -n "$ac_ct_AR"; then
5052 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5053 else
5054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5055 for as_dir in $PATH
5057 IFS=$as_save_IFS
5058 test -z "$as_dir" && as_dir=.
5059 for ac_exec_ext in '' $ac_executable_extensions; do
5060 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5061 ac_cv_prog_ac_ct_AR="$ac_prog"
5062 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5063 break 2
5065 done
5066 done
5067 IFS=$as_save_IFS
5071 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5072 if test -n "$ac_ct_AR"; then
5073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5074 $as_echo "$ac_ct_AR" >&6; }
5075 else
5076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5077 $as_echo "no" >&6; }
5081 test -n "$ac_ct_AR" && break
5082 done
5084 if test "x$ac_ct_AR" = x; then
5085 AR="false"
5086 else
5087 case $cross_compiling:$ac_tool_warned in
5088 yes:)
5089 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5090 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5091 ac_tool_warned=yes ;;
5092 esac
5093 AR=$ac_ct_AR
5097 : ${AR=ar}
5099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
5100 $as_echo_n "checking the archiver ($AR) interface... " >&6; }
5101 if ${am_cv_ar_interface+:} false; then :
5102 $as_echo_n "(cached) " >&6
5103 else
5104 ac_ext=c
5105 ac_cpp='$CPP $CPPFLAGS'
5106 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5107 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5108 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5110 am_cv_ar_interface=ar
5111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5112 /* end confdefs.h. */
5113 int some_variable = 0;
5114 _ACEOF
5115 if ac_fn_c_try_compile "$LINENO"; then :
5116 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
5117 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5118 (eval $am_ar_try) 2>&5
5119 ac_status=$?
5120 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5121 test $ac_status = 0; }
5122 if test "$ac_status" -eq 0; then
5123 am_cv_ar_interface=ar
5124 else
5125 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
5126 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5127 (eval $am_ar_try) 2>&5
5128 ac_status=$?
5129 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5130 test $ac_status = 0; }
5131 if test "$ac_status" -eq 0; then
5132 am_cv_ar_interface=lib
5133 else
5134 am_cv_ar_interface=unknown
5137 rm -f conftest.lib libconftest.a
5140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5141 ac_ext=c
5142 ac_cpp='$CPP $CPPFLAGS'
5143 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5144 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5145 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
5149 $as_echo "$am_cv_ar_interface" >&6; }
5151 case $am_cv_ar_interface in
5154 lib)
5155 # Microsoft lib, so override with the ar-lib wrapper script.
5156 # FIXME: It is wrong to rewrite AR.
5157 # But if we don't then we get into trouble of one sort or another.
5158 # A longer-term fix would be to have automake use am__AR in this case,
5159 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
5160 # similar.
5161 AR="$am_aux_dir/ar-lib $AR"
5163 unknown)
5164 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
5166 esac
5168 ac_ext=c
5169 ac_cpp='$CPP $CPPFLAGS'
5170 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5171 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5172 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5173 if test -n "$ac_tool_prefix"; then
5174 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5175 set dummy ${ac_tool_prefix}gcc; ac_word=$2
5176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5177 $as_echo_n "checking for $ac_word... " >&6; }
5178 if ${ac_cv_prog_CC+:} false; then :
5179 $as_echo_n "(cached) " >&6
5180 else
5181 if test -n "$CC"; then
5182 ac_cv_prog_CC="$CC" # Let the user override the test.
5183 else
5184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5185 for as_dir in $PATH
5187 IFS=$as_save_IFS
5188 test -z "$as_dir" && as_dir=.
5189 for ac_exec_ext in '' $ac_executable_extensions; do
5190 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5191 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5192 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5193 break 2
5195 done
5196 done
5197 IFS=$as_save_IFS
5201 CC=$ac_cv_prog_CC
5202 if test -n "$CC"; then
5203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5204 $as_echo "$CC" >&6; }
5205 else
5206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5207 $as_echo "no" >&6; }
5212 if test -z "$ac_cv_prog_CC"; then
5213 ac_ct_CC=$CC
5214 # Extract the first word of "gcc", so it can be a program name with args.
5215 set dummy gcc; ac_word=$2
5216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5217 $as_echo_n "checking for $ac_word... " >&6; }
5218 if ${ac_cv_prog_ac_ct_CC+:} false; then :
5219 $as_echo_n "(cached) " >&6
5220 else
5221 if test -n "$ac_ct_CC"; then
5222 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5223 else
5224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5225 for as_dir in $PATH
5227 IFS=$as_save_IFS
5228 test -z "$as_dir" && as_dir=.
5229 for ac_exec_ext in '' $ac_executable_extensions; do
5230 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5231 ac_cv_prog_ac_ct_CC="gcc"
5232 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5233 break 2
5235 done
5236 done
5237 IFS=$as_save_IFS
5241 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5242 if test -n "$ac_ct_CC"; then
5243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5244 $as_echo "$ac_ct_CC" >&6; }
5245 else
5246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5247 $as_echo "no" >&6; }
5250 if test "x$ac_ct_CC" = x; then
5251 CC=""
5252 else
5253 case $cross_compiling:$ac_tool_warned in
5254 yes:)
5255 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5256 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5257 ac_tool_warned=yes ;;
5258 esac
5259 CC=$ac_ct_CC
5261 else
5262 CC="$ac_cv_prog_CC"
5265 if test -z "$CC"; then
5266 if test -n "$ac_tool_prefix"; then
5267 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5268 set dummy ${ac_tool_prefix}cc; ac_word=$2
5269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5270 $as_echo_n "checking for $ac_word... " >&6; }
5271 if ${ac_cv_prog_CC+:} false; then :
5272 $as_echo_n "(cached) " >&6
5273 else
5274 if test -n "$CC"; then
5275 ac_cv_prog_CC="$CC" # Let the user override the test.
5276 else
5277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5278 for as_dir in $PATH
5280 IFS=$as_save_IFS
5281 test -z "$as_dir" && as_dir=.
5282 for ac_exec_ext in '' $ac_executable_extensions; do
5283 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5284 ac_cv_prog_CC="${ac_tool_prefix}cc"
5285 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5286 break 2
5288 done
5289 done
5290 IFS=$as_save_IFS
5294 CC=$ac_cv_prog_CC
5295 if test -n "$CC"; then
5296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5297 $as_echo "$CC" >&6; }
5298 else
5299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5300 $as_echo "no" >&6; }
5306 if test -z "$CC"; then
5307 # Extract the first word of "cc", so it can be a program name with args.
5308 set dummy cc; ac_word=$2
5309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5310 $as_echo_n "checking for $ac_word... " >&6; }
5311 if ${ac_cv_prog_CC+:} false; then :
5312 $as_echo_n "(cached) " >&6
5313 else
5314 if test -n "$CC"; then
5315 ac_cv_prog_CC="$CC" # Let the user override the test.
5316 else
5317 ac_prog_rejected=no
5318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5319 for as_dir in $PATH
5321 IFS=$as_save_IFS
5322 test -z "$as_dir" && as_dir=.
5323 for ac_exec_ext in '' $ac_executable_extensions; do
5324 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5325 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5326 ac_prog_rejected=yes
5327 continue
5329 ac_cv_prog_CC="cc"
5330 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5331 break 2
5333 done
5334 done
5335 IFS=$as_save_IFS
5337 if test $ac_prog_rejected = yes; then
5338 # We found a bogon in the path, so make sure we never use it.
5339 set dummy $ac_cv_prog_CC
5340 shift
5341 if test $# != 0; then
5342 # We chose a different compiler from the bogus one.
5343 # However, it has the same basename, so the bogon will be chosen
5344 # first if we set CC to just the basename; use the full file name.
5345 shift
5346 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5351 CC=$ac_cv_prog_CC
5352 if test -n "$CC"; then
5353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5354 $as_echo "$CC" >&6; }
5355 else
5356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5357 $as_echo "no" >&6; }
5362 if test -z "$CC"; then
5363 if test -n "$ac_tool_prefix"; then
5364 for ac_prog in cl.exe
5366 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5367 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5369 $as_echo_n "checking for $ac_word... " >&6; }
5370 if ${ac_cv_prog_CC+:} false; then :
5371 $as_echo_n "(cached) " >&6
5372 else
5373 if test -n "$CC"; then
5374 ac_cv_prog_CC="$CC" # Let the user override the test.
5375 else
5376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5377 for as_dir in $PATH
5379 IFS=$as_save_IFS
5380 test -z "$as_dir" && as_dir=.
5381 for ac_exec_ext in '' $ac_executable_extensions; do
5382 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5383 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5384 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5385 break 2
5387 done
5388 done
5389 IFS=$as_save_IFS
5393 CC=$ac_cv_prog_CC
5394 if test -n "$CC"; then
5395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5396 $as_echo "$CC" >&6; }
5397 else
5398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5399 $as_echo "no" >&6; }
5403 test -n "$CC" && break
5404 done
5406 if test -z "$CC"; then
5407 ac_ct_CC=$CC
5408 for ac_prog in cl.exe
5410 # Extract the first word of "$ac_prog", so it can be a program name with args.
5411 set dummy $ac_prog; ac_word=$2
5412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5413 $as_echo_n "checking for $ac_word... " >&6; }
5414 if ${ac_cv_prog_ac_ct_CC+:} false; then :
5415 $as_echo_n "(cached) " >&6
5416 else
5417 if test -n "$ac_ct_CC"; then
5418 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5419 else
5420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5421 for as_dir in $PATH
5423 IFS=$as_save_IFS
5424 test -z "$as_dir" && as_dir=.
5425 for ac_exec_ext in '' $ac_executable_extensions; do
5426 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5427 ac_cv_prog_ac_ct_CC="$ac_prog"
5428 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5429 break 2
5431 done
5432 done
5433 IFS=$as_save_IFS
5437 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5438 if test -n "$ac_ct_CC"; then
5439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5440 $as_echo "$ac_ct_CC" >&6; }
5441 else
5442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5443 $as_echo "no" >&6; }
5447 test -n "$ac_ct_CC" && break
5448 done
5450 if test "x$ac_ct_CC" = x; then
5451 CC=""
5452 else
5453 case $cross_compiling:$ac_tool_warned in
5454 yes:)
5455 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5456 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5457 ac_tool_warned=yes ;;
5458 esac
5459 CC=$ac_ct_CC
5466 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5467 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5468 as_fn_error $? "no acceptable C compiler found in \$PATH
5469 See \`config.log' for more details" "$LINENO" 5; }
5471 # Provide some information about the compiler.
5472 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5473 set X $ac_compile
5474 ac_compiler=$2
5475 for ac_option in --version -v -V -qversion; do
5476 { { ac_try="$ac_compiler $ac_option >&5"
5477 case "(($ac_try" in
5478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5479 *) ac_try_echo=$ac_try;;
5480 esac
5481 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5482 $as_echo "$ac_try_echo"; } >&5
5483 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5484 ac_status=$?
5485 if test -s conftest.err; then
5486 sed '10a\
5487 ... rest of stderr output deleted ...
5488 10q' conftest.err >conftest.er1
5489 cat conftest.er1 >&5
5491 rm -f conftest.er1 conftest.err
5492 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5493 test $ac_status = 0; }
5494 done
5496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5497 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5498 if ${ac_cv_c_compiler_gnu+:} false; then :
5499 $as_echo_n "(cached) " >&6
5500 else
5501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5502 /* end confdefs.h. */
5505 main ()
5507 #ifndef __GNUC__
5508 choke me
5509 #endif
5512 return 0;
5514 _ACEOF
5515 if ac_fn_c_try_compile "$LINENO"; then :
5516 ac_compiler_gnu=yes
5517 else
5518 ac_compiler_gnu=no
5520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5521 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5525 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5526 if test $ac_compiler_gnu = yes; then
5527 GCC=yes
5528 else
5529 GCC=
5531 ac_test_CFLAGS=${CFLAGS+set}
5532 ac_save_CFLAGS=$CFLAGS
5533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5534 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5535 if ${ac_cv_prog_cc_g+:} false; then :
5536 $as_echo_n "(cached) " >&6
5537 else
5538 ac_save_c_werror_flag=$ac_c_werror_flag
5539 ac_c_werror_flag=yes
5540 ac_cv_prog_cc_g=no
5541 CFLAGS="-g"
5542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5543 /* end confdefs.h. */
5546 main ()
5550 return 0;
5552 _ACEOF
5553 if ac_fn_c_try_compile "$LINENO"; then :
5554 ac_cv_prog_cc_g=yes
5555 else
5556 CFLAGS=""
5557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5558 /* end confdefs.h. */
5561 main ()
5565 return 0;
5567 _ACEOF
5568 if ac_fn_c_try_compile "$LINENO"; then :
5570 else
5571 ac_c_werror_flag=$ac_save_c_werror_flag
5572 CFLAGS="-g"
5573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5574 /* end confdefs.h. */
5577 main ()
5581 return 0;
5583 _ACEOF
5584 if ac_fn_c_try_compile "$LINENO"; then :
5585 ac_cv_prog_cc_g=yes
5587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5592 ac_c_werror_flag=$ac_save_c_werror_flag
5594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5595 $as_echo "$ac_cv_prog_cc_g" >&6; }
5596 if test "$ac_test_CFLAGS" = set; then
5597 CFLAGS=$ac_save_CFLAGS
5598 elif test $ac_cv_prog_cc_g = yes; then
5599 if test "$GCC" = yes; then
5600 CFLAGS="-g -O2"
5601 else
5602 CFLAGS="-g"
5604 else
5605 if test "$GCC" = yes; then
5606 CFLAGS="-O2"
5607 else
5608 CFLAGS=
5611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5612 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5613 if ${ac_cv_prog_cc_c89+:} false; then :
5614 $as_echo_n "(cached) " >&6
5615 else
5616 ac_cv_prog_cc_c89=no
5617 ac_save_CC=$CC
5618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5619 /* end confdefs.h. */
5620 #include <stdarg.h>
5621 #include <stdio.h>
5622 struct stat;
5623 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5624 struct buf { int x; };
5625 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5626 static char *e (p, i)
5627 char **p;
5628 int i;
5630 return p[i];
5632 static char *f (char * (*g) (char **, int), char **p, ...)
5634 char *s;
5635 va_list v;
5636 va_start (v,p);
5637 s = g (p, va_arg (v,int));
5638 va_end (v);
5639 return s;
5642 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5643 function prototypes and stuff, but not '\xHH' hex character constants.
5644 These don't provoke an error unfortunately, instead are silently treated
5645 as 'x'. The following induces an error, until -std is added to get
5646 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5647 array size at least. It's necessary to write '\x00'==0 to get something
5648 that's true only with -std. */
5649 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5651 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5652 inside strings and character constants. */
5653 #define FOO(x) 'x'
5654 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5656 int test (int i, double x);
5657 struct s1 {int (*f) (int a);};
5658 struct s2 {int (*f) (double a);};
5659 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5660 int argc;
5661 char **argv;
5663 main ()
5665 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5667 return 0;
5669 _ACEOF
5670 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5671 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5673 CC="$ac_save_CC $ac_arg"
5674 if ac_fn_c_try_compile "$LINENO"; then :
5675 ac_cv_prog_cc_c89=$ac_arg
5677 rm -f core conftest.err conftest.$ac_objext
5678 test "x$ac_cv_prog_cc_c89" != "xno" && break
5679 done
5680 rm -f conftest.$ac_ext
5681 CC=$ac_save_CC
5684 # AC_CACHE_VAL
5685 case "x$ac_cv_prog_cc_c89" in
5687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5688 $as_echo "none needed" >&6; } ;;
5689 xno)
5690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5691 $as_echo "unsupported" >&6; } ;;
5693 CC="$CC $ac_cv_prog_cc_c89"
5694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5695 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5696 esac
5697 if test "x$ac_cv_prog_cc_c89" != xno; then :
5701 ac_ext=c
5702 ac_cpp='$CPP $CPPFLAGS'
5703 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5704 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5705 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5707 ac_ext=c
5708 ac_cpp='$CPP $CPPFLAGS'
5709 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5710 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5711 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5713 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
5714 if ${am_cv_prog_cc_c_o+:} false; then :
5715 $as_echo_n "(cached) " >&6
5716 else
5717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5718 /* end confdefs.h. */
5721 main ()
5725 return 0;
5727 _ACEOF
5728 # Make sure it works both with $CC and with simple cc.
5729 # Following AC_PROG_CC_C_O, we do the test twice because some
5730 # compilers refuse to overwrite an existing .o file with -o,
5731 # though they will create one.
5732 am_cv_prog_cc_c_o=yes
5733 for am_i in 1 2; do
5734 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5735 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5736 ac_status=$?
5737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5738 (exit $ac_status); } \
5739 && test -f conftest2.$ac_objext; then
5740 : OK
5741 else
5742 am_cv_prog_cc_c_o=no
5743 break
5745 done
5746 rm -f core conftest*
5747 unset am_i
5749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5750 $as_echo "$am_cv_prog_cc_c_o" >&6; }
5751 if test "$am_cv_prog_cc_c_o" != yes; then
5752 # Losing compiler, so override with the script.
5753 # FIXME: It is wrong to rewrite CC.
5754 # But if we don't then we get into trouble of one sort or another.
5755 # A longer-term fix would be to have automake use am__CC in this case,
5756 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5757 CC="$am_aux_dir/compile $CC"
5759 ac_ext=c
5760 ac_cpp='$CPP $CPPFLAGS'
5761 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5762 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5763 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5766 depcc="$CC" am_compiler_list=
5768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5769 $as_echo_n "checking dependency style of $depcc... " >&6; }
5770 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5771 $as_echo_n "(cached) " >&6
5772 else
5773 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5774 # We make a subdir and do the tests there. Otherwise we can end up
5775 # making bogus files that we don't know about and never remove. For
5776 # instance it was reported that on HP-UX the gcc test will end up
5777 # making a dummy file named 'D' -- because '-MD' means "put the output
5778 # in D".
5779 rm -rf conftest.dir
5780 mkdir conftest.dir
5781 # Copy depcomp to subdir because otherwise we won't find it if we're
5782 # using a relative directory.
5783 cp "$am_depcomp" conftest.dir
5784 cd conftest.dir
5785 # We will build objects and dependencies in a subdirectory because
5786 # it helps to detect inapplicable dependency modes. For instance
5787 # both Tru64's cc and ICC support -MD to output dependencies as a
5788 # side effect of compilation, but ICC will put the dependencies in
5789 # the current directory while Tru64 will put them in the object
5790 # directory.
5791 mkdir sub
5793 am_cv_CC_dependencies_compiler_type=none
5794 if test "$am_compiler_list" = ""; then
5795 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5797 am__universal=false
5798 case " $depcc " in #(
5799 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5800 esac
5802 for depmode in $am_compiler_list; do
5803 # Setup a source with many dependencies, because some compilers
5804 # like to wrap large dependency lists on column 80 (with \), and
5805 # we should not choose a depcomp mode which is confused by this.
5807 # We need to recreate these files for each test, as the compiler may
5808 # overwrite some of them when testing with obscure command lines.
5809 # This happens at least with the AIX C compiler.
5810 : > sub/conftest.c
5811 for i in 1 2 3 4 5 6; do
5812 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5813 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5814 # Solaris 10 /bin/sh.
5815 echo '/* dummy */' > sub/conftst$i.h
5816 done
5817 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5819 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5820 # mode. It turns out that the SunPro C++ compiler does not properly
5821 # handle '-M -o', and we need to detect this. Also, some Intel
5822 # versions had trouble with output in subdirs.
5823 am__obj=sub/conftest.${OBJEXT-o}
5824 am__minus_obj="-o $am__obj"
5825 case $depmode in
5826 gcc)
5827 # This depmode causes a compiler race in universal mode.
5828 test "$am__universal" = false || continue
5830 nosideeffect)
5831 # After this tag, mechanisms are not by side-effect, so they'll
5832 # only be used when explicitly requested.
5833 if test "x$enable_dependency_tracking" = xyes; then
5834 continue
5835 else
5836 break
5839 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5840 # This compiler won't grok '-c -o', but also, the minuso test has
5841 # not run yet. These depmodes are late enough in the game, and
5842 # so weak that their functioning should not be impacted.
5843 am__obj=conftest.${OBJEXT-o}
5844 am__minus_obj=
5846 none) break ;;
5847 esac
5848 if depmode=$depmode \
5849 source=sub/conftest.c object=$am__obj \
5850 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5851 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5852 >/dev/null 2>conftest.err &&
5853 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5854 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5855 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5856 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5857 # icc doesn't choke on unknown options, it will just issue warnings
5858 # or remarks (even with -Werror). So we grep stderr for any message
5859 # that says an option was ignored or not supported.
5860 # When given -MP, icc 7.0 and 7.1 complain thusly:
5861 # icc: Command line warning: ignoring option '-M'; no argument required
5862 # The diagnosis changed in icc 8.0:
5863 # icc: Command line remark: option '-MP' not supported
5864 if (grep 'ignoring option' conftest.err ||
5865 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5866 am_cv_CC_dependencies_compiler_type=$depmode
5867 break
5870 done
5872 cd ..
5873 rm -rf conftest.dir
5874 else
5875 am_cv_CC_dependencies_compiler_type=none
5879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5880 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5881 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5884 test "x$enable_dependency_tracking" != xno \
5885 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5886 am__fastdepCC_TRUE=
5887 am__fastdepCC_FALSE='#'
5888 else
5889 am__fastdepCC_TRUE='#'
5890 am__fastdepCC_FALSE=
5894 ac_ext=cpp
5895 ac_cpp='$CXXCPP $CPPFLAGS'
5896 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5897 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5898 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5899 if test -z "$CXX"; then
5900 if test -n "$CCC"; then
5901 CXX=$CCC
5902 else
5903 if test -n "$ac_tool_prefix"; then
5904 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5906 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5907 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5909 $as_echo_n "checking for $ac_word... " >&6; }
5910 if ${ac_cv_prog_CXX+:} false; then :
5911 $as_echo_n "(cached) " >&6
5912 else
5913 if test -n "$CXX"; then
5914 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5915 else
5916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5917 for as_dir in $PATH
5919 IFS=$as_save_IFS
5920 test -z "$as_dir" && as_dir=.
5921 for ac_exec_ext in '' $ac_executable_extensions; do
5922 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5923 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5924 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5925 break 2
5927 done
5928 done
5929 IFS=$as_save_IFS
5933 CXX=$ac_cv_prog_CXX
5934 if test -n "$CXX"; then
5935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5936 $as_echo "$CXX" >&6; }
5937 else
5938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5939 $as_echo "no" >&6; }
5943 test -n "$CXX" && break
5944 done
5946 if test -z "$CXX"; then
5947 ac_ct_CXX=$CXX
5948 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5950 # Extract the first word of "$ac_prog", so it can be a program name with args.
5951 set dummy $ac_prog; ac_word=$2
5952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5953 $as_echo_n "checking for $ac_word... " >&6; }
5954 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
5955 $as_echo_n "(cached) " >&6
5956 else
5957 if test -n "$ac_ct_CXX"; then
5958 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5959 else
5960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5961 for as_dir in $PATH
5963 IFS=$as_save_IFS
5964 test -z "$as_dir" && as_dir=.
5965 for ac_exec_ext in '' $ac_executable_extensions; do
5966 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5967 ac_cv_prog_ac_ct_CXX="$ac_prog"
5968 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5969 break 2
5971 done
5972 done
5973 IFS=$as_save_IFS
5977 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5978 if test -n "$ac_ct_CXX"; then
5979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5980 $as_echo "$ac_ct_CXX" >&6; }
5981 else
5982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5983 $as_echo "no" >&6; }
5987 test -n "$ac_ct_CXX" && break
5988 done
5990 if test "x$ac_ct_CXX" = x; then
5991 CXX="g++"
5992 else
5993 case $cross_compiling:$ac_tool_warned in
5994 yes:)
5995 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5996 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5997 ac_tool_warned=yes ;;
5998 esac
5999 CXX=$ac_ct_CXX
6005 # Provide some information about the compiler.
6006 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
6007 set X $ac_compile
6008 ac_compiler=$2
6009 for ac_option in --version -v -V -qversion; do
6010 { { ac_try="$ac_compiler $ac_option >&5"
6011 case "(($ac_try" in
6012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6013 *) ac_try_echo=$ac_try;;
6014 esac
6015 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6016 $as_echo "$ac_try_echo"; } >&5
6017 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6018 ac_status=$?
6019 if test -s conftest.err; then
6020 sed '10a\
6021 ... rest of stderr output deleted ...
6022 10q' conftest.err >conftest.er1
6023 cat conftest.er1 >&5
6025 rm -f conftest.er1 conftest.err
6026 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6027 test $ac_status = 0; }
6028 done
6030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
6031 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
6032 if ${ac_cv_cxx_compiler_gnu+:} false; then :
6033 $as_echo_n "(cached) " >&6
6034 else
6035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6036 /* end confdefs.h. */
6039 main ()
6041 #ifndef __GNUC__
6042 choke me
6043 #endif
6046 return 0;
6048 _ACEOF
6049 if ac_fn_cxx_try_compile "$LINENO"; then :
6050 ac_compiler_gnu=yes
6051 else
6052 ac_compiler_gnu=no
6054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6055 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
6059 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
6060 if test $ac_compiler_gnu = yes; then
6061 GXX=yes
6062 else
6063 GXX=
6065 ac_test_CXXFLAGS=${CXXFLAGS+set}
6066 ac_save_CXXFLAGS=$CXXFLAGS
6067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
6068 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
6069 if ${ac_cv_prog_cxx_g+:} false; then :
6070 $as_echo_n "(cached) " >&6
6071 else
6072 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6073 ac_cxx_werror_flag=yes
6074 ac_cv_prog_cxx_g=no
6075 CXXFLAGS="-g"
6076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6077 /* end confdefs.h. */
6080 main ()
6084 return 0;
6086 _ACEOF
6087 if ac_fn_cxx_try_compile "$LINENO"; then :
6088 ac_cv_prog_cxx_g=yes
6089 else
6090 CXXFLAGS=""
6091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6092 /* end confdefs.h. */
6095 main ()
6099 return 0;
6101 _ACEOF
6102 if ac_fn_cxx_try_compile "$LINENO"; then :
6104 else
6105 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6106 CXXFLAGS="-g"
6107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6108 /* end confdefs.h. */
6111 main ()
6115 return 0;
6117 _ACEOF
6118 if ac_fn_cxx_try_compile "$LINENO"; then :
6119 ac_cv_prog_cxx_g=yes
6121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6125 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6126 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
6129 $as_echo "$ac_cv_prog_cxx_g" >&6; }
6130 if test "$ac_test_CXXFLAGS" = set; then
6131 CXXFLAGS=$ac_save_CXXFLAGS
6132 elif test $ac_cv_prog_cxx_g = yes; then
6133 if test "$GXX" = yes; then
6134 CXXFLAGS="-g -O2"
6135 else
6136 CXXFLAGS="-g"
6138 else
6139 if test "$GXX" = yes; then
6140 CXXFLAGS="-O2"
6141 else
6142 CXXFLAGS=
6145 ac_ext=c
6146 ac_cpp='$CPP $CPPFLAGS'
6147 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6148 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6149 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6151 depcc="$CXX" am_compiler_list=
6153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6154 $as_echo_n "checking dependency style of $depcc... " >&6; }
6155 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
6156 $as_echo_n "(cached) " >&6
6157 else
6158 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6159 # We make a subdir and do the tests there. Otherwise we can end up
6160 # making bogus files that we don't know about and never remove. For
6161 # instance it was reported that on HP-UX the gcc test will end up
6162 # making a dummy file named 'D' -- because '-MD' means "put the output
6163 # in D".
6164 rm -rf conftest.dir
6165 mkdir conftest.dir
6166 # Copy depcomp to subdir because otherwise we won't find it if we're
6167 # using a relative directory.
6168 cp "$am_depcomp" conftest.dir
6169 cd conftest.dir
6170 # We will build objects and dependencies in a subdirectory because
6171 # it helps to detect inapplicable dependency modes. For instance
6172 # both Tru64's cc and ICC support -MD to output dependencies as a
6173 # side effect of compilation, but ICC will put the dependencies in
6174 # the current directory while Tru64 will put them in the object
6175 # directory.
6176 mkdir sub
6178 am_cv_CXX_dependencies_compiler_type=none
6179 if test "$am_compiler_list" = ""; then
6180 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6182 am__universal=false
6183 case " $depcc " in #(
6184 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6185 esac
6187 for depmode in $am_compiler_list; do
6188 # Setup a source with many dependencies, because some compilers
6189 # like to wrap large dependency lists on column 80 (with \), and
6190 # we should not choose a depcomp mode which is confused by this.
6192 # We need to recreate these files for each test, as the compiler may
6193 # overwrite some of them when testing with obscure command lines.
6194 # This happens at least with the AIX C compiler.
6195 : > sub/conftest.c
6196 for i in 1 2 3 4 5 6; do
6197 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6198 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6199 # Solaris 10 /bin/sh.
6200 echo '/* dummy */' > sub/conftst$i.h
6201 done
6202 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6204 # We check with '-c' and '-o' for the sake of the "dashmstdout"
6205 # mode. It turns out that the SunPro C++ compiler does not properly
6206 # handle '-M -o', and we need to detect this. Also, some Intel
6207 # versions had trouble with output in subdirs.
6208 am__obj=sub/conftest.${OBJEXT-o}
6209 am__minus_obj="-o $am__obj"
6210 case $depmode in
6211 gcc)
6212 # This depmode causes a compiler race in universal mode.
6213 test "$am__universal" = false || continue
6215 nosideeffect)
6216 # After this tag, mechanisms are not by side-effect, so they'll
6217 # only be used when explicitly requested.
6218 if test "x$enable_dependency_tracking" = xyes; then
6219 continue
6220 else
6221 break
6224 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
6225 # This compiler won't grok '-c -o', but also, the minuso test has
6226 # not run yet. These depmodes are late enough in the game, and
6227 # so weak that their functioning should not be impacted.
6228 am__obj=conftest.${OBJEXT-o}
6229 am__minus_obj=
6231 none) break ;;
6232 esac
6233 if depmode=$depmode \
6234 source=sub/conftest.c object=$am__obj \
6235 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6236 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6237 >/dev/null 2>conftest.err &&
6238 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6239 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6240 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6241 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6242 # icc doesn't choke on unknown options, it will just issue warnings
6243 # or remarks (even with -Werror). So we grep stderr for any message
6244 # that says an option was ignored or not supported.
6245 # When given -MP, icc 7.0 and 7.1 complain thusly:
6246 # icc: Command line warning: ignoring option '-M'; no argument required
6247 # The diagnosis changed in icc 8.0:
6248 # icc: Command line remark: option '-MP' not supported
6249 if (grep 'ignoring option' conftest.err ||
6250 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6251 am_cv_CXX_dependencies_compiler_type=$depmode
6252 break
6255 done
6257 cd ..
6258 rm -rf conftest.dir
6259 else
6260 am_cv_CXX_dependencies_compiler_type=none
6264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
6265 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
6266 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6269 test "x$enable_dependency_tracking" != xno \
6270 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6271 am__fastdepCXX_TRUE=
6272 am__fastdepCXX_FALSE='#'
6273 else
6274 am__fastdepCXX_TRUE='#'
6275 am__fastdepCXX_FALSE=
6279 # By default we simply use the C compiler to build assembly code.
6281 test "${CCAS+set}" = set || CCAS=$CC
6282 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
6286 depcc="$CCAS" am_compiler_list=
6288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6289 $as_echo_n "checking dependency style of $depcc... " >&6; }
6290 if ${am_cv_CCAS_dependencies_compiler_type+:} false; then :
6291 $as_echo_n "(cached) " >&6
6292 else
6293 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6294 # We make a subdir and do the tests there. Otherwise we can end up
6295 # making bogus files that we don't know about and never remove. For
6296 # instance it was reported that on HP-UX the gcc test will end up
6297 # making a dummy file named 'D' -- because '-MD' means "put the output
6298 # in D".
6299 rm -rf conftest.dir
6300 mkdir conftest.dir
6301 # Copy depcomp to subdir because otherwise we won't find it if we're
6302 # using a relative directory.
6303 cp "$am_depcomp" conftest.dir
6304 cd conftest.dir
6305 # We will build objects and dependencies in a subdirectory because
6306 # it helps to detect inapplicable dependency modes. For instance
6307 # both Tru64's cc and ICC support -MD to output dependencies as a
6308 # side effect of compilation, but ICC will put the dependencies in
6309 # the current directory while Tru64 will put them in the object
6310 # directory.
6311 mkdir sub
6313 am_cv_CCAS_dependencies_compiler_type=none
6314 if test "$am_compiler_list" = ""; then
6315 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6317 am__universal=false
6320 for depmode in $am_compiler_list; do
6321 # Setup a source with many dependencies, because some compilers
6322 # like to wrap large dependency lists on column 80 (with \), and
6323 # we should not choose a depcomp mode which is confused by this.
6325 # We need to recreate these files for each test, as the compiler may
6326 # overwrite some of them when testing with obscure command lines.
6327 # This happens at least with the AIX C compiler.
6328 : > sub/conftest.c
6329 for i in 1 2 3 4 5 6; do
6330 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6331 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6332 # Solaris 10 /bin/sh.
6333 echo '/* dummy */' > sub/conftst$i.h
6334 done
6335 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6337 # We check with '-c' and '-o' for the sake of the "dashmstdout"
6338 # mode. It turns out that the SunPro C++ compiler does not properly
6339 # handle '-M -o', and we need to detect this. Also, some Intel
6340 # versions had trouble with output in subdirs.
6341 am__obj=sub/conftest.${OBJEXT-o}
6342 am__minus_obj="-o $am__obj"
6343 case $depmode in
6344 gcc)
6345 # This depmode causes a compiler race in universal mode.
6346 test "$am__universal" = false || continue
6348 nosideeffect)
6349 # After this tag, mechanisms are not by side-effect, so they'll
6350 # only be used when explicitly requested.
6351 if test "x$enable_dependency_tracking" = xyes; then
6352 continue
6353 else
6354 break
6357 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
6358 # This compiler won't grok '-c -o', but also, the minuso test has
6359 # not run yet. These depmodes are late enough in the game, and
6360 # so weak that their functioning should not be impacted.
6361 am__obj=conftest.${OBJEXT-o}
6362 am__minus_obj=
6364 none) break ;;
6365 esac
6366 if depmode=$depmode \
6367 source=sub/conftest.c object=$am__obj \
6368 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6369 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6370 >/dev/null 2>conftest.err &&
6371 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6372 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6373 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6374 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6375 # icc doesn't choke on unknown options, it will just issue warnings
6376 # or remarks (even with -Werror). So we grep stderr for any message
6377 # that says an option was ignored or not supported.
6378 # When given -MP, icc 7.0 and 7.1 complain thusly:
6379 # icc: Command line warning: ignoring option '-M'; no argument required
6380 # The diagnosis changed in icc 8.0:
6381 # icc: Command line remark: option '-MP' not supported
6382 if (grep 'ignoring option' conftest.err ||
6383 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6384 am_cv_CCAS_dependencies_compiler_type=$depmode
6385 break
6388 done
6390 cd ..
6391 rm -rf conftest.dir
6392 else
6393 am_cv_CCAS_dependencies_compiler_type=none
6397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
6398 $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
6399 CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
6402 test "x$enable_dependency_tracking" != xno \
6403 && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
6404 am__fastdepCCAS_TRUE=
6405 am__fastdepCCAS_FALSE='#'
6406 else
6407 am__fastdepCCAS_TRUE='#'
6408 am__fastdepCCAS_FALSE=
6412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6413 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6414 set x ${MAKE-make}
6415 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
6416 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
6417 $as_echo_n "(cached) " >&6
6418 else
6419 cat >conftest.make <<\_ACEOF
6420 SHELL = /bin/sh
6421 all:
6422 @echo '@@@%%%=$(MAKE)=@@@%%%'
6423 _ACEOF
6424 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
6425 case `${MAKE-make} -f conftest.make 2>/dev/null` in
6426 *@@@%%%=?*=@@@%%%*)
6427 eval ac_cv_prog_make_${ac_make}_set=yes;;
6429 eval ac_cv_prog_make_${ac_make}_set=no;;
6430 esac
6431 rm -f conftest.make
6433 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
6434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6435 $as_echo "yes" >&6; }
6436 SET_MAKE=
6437 else
6438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6439 $as_echo "no" >&6; }
6440 SET_MAKE="MAKE=${MAKE-make}"
6445 # Enable libtool
6446 case `pwd` in
6447 *\ * | *\ *)
6448 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6449 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6450 esac
6454 macro_version='2.2.7a'
6455 macro_revision='1.3134'
6469 ltmain="$ac_aux_dir/ltmain.sh"
6471 # Backslashify metacharacters that are still active within
6472 # double-quoted strings.
6473 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6475 # Same as above, but do not quote variable references.
6476 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6478 # Sed substitution to delay expansion of an escaped shell variable in a
6479 # double_quote_subst'ed string.
6480 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6482 # Sed substitution to delay expansion of an escaped single quote.
6483 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6485 # Sed substitution to avoid accidental globbing in evaled expressions
6486 no_glob_subst='s/\*/\\\*/g'
6488 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6489 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6490 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6493 $as_echo_n "checking how to print strings... " >&6; }
6494 # Test print first, because it will be a builtin if present.
6495 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
6496 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6497 ECHO='print -r --'
6498 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6499 ECHO='printf %s\n'
6500 else
6501 # Use this function as a fallback that always works.
6502 func_fallback_echo ()
6504 eval 'cat <<_LTECHO_EOF
6506 _LTECHO_EOF'
6508 ECHO='func_fallback_echo'
6511 # func_echo_all arg...
6512 # Invoke $ECHO with all args, space-separated.
6513 func_echo_all ()
6515 $ECHO ""
6518 case "$ECHO" in
6519 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6520 $as_echo "printf" >&6; } ;;
6521 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6522 $as_echo "print -r" >&6; } ;;
6523 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6524 $as_echo "cat" >&6; } ;;
6525 esac
6540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6541 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6542 if ${ac_cv_path_SED+:} false; then :
6543 $as_echo_n "(cached) " >&6
6544 else
6545 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6546 for ac_i in 1 2 3 4 5 6 7; do
6547 ac_script="$ac_script$as_nl$ac_script"
6548 done
6549 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6550 { ac_script=; unset ac_script;}
6551 if test -z "$SED"; then
6552 ac_path_SED_found=false
6553 # Loop through the user's path and test for each of PROGNAME-LIST
6554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6555 for as_dir in $PATH
6557 IFS=$as_save_IFS
6558 test -z "$as_dir" && as_dir=.
6559 for ac_prog in sed gsed; do
6560 for ac_exec_ext in '' $ac_executable_extensions; do
6561 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6562 as_fn_executable_p "$ac_path_SED" || continue
6563 # Check for GNU ac_path_SED and select it if it is found.
6564 # Check for GNU $ac_path_SED
6565 case `"$ac_path_SED" --version 2>&1` in
6566 *GNU*)
6567 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6569 ac_count=0
6570 $as_echo_n 0123456789 >"conftest.in"
6571 while :
6573 cat "conftest.in" "conftest.in" >"conftest.tmp"
6574 mv "conftest.tmp" "conftest.in"
6575 cp "conftest.in" "conftest.nl"
6576 $as_echo '' >> "conftest.nl"
6577 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6578 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6579 as_fn_arith $ac_count + 1 && ac_count=$as_val
6580 if test $ac_count -gt ${ac_path_SED_max-0}; then
6581 # Best one so far, save it but keep looking for a better one
6582 ac_cv_path_SED="$ac_path_SED"
6583 ac_path_SED_max=$ac_count
6585 # 10*(2^10) chars as input seems more than enough
6586 test $ac_count -gt 10 && break
6587 done
6588 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6589 esac
6591 $ac_path_SED_found && break 3
6592 done
6593 done
6594 done
6595 IFS=$as_save_IFS
6596 if test -z "$ac_cv_path_SED"; then
6597 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6599 else
6600 ac_cv_path_SED=$SED
6604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6605 $as_echo "$ac_cv_path_SED" >&6; }
6606 SED="$ac_cv_path_SED"
6607 rm -f conftest.sed
6609 test -z "$SED" && SED=sed
6610 Xsed="$SED -e 1s/^X//"
6622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6623 $as_echo_n "checking for fgrep... " >&6; }
6624 if ${ac_cv_path_FGREP+:} false; then :
6625 $as_echo_n "(cached) " >&6
6626 else
6627 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6628 then ac_cv_path_FGREP="$GREP -F"
6629 else
6630 if test -z "$FGREP"; then
6631 ac_path_FGREP_found=false
6632 # Loop through the user's path and test for each of PROGNAME-LIST
6633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6634 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6636 IFS=$as_save_IFS
6637 test -z "$as_dir" && as_dir=.
6638 for ac_prog in fgrep; do
6639 for ac_exec_ext in '' $ac_executable_extensions; do
6640 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6641 as_fn_executable_p "$ac_path_FGREP" || continue
6642 # Check for GNU ac_path_FGREP and select it if it is found.
6643 # Check for GNU $ac_path_FGREP
6644 case `"$ac_path_FGREP" --version 2>&1` in
6645 *GNU*)
6646 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6648 ac_count=0
6649 $as_echo_n 0123456789 >"conftest.in"
6650 while :
6652 cat "conftest.in" "conftest.in" >"conftest.tmp"
6653 mv "conftest.tmp" "conftest.in"
6654 cp "conftest.in" "conftest.nl"
6655 $as_echo 'FGREP' >> "conftest.nl"
6656 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6657 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6658 as_fn_arith $ac_count + 1 && ac_count=$as_val
6659 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6660 # Best one so far, save it but keep looking for a better one
6661 ac_cv_path_FGREP="$ac_path_FGREP"
6662 ac_path_FGREP_max=$ac_count
6664 # 10*(2^10) chars as input seems more than enough
6665 test $ac_count -gt 10 && break
6666 done
6667 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6668 esac
6670 $ac_path_FGREP_found && break 3
6671 done
6672 done
6673 done
6674 IFS=$as_save_IFS
6675 if test -z "$ac_cv_path_FGREP"; then
6676 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6678 else
6679 ac_cv_path_FGREP=$FGREP
6684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6685 $as_echo "$ac_cv_path_FGREP" >&6; }
6686 FGREP="$ac_cv_path_FGREP"
6689 test -z "$GREP" && GREP=grep
6709 # Check whether --with-gnu-ld was given.
6710 if test "${with_gnu_ld+set}" = set; then :
6711 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6712 else
6713 with_gnu_ld=no
6716 ac_prog=ld
6717 if test "$GCC" = yes; then
6718 # Check if gcc -print-prog-name=ld gives a path.
6719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6720 $as_echo_n "checking for ld used by $CC... " >&6; }
6721 case $host in
6722 *-*-mingw*)
6723 # gcc leaves a trailing carriage return which upsets mingw
6724 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6726 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6727 esac
6728 case $ac_prog in
6729 # Accept absolute paths.
6730 [\\/]* | ?:[\\/]*)
6731 re_direlt='/[^/][^/]*/\.\./'
6732 # Canonicalize the pathname of ld
6733 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6734 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6735 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6736 done
6737 test -z "$LD" && LD="$ac_prog"
6740 # If it fails, then pretend we aren't using GCC.
6741 ac_prog=ld
6744 # If it is relative, then search for the first ld in PATH.
6745 with_gnu_ld=unknown
6747 esac
6748 elif test "$with_gnu_ld" = yes; then
6749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6750 $as_echo_n "checking for GNU ld... " >&6; }
6751 else
6752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6753 $as_echo_n "checking for non-GNU ld... " >&6; }
6755 if ${lt_cv_path_LD+:} false; then :
6756 $as_echo_n "(cached) " >&6
6757 else
6758 if test -z "$LD"; then
6759 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6760 for ac_dir in $PATH; do
6761 IFS="$lt_save_ifs"
6762 test -z "$ac_dir" && ac_dir=.
6763 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6764 lt_cv_path_LD="$ac_dir/$ac_prog"
6765 # Check to see if the program is GNU ld. I'd rather use --version,
6766 # but apparently some variants of GNU ld only accept -v.
6767 # Break only if it was the GNU/non-GNU ld that we prefer.
6768 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6769 *GNU* | *'with BFD'*)
6770 test "$with_gnu_ld" != no && break
6773 test "$with_gnu_ld" != yes && break
6775 esac
6777 done
6778 IFS="$lt_save_ifs"
6779 else
6780 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6784 LD="$lt_cv_path_LD"
6785 if test -n "$LD"; then
6786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6787 $as_echo "$LD" >&6; }
6788 else
6789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6790 $as_echo "no" >&6; }
6792 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6794 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6795 if ${lt_cv_prog_gnu_ld+:} false; then :
6796 $as_echo_n "(cached) " >&6
6797 else
6798 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6799 case `$LD -v 2>&1 </dev/null` in
6800 *GNU* | *'with BFD'*)
6801 lt_cv_prog_gnu_ld=yes
6804 lt_cv_prog_gnu_ld=no
6806 esac
6808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6809 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6810 with_gnu_ld=$lt_cv_prog_gnu_ld
6820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6821 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6822 if ${lt_cv_path_NM+:} false; then :
6823 $as_echo_n "(cached) " >&6
6824 else
6825 if test -n "$NM"; then
6826 # Let the user override the nm to test.
6827 lt_nm_to_check="$NM"
6828 else
6829 lt_nm_to_check="${ac_tool_prefix}nm"
6830 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6831 lt_nm_to_check="$lt_nm_to_check nm"
6834 for lt_tmp_nm in "$lt_nm_to_check"; do
6835 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6836 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6837 IFS="$lt_save_ifs"
6838 test -z "$ac_dir" && ac_dir=.
6839 # Strip out any user-provided options from the nm to test twice,
6840 # the first time to test to see if nm (rather than its options) has
6841 # an explicit path, the second time to yield a file which can be
6842 # nm'ed itself.
6843 tmp_nm_path="`$ECHO "$lt_tmp_nm" | sed 's, -.*$,,'`"
6844 case "$tmp_nm_path" in
6845 */*|*\\*) tmp_nm="$lt_tmp_nm";;
6846 *) tmp_nm="$ac_dir/$lt_tmp_nm";;
6847 esac
6848 tmp_nm_to_nm="`$ECHO "$tmp_nm" | sed 's, -.*$,,'`"
6849 if test -f "$tmp_nm_to_nm" || test -f "$tmp_nm_to_nm$ac_exeext" ; then
6850 # Check to see if the nm accepts a BSD-compat flag.
6851 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6852 # nm: unknown option "B" ignored
6853 case `"$tmp_nm" -B "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
6854 *$tmp_nm*) lt_cv_path_NM="$tmp_nm -B"
6855 break
6858 case `"$tmp_nm" -p "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
6859 *$tmp_nm*)
6860 lt_cv_path_NM="$tmp_nm -p"
6861 break
6864 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6865 continue # so that we can try to find one that supports BSD flags
6867 esac
6869 esac
6871 done
6872 IFS="$lt_save_ifs"
6873 done
6874 : ${lt_cv_path_NM=no}
6876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6877 $as_echo "$lt_cv_path_NM" >&6; }
6878 if test "$lt_cv_path_NM" != "no"; then
6879 NM="$lt_cv_path_NM"
6880 else
6881 # Didn't find any BSD compatible name lister, look for dumpbin.
6882 if test -n "$DUMPBIN"; then :
6883 # Let the user override the test.
6884 else
6885 if test -n "$ac_tool_prefix"; then
6886 for ac_prog in dumpbin "link -dump"
6888 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6889 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6891 $as_echo_n "checking for $ac_word... " >&6; }
6892 if ${ac_cv_prog_DUMPBIN+:} false; then :
6893 $as_echo_n "(cached) " >&6
6894 else
6895 if test -n "$DUMPBIN"; then
6896 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6897 else
6898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6899 for as_dir in $PATH
6901 IFS=$as_save_IFS
6902 test -z "$as_dir" && as_dir=.
6903 for ac_exec_ext in '' $ac_executable_extensions; do
6904 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6905 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6906 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6907 break 2
6909 done
6910 done
6911 IFS=$as_save_IFS
6915 DUMPBIN=$ac_cv_prog_DUMPBIN
6916 if test -n "$DUMPBIN"; then
6917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6918 $as_echo "$DUMPBIN" >&6; }
6919 else
6920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6921 $as_echo "no" >&6; }
6925 test -n "$DUMPBIN" && break
6926 done
6928 if test -z "$DUMPBIN"; then
6929 ac_ct_DUMPBIN=$DUMPBIN
6930 for ac_prog in dumpbin "link -dump"
6932 # Extract the first word of "$ac_prog", so it can be a program name with args.
6933 set dummy $ac_prog; ac_word=$2
6934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6935 $as_echo_n "checking for $ac_word... " >&6; }
6936 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6937 $as_echo_n "(cached) " >&6
6938 else
6939 if test -n "$ac_ct_DUMPBIN"; then
6940 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6941 else
6942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6943 for as_dir in $PATH
6945 IFS=$as_save_IFS
6946 test -z "$as_dir" && as_dir=.
6947 for ac_exec_ext in '' $ac_executable_extensions; do
6948 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6949 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6950 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6951 break 2
6953 done
6954 done
6955 IFS=$as_save_IFS
6959 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6960 if test -n "$ac_ct_DUMPBIN"; then
6961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6962 $as_echo "$ac_ct_DUMPBIN" >&6; }
6963 else
6964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6965 $as_echo "no" >&6; }
6969 test -n "$ac_ct_DUMPBIN" && break
6970 done
6972 if test "x$ac_ct_DUMPBIN" = x; then
6973 DUMPBIN=":"
6974 else
6975 case $cross_compiling:$ac_tool_warned in
6976 yes:)
6977 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6978 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6979 ac_tool_warned=yes ;;
6980 esac
6981 DUMPBIN=$ac_ct_DUMPBIN
6985 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6986 *COFF*)
6987 DUMPBIN="$DUMPBIN -symbols"
6990 DUMPBIN=:
6992 esac
6995 if test "$DUMPBIN" != ":"; then
6996 NM="$DUMPBIN"
6999 test -z "$NM" && NM=nm
7006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
7007 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
7008 if ${lt_cv_nm_interface+:} false; then :
7009 $as_echo_n "(cached) " >&6
7010 else
7011 lt_cv_nm_interface="BSD nm"
7012 echo "int some_variable = 0;" > conftest.$ac_ext
7013 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
7014 (eval "$ac_compile" 2>conftest.err)
7015 cat conftest.err >&5
7016 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
7017 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
7018 cat conftest.err >&5
7019 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
7020 cat conftest.out >&5
7021 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
7022 lt_cv_nm_interface="MS dumpbin"
7024 rm -f conftest*
7026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
7027 $as_echo "$lt_cv_nm_interface" >&6; }
7029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7030 $as_echo_n "checking whether ln -s works... " >&6; }
7031 LN_S=$as_ln_s
7032 if test "$LN_S" = "ln -s"; then
7033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7034 $as_echo "yes" >&6; }
7035 else
7036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
7037 $as_echo "no, using $LN_S" >&6; }
7040 # find the maximum length of command line arguments
7041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
7042 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
7043 if ${lt_cv_sys_max_cmd_len+:} false; then :
7044 $as_echo_n "(cached) " >&6
7045 else
7047 teststring="ABCD"
7049 case $build_os in
7050 msdosdjgpp*)
7051 # On DJGPP, this test can blow up pretty badly due to problems in libc
7052 # (any single argument exceeding 2000 bytes causes a buffer overrun
7053 # during glob expansion). Even if it were fixed, the result of this
7054 # check would be larger than it should be.
7055 lt_cv_sys_max_cmd_len=12288; # 12K is about right
7058 gnu*)
7059 # Under GNU Hurd, this test is not required because there is
7060 # no limit to the length of command line arguments.
7061 # Libtool will interpret -1 as no limit whatsoever
7062 lt_cv_sys_max_cmd_len=-1;
7065 cygwin* | mingw* | cegcc*)
7066 # On Win9x/ME, this test blows up -- it succeeds, but takes
7067 # about 5 minutes as the teststring grows exponentially.
7068 # Worse, since 9x/ME are not pre-emptively multitasking,
7069 # you end up with a "frozen" computer, even though with patience
7070 # the test eventually succeeds (with a max line length of 256k).
7071 # Instead, let's just punt: use the minimum linelength reported by
7072 # all of the supported platforms: 8192 (on NT/2K/XP).
7073 lt_cv_sys_max_cmd_len=8192;
7076 mint*)
7077 # On MiNT this can take a long time and run out of memory.
7078 lt_cv_sys_max_cmd_len=8192;
7081 amigaos*)
7082 # On AmigaOS with pdksh, this test takes hours, literally.
7083 # So we just punt and use a minimum line length of 8192.
7084 lt_cv_sys_max_cmd_len=8192;
7087 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7088 # This has been around since 386BSD, at least. Likely further.
7089 if test -x /sbin/sysctl; then
7090 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7091 elif test -x /usr/sbin/sysctl; then
7092 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7093 else
7094 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
7096 # And add a safety zone
7097 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7098 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7101 interix*)
7102 # We know the value 262144 and hardcode it with a safety zone (like BSD)
7103 lt_cv_sys_max_cmd_len=196608
7106 osf*)
7107 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7108 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7109 # nice to cause kernel panics so lets avoid the loop below.
7110 # First set a reasonable default.
7111 lt_cv_sys_max_cmd_len=16384
7113 if test -x /sbin/sysconfig; then
7114 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7115 *1*) lt_cv_sys_max_cmd_len=-1 ;;
7116 esac
7119 sco3.2v5*)
7120 lt_cv_sys_max_cmd_len=102400
7122 sysv5* | sco5v6* | sysv4.2uw2*)
7123 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7124 if test -n "$kargmax"; then
7125 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
7126 else
7127 lt_cv_sys_max_cmd_len=32768
7131 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
7132 if test -n "$lt_cv_sys_max_cmd_len"; then
7133 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7134 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7135 else
7136 # Make teststring a little bigger before we do anything with it.
7137 # a 1K string should be a reasonable start.
7138 for i in 1 2 3 4 5 6 7 8 ; do
7139 teststring=$teststring$teststring
7140 done
7141 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7142 # If test is not a shell built-in, we'll probably end up computing a
7143 # maximum length that is only half of the actual maximum length, but
7144 # we can't tell.
7145 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
7146 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
7147 test $i != 17 # 1/2 MB should be enough
7149 i=`expr $i + 1`
7150 teststring=$teststring$teststring
7151 done
7152 # Only check the string length outside the loop.
7153 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
7154 teststring=
7155 # Add a significant safety factor because C++ compilers can tack on
7156 # massive amounts of additional arguments before passing them to the
7157 # linker. It appears as though 1/2 is a usable value.
7158 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7161 esac
7165 if test -n $lt_cv_sys_max_cmd_len ; then
7166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
7167 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
7168 else
7169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
7170 $as_echo "none" >&6; }
7172 max_cmd_len=$lt_cv_sys_max_cmd_len
7179 : ${CP="cp -f"}
7180 : ${MV="mv -f"}
7181 : ${RM="rm -f"}
7183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
7184 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
7185 # Try some XSI features
7186 xsi_shell=no
7187 ( _lt_dummy="a/b/c"
7188 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
7189 = c,a/b,, \
7190 && eval 'test $(( 1 + 1 )) -eq 2 \
7191 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
7192 && xsi_shell=yes
7193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
7194 $as_echo "$xsi_shell" >&6; }
7197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
7198 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
7199 lt_shell_append=no
7200 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
7201 >/dev/null 2>&1 \
7202 && lt_shell_append=yes
7203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
7204 $as_echo "$lt_shell_append" >&6; }
7207 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7208 lt_unset=unset
7209 else
7210 lt_unset=false
7217 # test EBCDIC or ASCII
7218 case `echo X|tr X '\101'` in
7219 A) # ASCII based system
7220 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7221 lt_SP2NL='tr \040 \012'
7222 lt_NL2SP='tr \015\012 \040\040'
7224 *) # EBCDIC based system
7225 lt_SP2NL='tr \100 \n'
7226 lt_NL2SP='tr \r\n \100\100'
7228 esac
7238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
7239 $as_echo_n "checking for $LD option to reload object files... " >&6; }
7240 if ${lt_cv_ld_reload_flag+:} false; then :
7241 $as_echo_n "(cached) " >&6
7242 else
7243 lt_cv_ld_reload_flag='-r'
7245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
7246 $as_echo "$lt_cv_ld_reload_flag" >&6; }
7247 reload_flag=$lt_cv_ld_reload_flag
7248 case $reload_flag in
7249 "" | " "*) ;;
7250 *) reload_flag=" $reload_flag" ;;
7251 esac
7252 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7253 case $host_os in
7254 darwin*)
7255 if test "$GCC" = yes; then
7256 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
7257 else
7258 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7261 esac
7271 if test -n "$ac_tool_prefix"; then
7272 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7273 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7275 $as_echo_n "checking for $ac_word... " >&6; }
7276 if ${ac_cv_prog_OBJDUMP+:} false; then :
7277 $as_echo_n "(cached) " >&6
7278 else
7279 if test -n "$OBJDUMP"; then
7280 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7281 else
7282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7283 for as_dir in $PATH
7285 IFS=$as_save_IFS
7286 test -z "$as_dir" && as_dir=.
7287 for ac_exec_ext in '' $ac_executable_extensions; do
7288 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7289 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7290 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7291 break 2
7293 done
7294 done
7295 IFS=$as_save_IFS
7299 OBJDUMP=$ac_cv_prog_OBJDUMP
7300 if test -n "$OBJDUMP"; then
7301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7302 $as_echo "$OBJDUMP" >&6; }
7303 else
7304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7305 $as_echo "no" >&6; }
7310 if test -z "$ac_cv_prog_OBJDUMP"; then
7311 ac_ct_OBJDUMP=$OBJDUMP
7312 # Extract the first word of "objdump", so it can be a program name with args.
7313 set dummy objdump; ac_word=$2
7314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7315 $as_echo_n "checking for $ac_word... " >&6; }
7316 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
7317 $as_echo_n "(cached) " >&6
7318 else
7319 if test -n "$ac_ct_OBJDUMP"; then
7320 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7321 else
7322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7323 for as_dir in $PATH
7325 IFS=$as_save_IFS
7326 test -z "$as_dir" && as_dir=.
7327 for ac_exec_ext in '' $ac_executable_extensions; do
7328 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7329 ac_cv_prog_ac_ct_OBJDUMP="objdump"
7330 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7331 break 2
7333 done
7334 done
7335 IFS=$as_save_IFS
7339 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7340 if test -n "$ac_ct_OBJDUMP"; then
7341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7342 $as_echo "$ac_ct_OBJDUMP" >&6; }
7343 else
7344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7345 $as_echo "no" >&6; }
7348 if test "x$ac_ct_OBJDUMP" = x; then
7349 OBJDUMP="false"
7350 else
7351 case $cross_compiling:$ac_tool_warned in
7352 yes:)
7353 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7354 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7355 ac_tool_warned=yes ;;
7356 esac
7357 OBJDUMP=$ac_ct_OBJDUMP
7359 else
7360 OBJDUMP="$ac_cv_prog_OBJDUMP"
7363 test -z "$OBJDUMP" && OBJDUMP=objdump
7373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7374 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
7375 if ${lt_cv_deplibs_check_method+:} false; then :
7376 $as_echo_n "(cached) " >&6
7377 else
7378 lt_cv_file_magic_cmd='$MAGIC_CMD'
7379 lt_cv_file_magic_test_file=
7380 lt_cv_deplibs_check_method='unknown'
7381 # Need to set the preceding variable on all platforms that support
7382 # interlibrary dependencies.
7383 # 'none' -- dependencies not supported.
7384 # `unknown' -- same as none, but documents that we really don't know.
7385 # 'pass_all' -- all dependencies passed with no checks.
7386 # 'test_compile' -- check by making test program.
7387 # 'file_magic [[regex]]' -- check by looking for files in library path
7388 # which responds to the $file_magic_cmd with a given extended regex.
7389 # If you have `file' or equivalent on your system and you're not sure
7390 # whether `pass_all' will *always* work, you probably want this one.
7392 case $host_os in
7393 aix[4-9]*)
7394 lt_cv_deplibs_check_method=pass_all
7397 beos*)
7398 lt_cv_deplibs_check_method=pass_all
7401 bsdi[45]*)
7402 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7403 lt_cv_file_magic_cmd='/usr/bin/file -L'
7404 lt_cv_file_magic_test_file=/shlib/libc.so
7407 cygwin*)
7408 # func_win32_libid is a shell function defined in ltmain.sh
7409 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7410 lt_cv_file_magic_cmd='func_win32_libid'
7413 mingw* | pw32*)
7414 # Base MSYS/MinGW do not provide the 'file' command needed by
7415 # func_win32_libid shell function, so use a weaker test based on 'objdump',
7416 # unless we find 'file', for example because we are cross-compiling.
7417 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
7418 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
7419 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7420 lt_cv_file_magic_cmd='func_win32_libid'
7421 else
7422 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
7423 lt_cv_file_magic_cmd='$OBJDUMP -f'
7427 cegcc*)
7428 # use the weaker test based on 'objdump'. See mingw*.
7429 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7430 lt_cv_file_magic_cmd='$OBJDUMP -f'
7433 darwin* | rhapsody*)
7434 lt_cv_deplibs_check_method=pass_all
7437 freebsd* | dragonfly*)
7438 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7439 case $host_cpu in
7440 i*86 )
7441 # Not sure whether the presence of OpenBSD here was a mistake.
7442 # Let's accept both of them until this is cleared up.
7443 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7444 lt_cv_file_magic_cmd=/usr/bin/file
7445 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7447 esac
7448 else
7449 lt_cv_deplibs_check_method=pass_all
7453 gnu*)
7454 lt_cv_deplibs_check_method=pass_all
7457 haiku*)
7458 lt_cv_deplibs_check_method=pass_all
7461 hpux10.20* | hpux11*)
7462 lt_cv_file_magic_cmd=/usr/bin/file
7463 case $host_cpu in
7464 ia64*)
7465 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7466 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7468 hppa*64*)
7469 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]'
7470 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7473 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7474 lt_cv_file_magic_test_file=/usr/lib/libc.sl
7476 esac
7479 interix[3-9]*)
7480 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7481 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7484 irix5* | irix6* | nonstopux*)
7485 case $LD in
7486 *-32|*"-32 ") libmagic=32-bit;;
7487 *-n32|*"-n32 ") libmagic=N32;;
7488 *-64|*"-64 ") libmagic=64-bit;;
7489 *) libmagic=never-match;;
7490 esac
7491 lt_cv_deplibs_check_method=pass_all
7494 # This must be Linux ELF.
7495 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
7496 lt_cv_deplibs_check_method=pass_all
7499 netbsd*)
7500 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7501 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7502 else
7503 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7507 newos6*)
7508 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7509 lt_cv_file_magic_cmd=/usr/bin/file
7510 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7513 *nto* | *qnx*)
7514 lt_cv_deplibs_check_method=pass_all
7517 openbsd*)
7518 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7519 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7520 else
7521 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7525 osf3* | osf4* | osf5*)
7526 lt_cv_deplibs_check_method=pass_all
7529 rdos*)
7530 lt_cv_deplibs_check_method=pass_all
7533 solaris*)
7534 lt_cv_deplibs_check_method=pass_all
7537 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7538 lt_cv_deplibs_check_method=pass_all
7541 sysv4 | sysv4.3*)
7542 case $host_vendor in
7543 motorola)
7544 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]'
7545 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7547 ncr)
7548 lt_cv_deplibs_check_method=pass_all
7550 sequent)
7551 lt_cv_file_magic_cmd='/bin/file'
7552 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7554 sni)
7555 lt_cv_file_magic_cmd='/bin/file'
7556 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7557 lt_cv_file_magic_test_file=/lib/libc.so
7559 siemens)
7560 lt_cv_deplibs_check_method=pass_all
7563 lt_cv_deplibs_check_method=pass_all
7565 esac
7568 tpf*)
7569 lt_cv_deplibs_check_method=pass_all
7571 vxworks*)
7572 # Assume VxWorks cross toolchains are built on Linux, possibly
7573 # as canadian for Windows hosts.
7574 lt_cv_deplibs_check_method=pass_all
7576 esac
7579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7580 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7581 file_magic_cmd=$lt_cv_file_magic_cmd
7582 deplibs_check_method=$lt_cv_deplibs_check_method
7583 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7596 plugin_option=
7597 plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
7598 for plugin in $plugin_names; do
7599 plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
7600 if test x$plugin_so = x$plugin; then
7601 plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
7603 if test x$plugin_so != x$plugin; then
7604 plugin_option="--plugin $plugin_so"
7605 break
7607 done
7609 if test -n "$ac_tool_prefix"; then
7610 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7611 set dummy ${ac_tool_prefix}ar; ac_word=$2
7612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7613 $as_echo_n "checking for $ac_word... " >&6; }
7614 if ${ac_cv_prog_AR+:} false; then :
7615 $as_echo_n "(cached) " >&6
7616 else
7617 if test -n "$AR"; then
7618 ac_cv_prog_AR="$AR" # Let the user override the test.
7619 else
7620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7621 for as_dir in $PATH
7623 IFS=$as_save_IFS
7624 test -z "$as_dir" && as_dir=.
7625 for ac_exec_ext in '' $ac_executable_extensions; do
7626 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7627 ac_cv_prog_AR="${ac_tool_prefix}ar"
7628 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7629 break 2
7631 done
7632 done
7633 IFS=$as_save_IFS
7637 AR=$ac_cv_prog_AR
7638 if test -n "$AR"; then
7639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7640 $as_echo "$AR" >&6; }
7641 else
7642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7643 $as_echo "no" >&6; }
7648 if test -z "$ac_cv_prog_AR"; then
7649 ac_ct_AR=$AR
7650 # Extract the first word of "ar", so it can be a program name with args.
7651 set dummy ar; ac_word=$2
7652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7653 $as_echo_n "checking for $ac_word... " >&6; }
7654 if ${ac_cv_prog_ac_ct_AR+:} false; then :
7655 $as_echo_n "(cached) " >&6
7656 else
7657 if test -n "$ac_ct_AR"; then
7658 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7659 else
7660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7661 for as_dir in $PATH
7663 IFS=$as_save_IFS
7664 test -z "$as_dir" && as_dir=.
7665 for ac_exec_ext in '' $ac_executable_extensions; do
7666 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7667 ac_cv_prog_ac_ct_AR="ar"
7668 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7669 break 2
7671 done
7672 done
7673 IFS=$as_save_IFS
7677 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7678 if test -n "$ac_ct_AR"; then
7679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7680 $as_echo "$ac_ct_AR" >&6; }
7681 else
7682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7683 $as_echo "no" >&6; }
7686 if test "x$ac_ct_AR" = x; then
7687 AR="false"
7688 else
7689 case $cross_compiling:$ac_tool_warned in
7690 yes:)
7691 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7692 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7693 ac_tool_warned=yes ;;
7694 esac
7695 AR=$ac_ct_AR
7697 else
7698 AR="$ac_cv_prog_AR"
7701 test -z "$AR" && AR=ar
7702 if test -n "$plugin_option"; then
7703 if $AR --help 2>&1 | grep -q "\--plugin"; then
7704 touch conftest.c
7705 $AR $plugin_option rc conftest.a conftest.c
7706 if test "$?" != 0; then
7707 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
7708 $as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
7709 else
7710 AR="$AR $plugin_option"
7712 rm -f conftest.*
7715 test -z "$AR_FLAGS" && AR_FLAGS=cru
7727 if test -n "$ac_tool_prefix"; then
7728 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7729 set dummy ${ac_tool_prefix}strip; ac_word=$2
7730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7731 $as_echo_n "checking for $ac_word... " >&6; }
7732 if ${ac_cv_prog_STRIP+:} false; then :
7733 $as_echo_n "(cached) " >&6
7734 else
7735 if test -n "$STRIP"; then
7736 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7737 else
7738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7739 for as_dir in $PATH
7741 IFS=$as_save_IFS
7742 test -z "$as_dir" && as_dir=.
7743 for ac_exec_ext in '' $ac_executable_extensions; do
7744 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7745 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7746 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7747 break 2
7749 done
7750 done
7751 IFS=$as_save_IFS
7755 STRIP=$ac_cv_prog_STRIP
7756 if test -n "$STRIP"; then
7757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7758 $as_echo "$STRIP" >&6; }
7759 else
7760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7761 $as_echo "no" >&6; }
7766 if test -z "$ac_cv_prog_STRIP"; then
7767 ac_ct_STRIP=$STRIP
7768 # Extract the first word of "strip", so it can be a program name with args.
7769 set dummy strip; ac_word=$2
7770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7771 $as_echo_n "checking for $ac_word... " >&6; }
7772 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7773 $as_echo_n "(cached) " >&6
7774 else
7775 if test -n "$ac_ct_STRIP"; then
7776 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7777 else
7778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7779 for as_dir in $PATH
7781 IFS=$as_save_IFS
7782 test -z "$as_dir" && as_dir=.
7783 for ac_exec_ext in '' $ac_executable_extensions; do
7784 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7785 ac_cv_prog_ac_ct_STRIP="strip"
7786 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7787 break 2
7789 done
7790 done
7791 IFS=$as_save_IFS
7795 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7796 if test -n "$ac_ct_STRIP"; then
7797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7798 $as_echo "$ac_ct_STRIP" >&6; }
7799 else
7800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7801 $as_echo "no" >&6; }
7804 if test "x$ac_ct_STRIP" = x; then
7805 STRIP=":"
7806 else
7807 case $cross_compiling:$ac_tool_warned in
7808 yes:)
7809 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7810 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7811 ac_tool_warned=yes ;;
7812 esac
7813 STRIP=$ac_ct_STRIP
7815 else
7816 STRIP="$ac_cv_prog_STRIP"
7819 test -z "$STRIP" && STRIP=:
7826 if test -n "$ac_tool_prefix"; then
7827 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7828 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7830 $as_echo_n "checking for $ac_word... " >&6; }
7831 if ${ac_cv_prog_RANLIB+:} false; then :
7832 $as_echo_n "(cached) " >&6
7833 else
7834 if test -n "$RANLIB"; then
7835 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7836 else
7837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7838 for as_dir in $PATH
7840 IFS=$as_save_IFS
7841 test -z "$as_dir" && as_dir=.
7842 for ac_exec_ext in '' $ac_executable_extensions; do
7843 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7844 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7845 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7846 break 2
7848 done
7849 done
7850 IFS=$as_save_IFS
7854 RANLIB=$ac_cv_prog_RANLIB
7855 if test -n "$RANLIB"; then
7856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7857 $as_echo "$RANLIB" >&6; }
7858 else
7859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7860 $as_echo "no" >&6; }
7865 if test -z "$ac_cv_prog_RANLIB"; then
7866 ac_ct_RANLIB=$RANLIB
7867 # Extract the first word of "ranlib", so it can be a program name with args.
7868 set dummy ranlib; ac_word=$2
7869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7870 $as_echo_n "checking for $ac_word... " >&6; }
7871 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7872 $as_echo_n "(cached) " >&6
7873 else
7874 if test -n "$ac_ct_RANLIB"; then
7875 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7876 else
7877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7878 for as_dir in $PATH
7880 IFS=$as_save_IFS
7881 test -z "$as_dir" && as_dir=.
7882 for ac_exec_ext in '' $ac_executable_extensions; do
7883 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7884 ac_cv_prog_ac_ct_RANLIB="ranlib"
7885 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7886 break 2
7888 done
7889 done
7890 IFS=$as_save_IFS
7894 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7895 if test -n "$ac_ct_RANLIB"; then
7896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7897 $as_echo "$ac_ct_RANLIB" >&6; }
7898 else
7899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7900 $as_echo "no" >&6; }
7903 if test "x$ac_ct_RANLIB" = x; then
7904 RANLIB=":"
7905 else
7906 case $cross_compiling:$ac_tool_warned in
7907 yes:)
7908 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7909 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7910 ac_tool_warned=yes ;;
7911 esac
7912 RANLIB=$ac_ct_RANLIB
7914 else
7915 RANLIB="$ac_cv_prog_RANLIB"
7918 test -z "$RANLIB" && RANLIB=:
7919 if test -n "$plugin_option" && test "$RANLIB" != ":"; then
7920 if $RANLIB --help 2>&1 | grep -q "\--plugin"; then
7921 RANLIB="$RANLIB $plugin_option"
7930 # Determine commands to create old-style static archives.
7931 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7932 old_postinstall_cmds='chmod 644 $oldlib'
7933 old_postuninstall_cmds=
7935 if test -n "$RANLIB"; then
7936 case $host_os in
7937 openbsd*)
7938 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7941 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7943 esac
7944 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7947 case $host_os in
7948 darwin*)
7949 lock_old_archive_extraction=yes ;;
7951 lock_old_archive_extraction=no ;;
7952 esac
7992 # If no C compiler was specified, use CC.
7993 LTCC=${LTCC-"$CC"}
7995 # If no C compiler flags were specified, use CFLAGS.
7996 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7998 # Allow CC to be a program name with arguments.
7999 compiler=$CC
8002 # Check for command to grab the raw symbol name followed by C symbol from nm.
8003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
8004 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
8005 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
8006 $as_echo_n "(cached) " >&6
8007 else
8009 # These are sane defaults that work on at least a few old systems.
8010 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
8012 # Character class describing NM global symbol codes.
8013 symcode='[BCDEGRST]'
8015 # Regexp to match symbols that can be accessed directly from C.
8016 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8018 # Define system-specific variables.
8019 case $host_os in
8020 aix*)
8021 symcode='[BCDT]'
8023 cygwin* | mingw* | pw32* | cegcc*)
8024 symcode='[ABCDGISTW]'
8026 hpux*)
8027 if test "$host_cpu" = ia64; then
8028 symcode='[ABCDEGRST]'
8031 irix* | nonstopux*)
8032 symcode='[BCDEGRST]'
8034 osf*)
8035 symcode='[BCDEGQRST]'
8037 solaris*)
8038 symcode='[BCDRT]'
8040 sco3.2v5*)
8041 symcode='[DT]'
8043 sysv4.2uw2*)
8044 symcode='[DT]'
8046 sysv5* | sco5v6* | unixware* | OpenUNIX*)
8047 symcode='[ABDT]'
8049 sysv4)
8050 symcode='[DFNSTU]'
8052 esac
8054 # If we're using GNU nm, then use its standard symbol codes.
8055 case `$NM -V 2>&1` in
8056 *GNU* | *'with BFD'*)
8057 symcode='[ABCDGIRSTW]' ;;
8058 esac
8060 # Transform an extracted symbol line into a proper C declaration.
8061 # Some systems (esp. on ia64) link data and code symbols differently,
8062 # so use this general approach.
8063 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8065 # Transform an extracted symbol line into symbol name and symbol address
8066 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
8067 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
8069 # Handle CRLF in mingw tool chain
8070 opt_cr=
8071 case $build_os in
8072 mingw*)
8073 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8075 esac
8077 # Try without a prefix underscore, then with it.
8078 for ac_symprfx in "" "_"; do
8080 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8081 symxfrm="\\1 $ac_symprfx\\2 \\2"
8083 # Write the raw and C identifiers.
8084 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8085 # Fake it for dumpbin and say T for any non-static function
8086 # and D for any global variable.
8087 # Also find C++ and __fastcall symbols from MSVC++,
8088 # which start with @ or ?.
8089 lt_cv_sys_global_symbol_pipe="$AWK '"\
8090 " {last_section=section; section=\$ 3};"\
8091 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
8092 " \$ 0!~/External *\|/{next};"\
8093 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
8094 " {if(hide[section]) next};"\
8095 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
8096 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
8097 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
8098 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
8099 " ' prfx=^$ac_symprfx"
8100 else
8101 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8104 # Check to see that the pipe works correctly.
8105 pipe_works=no
8107 rm -f conftest*
8108 cat > conftest.$ac_ext <<_LT_EOF
8109 #ifdef __cplusplus
8110 extern "C" {
8111 #endif
8112 char nm_test_var;
8113 void nm_test_func(void);
8114 void nm_test_func(void){}
8115 #ifdef __cplusplus
8117 #endif
8118 int main(){nm_test_var='a';nm_test_func();return(0);}
8119 _LT_EOF
8121 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8122 (eval $ac_compile) 2>&5
8123 ac_status=$?
8124 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8125 test $ac_status = 0; }; then
8126 # Now try to grab the symbols.
8127 nlist=conftest.nm
8128 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
8129 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
8130 ac_status=$?
8131 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8132 test $ac_status = 0; } && test -s "$nlist"; then
8133 # Try sorting and uniquifying the output.
8134 if sort "$nlist" | uniq > "$nlist"T; then
8135 mv -f "$nlist"T "$nlist"
8136 else
8137 rm -f "$nlist"T
8140 # Make sure that we snagged all the symbols we need.
8141 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
8142 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
8143 cat <<_LT_EOF > conftest.$ac_ext
8144 #ifdef __cplusplus
8145 extern "C" {
8146 #endif
8148 _LT_EOF
8149 # Now generate the symbol file.
8150 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
8152 cat <<_LT_EOF >> conftest.$ac_ext
8154 /* The mapping between symbol names and symbols. */
8155 const struct {
8156 const char *name;
8157 void *address;
8159 lt__PROGRAM__LTX_preloaded_symbols[] =
8161 { "@PROGRAM@", (void *) 0 },
8162 _LT_EOF
8163 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
8164 cat <<\_LT_EOF >> conftest.$ac_ext
8165 {0, (void *) 0}
8168 /* This works around a problem in FreeBSD linker */
8169 #ifdef FREEBSD_WORKAROUND
8170 static const void *lt_preloaded_setup() {
8171 return lt__PROGRAM__LTX_preloaded_symbols;
8173 #endif
8175 #ifdef __cplusplus
8177 #endif
8178 _LT_EOF
8179 # Now try linking the two files.
8180 mv conftest.$ac_objext conftstm.$ac_objext
8181 lt_save_LIBS="$LIBS"
8182 lt_save_CFLAGS="$CFLAGS"
8183 LIBS="conftstm.$ac_objext"
8184 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8185 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8186 (eval $ac_link) 2>&5
8187 ac_status=$?
8188 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8189 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
8190 pipe_works=yes
8192 LIBS="$lt_save_LIBS"
8193 CFLAGS="$lt_save_CFLAGS"
8194 else
8195 echo "cannot find nm_test_func in $nlist" >&5
8197 else
8198 echo "cannot find nm_test_var in $nlist" >&5
8200 else
8201 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8203 else
8204 echo "$progname: failed program was:" >&5
8205 cat conftest.$ac_ext >&5
8207 rm -rf conftest* conftst*
8209 # Do not use the global_symbol_pipe unless it works.
8210 if test "$pipe_works" = yes; then
8211 break
8212 else
8213 lt_cv_sys_global_symbol_pipe=
8215 done
8219 if test -z "$lt_cv_sys_global_symbol_pipe"; then
8220 lt_cv_sys_global_symbol_to_cdecl=
8222 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8224 $as_echo "failed" >&6; }
8225 else
8226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8227 $as_echo "ok" >&6; }
8251 # Check whether --enable-libtool-lock was given.
8252 if test "${enable_libtool_lock+set}" = set; then :
8253 enableval=$enable_libtool_lock;
8256 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8258 # Some flags need to be propagated to the compiler or linker for good
8259 # libtool support.
8260 case $host in
8261 ia64-*-hpux*)
8262 # Find out which ABI we are using.
8263 echo 'int i;' > conftest.$ac_ext
8264 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8265 (eval $ac_compile) 2>&5
8266 ac_status=$?
8267 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8268 test $ac_status = 0; }; then
8269 case `/usr/bin/file conftest.$ac_objext` in
8270 *ELF-32*)
8271 HPUX_IA64_MODE="32"
8273 *ELF-64*)
8274 HPUX_IA64_MODE="64"
8276 esac
8278 rm -rf conftest*
8280 *-*-irix6*)
8281 # Find out which ABI we are using.
8282 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8283 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8284 (eval $ac_compile) 2>&5
8285 ac_status=$?
8286 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8287 test $ac_status = 0; }; then
8288 if test "$lt_cv_prog_gnu_ld" = yes; then
8289 case `/usr/bin/file conftest.$ac_objext` in
8290 *32-bit*)
8291 LD="${LD-ld} -melf32bsmip"
8293 *N32*)
8294 LD="${LD-ld} -melf32bmipn32"
8296 *64-bit*)
8297 LD="${LD-ld} -melf64bmip"
8299 esac
8300 else
8301 case `/usr/bin/file conftest.$ac_objext` in
8302 *32-bit*)
8303 LD="${LD-ld} -32"
8305 *N32*)
8306 LD="${LD-ld} -n32"
8308 *64-bit*)
8309 LD="${LD-ld} -64"
8311 esac
8314 rm -rf conftest*
8317 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
8318 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8319 # Find out which ABI we are using.
8320 echo 'int i;' > conftest.$ac_ext
8321 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8322 (eval $ac_compile) 2>&5
8323 ac_status=$?
8324 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8325 test $ac_status = 0; }; then
8326 case `/usr/bin/file conftest.o` in
8327 *32-bit*)
8328 case $host in
8329 x86_64-*kfreebsd*-gnu)
8330 LD="${LD-ld} -m elf_i386_fbsd"
8332 x86_64-*linux*)
8333 case `/usr/bin/file conftest.o` in
8334 *x86-64*)
8335 LD="${LD-ld} -m elf32_x86_64"
8338 LD="${LD-ld} -m elf_i386"
8340 esac
8342 powerpc64le-*linux*)
8343 LD="${LD-ld} -m elf32lppclinux"
8345 powerpc64-*linux*)
8346 LD="${LD-ld} -m elf32ppclinux"
8348 s390x-*linux*)
8349 LD="${LD-ld} -m elf_s390"
8351 sparc64-*linux*)
8352 LD="${LD-ld} -m elf32_sparc"
8354 esac
8356 *64-bit*)
8357 case $host in
8358 x86_64-*kfreebsd*-gnu)
8359 LD="${LD-ld} -m elf_x86_64_fbsd"
8361 x86_64-*linux*)
8362 LD="${LD-ld} -m elf_x86_64"
8364 powerpcle-*linux*)
8365 LD="${LD-ld} -m elf64lppc"
8367 powerpc-*linux*)
8368 LD="${LD-ld} -m elf64ppc"
8370 s390*-*linux*|s390*-*tpf*)
8371 LD="${LD-ld} -m elf64_s390"
8373 sparc*-*linux*)
8374 LD="${LD-ld} -m elf64_sparc"
8376 esac
8378 esac
8380 rm -rf conftest*
8383 *-*-sco3.2v5*)
8384 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8385 SAVE_CFLAGS="$CFLAGS"
8386 CFLAGS="$CFLAGS -belf"
8387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8388 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8389 if ${lt_cv_cc_needs_belf+:} false; then :
8390 $as_echo_n "(cached) " >&6
8391 else
8392 ac_ext=c
8393 ac_cpp='$CPP $CPPFLAGS'
8394 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8395 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8396 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8398 if test x$gcc_no_link = xyes; then
8399 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
8401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8402 /* end confdefs.h. */
8405 main ()
8409 return 0;
8411 _ACEOF
8412 if ac_fn_c_try_link "$LINENO"; then :
8413 lt_cv_cc_needs_belf=yes
8414 else
8415 lt_cv_cc_needs_belf=no
8417 rm -f core conftest.err conftest.$ac_objext \
8418 conftest$ac_exeext conftest.$ac_ext
8419 ac_ext=c
8420 ac_cpp='$CPP $CPPFLAGS'
8421 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8422 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8423 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8427 $as_echo "$lt_cv_cc_needs_belf" >&6; }
8428 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8429 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8430 CFLAGS="$SAVE_CFLAGS"
8433 sparc*-*solaris*)
8434 # Find out which ABI we are using.
8435 echo 'int i;' > conftest.$ac_ext
8436 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8437 (eval $ac_compile) 2>&5
8438 ac_status=$?
8439 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8440 test $ac_status = 0; }; then
8441 case `/usr/bin/file conftest.o` in
8442 *64-bit*)
8443 case $lt_cv_prog_gnu_ld in
8444 yes*) LD="${LD-ld} -m elf64_sparc" ;;
8446 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8447 LD="${LD-ld} -64"
8450 esac
8452 esac
8454 rm -rf conftest*
8456 esac
8458 need_locks="$enable_libtool_lock"
8461 case $host_os in
8462 rhapsody* | darwin*)
8463 if test -n "$ac_tool_prefix"; then
8464 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8465 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8467 $as_echo_n "checking for $ac_word... " >&6; }
8468 if ${ac_cv_prog_DSYMUTIL+:} false; then :
8469 $as_echo_n "(cached) " >&6
8470 else
8471 if test -n "$DSYMUTIL"; then
8472 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8473 else
8474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8475 for as_dir in $PATH
8477 IFS=$as_save_IFS
8478 test -z "$as_dir" && as_dir=.
8479 for ac_exec_ext in '' $ac_executable_extensions; do
8480 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8481 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8482 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8483 break 2
8485 done
8486 done
8487 IFS=$as_save_IFS
8491 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8492 if test -n "$DSYMUTIL"; then
8493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8494 $as_echo "$DSYMUTIL" >&6; }
8495 else
8496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8497 $as_echo "no" >&6; }
8502 if test -z "$ac_cv_prog_DSYMUTIL"; then
8503 ac_ct_DSYMUTIL=$DSYMUTIL
8504 # Extract the first word of "dsymutil", so it can be a program name with args.
8505 set dummy dsymutil; ac_word=$2
8506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8507 $as_echo_n "checking for $ac_word... " >&6; }
8508 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8509 $as_echo_n "(cached) " >&6
8510 else
8511 if test -n "$ac_ct_DSYMUTIL"; then
8512 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8513 else
8514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8515 for as_dir in $PATH
8517 IFS=$as_save_IFS
8518 test -z "$as_dir" && as_dir=.
8519 for ac_exec_ext in '' $ac_executable_extensions; do
8520 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8521 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8522 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8523 break 2
8525 done
8526 done
8527 IFS=$as_save_IFS
8531 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8532 if test -n "$ac_ct_DSYMUTIL"; then
8533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8534 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8535 else
8536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8537 $as_echo "no" >&6; }
8540 if test "x$ac_ct_DSYMUTIL" = x; then
8541 DSYMUTIL=":"
8542 else
8543 case $cross_compiling:$ac_tool_warned in
8544 yes:)
8545 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8546 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8547 ac_tool_warned=yes ;;
8548 esac
8549 DSYMUTIL=$ac_ct_DSYMUTIL
8551 else
8552 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8555 if test -n "$ac_tool_prefix"; then
8556 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8557 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8559 $as_echo_n "checking for $ac_word... " >&6; }
8560 if ${ac_cv_prog_NMEDIT+:} false; then :
8561 $as_echo_n "(cached) " >&6
8562 else
8563 if test -n "$NMEDIT"; then
8564 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8565 else
8566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8567 for as_dir in $PATH
8569 IFS=$as_save_IFS
8570 test -z "$as_dir" && as_dir=.
8571 for ac_exec_ext in '' $ac_executable_extensions; do
8572 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8573 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8574 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8575 break 2
8577 done
8578 done
8579 IFS=$as_save_IFS
8583 NMEDIT=$ac_cv_prog_NMEDIT
8584 if test -n "$NMEDIT"; then
8585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8586 $as_echo "$NMEDIT" >&6; }
8587 else
8588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8589 $as_echo "no" >&6; }
8594 if test -z "$ac_cv_prog_NMEDIT"; then
8595 ac_ct_NMEDIT=$NMEDIT
8596 # Extract the first word of "nmedit", so it can be a program name with args.
8597 set dummy nmedit; ac_word=$2
8598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8599 $as_echo_n "checking for $ac_word... " >&6; }
8600 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8601 $as_echo_n "(cached) " >&6
8602 else
8603 if test -n "$ac_ct_NMEDIT"; then
8604 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8605 else
8606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8607 for as_dir in $PATH
8609 IFS=$as_save_IFS
8610 test -z "$as_dir" && as_dir=.
8611 for ac_exec_ext in '' $ac_executable_extensions; do
8612 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8613 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8614 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8615 break 2
8617 done
8618 done
8619 IFS=$as_save_IFS
8623 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8624 if test -n "$ac_ct_NMEDIT"; then
8625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8626 $as_echo "$ac_ct_NMEDIT" >&6; }
8627 else
8628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8629 $as_echo "no" >&6; }
8632 if test "x$ac_ct_NMEDIT" = x; then
8633 NMEDIT=":"
8634 else
8635 case $cross_compiling:$ac_tool_warned in
8636 yes:)
8637 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8638 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8639 ac_tool_warned=yes ;;
8640 esac
8641 NMEDIT=$ac_ct_NMEDIT
8643 else
8644 NMEDIT="$ac_cv_prog_NMEDIT"
8647 if test -n "$ac_tool_prefix"; then
8648 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8649 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8651 $as_echo_n "checking for $ac_word... " >&6; }
8652 if ${ac_cv_prog_LIPO+:} false; then :
8653 $as_echo_n "(cached) " >&6
8654 else
8655 if test -n "$LIPO"; then
8656 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8657 else
8658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8659 for as_dir in $PATH
8661 IFS=$as_save_IFS
8662 test -z "$as_dir" && as_dir=.
8663 for ac_exec_ext in '' $ac_executable_extensions; do
8664 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8665 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8666 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8667 break 2
8669 done
8670 done
8671 IFS=$as_save_IFS
8675 LIPO=$ac_cv_prog_LIPO
8676 if test -n "$LIPO"; then
8677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8678 $as_echo "$LIPO" >&6; }
8679 else
8680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8681 $as_echo "no" >&6; }
8686 if test -z "$ac_cv_prog_LIPO"; then
8687 ac_ct_LIPO=$LIPO
8688 # Extract the first word of "lipo", so it can be a program name with args.
8689 set dummy lipo; ac_word=$2
8690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8691 $as_echo_n "checking for $ac_word... " >&6; }
8692 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8693 $as_echo_n "(cached) " >&6
8694 else
8695 if test -n "$ac_ct_LIPO"; then
8696 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8697 else
8698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8699 for as_dir in $PATH
8701 IFS=$as_save_IFS
8702 test -z "$as_dir" && as_dir=.
8703 for ac_exec_ext in '' $ac_executable_extensions; do
8704 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8705 ac_cv_prog_ac_ct_LIPO="lipo"
8706 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8707 break 2
8709 done
8710 done
8711 IFS=$as_save_IFS
8715 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8716 if test -n "$ac_ct_LIPO"; then
8717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8718 $as_echo "$ac_ct_LIPO" >&6; }
8719 else
8720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8721 $as_echo "no" >&6; }
8724 if test "x$ac_ct_LIPO" = x; then
8725 LIPO=":"
8726 else
8727 case $cross_compiling:$ac_tool_warned in
8728 yes:)
8729 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8730 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8731 ac_tool_warned=yes ;;
8732 esac
8733 LIPO=$ac_ct_LIPO
8735 else
8736 LIPO="$ac_cv_prog_LIPO"
8739 if test -n "$ac_tool_prefix"; then
8740 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8741 set dummy ${ac_tool_prefix}otool; ac_word=$2
8742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8743 $as_echo_n "checking for $ac_word... " >&6; }
8744 if ${ac_cv_prog_OTOOL+:} false; then :
8745 $as_echo_n "(cached) " >&6
8746 else
8747 if test -n "$OTOOL"; then
8748 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8749 else
8750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8751 for as_dir in $PATH
8753 IFS=$as_save_IFS
8754 test -z "$as_dir" && as_dir=.
8755 for ac_exec_ext in '' $ac_executable_extensions; do
8756 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8757 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8758 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8759 break 2
8761 done
8762 done
8763 IFS=$as_save_IFS
8767 OTOOL=$ac_cv_prog_OTOOL
8768 if test -n "$OTOOL"; then
8769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8770 $as_echo "$OTOOL" >&6; }
8771 else
8772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8773 $as_echo "no" >&6; }
8778 if test -z "$ac_cv_prog_OTOOL"; then
8779 ac_ct_OTOOL=$OTOOL
8780 # Extract the first word of "otool", so it can be a program name with args.
8781 set dummy otool; ac_word=$2
8782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8783 $as_echo_n "checking for $ac_word... " >&6; }
8784 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8785 $as_echo_n "(cached) " >&6
8786 else
8787 if test -n "$ac_ct_OTOOL"; then
8788 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8789 else
8790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8791 for as_dir in $PATH
8793 IFS=$as_save_IFS
8794 test -z "$as_dir" && as_dir=.
8795 for ac_exec_ext in '' $ac_executable_extensions; do
8796 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8797 ac_cv_prog_ac_ct_OTOOL="otool"
8798 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8799 break 2
8801 done
8802 done
8803 IFS=$as_save_IFS
8807 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8808 if test -n "$ac_ct_OTOOL"; then
8809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8810 $as_echo "$ac_ct_OTOOL" >&6; }
8811 else
8812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8813 $as_echo "no" >&6; }
8816 if test "x$ac_ct_OTOOL" = x; then
8817 OTOOL=":"
8818 else
8819 case $cross_compiling:$ac_tool_warned in
8820 yes:)
8821 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8822 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8823 ac_tool_warned=yes ;;
8824 esac
8825 OTOOL=$ac_ct_OTOOL
8827 else
8828 OTOOL="$ac_cv_prog_OTOOL"
8831 if test -n "$ac_tool_prefix"; then
8832 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8833 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8835 $as_echo_n "checking for $ac_word... " >&6; }
8836 if ${ac_cv_prog_OTOOL64+:} false; then :
8837 $as_echo_n "(cached) " >&6
8838 else
8839 if test -n "$OTOOL64"; then
8840 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8841 else
8842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8843 for as_dir in $PATH
8845 IFS=$as_save_IFS
8846 test -z "$as_dir" && as_dir=.
8847 for ac_exec_ext in '' $ac_executable_extensions; do
8848 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8849 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8850 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8851 break 2
8853 done
8854 done
8855 IFS=$as_save_IFS
8859 OTOOL64=$ac_cv_prog_OTOOL64
8860 if test -n "$OTOOL64"; then
8861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8862 $as_echo "$OTOOL64" >&6; }
8863 else
8864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8865 $as_echo "no" >&6; }
8870 if test -z "$ac_cv_prog_OTOOL64"; then
8871 ac_ct_OTOOL64=$OTOOL64
8872 # Extract the first word of "otool64", so it can be a program name with args.
8873 set dummy otool64; ac_word=$2
8874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8875 $as_echo_n "checking for $ac_word... " >&6; }
8876 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8877 $as_echo_n "(cached) " >&6
8878 else
8879 if test -n "$ac_ct_OTOOL64"; then
8880 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8881 else
8882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8883 for as_dir in $PATH
8885 IFS=$as_save_IFS
8886 test -z "$as_dir" && as_dir=.
8887 for ac_exec_ext in '' $ac_executable_extensions; do
8888 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8889 ac_cv_prog_ac_ct_OTOOL64="otool64"
8890 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8891 break 2
8893 done
8894 done
8895 IFS=$as_save_IFS
8899 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8900 if test -n "$ac_ct_OTOOL64"; then
8901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8902 $as_echo "$ac_ct_OTOOL64" >&6; }
8903 else
8904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8905 $as_echo "no" >&6; }
8908 if test "x$ac_ct_OTOOL64" = x; then
8909 OTOOL64=":"
8910 else
8911 case $cross_compiling:$ac_tool_warned in
8912 yes:)
8913 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8914 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8915 ac_tool_warned=yes ;;
8916 esac
8917 OTOOL64=$ac_ct_OTOOL64
8919 else
8920 OTOOL64="$ac_cv_prog_OTOOL64"
8949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8950 $as_echo_n "checking for -single_module linker flag... " >&6; }
8951 if ${lt_cv_apple_cc_single_mod+:} false; then :
8952 $as_echo_n "(cached) " >&6
8953 else
8954 lt_cv_apple_cc_single_mod=no
8955 if test -z "${LT_MULTI_MODULE}"; then
8956 # By default we will add the -single_module flag. You can override
8957 # by either setting the environment variable LT_MULTI_MODULE
8958 # non-empty at configure time, or by adding -multi_module to the
8959 # link flags.
8960 rm -rf libconftest.dylib*
8961 echo "int foo(void){return 1;}" > conftest.c
8962 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8963 -dynamiclib -Wl,-single_module conftest.c" >&5
8964 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8965 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8966 _lt_result=$?
8967 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8968 lt_cv_apple_cc_single_mod=yes
8969 else
8970 cat conftest.err >&5
8972 rm -rf libconftest.dylib*
8973 rm -f conftest.*
8976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8977 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8979 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8980 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8981 $as_echo_n "(cached) " >&6
8982 else
8983 lt_cv_ld_exported_symbols_list=no
8984 save_LDFLAGS=$LDFLAGS
8985 echo "_main" > conftest.sym
8986 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8987 if test x$gcc_no_link = xyes; then
8988 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
8990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8991 /* end confdefs.h. */
8994 main ()
8998 return 0;
9000 _ACEOF
9001 if ac_fn_c_try_link "$LINENO"; then :
9002 lt_cv_ld_exported_symbols_list=yes
9003 else
9004 lt_cv_ld_exported_symbols_list=no
9006 rm -f core conftest.err conftest.$ac_objext \
9007 conftest$ac_exeext conftest.$ac_ext
9008 LDFLAGS="$save_LDFLAGS"
9011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
9012 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
9013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
9014 $as_echo_n "checking for -force_load linker flag... " >&6; }
9015 if ${lt_cv_ld_force_load+:} false; then :
9016 $as_echo_n "(cached) " >&6
9017 else
9018 lt_cv_ld_force_load=no
9019 cat > conftest.c << _LT_EOF
9020 int forced_loaded() { return 2;}
9021 _LT_EOF
9022 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
9023 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
9024 echo "$AR cru libconftest.a conftest.o" >&5
9025 $AR cru libconftest.a conftest.o 2>&5
9026 cat > conftest.c << _LT_EOF
9027 int main() { return 0;}
9028 _LT_EOF
9029 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
9030 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
9031 _lt_result=$?
9032 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
9033 lt_cv_ld_force_load=yes
9034 else
9035 cat conftest.err >&5
9037 rm -f conftest.err libconftest.a conftest conftest.c
9038 rm -rf conftest.dSYM
9041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
9042 $as_echo "$lt_cv_ld_force_load" >&6; }
9043 # Allow for Darwin 4-7 (macOS 10.0-10.3) although these are not expect to
9044 # build without first building modern cctools / linker.
9045 case $host_cpu-$host_os in
9046 *-rhapsody* | *-darwin1.[012])
9047 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
9048 *-darwin1.*)
9049 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9050 *-darwin*)
9051 # darwin 5.x (macOS 10.1) onwards we only need to adjust when the
9052 # deployment target is forced to an earlier version.
9053 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host in
9054 UNSET,*-darwin[89]*|UNSET,*-darwin[12][0-9]*)
9056 10.[012][,.]*)
9057 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9061 esac
9063 esac
9064 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
9065 _lt_dar_single_mod='$single_module'
9067 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
9068 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
9069 else
9070 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
9072 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
9073 _lt_dsymutil='~$DSYMUTIL $lib || :'
9074 else
9075 _lt_dsymutil=
9078 esac
9080 for ac_header in dlfcn.h
9081 do :
9082 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9084 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
9085 cat >>confdefs.h <<_ACEOF
9086 #define HAVE_DLFCN_H 1
9087 _ACEOF
9091 done
9098 # Set options
9102 enable_dlopen=no
9105 enable_win32_dll=no
9108 # Check whether --enable-shared was given.
9109 if test "${enable_shared+set}" = set; then :
9110 enableval=$enable_shared; p=${PACKAGE-default}
9111 case $enableval in
9112 yes) enable_shared=yes ;;
9113 no) enable_shared=no ;;
9115 enable_shared=no
9116 # Look at the argument we got. We use all the common list separators.
9117 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9118 for pkg in $enableval; do
9119 IFS="$lt_save_ifs"
9120 if test "X$pkg" = "X$p"; then
9121 enable_shared=yes
9123 done
9124 IFS="$lt_save_ifs"
9126 esac
9127 else
9128 enable_shared=yes
9139 # Check whether --enable-static was given.
9140 if test "${enable_static+set}" = set; then :
9141 enableval=$enable_static; p=${PACKAGE-default}
9142 case $enableval in
9143 yes) enable_static=yes ;;
9144 no) enable_static=no ;;
9146 enable_static=no
9147 # Look at the argument we got. We use all the common list separators.
9148 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9149 for pkg in $enableval; do
9150 IFS="$lt_save_ifs"
9151 if test "X$pkg" = "X$p"; then
9152 enable_static=yes
9154 done
9155 IFS="$lt_save_ifs"
9157 esac
9158 else
9159 enable_static=yes
9171 # Check whether --with-pic was given.
9172 if test "${with_pic+set}" = set; then :
9173 withval=$with_pic; pic_mode="$withval"
9174 else
9175 pic_mode=default
9179 test -z "$pic_mode" && pic_mode=default
9187 # Check whether --enable-fast-install was given.
9188 if test "${enable_fast_install+set}" = set; then :
9189 enableval=$enable_fast_install; p=${PACKAGE-default}
9190 case $enableval in
9191 yes) enable_fast_install=yes ;;
9192 no) enable_fast_install=no ;;
9194 enable_fast_install=no
9195 # Look at the argument we got. We use all the common list separators.
9196 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9197 for pkg in $enableval; do
9198 IFS="$lt_save_ifs"
9199 if test "X$pkg" = "X$p"; then
9200 enable_fast_install=yes
9202 done
9203 IFS="$lt_save_ifs"
9205 esac
9206 else
9207 enable_fast_install=yes
9220 # This can be used to rebuild libtool when needed
9221 LIBTOOL_DEPS="$ltmain"
9223 # Always use our own libtool.
9224 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9251 test -z "$LN_S" && LN_S="ln -s"
9266 if test -n "${ZSH_VERSION+set}" ; then
9267 setopt NO_GLOB_SUBST
9270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9271 $as_echo_n "checking for objdir... " >&6; }
9272 if ${lt_cv_objdir+:} false; then :
9273 $as_echo_n "(cached) " >&6
9274 else
9275 rm -f .libs 2>/dev/null
9276 mkdir .libs 2>/dev/null
9277 if test -d .libs; then
9278 lt_cv_objdir=.libs
9279 else
9280 # MS-DOS does not allow filenames that begin with a dot.
9281 lt_cv_objdir=_libs
9283 rmdir .libs 2>/dev/null
9285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9286 $as_echo "$lt_cv_objdir" >&6; }
9287 objdir=$lt_cv_objdir
9293 cat >>confdefs.h <<_ACEOF
9294 #define LT_OBJDIR "$lt_cv_objdir/"
9295 _ACEOF
9300 case $host_os in
9301 aix3*)
9302 # AIX sometimes has problems with the GCC collect2 program. For some
9303 # reason, if we set the COLLECT_NAMES environment variable, the problems
9304 # vanish in a puff of smoke.
9305 if test "X${COLLECT_NAMES+set}" != Xset; then
9306 COLLECT_NAMES=
9307 export COLLECT_NAMES
9310 esac
9312 # Global variables:
9313 ofile=libtool
9314 can_build_shared=yes
9316 # All known linkers require a `.a' archive for static linking (except MSVC,
9317 # which needs '.lib').
9318 libext=a
9320 with_gnu_ld="$lt_cv_prog_gnu_ld"
9322 old_CC="$CC"
9323 old_CFLAGS="$CFLAGS"
9325 # Set sane defaults for various variables
9326 test -z "$CC" && CC=cc
9327 test -z "$LTCC" && LTCC=$CC
9328 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9329 test -z "$LD" && LD=ld
9330 test -z "$ac_objext" && ac_objext=o
9332 for cc_temp in $compiler""; do
9333 case $cc_temp in
9334 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9335 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9336 \-*) ;;
9337 *) break;;
9338 esac
9339 done
9340 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9343 # Only perform the check for file, if the check method requires it
9344 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9345 case $deplibs_check_method in
9346 file_magic*)
9347 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9349 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9350 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9351 $as_echo_n "(cached) " >&6
9352 else
9353 case $MAGIC_CMD in
9354 [\\/*] | ?:[\\/]*)
9355 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9358 lt_save_MAGIC_CMD="$MAGIC_CMD"
9359 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9360 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9361 for ac_dir in $ac_dummy; do
9362 IFS="$lt_save_ifs"
9363 test -z "$ac_dir" && ac_dir=.
9364 if test -f $ac_dir/${ac_tool_prefix}file; then
9365 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9366 if test -n "$file_magic_test_file"; then
9367 case $deplibs_check_method in
9368 "file_magic "*)
9369 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9370 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9371 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9372 $EGREP "$file_magic_regex" > /dev/null; then
9374 else
9375 cat <<_LT_EOF 1>&2
9377 *** Warning: the command libtool uses to detect shared libraries,
9378 *** $file_magic_cmd, produces output that libtool cannot recognize.
9379 *** The result is that libtool may fail to recognize shared libraries
9380 *** as such. This will affect the creation of libtool libraries that
9381 *** depend on shared libraries, but programs linked with such libtool
9382 *** libraries will work regardless of this problem. Nevertheless, you
9383 *** may want to report the problem to your system manager and/or to
9384 *** bug-libtool@gnu.org
9386 _LT_EOF
9387 fi ;;
9388 esac
9390 break
9392 done
9393 IFS="$lt_save_ifs"
9394 MAGIC_CMD="$lt_save_MAGIC_CMD"
9396 esac
9399 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9400 if test -n "$MAGIC_CMD"; then
9401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9402 $as_echo "$MAGIC_CMD" >&6; }
9403 else
9404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9405 $as_echo "no" >&6; }
9412 if test -z "$lt_cv_path_MAGIC_CMD"; then
9413 if test -n "$ac_tool_prefix"; then
9414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9415 $as_echo_n "checking for file... " >&6; }
9416 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9417 $as_echo_n "(cached) " >&6
9418 else
9419 case $MAGIC_CMD in
9420 [\\/*] | ?:[\\/]*)
9421 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9424 lt_save_MAGIC_CMD="$MAGIC_CMD"
9425 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9426 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9427 for ac_dir in $ac_dummy; do
9428 IFS="$lt_save_ifs"
9429 test -z "$ac_dir" && ac_dir=.
9430 if test -f $ac_dir/file; then
9431 lt_cv_path_MAGIC_CMD="$ac_dir/file"
9432 if test -n "$file_magic_test_file"; then
9433 case $deplibs_check_method in
9434 "file_magic "*)
9435 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9436 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9437 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9438 $EGREP "$file_magic_regex" > /dev/null; then
9440 else
9441 cat <<_LT_EOF 1>&2
9443 *** Warning: the command libtool uses to detect shared libraries,
9444 *** $file_magic_cmd, produces output that libtool cannot recognize.
9445 *** The result is that libtool may fail to recognize shared libraries
9446 *** as such. This will affect the creation of libtool libraries that
9447 *** depend on shared libraries, but programs linked with such libtool
9448 *** libraries will work regardless of this problem. Nevertheless, you
9449 *** may want to report the problem to your system manager and/or to
9450 *** bug-libtool@gnu.org
9452 _LT_EOF
9453 fi ;;
9454 esac
9456 break
9458 done
9459 IFS="$lt_save_ifs"
9460 MAGIC_CMD="$lt_save_MAGIC_CMD"
9462 esac
9465 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9466 if test -n "$MAGIC_CMD"; then
9467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9468 $as_echo "$MAGIC_CMD" >&6; }
9469 else
9470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9471 $as_echo "no" >&6; }
9475 else
9476 MAGIC_CMD=:
9482 esac
9484 # Use C for the default configuration in the libtool script
9486 lt_save_CC="$CC"
9487 ac_ext=c
9488 ac_cpp='$CPP $CPPFLAGS'
9489 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9490 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9491 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9494 # Source file extension for C test sources.
9495 ac_ext=c
9497 # Object file extension for compiled C test sources.
9498 objext=o
9499 objext=$objext
9501 # Code to be used in simple compile tests
9502 lt_simple_compile_test_code="int some_variable = 0;"
9504 # Code to be used in simple link tests
9505 lt_simple_link_test_code='int main(){return(0);}'
9513 # If no C compiler was specified, use CC.
9514 LTCC=${LTCC-"$CC"}
9516 # If no C compiler flags were specified, use CFLAGS.
9517 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9519 # Allow CC to be a program name with arguments.
9520 compiler=$CC
9522 # Save the default compiler, since it gets overwritten when the other
9523 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9524 compiler_DEFAULT=$CC
9526 # save warnings/boilerplate of simple test code
9527 ac_outfile=conftest.$ac_objext
9528 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9529 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9530 _lt_compiler_boilerplate=`cat conftest.err`
9531 $RM conftest*
9533 ac_outfile=conftest.$ac_objext
9534 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9535 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9536 _lt_linker_boilerplate=`cat conftest.err`
9537 $RM -r conftest*
9540 ## CAVEAT EMPTOR:
9541 ## There is no encapsulation within the following macros, do not change
9542 ## the running order or otherwise move them around unless you know exactly
9543 ## what you are doing...
9544 if test -n "$compiler"; then
9546 lt_prog_compiler_no_builtin_flag=
9548 if test "$GCC" = yes; then
9549 case $cc_basename in
9550 nvcc*)
9551 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9553 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9554 esac
9556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9557 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9558 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9559 $as_echo_n "(cached) " >&6
9560 else
9561 lt_cv_prog_compiler_rtti_exceptions=no
9562 ac_outfile=conftest.$ac_objext
9563 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9564 lt_compiler_flag="-fno-rtti -fno-exceptions"
9565 # Insert the option either (1) after the last *FLAGS variable, or
9566 # (2) before a word containing "conftest.", or (3) at the end.
9567 # Note that $ac_compile itself does not contain backslashes and begins
9568 # with a dollar sign (not a hyphen), so the echo should work correctly.
9569 # The option is referenced via a variable to avoid confusing sed.
9570 lt_compile=`echo "$ac_compile" | $SED \
9571 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9572 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9573 -e 's:$: $lt_compiler_flag:'`
9574 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9575 (eval "$lt_compile" 2>conftest.err)
9576 ac_status=$?
9577 cat conftest.err >&5
9578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9579 if (exit $ac_status) && test -s "$ac_outfile"; then
9580 # The compiler can only warn and ignore the option if not recognized
9581 # So say no if there are warnings other than the usual output.
9582 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9583 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9584 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9585 lt_cv_prog_compiler_rtti_exceptions=yes
9588 $RM conftest*
9591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9592 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9594 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9595 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9596 else
9607 lt_prog_compiler_wl=
9608 lt_prog_compiler_pic=
9609 lt_prog_compiler_static=
9611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9612 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9614 if test "$GCC" = yes; then
9615 lt_prog_compiler_wl='-Wl,'
9616 lt_prog_compiler_static='-static'
9618 case $host_os in
9619 aix*)
9620 # All AIX code is PIC.
9621 if test "$host_cpu" = ia64; then
9622 # AIX 5 now supports IA64 processor
9623 lt_prog_compiler_static='-Bstatic'
9625 lt_prog_compiler_pic='-fPIC'
9628 amigaos*)
9629 case $host_cpu in
9630 powerpc)
9631 # see comment about AmigaOS4 .so support
9632 lt_prog_compiler_pic='-fPIC'
9634 m68k)
9635 # FIXME: we need at least 68020 code to build shared libraries, but
9636 # adding the `-m68020' flag to GCC prevents building anything better,
9637 # like `-m68040'.
9638 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9640 esac
9643 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9644 # PIC is the default for these OSes.
9647 mingw* | cygwin* | pw32* | os2* | cegcc*)
9648 # This hack is so that the source file can tell whether it is being
9649 # built for inclusion in a dll (and should export symbols for example).
9650 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9651 # (--disable-auto-import) libraries
9652 lt_prog_compiler_pic='-DDLL_EXPORT'
9655 darwin* | rhapsody*)
9656 # PIC is the default on this platform
9657 # Common symbols not allowed in MH_DYLIB files
9658 lt_prog_compiler_pic='-fno-common'
9661 haiku*)
9662 # PIC is the default for Haiku.
9663 # The "-static" flag exists, but is broken.
9664 lt_prog_compiler_static=
9667 hpux*)
9668 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9669 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9670 # sets the default TLS model and affects inlining.
9671 case $host_cpu in
9672 hppa*64*)
9673 # +Z the default
9676 lt_prog_compiler_pic='-fPIC'
9678 esac
9681 interix[3-9]*)
9682 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9683 # Instead, we relocate shared libraries at runtime.
9686 msdosdjgpp*)
9687 # Just because we use GCC doesn't mean we suddenly get shared libraries
9688 # on systems that don't support them.
9689 lt_prog_compiler_can_build_shared=no
9690 enable_shared=no
9693 *nto* | *qnx*)
9694 # QNX uses GNU C++, but need to define -shared option too, otherwise
9695 # it will coredump.
9696 lt_prog_compiler_pic='-fPIC -shared'
9699 sysv4*MP*)
9700 if test -d /usr/nec; then
9701 lt_prog_compiler_pic=-Kconform_pic
9706 lt_prog_compiler_pic='-fPIC'
9708 esac
9710 case $cc_basename in
9711 nvcc*) # Cuda Compiler Driver 2.2
9712 lt_prog_compiler_wl='-Xlinker '
9713 lt_prog_compiler_pic='-Xcompiler -fPIC'
9715 esac
9716 else
9717 # PORTME Check for flag to pass linker flags through the system compiler.
9718 case $host_os in
9719 aix*)
9720 lt_prog_compiler_wl='-Wl,'
9721 if test "$host_cpu" = ia64; then
9722 # AIX 5 now supports IA64 processor
9723 lt_prog_compiler_static='-Bstatic'
9724 else
9725 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9729 mingw* | cygwin* | pw32* | os2* | cegcc*)
9730 # This hack is so that the source file can tell whether it is being
9731 # built for inclusion in a dll (and should export symbols for example).
9732 lt_prog_compiler_pic='-DDLL_EXPORT'
9735 hpux9* | hpux10* | hpux11*)
9736 lt_prog_compiler_wl='-Wl,'
9737 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9738 # not for PA HP-UX.
9739 case $host_cpu in
9740 hppa*64*|ia64*)
9741 # +Z the default
9744 lt_prog_compiler_pic='+Z'
9746 esac
9747 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9748 lt_prog_compiler_static='${wl}-a ${wl}archive'
9751 irix5* | irix6* | nonstopux*)
9752 lt_prog_compiler_wl='-Wl,'
9753 # PIC (with -KPIC) is the default.
9754 lt_prog_compiler_static='-non_shared'
9757 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9758 case $cc_basename in
9759 # old Intel for x86_64 which still supported -KPIC.
9760 ecc*)
9761 lt_prog_compiler_wl='-Wl,'
9762 lt_prog_compiler_pic='-KPIC'
9763 lt_prog_compiler_static='-static'
9765 # icc used to be incompatible with GCC.
9766 # ICC 10 doesn't accept -KPIC any more.
9767 icc* | ifort*)
9768 lt_prog_compiler_wl='-Wl,'
9769 lt_prog_compiler_pic='-fPIC'
9770 lt_prog_compiler_static='-static'
9772 # Lahey Fortran 8.1.
9773 lf95*)
9774 lt_prog_compiler_wl='-Wl,'
9775 lt_prog_compiler_pic='--shared'
9776 lt_prog_compiler_static='--static'
9778 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9779 # Portland Group compilers (*not* the Pentium gcc compiler,
9780 # which looks to be a dead project)
9781 lt_prog_compiler_wl='-Wl,'
9782 lt_prog_compiler_pic='-fpic'
9783 lt_prog_compiler_static='-Bstatic'
9785 ccc*)
9786 lt_prog_compiler_wl='-Wl,'
9787 # All Alpha code is PIC.
9788 lt_prog_compiler_static='-non_shared'
9790 xl* | bgxl* | bgf* | mpixl*)
9791 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9792 lt_prog_compiler_wl='-Wl,'
9793 lt_prog_compiler_pic='-qpic'
9794 lt_prog_compiler_static='-qstaticlink'
9797 case `$CC -V 2>&1 | sed 5q` in
9798 *Sun\ F* | *Sun*Fortran*)
9799 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9800 lt_prog_compiler_pic='-KPIC'
9801 lt_prog_compiler_static='-Bstatic'
9802 lt_prog_compiler_wl=''
9804 *Sun\ C*)
9805 # Sun C 5.9
9806 lt_prog_compiler_pic='-KPIC'
9807 lt_prog_compiler_static='-Bstatic'
9808 lt_prog_compiler_wl='-Wl,'
9810 esac
9812 esac
9815 newsos6)
9816 lt_prog_compiler_pic='-KPIC'
9817 lt_prog_compiler_static='-Bstatic'
9820 *nto* | *qnx*)
9821 # QNX uses GNU C++, but need to define -shared option too, otherwise
9822 # it will coredump.
9823 lt_prog_compiler_pic='-fPIC -shared'
9826 osf3* | osf4* | osf5*)
9827 lt_prog_compiler_wl='-Wl,'
9828 # All OSF/1 code is PIC.
9829 lt_prog_compiler_static='-non_shared'
9832 rdos*)
9833 lt_prog_compiler_static='-non_shared'
9836 solaris*)
9837 lt_prog_compiler_pic='-KPIC'
9838 lt_prog_compiler_static='-Bstatic'
9839 case $cc_basename in
9840 f77* | f90* | f95*)
9841 lt_prog_compiler_wl='-Qoption ld ';;
9843 lt_prog_compiler_wl='-Wl,';;
9844 esac
9847 sunos4*)
9848 lt_prog_compiler_wl='-Qoption ld '
9849 lt_prog_compiler_pic='-PIC'
9850 lt_prog_compiler_static='-Bstatic'
9853 sysv4 | sysv4.2uw2* | sysv4.3*)
9854 lt_prog_compiler_wl='-Wl,'
9855 lt_prog_compiler_pic='-KPIC'
9856 lt_prog_compiler_static='-Bstatic'
9859 sysv4*MP*)
9860 if test -d /usr/nec ;then
9861 lt_prog_compiler_pic='-Kconform_pic'
9862 lt_prog_compiler_static='-Bstatic'
9866 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9867 lt_prog_compiler_wl='-Wl,'
9868 lt_prog_compiler_pic='-KPIC'
9869 lt_prog_compiler_static='-Bstatic'
9872 unicos*)
9873 lt_prog_compiler_wl='-Wl,'
9874 lt_prog_compiler_can_build_shared=no
9877 uts4*)
9878 lt_prog_compiler_pic='-pic'
9879 lt_prog_compiler_static='-Bstatic'
9883 lt_prog_compiler_can_build_shared=no
9885 esac
9888 case $host_os in
9889 # For platforms which do not support PIC, -DPIC is meaningless:
9890 *djgpp*)
9891 lt_prog_compiler_pic=
9894 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9896 esac
9897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9898 $as_echo "$lt_prog_compiler_pic" >&6; }
9906 # Check to make sure the PIC flag actually works.
9908 if test -n "$lt_prog_compiler_pic"; then
9909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9910 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9911 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9912 $as_echo_n "(cached) " >&6
9913 else
9914 lt_cv_prog_compiler_pic_works=no
9915 ac_outfile=conftest.$ac_objext
9916 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9917 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9918 # Insert the option either (1) after the last *FLAGS variable, or
9919 # (2) before a word containing "conftest.", or (3) at the end.
9920 # Note that $ac_compile itself does not contain backslashes and begins
9921 # with a dollar sign (not a hyphen), so the echo should work correctly.
9922 # The option is referenced via a variable to avoid confusing sed.
9923 lt_compile=`echo "$ac_compile" | $SED \
9924 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9925 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9926 -e 's:$: $lt_compiler_flag:'`
9927 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9928 (eval "$lt_compile" 2>conftest.err)
9929 ac_status=$?
9930 cat conftest.err >&5
9931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9932 if (exit $ac_status) && test -s "$ac_outfile"; then
9933 # The compiler can only warn and ignore the option if not recognized
9934 # So say no if there are warnings other than the usual output.
9935 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9936 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9937 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9938 lt_cv_prog_compiler_pic_works=yes
9941 $RM conftest*
9944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9945 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9947 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9948 case $lt_prog_compiler_pic in
9949 "" | " "*) ;;
9950 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9951 esac
9952 else
9953 lt_prog_compiler_pic=
9954 lt_prog_compiler_can_build_shared=no
9965 # Check to make sure the static flag actually works.
9967 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9969 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9970 if ${lt_cv_prog_compiler_static_works+:} false; then :
9971 $as_echo_n "(cached) " >&6
9972 else
9973 lt_cv_prog_compiler_static_works=no
9974 save_LDFLAGS="$LDFLAGS"
9975 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9976 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9977 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9978 # The linker can only warn and ignore the option if not recognized
9979 # So say no if there are warnings
9980 if test -s conftest.err; then
9981 # Append any errors to the config.log.
9982 cat conftest.err 1>&5
9983 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9984 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9985 if diff conftest.exp conftest.er2 >/dev/null; then
9986 lt_cv_prog_compiler_static_works=yes
9988 else
9989 lt_cv_prog_compiler_static_works=yes
9992 $RM -r conftest*
9993 LDFLAGS="$save_LDFLAGS"
9996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9997 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9999 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
10001 else
10002 lt_prog_compiler_static=
10011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10012 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10013 if ${lt_cv_prog_compiler_c_o+:} false; then :
10014 $as_echo_n "(cached) " >&6
10015 else
10016 lt_cv_prog_compiler_c_o=no
10017 $RM -r conftest 2>/dev/null
10018 mkdir conftest
10019 cd conftest
10020 mkdir out
10021 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10023 lt_compiler_flag="-o out/conftest2.$ac_objext"
10024 # Insert the option either (1) after the last *FLAGS variable, or
10025 # (2) before a word containing "conftest.", or (3) at the end.
10026 # Note that $ac_compile itself does not contain backslashes and begins
10027 # with a dollar sign (not a hyphen), so the echo should work correctly.
10028 lt_compile=`echo "$ac_compile" | $SED \
10029 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10030 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10031 -e 's:$: $lt_compiler_flag:'`
10032 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10033 (eval "$lt_compile" 2>out/conftest.err)
10034 ac_status=$?
10035 cat out/conftest.err >&5
10036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10037 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10038 then
10039 # The compiler can only warn and ignore the option if not recognized
10040 # So say no if there are warnings
10041 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10042 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10043 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10044 lt_cv_prog_compiler_c_o=yes
10047 chmod u+w . 2>&5
10048 $RM conftest*
10049 # SGI C++ compiler will create directory out/ii_files/ for
10050 # template instantiation
10051 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10052 $RM out/* && rmdir out
10053 cd ..
10054 $RM -r conftest
10055 $RM conftest*
10058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10059 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10067 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10068 if ${lt_cv_prog_compiler_c_o+:} false; then :
10069 $as_echo_n "(cached) " >&6
10070 else
10071 lt_cv_prog_compiler_c_o=no
10072 $RM -r conftest 2>/dev/null
10073 mkdir conftest
10074 cd conftest
10075 mkdir out
10076 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10078 lt_compiler_flag="-o out/conftest2.$ac_objext"
10079 # Insert the option either (1) after the last *FLAGS variable, or
10080 # (2) before a word containing "conftest.", or (3) at the end.
10081 # Note that $ac_compile itself does not contain backslashes and begins
10082 # with a dollar sign (not a hyphen), so the echo should work correctly.
10083 lt_compile=`echo "$ac_compile" | $SED \
10084 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10085 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10086 -e 's:$: $lt_compiler_flag:'`
10087 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10088 (eval "$lt_compile" 2>out/conftest.err)
10089 ac_status=$?
10090 cat out/conftest.err >&5
10091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10092 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10093 then
10094 # The compiler can only warn and ignore the option if not recognized
10095 # So say no if there are warnings
10096 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10097 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10098 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10099 lt_cv_prog_compiler_c_o=yes
10102 chmod u+w . 2>&5
10103 $RM conftest*
10104 # SGI C++ compiler will create directory out/ii_files/ for
10105 # template instantiation
10106 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10107 $RM out/* && rmdir out
10108 cd ..
10109 $RM -r conftest
10110 $RM conftest*
10113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10114 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10119 hard_links="nottested"
10120 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10121 # do not overwrite the value of need_locks provided by the user
10122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10123 $as_echo_n "checking if we can lock with hard links... " >&6; }
10124 hard_links=yes
10125 $RM conftest*
10126 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10127 touch conftest.a
10128 ln conftest.a conftest.b 2>&5 || hard_links=no
10129 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10131 $as_echo "$hard_links" >&6; }
10132 if test "$hard_links" = no; then
10133 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10134 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10135 need_locks=warn
10137 else
10138 need_locks=no
10146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10147 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10149 runpath_var=
10150 allow_undefined_flag=
10151 always_export_symbols=no
10152 archive_cmds=
10153 archive_expsym_cmds=
10154 compiler_needs_object=no
10155 enable_shared_with_static_runtimes=no
10156 export_dynamic_flag_spec=
10157 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10158 hardcode_automatic=no
10159 hardcode_direct=no
10160 hardcode_direct_absolute=no
10161 hardcode_libdir_flag_spec=
10162 hardcode_libdir_flag_spec_ld=
10163 hardcode_libdir_separator=
10164 hardcode_minus_L=no
10165 hardcode_shlibpath_var=unsupported
10166 inherit_rpath=no
10167 link_all_deplibs=unknown
10168 module_cmds=
10169 module_expsym_cmds=
10170 old_archive_from_new_cmds=
10171 old_archive_from_expsyms_cmds=
10172 thread_safe_flag_spec=
10173 whole_archive_flag_spec=
10174 # include_expsyms should be a list of space-separated symbols to be *always*
10175 # included in the symbol list
10176 include_expsyms=
10177 # exclude_expsyms can be an extended regexp of symbols to exclude
10178 # it will be wrapped by ` (' and `)$', so one must not match beginning or
10179 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10180 # as well as any symbol that contains `d'.
10181 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10182 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10183 # platforms (ab)use it in PIC code, but their linkers get confused if
10184 # the symbol is explicitly referenced. Since portable code cannot
10185 # rely on this symbol name, it's probably fine to never include it in
10186 # preloaded symbol tables.
10187 # Exclude shared library initialization/finalization symbols.
10188 extract_expsyms_cmds=
10190 case $host_os in
10191 cygwin* | mingw* | pw32* | cegcc*)
10192 # FIXME: the MSVC++ port hasn't been tested in a loooong time
10193 # When not using gcc, we currently assume that we are using
10194 # Microsoft Visual C++.
10195 if test "$GCC" != yes; then
10196 with_gnu_ld=no
10199 interix*)
10200 # we just hope/assume this is gcc and not c89 (= MSVC++)
10201 with_gnu_ld=yes
10203 openbsd*)
10204 with_gnu_ld=no
10206 esac
10208 ld_shlibs=yes
10210 # On some targets, GNU ld is compatible enough with the native linker
10211 # that we're better off using the native interface for both.
10212 lt_use_gnu_ld_interface=no
10213 if test "$with_gnu_ld" = yes; then
10214 case $host_os in
10215 aix*)
10216 # The AIX port of GNU ld has always aspired to compatibility
10217 # with the native linker. However, as the warning in the GNU ld
10218 # block says, versions before 2.19.5* couldn't really create working
10219 # shared libraries, regardless of the interface used.
10220 case `$LD -v 2>&1` in
10221 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10222 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10223 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10225 lt_use_gnu_ld_interface=yes
10227 esac
10230 lt_use_gnu_ld_interface=yes
10232 esac
10235 if test "$lt_use_gnu_ld_interface" = yes; then
10236 # If archive_cmds runs LD, not CC, wlarc should be empty
10237 wlarc='${wl}'
10239 # Set some defaults for GNU ld with shared library support. These
10240 # are reset later if shared libraries are not supported. Putting them
10241 # here allows them to be overridden if necessary.
10242 runpath_var=LD_RUN_PATH
10243 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10244 export_dynamic_flag_spec='${wl}--export-dynamic'
10245 # ancient GNU ld didn't support --whole-archive et. al.
10246 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10247 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10248 else
10249 whole_archive_flag_spec=
10251 supports_anon_versioning=no
10252 case `$LD -v 2>&1` in
10253 *GNU\ gold*) supports_anon_versioning=yes ;;
10254 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10255 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10256 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10257 *\ 2.11.*) ;; # other 2.11 versions
10258 *) supports_anon_versioning=yes ;;
10259 esac
10261 # See if GNU ld supports shared libraries.
10262 case $host_os in
10263 aix[3-9]*)
10264 # On AIX/PPC, the GNU linker is very broken
10265 if test "$host_cpu" != ia64; then
10266 ld_shlibs=no
10267 cat <<_LT_EOF 1>&2
10269 *** Warning: the GNU linker, at least up to release 2.19, is reported
10270 *** to be unable to reliably create shared libraries on AIX.
10271 *** Therefore, libtool is disabling shared libraries support. If you
10272 *** really care for shared libraries, you may want to install binutils
10273 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10274 *** You will then need to restart the configuration process.
10276 _LT_EOF
10280 amigaos*)
10281 case $host_cpu in
10282 powerpc)
10283 # see comment about AmigaOS4 .so support
10284 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10285 archive_expsym_cmds=''
10287 m68k)
10288 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)'
10289 hardcode_libdir_flag_spec='-L$libdir'
10290 hardcode_minus_L=yes
10292 esac
10295 beos*)
10296 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10297 allow_undefined_flag=unsupported
10298 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10299 # support --undefined. This deserves some investigation. FIXME
10300 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10301 else
10302 ld_shlibs=no
10306 cygwin* | mingw* | pw32* | cegcc*)
10307 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10308 # as there is no search path for DLLs.
10309 hardcode_libdir_flag_spec='-L$libdir'
10310 export_dynamic_flag_spec='${wl}--export-all-symbols'
10311 allow_undefined_flag=unsupported
10312 always_export_symbols=no
10313 enable_shared_with_static_runtimes=yes
10314 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10316 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10317 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10318 # If the export-symbols file already is a .def file (1st line
10319 # is EXPORTS), use it as is; otherwise, prepend...
10320 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10321 cp $export_symbols $output_objdir/$soname.def;
10322 else
10323 echo EXPORTS > $output_objdir/$soname.def;
10324 cat $export_symbols >> $output_objdir/$soname.def;
10326 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10327 else
10328 ld_shlibs=no
10332 haiku*)
10333 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10334 link_all_deplibs=yes
10337 interix[3-9]*)
10338 hardcode_direct=no
10339 hardcode_shlibpath_var=no
10340 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10341 export_dynamic_flag_spec='${wl}-E'
10342 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10343 # Instead, shared libraries are loaded at an image base (0x10000000 by
10344 # default) and relocated if they conflict, which is a slow very memory
10345 # consuming and fragmenting process. To avoid this, we pick a random,
10346 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10347 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10348 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10349 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'
10352 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
10353 tmp_diet=no
10354 if test "$host_os" = linux-dietlibc; then
10355 case $cc_basename in
10356 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10357 esac
10359 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10360 && test "$tmp_diet" = no
10361 then
10362 tmp_addflag=' $pic_flag'
10363 tmp_sharedflag='-shared'
10364 case $cc_basename,$host_cpu in
10365 pgcc*) # Portland Group C compiler
10366 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'
10367 tmp_addflag=' $pic_flag'
10369 pgf77* | pgf90* | pgf95* | pgfortran*)
10370 # Portland Group f77 and f90 compilers
10371 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'
10372 tmp_addflag=' $pic_flag -Mnomain' ;;
10373 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10374 tmp_addflag=' -i_dynamic' ;;
10375 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10376 tmp_addflag=' -i_dynamic -nofor_main' ;;
10377 ifc* | ifort*) # Intel Fortran compiler
10378 tmp_addflag=' -nofor_main' ;;
10379 lf95*) # Lahey Fortran 8.1
10380 whole_archive_flag_spec=
10381 tmp_sharedflag='--shared' ;;
10382 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10383 tmp_sharedflag='-qmkshrobj'
10384 tmp_addflag= ;;
10385 nvcc*) # Cuda Compiler Driver 2.2
10386 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'
10387 compiler_needs_object=yes
10389 esac
10390 case `$CC -V 2>&1 | sed 5q` in
10391 *Sun\ C*) # Sun C 5.9
10392 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'
10393 compiler_needs_object=yes
10394 tmp_sharedflag='-G' ;;
10395 *Sun\ F*) # Sun Fortran 8.3
10396 tmp_sharedflag='-G' ;;
10397 esac
10398 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10400 if test "x$supports_anon_versioning" = xyes; then
10401 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10402 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10403 echo "local: *; };" >> $output_objdir/$libname.ver~
10404 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10407 case $cc_basename in
10408 xlf* | bgf* | bgxlf* | mpixlf*)
10409 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10410 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10411 hardcode_libdir_flag_spec=
10412 hardcode_libdir_flag_spec_ld='-rpath $libdir'
10413 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
10414 if test "x$supports_anon_versioning" = xyes; then
10415 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10416 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10417 echo "local: *; };" >> $output_objdir/$libname.ver~
10418 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10421 esac
10422 else
10423 ld_shlibs=no
10427 netbsd*)
10428 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10429 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10430 wlarc=
10431 else
10432 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10433 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10437 solaris*)
10438 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10439 ld_shlibs=no
10440 cat <<_LT_EOF 1>&2
10442 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10443 *** create shared libraries on Solaris systems. Therefore, libtool
10444 *** is disabling shared libraries support. We urge you to upgrade GNU
10445 *** binutils to release 2.9.1 or newer. Another option is to modify
10446 *** your PATH or compiler configuration so that the native linker is
10447 *** used, and then restart.
10449 _LT_EOF
10450 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10451 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10452 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10453 else
10454 ld_shlibs=no
10458 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10459 case `$LD -v 2>&1` in
10460 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10461 ld_shlibs=no
10462 cat <<_LT_EOF 1>&2
10464 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10465 *** reliably create shared libraries on SCO systems. Therefore, libtool
10466 *** is disabling shared libraries support. We urge you to upgrade GNU
10467 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10468 *** your PATH or compiler configuration so that the native linker is
10469 *** used, and then restart.
10471 _LT_EOF
10474 # For security reasons, it is highly recommended that you always
10475 # use absolute paths for naming shared libraries, and exclude the
10476 # DT_RUNPATH tag from executables and libraries. But doing so
10477 # requires that you compile everything twice, which is a pain.
10478 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10479 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10480 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10481 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10482 else
10483 ld_shlibs=no
10486 esac
10489 sunos4*)
10490 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10491 wlarc=
10492 hardcode_direct=yes
10493 hardcode_shlibpath_var=no
10497 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10498 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10499 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10500 else
10501 ld_shlibs=no
10504 esac
10506 if test "$ld_shlibs" = no; then
10507 runpath_var=
10508 hardcode_libdir_flag_spec=
10509 export_dynamic_flag_spec=
10510 whole_archive_flag_spec=
10512 else
10513 # PORTME fill in a description of your system's linker (not GNU ld)
10514 case $host_os in
10515 aix3*)
10516 allow_undefined_flag=unsupported
10517 always_export_symbols=yes
10518 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'
10519 # Note: this linker hardcodes the directories in LIBPATH if there
10520 # are no directories specified by -L.
10521 hardcode_minus_L=yes
10522 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10523 # Neither direct hardcoding nor static linking is supported with a
10524 # broken collect2.
10525 hardcode_direct=unsupported
10529 aix[4-9]*)
10530 if test "$host_cpu" = ia64; then
10531 # On IA64, the linker does run time linking by default, so we don't
10532 # have to do anything special.
10533 aix_use_runtimelinking=no
10534 exp_sym_flag='-Bexport'
10535 no_entry_flag=""
10536 else
10537 # If we're using GNU nm, then we don't want the "-C" option.
10538 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10539 # Also, AIX nm treats weak defined symbols like other global
10540 # defined symbols, whereas GNU nm marks them as "W".
10541 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10542 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
10543 else
10544 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
10546 aix_use_runtimelinking=no
10548 # Test if we are trying to use run time linking or normal
10549 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10550 # need to do runtime linking.
10551 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10552 for ld_flag in $LDFLAGS; do
10553 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10554 aix_use_runtimelinking=yes
10555 break
10557 done
10559 esac
10561 exp_sym_flag='-bexport'
10562 no_entry_flag='-bnoentry'
10565 # When large executables or shared objects are built, AIX ld can
10566 # have problems creating the table of contents. If linking a library
10567 # or program results in "error TOC overflow" add -mminimal-toc to
10568 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10569 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10571 archive_cmds=''
10572 hardcode_direct=yes
10573 hardcode_direct_absolute=yes
10574 hardcode_libdir_separator=':'
10575 link_all_deplibs=yes
10576 file_list_spec='${wl}-f,'
10578 if test "$GCC" = yes; then
10579 case $host_os in aix4.[012]|aix4.[012].*)
10580 # We only want to do this on AIX 4.2 and lower, the check
10581 # below for broken collect2 doesn't work under 4.3+
10582 collect2name=`${CC} -print-prog-name=collect2`
10583 if test -f "$collect2name" &&
10584 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10585 then
10586 # We have reworked collect2
10588 else
10589 # We have old collect2
10590 hardcode_direct=unsupported
10591 # It fails to find uninstalled libraries when the uninstalled
10592 # path is not listed in the libpath. Setting hardcode_minus_L
10593 # to unsupported forces relinking
10594 hardcode_minus_L=yes
10595 hardcode_libdir_flag_spec='-L$libdir'
10596 hardcode_libdir_separator=
10599 esac
10600 shared_flag='-shared'
10601 if test "$aix_use_runtimelinking" = yes; then
10602 shared_flag="$shared_flag "'${wl}-G'
10604 else
10605 # not using gcc
10606 if test "$host_cpu" = ia64; then
10607 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10608 # chokes on -Wl,-G. The following line is correct:
10609 shared_flag='-G'
10610 else
10611 if test "$aix_use_runtimelinking" = yes; then
10612 shared_flag='${wl}-G'
10613 else
10614 shared_flag='${wl}-bM:SRE'
10619 export_dynamic_flag_spec='${wl}-bexpall'
10620 # It seems that -bexpall does not export symbols beginning with
10621 # underscore (_), so it is better to generate a list of symbols to export.
10622 always_export_symbols=yes
10623 if test "$aix_use_runtimelinking" = yes; then
10624 # Warning - without using the other runtime loading flags (-brtl),
10625 # -berok will link without error, but may produce a broken library.
10626 allow_undefined_flag='-berok'
10627 # Determine the default libpath from the value encoded in an
10628 # empty executable.
10629 if test x$gcc_no_link = xyes; then
10630 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10633 /* end confdefs.h. */
10636 main ()
10640 return 0;
10642 _ACEOF
10643 if ac_fn_c_try_link "$LINENO"; then :
10645 lt_aix_libpath_sed='
10646 /Import File Strings/,/^$/ {
10647 /^0/ {
10648 s/^0 *\(.*\)$/\1/
10652 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10653 # Check for a 64-bit object if we didn't find anything.
10654 if test -z "$aix_libpath"; then
10655 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10658 rm -f core conftest.err conftest.$ac_objext \
10659 conftest$ac_exeext conftest.$ac_ext
10660 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10662 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10663 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10664 else
10665 if test "$host_cpu" = ia64; then
10666 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10667 allow_undefined_flag="-z nodefs"
10668 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"
10669 else
10670 # Determine the default libpath from the value encoded in an
10671 # empty executable.
10672 if test x$gcc_no_link = xyes; then
10673 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10676 /* end confdefs.h. */
10679 main ()
10683 return 0;
10685 _ACEOF
10686 if ac_fn_c_try_link "$LINENO"; then :
10688 lt_aix_libpath_sed='
10689 /Import File Strings/,/^$/ {
10690 /^0/ {
10691 s/^0 *\(.*\)$/\1/
10695 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10696 # Check for a 64-bit object if we didn't find anything.
10697 if test -z "$aix_libpath"; then
10698 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10701 rm -f core conftest.err conftest.$ac_objext \
10702 conftest$ac_exeext conftest.$ac_ext
10703 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10705 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10706 # Warning - without using the other run time loading flags,
10707 # -berok will link without error, but may produce a broken library.
10708 no_undefined_flag=' ${wl}-bernotok'
10709 allow_undefined_flag=' ${wl}-berok'
10710 if test "$with_gnu_ld" = yes; then
10711 # We only use this code for GNU lds that support --whole-archive.
10712 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10713 else
10714 # Exported symbols can be pulled into shared objects from archives
10715 whole_archive_flag_spec='$convenience'
10717 archive_cmds_need_lc=yes
10718 # This is similar to how AIX traditionally builds its shared libraries.
10719 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
10724 amigaos*)
10725 case $host_cpu in
10726 powerpc)
10727 # see comment about AmigaOS4 .so support
10728 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10729 archive_expsym_cmds=''
10731 m68k)
10732 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)'
10733 hardcode_libdir_flag_spec='-L$libdir'
10734 hardcode_minus_L=yes
10736 esac
10739 bsdi[45]*)
10740 export_dynamic_flag_spec=-rdynamic
10743 cygwin* | mingw* | pw32* | cegcc*)
10744 # When not using gcc, we currently assume that we are using
10745 # Microsoft Visual C++.
10746 # hardcode_libdir_flag_spec is actually meaningless, as there is
10747 # no search path for DLLs.
10748 hardcode_libdir_flag_spec=' '
10749 allow_undefined_flag=unsupported
10750 # Tell ltmain to make .lib files, not .a files.
10751 libext=lib
10752 # Tell ltmain to make .dll files, not .so files.
10753 shrext_cmds=".dll"
10754 # FIXME: Setting linknames here is a bad hack.
10755 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10756 # The linker will automatically build a .lib file if we build a DLL.
10757 old_archive_from_new_cmds='true'
10758 # FIXME: Should let the user specify the lib program.
10759 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10760 fix_srcfile_path='`cygpath -w "$srcfile"`'
10761 enable_shared_with_static_runtimes=yes
10764 darwin* | rhapsody*)
10768 # Publish an arg to allow the user to select that Darwin host (and target)
10769 # libraries should be given install-names like @rpath/libfoo.dylib. This
10770 # requires that the user of the library then adds an 'rpath' to the DSO that
10771 # needs access.
10772 # NOTE: there are defaults below, for systems that support rpaths. The person
10773 # configuring can override the defaults for any system version that supports
10774 # them - they are, however, forced off for system versions without support.
10775 # Check whether --enable-darwin-at-rpath was given.
10776 if test "${enable_darwin_at_rpath+set}" = set; then :
10777 enableval=$enable_darwin_at_rpath; if test "x$enable_darwin_at_rpath" = "xyes"; then
10778 # This is not supported before macOS 10.5 / Darwin9.
10779 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host_os in
10780 UNSET,darwin[4-8]*|UNSET,rhapsody*|10.[0-4][,.]*)
10781 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Darwin @rpath library names are incompatible with OSX versions earlier than 10.5 (rpaths disabled)" >&5
10782 $as_echo "$as_me: WARNING: Darwin @rpath library names are incompatible with OSX versions earlier than 10.5 (rpaths disabled)" >&2;}
10783 enable_darwin_at_rpath=no
10785 esac
10787 else
10788 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host_os in
10789 # As above, before 10.5 / Darwin9 this does not work.
10790 UNSET,darwin[4-8]*|UNSET,rhapsody*|10.[0-4][,.]*)
10791 enable_darwin_at_rpath=no
10794 # We cannot build and test reliably on macOS 10.11+ (Darwin15+) without use
10795 # of rpaths, since runpaths set via DYLD_LIBRARY_PATH are elided by key
10796 # system executables (e.g. /bin/sh). Force rpaths on for these systems.
10797 UNSET,darwin1[5-9]*|UNSET,darwin2*|10.1[1-9][,.]*|1[1-9].*[,.]* )
10798 { $as_echo "$as_me:${as_lineno-$LINENO}: @rpath library names are needed on macOS versions later than 10.11 (rpaths have been enabled)" >&5
10799 $as_echo "$as_me: @rpath library names are needed on macOS versions later than 10.11 (rpaths have been enabled)" >&6;}
10800 enable_darwin_at_rpath=yes
10802 # NOTE: we are not (yet) doing anything for 10.5 .. 10.10, since they can
10803 # work with either DYLD_LIBRARY_PATH or embedded rpaths.
10805 esac
10810 archive_cmds_need_lc=no
10811 hardcode_direct=no
10812 hardcode_automatic=yes
10813 hardcode_shlibpath_var=unsupported
10814 if test "$lt_cv_ld_force_load" = "yes"; then
10815 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\"`'
10816 else
10817 whole_archive_flag_spec=''
10819 link_all_deplibs=yes
10820 allow_undefined_flag="$_lt_dar_allow_undefined"
10821 case $cc_basename in
10822 ifort*) _lt_dar_can_shared=yes ;;
10823 *) _lt_dar_can_shared=$GCC ;;
10824 esac
10825 if test "$_lt_dar_can_shared" = "yes"; then
10826 output_verbose_link_cmd=func_echo_all
10827 _lt_install_name='\$rpath/\$soname'
10828 if test "x$enable_darwin_at_rpath" = "xyes"; then
10829 _lt_install_name='@rpath/\$soname'
10831 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name ${_lt_install_name} \$verstring ${_lt_dsymutil}"
10832 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10833 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 ${_lt_install_name} \$verstring ${_lt_dar_export_syms}${_lt_dsymutil}"
10834 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}"
10836 else
10837 ld_shlibs=no
10842 dgux*)
10843 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10844 hardcode_libdir_flag_spec='-L$libdir'
10845 hardcode_shlibpath_var=no
10848 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10849 # support. Future versions do this automatically, but an explicit c++rt0.o
10850 # does not break anything, and helps significantly (at the cost of a little
10851 # extra space).
10852 freebsd2.2*)
10853 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10854 hardcode_libdir_flag_spec='-R$libdir'
10855 hardcode_direct=yes
10856 hardcode_shlibpath_var=no
10859 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10860 freebsd2.*)
10861 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10862 hardcode_direct=yes
10863 hardcode_minus_L=yes
10864 hardcode_shlibpath_var=no
10867 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10868 freebsd* | dragonfly*)
10869 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10870 hardcode_libdir_flag_spec='-R$libdir'
10871 hardcode_direct=yes
10872 hardcode_shlibpath_var=no
10875 hpux9*)
10876 if test "$GCC" = yes; then
10877 archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10878 else
10879 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10881 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10882 hardcode_libdir_separator=:
10883 hardcode_direct=yes
10885 # hardcode_minus_L: Not really in the search PATH,
10886 # but as the default location of the library.
10887 hardcode_minus_L=yes
10888 export_dynamic_flag_spec='${wl}-E'
10891 hpux10*)
10892 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10893 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10894 else
10895 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10897 if test "$with_gnu_ld" = no; then
10898 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10899 hardcode_libdir_flag_spec_ld='+b $libdir'
10900 hardcode_libdir_separator=:
10901 hardcode_direct=yes
10902 hardcode_direct_absolute=yes
10903 export_dynamic_flag_spec='${wl}-E'
10904 # hardcode_minus_L: Not really in the search PATH,
10905 # but as the default location of the library.
10906 hardcode_minus_L=yes
10910 hpux11*)
10911 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10912 case $host_cpu in
10913 hppa*64*)
10914 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10916 ia64*)
10917 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10920 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10922 esac
10923 else
10924 case $host_cpu in
10925 hppa*64*)
10926 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10928 ia64*)
10929 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10933 # Older versions of the 11.00 compiler do not understand -b yet
10934 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10936 $as_echo_n "checking if $CC understands -b... " >&6; }
10937 if ${lt_cv_prog_compiler__b+:} false; then :
10938 $as_echo_n "(cached) " >&6
10939 else
10940 lt_cv_prog_compiler__b=no
10941 save_LDFLAGS="$LDFLAGS"
10942 LDFLAGS="$LDFLAGS -b"
10943 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10944 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10945 # The linker can only warn and ignore the option if not recognized
10946 # So say no if there are warnings
10947 if test -s conftest.err; then
10948 # Append any errors to the config.log.
10949 cat conftest.err 1>&5
10950 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10951 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10952 if diff conftest.exp conftest.er2 >/dev/null; then
10953 lt_cv_prog_compiler__b=yes
10955 else
10956 lt_cv_prog_compiler__b=yes
10959 $RM -r conftest*
10960 LDFLAGS="$save_LDFLAGS"
10963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10964 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10966 if test x"$lt_cv_prog_compiler__b" = xyes; then
10967 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10968 else
10969 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10973 esac
10975 if test "$with_gnu_ld" = no; then
10976 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10977 hardcode_libdir_separator=:
10979 case $host_cpu in
10980 hppa*64*|ia64*)
10981 hardcode_direct=no
10982 hardcode_shlibpath_var=no
10985 hardcode_direct=yes
10986 hardcode_direct_absolute=yes
10987 export_dynamic_flag_spec='${wl}-E'
10989 # hardcode_minus_L: Not really in the search PATH,
10990 # but as the default location of the library.
10991 hardcode_minus_L=yes
10993 esac
10997 irix5* | irix6* | nonstopux*)
10998 if test "$GCC" = yes; then
10999 archive_cmds='$CC -shared $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'
11000 # Try to use the -exported_symbol ld option, if it does not
11001 # work, assume that -exports_file does not work either and
11002 # implicitly export all symbols.
11003 save_LDFLAGS="$LDFLAGS"
11004 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
11005 if test x$gcc_no_link = xyes; then
11006 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
11008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11009 /* end confdefs.h. */
11010 int foo(void) {}
11011 _ACEOF
11012 if ac_fn_c_try_link "$LINENO"; then :
11013 archive_expsym_cmds='$CC -shared $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'
11016 rm -f core conftest.err conftest.$ac_objext \
11017 conftest$ac_exeext conftest.$ac_ext
11018 LDFLAGS="$save_LDFLAGS"
11019 else
11020 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'
11021 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'
11023 archive_cmds_need_lc='no'
11024 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11025 hardcode_libdir_separator=:
11026 inherit_rpath=yes
11027 link_all_deplibs=yes
11030 netbsd*)
11031 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11032 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11033 else
11034 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11036 hardcode_libdir_flag_spec='-R$libdir'
11037 hardcode_direct=yes
11038 hardcode_shlibpath_var=no
11041 newsos6)
11042 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11043 hardcode_direct=yes
11044 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11045 hardcode_libdir_separator=:
11046 hardcode_shlibpath_var=no
11049 *nto* | *qnx*)
11052 openbsd*)
11053 if test -f /usr/libexec/ld.so; then
11054 hardcode_direct=yes
11055 hardcode_shlibpath_var=no
11056 hardcode_direct_absolute=yes
11057 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11058 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11059 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
11060 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11061 export_dynamic_flag_spec='${wl}-E'
11062 else
11063 case $host_os in
11064 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
11065 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11066 hardcode_libdir_flag_spec='-R$libdir'
11069 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11070 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11072 esac
11074 else
11075 ld_shlibs=no
11079 os2*)
11080 hardcode_libdir_flag_spec='-L$libdir'
11081 hardcode_minus_L=yes
11082 allow_undefined_flag=unsupported
11083 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
11084 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
11087 osf3*)
11088 if test "$GCC" = yes; then
11089 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11090 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'
11091 else
11092 allow_undefined_flag=' -expect_unresolved \*'
11093 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'
11095 archive_cmds_need_lc='no'
11096 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11097 hardcode_libdir_separator=:
11100 osf4* | osf5*) # as osf3* with the addition of -msym flag
11101 if test "$GCC" = yes; then
11102 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11103 archive_cmds='$CC -shared${allow_undefined_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'
11104 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11105 else
11106 allow_undefined_flag=' -expect_unresolved \*'
11107 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'
11108 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~
11109 $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'
11111 # Both c and cxx compiler support -rpath directly
11112 hardcode_libdir_flag_spec='-rpath $libdir'
11114 archive_cmds_need_lc='no'
11115 hardcode_libdir_separator=:
11118 solaris*)
11119 no_undefined_flag=' -z defs'
11120 if test "$GCC" = yes; then
11121 wlarc='${wl}'
11122 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11123 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11124 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11125 else
11126 case `$CC -V 2>&1` in
11127 *"Compilers 5.0"*)
11128 wlarc=''
11129 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11130 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11131 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11134 wlarc='${wl}'
11135 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11136 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11137 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11139 esac
11141 hardcode_libdir_flag_spec='-R$libdir'
11142 hardcode_shlibpath_var=no
11143 case $host_os in
11144 solaris2.[0-5] | solaris2.[0-5].*) ;;
11146 # The compiler driver will combine and reorder linker options,
11147 # but understands `-z linker_flag'. GCC discards it without `$wl',
11148 # but is careful enough not to reorder.
11149 # Supported since Solaris 2.6 (maybe 2.5.1?)
11150 if test "$GCC" = yes; then
11151 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11152 else
11153 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11156 esac
11157 link_all_deplibs=yes
11160 sunos4*)
11161 if test "x$host_vendor" = xsequent; then
11162 # Use $CC to link under sequent, because it throws in some extra .o
11163 # files that make .init and .fini sections work.
11164 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11165 else
11166 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11168 hardcode_libdir_flag_spec='-L$libdir'
11169 hardcode_direct=yes
11170 hardcode_minus_L=yes
11171 hardcode_shlibpath_var=no
11174 sysv4)
11175 case $host_vendor in
11176 sni)
11177 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11178 hardcode_direct=yes # is this really true???
11180 siemens)
11181 ## LD is ld it makes a PLAMLIB
11182 ## CC just makes a GrossModule.
11183 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11184 reload_cmds='$CC -r -o $output$reload_objs'
11185 hardcode_direct=no
11187 motorola)
11188 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11189 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11191 esac
11192 runpath_var='LD_RUN_PATH'
11193 hardcode_shlibpath_var=no
11196 sysv4.3*)
11197 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11198 hardcode_shlibpath_var=no
11199 export_dynamic_flag_spec='-Bexport'
11202 sysv4*MP*)
11203 if test -d /usr/nec; then
11204 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11205 hardcode_shlibpath_var=no
11206 runpath_var=LD_RUN_PATH
11207 hardcode_runpath_var=yes
11208 ld_shlibs=yes
11212 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11213 no_undefined_flag='${wl}-z,text'
11214 archive_cmds_need_lc=no
11215 hardcode_shlibpath_var=no
11216 runpath_var='LD_RUN_PATH'
11218 if test "$GCC" = yes; then
11219 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11220 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11221 else
11222 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11223 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11227 sysv5* | sco3.2v5* | sco5v6*)
11228 # Note: We can NOT use -z defs as we might desire, because we do not
11229 # link with -lc, and that would cause any symbols used from libc to
11230 # always be unresolved, which means just about no library would
11231 # ever link correctly. If we're not using GNU ld we use -z text
11232 # though, which does catch some bad symbols but isn't as heavy-handed
11233 # as -z defs.
11234 no_undefined_flag='${wl}-z,text'
11235 allow_undefined_flag='${wl}-z,nodefs'
11236 archive_cmds_need_lc=no
11237 hardcode_shlibpath_var=no
11238 hardcode_libdir_flag_spec='${wl}-R,$libdir'
11239 hardcode_libdir_separator=':'
11240 link_all_deplibs=yes
11241 export_dynamic_flag_spec='${wl}-Bexport'
11242 runpath_var='LD_RUN_PATH'
11244 if test "$GCC" = yes; then
11245 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11246 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11247 else
11248 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11249 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11253 uts4*)
11254 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11255 hardcode_libdir_flag_spec='-L$libdir'
11256 hardcode_shlibpath_var=no
11260 ld_shlibs=no
11262 esac
11264 if test x$host_vendor = xsni; then
11265 case $host in
11266 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11267 export_dynamic_flag_spec='${wl}-Blargedynsym'
11269 esac
11273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11274 $as_echo "$ld_shlibs" >&6; }
11275 test "$ld_shlibs" = no && can_build_shared=no
11277 with_gnu_ld=$with_gnu_ld
11294 # Do we need to explicitly link libc?
11296 case "x$archive_cmds_need_lc" in
11297 x|xyes)
11298 # Assume -lc should be added
11299 archive_cmds_need_lc=yes
11301 if test "$enable_shared" = yes && test "$GCC" = yes; then
11302 case $archive_cmds in
11303 *'~'*)
11304 # FIXME: we may have to deal with multi-command sequences.
11306 '$CC '*)
11307 # Test whether the compiler implicitly links with -lc since on some
11308 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11309 # to ld, don't add -lc before -lgcc.
11310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11311 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11312 if ${lt_cv_archive_cmds_need_lc+:} false; then :
11313 $as_echo_n "(cached) " >&6
11314 else
11315 $RM conftest*
11316 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11318 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11319 (eval $ac_compile) 2>&5
11320 ac_status=$?
11321 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11322 test $ac_status = 0; } 2>conftest.err; then
11323 soname=conftest
11324 lib=conftest
11325 libobjs=conftest.$ac_objext
11326 deplibs=
11327 wl=$lt_prog_compiler_wl
11328 pic_flag=$lt_prog_compiler_pic
11329 compiler_flags=-v
11330 linker_flags=-v
11331 verstring=
11332 output_objdir=.
11333 libname=conftest
11334 lt_save_allow_undefined_flag=$allow_undefined_flag
11335 allow_undefined_flag=
11336 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11337 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11338 ac_status=$?
11339 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11340 test $ac_status = 0; }
11341 then
11342 lt_cv_archive_cmds_need_lc=no
11343 else
11344 lt_cv_archive_cmds_need_lc=yes
11346 allow_undefined_flag=$lt_save_allow_undefined_flag
11347 else
11348 cat conftest.err 1>&5
11350 $RM conftest*
11353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11354 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11355 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11357 esac
11360 esac
11518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11519 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11521 if test "$GCC" = yes; then
11522 case $host_os in
11523 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11524 *) lt_awk_arg="/^libraries:/" ;;
11525 esac
11526 case $host_os in
11527 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11528 *) lt_sed_strip_eq="s,=/,/,g" ;;
11529 esac
11530 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11531 case $lt_search_path_spec in
11532 *\;*)
11533 # if the path contains ";" then we assume it to be the separator
11534 # otherwise default to the standard path separator (i.e. ":") - it is
11535 # assumed that no part of a normal pathname contains ";" but that should
11536 # okay in the real world where ";" in dirpaths is itself problematic.
11537 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11540 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11542 esac
11543 # Ok, now we have the path, separated by spaces, we can step through it
11544 # and add multilib dir if necessary.
11545 lt_tmp_lt_search_path_spec=
11546 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11547 for lt_sys_path in $lt_search_path_spec; do
11548 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11549 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11550 else
11551 test -d "$lt_sys_path" && \
11552 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11554 done
11555 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11556 BEGIN {RS=" "; FS="/|\n";} {
11557 lt_foo="";
11558 lt_count=0;
11559 for (lt_i = NF; lt_i > 0; lt_i--) {
11560 if ($lt_i != "" && $lt_i != ".") {
11561 if ($lt_i == "..") {
11562 lt_count++;
11563 } else {
11564 if (lt_count == 0) {
11565 lt_foo="/" $lt_i lt_foo;
11566 } else {
11567 lt_count--;
11572 if (lt_foo != "") { lt_freq[lt_foo]++; }
11573 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11575 # AWK program above erroneously prepends '/' to C:/dos/paths
11576 # for these hosts.
11577 case $host_os in
11578 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11579 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11580 esac
11581 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11582 else
11583 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11585 library_names_spec=
11586 libname_spec='lib$name'
11587 soname_spec=
11588 shrext_cmds=".so"
11589 postinstall_cmds=
11590 postuninstall_cmds=
11591 finish_cmds=
11592 finish_eval=
11593 shlibpath_var=
11594 shlibpath_overrides_runpath=unknown
11595 version_type=none
11596 dynamic_linker="$host_os ld.so"
11597 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11598 need_lib_prefix=unknown
11599 hardcode_into_libs=no
11601 # when you set need_version to no, make sure it does not cause -set_version
11602 # flags to be left without arguments
11603 need_version=unknown
11605 case $host_os in
11606 aix3*)
11607 version_type=linux
11608 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11609 shlibpath_var=LIBPATH
11611 # AIX 3 has no versioning support, so we append a major version to the name.
11612 soname_spec='${libname}${release}${shared_ext}$major'
11615 aix[4-9]*)
11616 version_type=linux
11617 need_lib_prefix=no
11618 need_version=no
11619 hardcode_into_libs=yes
11620 if test "$host_cpu" = ia64; then
11621 # AIX 5 supports IA64
11622 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11623 shlibpath_var=LD_LIBRARY_PATH
11624 else
11625 # With GCC up to 2.95.x, collect2 would create an import file
11626 # for dependence libraries. The import file would start with
11627 # the line `#! .'. This would cause the generated library to
11628 # depend on `.', always an invalid library. This was fixed in
11629 # development snapshots of GCC prior to 3.0.
11630 case $host_os in
11631 aix4 | aix4.[01] | aix4.[01].*)
11632 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11633 echo ' yes '
11634 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11636 else
11637 can_build_shared=no
11640 esac
11641 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11642 # soname into executable. Probably we can add versioning support to
11643 # collect2, so additional links can be useful in future.
11644 if test "$aix_use_runtimelinking" = yes; then
11645 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11646 # instead of lib<name>.a to let people know that these are not
11647 # typical AIX shared libraries.
11648 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11649 else
11650 # We preserve .a as extension for shared libraries through AIX4.2
11651 # and later when we are not doing run time linking.
11652 library_names_spec='${libname}${release}.a $libname.a'
11653 soname_spec='${libname}${release}${shared_ext}$major'
11655 shlibpath_var=LIBPATH
11659 amigaos*)
11660 case $host_cpu in
11661 powerpc)
11662 # Since July 2007 AmigaOS4 officially supports .so libraries.
11663 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11664 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11666 m68k)
11667 library_names_spec='$libname.ixlibrary $libname.a'
11668 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11669 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $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'
11671 esac
11674 beos*)
11675 library_names_spec='${libname}${shared_ext}'
11676 dynamic_linker="$host_os ld.so"
11677 shlibpath_var=LIBRARY_PATH
11680 bsdi[45]*)
11681 version_type=linux
11682 need_version=no
11683 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11684 soname_spec='${libname}${release}${shared_ext}$major'
11685 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11686 shlibpath_var=LD_LIBRARY_PATH
11687 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11688 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11689 # the default ld.so.conf also contains /usr/contrib/lib and
11690 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11691 # libtool to hard-code these into programs
11694 cygwin* | mingw* | pw32* | cegcc*)
11695 version_type=windows
11696 shrext_cmds=".dll"
11697 need_version=no
11698 need_lib_prefix=no
11700 case $GCC,$host_os in
11701 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11702 library_names_spec='$libname.dll.a'
11703 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11704 postinstall_cmds='base_file=`basename \${file}`~
11705 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11706 dldir=$destdir/`dirname \$dlpath`~
11707 test -d \$dldir || mkdir -p \$dldir~
11708 $install_prog $dir/$dlname \$dldir/$dlname~
11709 chmod a+x \$dldir/$dlname~
11710 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11711 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11713 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11714 dlpath=$dir/\$dldll~
11715 $RM \$dlpath'
11716 shlibpath_overrides_runpath=yes
11718 case $host_os in
11719 cygwin*)
11720 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11721 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11723 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11725 mingw* | cegcc*)
11726 # MinGW DLLs use traditional 'lib' prefix
11727 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11729 pw32*)
11730 # pw32 DLLs use 'pw' prefix rather than 'lib'
11731 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11733 esac
11737 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11739 esac
11740 dynamic_linker='Win32 ld.exe'
11741 # FIXME: first we should search . and the directory the executable is in
11742 shlibpath_var=PATH
11745 darwin* | rhapsody*)
11746 dynamic_linker="$host_os dyld"
11747 version_type=darwin
11748 need_lib_prefix=no
11749 need_version=no
11750 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11751 soname_spec='${libname}${release}${major}$shared_ext'
11752 shlibpath_overrides_runpath=yes
11753 shlibpath_var=DYLD_LIBRARY_PATH
11754 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11756 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11757 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11760 dgux*)
11761 version_type=linux
11762 need_lib_prefix=no
11763 need_version=no
11764 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11765 soname_spec='${libname}${release}${shared_ext}$major'
11766 shlibpath_var=LD_LIBRARY_PATH
11769 freebsd* | dragonfly*)
11770 # DragonFly does not have aout. When/if they implement a new
11771 # versioning mechanism, adjust this.
11772 if test -x /usr/bin/objformat; then
11773 objformat=`/usr/bin/objformat`
11774 else
11775 case $host_os in
11776 freebsd[23].*) objformat=aout ;;
11777 *) objformat=elf ;;
11778 esac
11780 version_type=freebsd-$objformat
11781 case $version_type in
11782 freebsd-elf*)
11783 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11784 need_version=no
11785 need_lib_prefix=no
11787 freebsd-*)
11788 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11789 need_version=yes
11791 esac
11792 shlibpath_var=LD_LIBRARY_PATH
11793 case $host_os in
11794 freebsd2.*)
11795 shlibpath_overrides_runpath=yes
11797 freebsd3.[01]* | freebsdelf3.[01]*)
11798 shlibpath_overrides_runpath=yes
11799 hardcode_into_libs=yes
11801 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11802 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11803 shlibpath_overrides_runpath=no
11804 hardcode_into_libs=yes
11806 *) # from 4.6 on, and DragonFly
11807 shlibpath_overrides_runpath=yes
11808 hardcode_into_libs=yes
11810 esac
11813 haiku*)
11814 version_type=linux
11815 need_lib_prefix=no
11816 need_version=no
11817 dynamic_linker="$host_os runtime_loader"
11818 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11819 soname_spec='${libname}${release}${shared_ext}$major'
11820 shlibpath_var=LIBRARY_PATH
11821 shlibpath_overrides_runpath=yes
11822 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11823 hardcode_into_libs=yes
11826 hpux9* | hpux10* | hpux11*)
11827 # Give a soname corresponding to the major version so that dld.sl refuses to
11828 # link against other versions.
11829 version_type=sunos
11830 need_lib_prefix=no
11831 need_version=no
11832 case $host_cpu in
11833 ia64*)
11834 shrext_cmds='.so'
11835 hardcode_into_libs=yes
11836 dynamic_linker="$host_os dld.so"
11837 shlibpath_var=LD_LIBRARY_PATH
11838 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11839 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11840 soname_spec='${libname}${release}${shared_ext}$major'
11841 if test "X$HPUX_IA64_MODE" = X32; then
11842 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11843 else
11844 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11846 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11848 hppa*64*)
11849 shrext_cmds='.sl'
11850 hardcode_into_libs=yes
11851 dynamic_linker="$host_os dld.sl"
11852 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11853 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11854 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11855 soname_spec='${libname}${release}${shared_ext}$major'
11856 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11857 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11860 shrext_cmds='.sl'
11861 dynamic_linker="$host_os dld.sl"
11862 shlibpath_var=SHLIB_PATH
11863 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11864 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11865 soname_spec='${libname}${release}${shared_ext}$major'
11867 esac
11868 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11869 postinstall_cmds='chmod 555 $lib'
11870 # or fails outright, so override atomically:
11871 install_override_mode=555
11874 interix[3-9]*)
11875 version_type=linux
11876 need_lib_prefix=no
11877 need_version=no
11878 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11879 soname_spec='${libname}${release}${shared_ext}$major'
11880 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11881 shlibpath_var=LD_LIBRARY_PATH
11882 shlibpath_overrides_runpath=no
11883 hardcode_into_libs=yes
11886 irix5* | irix6* | nonstopux*)
11887 case $host_os in
11888 nonstopux*) version_type=nonstopux ;;
11890 if test "$lt_cv_prog_gnu_ld" = yes; then
11891 version_type=linux
11892 else
11893 version_type=irix
11894 fi ;;
11895 esac
11896 need_lib_prefix=no
11897 need_version=no
11898 soname_spec='${libname}${release}${shared_ext}$major'
11899 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11900 case $host_os in
11901 irix5* | nonstopux*)
11902 libsuff= shlibsuff=
11905 case $LD in # libtool.m4 will add one of these switches to LD
11906 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11907 libsuff= shlibsuff= libmagic=32-bit;;
11908 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11909 libsuff=32 shlibsuff=N32 libmagic=N32;;
11910 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11911 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11912 *) libsuff= shlibsuff= libmagic=never-match;;
11913 esac
11915 esac
11916 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11917 shlibpath_overrides_runpath=no
11918 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11919 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11920 hardcode_into_libs=yes
11923 # No shared lib support for Linux oldld, aout, or coff.
11924 linux*oldld* | linux*aout* | linux*coff*)
11925 dynamic_linker=no
11928 # This must be Linux ELF.
11930 # uclinux* changes (here and below) have been submitted to the libtool
11931 # project, but have not yet been accepted: they are GCC-local changes
11932 # for the time being. (See
11933 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
11934 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi)
11935 version_type=linux
11936 need_lib_prefix=no
11937 need_version=no
11938 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11939 soname_spec='${libname}${release}${shared_ext}$major'
11940 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11941 shlibpath_var=LD_LIBRARY_PATH
11942 shlibpath_overrides_runpath=no
11944 # Some binutils ld are patched to set DT_RUNPATH
11945 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11946 $as_echo_n "(cached) " >&6
11947 else
11948 lt_cv_shlibpath_overrides_runpath=no
11949 save_LDFLAGS=$LDFLAGS
11950 save_libdir=$libdir
11951 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11952 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11953 if test x$gcc_no_link = xyes; then
11954 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
11956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11957 /* end confdefs.h. */
11960 main ()
11964 return 0;
11966 _ACEOF
11967 if ac_fn_c_try_link "$LINENO"; then :
11968 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11969 lt_cv_shlibpath_overrides_runpath=yes
11972 rm -f core conftest.err conftest.$ac_objext \
11973 conftest$ac_exeext conftest.$ac_ext
11974 LDFLAGS=$save_LDFLAGS
11975 libdir=$save_libdir
11979 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11981 # This implies no fast_install, which is unacceptable.
11982 # Some rework will be needed to allow for fast_install
11983 # before this can be enabled.
11984 hardcode_into_libs=yes
11986 # Append ld.so.conf contents to the search path
11987 if test -f /etc/ld.so.conf; then
11988 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' ' '`
11989 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11992 # We used to test for /lib/ld.so.1 and disable shared libraries on
11993 # powerpc, because MkLinux only supported shared libraries with the
11994 # GNU dynamic linker. Since this was broken with cross compilers,
11995 # most powerpc-linux boxes support dynamic linking these days and
11996 # people can always --disable-shared, the test was removed, and we
11997 # assume the GNU/Linux dynamic linker is in use.
11998 dynamic_linker='GNU/Linux ld.so'
12001 netbsd*)
12002 version_type=sunos
12003 need_lib_prefix=no
12004 need_version=no
12005 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12006 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12007 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12008 dynamic_linker='NetBSD (a.out) ld.so'
12009 else
12010 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12011 soname_spec='${libname}${release}${shared_ext}$major'
12012 dynamic_linker='NetBSD ld.elf_so'
12014 shlibpath_var=LD_LIBRARY_PATH
12015 shlibpath_overrides_runpath=yes
12016 hardcode_into_libs=yes
12019 newsos6)
12020 version_type=linux
12021 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12022 shlibpath_var=LD_LIBRARY_PATH
12023 shlibpath_overrides_runpath=yes
12026 *nto* | *qnx*)
12027 version_type=qnx
12028 need_lib_prefix=no
12029 need_version=no
12030 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12031 soname_spec='${libname}${release}${shared_ext}$major'
12032 shlibpath_var=LD_LIBRARY_PATH
12033 shlibpath_overrides_runpath=no
12034 hardcode_into_libs=yes
12035 dynamic_linker='ldqnx.so'
12038 openbsd*)
12039 version_type=sunos
12040 sys_lib_dlsearch_path_spec="/usr/lib"
12041 need_lib_prefix=no
12042 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12043 case $host_os in
12044 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12045 *) need_version=no ;;
12046 esac
12047 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12048 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12049 shlibpath_var=LD_LIBRARY_PATH
12050 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12051 case $host_os in
12052 openbsd2.[89] | openbsd2.[89].*)
12053 shlibpath_overrides_runpath=no
12056 shlibpath_overrides_runpath=yes
12058 esac
12059 else
12060 shlibpath_overrides_runpath=yes
12064 os2*)
12065 libname_spec='$name'
12066 shrext_cmds=".dll"
12067 need_lib_prefix=no
12068 library_names_spec='$libname${shared_ext} $libname.a'
12069 dynamic_linker='OS/2 ld.exe'
12070 shlibpath_var=LIBPATH
12073 osf3* | osf4* | osf5*)
12074 version_type=osf
12075 need_lib_prefix=no
12076 need_version=no
12077 soname_spec='${libname}${release}${shared_ext}$major'
12078 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12079 shlibpath_var=LD_LIBRARY_PATH
12080 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12081 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12084 rdos*)
12085 dynamic_linker=no
12088 solaris*)
12089 version_type=linux
12090 need_lib_prefix=no
12091 need_version=no
12092 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12093 soname_spec='${libname}${release}${shared_ext}$major'
12094 shlibpath_var=LD_LIBRARY_PATH
12095 shlibpath_overrides_runpath=yes
12096 hardcode_into_libs=yes
12097 # ldd complains unless libraries are executable
12098 postinstall_cmds='chmod +x $lib'
12101 sunos4*)
12102 version_type=sunos
12103 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12104 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12105 shlibpath_var=LD_LIBRARY_PATH
12106 shlibpath_overrides_runpath=yes
12107 if test "$with_gnu_ld" = yes; then
12108 need_lib_prefix=no
12110 need_version=yes
12113 sysv4 | sysv4.3*)
12114 version_type=linux
12115 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12116 soname_spec='${libname}${release}${shared_ext}$major'
12117 shlibpath_var=LD_LIBRARY_PATH
12118 case $host_vendor in
12119 sni)
12120 shlibpath_overrides_runpath=no
12121 need_lib_prefix=no
12122 runpath_var=LD_RUN_PATH
12124 siemens)
12125 need_lib_prefix=no
12127 motorola)
12128 need_lib_prefix=no
12129 need_version=no
12130 shlibpath_overrides_runpath=no
12131 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12133 esac
12136 sysv4*MP*)
12137 if test -d /usr/nec ;then
12138 version_type=linux
12139 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12140 soname_spec='$libname${shared_ext}.$major'
12141 shlibpath_var=LD_LIBRARY_PATH
12145 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12146 version_type=freebsd-elf
12147 need_lib_prefix=no
12148 need_version=no
12149 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12150 soname_spec='${libname}${release}${shared_ext}$major'
12151 shlibpath_var=LD_LIBRARY_PATH
12152 shlibpath_overrides_runpath=yes
12153 hardcode_into_libs=yes
12154 if test "$with_gnu_ld" = yes; then
12155 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12156 else
12157 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12158 case $host_os in
12159 sco3.2v5*)
12160 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12162 esac
12164 sys_lib_dlsearch_path_spec='/usr/lib'
12167 tpf*)
12168 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12169 version_type=linux
12170 need_lib_prefix=no
12171 need_version=no
12172 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12173 shlibpath_var=LD_LIBRARY_PATH
12174 shlibpath_overrides_runpath=no
12175 hardcode_into_libs=yes
12178 uts4*)
12179 version_type=linux
12180 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12181 soname_spec='${libname}${release}${shared_ext}$major'
12182 shlibpath_var=LD_LIBRARY_PATH
12185 # Shared libraries for VwWorks, >= 7 only at this stage
12186 # and (fpic) still incompatible with "large" code models
12187 # in a few configurations. Only for RTP mode in any case,
12188 # and upon explicit request at configure time.
12189 vxworks7*)
12190 dynamic_linker=no
12191 case ${with_multisubdir}-${enable_shared} in
12192 *large*)
12194 *mrtp*-yes)
12195 version_type=linux
12196 need_lib_prefix=no
12197 need_version=no
12198 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12199 soname_spec='${libname}${release}${shared_ext}$major'
12200 dynamic_linker="$host_os module_loader"
12202 esac
12205 dynamic_linker=no
12207 esac
12208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12209 $as_echo "$dynamic_linker" >&6; }
12210 test "$dynamic_linker" = no && can_build_shared=no
12212 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12213 if test "$GCC" = yes; then
12214 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12217 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12218 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12220 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12221 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12316 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12317 hardcode_action=
12318 if test -n "$hardcode_libdir_flag_spec" ||
12319 test -n "$runpath_var" ||
12320 test "X$hardcode_automatic" = "Xyes" ; then
12322 # We can hardcode non-existent directories.
12323 if test "$hardcode_direct" != no &&
12324 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12325 # have to relink, otherwise we might link with an installed library
12326 # when we should be linking with a yet-to-be-installed one
12327 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12328 test "$hardcode_minus_L" != no; then
12329 # Linking always hardcodes the temporary library directory.
12330 hardcode_action=relink
12331 else
12332 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12333 hardcode_action=immediate
12335 else
12336 # We cannot hardcode anything, or else we can only hardcode existing
12337 # directories.
12338 hardcode_action=unsupported
12340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12341 $as_echo "$hardcode_action" >&6; }
12343 if test "$hardcode_action" = relink ||
12344 test "$inherit_rpath" = yes; then
12345 # Fast installation is not supported
12346 enable_fast_install=no
12347 elif test "$shlibpath_overrides_runpath" = yes ||
12348 test "$enable_shared" = no; then
12349 # Fast installation is not necessary
12350 enable_fast_install=needless
12358 if test "x$enable_dlopen" != xyes; then
12359 enable_dlopen=unknown
12360 enable_dlopen_self=unknown
12361 enable_dlopen_self_static=unknown
12362 else
12363 lt_cv_dlopen=no
12364 lt_cv_dlopen_libs=
12366 case $host_os in
12367 beos*)
12368 lt_cv_dlopen="load_add_on"
12369 lt_cv_dlopen_libs=
12370 lt_cv_dlopen_self=yes
12373 mingw* | pw32* | cegcc*)
12374 lt_cv_dlopen="LoadLibrary"
12375 lt_cv_dlopen_libs=
12378 cygwin*)
12379 lt_cv_dlopen="dlopen"
12380 lt_cv_dlopen_libs=
12383 darwin*)
12384 # if libdl is installed we need to link against it
12385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12386 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12387 if ${ac_cv_lib_dl_dlopen+:} false; then :
12388 $as_echo_n "(cached) " >&6
12389 else
12390 ac_check_lib_save_LIBS=$LIBS
12391 LIBS="-ldl $LIBS"
12392 if test x$gcc_no_link = xyes; then
12393 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12396 /* end confdefs.h. */
12398 /* Override any GCC internal prototype to avoid an error.
12399 Use char because int might match the return type of a GCC
12400 builtin and then its argument prototype would still apply. */
12401 #ifdef __cplusplus
12402 extern "C"
12403 #endif
12404 char dlopen ();
12406 main ()
12408 return dlopen ();
12410 return 0;
12412 _ACEOF
12413 if ac_fn_c_try_link "$LINENO"; then :
12414 ac_cv_lib_dl_dlopen=yes
12415 else
12416 ac_cv_lib_dl_dlopen=no
12418 rm -f core conftest.err conftest.$ac_objext \
12419 conftest$ac_exeext conftest.$ac_ext
12420 LIBS=$ac_check_lib_save_LIBS
12422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12423 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12424 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12425 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12426 else
12428 lt_cv_dlopen="dyld"
12429 lt_cv_dlopen_libs=
12430 lt_cv_dlopen_self=yes
12437 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12438 if test "x$ac_cv_func_shl_load" = xyes; then :
12439 lt_cv_dlopen="shl_load"
12440 else
12441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12442 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12443 if ${ac_cv_lib_dld_shl_load+:} false; then :
12444 $as_echo_n "(cached) " >&6
12445 else
12446 ac_check_lib_save_LIBS=$LIBS
12447 LIBS="-ldld $LIBS"
12448 if test x$gcc_no_link = xyes; then
12449 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12452 /* end confdefs.h. */
12454 /* Override any GCC internal prototype to avoid an error.
12455 Use char because int might match the return type of a GCC
12456 builtin and then its argument prototype would still apply. */
12457 #ifdef __cplusplus
12458 extern "C"
12459 #endif
12460 char shl_load ();
12462 main ()
12464 return shl_load ();
12466 return 0;
12468 _ACEOF
12469 if ac_fn_c_try_link "$LINENO"; then :
12470 ac_cv_lib_dld_shl_load=yes
12471 else
12472 ac_cv_lib_dld_shl_load=no
12474 rm -f core conftest.err conftest.$ac_objext \
12475 conftest$ac_exeext conftest.$ac_ext
12476 LIBS=$ac_check_lib_save_LIBS
12478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12479 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12480 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12481 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12482 else
12483 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12484 if test "x$ac_cv_func_dlopen" = xyes; then :
12485 lt_cv_dlopen="dlopen"
12486 else
12487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12488 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12489 if ${ac_cv_lib_dl_dlopen+:} false; then :
12490 $as_echo_n "(cached) " >&6
12491 else
12492 ac_check_lib_save_LIBS=$LIBS
12493 LIBS="-ldl $LIBS"
12494 if test x$gcc_no_link = xyes; then
12495 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12498 /* end confdefs.h. */
12500 /* Override any GCC internal prototype to avoid an error.
12501 Use char because int might match the return type of a GCC
12502 builtin and then its argument prototype would still apply. */
12503 #ifdef __cplusplus
12504 extern "C"
12505 #endif
12506 char dlopen ();
12508 main ()
12510 return dlopen ();
12512 return 0;
12514 _ACEOF
12515 if ac_fn_c_try_link "$LINENO"; then :
12516 ac_cv_lib_dl_dlopen=yes
12517 else
12518 ac_cv_lib_dl_dlopen=no
12520 rm -f core conftest.err conftest.$ac_objext \
12521 conftest$ac_exeext conftest.$ac_ext
12522 LIBS=$ac_check_lib_save_LIBS
12524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12525 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12526 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12527 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12528 else
12529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12530 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12531 if ${ac_cv_lib_svld_dlopen+:} false; then :
12532 $as_echo_n "(cached) " >&6
12533 else
12534 ac_check_lib_save_LIBS=$LIBS
12535 LIBS="-lsvld $LIBS"
12536 if test x$gcc_no_link = xyes; then
12537 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12540 /* end confdefs.h. */
12542 /* Override any GCC internal prototype to avoid an error.
12543 Use char because int might match the return type of a GCC
12544 builtin and then its argument prototype would still apply. */
12545 #ifdef __cplusplus
12546 extern "C"
12547 #endif
12548 char dlopen ();
12550 main ()
12552 return dlopen ();
12554 return 0;
12556 _ACEOF
12557 if ac_fn_c_try_link "$LINENO"; then :
12558 ac_cv_lib_svld_dlopen=yes
12559 else
12560 ac_cv_lib_svld_dlopen=no
12562 rm -f core conftest.err conftest.$ac_objext \
12563 conftest$ac_exeext conftest.$ac_ext
12564 LIBS=$ac_check_lib_save_LIBS
12566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12567 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12568 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12569 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12570 else
12571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12572 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12573 if ${ac_cv_lib_dld_dld_link+:} false; then :
12574 $as_echo_n "(cached) " >&6
12575 else
12576 ac_check_lib_save_LIBS=$LIBS
12577 LIBS="-ldld $LIBS"
12578 if test x$gcc_no_link = xyes; then
12579 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12582 /* end confdefs.h. */
12584 /* Override any GCC internal prototype to avoid an error.
12585 Use char because int might match the return type of a GCC
12586 builtin and then its argument prototype would still apply. */
12587 #ifdef __cplusplus
12588 extern "C"
12589 #endif
12590 char dld_link ();
12592 main ()
12594 return dld_link ();
12596 return 0;
12598 _ACEOF
12599 if ac_fn_c_try_link "$LINENO"; then :
12600 ac_cv_lib_dld_dld_link=yes
12601 else
12602 ac_cv_lib_dld_dld_link=no
12604 rm -f core conftest.err conftest.$ac_objext \
12605 conftest$ac_exeext conftest.$ac_ext
12606 LIBS=$ac_check_lib_save_LIBS
12608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12609 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12610 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12611 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12630 esac
12632 if test "x$lt_cv_dlopen" != xno; then
12633 enable_dlopen=yes
12634 else
12635 enable_dlopen=no
12638 case $lt_cv_dlopen in
12639 dlopen)
12640 save_CPPFLAGS="$CPPFLAGS"
12641 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12643 save_LDFLAGS="$LDFLAGS"
12644 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12646 save_LIBS="$LIBS"
12647 LIBS="$lt_cv_dlopen_libs $LIBS"
12649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12650 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12651 if ${lt_cv_dlopen_self+:} false; then :
12652 $as_echo_n "(cached) " >&6
12653 else
12654 if test "$cross_compiling" = yes; then :
12655 lt_cv_dlopen_self=cross
12656 else
12657 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12658 lt_status=$lt_dlunknown
12659 cat > conftest.$ac_ext <<_LT_EOF
12660 #line 12660 "configure"
12661 #include "confdefs.h"
12663 #if HAVE_DLFCN_H
12664 #include <dlfcn.h>
12665 #endif
12667 #include <stdio.h>
12669 #ifdef RTLD_GLOBAL
12670 # define LT_DLGLOBAL RTLD_GLOBAL
12671 #else
12672 # ifdef DL_GLOBAL
12673 # define LT_DLGLOBAL DL_GLOBAL
12674 # else
12675 # define LT_DLGLOBAL 0
12676 # endif
12677 #endif
12679 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12680 find out it does not work in some platform. */
12681 #ifndef LT_DLLAZY_OR_NOW
12682 # ifdef RTLD_LAZY
12683 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12684 # else
12685 # ifdef DL_LAZY
12686 # define LT_DLLAZY_OR_NOW DL_LAZY
12687 # else
12688 # ifdef RTLD_NOW
12689 # define LT_DLLAZY_OR_NOW RTLD_NOW
12690 # else
12691 # ifdef DL_NOW
12692 # define LT_DLLAZY_OR_NOW DL_NOW
12693 # else
12694 # define LT_DLLAZY_OR_NOW 0
12695 # endif
12696 # endif
12697 # endif
12698 # endif
12699 #endif
12701 /* When -fvisbility=hidden is used, assume the code has been annotated
12702 correspondingly for the symbols needed. */
12703 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12704 void fnord () __attribute__((visibility("default")));
12705 #endif
12707 void fnord () { int i=42; }
12708 int main ()
12710 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12711 int status = $lt_dlunknown;
12713 if (self)
12715 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12716 else
12718 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12719 else puts (dlerror ());
12721 /* dlclose (self); */
12723 else
12724 puts (dlerror ());
12726 return status;
12728 _LT_EOF
12729 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12730 (eval $ac_link) 2>&5
12731 ac_status=$?
12732 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12733 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12734 (./conftest; exit; ) >&5 2>/dev/null
12735 lt_status=$?
12736 case x$lt_status in
12737 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12738 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12739 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12740 esac
12741 else :
12742 # compilation failed
12743 lt_cv_dlopen_self=no
12746 rm -fr conftest*
12750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12751 $as_echo "$lt_cv_dlopen_self" >&6; }
12753 if test "x$lt_cv_dlopen_self" = xyes; then
12754 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12756 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12757 if ${lt_cv_dlopen_self_static+:} false; then :
12758 $as_echo_n "(cached) " >&6
12759 else
12760 if test "$cross_compiling" = yes; then :
12761 lt_cv_dlopen_self_static=cross
12762 else
12763 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12764 lt_status=$lt_dlunknown
12765 cat > conftest.$ac_ext <<_LT_EOF
12766 #line 12766 "configure"
12767 #include "confdefs.h"
12769 #if HAVE_DLFCN_H
12770 #include <dlfcn.h>
12771 #endif
12773 #include <stdio.h>
12775 #ifdef RTLD_GLOBAL
12776 # define LT_DLGLOBAL RTLD_GLOBAL
12777 #else
12778 # ifdef DL_GLOBAL
12779 # define LT_DLGLOBAL DL_GLOBAL
12780 # else
12781 # define LT_DLGLOBAL 0
12782 # endif
12783 #endif
12785 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12786 find out it does not work in some platform. */
12787 #ifndef LT_DLLAZY_OR_NOW
12788 # ifdef RTLD_LAZY
12789 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12790 # else
12791 # ifdef DL_LAZY
12792 # define LT_DLLAZY_OR_NOW DL_LAZY
12793 # else
12794 # ifdef RTLD_NOW
12795 # define LT_DLLAZY_OR_NOW RTLD_NOW
12796 # else
12797 # ifdef DL_NOW
12798 # define LT_DLLAZY_OR_NOW DL_NOW
12799 # else
12800 # define LT_DLLAZY_OR_NOW 0
12801 # endif
12802 # endif
12803 # endif
12804 # endif
12805 #endif
12807 /* When -fvisbility=hidden is used, assume the code has been annotated
12808 correspondingly for the symbols needed. */
12809 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12810 void fnord () __attribute__((visibility("default")));
12811 #endif
12813 void fnord () { int i=42; }
12814 int main ()
12816 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12817 int status = $lt_dlunknown;
12819 if (self)
12821 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12822 else
12824 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12825 else puts (dlerror ());
12827 /* dlclose (self); */
12829 else
12830 puts (dlerror ());
12832 return status;
12834 _LT_EOF
12835 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12836 (eval $ac_link) 2>&5
12837 ac_status=$?
12838 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12839 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12840 (./conftest; exit; ) >&5 2>/dev/null
12841 lt_status=$?
12842 case x$lt_status in
12843 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12844 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12845 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12846 esac
12847 else :
12848 # compilation failed
12849 lt_cv_dlopen_self_static=no
12852 rm -fr conftest*
12856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12857 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12860 CPPFLAGS="$save_CPPFLAGS"
12861 LDFLAGS="$save_LDFLAGS"
12862 LIBS="$save_LIBS"
12864 esac
12866 case $lt_cv_dlopen_self in
12867 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12868 *) enable_dlopen_self=unknown ;;
12869 esac
12871 case $lt_cv_dlopen_self_static in
12872 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12873 *) enable_dlopen_self_static=unknown ;;
12874 esac
12893 striplib=
12894 old_striplib=
12895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12896 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12897 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12898 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12899 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12901 $as_echo "yes" >&6; }
12902 else
12903 # FIXME - insert some real tests, host_os isn't really good enough
12904 case $host_os in
12905 darwin*)
12906 if test -n "$STRIP" ; then
12907 striplib="$STRIP -x"
12908 old_striplib="$STRIP -S"
12909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12910 $as_echo "yes" >&6; }
12911 else
12912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12913 $as_echo "no" >&6; }
12917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12918 $as_echo "no" >&6; }
12920 esac
12934 # Report which library types will actually be built
12935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12936 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12938 $as_echo "$can_build_shared" >&6; }
12940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12941 $as_echo_n "checking whether to build shared libraries... " >&6; }
12942 test "$can_build_shared" = "no" && enable_shared=no
12944 # On AIX, shared libraries and static libraries use the same namespace, and
12945 # are all built from PIC.
12946 case $host_os in
12947 aix3*)
12948 test "$enable_shared" = yes && enable_static=no
12949 if test -n "$RANLIB"; then
12950 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12951 postinstall_cmds='$RANLIB $lib'
12955 aix[4-9]*)
12956 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12957 test "$enable_shared" = yes && enable_static=no
12960 esac
12961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12962 $as_echo "$enable_shared" >&6; }
12964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12965 $as_echo_n "checking whether to build static libraries... " >&6; }
12966 # Make sure either enable_shared or enable_static is yes.
12967 test "$enable_shared" = yes || enable_static=yes
12968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12969 $as_echo "$enable_static" >&6; }
12975 ac_ext=c
12976 ac_cpp='$CPP $CPPFLAGS'
12977 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12978 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12979 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12981 CC="$lt_save_CC"
12983 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12984 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12985 (test "X$CXX" != "Xg++"))) ; then
12986 ac_ext=cpp
12987 ac_cpp='$CXXCPP $CPPFLAGS'
12988 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12989 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12990 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12992 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12993 if test -z "$CXXCPP"; then
12994 if ${ac_cv_prog_CXXCPP+:} false; then :
12995 $as_echo_n "(cached) " >&6
12996 else
12997 # Double quotes because CXXCPP needs to be expanded
12998 for CXXCPP in "$CXX -E" "/lib/cpp"
13000 ac_preproc_ok=false
13001 for ac_cxx_preproc_warn_flag in '' yes
13003 # Use a header file that comes with gcc, so configuring glibc
13004 # with a fresh cross-compiler works.
13005 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13006 # <limits.h> exists even on freestanding compilers.
13007 # On the NeXT, cc -E runs the code through the compiler's parser,
13008 # not just through cpp. "Syntax error" is here to catch this case.
13009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13010 /* end confdefs.h. */
13011 #ifdef __STDC__
13012 # include <limits.h>
13013 #else
13014 # include <assert.h>
13015 #endif
13016 Syntax error
13017 _ACEOF
13018 if ac_fn_cxx_try_cpp "$LINENO"; then :
13020 else
13021 # Broken: fails on valid input.
13022 continue
13024 rm -f conftest.err conftest.i conftest.$ac_ext
13026 # OK, works on sane cases. Now check whether nonexistent headers
13027 # can be detected and how.
13028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13029 /* end confdefs.h. */
13030 #include <ac_nonexistent.h>
13031 _ACEOF
13032 if ac_fn_cxx_try_cpp "$LINENO"; then :
13033 # Broken: success on invalid input.
13034 continue
13035 else
13036 # Passes both tests.
13037 ac_preproc_ok=:
13038 break
13040 rm -f conftest.err conftest.i conftest.$ac_ext
13042 done
13043 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13044 rm -f conftest.i conftest.err conftest.$ac_ext
13045 if $ac_preproc_ok; then :
13046 break
13049 done
13050 ac_cv_prog_CXXCPP=$CXXCPP
13053 CXXCPP=$ac_cv_prog_CXXCPP
13054 else
13055 ac_cv_prog_CXXCPP=$CXXCPP
13057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
13058 $as_echo "$CXXCPP" >&6; }
13059 ac_preproc_ok=false
13060 for ac_cxx_preproc_warn_flag in '' yes
13062 # Use a header file that comes with gcc, so configuring glibc
13063 # with a fresh cross-compiler works.
13064 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13065 # <limits.h> exists even on freestanding compilers.
13066 # On the NeXT, cc -E runs the code through the compiler's parser,
13067 # not just through cpp. "Syntax error" is here to catch this case.
13068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13069 /* end confdefs.h. */
13070 #ifdef __STDC__
13071 # include <limits.h>
13072 #else
13073 # include <assert.h>
13074 #endif
13075 Syntax error
13076 _ACEOF
13077 if ac_fn_cxx_try_cpp "$LINENO"; then :
13079 else
13080 # Broken: fails on valid input.
13081 continue
13083 rm -f conftest.err conftest.i conftest.$ac_ext
13085 # OK, works on sane cases. Now check whether nonexistent headers
13086 # can be detected and how.
13087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13088 /* end confdefs.h. */
13089 #include <ac_nonexistent.h>
13090 _ACEOF
13091 if ac_fn_cxx_try_cpp "$LINENO"; then :
13092 # Broken: success on invalid input.
13093 continue
13094 else
13095 # Passes both tests.
13096 ac_preproc_ok=:
13097 break
13099 rm -f conftest.err conftest.i conftest.$ac_ext
13101 done
13102 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13103 rm -f conftest.i conftest.err conftest.$ac_ext
13104 if $ac_preproc_ok; then :
13106 else
13107 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13108 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13109 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
13110 See \`config.log' for more details" "$LINENO" 5; }
13113 ac_ext=c
13114 ac_cpp='$CPP $CPPFLAGS'
13115 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13116 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13117 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13119 else
13120 _lt_caught_CXX_error=yes
13123 ac_ext=cpp
13124 ac_cpp='$CXXCPP $CPPFLAGS'
13125 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13126 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13127 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13129 archive_cmds_need_lc_CXX=no
13130 allow_undefined_flag_CXX=
13131 always_export_symbols_CXX=no
13132 archive_expsym_cmds_CXX=
13133 compiler_needs_object_CXX=no
13134 export_dynamic_flag_spec_CXX=
13135 hardcode_direct_CXX=no
13136 hardcode_direct_absolute_CXX=no
13137 hardcode_libdir_flag_spec_CXX=
13138 hardcode_libdir_flag_spec_ld_CXX=
13139 hardcode_libdir_separator_CXX=
13140 hardcode_minus_L_CXX=no
13141 hardcode_shlibpath_var_CXX=unsupported
13142 hardcode_automatic_CXX=no
13143 inherit_rpath_CXX=no
13144 module_cmds_CXX=
13145 module_expsym_cmds_CXX=
13146 link_all_deplibs_CXX=unknown
13147 old_archive_cmds_CXX=$old_archive_cmds
13148 reload_flag_CXX=$reload_flag
13149 reload_cmds_CXX=$reload_cmds
13150 no_undefined_flag_CXX=
13151 whole_archive_flag_spec_CXX=
13152 enable_shared_with_static_runtimes_CXX=no
13154 # Source file extension for C++ test sources.
13155 ac_ext=cpp
13157 # Object file extension for compiled C++ test sources.
13158 objext=o
13159 objext_CXX=$objext
13161 # No sense in running all these tests if we already determined that
13162 # the CXX compiler isn't working. Some variables (like enable_shared)
13163 # are currently assumed to apply to all compilers on this platform,
13164 # and will be corrupted by setting them based on a non-working compiler.
13165 if test "$_lt_caught_CXX_error" != yes; then
13166 # Code to be used in simple compile tests
13167 lt_simple_compile_test_code="int some_variable = 0;"
13169 # Code to be used in simple link tests
13170 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13172 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13179 # If no C compiler was specified, use CC.
13180 LTCC=${LTCC-"$CC"}
13182 # If no C compiler flags were specified, use CFLAGS.
13183 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13185 # Allow CC to be a program name with arguments.
13186 compiler=$CC
13189 # save warnings/boilerplate of simple test code
13190 ac_outfile=conftest.$ac_objext
13191 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13192 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13193 _lt_compiler_boilerplate=`cat conftest.err`
13194 $RM conftest*
13196 ac_outfile=conftest.$ac_objext
13197 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13198 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13199 _lt_linker_boilerplate=`cat conftest.err`
13200 $RM -r conftest*
13203 # Allow CC to be a program name with arguments.
13204 lt_save_CC=$CC
13205 lt_save_LD=$LD
13206 lt_save_GCC=$GCC
13207 GCC=$GXX
13208 lt_save_with_gnu_ld=$with_gnu_ld
13209 lt_save_path_LD=$lt_cv_path_LD
13210 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13211 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13212 else
13213 $as_unset lt_cv_prog_gnu_ld
13215 if test -n "${lt_cv_path_LDCXX+set}"; then
13216 lt_cv_path_LD=$lt_cv_path_LDCXX
13217 else
13218 $as_unset lt_cv_path_LD
13220 test -z "${LDCXX+set}" || LD=$LDCXX
13221 CC=${CXX-"c++"}
13222 compiler=$CC
13223 compiler_CXX=$CC
13224 for cc_temp in $compiler""; do
13225 case $cc_temp in
13226 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13227 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13228 \-*) ;;
13229 *) break;;
13230 esac
13231 done
13232 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
13235 if test -n "$compiler"; then
13236 # We don't want -fno-exception when compiling C++ code, so set the
13237 # no_builtin_flag separately
13238 if test "$GXX" = yes; then
13239 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13240 else
13241 lt_prog_compiler_no_builtin_flag_CXX=
13244 if test "$GXX" = yes; then
13245 # Set up default GNU C++ configuration
13249 # Check whether --with-gnu-ld was given.
13250 if test "${with_gnu_ld+set}" = set; then :
13251 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13252 else
13253 with_gnu_ld=no
13256 ac_prog=ld
13257 if test "$GCC" = yes; then
13258 # Check if gcc -print-prog-name=ld gives a path.
13259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13260 $as_echo_n "checking for ld used by $CC... " >&6; }
13261 case $host in
13262 *-*-mingw*)
13263 # gcc leaves a trailing carriage return which upsets mingw
13264 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13266 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13267 esac
13268 case $ac_prog in
13269 # Accept absolute paths.
13270 [\\/]* | ?:[\\/]*)
13271 re_direlt='/[^/][^/]*/\.\./'
13272 # Canonicalize the pathname of ld
13273 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13274 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13275 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13276 done
13277 test -z "$LD" && LD="$ac_prog"
13280 # If it fails, then pretend we aren't using GCC.
13281 ac_prog=ld
13284 # If it is relative, then search for the first ld in PATH.
13285 with_gnu_ld=unknown
13287 esac
13288 elif test "$with_gnu_ld" = yes; then
13289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13290 $as_echo_n "checking for GNU ld... " >&6; }
13291 else
13292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13293 $as_echo_n "checking for non-GNU ld... " >&6; }
13295 if ${lt_cv_path_LD+:} false; then :
13296 $as_echo_n "(cached) " >&6
13297 else
13298 if test -z "$LD"; then
13299 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13300 for ac_dir in $PATH; do
13301 IFS="$lt_save_ifs"
13302 test -z "$ac_dir" && ac_dir=.
13303 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13304 lt_cv_path_LD="$ac_dir/$ac_prog"
13305 # Check to see if the program is GNU ld. I'd rather use --version,
13306 # but apparently some variants of GNU ld only accept -v.
13307 # Break only if it was the GNU/non-GNU ld that we prefer.
13308 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13309 *GNU* | *'with BFD'*)
13310 test "$with_gnu_ld" != no && break
13313 test "$with_gnu_ld" != yes && break
13315 esac
13317 done
13318 IFS="$lt_save_ifs"
13319 else
13320 lt_cv_path_LD="$LD" # Let the user override the test with a path.
13324 LD="$lt_cv_path_LD"
13325 if test -n "$LD"; then
13326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13327 $as_echo "$LD" >&6; }
13328 else
13329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13330 $as_echo "no" >&6; }
13332 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13334 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13335 if ${lt_cv_prog_gnu_ld+:} false; then :
13336 $as_echo_n "(cached) " >&6
13337 else
13338 # I'd rather use --version here, but apparently some GNU lds only accept -v.
13339 case `$LD -v 2>&1 </dev/null` in
13340 *GNU* | *'with BFD'*)
13341 lt_cv_prog_gnu_ld=yes
13344 lt_cv_prog_gnu_ld=no
13346 esac
13348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13349 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
13350 with_gnu_ld=$lt_cv_prog_gnu_ld
13358 # Check if GNU C++ uses GNU ld as the underlying linker, since the
13359 # archiving commands below assume that GNU ld is being used.
13360 if test "$with_gnu_ld" = yes; then
13361 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13362 archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13364 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13365 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13367 # If archive_cmds runs LD, not CC, wlarc should be empty
13368 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13369 # investigate it a little bit more. (MM)
13370 wlarc='${wl}'
13372 # ancient GNU ld didn't support --whole-archive et. al.
13373 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13374 $GREP 'no-whole-archive' > /dev/null; then
13375 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13376 else
13377 whole_archive_flag_spec_CXX=
13379 else
13380 with_gnu_ld=no
13381 wlarc=
13383 # A generic and very simple default shared library creation
13384 # command for GNU C++ for the case where it uses the native
13385 # linker, instead of GNU ld. If possible, this setting should
13386 # overridden to take advantage of the native linker features on
13387 # the platform it is being used on.
13388 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13391 # Commands to make compiler produce verbose output that lists
13392 # what "hidden" libraries, object files and flags are used when
13393 # linking a shared library.
13394 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13396 else
13397 GXX=no
13398 with_gnu_ld=no
13399 wlarc=
13402 # PORTME: fill in a description of your system's C++ link characteristics
13403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13404 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13405 ld_shlibs_CXX=yes
13406 case $host_os in
13407 aix3*)
13408 # FIXME: insert proper C++ library support
13409 ld_shlibs_CXX=no
13411 aix[4-9]*)
13412 if test "$host_cpu" = ia64; then
13413 # On IA64, the linker does run time linking by default, so we don't
13414 # have to do anything special.
13415 aix_use_runtimelinking=no
13416 exp_sym_flag='-Bexport'
13417 no_entry_flag=""
13418 else
13419 aix_use_runtimelinking=no
13421 # Test if we are trying to use run time linking or normal
13422 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13423 # need to do runtime linking.
13424 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13425 for ld_flag in $LDFLAGS; do
13426 case $ld_flag in
13427 *-brtl*)
13428 aix_use_runtimelinking=yes
13429 break
13431 esac
13432 done
13434 esac
13436 exp_sym_flag='-bexport'
13437 no_entry_flag='-bnoentry'
13440 # When large executables or shared objects are built, AIX ld can
13441 # have problems creating the table of contents. If linking a library
13442 # or program results in "error TOC overflow" add -mminimal-toc to
13443 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13444 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13446 archive_cmds_CXX=''
13447 hardcode_direct_CXX=yes
13448 hardcode_direct_absolute_CXX=yes
13449 hardcode_libdir_separator_CXX=':'
13450 link_all_deplibs_CXX=yes
13451 file_list_spec_CXX='${wl}-f,'
13453 if test "$GXX" = yes; then
13454 case $host_os in aix4.[012]|aix4.[012].*)
13455 # We only want to do this on AIX 4.2 and lower, the check
13456 # below for broken collect2 doesn't work under 4.3+
13457 collect2name=`${CC} -print-prog-name=collect2`
13458 if test -f "$collect2name" &&
13459 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13460 then
13461 # We have reworked collect2
13463 else
13464 # We have old collect2
13465 hardcode_direct_CXX=unsupported
13466 # It fails to find uninstalled libraries when the uninstalled
13467 # path is not listed in the libpath. Setting hardcode_minus_L
13468 # to unsupported forces relinking
13469 hardcode_minus_L_CXX=yes
13470 hardcode_libdir_flag_spec_CXX='-L$libdir'
13471 hardcode_libdir_separator_CXX=
13473 esac
13474 shared_flag='-shared'
13475 if test "$aix_use_runtimelinking" = yes; then
13476 shared_flag="$shared_flag "'${wl}-G'
13478 else
13479 # not using gcc
13480 if test "$host_cpu" = ia64; then
13481 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13482 # chokes on -Wl,-G. The following line is correct:
13483 shared_flag='-G'
13484 else
13485 if test "$aix_use_runtimelinking" = yes; then
13486 shared_flag='${wl}-G'
13487 else
13488 shared_flag='${wl}-bM:SRE'
13493 export_dynamic_flag_spec_CXX='${wl}-bexpall'
13494 # It seems that -bexpall does not export symbols beginning with
13495 # underscore (_), so it is better to generate a list of symbols to
13496 # export.
13497 always_export_symbols_CXX=yes
13498 if test "$aix_use_runtimelinking" = yes; then
13499 # Warning - without using the other runtime loading flags (-brtl),
13500 # -berok will link without error, but may produce a broken library.
13501 allow_undefined_flag_CXX='-berok'
13502 # Determine the default libpath from the value encoded in an empty
13503 # executable.
13504 if test x$gcc_no_link = xyes; then
13505 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
13507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13508 /* end confdefs.h. */
13511 main ()
13515 return 0;
13517 _ACEOF
13518 if ac_fn_cxx_try_link "$LINENO"; then :
13520 lt_aix_libpath_sed='
13521 /Import File Strings/,/^$/ {
13522 /^0/ {
13523 s/^0 *\(.*\)$/\1/
13527 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13528 # Check for a 64-bit object if we didn't find anything.
13529 if test -z "$aix_libpath"; then
13530 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13533 rm -f core conftest.err conftest.$ac_objext \
13534 conftest$ac_exeext conftest.$ac_ext
13535 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13537 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13539 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
13540 else
13541 if test "$host_cpu" = ia64; then
13542 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13543 allow_undefined_flag_CXX="-z nodefs"
13544 archive_expsym_cmds_CXX="\$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"
13545 else
13546 # Determine the default libpath from the value encoded in an
13547 # empty executable.
13548 if test x$gcc_no_link = xyes; then
13549 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
13551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13552 /* end confdefs.h. */
13555 main ()
13559 return 0;
13561 _ACEOF
13562 if ac_fn_cxx_try_link "$LINENO"; then :
13564 lt_aix_libpath_sed='
13565 /Import File Strings/,/^$/ {
13566 /^0/ {
13567 s/^0 *\(.*\)$/\1/
13571 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13572 # Check for a 64-bit object if we didn't find anything.
13573 if test -z "$aix_libpath"; then
13574 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13577 rm -f core conftest.err conftest.$ac_objext \
13578 conftest$ac_exeext conftest.$ac_ext
13579 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13581 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13582 # Warning - without using the other run time loading flags,
13583 # -berok will link without error, but may produce a broken library.
13584 no_undefined_flag_CXX=' ${wl}-bernotok'
13585 allow_undefined_flag_CXX=' ${wl}-berok'
13586 if test "$with_gnu_ld" = yes; then
13587 # We only use this code for GNU lds that support --whole-archive.
13588 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13589 else
13590 # Exported symbols can be pulled into shared objects from archives
13591 whole_archive_flag_spec_CXX='$convenience'
13593 archive_cmds_need_lc_CXX=yes
13594 # This is similar to how AIX traditionally builds its shared
13595 # libraries.
13596 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
13601 beos*)
13602 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13603 allow_undefined_flag_CXX=unsupported
13604 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13605 # support --undefined. This deserves some investigation. FIXME
13606 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13607 else
13608 ld_shlibs_CXX=no
13612 chorus*)
13613 case $cc_basename in
13615 # FIXME: insert proper C++ library support
13616 ld_shlibs_CXX=no
13618 esac
13621 cygwin* | mingw* | pw32* | cegcc*)
13622 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13623 # as there is no search path for DLLs.
13624 hardcode_libdir_flag_spec_CXX='-L$libdir'
13625 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
13626 allow_undefined_flag_CXX=unsupported
13627 always_export_symbols_CXX=no
13628 enable_shared_with_static_runtimes_CXX=yes
13630 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13631 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13632 # If the export-symbols file already is a .def file (1st line
13633 # is EXPORTS), use it as is; otherwise, prepend...
13634 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13635 cp $export_symbols $output_objdir/$soname.def;
13636 else
13637 echo EXPORTS > $output_objdir/$soname.def;
13638 cat $export_symbols >> $output_objdir/$soname.def;
13640 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13641 else
13642 ld_shlibs_CXX=no
13645 darwin* | rhapsody*)
13649 # Publish an arg to allow the user to select that Darwin host (and target)
13650 # libraries should be given install-names like @rpath/libfoo.dylib. This
13651 # requires that the user of the library then adds an 'rpath' to the DSO that
13652 # needs access.
13653 # NOTE: there are defaults below, for systems that support rpaths. The person
13654 # configuring can override the defaults for any system version that supports
13655 # them - they are, however, forced off for system versions without support.
13656 # Check whether --enable-darwin-at-rpath was given.
13657 if test "${enable_darwin_at_rpath+set}" = set; then :
13658 enableval=$enable_darwin_at_rpath; if test "x$enable_darwin_at_rpath" = "xyes"; then
13659 # This is not supported before macOS 10.5 / Darwin9.
13660 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host_os in
13661 UNSET,darwin[4-8]*|UNSET,rhapsody*|10.[0-4][,.]*)
13662 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Darwin @rpath library names are incompatible with OSX versions earlier than 10.5 (rpaths disabled)" >&5
13663 $as_echo "$as_me: WARNING: Darwin @rpath library names are incompatible with OSX versions earlier than 10.5 (rpaths disabled)" >&2;}
13664 enable_darwin_at_rpath=no
13666 esac
13668 else
13669 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host_os in
13670 # As above, before 10.5 / Darwin9 this does not work.
13671 UNSET,darwin[4-8]*|UNSET,rhapsody*|10.[0-4][,.]*)
13672 enable_darwin_at_rpath=no
13675 # We cannot build and test reliably on macOS 10.11+ (Darwin15+) without use
13676 # of rpaths, since runpaths set via DYLD_LIBRARY_PATH are elided by key
13677 # system executables (e.g. /bin/sh). Force rpaths on for these systems.
13678 UNSET,darwin1[5-9]*|UNSET,darwin2*|10.1[1-9][,.]*|1[1-9].*[,.]* )
13679 { $as_echo "$as_me:${as_lineno-$LINENO}: @rpath library names are needed on macOS versions later than 10.11 (rpaths have been enabled)" >&5
13680 $as_echo "$as_me: @rpath library names are needed on macOS versions later than 10.11 (rpaths have been enabled)" >&6;}
13681 enable_darwin_at_rpath=yes
13683 # NOTE: we are not (yet) doing anything for 10.5 .. 10.10, since they can
13684 # work with either DYLD_LIBRARY_PATH or embedded rpaths.
13686 esac
13691 archive_cmds_need_lc_CXX=no
13692 hardcode_direct_CXX=no
13693 hardcode_automatic_CXX=yes
13694 hardcode_shlibpath_var_CXX=unsupported
13695 if test "$lt_cv_ld_force_load" = "yes"; then
13696 whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
13697 else
13698 whole_archive_flag_spec_CXX=''
13700 link_all_deplibs_CXX=yes
13701 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13702 case $cc_basename in
13703 ifort*) _lt_dar_can_shared=yes ;;
13704 *) _lt_dar_can_shared=$GCC ;;
13705 esac
13706 if test "$_lt_dar_can_shared" = "yes"; then
13707 output_verbose_link_cmd=func_echo_all
13708 _lt_install_name='\$rpath/\$soname'
13709 if test "x$enable_darwin_at_rpath" = "xyes"; then
13710 _lt_install_name='@rpath/\$soname'
13712 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name ${_lt_install_name} \$verstring ${_lt_dsymutil}"
13713 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13714 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name ${_lt_install_name} \$verstring ${_lt_dar_export_syms}${_lt_dsymutil}"
13715 module_expsym_cmds_CXX="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}"
13716 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13717 _lt_install_name='\$rpath/\$soname'
13718 if test "x$enable_darwin_at_rpath" = "xyes"; then
13719 _lt_install_name='@rpath/\$soname'
13721 archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name ${_lt_install_name} \$verstring${_lt_dsymutil}"
13722 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
13725 else
13726 ld_shlibs_CXX=no
13731 dgux*)
13732 case $cc_basename in
13733 ec++*)
13734 # FIXME: insert proper C++ library support
13735 ld_shlibs_CXX=no
13737 ghcx*)
13738 # Green Hills C++ Compiler
13739 # FIXME: insert proper C++ library support
13740 ld_shlibs_CXX=no
13743 # FIXME: insert proper C++ library support
13744 ld_shlibs_CXX=no
13746 esac
13749 freebsd2.*)
13750 # C++ shared libraries reported to be fairly broken before
13751 # switch to ELF
13752 ld_shlibs_CXX=no
13755 freebsd-elf*)
13756 archive_cmds_need_lc_CXX=no
13759 freebsd* | dragonfly*)
13760 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13761 # conventions
13762 ld_shlibs_CXX=yes
13765 gnu*)
13768 haiku*)
13769 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13770 link_all_deplibs_CXX=yes
13773 hpux9*)
13774 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13775 hardcode_libdir_separator_CXX=:
13776 export_dynamic_flag_spec_CXX='${wl}-E'
13777 hardcode_direct_CXX=yes
13778 hardcode_minus_L_CXX=yes # Not in the search PATH,
13779 # but as the default
13780 # location of the library.
13782 case $cc_basename in
13783 CC*)
13784 # FIXME: insert proper C++ library support
13785 ld_shlibs_CXX=no
13787 aCC*)
13788 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
13789 # Commands to make compiler produce verbose output that lists
13790 # what "hidden" libraries, object files and flags are used when
13791 # linking a shared library.
13793 # There doesn't appear to be a way to prevent this compiler from
13794 # explicitly linking system object files so we need to strip them
13795 # from the output so that they don't get included in the library
13796 # dependencies.
13797 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
13800 if test "$GXX" = yes; then
13801 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
13802 else
13803 # FIXME: insert proper C++ library support
13804 ld_shlibs_CXX=no
13807 esac
13810 hpux10*|hpux11*)
13811 if test $with_gnu_ld = no; then
13812 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13813 hardcode_libdir_separator_CXX=:
13815 case $host_cpu in
13816 hppa*64*|ia64*)
13819 export_dynamic_flag_spec_CXX='${wl}-E'
13821 esac
13823 case $host_cpu in
13824 hppa*64*|ia64*)
13825 hardcode_direct_CXX=no
13826 hardcode_shlibpath_var_CXX=no
13829 hardcode_direct_CXX=yes
13830 hardcode_direct_absolute_CXX=yes
13831 hardcode_minus_L_CXX=yes # Not in the search PATH,
13832 # but as the default
13833 # location of the library.
13835 esac
13837 case $cc_basename in
13838 CC*)
13839 # FIXME: insert proper C++ library support
13840 ld_shlibs_CXX=no
13842 aCC*)
13843 case $host_cpu in
13844 hppa*64*)
13845 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13847 ia64*)
13848 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13851 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13853 esac
13854 # Commands to make compiler produce verbose output that lists
13855 # what "hidden" libraries, object files and flags are used when
13856 # linking a shared library.
13858 # There doesn't appear to be a way to prevent this compiler from
13859 # explicitly linking system object files so we need to strip them
13860 # from the output so that they don't get included in the library
13861 # dependencies.
13862 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
13865 if test "$GXX" = yes; then
13866 if test $with_gnu_ld = no; then
13867 case $host_cpu in
13868 hppa*64*)
13869 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13871 ia64*)
13872 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13875 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13877 esac
13879 else
13880 # FIXME: insert proper C++ library support
13881 ld_shlibs_CXX=no
13884 esac
13887 interix[3-9]*)
13888 hardcode_direct_CXX=no
13889 hardcode_shlibpath_var_CXX=no
13890 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13891 export_dynamic_flag_spec_CXX='${wl}-E'
13892 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13893 # Instead, shared libraries are loaded at an image base (0x10000000 by
13894 # default) and relocated if they conflict, which is a slow very memory
13895 # consuming and fragmenting process. To avoid this, we pick a random,
13896 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13897 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13898 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13899 archive_expsym_cmds_CXX='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'
13901 irix5* | irix6*)
13902 case $cc_basename in
13903 CC*)
13904 # SGI C++
13905 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
13907 # Archives containing C++ object files must be created using
13908 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13909 # necessary to make sure instantiated templates are included
13910 # in the archive.
13911 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13914 if test "$GXX" = yes; then
13915 if test "$with_gnu_ld" = no; then
13916 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $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'
13917 else
13918 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
13921 link_all_deplibs_CXX=yes
13923 esac
13924 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13925 hardcode_libdir_separator_CXX=:
13926 inherit_rpath_CXX=yes
13929 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13930 case $cc_basename in
13931 KCC*)
13932 # Kuck and Associates, Inc. (KAI) C++ Compiler
13934 # KCC will only create a shared library if the output file
13935 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13936 # to its proper name (with version) after linking.
13937 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
13938 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
13939 # Commands to make compiler produce verbose output that lists
13940 # what "hidden" libraries, object files and flags are used when
13941 # linking a shared library.
13943 # There doesn't appear to be a way to prevent this compiler from
13944 # explicitly linking system object files so we need to strip them
13945 # from the output so that they don't get included in the library
13946 # dependencies.
13947 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
13949 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13950 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13952 # Archives containing C++ object files must be created using
13953 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13954 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13956 icpc* | ecpc* )
13957 # Intel C++
13958 with_gnu_ld=yes
13959 # version 8.0 and above of icpc choke on multiply defined symbols
13960 # if we add $predep_objects and $postdep_objects, however 7.1 and
13961 # earlier do not add the objects themselves.
13962 case `$CC -V 2>&1` in
13963 *"Version 7."*)
13964 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13965 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13967 *) # Version 8.0 or newer
13968 tmp_idyn=
13969 case $host_cpu in
13970 ia64*) tmp_idyn=' -i_dynamic';;
13971 esac
13972 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13973 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13975 esac
13976 archive_cmds_need_lc_CXX=no
13977 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13978 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13979 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13981 pgCC* | pgcpp*)
13982 # Portland Group C++ compiler
13983 case `$CC -V` in
13984 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
13985 prelink_cmds_CXX='tpldir=Template.dir~
13986 rm -rf $tpldir~
13987 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13988 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
13989 old_archive_cmds_CXX='tpldir=Template.dir~
13990 rm -rf $tpldir~
13991 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13992 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
13993 $RANLIB $oldlib'
13994 archive_cmds_CXX='tpldir=Template.dir~
13995 rm -rf $tpldir~
13996 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13997 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13998 archive_expsym_cmds_CXX='tpldir=Template.dir~
13999 rm -rf $tpldir~
14000 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14001 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
14003 *) # Version 6 and above use weak symbols
14004 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14005 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
14007 esac
14009 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
14010 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14011 whole_archive_flag_spec_CXX='${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'
14013 cxx*)
14014 # Compaq C++
14015 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14016 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
14018 runpath_var=LD_RUN_PATH
14019 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14020 hardcode_libdir_separator_CXX=:
14022 # Commands to make compiler produce verbose output that lists
14023 # what "hidden" libraries, object files and flags are used when
14024 # linking a shared library.
14026 # There doesn't appear to be a way to prevent this compiler from
14027 # explicitly linking system object files so we need to strip them
14028 # from the output so that they don't get included in the library
14029 # dependencies.
14030 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
14032 xl* | mpixl* | bgxl*)
14033 # IBM XL 8.0 on PPC, with GNU ld
14034 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14035 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14036 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14037 if test "x$supports_anon_versioning" = xyes; then
14038 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
14039 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14040 echo "local: *; };" >> $output_objdir/$libname.ver~
14041 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14045 case `$CC -V 2>&1 | sed 5q` in
14046 *Sun\ C*)
14047 # Sun C++ 5.9
14048 no_undefined_flag_CXX=' -zdefs'
14049 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14050 archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
14051 hardcode_libdir_flag_spec_CXX='-R$libdir'
14052 whole_archive_flag_spec_CXX='${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'
14053 compiler_needs_object_CXX=yes
14055 # Not sure whether something based on
14056 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
14057 # would be better.
14058 output_verbose_link_cmd='func_echo_all'
14060 # Archives containing C++ object files must be created using
14061 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14062 # necessary to make sure instantiated templates are included
14063 # in the archive.
14064 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14066 esac
14068 esac
14071 lynxos*)
14072 # FIXME: insert proper C++ library support
14073 ld_shlibs_CXX=no
14076 m88k*)
14077 # FIXME: insert proper C++ library support
14078 ld_shlibs_CXX=no
14081 mvs*)
14082 case $cc_basename in
14083 cxx*)
14084 # FIXME: insert proper C++ library support
14085 ld_shlibs_CXX=no
14088 # FIXME: insert proper C++ library support
14089 ld_shlibs_CXX=no
14091 esac
14094 netbsd*)
14095 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14096 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
14097 wlarc=
14098 hardcode_libdir_flag_spec_CXX='-R$libdir'
14099 hardcode_direct_CXX=yes
14100 hardcode_shlibpath_var_CXX=no
14102 # Workaround some broken pre-1.5 toolchains
14103 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
14106 *nto* | *qnx*)
14107 ld_shlibs_CXX=yes
14110 openbsd2*)
14111 # C++ shared libraries are fairly broken
14112 ld_shlibs_CXX=no
14115 openbsd*)
14116 if test -f /usr/libexec/ld.so; then
14117 hardcode_direct_CXX=yes
14118 hardcode_shlibpath_var_CXX=no
14119 hardcode_direct_absolute_CXX=yes
14120 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14121 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14122 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14123 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
14124 export_dynamic_flag_spec_CXX='${wl}-E'
14125 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14127 output_verbose_link_cmd=func_echo_all
14128 else
14129 ld_shlibs_CXX=no
14133 osf3* | osf4* | osf5*)
14134 case $cc_basename in
14135 KCC*)
14136 # Kuck and Associates, Inc. (KAI) C++ Compiler
14138 # KCC will only create a shared library if the output file
14139 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14140 # to its proper name (with version) after linking.
14141 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
14143 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14144 hardcode_libdir_separator_CXX=:
14146 # Archives containing C++ object files must be created using
14147 # the KAI C++ compiler.
14148 case $host in
14149 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14150 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14151 esac
14153 RCC*)
14154 # Rational C++ 2.4.1
14155 # FIXME: insert proper C++ library support
14156 ld_shlibs_CXX=no
14158 cxx*)
14159 case $host in
14160 osf3*)
14161 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14162 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
14163 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14166 allow_undefined_flag_CXX=' -expect_unresolved \*'
14167 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
14168 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14169 echo "-hidden">> $lib.exp~
14170 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~
14171 $RM $lib.exp'
14172 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14174 esac
14176 hardcode_libdir_separator_CXX=:
14178 # Commands to make compiler produce verbose output that lists
14179 # what "hidden" libraries, object files and flags are used when
14180 # linking a shared library.
14182 # There doesn't appear to be a way to prevent this compiler from
14183 # explicitly linking system object files so we need to strip them
14184 # from the output so that they don't get included in the library
14185 # dependencies.
14186 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
14189 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14190 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14191 case $host in
14192 osf3*)
14193 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $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'
14196 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $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'
14198 esac
14200 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14201 hardcode_libdir_separator_CXX=:
14203 # Commands to make compiler produce verbose output that lists
14204 # what "hidden" libraries, object files and flags are used when
14205 # linking a shared library.
14206 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14208 else
14209 # FIXME: insert proper C++ library support
14210 ld_shlibs_CXX=no
14213 esac
14216 psos*)
14217 # FIXME: insert proper C++ library support
14218 ld_shlibs_CXX=no
14221 sunos4*)
14222 case $cc_basename in
14223 CC*)
14224 # Sun C++ 4.x
14225 # FIXME: insert proper C++ library support
14226 ld_shlibs_CXX=no
14228 lcc*)
14229 # Lucid
14230 # FIXME: insert proper C++ library support
14231 ld_shlibs_CXX=no
14234 # FIXME: insert proper C++ library support
14235 ld_shlibs_CXX=no
14237 esac
14240 solaris*)
14241 case $cc_basename in
14242 CC*)
14243 # Sun C++ 4.2, 5.x and Centerline C++
14244 archive_cmds_need_lc_CXX=yes
14245 no_undefined_flag_CXX=' -zdefs'
14246 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14247 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14248 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14250 hardcode_libdir_flag_spec_CXX='-R$libdir'
14251 hardcode_shlibpath_var_CXX=no
14252 case $host_os in
14253 solaris2.[0-5] | solaris2.[0-5].*) ;;
14255 # The compiler driver will combine and reorder linker options,
14256 # but understands `-z linker_flag'.
14257 # Supported since Solaris 2.6 (maybe 2.5.1?)
14258 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14260 esac
14261 link_all_deplibs_CXX=yes
14263 output_verbose_link_cmd='func_echo_all'
14265 # Archives containing C++ object files must be created using
14266 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14267 # necessary to make sure instantiated templates are included
14268 # in the archive.
14269 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14271 gcx*)
14272 # Green Hills C++ Compiler
14273 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14275 # The C++ compiler must be used to create the archive.
14276 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14279 # GNU C++ compiler with Solaris linker
14280 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14281 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14282 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14283 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14284 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14285 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14287 # Commands to make compiler produce verbose output that lists
14288 # what "hidden" libraries, object files and flags are used when
14289 # linking a shared library.
14290 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14291 else
14292 # g++ 2.7 appears to require `-G' NOT `-shared' on this
14293 # platform.
14294 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14295 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14296 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14298 # Commands to make compiler produce verbose output that lists
14299 # what "hidden" libraries, object files and flags are used when
14300 # linking a shared library.
14301 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14304 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14305 case $host_os in
14306 solaris2.[0-5] | solaris2.[0-5].*) ;;
14308 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14310 esac
14313 esac
14316 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14317 no_undefined_flag_CXX='${wl}-z,text'
14318 archive_cmds_need_lc_CXX=no
14319 hardcode_shlibpath_var_CXX=no
14320 runpath_var='LD_RUN_PATH'
14322 case $cc_basename in
14323 CC*)
14324 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14325 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14328 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14329 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14331 esac
14334 sysv5* | sco3.2v5* | sco5v6*)
14335 # Note: We can NOT use -z defs as we might desire, because we do not
14336 # link with -lc, and that would cause any symbols used from libc to
14337 # always be unresolved, which means just about no library would
14338 # ever link correctly. If we're not using GNU ld we use -z text
14339 # though, which does catch some bad symbols but isn't as heavy-handed
14340 # as -z defs.
14341 no_undefined_flag_CXX='${wl}-z,text'
14342 allow_undefined_flag_CXX='${wl}-z,nodefs'
14343 archive_cmds_need_lc_CXX=no
14344 hardcode_shlibpath_var_CXX=no
14345 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
14346 hardcode_libdir_separator_CXX=':'
14347 link_all_deplibs_CXX=yes
14348 export_dynamic_flag_spec_CXX='${wl}-Bexport'
14349 runpath_var='LD_RUN_PATH'
14351 case $cc_basename in
14352 CC*)
14353 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14354 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14355 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
14356 '"$old_archive_cmds_CXX"
14357 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
14358 '"$reload_cmds_CXX"
14361 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14362 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14364 esac
14367 tandem*)
14368 case $cc_basename in
14369 NCC*)
14370 # NonStop-UX NCC 3.20
14371 # FIXME: insert proper C++ library support
14372 ld_shlibs_CXX=no
14375 # FIXME: insert proper C++ library support
14376 ld_shlibs_CXX=no
14378 esac
14381 vxworks*)
14382 # For VxWorks ports, we assume the use of a GNU linker with
14383 # standard elf conventions.
14384 ld_shlibs_CXX=yes
14388 # FIXME: insert proper C++ library support
14389 ld_shlibs_CXX=no
14391 esac
14393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14394 $as_echo "$ld_shlibs_CXX" >&6; }
14395 test "$ld_shlibs_CXX" = no && can_build_shared=no
14397 GCC_CXX="$GXX"
14398 LD_CXX="$LD"
14400 ## CAVEAT EMPTOR:
14401 ## There is no encapsulation within the following macros, do not change
14402 ## the running order or otherwise move them around unless you know exactly
14403 ## what you are doing...
14404 # Dependencies to place before and after the object being linked:
14405 predep_objects_CXX=
14406 postdep_objects_CXX=
14407 predeps_CXX=
14408 postdeps_CXX=
14409 compiler_lib_search_path_CXX=
14411 cat > conftest.$ac_ext <<_LT_EOF
14412 class Foo
14414 public:
14415 Foo (void) { a = 0; }
14416 private:
14417 int a;
14419 _LT_EOF
14421 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14422 (eval $ac_compile) 2>&5
14423 ac_status=$?
14424 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14425 test $ac_status = 0; }; then
14426 # Parse the compiler output and extract the necessary
14427 # objects, libraries and library flags.
14429 # Sentinel used to keep track of whether or not we are before
14430 # the conftest object file.
14431 pre_test_object_deps_done=no
14433 for p in `eval "$output_verbose_link_cmd"`; do
14434 case $p in
14436 -L* | -R* | -l*)
14437 # Some compilers place space between "-{L,R}" and the path.
14438 # Remove the space.
14439 if test $p = "-L" ||
14440 test $p = "-R"; then
14441 prev=$p
14442 continue
14443 else
14444 prev=
14447 if test "$pre_test_object_deps_done" = no; then
14448 case $p in
14449 -L* | -R*)
14450 # Internal compiler library paths should come after those
14451 # provided the user. The postdeps already come after the
14452 # user supplied libs so there is no need to process them.
14453 if test -z "$compiler_lib_search_path_CXX"; then
14454 compiler_lib_search_path_CXX="${prev}${p}"
14455 else
14456 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14459 # The "-l" case would never come before the object being
14460 # linked, so don't bother handling this case.
14461 esac
14462 else
14463 if test -z "$postdeps_CXX"; then
14464 postdeps_CXX="${prev}${p}"
14465 else
14466 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14471 *.$objext)
14472 # This assumes that the test object file only shows up
14473 # once in the compiler output.
14474 if test "$p" = "conftest.$objext"; then
14475 pre_test_object_deps_done=yes
14476 continue
14479 if test "$pre_test_object_deps_done" = no; then
14480 if test -z "$predep_objects_CXX"; then
14481 predep_objects_CXX="$p"
14482 else
14483 predep_objects_CXX="$predep_objects_CXX $p"
14485 else
14486 if test -z "$postdep_objects_CXX"; then
14487 postdep_objects_CXX="$p"
14488 else
14489 postdep_objects_CXX="$postdep_objects_CXX $p"
14494 *) ;; # Ignore the rest.
14496 esac
14497 done
14499 # Clean up.
14500 rm -f a.out a.exe
14501 else
14502 echo "libtool.m4: error: problem compiling CXX test program"
14505 $RM -f confest.$objext
14507 # PORTME: override above test on systems where it is broken
14508 case $host_os in
14509 interix[3-9]*)
14510 # Interix 3.5 installs completely hosed .la files for C++, so rather than
14511 # hack all around it, let's just trust "g++" to DTRT.
14512 predep_objects_CXX=
14513 postdep_objects_CXX=
14514 postdeps_CXX=
14517 linux*)
14518 case `$CC -V 2>&1 | sed 5q` in
14519 *Sun\ C*)
14520 # Sun C++ 5.9
14522 # The more standards-conforming stlport4 library is
14523 # incompatible with the Cstd library. Avoid specifying
14524 # it if it's in CXXFLAGS. Ignore libCrun as
14525 # -library=stlport4 depends on it.
14526 case " $CXX $CXXFLAGS " in
14527 *" -library=stlport4 "*)
14528 solaris_use_stlport4=yes
14530 esac
14532 if test "$solaris_use_stlport4" != yes; then
14533 postdeps_CXX='-library=Cstd -library=Crun'
14536 esac
14539 solaris*)
14540 case $cc_basename in
14541 CC*)
14542 # The more standards-conforming stlport4 library is
14543 # incompatible with the Cstd library. Avoid specifying
14544 # it if it's in CXXFLAGS. Ignore libCrun as
14545 # -library=stlport4 depends on it.
14546 case " $CXX $CXXFLAGS " in
14547 *" -library=stlport4 "*)
14548 solaris_use_stlport4=yes
14550 esac
14552 # Adding this requires a known-good setup of shared libraries for
14553 # Sun compiler versions before 5.6, else PIC objects from an old
14554 # archive will be linked into the output, leading to subtle bugs.
14555 if test "$solaris_use_stlport4" != yes; then
14556 postdeps_CXX='-library=Cstd -library=Crun'
14559 esac
14561 esac
14564 case " $postdeps_CXX " in
14565 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14566 esac
14567 compiler_lib_search_dirs_CXX=
14568 if test -n "${compiler_lib_search_path_CXX}"; then
14569 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14602 lt_prog_compiler_wl_CXX=
14603 lt_prog_compiler_pic_CXX=
14604 lt_prog_compiler_static_CXX=
14606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14607 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14609 # C++ specific cases for pic, static, wl, etc.
14610 if test "$GXX" = yes; then
14611 lt_prog_compiler_wl_CXX='-Wl,'
14612 lt_prog_compiler_static_CXX='-static'
14614 case $host_os in
14615 aix*)
14616 # All AIX code is PIC.
14617 if test "$host_cpu" = ia64; then
14618 # AIX 5 now supports IA64 processor
14619 lt_prog_compiler_static_CXX='-Bstatic'
14621 lt_prog_compiler_pic_CXX='-fPIC'
14624 amigaos*)
14625 case $host_cpu in
14626 powerpc)
14627 # see comment about AmigaOS4 .so support
14628 lt_prog_compiler_pic_CXX='-fPIC'
14630 m68k)
14631 # FIXME: we need at least 68020 code to build shared libraries, but
14632 # adding the `-m68020' flag to GCC prevents building anything better,
14633 # like `-m68040'.
14634 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14636 esac
14639 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14640 # PIC is the default for these OSes.
14642 mingw* | cygwin* | os2* | pw32* | cegcc*)
14643 # This hack is so that the source file can tell whether it is being
14644 # built for inclusion in a dll (and should export symbols for example).
14645 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14646 # (--disable-auto-import) libraries
14647 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14649 darwin* | rhapsody*)
14650 # PIC is the default on this platform
14651 # Common symbols not allowed in MH_DYLIB files
14652 lt_prog_compiler_pic_CXX='-fno-common'
14654 *djgpp*)
14655 # DJGPP does not support shared libraries at all
14656 lt_prog_compiler_pic_CXX=
14658 haiku*)
14659 # PIC is the default for Haiku.
14660 # The "-static" flag exists, but is broken.
14661 lt_prog_compiler_static_CXX=
14663 interix[3-9]*)
14664 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14665 # Instead, we relocate shared libraries at runtime.
14667 sysv4*MP*)
14668 if test -d /usr/nec; then
14669 lt_prog_compiler_pic_CXX=-Kconform_pic
14672 hpux*)
14673 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14674 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14675 # sets the default TLS model and affects inlining.
14676 case $host_cpu in
14677 hppa*64*)
14680 lt_prog_compiler_pic_CXX='-fPIC'
14682 esac
14684 *qnx* | *nto*)
14685 # QNX uses GNU C++, but need to define -shared option too, otherwise
14686 # it will coredump.
14687 lt_prog_compiler_pic_CXX='-fPIC -shared'
14690 lt_prog_compiler_pic_CXX='-fPIC'
14692 esac
14693 else
14694 case $host_os in
14695 aix[4-9]*)
14696 # All AIX code is PIC.
14697 if test "$host_cpu" = ia64; then
14698 # AIX 5 now supports IA64 processor
14699 lt_prog_compiler_static_CXX='-Bstatic'
14700 else
14701 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14704 chorus*)
14705 case $cc_basename in
14706 cxch68*)
14707 # Green Hills C++ Compiler
14708 # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
14710 esac
14712 dgux*)
14713 case $cc_basename in
14714 ec++*)
14715 lt_prog_compiler_pic_CXX='-KPIC'
14717 ghcx*)
14718 # Green Hills C++ Compiler
14719 lt_prog_compiler_pic_CXX='-pic'
14723 esac
14725 freebsd* | dragonfly*)
14726 # FreeBSD uses GNU C++
14728 hpux9* | hpux10* | hpux11*)
14729 case $cc_basename in
14730 CC*)
14731 lt_prog_compiler_wl_CXX='-Wl,'
14732 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14733 if test "$host_cpu" != ia64; then
14734 lt_prog_compiler_pic_CXX='+Z'
14737 aCC*)
14738 lt_prog_compiler_wl_CXX='-Wl,'
14739 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14740 case $host_cpu in
14741 hppa*64*|ia64*)
14742 # +Z the default
14745 lt_prog_compiler_pic_CXX='+Z'
14747 esac
14751 esac
14753 interix*)
14754 # This is c89, which is MS Visual C++ (no shared libs)
14755 # Anyone wants to do a port?
14757 irix5* | irix6* | nonstopux*)
14758 case $cc_basename in
14759 CC*)
14760 lt_prog_compiler_wl_CXX='-Wl,'
14761 lt_prog_compiler_static_CXX='-non_shared'
14762 # CC pic flag -KPIC is the default.
14766 esac
14768 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14769 case $cc_basename in
14770 KCC*)
14771 # KAI C++ Compiler
14772 lt_prog_compiler_wl_CXX='--backend -Wl,'
14773 lt_prog_compiler_pic_CXX='-fPIC'
14775 ecpc* )
14776 # old Intel C++ for x86_64 which still supported -KPIC.
14777 lt_prog_compiler_wl_CXX='-Wl,'
14778 lt_prog_compiler_pic_CXX='-KPIC'
14779 lt_prog_compiler_static_CXX='-static'
14781 icpc* )
14782 # Intel C++, used to be incompatible with GCC.
14783 # ICC 10 doesn't accept -KPIC any more.
14784 lt_prog_compiler_wl_CXX='-Wl,'
14785 lt_prog_compiler_pic_CXX='-fPIC'
14786 lt_prog_compiler_static_CXX='-static'
14788 pgCC* | pgcpp*)
14789 # Portland Group C++ compiler
14790 lt_prog_compiler_wl_CXX='-Wl,'
14791 lt_prog_compiler_pic_CXX='-fpic'
14792 lt_prog_compiler_static_CXX='-Bstatic'
14794 cxx*)
14795 # Compaq C++
14796 # Make sure the PIC flag is empty. It appears that all Alpha
14797 # Linux and Compaq Tru64 Unix objects are PIC.
14798 lt_prog_compiler_pic_CXX=
14799 lt_prog_compiler_static_CXX='-non_shared'
14801 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
14802 # IBM XL 8.0, 9.0 on PPC and BlueGene
14803 lt_prog_compiler_wl_CXX='-Wl,'
14804 lt_prog_compiler_pic_CXX='-qpic'
14805 lt_prog_compiler_static_CXX='-qstaticlink'
14808 case `$CC -V 2>&1 | sed 5q` in
14809 *Sun\ C*)
14810 # Sun C++ 5.9
14811 lt_prog_compiler_pic_CXX='-KPIC'
14812 lt_prog_compiler_static_CXX='-Bstatic'
14813 lt_prog_compiler_wl_CXX='-Qoption ld '
14815 esac
14817 esac
14819 lynxos*)
14821 m88k*)
14823 mvs*)
14824 case $cc_basename in
14825 cxx*)
14826 lt_prog_compiler_pic_CXX='-W c,exportall'
14830 esac
14832 netbsd*)
14834 *qnx* | *nto*)
14835 # QNX uses GNU C++, but need to define -shared option too, otherwise
14836 # it will coredump.
14837 lt_prog_compiler_pic_CXX='-fPIC -shared'
14839 osf3* | osf4* | osf5*)
14840 case $cc_basename in
14841 KCC*)
14842 lt_prog_compiler_wl_CXX='--backend -Wl,'
14844 RCC*)
14845 # Rational C++ 2.4.1
14846 lt_prog_compiler_pic_CXX='-pic'
14848 cxx*)
14849 # Digital/Compaq C++
14850 lt_prog_compiler_wl_CXX='-Wl,'
14851 # Make sure the PIC flag is empty. It appears that all Alpha
14852 # Linux and Compaq Tru64 Unix objects are PIC.
14853 lt_prog_compiler_pic_CXX=
14854 lt_prog_compiler_static_CXX='-non_shared'
14858 esac
14860 psos*)
14862 solaris*)
14863 case $cc_basename in
14864 CC*)
14865 # Sun C++ 4.2, 5.x and Centerline C++
14866 lt_prog_compiler_pic_CXX='-KPIC'
14867 lt_prog_compiler_static_CXX='-Bstatic'
14868 lt_prog_compiler_wl_CXX='-Qoption ld '
14870 gcx*)
14871 # Green Hills C++ Compiler
14872 lt_prog_compiler_pic_CXX='-PIC'
14876 esac
14878 sunos4*)
14879 case $cc_basename in
14880 CC*)
14881 # Sun C++ 4.x
14882 lt_prog_compiler_pic_CXX='-pic'
14883 lt_prog_compiler_static_CXX='-Bstatic'
14885 lcc*)
14886 # Lucid
14887 lt_prog_compiler_pic_CXX='-pic'
14891 esac
14893 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14894 case $cc_basename in
14895 CC*)
14896 lt_prog_compiler_wl_CXX='-Wl,'
14897 lt_prog_compiler_pic_CXX='-KPIC'
14898 lt_prog_compiler_static_CXX='-Bstatic'
14900 esac
14902 tandem*)
14903 case $cc_basename in
14904 NCC*)
14905 # NonStop-UX NCC 3.20
14906 lt_prog_compiler_pic_CXX='-KPIC'
14910 esac
14912 vxworks*)
14915 lt_prog_compiler_can_build_shared_CXX=no
14917 esac
14920 case $host_os in
14921 # For platforms which do not support PIC, -DPIC is meaningless:
14922 *djgpp*)
14923 lt_prog_compiler_pic_CXX=
14926 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14928 esac
14929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
14930 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
14935 # Check to make sure the PIC flag actually works.
14937 if test -n "$lt_prog_compiler_pic_CXX"; then
14938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14939 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14940 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
14941 $as_echo_n "(cached) " >&6
14942 else
14943 lt_cv_prog_compiler_pic_works_CXX=no
14944 ac_outfile=conftest.$ac_objext
14945 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14946 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14947 # Insert the option either (1) after the last *FLAGS variable, or
14948 # (2) before a word containing "conftest.", or (3) at the end.
14949 # Note that $ac_compile itself does not contain backslashes and begins
14950 # with a dollar sign (not a hyphen), so the echo should work correctly.
14951 # The option is referenced via a variable to avoid confusing sed.
14952 lt_compile=`echo "$ac_compile" | $SED \
14953 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14954 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14955 -e 's:$: $lt_compiler_flag:'`
14956 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14957 (eval "$lt_compile" 2>conftest.err)
14958 ac_status=$?
14959 cat conftest.err >&5
14960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14961 if (exit $ac_status) && test -s "$ac_outfile"; then
14962 # The compiler can only warn and ignore the option if not recognized
14963 # So say no if there are warnings other than the usual output.
14964 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14965 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14966 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14967 lt_cv_prog_compiler_pic_works_CXX=yes
14970 $RM conftest*
14973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14974 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14976 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14977 case $lt_prog_compiler_pic_CXX in
14978 "" | " "*) ;;
14979 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14980 esac
14981 else
14982 lt_prog_compiler_pic_CXX=
14983 lt_prog_compiler_can_build_shared_CXX=no
14991 # Check to make sure the static flag actually works.
14993 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14995 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14996 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
14997 $as_echo_n "(cached) " >&6
14998 else
14999 lt_cv_prog_compiler_static_works_CXX=no
15000 save_LDFLAGS="$LDFLAGS"
15001 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15002 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15003 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15004 # The linker can only warn and ignore the option if not recognized
15005 # So say no if there are warnings
15006 if test -s conftest.err; then
15007 # Append any errors to the config.log.
15008 cat conftest.err 1>&5
15009 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15010 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15011 if diff conftest.exp conftest.er2 >/dev/null; then
15012 lt_cv_prog_compiler_static_works_CXX=yes
15014 else
15015 lt_cv_prog_compiler_static_works_CXX=yes
15018 $RM -r conftest*
15019 LDFLAGS="$save_LDFLAGS"
15022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
15023 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
15025 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
15027 else
15028 lt_prog_compiler_static_CXX=
15034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15035 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15036 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15037 $as_echo_n "(cached) " >&6
15038 else
15039 lt_cv_prog_compiler_c_o_CXX=no
15040 $RM -r conftest 2>/dev/null
15041 mkdir conftest
15042 cd conftest
15043 mkdir out
15044 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15046 lt_compiler_flag="-o out/conftest2.$ac_objext"
15047 # Insert the option either (1) after the last *FLAGS variable, or
15048 # (2) before a word containing "conftest.", or (3) at the end.
15049 # Note that $ac_compile itself does not contain backslashes and begins
15050 # with a dollar sign (not a hyphen), so the echo should work correctly.
15051 lt_compile=`echo "$ac_compile" | $SED \
15052 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15053 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15054 -e 's:$: $lt_compiler_flag:'`
15055 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15056 (eval "$lt_compile" 2>out/conftest.err)
15057 ac_status=$?
15058 cat out/conftest.err >&5
15059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15060 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15061 then
15062 # The compiler can only warn and ignore the option if not recognized
15063 # So say no if there are warnings
15064 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15065 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15066 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15067 lt_cv_prog_compiler_c_o_CXX=yes
15070 chmod u+w . 2>&5
15071 $RM conftest*
15072 # SGI C++ compiler will create directory out/ii_files/ for
15073 # template instantiation
15074 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15075 $RM out/* && rmdir out
15076 cd ..
15077 $RM -r conftest
15078 $RM conftest*
15081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15082 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15087 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15088 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15089 $as_echo_n "(cached) " >&6
15090 else
15091 lt_cv_prog_compiler_c_o_CXX=no
15092 $RM -r conftest 2>/dev/null
15093 mkdir conftest
15094 cd conftest
15095 mkdir out
15096 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15098 lt_compiler_flag="-o out/conftest2.$ac_objext"
15099 # Insert the option either (1) after the last *FLAGS variable, or
15100 # (2) before a word containing "conftest.", or (3) at the end.
15101 # Note that $ac_compile itself does not contain backslashes and begins
15102 # with a dollar sign (not a hyphen), so the echo should work correctly.
15103 lt_compile=`echo "$ac_compile" | $SED \
15104 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15105 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15106 -e 's:$: $lt_compiler_flag:'`
15107 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15108 (eval "$lt_compile" 2>out/conftest.err)
15109 ac_status=$?
15110 cat out/conftest.err >&5
15111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15112 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15113 then
15114 # The compiler can only warn and ignore the option if not recognized
15115 # So say no if there are warnings
15116 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15117 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15118 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15119 lt_cv_prog_compiler_c_o_CXX=yes
15122 chmod u+w . 2>&5
15123 $RM conftest*
15124 # SGI C++ compiler will create directory out/ii_files/ for
15125 # template instantiation
15126 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15127 $RM out/* && rmdir out
15128 cd ..
15129 $RM -r conftest
15130 $RM conftest*
15133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15134 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15139 hard_links="nottested"
15140 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
15141 # do not overwrite the value of need_locks provided by the user
15142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15143 $as_echo_n "checking if we can lock with hard links... " >&6; }
15144 hard_links=yes
15145 $RM conftest*
15146 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15147 touch conftest.a
15148 ln conftest.a conftest.b 2>&5 || hard_links=no
15149 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15151 $as_echo "$hard_links" >&6; }
15152 if test "$hard_links" = no; then
15153 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15154 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15155 need_locks=warn
15157 else
15158 need_locks=no
15163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15164 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15166 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15167 case $host_os in
15168 aix[4-9]*)
15169 # If we're using GNU nm, then we don't want the "-C" option.
15170 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15171 # Also, AIX nm treats weak defined symbols like other global defined
15172 # symbols, whereas GNU nm marks them as "W".
15173 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15174 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
15175 else
15176 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
15179 pw32*)
15180 export_symbols_cmds_CXX="$ltdll_cmds"
15182 cygwin* | mingw* | cegcc*)
15183 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
15186 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15188 esac
15189 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15192 $as_echo "$ld_shlibs_CXX" >&6; }
15193 test "$ld_shlibs_CXX" = no && can_build_shared=no
15195 with_gnu_ld_CXX=$with_gnu_ld
15203 # Do we need to explicitly link libc?
15205 case "x$archive_cmds_need_lc_CXX" in
15206 x|xyes)
15207 # Assume -lc should be added
15208 archive_cmds_need_lc_CXX=yes
15210 if test "$enable_shared" = yes && test "$GCC" = yes; then
15211 case $archive_cmds_CXX in
15212 *'~'*)
15213 # FIXME: we may have to deal with multi-command sequences.
15215 '$CC '*)
15216 # Test whether the compiler implicitly links with -lc since on some
15217 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15218 # to ld, don't add -lc before -lgcc.
15219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15220 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15221 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
15222 $as_echo_n "(cached) " >&6
15223 else
15224 $RM conftest*
15225 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15227 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15228 (eval $ac_compile) 2>&5
15229 ac_status=$?
15230 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15231 test $ac_status = 0; } 2>conftest.err; then
15232 soname=conftest
15233 lib=conftest
15234 libobjs=conftest.$ac_objext
15235 deplibs=
15236 wl=$lt_prog_compiler_wl_CXX
15237 pic_flag=$lt_prog_compiler_pic_CXX
15238 compiler_flags=-v
15239 linker_flags=-v
15240 verstring=
15241 output_objdir=.
15242 libname=conftest
15243 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15244 allow_undefined_flag_CXX=
15245 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15246 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15247 ac_status=$?
15248 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15249 test $ac_status = 0; }
15250 then
15251 lt_cv_archive_cmds_need_lc_CXX=no
15252 else
15253 lt_cv_archive_cmds_need_lc_CXX=yes
15255 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15256 else
15257 cat conftest.err 1>&5
15259 $RM conftest*
15262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
15263 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
15264 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
15266 esac
15269 esac
15334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15335 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15337 library_names_spec=
15338 libname_spec='lib$name'
15339 soname_spec=
15340 shrext_cmds=".so"
15341 postinstall_cmds=
15342 postuninstall_cmds=
15343 finish_cmds=
15344 finish_eval=
15345 shlibpath_var=
15346 shlibpath_overrides_runpath=unknown
15347 version_type=none
15348 dynamic_linker="$host_os ld.so"
15349 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15350 need_lib_prefix=unknown
15351 hardcode_into_libs=no
15353 # when you set need_version to no, make sure it does not cause -set_version
15354 # flags to be left without arguments
15355 need_version=unknown
15357 case $host_os in
15358 aix3*)
15359 version_type=linux
15360 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15361 shlibpath_var=LIBPATH
15363 # AIX 3 has no versioning support, so we append a major version to the name.
15364 soname_spec='${libname}${release}${shared_ext}$major'
15367 aix[4-9]*)
15368 version_type=linux
15369 need_lib_prefix=no
15370 need_version=no
15371 hardcode_into_libs=yes
15372 if test "$host_cpu" = ia64; then
15373 # AIX 5 supports IA64
15374 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15375 shlibpath_var=LD_LIBRARY_PATH
15376 else
15377 # With GCC up to 2.95.x, collect2 would create an import file
15378 # for dependence libraries. The import file would start with
15379 # the line `#! .'. This would cause the generated library to
15380 # depend on `.', always an invalid library. This was fixed in
15381 # development snapshots of GCC prior to 3.0.
15382 case $host_os in
15383 aix4 | aix4.[01] | aix4.[01].*)
15384 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15385 echo ' yes '
15386 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15388 else
15389 can_build_shared=no
15392 esac
15393 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15394 # soname into executable. Probably we can add versioning support to
15395 # collect2, so additional links can be useful in future.
15396 if test "$aix_use_runtimelinking" = yes; then
15397 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15398 # instead of lib<name>.a to let people know that these are not
15399 # typical AIX shared libraries.
15400 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15401 else
15402 # We preserve .a as extension for shared libraries through AIX4.2
15403 # and later when we are not doing run time linking.
15404 library_names_spec='${libname}${release}.a $libname.a'
15405 soname_spec='${libname}${release}${shared_ext}$major'
15407 shlibpath_var=LIBPATH
15411 amigaos*)
15412 case $host_cpu in
15413 powerpc)
15414 # Since July 2007 AmigaOS4 officially supports .so libraries.
15415 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15416 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15418 m68k)
15419 library_names_spec='$libname.ixlibrary $libname.a'
15420 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15421 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $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'
15423 esac
15426 beos*)
15427 library_names_spec='${libname}${shared_ext}'
15428 dynamic_linker="$host_os ld.so"
15429 shlibpath_var=LIBRARY_PATH
15432 bsdi[45]*)
15433 version_type=linux
15434 need_version=no
15435 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15436 soname_spec='${libname}${release}${shared_ext}$major'
15437 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15438 shlibpath_var=LD_LIBRARY_PATH
15439 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15440 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15441 # the default ld.so.conf also contains /usr/contrib/lib and
15442 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15443 # libtool to hard-code these into programs
15446 cygwin* | mingw* | pw32* | cegcc*)
15447 version_type=windows
15448 shrext_cmds=".dll"
15449 need_version=no
15450 need_lib_prefix=no
15452 case $GCC,$host_os in
15453 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
15454 library_names_spec='$libname.dll.a'
15455 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15456 postinstall_cmds='base_file=`basename \${file}`~
15457 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15458 dldir=$destdir/`dirname \$dlpath`~
15459 test -d \$dldir || mkdir -p \$dldir~
15460 $install_prog $dir/$dlname \$dldir/$dlname~
15461 chmod a+x \$dldir/$dlname~
15462 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15463 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15465 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15466 dlpath=$dir/\$dldll~
15467 $RM \$dlpath'
15468 shlibpath_overrides_runpath=yes
15470 case $host_os in
15471 cygwin*)
15472 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15473 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15476 mingw* | cegcc*)
15477 # MinGW DLLs use traditional 'lib' prefix
15478 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15480 pw32*)
15481 # pw32 DLLs use 'pw' prefix rather than 'lib'
15482 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15484 esac
15488 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15490 esac
15491 dynamic_linker='Win32 ld.exe'
15492 # FIXME: first we should search . and the directory the executable is in
15493 shlibpath_var=PATH
15496 darwin* | rhapsody*)
15497 dynamic_linker="$host_os dyld"
15498 version_type=darwin
15499 need_lib_prefix=no
15500 need_version=no
15501 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15502 soname_spec='${libname}${release}${major}$shared_ext'
15503 shlibpath_overrides_runpath=yes
15504 shlibpath_var=DYLD_LIBRARY_PATH
15505 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15507 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15510 dgux*)
15511 version_type=linux
15512 need_lib_prefix=no
15513 need_version=no
15514 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15515 soname_spec='${libname}${release}${shared_ext}$major'
15516 shlibpath_var=LD_LIBRARY_PATH
15519 freebsd* | dragonfly*)
15520 # DragonFly does not have aout. When/if they implement a new
15521 # versioning mechanism, adjust this.
15522 if test -x /usr/bin/objformat; then
15523 objformat=`/usr/bin/objformat`
15524 else
15525 case $host_os in
15526 freebsd[23].*) objformat=aout ;;
15527 *) objformat=elf ;;
15528 esac
15530 version_type=freebsd-$objformat
15531 case $version_type in
15532 freebsd-elf*)
15533 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15534 need_version=no
15535 need_lib_prefix=no
15537 freebsd-*)
15538 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15539 need_version=yes
15541 esac
15542 shlibpath_var=LD_LIBRARY_PATH
15543 case $host_os in
15544 freebsd2.*)
15545 shlibpath_overrides_runpath=yes
15547 freebsd3.[01]* | freebsdelf3.[01]*)
15548 shlibpath_overrides_runpath=yes
15549 hardcode_into_libs=yes
15551 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15552 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15553 shlibpath_overrides_runpath=no
15554 hardcode_into_libs=yes
15556 *) # from 4.6 on, and DragonFly
15557 shlibpath_overrides_runpath=yes
15558 hardcode_into_libs=yes
15560 esac
15563 haiku*)
15564 version_type=linux
15565 need_lib_prefix=no
15566 need_version=no
15567 dynamic_linker="$host_os runtime_loader"
15568 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15569 soname_spec='${libname}${release}${shared_ext}$major'
15570 shlibpath_var=LIBRARY_PATH
15571 shlibpath_overrides_runpath=yes
15572 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15573 hardcode_into_libs=yes
15576 hpux9* | hpux10* | hpux11*)
15577 # Give a soname corresponding to the major version so that dld.sl refuses to
15578 # link against other versions.
15579 version_type=sunos
15580 need_lib_prefix=no
15581 need_version=no
15582 case $host_cpu in
15583 ia64*)
15584 shrext_cmds='.so'
15585 hardcode_into_libs=yes
15586 dynamic_linker="$host_os dld.so"
15587 shlibpath_var=LD_LIBRARY_PATH
15588 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15589 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15590 soname_spec='${libname}${release}${shared_ext}$major'
15591 if test "X$HPUX_IA64_MODE" = X32; then
15592 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15593 else
15594 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15596 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15598 hppa*64*)
15599 shrext_cmds='.sl'
15600 hardcode_into_libs=yes
15601 dynamic_linker="$host_os dld.sl"
15602 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15603 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15604 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15605 soname_spec='${libname}${release}${shared_ext}$major'
15606 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15607 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15610 shrext_cmds='.sl'
15611 dynamic_linker="$host_os dld.sl"
15612 shlibpath_var=SHLIB_PATH
15613 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15614 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15615 soname_spec='${libname}${release}${shared_ext}$major'
15617 esac
15618 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15619 postinstall_cmds='chmod 555 $lib'
15620 # or fails outright, so override atomically:
15621 install_override_mode=555
15624 interix[3-9]*)
15625 version_type=linux
15626 need_lib_prefix=no
15627 need_version=no
15628 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15629 soname_spec='${libname}${release}${shared_ext}$major'
15630 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15631 shlibpath_var=LD_LIBRARY_PATH
15632 shlibpath_overrides_runpath=no
15633 hardcode_into_libs=yes
15636 irix5* | irix6* | nonstopux*)
15637 case $host_os in
15638 nonstopux*) version_type=nonstopux ;;
15640 if test "$lt_cv_prog_gnu_ld" = yes; then
15641 version_type=linux
15642 else
15643 version_type=irix
15644 fi ;;
15645 esac
15646 need_lib_prefix=no
15647 need_version=no
15648 soname_spec='${libname}${release}${shared_ext}$major'
15649 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15650 case $host_os in
15651 irix5* | nonstopux*)
15652 libsuff= shlibsuff=
15655 case $LD in # libtool.m4 will add one of these switches to LD
15656 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15657 libsuff= shlibsuff= libmagic=32-bit;;
15658 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15659 libsuff=32 shlibsuff=N32 libmagic=N32;;
15660 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15661 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15662 *) libsuff= shlibsuff= libmagic=never-match;;
15663 esac
15665 esac
15666 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15667 shlibpath_overrides_runpath=no
15668 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15669 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15670 hardcode_into_libs=yes
15673 # No shared lib support for Linux oldld, aout, or coff.
15674 linux*oldld* | linux*aout* | linux*coff*)
15675 dynamic_linker=no
15678 # This must be Linux ELF.
15680 # uclinux* changes (here and below) have been submitted to the libtool
15681 # project, but have not yet been accepted: they are GCC-local changes
15682 # for the time being. (See
15683 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
15684 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi)
15685 version_type=linux
15686 need_lib_prefix=no
15687 need_version=no
15688 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15689 soname_spec='${libname}${release}${shared_ext}$major'
15690 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15691 shlibpath_var=LD_LIBRARY_PATH
15692 shlibpath_overrides_runpath=no
15694 # Some binutils ld are patched to set DT_RUNPATH
15695 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
15696 $as_echo_n "(cached) " >&6
15697 else
15698 lt_cv_shlibpath_overrides_runpath=no
15699 save_LDFLAGS=$LDFLAGS
15700 save_libdir=$libdir
15701 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15702 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15703 if test x$gcc_no_link = xyes; then
15704 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
15706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15707 /* end confdefs.h. */
15710 main ()
15714 return 0;
15716 _ACEOF
15717 if ac_fn_cxx_try_link "$LINENO"; then :
15718 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15719 lt_cv_shlibpath_overrides_runpath=yes
15722 rm -f core conftest.err conftest.$ac_objext \
15723 conftest$ac_exeext conftest.$ac_ext
15724 LDFLAGS=$save_LDFLAGS
15725 libdir=$save_libdir
15729 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15731 # This implies no fast_install, which is unacceptable.
15732 # Some rework will be needed to allow for fast_install
15733 # before this can be enabled.
15734 hardcode_into_libs=yes
15736 # Append ld.so.conf contents to the search path
15737 if test -f /etc/ld.so.conf; then
15738 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' ' '`
15739 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15742 # We used to test for /lib/ld.so.1 and disable shared libraries on
15743 # powerpc, because MkLinux only supported shared libraries with the
15744 # GNU dynamic linker. Since this was broken with cross compilers,
15745 # most powerpc-linux boxes support dynamic linking these days and
15746 # people can always --disable-shared, the test was removed, and we
15747 # assume the GNU/Linux dynamic linker is in use.
15748 dynamic_linker='GNU/Linux ld.so'
15751 netbsd*)
15752 version_type=sunos
15753 need_lib_prefix=no
15754 need_version=no
15755 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15756 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15757 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15758 dynamic_linker='NetBSD (a.out) ld.so'
15759 else
15760 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15761 soname_spec='${libname}${release}${shared_ext}$major'
15762 dynamic_linker='NetBSD ld.elf_so'
15764 shlibpath_var=LD_LIBRARY_PATH
15765 shlibpath_overrides_runpath=yes
15766 hardcode_into_libs=yes
15769 newsos6)
15770 version_type=linux
15771 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15772 shlibpath_var=LD_LIBRARY_PATH
15773 shlibpath_overrides_runpath=yes
15776 *nto* | *qnx*)
15777 version_type=qnx
15778 need_lib_prefix=no
15779 need_version=no
15780 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15781 soname_spec='${libname}${release}${shared_ext}$major'
15782 shlibpath_var=LD_LIBRARY_PATH
15783 shlibpath_overrides_runpath=no
15784 hardcode_into_libs=yes
15785 dynamic_linker='ldqnx.so'
15788 openbsd*)
15789 version_type=sunos
15790 sys_lib_dlsearch_path_spec="/usr/lib"
15791 need_lib_prefix=no
15792 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15793 case $host_os in
15794 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15795 *) need_version=no ;;
15796 esac
15797 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15798 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15799 shlibpath_var=LD_LIBRARY_PATH
15800 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15801 case $host_os in
15802 openbsd2.[89] | openbsd2.[89].*)
15803 shlibpath_overrides_runpath=no
15806 shlibpath_overrides_runpath=yes
15808 esac
15809 else
15810 shlibpath_overrides_runpath=yes
15814 os2*)
15815 libname_spec='$name'
15816 shrext_cmds=".dll"
15817 need_lib_prefix=no
15818 library_names_spec='$libname${shared_ext} $libname.a'
15819 dynamic_linker='OS/2 ld.exe'
15820 shlibpath_var=LIBPATH
15823 osf3* | osf4* | osf5*)
15824 version_type=osf
15825 need_lib_prefix=no
15826 need_version=no
15827 soname_spec='${libname}${release}${shared_ext}$major'
15828 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15829 shlibpath_var=LD_LIBRARY_PATH
15830 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15831 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15834 rdos*)
15835 dynamic_linker=no
15838 solaris*)
15839 version_type=linux
15840 need_lib_prefix=no
15841 need_version=no
15842 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15843 soname_spec='${libname}${release}${shared_ext}$major'
15844 shlibpath_var=LD_LIBRARY_PATH
15845 shlibpath_overrides_runpath=yes
15846 hardcode_into_libs=yes
15847 # ldd complains unless libraries are executable
15848 postinstall_cmds='chmod +x $lib'
15851 sunos4*)
15852 version_type=sunos
15853 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15854 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15855 shlibpath_var=LD_LIBRARY_PATH
15856 shlibpath_overrides_runpath=yes
15857 if test "$with_gnu_ld" = yes; then
15858 need_lib_prefix=no
15860 need_version=yes
15863 sysv4 | sysv4.3*)
15864 version_type=linux
15865 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15866 soname_spec='${libname}${release}${shared_ext}$major'
15867 shlibpath_var=LD_LIBRARY_PATH
15868 case $host_vendor in
15869 sni)
15870 shlibpath_overrides_runpath=no
15871 need_lib_prefix=no
15872 runpath_var=LD_RUN_PATH
15874 siemens)
15875 need_lib_prefix=no
15877 motorola)
15878 need_lib_prefix=no
15879 need_version=no
15880 shlibpath_overrides_runpath=no
15881 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15883 esac
15886 sysv4*MP*)
15887 if test -d /usr/nec ;then
15888 version_type=linux
15889 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15890 soname_spec='$libname${shared_ext}.$major'
15891 shlibpath_var=LD_LIBRARY_PATH
15895 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15896 version_type=freebsd-elf
15897 need_lib_prefix=no
15898 need_version=no
15899 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15900 soname_spec='${libname}${release}${shared_ext}$major'
15901 shlibpath_var=LD_LIBRARY_PATH
15902 shlibpath_overrides_runpath=yes
15903 hardcode_into_libs=yes
15904 if test "$with_gnu_ld" = yes; then
15905 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15906 else
15907 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15908 case $host_os in
15909 sco3.2v5*)
15910 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15912 esac
15914 sys_lib_dlsearch_path_spec='/usr/lib'
15917 tpf*)
15918 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15919 version_type=linux
15920 need_lib_prefix=no
15921 need_version=no
15922 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15923 shlibpath_var=LD_LIBRARY_PATH
15924 shlibpath_overrides_runpath=no
15925 hardcode_into_libs=yes
15928 uts4*)
15929 version_type=linux
15930 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15931 soname_spec='${libname}${release}${shared_ext}$major'
15932 shlibpath_var=LD_LIBRARY_PATH
15935 # Shared libraries for VwWorks, >= 7 only at this stage
15936 # and (fpic) still incompatible with "large" code models
15937 # in a few configurations. Only for RTP mode in any case,
15938 # and upon explicit request at configure time.
15939 vxworks7*)
15940 dynamic_linker=no
15941 case ${with_multisubdir}-${enable_shared} in
15942 *large*)
15944 *mrtp*-yes)
15945 version_type=linux
15946 need_lib_prefix=no
15947 need_version=no
15948 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15949 soname_spec='${libname}${release}${shared_ext}$major'
15950 dynamic_linker="$host_os module_loader"
15952 esac
15955 dynamic_linker=no
15957 esac
15958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15959 $as_echo "$dynamic_linker" >&6; }
15960 test "$dynamic_linker" = no && can_build_shared=no
15962 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15963 if test "$GCC" = yes; then
15964 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15967 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15968 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15970 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15971 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16012 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16013 hardcode_action_CXX=
16014 if test -n "$hardcode_libdir_flag_spec_CXX" ||
16015 test -n "$runpath_var_CXX" ||
16016 test "X$hardcode_automatic_CXX" = "Xyes" ; then
16018 # We can hardcode non-existent directories.
16019 if test "$hardcode_direct_CXX" != no &&
16020 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16021 # have to relink, otherwise we might link with an installed library
16022 # when we should be linking with a yet-to-be-installed one
16023 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
16024 test "$hardcode_minus_L_CXX" != no; then
16025 # Linking always hardcodes the temporary library directory.
16026 hardcode_action_CXX=relink
16027 else
16028 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16029 hardcode_action_CXX=immediate
16031 else
16032 # We cannot hardcode anything, or else we can only hardcode existing
16033 # directories.
16034 hardcode_action_CXX=unsupported
16036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
16037 $as_echo "$hardcode_action_CXX" >&6; }
16039 if test "$hardcode_action_CXX" = relink ||
16040 test "$inherit_rpath_CXX" = yes; then
16041 # Fast installation is not supported
16042 enable_fast_install=no
16043 elif test "$shlibpath_overrides_runpath" = yes ||
16044 test "$enable_shared" = no; then
16045 # Fast installation is not necessary
16046 enable_fast_install=needless
16055 fi # test -n "$compiler"
16057 CC=$lt_save_CC
16058 LDCXX=$LD
16059 LD=$lt_save_LD
16060 GCC=$lt_save_GCC
16061 with_gnu_ld=$lt_save_with_gnu_ld
16062 lt_cv_path_LDCXX=$lt_cv_path_LD
16063 lt_cv_path_LD=$lt_save_path_LD
16064 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
16065 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
16066 fi # test "$_lt_caught_CXX_error" != yes
16068 ac_ext=c
16069 ac_cpp='$CPP $CPPFLAGS'
16070 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16071 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16072 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16086 ac_config_commands="$ac_config_commands libtool"
16091 # Only expand once:
16095 # target_noncanonical variables...
16097 case ${build_alias} in
16098 "") build_noncanonical=${build} ;;
16099 *) build_noncanonical=${build_alias} ;;
16100 esac
16102 case ${host_alias} in
16103 "") host_noncanonical=${build_noncanonical} ;;
16104 *) host_noncanonical=${host_alias} ;;
16105 esac
16109 case ${target_alias} in
16110 "") target_noncanonical=${host_noncanonical} ;;
16111 *) target_noncanonical=${target_alias} ;;
16112 esac
16117 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
16118 # have matching libraries, they should use host libraries: Makefile.tpl
16119 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
16120 # However, they still use the build modules, because the corresponding
16121 # host modules (e.g. bison) are only built for the host when bootstrap
16122 # finishes. So:
16123 # - build_subdir is where we find build modules, and never changes.
16124 # - build_libsubdir is where we find build libraries, and can be overridden.
16126 # Prefix 'build-' so this never conflicts with target_subdir.
16127 build_subdir="build-${build_noncanonical}"
16129 # Check whether --with-build-libsubdir was given.
16130 if test "${with_build_libsubdir+set}" = set; then :
16131 withval=$with_build_libsubdir; build_libsubdir="$withval"
16132 else
16133 build_libsubdir="$build_subdir"
16136 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
16137 if ( test $srcdir = . && test -d gcc ) \
16138 || test -d $srcdir/../host-${host_noncanonical}; then
16139 host_subdir="host-${host_noncanonical}"
16140 else
16141 host_subdir=.
16143 # No prefix.
16144 target_subdir=${target_noncanonical}
16147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
16148 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
16149 # Check whether --enable-version-specific-runtime-libs was given.
16150 if test "${enable_version_specific_runtime_libs+set}" = set; then :
16151 enableval=$enable_version_specific_runtime_libs; case "$enableval" in
16152 yes) version_specific_libs=yes ;;
16153 no) version_specific_libs=no ;;
16154 *) as_fn_error $? "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
16155 esac
16156 else
16157 version_specific_libs=no
16160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
16161 $as_echo "$version_specific_libs" >&6; }
16163 toolexecdir=no
16164 toolexeclibdir=no
16166 # Calculate toolexeclibdir
16167 # Also toolexecdir, though it's only used in toolexeclibdir
16168 case ${version_specific_libs} in
16169 yes)
16170 # Need the gcc compiler version to know where to install libraries
16171 # and header files if --enable-version-specific-runtime-libs option
16172 # is selected.
16173 toolexecdir='$(libdir)/gcc/$(target_noncanonical)'
16174 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
16177 if test -n "$with_cross_host" &&
16178 test x"$with_cross_host" != x"no"; then
16179 # Install a library built with a cross compiler in tooldir, not libdir.
16180 toolexecdir='$(exec_prefix)/$(target_noncanonical)'
16181 toolexeclibdir='$(toolexecdir)/lib'
16182 else
16183 toolexecdir='$(libdir)/gcc-lib/$(target_noncanonical)'
16184 toolexeclibdir='$(libdir)'
16186 multi_os_directory=`$CC -print-multi-os-directory`
16187 case $multi_os_directory in
16188 .) ;; # Avoid trailing /.
16189 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
16190 esac
16192 esac
16197 if test -n "$with_target_subdir"; then
16198 TARGET_LIBRARY_TRUE=
16199 TARGET_LIBRARY_FALSE='#'
16200 else
16201 TARGET_LIBRARY_TRUE='#'
16202 TARGET_LIBRARY_FALSE=
16206 ac_config_files="$ac_config_files libformat_parser/Makefile"
16209 ac_config_files="$ac_config_files libproc_macro_internal/Makefile"
16213 get_gcc_base_ver="cat"
16215 # Check whether --with-gcc-major-version-only was given.
16216 if test "${with_gcc_major_version_only+set}" = set; then :
16217 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
16218 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
16226 { $as_echo "$as_me:${as_lineno-$LINENO}: libgrust has been configured." >&5
16227 $as_echo "$as_me: libgrust has been configured." >&6;}
16229 cat >confcache <<\_ACEOF
16230 # This file is a shell script that caches the results of configure
16231 # tests run on this system so they can be shared between configure
16232 # scripts and configure runs, see configure's option --config-cache.
16233 # It is not useful on other systems. If it contains results you don't
16234 # want to keep, you may remove or edit it.
16236 # config.status only pays attention to the cache file if you give it
16237 # the --recheck option to rerun configure.
16239 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16240 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16241 # following values.
16243 _ACEOF
16245 # The following way of writing the cache mishandles newlines in values,
16246 # but we know of no workaround that is simple, portable, and efficient.
16247 # So, we kill variables containing newlines.
16248 # Ultrix sh set writes to stderr and can't be redirected directly,
16249 # and sets the high bit in the cache file unless we assign to the vars.
16251 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16252 eval ac_val=\$$ac_var
16253 case $ac_val in #(
16254 *${as_nl}*)
16255 case $ac_var in #(
16256 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16257 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16258 esac
16259 case $ac_var in #(
16260 _ | IFS | as_nl) ;; #(
16261 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16262 *) { eval $ac_var=; unset $ac_var;} ;;
16263 esac ;;
16264 esac
16265 done
16267 (set) 2>&1 |
16268 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16269 *${as_nl}ac_space=\ *)
16270 # `set' does not quote correctly, so add quotes: double-quote
16271 # substitution turns \\\\ into \\, and sed turns \\ into \.
16272 sed -n \
16273 "s/'/'\\\\''/g;
16274 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16275 ;; #(
16277 # `set' quotes correctly as required by POSIX, so do not add quotes.
16278 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16280 esac |
16281 sort
16283 sed '
16284 /^ac_cv_env_/b end
16285 t clear
16286 :clear
16287 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16288 t end
16289 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16290 :end' >>confcache
16291 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16292 if test -w "$cache_file"; then
16293 if test "x$cache_file" != "x/dev/null"; then
16294 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16295 $as_echo "$as_me: updating cache $cache_file" >&6;}
16296 if test ! -f "$cache_file" || test -h "$cache_file"; then
16297 cat confcache >"$cache_file"
16298 else
16299 case $cache_file in #(
16300 */* | ?:*)
16301 mv -f confcache "$cache_file"$$ &&
16302 mv -f "$cache_file"$$ "$cache_file" ;; #(
16304 mv -f confcache "$cache_file" ;;
16305 esac
16308 else
16309 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16310 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16313 rm -f confcache
16315 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16316 # Let make expand exec_prefix.
16317 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16319 # Transform confdefs.h into DEFS.
16320 # Protect against shell expansion while executing Makefile rules.
16321 # Protect against Makefile macro expansion.
16323 # If the first sed substitution is executed (which looks for macros that
16324 # take arguments), then branch to the quote section. Otherwise,
16325 # look for a macro that doesn't take arguments.
16326 ac_script='
16327 :mline
16328 /\\$/{
16330 s,\\\n,,
16331 b mline
16333 t clear
16334 :clear
16335 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
16336 t quote
16337 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
16338 t quote
16339 b any
16340 :quote
16341 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
16342 s/\[/\\&/g
16343 s/\]/\\&/g
16344 s/\$/$$/g
16346 :any
16349 s/^\n//
16350 s/\n/ /g
16354 DEFS=`sed -n "$ac_script" confdefs.h`
16357 ac_libobjs=
16358 ac_ltlibobjs=
16360 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16361 # 1. Remove the extension, and $U if already installed.
16362 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16363 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16364 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16365 # will be set to the directory where LIBOBJS objects are built.
16366 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16367 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16368 done
16369 LIBOBJS=$ac_libobjs
16371 LTLIBOBJS=$ac_ltlibobjs
16374 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
16375 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
16376 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
16379 $as_echo_n "checking that generated files are newer than configure... " >&6; }
16380 if test -n "$am_sleep_pid"; then
16381 # Hide warnings about reused PIDs.
16382 wait $am_sleep_pid 2>/dev/null
16384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
16385 $as_echo "done" >&6; }
16386 if test -n "$EXEEXT"; then
16387 am__EXEEXT_TRUE=
16388 am__EXEEXT_FALSE='#'
16389 else
16390 am__EXEEXT_TRUE='#'
16391 am__EXEEXT_FALSE=
16394 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16395 as_fn_error $? "conditional \"AMDEP\" was never defined.
16396 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16398 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16399 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
16400 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16402 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16403 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
16404 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16406 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
16407 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
16408 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16410 if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
16411 as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined.
16412 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16414 if test -z "${TARGET_LIBRARY_TRUE}" && test -z "${TARGET_LIBRARY_FALSE}"; then
16415 as_fn_error $? "conditional \"TARGET_LIBRARY\" was never defined.
16416 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16419 : "${CONFIG_STATUS=./config.status}"
16420 ac_write_fail=0
16421 ac_clean_files_save=$ac_clean_files
16422 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16423 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16424 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16425 as_write_fail=0
16426 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16427 #! $SHELL
16428 # Generated by $as_me.
16429 # Run this file to recreate the current configuration.
16430 # Compiler output produced by configure, useful for debugging
16431 # configure, is in config.log if it exists.
16433 debug=false
16434 ac_cs_recheck=false
16435 ac_cs_silent=false
16437 SHELL=\${CONFIG_SHELL-$SHELL}
16438 export SHELL
16439 _ASEOF
16440 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16441 ## -------------------- ##
16442 ## M4sh Initialization. ##
16443 ## -------------------- ##
16445 # Be more Bourne compatible
16446 DUALCASE=1; export DUALCASE # for MKS sh
16447 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16448 emulate sh
16449 NULLCMD=:
16450 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16451 # is contrary to our usage. Disable this feature.
16452 alias -g '${1+"$@"}'='"$@"'
16453 setopt NO_GLOB_SUBST
16454 else
16455 case `(set -o) 2>/dev/null` in #(
16456 *posix*) :
16457 set -o posix ;; #(
16458 *) :
16460 esac
16464 as_nl='
16466 export as_nl
16467 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16468 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16469 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16470 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16471 # Prefer a ksh shell builtin over an external printf program on Solaris,
16472 # but without wasting forks for bash or zsh.
16473 if test -z "$BASH_VERSION$ZSH_VERSION" \
16474 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16475 as_echo='print -r --'
16476 as_echo_n='print -rn --'
16477 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16478 as_echo='printf %s\n'
16479 as_echo_n='printf %s'
16480 else
16481 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16482 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16483 as_echo_n='/usr/ucb/echo -n'
16484 else
16485 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16486 as_echo_n_body='eval
16487 arg=$1;
16488 case $arg in #(
16489 *"$as_nl"*)
16490 expr "X$arg" : "X\\(.*\\)$as_nl";
16491 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16492 esac;
16493 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16495 export as_echo_n_body
16496 as_echo_n='sh -c $as_echo_n_body as_echo'
16498 export as_echo_body
16499 as_echo='sh -c $as_echo_body as_echo'
16502 # The user is always right.
16503 if test "${PATH_SEPARATOR+set}" != set; then
16504 PATH_SEPARATOR=:
16505 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16506 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16507 PATH_SEPARATOR=';'
16512 # IFS
16513 # We need space, tab and new line, in precisely that order. Quoting is
16514 # there to prevent editors from complaining about space-tab.
16515 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16516 # splitting by setting IFS to empty value.)
16517 IFS=" "" $as_nl"
16519 # Find who we are. Look in the path if we contain no directory separator.
16520 as_myself=
16521 case $0 in #((
16522 *[\\/]* ) as_myself=$0 ;;
16523 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16524 for as_dir in $PATH
16526 IFS=$as_save_IFS
16527 test -z "$as_dir" && as_dir=.
16528 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16529 done
16530 IFS=$as_save_IFS
16533 esac
16534 # We did not find ourselves, most probably we were run as `sh COMMAND'
16535 # in which case we are not to be found in the path.
16536 if test "x$as_myself" = x; then
16537 as_myself=$0
16539 if test ! -f "$as_myself"; then
16540 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16541 exit 1
16544 # Unset variables that we do not need and which cause bugs (e.g. in
16545 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
16546 # suppresses any "Segmentation fault" message there. '((' could
16547 # trigger a bug in pdksh 5.2.14.
16548 for as_var in BASH_ENV ENV MAIL MAILPATH
16549 do eval test x\${$as_var+set} = xset \
16550 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16551 done
16552 PS1='$ '
16553 PS2='> '
16554 PS4='+ '
16556 # NLS nuisances.
16557 LC_ALL=C
16558 export LC_ALL
16559 LANGUAGE=C
16560 export LANGUAGE
16562 # CDPATH.
16563 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16566 # as_fn_error STATUS ERROR [LINENO LOG_FD]
16567 # ----------------------------------------
16568 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16569 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16570 # script with STATUS, using 1 if that was 0.
16571 as_fn_error ()
16573 as_status=$1; test $as_status -eq 0 && as_status=1
16574 if test "$4"; then
16575 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16576 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
16578 $as_echo "$as_me: error: $2" >&2
16579 as_fn_exit $as_status
16580 } # as_fn_error
16583 # as_fn_set_status STATUS
16584 # -----------------------
16585 # Set $? to STATUS, without forking.
16586 as_fn_set_status ()
16588 return $1
16589 } # as_fn_set_status
16591 # as_fn_exit STATUS
16592 # -----------------
16593 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16594 as_fn_exit ()
16596 set +e
16597 as_fn_set_status $1
16598 exit $1
16599 } # as_fn_exit
16601 # as_fn_unset VAR
16602 # ---------------
16603 # Portably unset VAR.
16604 as_fn_unset ()
16606 { eval $1=; unset $1;}
16608 as_unset=as_fn_unset
16609 # as_fn_append VAR VALUE
16610 # ----------------------
16611 # Append the text in VALUE to the end of the definition contained in VAR. Take
16612 # advantage of any shell optimizations that allow amortized linear growth over
16613 # repeated appends, instead of the typical quadratic growth present in naive
16614 # implementations.
16615 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16616 eval 'as_fn_append ()
16618 eval $1+=\$2
16620 else
16621 as_fn_append ()
16623 eval $1=\$$1\$2
16625 fi # as_fn_append
16627 # as_fn_arith ARG...
16628 # ------------------
16629 # Perform arithmetic evaluation on the ARGs, and store the result in the
16630 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16631 # must be portable across $(()) and expr.
16632 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16633 eval 'as_fn_arith ()
16635 as_val=$(( $* ))
16637 else
16638 as_fn_arith ()
16640 as_val=`expr "$@" || test $? -eq 1`
16642 fi # as_fn_arith
16645 if expr a : '\(a\)' >/dev/null 2>&1 &&
16646 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16647 as_expr=expr
16648 else
16649 as_expr=false
16652 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16653 as_basename=basename
16654 else
16655 as_basename=false
16658 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16659 as_dirname=dirname
16660 else
16661 as_dirname=false
16664 as_me=`$as_basename -- "$0" ||
16665 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16666 X"$0" : 'X\(//\)$' \| \
16667 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16668 $as_echo X/"$0" |
16669 sed '/^.*\/\([^/][^/]*\)\/*$/{
16670 s//\1/
16673 /^X\/\(\/\/\)$/{
16674 s//\1/
16677 /^X\/\(\/\).*/{
16678 s//\1/
16681 s/.*/./; q'`
16683 # Avoid depending upon Character Ranges.
16684 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16685 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16686 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16687 as_cr_digits='0123456789'
16688 as_cr_alnum=$as_cr_Letters$as_cr_digits
16690 ECHO_C= ECHO_N= ECHO_T=
16691 case `echo -n x` in #(((((
16692 -n*)
16693 case `echo 'xy\c'` in
16694 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16695 xy) ECHO_C='\c';;
16696 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16697 ECHO_T=' ';;
16698 esac;;
16700 ECHO_N='-n';;
16701 esac
16703 rm -f conf$$ conf$$.exe conf$$.file
16704 if test -d conf$$.dir; then
16705 rm -f conf$$.dir/conf$$.file
16706 else
16707 rm -f conf$$.dir
16708 mkdir conf$$.dir 2>/dev/null
16710 if (echo >conf$$.file) 2>/dev/null; then
16711 if ln -s conf$$.file conf$$ 2>/dev/null; then
16712 as_ln_s='ln -s'
16713 # ... but there are two gotchas:
16714 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16715 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16716 # In both cases, we have to default to `cp -pR'.
16717 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16718 as_ln_s='cp -pR'
16719 elif ln conf$$.file conf$$ 2>/dev/null; then
16720 as_ln_s=ln
16721 else
16722 as_ln_s='cp -pR'
16724 else
16725 as_ln_s='cp -pR'
16727 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16728 rmdir conf$$.dir 2>/dev/null
16731 # as_fn_mkdir_p
16732 # -------------
16733 # Create "$as_dir" as a directory, including parents if necessary.
16734 as_fn_mkdir_p ()
16737 case $as_dir in #(
16738 -*) as_dir=./$as_dir;;
16739 esac
16740 test -d "$as_dir" || eval $as_mkdir_p || {
16741 as_dirs=
16742 while :; do
16743 case $as_dir in #(
16744 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16745 *) as_qdir=$as_dir;;
16746 esac
16747 as_dirs="'$as_qdir' $as_dirs"
16748 as_dir=`$as_dirname -- "$as_dir" ||
16749 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16750 X"$as_dir" : 'X\(//\)[^/]' \| \
16751 X"$as_dir" : 'X\(//\)$' \| \
16752 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16753 $as_echo X"$as_dir" |
16754 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16755 s//\1/
16758 /^X\(\/\/\)[^/].*/{
16759 s//\1/
16762 /^X\(\/\/\)$/{
16763 s//\1/
16766 /^X\(\/\).*/{
16767 s//\1/
16770 s/.*/./; q'`
16771 test -d "$as_dir" && break
16772 done
16773 test -z "$as_dirs" || eval "mkdir $as_dirs"
16774 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
16777 } # as_fn_mkdir_p
16778 if mkdir -p . 2>/dev/null; then
16779 as_mkdir_p='mkdir -p "$as_dir"'
16780 else
16781 test -d ./-p && rmdir ./-p
16782 as_mkdir_p=false
16786 # as_fn_executable_p FILE
16787 # -----------------------
16788 # Test if FILE is an executable regular file.
16789 as_fn_executable_p ()
16791 test -f "$1" && test -x "$1"
16792 } # as_fn_executable_p
16793 as_test_x='test -x'
16794 as_executable_p=as_fn_executable_p
16796 # Sed expression to map a string onto a valid CPP name.
16797 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16799 # Sed expression to map a string onto a valid variable name.
16800 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16803 exec 6>&1
16804 ## ----------------------------------- ##
16805 ## Main body of $CONFIG_STATUS script. ##
16806 ## ----------------------------------- ##
16807 _ASEOF
16808 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16810 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16811 # Save the log message, to keep $0 and so on meaningful, and to
16812 # report actual input values of CONFIG_FILES etc. instead of their
16813 # values after options handling.
16814 ac_log="
16815 This file was extended by libgrust $as_me version-unused, which was
16816 generated by GNU Autoconf 2.69. Invocation command line was
16818 CONFIG_FILES = $CONFIG_FILES
16819 CONFIG_HEADERS = $CONFIG_HEADERS
16820 CONFIG_LINKS = $CONFIG_LINKS
16821 CONFIG_COMMANDS = $CONFIG_COMMANDS
16822 $ $0 $@
16824 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16827 _ACEOF
16829 case $ac_config_files in *"
16830 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16831 esac
16835 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16836 # Files that config.status was made for.
16837 config_files="$ac_config_files"
16838 config_commands="$ac_config_commands"
16840 _ACEOF
16842 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16843 ac_cs_usage="\
16844 \`$as_me' instantiates files and other configuration actions
16845 from templates according to the current configuration. Unless the files
16846 and actions are specified as TAGs, all are instantiated by default.
16848 Usage: $0 [OPTION]... [TAG]...
16850 -h, --help print this help, then exit
16851 -V, --version print version number and configuration settings, then exit
16852 --config print configuration, then exit
16853 -q, --quiet, --silent
16854 do not print progress messages
16855 -d, --debug don't remove temporary files
16856 --recheck update $as_me by reconfiguring in the same conditions
16857 --file=FILE[:TEMPLATE]
16858 instantiate the configuration file FILE
16860 Configuration files:
16861 $config_files
16863 Configuration commands:
16864 $config_commands
16866 Report bugs to the package provider."
16868 _ACEOF
16869 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16870 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16871 ac_cs_version="\\
16872 libgrust config.status version-unused
16873 configured by $0, generated by GNU Autoconf 2.69,
16874 with options \\"\$ac_cs_config\\"
16876 Copyright (C) 2012 Free Software Foundation, Inc.
16877 This config.status script is free software; the Free Software Foundation
16878 gives unlimited permission to copy, distribute and modify it."
16880 ac_pwd='$ac_pwd'
16881 srcdir='$srcdir'
16882 INSTALL='$INSTALL'
16883 MKDIR_P='$MKDIR_P'
16884 AWK='$AWK'
16885 test -n "\$AWK" || AWK=awk
16886 _ACEOF
16888 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16889 # The default lists apply if the user does not specify any file.
16890 ac_need_defaults=:
16891 while test $# != 0
16893 case $1 in
16894 --*=?*)
16895 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16896 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16897 ac_shift=:
16899 --*=)
16900 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16901 ac_optarg=
16902 ac_shift=:
16905 ac_option=$1
16906 ac_optarg=$2
16907 ac_shift=shift
16909 esac
16911 case $ac_option in
16912 # Handling of the options.
16913 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16914 ac_cs_recheck=: ;;
16915 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16916 $as_echo "$ac_cs_version"; exit ;;
16917 --config | --confi | --conf | --con | --co | --c )
16918 $as_echo "$ac_cs_config"; exit ;;
16919 --debug | --debu | --deb | --de | --d | -d )
16920 debug=: ;;
16921 --file | --fil | --fi | --f )
16922 $ac_shift
16923 case $ac_optarg in
16924 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16925 '') as_fn_error $? "missing file argument" ;;
16926 esac
16927 as_fn_append CONFIG_FILES " '$ac_optarg'"
16928 ac_need_defaults=false;;
16929 --he | --h | --help | --hel | -h )
16930 $as_echo "$ac_cs_usage"; exit ;;
16931 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16932 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16933 ac_cs_silent=: ;;
16935 # This is an error.
16936 -*) as_fn_error $? "unrecognized option: \`$1'
16937 Try \`$0 --help' for more information." ;;
16939 *) as_fn_append ac_config_targets " $1"
16940 ac_need_defaults=false ;;
16942 esac
16943 shift
16944 done
16946 ac_configure_extra_args=
16948 if $ac_cs_silent; then
16949 exec 6>/dev/null
16950 ac_configure_extra_args="$ac_configure_extra_args --silent"
16953 _ACEOF
16954 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16955 if \$ac_cs_recheck; then
16956 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16957 shift
16958 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16959 CONFIG_SHELL='$SHELL'
16960 export CONFIG_SHELL
16961 exec "\$@"
16964 _ACEOF
16965 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16966 exec 5>>config.log
16968 echo
16969 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16970 ## Running $as_me. ##
16971 _ASBOX
16972 $as_echo "$ac_log"
16973 } >&5
16975 _ACEOF
16976 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16978 # INIT-COMMANDS
16981 srcdir="$srcdir"
16982 host="$host"
16983 target="$target"
16984 with_multisubdir="$with_multisubdir"
16985 with_multisrctop="$with_multisrctop"
16986 with_target_subdir="$with_target_subdir"
16987 ac_configure_args="${multilib_arg} ${ac_configure_args}"
16988 multi_basedir="$multi_basedir"
16989 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
16990 CC="$CC"
16991 CXX="$CXX"
16992 GFORTRAN="$GFORTRAN"
16993 GDC="$GDC"
16994 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16997 # The HP-UX ksh and POSIX shell print the target directory to stdout
16998 # if CDPATH is set.
16999 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17001 sed_quote_subst='$sed_quote_subst'
17002 double_quote_subst='$double_quote_subst'
17003 delay_variable_subst='$delay_variable_subst'
17004 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17005 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17006 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17007 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17008 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17009 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17010 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17011 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17012 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17013 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17014 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17015 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17016 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17017 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17018 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17019 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17020 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17021 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17022 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17023 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17024 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17025 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17026 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17027 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17028 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17029 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17030 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17031 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17032 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17033 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17034 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17035 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17036 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17037 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17038 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17039 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17040 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17041 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17042 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17043 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17044 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17045 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17046 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17047 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17048 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17049 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17050 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17051 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17052 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"`'
17053 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17054 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17055 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17056 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17057 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17058 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17059 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17060 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17061 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17062 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17063 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17064 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17065 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17066 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17067 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17068 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17069 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17070 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17071 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17072 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17073 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17074 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17075 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17076 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17077 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17078 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17079 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17080 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17081 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17082 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17083 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17084 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
17085 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17086 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17087 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17088 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17089 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17090 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17091 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17092 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17093 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
17094 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17095 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17096 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17097 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17098 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17099 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17100 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17101 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17102 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17103 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17104 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17105 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17106 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17107 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17108 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17109 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17110 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17111 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17112 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17113 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17114 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17115 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17116 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17117 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
17118 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17119 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17120 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17121 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17122 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17123 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17124 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
17125 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
17126 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
17127 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
17128 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
17129 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
17130 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
17131 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
17132 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17133 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17134 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
17135 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
17136 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
17137 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
17138 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
17139 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
17140 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
17141 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
17142 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
17143 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17144 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17145 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
17146 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17147 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17148 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17149 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17150 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17151 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17152 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
17153 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
17154 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
17155 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17156 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
17157 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
17158 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
17159 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
17160 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
17161 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
17162 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
17163 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
17164 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
17165 fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
17166 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
17167 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17168 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
17169 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
17170 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17171 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
17172 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
17173 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
17174 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
17175 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
17176 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
17177 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
17178 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
17180 LTCC='$LTCC'
17181 LTCFLAGS='$LTCFLAGS'
17182 compiler='$compiler_DEFAULT'
17184 # A function that is used when there is no print builtin or printf.
17185 func_fallback_echo ()
17187 eval 'cat <<_LTECHO_EOF
17189 _LTECHO_EOF'
17192 # Quote evaled strings.
17193 for var in SHELL \
17194 ECHO \
17195 SED \
17196 GREP \
17197 EGREP \
17198 FGREP \
17199 LD \
17200 NM \
17201 LN_S \
17202 lt_SP2NL \
17203 lt_NL2SP \
17204 reload_flag \
17205 OBJDUMP \
17206 deplibs_check_method \
17207 file_magic_cmd \
17208 AR \
17209 AR_FLAGS \
17210 STRIP \
17211 RANLIB \
17212 CC \
17213 CFLAGS \
17214 compiler \
17215 lt_cv_sys_global_symbol_pipe \
17216 lt_cv_sys_global_symbol_to_cdecl \
17217 lt_cv_sys_global_symbol_to_c_name_address \
17218 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17219 lt_prog_compiler_no_builtin_flag \
17220 lt_prog_compiler_wl \
17221 lt_prog_compiler_pic \
17222 lt_prog_compiler_static \
17223 lt_cv_prog_compiler_c_o \
17224 need_locks \
17225 DSYMUTIL \
17226 NMEDIT \
17227 LIPO \
17228 OTOOL \
17229 OTOOL64 \
17230 shrext_cmds \
17231 export_dynamic_flag_spec \
17232 whole_archive_flag_spec \
17233 compiler_needs_object \
17234 with_gnu_ld \
17235 allow_undefined_flag \
17236 no_undefined_flag \
17237 hardcode_libdir_flag_spec \
17238 hardcode_libdir_flag_spec_ld \
17239 hardcode_libdir_separator \
17240 fix_srcfile_path \
17241 exclude_expsyms \
17242 include_expsyms \
17243 file_list_spec \
17244 variables_saved_for_relink \
17245 libname_spec \
17246 library_names_spec \
17247 soname_spec \
17248 install_override_mode \
17249 finish_eval \
17250 old_striplib \
17251 striplib \
17252 compiler_lib_search_dirs \
17253 predep_objects \
17254 postdep_objects \
17255 predeps \
17256 postdeps \
17257 compiler_lib_search_path \
17258 LD_CXX \
17259 reload_flag_CXX \
17260 compiler_CXX \
17261 lt_prog_compiler_no_builtin_flag_CXX \
17262 lt_prog_compiler_wl_CXX \
17263 lt_prog_compiler_pic_CXX \
17264 lt_prog_compiler_static_CXX \
17265 lt_cv_prog_compiler_c_o_CXX \
17266 export_dynamic_flag_spec_CXX \
17267 whole_archive_flag_spec_CXX \
17268 compiler_needs_object_CXX \
17269 with_gnu_ld_CXX \
17270 allow_undefined_flag_CXX \
17271 no_undefined_flag_CXX \
17272 hardcode_libdir_flag_spec_CXX \
17273 hardcode_libdir_flag_spec_ld_CXX \
17274 hardcode_libdir_separator_CXX \
17275 fix_srcfile_path_CXX \
17276 exclude_expsyms_CXX \
17277 include_expsyms_CXX \
17278 file_list_spec_CXX \
17279 compiler_lib_search_dirs_CXX \
17280 predep_objects_CXX \
17281 postdep_objects_CXX \
17282 predeps_CXX \
17283 postdeps_CXX \
17284 compiler_lib_search_path_CXX; do
17285 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17286 *[\\\\\\\`\\"\\\$]*)
17287 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
17290 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17292 esac
17293 done
17295 # Double-quote double-evaled strings.
17296 for var in reload_cmds \
17297 old_postinstall_cmds \
17298 old_postuninstall_cmds \
17299 old_archive_cmds \
17300 extract_expsyms_cmds \
17301 old_archive_from_new_cmds \
17302 old_archive_from_expsyms_cmds \
17303 archive_cmds \
17304 archive_expsym_cmds \
17305 module_cmds \
17306 module_expsym_cmds \
17307 export_symbols_cmds \
17308 prelink_cmds \
17309 postinstall_cmds \
17310 postuninstall_cmds \
17311 finish_cmds \
17312 sys_lib_search_path_spec \
17313 sys_lib_dlsearch_path_spec \
17314 reload_cmds_CXX \
17315 old_archive_cmds_CXX \
17316 old_archive_from_new_cmds_CXX \
17317 old_archive_from_expsyms_cmds_CXX \
17318 archive_cmds_CXX \
17319 archive_expsym_cmds_CXX \
17320 module_cmds_CXX \
17321 module_expsym_cmds_CXX \
17322 export_symbols_cmds_CXX \
17323 prelink_cmds_CXX; do
17324 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17325 *[\\\\\\\`\\"\\\$]*)
17326 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
17329 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17331 esac
17332 done
17334 ac_aux_dir='$ac_aux_dir'
17335 xsi_shell='$xsi_shell'
17336 lt_shell_append='$lt_shell_append'
17338 # See if we are running on zsh, and set the options which allow our
17339 # commands through without removal of \ escapes INIT.
17340 if test -n "\${ZSH_VERSION+set}" ; then
17341 setopt NO_GLOB_SUBST
17345 PACKAGE='$PACKAGE'
17346 VERSION='$VERSION'
17347 TIMESTAMP='$TIMESTAMP'
17348 RM='$RM'
17349 ofile='$ofile'
17356 _ACEOF
17358 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17360 # Handling of arguments.
17361 for ac_config_target in $ac_config_targets
17363 case $ac_config_target in
17364 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17365 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
17366 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17367 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17368 "libformat_parser/Makefile") CONFIG_FILES="$CONFIG_FILES libformat_parser/Makefile" ;;
17369 "libproc_macro_internal/Makefile") CONFIG_FILES="$CONFIG_FILES libproc_macro_internal/Makefile" ;;
17371 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17372 esac
17373 done
17376 # If the user did not use the arguments to specify the items to instantiate,
17377 # then the envvar interface is used. Set only those that are not.
17378 # We use the long form for the default assignment because of an extremely
17379 # bizarre bug on SunOS 4.1.3.
17380 if $ac_need_defaults; then
17381 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17382 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17385 # Have a temporary directory for convenience. Make it in the build tree
17386 # simply because there is no reason against having it here, and in addition,
17387 # creating and moving files from /tmp can sometimes cause problems.
17388 # Hook for its removal unless debugging.
17389 # Note that there is a small window in which the directory will not be cleaned:
17390 # after its creation but before its name has been assigned to `$tmp'.
17391 $debug ||
17393 tmp= ac_tmp=
17394 trap 'exit_status=$?
17395 : "${ac_tmp:=$tmp}"
17396 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
17398 trap 'as_fn_exit 1' 1 2 13 15
17400 # Create a (secure) tmp directory for tmp files.
17403 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17404 test -d "$tmp"
17405 } ||
17407 tmp=./conf$$-$RANDOM
17408 (umask 077 && mkdir "$tmp")
17409 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
17410 ac_tmp=$tmp
17412 # Set up the scripts for CONFIG_FILES section.
17413 # No need to generate them if there are no CONFIG_FILES.
17414 # This happens for instance with `./config.status config.h'.
17415 if test -n "$CONFIG_FILES"; then
17418 ac_cr=`echo X | tr X '\015'`
17419 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17420 # But we know of no other shell where ac_cr would be empty at this
17421 # point, so we can use a bashism as a fallback.
17422 if test "x$ac_cr" = x; then
17423 eval ac_cr=\$\'\\r\'
17425 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17426 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17427 ac_cs_awk_cr='\\r'
17428 else
17429 ac_cs_awk_cr=$ac_cr
17432 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
17433 _ACEOF
17437 echo "cat >conf$$subs.awk <<_ACEOF" &&
17438 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17439 echo "_ACEOF"
17440 } >conf$$subs.sh ||
17441 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17442 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
17443 ac_delim='%!_!# '
17444 for ac_last_try in false false false false false :; do
17445 . ./conf$$subs.sh ||
17446 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17448 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17449 if test $ac_delim_n = $ac_delim_num; then
17450 break
17451 elif $ac_last_try; then
17452 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17453 else
17454 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17456 done
17457 rm -f conf$$subs.sh
17459 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17460 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
17461 _ACEOF
17462 sed -n '
17464 s/^/S["/; s/!.*/"]=/
17467 s/^[^!]*!//
17468 :repl
17469 t repl
17470 s/'"$ac_delim"'$//
17471 t delim
17474 s/\(.\{148\}\)..*/\1/
17475 t more1
17476 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17479 b repl
17480 :more1
17481 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17484 s/.\{148\}//
17485 t nl
17486 :delim
17488 s/\(.\{148\}\)..*/\1/
17489 t more2
17490 s/["\\]/\\&/g; s/^/"/; s/$/"/
17493 :more2
17494 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17497 s/.\{148\}//
17498 t delim
17499 ' <conf$$subs.awk | sed '
17500 /^[^""]/{
17502 s/\n//
17504 ' >>$CONFIG_STATUS || ac_write_fail=1
17505 rm -f conf$$subs.awk
17506 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17507 _ACAWK
17508 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
17509 for (key in S) S_is_set[key] = 1
17510 FS = "\a"
17514 line = $ 0
17515 nfields = split(line, field, "@")
17516 substed = 0
17517 len = length(field[1])
17518 for (i = 2; i < nfields; i++) {
17519 key = field[i]
17520 keylen = length(key)
17521 if (S_is_set[key]) {
17522 value = S[key]
17523 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17524 len += length(value) + length(field[++i])
17525 substed = 1
17526 } else
17527 len += 1 + keylen
17530 print line
17533 _ACAWK
17534 _ACEOF
17535 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17536 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17537 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17538 else
17540 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
17541 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
17542 _ACEOF
17544 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
17545 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
17546 # trailing colons and then remove the whole line if VPATH becomes empty
17547 # (actually we leave an empty line to preserve line numbers).
17548 if test "x$srcdir" = x.; then
17549 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
17551 s///
17552 s/^/:/
17553 s/[ ]*$/:/
17554 s/:\$(srcdir):/:/g
17555 s/:\${srcdir}:/:/g
17556 s/:@srcdir@:/:/g
17557 s/^:*//
17558 s/:*$//
17560 s/\(=[ ]*\).*/\1/
17562 s/\n//
17563 s/^[^=]*=[ ]*$//
17567 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17568 fi # test -n "$CONFIG_FILES"
17571 eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
17572 shift
17573 for ac_tag
17575 case $ac_tag in
17576 :[FHLC]) ac_mode=$ac_tag; continue;;
17577 esac
17578 case $ac_mode$ac_tag in
17579 :[FHL]*:*);;
17580 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
17581 :[FH]-) ac_tag=-:-;;
17582 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17583 esac
17584 ac_save_IFS=$IFS
17585 IFS=:
17586 set x $ac_tag
17587 IFS=$ac_save_IFS
17588 shift
17589 ac_file=$1
17590 shift
17592 case $ac_mode in
17593 :L) ac_source=$1;;
17594 :[FH])
17595 ac_file_inputs=
17596 for ac_f
17598 case $ac_f in
17599 -) ac_f="$ac_tmp/stdin";;
17600 *) # Look for the file first in the build tree, then in the source tree
17601 # (if the path is not absolute). The absolute path cannot be DOS-style,
17602 # because $ac_f cannot contain `:'.
17603 test -f "$ac_f" ||
17604 case $ac_f in
17605 [\\/$]*) false;;
17606 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17607 esac ||
17608 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17609 esac
17610 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17611 as_fn_append ac_file_inputs " '$ac_f'"
17612 done
17614 # Let's still pretend it is `configure' which instantiates (i.e., don't
17615 # use $as_me), people would be surprised to read:
17616 # /* config.h. Generated by config.status. */
17617 configure_input='Generated from '`
17618 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17619 `' by configure.'
17620 if test x"$ac_file" != x-; then
17621 configure_input="$ac_file. $configure_input"
17622 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17623 $as_echo "$as_me: creating $ac_file" >&6;}
17625 # Neutralize special characters interpreted by sed in replacement strings.
17626 case $configure_input in #(
17627 *\&* | *\|* | *\\* )
17628 ac_sed_conf_input=`$as_echo "$configure_input" |
17629 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17630 *) ac_sed_conf_input=$configure_input;;
17631 esac
17633 case $ac_tag in
17634 *:-:* | *:-) cat >"$ac_tmp/stdin" \
17635 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
17636 esac
17638 esac
17640 ac_dir=`$as_dirname -- "$ac_file" ||
17641 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17642 X"$ac_file" : 'X\(//\)[^/]' \| \
17643 X"$ac_file" : 'X\(//\)$' \| \
17644 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17645 $as_echo X"$ac_file" |
17646 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17647 s//\1/
17650 /^X\(\/\/\)[^/].*/{
17651 s//\1/
17654 /^X\(\/\/\)$/{
17655 s//\1/
17658 /^X\(\/\).*/{
17659 s//\1/
17662 s/.*/./; q'`
17663 as_dir="$ac_dir"; as_fn_mkdir_p
17664 ac_builddir=.
17666 case "$ac_dir" in
17667 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17669 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17670 # A ".." for each directory in $ac_dir_suffix.
17671 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17672 case $ac_top_builddir_sub in
17673 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17674 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17675 esac ;;
17676 esac
17677 ac_abs_top_builddir=$ac_pwd
17678 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17679 # for backward compatibility:
17680 ac_top_builddir=$ac_top_build_prefix
17682 case $srcdir in
17683 .) # We are building in place.
17684 ac_srcdir=.
17685 ac_top_srcdir=$ac_top_builddir_sub
17686 ac_abs_top_srcdir=$ac_pwd ;;
17687 [\\/]* | ?:[\\/]* ) # Absolute name.
17688 ac_srcdir=$srcdir$ac_dir_suffix;
17689 ac_top_srcdir=$srcdir
17690 ac_abs_top_srcdir=$srcdir ;;
17691 *) # Relative name.
17692 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17693 ac_top_srcdir=$ac_top_build_prefix$srcdir
17694 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17695 esac
17696 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17699 case $ac_mode in
17702 # CONFIG_FILE
17705 case $INSTALL in
17706 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17707 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17708 esac
17709 ac_MKDIR_P=$MKDIR_P
17710 case $MKDIR_P in
17711 [\\/$]* | ?:[\\/]* ) ;;
17712 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17713 esac
17714 _ACEOF
17716 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17717 # If the template does not know about datarootdir, expand it.
17718 # FIXME: This hack should be removed a few years after 2.60.
17719 ac_datarootdir_hack=; ac_datarootdir_seen=
17720 ac_sed_dataroot='
17721 /datarootdir/ {
17725 /@datadir@/p
17726 /@docdir@/p
17727 /@infodir@/p
17728 /@localedir@/p
17729 /@mandir@/p'
17730 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17731 *datarootdir*) ac_datarootdir_seen=yes;;
17732 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17733 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17734 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17735 _ACEOF
17736 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17737 ac_datarootdir_hack='
17738 s&@datadir@&$datadir&g
17739 s&@docdir@&$docdir&g
17740 s&@infodir@&$infodir&g
17741 s&@localedir@&$localedir&g
17742 s&@mandir@&$mandir&g
17743 s&\\\${datarootdir}&$datarootdir&g' ;;
17744 esac
17745 _ACEOF
17747 # Neutralize VPATH when `$srcdir' = `.'.
17748 # Shell code in configure.ac might set extrasub.
17749 # FIXME: do we really want to maintain this feature?
17750 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17751 ac_sed_extra="$ac_vpsub
17752 $extrasub
17753 _ACEOF
17754 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17756 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17757 s|@configure_input@|$ac_sed_conf_input|;t t
17758 s&@top_builddir@&$ac_top_builddir_sub&;t t
17759 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17760 s&@srcdir@&$ac_srcdir&;t t
17761 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17762 s&@top_srcdir@&$ac_top_srcdir&;t t
17763 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17764 s&@builddir@&$ac_builddir&;t t
17765 s&@abs_builddir@&$ac_abs_builddir&;t t
17766 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17767 s&@INSTALL@&$ac_INSTALL&;t t
17768 s&@MKDIR_P@&$ac_MKDIR_P&;t t
17769 $ac_datarootdir_hack
17771 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
17772 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17774 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17775 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
17776 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
17777 "$ac_tmp/out"`; test -z "$ac_out"; } &&
17778 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17779 which seems to be undefined. Please make sure it is defined" >&5
17780 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17781 which seems to be undefined. Please make sure it is defined" >&2;}
17783 rm -f "$ac_tmp/stdin"
17784 case $ac_file in
17785 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
17786 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
17787 esac \
17788 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17792 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17793 $as_echo "$as_me: executing $ac_file commands" >&6;}
17795 esac
17798 case $ac_file$ac_mode in
17799 "default-1":C)
17800 # Only add multilib support code if we just rebuilt the top-level
17801 # Makefile.
17802 case " $CONFIG_FILES " in
17803 *" Makefile "*)
17804 ac_file=Makefile . ${multi_basedir}/config-ml.in
17806 esac ;;
17807 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
17808 # Older Autoconf quotes --file arguments for eval, but not when files
17809 # are listed without --file. Let's play safe and only enable the eval
17810 # if we detect the quoting.
17811 case $CONFIG_FILES in
17812 *\'*) eval set x "$CONFIG_FILES" ;;
17813 *) set x $CONFIG_FILES ;;
17814 esac
17815 shift
17816 for mf
17818 # Strip MF so we end up with the name of the file.
17819 mf=`echo "$mf" | sed -e 's/:.*$//'`
17820 # Check whether this is an Automake generated Makefile or not.
17821 # We used to match only the files named 'Makefile.in', but
17822 # some people rename them; so instead we look at the file content.
17823 # Grep'ing the first line is not enough: some people post-process
17824 # each Makefile.in and add a new line on top of each file to say so.
17825 # Grep'ing the whole file is not good either: AIX grep has a line
17826 # limit of 2048, but all sed's we know have understand at least 4000.
17827 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
17828 dirpart=`$as_dirname -- "$mf" ||
17829 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17830 X"$mf" : 'X\(//\)[^/]' \| \
17831 X"$mf" : 'X\(//\)$' \| \
17832 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17833 $as_echo X"$mf" |
17834 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17835 s//\1/
17838 /^X\(\/\/\)[^/].*/{
17839 s//\1/
17842 /^X\(\/\/\)$/{
17843 s//\1/
17846 /^X\(\/\).*/{
17847 s//\1/
17850 s/.*/./; q'`
17851 else
17852 continue
17854 # Extract the definition of DEPDIR, am__include, and am__quote
17855 # from the Makefile without running 'make'.
17856 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17857 test -z "$DEPDIR" && continue
17858 am__include=`sed -n 's/^am__include = //p' < "$mf"`
17859 test -z "$am__include" && continue
17860 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17861 # Find all dependency output files, they are included files with
17862 # $(DEPDIR) in their names. We invoke sed twice because it is the
17863 # simplest approach to changing $(DEPDIR) to its actual value in the
17864 # expansion.
17865 for file in `sed -n "
17866 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17867 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
17868 # Make sure the directory exists.
17869 test -f "$dirpart/$file" && continue
17870 fdir=`$as_dirname -- "$file" ||
17871 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17872 X"$file" : 'X\(//\)[^/]' \| \
17873 X"$file" : 'X\(//\)$' \| \
17874 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17875 $as_echo X"$file" |
17876 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17877 s//\1/
17880 /^X\(\/\/\)[^/].*/{
17881 s//\1/
17884 /^X\(\/\/\)$/{
17885 s//\1/
17888 /^X\(\/\).*/{
17889 s//\1/
17892 s/.*/./; q'`
17893 as_dir=$dirpart/$fdir; as_fn_mkdir_p
17894 # echo "creating $dirpart/$file"
17895 echo '# dummy' > "$dirpart/$file"
17896 done
17897 done
17900 "libtool":C)
17902 # See if we are running on zsh, and set the options which allow our
17903 # commands through without removal of \ escapes.
17904 if test -n "${ZSH_VERSION+set}" ; then
17905 setopt NO_GLOB_SUBST
17908 cfgfile="${ofile}T"
17909 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17910 $RM "$cfgfile"
17912 cat <<_LT_EOF >> "$cfgfile"
17913 #! $SHELL
17915 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17916 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
17917 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17918 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17920 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17921 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
17922 # Written by Gordon Matzigkeit, 1996
17924 # This file is part of GNU Libtool.
17926 # GNU Libtool is free software; you can redistribute it and/or
17927 # modify it under the terms of the GNU General Public License as
17928 # published by the Free Software Foundation; either version 2 of
17929 # the License, or (at your option) any later version.
17931 # As a special exception to the GNU General Public License,
17932 # if you distribute this file as part of a program or library that
17933 # is built using GNU Libtool, you may include this file under the
17934 # same distribution terms that you use for the rest of that program.
17936 # GNU Libtool is distributed in the hope that it will be useful,
17937 # but WITHOUT ANY WARRANTY; without even the implied warranty of
17938 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17939 # GNU General Public License for more details.
17941 # You should have received a copy of the GNU General Public License
17942 # along with GNU Libtool; see the file COPYING. If not, a copy
17943 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
17944 # obtained by writing to the Free Software Foundation, Inc.,
17945 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17948 # The names of the tagged configurations supported by this script.
17949 available_tags="CXX "
17951 # ### BEGIN LIBTOOL CONFIG
17953 # Which release of libtool.m4 was used?
17954 macro_version=$macro_version
17955 macro_revision=$macro_revision
17957 # Whether or not to build shared libraries.
17958 build_libtool_libs=$enable_shared
17960 # Whether or not to build static libraries.
17961 build_old_libs=$enable_static
17963 # What type of objects to build.
17964 pic_mode=$pic_mode
17966 # Whether or not to optimize for fast installation.
17967 fast_install=$enable_fast_install
17969 # Shell to use when invoking shell scripts.
17970 SHELL=$lt_SHELL
17972 # An echo program that protects backslashes.
17973 ECHO=$lt_ECHO
17975 # The host system.
17976 host_alias=$host_alias
17977 host=$host
17978 host_os=$host_os
17980 # The build system.
17981 build_alias=$build_alias
17982 build=$build
17983 build_os=$build_os
17985 # A sed program that does not truncate output.
17986 SED=$lt_SED
17988 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17989 Xsed="\$SED -e 1s/^X//"
17991 # A grep program that handles long lines.
17992 GREP=$lt_GREP
17994 # An ERE matcher.
17995 EGREP=$lt_EGREP
17997 # A literal string matcher.
17998 FGREP=$lt_FGREP
18000 # A BSD- or MS-compatible name lister.
18001 NM=$lt_NM
18003 # Whether we need soft or hard links.
18004 LN_S=$lt_LN_S
18006 # What is the maximum length of a command?
18007 max_cmd_len=$max_cmd_len
18009 # Object file suffix (normally "o").
18010 objext=$ac_objext
18012 # Executable file suffix (normally "").
18013 exeext=$exeext
18015 # whether the shell understands "unset".
18016 lt_unset=$lt_unset
18018 # turn spaces into newlines.
18019 SP2NL=$lt_lt_SP2NL
18021 # turn newlines into spaces.
18022 NL2SP=$lt_lt_NL2SP
18024 # An object symbol dumper.
18025 OBJDUMP=$lt_OBJDUMP
18027 # Method to check whether dependent libraries are shared objects.
18028 deplibs_check_method=$lt_deplibs_check_method
18030 # Command to use when deplibs_check_method == "file_magic".
18031 file_magic_cmd=$lt_file_magic_cmd
18033 # The archiver.
18034 AR=$lt_AR
18035 AR_FLAGS=$lt_AR_FLAGS
18037 # A symbol stripping program.
18038 STRIP=$lt_STRIP
18040 # Commands used to install an old-style archive.
18041 RANLIB=$lt_RANLIB
18042 old_postinstall_cmds=$lt_old_postinstall_cmds
18043 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18045 # Whether to use a lock for old archive extraction.
18046 lock_old_archive_extraction=$lock_old_archive_extraction
18048 # A C compiler.
18049 LTCC=$lt_CC
18051 # LTCC compiler flags.
18052 LTCFLAGS=$lt_CFLAGS
18054 # Take the output of nm and produce a listing of raw symbols and C names.
18055 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18057 # Transform the output of nm in a proper C declaration.
18058 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18060 # Transform the output of nm in a C name address pair.
18061 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18063 # Transform the output of nm in a C name address pair when lib prefix is needed.
18064 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18066 # The name of the directory that contains temporary libtool files.
18067 objdir=$objdir
18069 # Used to examine libraries when file_magic_cmd begins with "file".
18070 MAGIC_CMD=$MAGIC_CMD
18072 # Must we lock files when doing compilation?
18073 need_locks=$lt_need_locks
18075 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18076 DSYMUTIL=$lt_DSYMUTIL
18078 # Tool to change global to local symbols on Mac OS X.
18079 NMEDIT=$lt_NMEDIT
18081 # Tool to manipulate fat objects and archives on Mac OS X.
18082 LIPO=$lt_LIPO
18084 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
18085 OTOOL=$lt_OTOOL
18087 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18088 OTOOL64=$lt_OTOOL64
18090 # Old archive suffix (normally "a").
18091 libext=$libext
18093 # Shared library suffix (normally ".so").
18094 shrext_cmds=$lt_shrext_cmds
18096 # The commands to extract the exported symbol list from a shared archive.
18097 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18099 # Variables whose values should be saved in libtool wrapper scripts and
18100 # restored at link time.
18101 variables_saved_for_relink=$lt_variables_saved_for_relink
18103 # Do we need the "lib" prefix for modules?
18104 need_lib_prefix=$need_lib_prefix
18106 # Do we need a version for libraries?
18107 need_version=$need_version
18109 # Library versioning type.
18110 version_type=$version_type
18112 # Shared library runtime path variable.
18113 runpath_var=$runpath_var
18115 # Shared library path variable.
18116 shlibpath_var=$shlibpath_var
18118 # Is shlibpath searched before the hard-coded library search path?
18119 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18121 # Format of library name prefix.
18122 libname_spec=$lt_libname_spec
18124 # List of archive names. First name is the real one, the rest are links.
18125 # The last name is the one that the linker finds with -lNAME
18126 library_names_spec=$lt_library_names_spec
18128 # The coded name of the library, if different from the real name.
18129 soname_spec=$lt_soname_spec
18131 # Permission mode override for installation of shared libraries.
18132 install_override_mode=$lt_install_override_mode
18134 # Command to use after installation of a shared archive.
18135 postinstall_cmds=$lt_postinstall_cmds
18137 # Command to use after uninstallation of a shared archive.
18138 postuninstall_cmds=$lt_postuninstall_cmds
18140 # Commands used to finish a libtool library installation in a directory.
18141 finish_cmds=$lt_finish_cmds
18143 # As "finish_cmds", except a single script fragment to be evaled but
18144 # not shown.
18145 finish_eval=$lt_finish_eval
18147 # Whether we should hardcode library paths into libraries.
18148 hardcode_into_libs=$hardcode_into_libs
18150 # Compile-time system search path for libraries.
18151 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18153 # Run-time system search path for libraries.
18154 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18156 # Whether dlopen is supported.
18157 dlopen_support=$enable_dlopen
18159 # Whether dlopen of programs is supported.
18160 dlopen_self=$enable_dlopen_self
18162 # Whether dlopen of statically linked programs is supported.
18163 dlopen_self_static=$enable_dlopen_self_static
18165 # Commands to strip libraries.
18166 old_striplib=$lt_old_striplib
18167 striplib=$lt_striplib
18170 # The linker used to build libraries.
18171 LD=$lt_LD
18173 # How to create reloadable object files.
18174 reload_flag=$lt_reload_flag
18175 reload_cmds=$lt_reload_cmds
18177 # Commands used to build an old-style archive.
18178 old_archive_cmds=$lt_old_archive_cmds
18180 # A language specific compiler.
18181 CC=$lt_compiler
18183 # Is the compiler the GNU compiler?
18184 with_gcc=$GCC
18186 # Compiler flag to turn off builtin functions.
18187 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18189 # How to pass a linker flag through the compiler.
18190 wl=$lt_lt_prog_compiler_wl
18192 # Additional compiler flags for building library objects.
18193 pic_flag=$lt_lt_prog_compiler_pic
18195 # Compiler flag to prevent dynamic linking.
18196 link_static_flag=$lt_lt_prog_compiler_static
18198 # Does compiler simultaneously support -c and -o options?
18199 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18201 # Whether or not to add -lc for building shared libraries.
18202 build_libtool_need_lc=$archive_cmds_need_lc
18204 # Whether or not to disallow shared libs when runtime libs are static.
18205 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18207 # Compiler flag to allow reflexive dlopens.
18208 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18210 # Compiler flag to generate shared objects directly from archives.
18211 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18213 # Whether the compiler copes with passing no objects directly.
18214 compiler_needs_object=$lt_compiler_needs_object
18216 # Create an old-style archive from a shared archive.
18217 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18219 # Create a temporary old-style archive to link instead of a shared archive.
18220 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18222 # Commands used to build a shared archive.
18223 archive_cmds=$lt_archive_cmds
18224 archive_expsym_cmds=$lt_archive_expsym_cmds
18226 # Commands used to build a loadable module if different from building
18227 # a shared archive.
18228 module_cmds=$lt_module_cmds
18229 module_expsym_cmds=$lt_module_expsym_cmds
18231 # Whether we are building with GNU ld or not.
18232 with_gnu_ld=$lt_with_gnu_ld
18234 # Flag that allows shared libraries with undefined symbols to be built.
18235 allow_undefined_flag=$lt_allow_undefined_flag
18237 # Flag that enforces no undefined symbols.
18238 no_undefined_flag=$lt_no_undefined_flag
18240 # Flag to hardcode \$libdir into a binary during linking.
18241 # This must work even if \$libdir does not exist
18242 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18244 # If ld is used when linking, flag to hardcode \$libdir into a binary
18245 # during linking. This must work even if \$libdir does not exist.
18246 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
18248 # Whether we need a single "-rpath" flag with a separated argument.
18249 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18251 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18252 # DIR into the resulting binary.
18253 hardcode_direct=$hardcode_direct
18255 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18256 # DIR into the resulting binary and the resulting library dependency is
18257 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18258 # library is relocated.
18259 hardcode_direct_absolute=$hardcode_direct_absolute
18261 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18262 # into the resulting binary.
18263 hardcode_minus_L=$hardcode_minus_L
18265 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18266 # into the resulting binary.
18267 hardcode_shlibpath_var=$hardcode_shlibpath_var
18269 # Set to "yes" if building a shared library automatically hardcodes DIR
18270 # into the library and all subsequent libraries and executables linked
18271 # against it.
18272 hardcode_automatic=$hardcode_automatic
18274 # Set to yes if linker adds runtime paths of dependent libraries
18275 # to runtime path list.
18276 inherit_rpath=$inherit_rpath
18278 # Whether libtool must link a program against all its dependency libraries.
18279 link_all_deplibs=$link_all_deplibs
18281 # Fix the shell variable \$srcfile for the compiler.
18282 fix_srcfile_path=$lt_fix_srcfile_path
18284 # Set to "yes" if exported symbols are required.
18285 always_export_symbols=$always_export_symbols
18287 # The commands to list exported symbols.
18288 export_symbols_cmds=$lt_export_symbols_cmds
18290 # Symbols that should not be listed in the preloaded symbols.
18291 exclude_expsyms=$lt_exclude_expsyms
18293 # Symbols that must always be exported.
18294 include_expsyms=$lt_include_expsyms
18296 # Commands necessary for linking programs (against libraries) with templates.
18297 prelink_cmds=$lt_prelink_cmds
18299 # Specify filename containing input files.
18300 file_list_spec=$lt_file_list_spec
18302 # How to hardcode a shared library path into an executable.
18303 hardcode_action=$hardcode_action
18305 # The directories searched by this compiler when creating a shared library.
18306 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
18308 # Dependencies to place before and after the objects being linked to
18309 # create a shared library.
18310 predep_objects=$lt_predep_objects
18311 postdep_objects=$lt_postdep_objects
18312 predeps=$lt_predeps
18313 postdeps=$lt_postdeps
18315 # The library search path used internally by the compiler when linking
18316 # a shared library.
18317 compiler_lib_search_path=$lt_compiler_lib_search_path
18319 # ### END LIBTOOL CONFIG
18321 _LT_EOF
18323 case $host_os in
18324 aix3*)
18325 cat <<\_LT_EOF >> "$cfgfile"
18326 # AIX sometimes has problems with the GCC collect2 program. For some
18327 # reason, if we set the COLLECT_NAMES environment variable, the problems
18328 # vanish in a puff of smoke.
18329 if test "X${COLLECT_NAMES+set}" != Xset; then
18330 COLLECT_NAMES=
18331 export COLLECT_NAMES
18333 _LT_EOF
18335 esac
18338 ltmain="$ac_aux_dir/ltmain.sh"
18341 # We use sed instead of cat because bash on DJGPP gets confused if
18342 # if finds mixed CR/LF and LF-only lines. Since sed operates in
18343 # text mode, it properly converts lines to CR/LF. This bash problem
18344 # is reportedly fixed, but why not run on old versions too?
18345 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
18346 || (rm -f "$cfgfile"; exit 1)
18348 case $xsi_shell in
18349 yes)
18350 cat << \_LT_EOF >> "$cfgfile"
18352 # func_dirname file append nondir_replacement
18353 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
18354 # otherwise set result to NONDIR_REPLACEMENT.
18355 func_dirname ()
18357 case ${1} in
18358 */*) func_dirname_result="${1%/*}${2}" ;;
18359 * ) func_dirname_result="${3}" ;;
18360 esac
18363 # func_basename file
18364 func_basename ()
18366 func_basename_result="${1##*/}"
18369 # func_dirname_and_basename file append nondir_replacement
18370 # perform func_basename and func_dirname in a single function
18371 # call:
18372 # dirname: Compute the dirname of FILE. If nonempty,
18373 # add APPEND to the result, otherwise set result
18374 # to NONDIR_REPLACEMENT.
18375 # value returned in "$func_dirname_result"
18376 # basename: Compute filename of FILE.
18377 # value retuned in "$func_basename_result"
18378 # Implementation must be kept synchronized with func_dirname
18379 # and func_basename. For efficiency, we do not delegate to
18380 # those functions but instead duplicate the functionality here.
18381 func_dirname_and_basename ()
18383 case ${1} in
18384 */*) func_dirname_result="${1%/*}${2}" ;;
18385 * ) func_dirname_result="${3}" ;;
18386 esac
18387 func_basename_result="${1##*/}"
18390 # func_stripname prefix suffix name
18391 # strip PREFIX and SUFFIX off of NAME.
18392 # PREFIX and SUFFIX must not contain globbing or regex special
18393 # characters, hashes, percent signs, but SUFFIX may contain a leading
18394 # dot (in which case that matches only a dot).
18395 func_stripname ()
18397 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
18398 # positional parameters, so assign one to ordinary parameter first.
18399 func_stripname_result=${3}
18400 func_stripname_result=${func_stripname_result#"${1}"}
18401 func_stripname_result=${func_stripname_result%"${2}"}
18404 # func_opt_split
18405 func_opt_split ()
18407 func_opt_split_opt=${1%%=*}
18408 func_opt_split_arg=${1#*=}
18411 # func_lo2o object
18412 func_lo2o ()
18414 case ${1} in
18415 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
18416 *) func_lo2o_result=${1} ;;
18417 esac
18420 # func_xform libobj-or-source
18421 func_xform ()
18423 func_xform_result=${1%.*}.lo
18426 # func_arith arithmetic-term...
18427 func_arith ()
18429 func_arith_result=$(( $* ))
18432 # func_len string
18433 # STRING may not start with a hyphen.
18434 func_len ()
18436 func_len_result=${#1}
18439 _LT_EOF
18441 *) # Bourne compatible functions.
18442 cat << \_LT_EOF >> "$cfgfile"
18444 # func_dirname file append nondir_replacement
18445 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
18446 # otherwise set result to NONDIR_REPLACEMENT.
18447 func_dirname ()
18449 # Extract subdirectory from the argument.
18450 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
18451 if test "X$func_dirname_result" = "X${1}"; then
18452 func_dirname_result="${3}"
18453 else
18454 func_dirname_result="$func_dirname_result${2}"
18458 # func_basename file
18459 func_basename ()
18461 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
18465 # func_stripname prefix suffix name
18466 # strip PREFIX and SUFFIX off of NAME.
18467 # PREFIX and SUFFIX must not contain globbing or regex special
18468 # characters, hashes, percent signs, but SUFFIX may contain a leading
18469 # dot (in which case that matches only a dot).
18470 # func_strip_suffix prefix name
18471 func_stripname ()
18473 case ${2} in
18474 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
18475 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
18476 esac
18479 # sed scripts:
18480 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
18481 my_sed_long_arg='1s/^-[^=]*=//'
18483 # func_opt_split
18484 func_opt_split ()
18486 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
18487 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
18490 # func_lo2o object
18491 func_lo2o ()
18493 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
18496 # func_xform libobj-or-source
18497 func_xform ()
18499 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
18502 # func_arith arithmetic-term...
18503 func_arith ()
18505 func_arith_result=`expr "$@"`
18508 # func_len string
18509 # STRING may not start with a hyphen.
18510 func_len ()
18512 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
18515 _LT_EOF
18516 esac
18518 case $lt_shell_append in
18519 yes)
18520 cat << \_LT_EOF >> "$cfgfile"
18522 # func_append var value
18523 # Append VALUE to the end of shell variable VAR.
18524 func_append ()
18526 eval "$1+=\$2"
18528 _LT_EOF
18531 cat << \_LT_EOF >> "$cfgfile"
18533 # func_append var value
18534 # Append VALUE to the end of shell variable VAR.
18535 func_append ()
18537 eval "$1=\$$1\$2"
18540 _LT_EOF
18542 esac
18545 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
18546 || (rm -f "$cfgfile"; exit 1)
18548 mv -f "$cfgfile" "$ofile" ||
18549 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18550 chmod +x "$ofile"
18553 cat <<_LT_EOF >> "$ofile"
18555 # ### BEGIN LIBTOOL TAG CONFIG: CXX
18557 # The linker used to build libraries.
18558 LD=$lt_LD_CXX
18560 # How to create reloadable object files.
18561 reload_flag=$lt_reload_flag_CXX
18562 reload_cmds=$lt_reload_cmds_CXX
18564 # Commands used to build an old-style archive.
18565 old_archive_cmds=$lt_old_archive_cmds_CXX
18567 # A language specific compiler.
18568 CC=$lt_compiler_CXX
18570 # Is the compiler the GNU compiler?
18571 with_gcc=$GCC_CXX
18573 # Compiler flag to turn off builtin functions.
18574 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
18576 # How to pass a linker flag through the compiler.
18577 wl=$lt_lt_prog_compiler_wl_CXX
18579 # Additional compiler flags for building library objects.
18580 pic_flag=$lt_lt_prog_compiler_pic_CXX
18582 # Compiler flag to prevent dynamic linking.
18583 link_static_flag=$lt_lt_prog_compiler_static_CXX
18585 # Does compiler simultaneously support -c and -o options?
18586 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
18588 # Whether or not to add -lc for building shared libraries.
18589 build_libtool_need_lc=$archive_cmds_need_lc_CXX
18591 # Whether or not to disallow shared libs when runtime libs are static.
18592 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
18594 # Compiler flag to allow reflexive dlopens.
18595 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
18597 # Compiler flag to generate shared objects directly from archives.
18598 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
18600 # Whether the compiler copes with passing no objects directly.
18601 compiler_needs_object=$lt_compiler_needs_object_CXX
18603 # Create an old-style archive from a shared archive.
18604 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
18606 # Create a temporary old-style archive to link instead of a shared archive.
18607 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
18609 # Commands used to build a shared archive.
18610 archive_cmds=$lt_archive_cmds_CXX
18611 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
18613 # Commands used to build a loadable module if different from building
18614 # a shared archive.
18615 module_cmds=$lt_module_cmds_CXX
18616 module_expsym_cmds=$lt_module_expsym_cmds_CXX
18618 # Whether we are building with GNU ld or not.
18619 with_gnu_ld=$lt_with_gnu_ld_CXX
18621 # Flag that allows shared libraries with undefined symbols to be built.
18622 allow_undefined_flag=$lt_allow_undefined_flag_CXX
18624 # Flag that enforces no undefined symbols.
18625 no_undefined_flag=$lt_no_undefined_flag_CXX
18627 # Flag to hardcode \$libdir into a binary during linking.
18628 # This must work even if \$libdir does not exist
18629 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
18631 # If ld is used when linking, flag to hardcode \$libdir into a binary
18632 # during linking. This must work even if \$libdir does not exist.
18633 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
18635 # Whether we need a single "-rpath" flag with a separated argument.
18636 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
18638 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18639 # DIR into the resulting binary.
18640 hardcode_direct=$hardcode_direct_CXX
18642 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18643 # DIR into the resulting binary and the resulting library dependency is
18644 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18645 # library is relocated.
18646 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
18648 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18649 # into the resulting binary.
18650 hardcode_minus_L=$hardcode_minus_L_CXX
18652 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18653 # into the resulting binary.
18654 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
18656 # Set to "yes" if building a shared library automatically hardcodes DIR
18657 # into the library and all subsequent libraries and executables linked
18658 # against it.
18659 hardcode_automatic=$hardcode_automatic_CXX
18661 # Set to yes if linker adds runtime paths of dependent libraries
18662 # to runtime path list.
18663 inherit_rpath=$inherit_rpath_CXX
18665 # Whether libtool must link a program against all its dependency libraries.
18666 link_all_deplibs=$link_all_deplibs_CXX
18668 # Fix the shell variable \$srcfile for the compiler.
18669 fix_srcfile_path=$lt_fix_srcfile_path_CXX
18671 # Set to "yes" if exported symbols are required.
18672 always_export_symbols=$always_export_symbols_CXX
18674 # The commands to list exported symbols.
18675 export_symbols_cmds=$lt_export_symbols_cmds_CXX
18677 # Symbols that should not be listed in the preloaded symbols.
18678 exclude_expsyms=$lt_exclude_expsyms_CXX
18680 # Symbols that must always be exported.
18681 include_expsyms=$lt_include_expsyms_CXX
18683 # Commands necessary for linking programs (against libraries) with templates.
18684 prelink_cmds=$lt_prelink_cmds_CXX
18686 # Specify filename containing input files.
18687 file_list_spec=$lt_file_list_spec_CXX
18689 # How to hardcode a shared library path into an executable.
18690 hardcode_action=$hardcode_action_CXX
18692 # The directories searched by this compiler when creating a shared library.
18693 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
18695 # Dependencies to place before and after the objects being linked to
18696 # create a shared library.
18697 predep_objects=$lt_predep_objects_CXX
18698 postdep_objects=$lt_postdep_objects_CXX
18699 predeps=$lt_predeps_CXX
18700 postdeps=$lt_postdeps_CXX
18702 # The library search path used internally by the compiler when linking
18703 # a shared library.
18704 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
18706 # ### END LIBTOOL TAG CONFIG: CXX
18707 _LT_EOF
18710 "libproc_macro_internal/Makefile":F) cat > vpsed$$ << \_EOF
18711 s!`test -f '$<' || echo '$(srcdir)/'`!!
18712 _EOF
18713 sed -f vpsed$$ $ac_file > tmp$$
18714 mv tmp$$ $ac_file
18715 rm vpsed$$
18716 echo 'MULTISUBDIR =' >> $ac_file
18717 ml_norecursion=yes
18718 { ml_norecursion=; unset ml_norecursion;}
18721 esac
18722 done # for ac_tag
18725 as_fn_exit 0
18726 _ACEOF
18727 ac_clean_files=$ac_clean_files_save
18729 test $ac_write_fail = 0 ||
18730 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
18733 # configure is writing to config.log, and then calls config.status.
18734 # config.status does its own redirection, appending to config.log.
18735 # Unfortunately, on DOS this fails, as config.log is still kept open
18736 # by configure, so config.status won't be able to write to it; its
18737 # output is simply discarded. So we exec the FD to /dev/null,
18738 # effectively closing config.log, so it can be properly (re)opened and
18739 # appended to by config.status. When coming back to configure, we
18740 # need to make the FD available again.
18741 if test "$no_create" != yes; then
18742 ac_cs_success=:
18743 ac_config_status_args=
18744 test "$silent" = yes &&
18745 ac_config_status_args="$ac_config_status_args --quiet"
18746 exec 5>/dev/null
18747 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18748 exec 5>>config.log
18749 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18750 # would make configure fail if this is the last instruction.
18751 $ac_cs_success || as_fn_exit 1
18753 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18754 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18755 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}