re PR target/67834 (Local references inside comdat groups)
[official-gcc.git] / libcc1 / configure
blob64fdc4451630371f4651953c7102de53d0ebff45
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for libcc1 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='libcc1'
589 PACKAGE_TARNAME='libcc1'
590 PACKAGE_VERSION='version-unused'
591 PACKAGE_STRING='libcc1 version-unused'
592 PACKAGE_BUGREPORT=''
593 PACKAGE_URL=''
595 ac_unique_file="libcc1.cc"
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 ENABLE_PLUGIN_FALSE
637 ENABLE_PLUGIN_TRUE
638 libsuffix
639 GMPINC
640 WERROR
641 WARN_FLAGS
642 CONFIG_STATUS_DEPENDENCIES
643 gcc_version
644 get_gcc_base_ver
645 visibility
646 CXXCPP
647 am__fastdepCXX_FALSE
648 am__fastdepCXX_TRUE
649 CXXDEPMODE
650 ac_ct_CXX
651 CXXFLAGS
653 OTOOL64
654 OTOOL
655 LIPO
656 NMEDIT
657 DSYMUTIL
658 RANLIB
660 OBJDUMP
661 LN_S
663 ac_ct_DUMPBIN
664 DUMPBIN
666 FGREP
668 LIBTOOL
669 MAINT
670 MAINTAINER_MODE_FALSE
671 MAINTAINER_MODE_TRUE
672 AM_BACKSLASH
673 AM_DEFAULT_VERBOSITY
674 AM_DEFAULT_V
675 AM_V
676 am__fastdepCC_FALSE
677 am__fastdepCC_TRUE
678 CCDEPMODE
679 am__nodep
680 AMDEPBACKSLASH
681 AMDEP_FALSE
682 AMDEP_TRUE
683 am__quote
684 am__include
685 DEPDIR
686 am__untar
687 am__tar
688 AMTAR
689 am__leading_dot
690 SET_MAKE
692 mkdir_p
693 MKDIR_P
694 INSTALL_STRIP_PROGRAM
695 STRIP
696 install_sh
697 MAKEINFO
698 AUTOHEADER
699 AUTOMAKE
700 AUTOCONF
701 ACLOCAL
702 VERSION
703 PACKAGE
704 CYGPATH_W
705 am__isrc
706 INSTALL_DATA
707 INSTALL_SCRIPT
708 INSTALL_PROGRAM
709 target_subdir
710 host_subdir
711 build_subdir
712 build_libsubdir
713 target_noncanonical
714 EGREP
715 GREP
717 OBJEXT
718 EXEEXT
719 ac_ct_CC
720 CPPFLAGS
721 LDFLAGS
722 CFLAGS
724 target_os
725 target_vendor
726 target_cpu
727 target
728 host_os
729 host_vendor
730 host_cpu
731 host
732 build_os
733 build_vendor
734 build_cpu
735 build
736 target_alias
737 host_alias
738 build_alias
739 LIBS
740 ECHO_T
741 ECHO_N
742 ECHO_C
743 DEFS
744 mandir
745 localedir
746 libdir
747 psdir
748 pdfdir
749 dvidir
750 htmldir
751 infodir
752 docdir
753 oldincludedir
754 includedir
755 localstatedir
756 sharedstatedir
757 sysconfdir
758 datadir
759 datarootdir
760 libexecdir
761 sbindir
762 bindir
763 program_transform_name
764 prefix
765 exec_prefix
766 PACKAGE_URL
767 PACKAGE_BUGREPORT
768 PACKAGE_STRING
769 PACKAGE_VERSION
770 PACKAGE_TARNAME
771 PACKAGE_NAME
772 PATH_SEPARATOR
773 SHELL'
774 ac_subst_files=''
775 ac_user_opts='
776 enable_option_checking
777 with_build_libsubdir
778 enable_dependency_tracking
779 enable_silent_rules
780 enable_maintainer_mode
781 enable_static
782 enable_shared
783 with_pic
784 enable_fast_install
785 with_gnu_ld
786 enable_libtool_lock
787 with_gcc_major_version_only
788 enable_werror_always
789 enable_plugin
791 ac_precious_vars='build_alias
792 host_alias
793 target_alias
795 CFLAGS
796 LDFLAGS
797 LIBS
798 CPPFLAGS
801 CXXFLAGS
803 CXXCPP
804 GMPINC'
807 # Initialize some variables set by options.
808 ac_init_help=
809 ac_init_version=false
810 ac_unrecognized_opts=
811 ac_unrecognized_sep=
812 # The variables have the same names as the options, with
813 # dashes changed to underlines.
814 cache_file=/dev/null
815 exec_prefix=NONE
816 no_create=
817 no_recursion=
818 prefix=NONE
819 program_prefix=NONE
820 program_suffix=NONE
821 program_transform_name=s,x,x,
822 silent=
823 site=
824 srcdir=
825 verbose=
826 x_includes=NONE
827 x_libraries=NONE
829 # Installation directory options.
830 # These are left unexpanded so users can "make install exec_prefix=/foo"
831 # and all the variables that are supposed to be based on exec_prefix
832 # by default will actually change.
833 # Use braces instead of parens because sh, perl, etc. also accept them.
834 # (The list follows the same order as the GNU Coding Standards.)
835 bindir='${exec_prefix}/bin'
836 sbindir='${exec_prefix}/sbin'
837 libexecdir='${exec_prefix}/libexec'
838 datarootdir='${prefix}/share'
839 datadir='${datarootdir}'
840 sysconfdir='${prefix}/etc'
841 sharedstatedir='${prefix}/com'
842 localstatedir='${prefix}/var'
843 includedir='${prefix}/include'
844 oldincludedir='/usr/include'
845 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
846 infodir='${datarootdir}/info'
847 htmldir='${docdir}'
848 dvidir='${docdir}'
849 pdfdir='${docdir}'
850 psdir='${docdir}'
851 libdir='${exec_prefix}/lib'
852 localedir='${datarootdir}/locale'
853 mandir='${datarootdir}/man'
855 ac_prev=
856 ac_dashdash=
857 for ac_option
859 # If the previous option needs an argument, assign it.
860 if test -n "$ac_prev"; then
861 eval $ac_prev=\$ac_option
862 ac_prev=
863 continue
866 case $ac_option in
867 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
868 *=) ac_optarg= ;;
869 *) ac_optarg=yes ;;
870 esac
872 # Accept the important Cygnus configure options, so we can diagnose typos.
874 case $ac_dashdash$ac_option in
876 ac_dashdash=yes ;;
878 -bindir | --bindir | --bindi | --bind | --bin | --bi)
879 ac_prev=bindir ;;
880 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
881 bindir=$ac_optarg ;;
883 -build | --build | --buil | --bui | --bu)
884 ac_prev=build_alias ;;
885 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
886 build_alias=$ac_optarg ;;
888 -cache-file | --cache-file | --cache-fil | --cache-fi \
889 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
890 ac_prev=cache_file ;;
891 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
892 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
893 cache_file=$ac_optarg ;;
895 --config-cache | -C)
896 cache_file=config.cache ;;
898 -datadir | --datadir | --datadi | --datad)
899 ac_prev=datadir ;;
900 -datadir=* | --datadir=* | --datadi=* | --datad=*)
901 datadir=$ac_optarg ;;
903 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
904 | --dataroo | --dataro | --datar)
905 ac_prev=datarootdir ;;
906 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
907 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
908 datarootdir=$ac_optarg ;;
910 -disable-* | --disable-*)
911 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
912 # Reject names that are not valid shell variable names.
913 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
914 as_fn_error $? "invalid feature name: $ac_useropt"
915 ac_useropt_orig=$ac_useropt
916 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
917 case $ac_user_opts in
919 "enable_$ac_useropt"
920 "*) ;;
921 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
922 ac_unrecognized_sep=', ';;
923 esac
924 eval enable_$ac_useropt=no ;;
926 -docdir | --docdir | --docdi | --doc | --do)
927 ac_prev=docdir ;;
928 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
929 docdir=$ac_optarg ;;
931 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
932 ac_prev=dvidir ;;
933 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
934 dvidir=$ac_optarg ;;
936 -enable-* | --enable-*)
937 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
938 # Reject names that are not valid shell variable names.
939 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
940 as_fn_error $? "invalid feature name: $ac_useropt"
941 ac_useropt_orig=$ac_useropt
942 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
943 case $ac_user_opts in
945 "enable_$ac_useropt"
946 "*) ;;
947 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
948 ac_unrecognized_sep=', ';;
949 esac
950 eval enable_$ac_useropt=\$ac_optarg ;;
952 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
953 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
954 | --exec | --exe | --ex)
955 ac_prev=exec_prefix ;;
956 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
957 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
958 | --exec=* | --exe=* | --ex=*)
959 exec_prefix=$ac_optarg ;;
961 -gas | --gas | --ga | --g)
962 # Obsolete; use --with-gas.
963 with_gas=yes ;;
965 -help | --help | --hel | --he | -h)
966 ac_init_help=long ;;
967 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
968 ac_init_help=recursive ;;
969 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
970 ac_init_help=short ;;
972 -host | --host | --hos | --ho)
973 ac_prev=host_alias ;;
974 -host=* | --host=* | --hos=* | --ho=*)
975 host_alias=$ac_optarg ;;
977 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
978 ac_prev=htmldir ;;
979 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
980 | --ht=*)
981 htmldir=$ac_optarg ;;
983 -includedir | --includedir | --includedi | --included | --include \
984 | --includ | --inclu | --incl | --inc)
985 ac_prev=includedir ;;
986 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
987 | --includ=* | --inclu=* | --incl=* | --inc=*)
988 includedir=$ac_optarg ;;
990 -infodir | --infodir | --infodi | --infod | --info | --inf)
991 ac_prev=infodir ;;
992 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
993 infodir=$ac_optarg ;;
995 -libdir | --libdir | --libdi | --libd)
996 ac_prev=libdir ;;
997 -libdir=* | --libdir=* | --libdi=* | --libd=*)
998 libdir=$ac_optarg ;;
1000 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1001 | --libexe | --libex | --libe)
1002 ac_prev=libexecdir ;;
1003 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1004 | --libexe=* | --libex=* | --libe=*)
1005 libexecdir=$ac_optarg ;;
1007 -localedir | --localedir | --localedi | --localed | --locale)
1008 ac_prev=localedir ;;
1009 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1010 localedir=$ac_optarg ;;
1012 -localstatedir | --localstatedir | --localstatedi | --localstated \
1013 | --localstate | --localstat | --localsta | --localst | --locals)
1014 ac_prev=localstatedir ;;
1015 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1016 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1017 localstatedir=$ac_optarg ;;
1019 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1020 ac_prev=mandir ;;
1021 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1022 mandir=$ac_optarg ;;
1024 -nfp | --nfp | --nf)
1025 # Obsolete; use --without-fp.
1026 with_fp=no ;;
1028 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1029 | --no-cr | --no-c | -n)
1030 no_create=yes ;;
1032 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1033 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1034 no_recursion=yes ;;
1036 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1037 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1038 | --oldin | --oldi | --old | --ol | --o)
1039 ac_prev=oldincludedir ;;
1040 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1041 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1042 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1043 oldincludedir=$ac_optarg ;;
1045 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1046 ac_prev=prefix ;;
1047 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1048 prefix=$ac_optarg ;;
1050 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1051 | --program-pre | --program-pr | --program-p)
1052 ac_prev=program_prefix ;;
1053 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1054 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1055 program_prefix=$ac_optarg ;;
1057 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1058 | --program-suf | --program-su | --program-s)
1059 ac_prev=program_suffix ;;
1060 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1061 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1062 program_suffix=$ac_optarg ;;
1064 -program-transform-name | --program-transform-name \
1065 | --program-transform-nam | --program-transform-na \
1066 | --program-transform-n | --program-transform- \
1067 | --program-transform | --program-transfor \
1068 | --program-transfo | --program-transf \
1069 | --program-trans | --program-tran \
1070 | --progr-tra | --program-tr | --program-t)
1071 ac_prev=program_transform_name ;;
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 program_transform_name=$ac_optarg ;;
1081 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1082 ac_prev=pdfdir ;;
1083 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1084 pdfdir=$ac_optarg ;;
1086 -psdir | --psdir | --psdi | --psd | --ps)
1087 ac_prev=psdir ;;
1088 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1089 psdir=$ac_optarg ;;
1091 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1092 | -silent | --silent | --silen | --sile | --sil)
1093 silent=yes ;;
1095 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1096 ac_prev=sbindir ;;
1097 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1098 | --sbi=* | --sb=*)
1099 sbindir=$ac_optarg ;;
1101 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1102 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1103 | --sharedst | --shareds | --shared | --share | --shar \
1104 | --sha | --sh)
1105 ac_prev=sharedstatedir ;;
1106 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1107 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1108 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1109 | --sha=* | --sh=*)
1110 sharedstatedir=$ac_optarg ;;
1112 -site | --site | --sit)
1113 ac_prev=site ;;
1114 -site=* | --site=* | --sit=*)
1115 site=$ac_optarg ;;
1117 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1118 ac_prev=srcdir ;;
1119 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1120 srcdir=$ac_optarg ;;
1122 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1123 | --syscon | --sysco | --sysc | --sys | --sy)
1124 ac_prev=sysconfdir ;;
1125 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1126 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1127 sysconfdir=$ac_optarg ;;
1129 -target | --target | --targe | --targ | --tar | --ta | --t)
1130 ac_prev=target_alias ;;
1131 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1132 target_alias=$ac_optarg ;;
1134 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1135 verbose=yes ;;
1137 -version | --version | --versio | --versi | --vers | -V)
1138 ac_init_version=: ;;
1140 -with-* | --with-*)
1141 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1142 # Reject names that are not valid shell variable names.
1143 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1144 as_fn_error $? "invalid package name: $ac_useropt"
1145 ac_useropt_orig=$ac_useropt
1146 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1147 case $ac_user_opts in
1149 "with_$ac_useropt"
1150 "*) ;;
1151 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1152 ac_unrecognized_sep=', ';;
1153 esac
1154 eval with_$ac_useropt=\$ac_optarg ;;
1156 -without-* | --without-*)
1157 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1158 # Reject names that are not valid shell variable names.
1159 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1160 as_fn_error $? "invalid package name: $ac_useropt"
1161 ac_useropt_orig=$ac_useropt
1162 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1163 case $ac_user_opts in
1165 "with_$ac_useropt"
1166 "*) ;;
1167 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1168 ac_unrecognized_sep=', ';;
1169 esac
1170 eval with_$ac_useropt=no ;;
1172 --x)
1173 # Obsolete; use --with-x.
1174 with_x=yes ;;
1176 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1177 | --x-incl | --x-inc | --x-in | --x-i)
1178 ac_prev=x_includes ;;
1179 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1180 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1181 x_includes=$ac_optarg ;;
1183 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1184 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1185 ac_prev=x_libraries ;;
1186 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1187 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1188 x_libraries=$ac_optarg ;;
1190 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1191 Try \`$0 --help' for more information"
1194 *=*)
1195 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1196 # Reject names that are not valid shell variable names.
1197 case $ac_envvar in #(
1198 '' | [0-9]* | *[!_$as_cr_alnum]* )
1199 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1200 esac
1201 eval $ac_envvar=\$ac_optarg
1202 export $ac_envvar ;;
1205 # FIXME: should be removed in autoconf 3.0.
1206 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1207 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1208 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1209 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1212 esac
1213 done
1215 if test -n "$ac_prev"; then
1216 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1217 as_fn_error $? "missing argument to $ac_option"
1220 if test -n "$ac_unrecognized_opts"; then
1221 case $enable_option_checking in
1222 no) ;;
1223 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1224 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1225 esac
1228 # Check all directory arguments for consistency.
1229 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1230 datadir sysconfdir sharedstatedir localstatedir includedir \
1231 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1232 libdir localedir mandir
1234 eval ac_val=\$$ac_var
1235 # Remove trailing slashes.
1236 case $ac_val in
1237 */ )
1238 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1239 eval $ac_var=\$ac_val;;
1240 esac
1241 # Be sure to have absolute directory names.
1242 case $ac_val in
1243 [\\/$]* | ?:[\\/]* ) continue;;
1244 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1245 esac
1246 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1247 done
1249 # There might be people who depend on the old broken behavior: `$host'
1250 # used to hold the argument of --host etc.
1251 # FIXME: To remove some day.
1252 build=$build_alias
1253 host=$host_alias
1254 target=$target_alias
1256 # FIXME: To remove some day.
1257 if test "x$host_alias" != x; then
1258 if test "x$build_alias" = x; then
1259 cross_compiling=maybe
1260 elif test "x$build_alias" != "x$host_alias"; then
1261 cross_compiling=yes
1265 ac_tool_prefix=
1266 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1268 test "$silent" = yes && exec 6>/dev/null
1271 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1272 ac_ls_di=`ls -di .` &&
1273 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1274 as_fn_error $? "working directory cannot be determined"
1275 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1276 as_fn_error $? "pwd does not report name of working directory"
1279 # Find the source files, if location was not specified.
1280 if test -z "$srcdir"; then
1281 ac_srcdir_defaulted=yes
1282 # Try the directory containing this script, then the parent directory.
1283 ac_confdir=`$as_dirname -- "$as_myself" ||
1284 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1285 X"$as_myself" : 'X\(//\)[^/]' \| \
1286 X"$as_myself" : 'X\(//\)$' \| \
1287 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1288 $as_echo X"$as_myself" |
1289 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1290 s//\1/
1293 /^X\(\/\/\)[^/].*/{
1294 s//\1/
1297 /^X\(\/\/\)$/{
1298 s//\1/
1301 /^X\(\/\).*/{
1302 s//\1/
1305 s/.*/./; q'`
1306 srcdir=$ac_confdir
1307 if test ! -r "$srcdir/$ac_unique_file"; then
1308 srcdir=..
1310 else
1311 ac_srcdir_defaulted=no
1313 if test ! -r "$srcdir/$ac_unique_file"; then
1314 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1315 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1317 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1318 ac_abs_confdir=`(
1319 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1320 pwd)`
1321 # When building in place, set srcdir=.
1322 if test "$ac_abs_confdir" = "$ac_pwd"; then
1323 srcdir=.
1325 # Remove unnecessary trailing slashes from srcdir.
1326 # Double slashes in file names in object file debugging info
1327 # mess up M-x gdb in Emacs.
1328 case $srcdir in
1329 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1330 esac
1331 for ac_var in $ac_precious_vars; do
1332 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1333 eval ac_env_${ac_var}_value=\$${ac_var}
1334 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1335 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1336 done
1339 # Report the --help message.
1341 if test "$ac_init_help" = "long"; then
1342 # Omit some internal or obsolete options to make the list less imposing.
1343 # This message is too long to be a string in the A/UX 3.1 sh.
1344 cat <<_ACEOF
1345 \`configure' configures libcc1 version-unused to adapt to many kinds of systems.
1347 Usage: $0 [OPTION]... [VAR=VALUE]...
1349 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1350 VAR=VALUE. See below for descriptions of some of the useful variables.
1352 Defaults for the options are specified in brackets.
1354 Configuration:
1355 -h, --help display this help and exit
1356 --help=short display options specific to this package
1357 --help=recursive display the short help of all the included packages
1358 -V, --version display version information and exit
1359 -q, --quiet, --silent do not print \`checking ...' messages
1360 --cache-file=FILE cache test results in FILE [disabled]
1361 -C, --config-cache alias for \`--cache-file=config.cache'
1362 -n, --no-create do not create output files
1363 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1365 Installation directories:
1366 --prefix=PREFIX install architecture-independent files in PREFIX
1367 [$ac_default_prefix]
1368 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1369 [PREFIX]
1371 By default, \`make install' will install all the files in
1372 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1373 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1374 for instance \`--prefix=\$HOME'.
1376 For better control, use the options below.
1378 Fine tuning of the installation directories:
1379 --bindir=DIR user executables [EPREFIX/bin]
1380 --sbindir=DIR system admin executables [EPREFIX/sbin]
1381 --libexecdir=DIR program executables [EPREFIX/libexec]
1382 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1383 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1384 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1385 --libdir=DIR object code libraries [EPREFIX/lib]
1386 --includedir=DIR C header files [PREFIX/include]
1387 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1388 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1389 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1390 --infodir=DIR info documentation [DATAROOTDIR/info]
1391 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1392 --mandir=DIR man documentation [DATAROOTDIR/man]
1393 --docdir=DIR documentation root [DATAROOTDIR/doc/libcc1]
1394 --htmldir=DIR html documentation [DOCDIR]
1395 --dvidir=DIR dvi documentation [DOCDIR]
1396 --pdfdir=DIR pdf documentation [DOCDIR]
1397 --psdir=DIR ps documentation [DOCDIR]
1398 _ACEOF
1400 cat <<\_ACEOF
1402 Program names:
1403 --program-prefix=PREFIX prepend PREFIX to installed program names
1404 --program-suffix=SUFFIX append SUFFIX to installed program names
1405 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1407 System types:
1408 --build=BUILD configure for building on BUILD [guessed]
1409 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1410 --target=TARGET configure for building compilers for TARGET [HOST]
1411 _ACEOF
1414 if test -n "$ac_init_help"; then
1415 case $ac_init_help in
1416 short | recursive ) echo "Configuration of libcc1 version-unused:";;
1417 esac
1418 cat <<\_ACEOF
1420 Optional Features:
1421 --disable-option-checking ignore unrecognized --enable/--with options
1422 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1423 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1424 --enable-dependency-tracking
1425 do not reject slow dependency extractors
1426 --disable-dependency-tracking
1427 speeds up one-time build
1428 --enable-silent-rules less verbose build output (undo: "make V=1")
1429 --disable-silent-rules verbose build output (undo: "make V=0")
1430 --enable-maintainer-mode
1431 enable make rules and dependencies not useful (and
1432 sometimes confusing) to the casual installer
1433 --enable-static[=PKGS] build static libraries [default=no]
1434 --enable-shared[=PKGS] build shared libraries [default=yes]
1435 --enable-fast-install[=PKGS]
1436 optimize for fast installation [default=yes]
1437 --disable-libtool-lock avoid locking (might break parallel builds)
1438 --enable-werror-always enable -Werror despite compiler version
1439 --enable-plugin enable plugin support
1441 Optional Packages:
1442 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1443 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1444 --with-build-libsubdir=DIR Directory where to find libraries for build system
1445 --with-pic try to use only PIC/non-PIC objects [default=use
1446 both]
1447 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1448 --with-gcc-major-version-only
1449 use only GCC major number in filesystem paths
1451 Some influential environment variables:
1452 CC C compiler command
1453 CFLAGS C compiler flags
1454 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1455 nonstandard directory <lib dir>
1456 LIBS libraries to pass to the linker, e.g. -l<library>
1457 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1458 you have headers in a nonstandard directory <include dir>
1459 CPP C preprocessor
1460 CXX C++ compiler command
1461 CXXFLAGS C++ compiler flags
1462 CXXCPP C++ preprocessor
1463 GMPINC How to find GMP include files
1465 Use these variables to override the choices made by `configure' or to help
1466 it to find libraries and programs with nonstandard names/locations.
1468 Report bugs to the package provider.
1469 _ACEOF
1470 ac_status=$?
1473 if test "$ac_init_help" = "recursive"; then
1474 # If there are subdirs, report their specific --help.
1475 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1476 test -d "$ac_dir" ||
1477 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1478 continue
1479 ac_builddir=.
1481 case "$ac_dir" in
1482 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1484 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1485 # A ".." for each directory in $ac_dir_suffix.
1486 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1487 case $ac_top_builddir_sub in
1488 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1489 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1490 esac ;;
1491 esac
1492 ac_abs_top_builddir=$ac_pwd
1493 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1494 # for backward compatibility:
1495 ac_top_builddir=$ac_top_build_prefix
1497 case $srcdir in
1498 .) # We are building in place.
1499 ac_srcdir=.
1500 ac_top_srcdir=$ac_top_builddir_sub
1501 ac_abs_top_srcdir=$ac_pwd ;;
1502 [\\/]* | ?:[\\/]* ) # Absolute name.
1503 ac_srcdir=$srcdir$ac_dir_suffix;
1504 ac_top_srcdir=$srcdir
1505 ac_abs_top_srcdir=$srcdir ;;
1506 *) # Relative name.
1507 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1508 ac_top_srcdir=$ac_top_build_prefix$srcdir
1509 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1510 esac
1511 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1513 cd "$ac_dir" || { ac_status=$?; continue; }
1514 # Check for guested configure.
1515 if test -f "$ac_srcdir/configure.gnu"; then
1516 echo &&
1517 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1518 elif test -f "$ac_srcdir/configure"; then
1519 echo &&
1520 $SHELL "$ac_srcdir/configure" --help=recursive
1521 else
1522 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1523 fi || ac_status=$?
1524 cd "$ac_pwd" || { ac_status=$?; break; }
1525 done
1528 test -n "$ac_init_help" && exit $ac_status
1529 if $ac_init_version; then
1530 cat <<\_ACEOF
1531 libcc1 configure version-unused
1532 generated by GNU Autoconf 2.69
1534 Copyright (C) 2012 Free Software Foundation, Inc.
1535 This configure script is free software; the Free Software Foundation
1536 gives unlimited permission to copy, distribute and modify it.
1537 _ACEOF
1538 exit
1541 ## ------------------------ ##
1542 ## Autoconf initialization. ##
1543 ## ------------------------ ##
1545 # ac_fn_c_try_compile LINENO
1546 # --------------------------
1547 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1548 ac_fn_c_try_compile ()
1550 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1551 rm -f conftest.$ac_objext
1552 if { { ac_try="$ac_compile"
1553 case "(($ac_try" in
1554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1555 *) ac_try_echo=$ac_try;;
1556 esac
1557 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1558 $as_echo "$ac_try_echo"; } >&5
1559 (eval "$ac_compile") 2>conftest.err
1560 ac_status=$?
1561 if test -s conftest.err; then
1562 grep -v '^ *+' conftest.err >conftest.er1
1563 cat conftest.er1 >&5
1564 mv -f conftest.er1 conftest.err
1566 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1567 test $ac_status = 0; } && {
1568 test -z "$ac_c_werror_flag" ||
1569 test ! -s conftest.err
1570 } && test -s conftest.$ac_objext; then :
1571 ac_retval=0
1572 else
1573 $as_echo "$as_me: failed program was:" >&5
1574 sed 's/^/| /' conftest.$ac_ext >&5
1576 ac_retval=1
1578 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1579 as_fn_set_status $ac_retval
1581 } # ac_fn_c_try_compile
1583 # ac_fn_c_try_cpp LINENO
1584 # ----------------------
1585 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1586 ac_fn_c_try_cpp ()
1588 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1589 if { { ac_try="$ac_cpp conftest.$ac_ext"
1590 case "(($ac_try" in
1591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1592 *) ac_try_echo=$ac_try;;
1593 esac
1594 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1595 $as_echo "$ac_try_echo"; } >&5
1596 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1597 ac_status=$?
1598 if test -s conftest.err; then
1599 grep -v '^ *+' conftest.err >conftest.er1
1600 cat conftest.er1 >&5
1601 mv -f conftest.er1 conftest.err
1603 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1604 test $ac_status = 0; } > conftest.i && {
1605 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1606 test ! -s conftest.err
1607 }; then :
1608 ac_retval=0
1609 else
1610 $as_echo "$as_me: failed program was:" >&5
1611 sed 's/^/| /' conftest.$ac_ext >&5
1613 ac_retval=1
1615 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1616 as_fn_set_status $ac_retval
1618 } # ac_fn_c_try_cpp
1620 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1621 # -------------------------------------------------------
1622 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1623 # the include files in INCLUDES and setting the cache variable VAR
1624 # accordingly.
1625 ac_fn_c_check_header_mongrel ()
1627 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1628 if eval \${$3+:} false; then :
1629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1630 $as_echo_n "checking for $2... " >&6; }
1631 if eval \${$3+:} false; then :
1632 $as_echo_n "(cached) " >&6
1634 eval ac_res=\$$3
1635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1636 $as_echo "$ac_res" >&6; }
1637 else
1638 # Is the header compilable?
1639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1640 $as_echo_n "checking $2 usability... " >&6; }
1641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1642 /* end confdefs.h. */
1644 #include <$2>
1645 _ACEOF
1646 if ac_fn_c_try_compile "$LINENO"; then :
1647 ac_header_compiler=yes
1648 else
1649 ac_header_compiler=no
1651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1653 $as_echo "$ac_header_compiler" >&6; }
1655 # Is the header present?
1656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1657 $as_echo_n "checking $2 presence... " >&6; }
1658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1659 /* end confdefs.h. */
1660 #include <$2>
1661 _ACEOF
1662 if ac_fn_c_try_cpp "$LINENO"; then :
1663 ac_header_preproc=yes
1664 else
1665 ac_header_preproc=no
1667 rm -f conftest.err conftest.i conftest.$ac_ext
1668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1669 $as_echo "$ac_header_preproc" >&6; }
1671 # So? What about this header?
1672 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1673 yes:no: )
1674 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1675 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1676 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1677 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1679 no:yes:* )
1680 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1681 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1682 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1683 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1684 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1685 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1686 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1687 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1688 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1689 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1691 esac
1692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1693 $as_echo_n "checking for $2... " >&6; }
1694 if eval \${$3+:} false; then :
1695 $as_echo_n "(cached) " >&6
1696 else
1697 eval "$3=\$ac_header_compiler"
1699 eval ac_res=\$$3
1700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1701 $as_echo "$ac_res" >&6; }
1703 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1705 } # ac_fn_c_check_header_mongrel
1707 # ac_fn_c_try_run LINENO
1708 # ----------------------
1709 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1710 # that executables *can* be run.
1711 ac_fn_c_try_run ()
1713 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1714 if { { ac_try="$ac_link"
1715 case "(($ac_try" in
1716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1717 *) ac_try_echo=$ac_try;;
1718 esac
1719 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1720 $as_echo "$ac_try_echo"; } >&5
1721 (eval "$ac_link") 2>&5
1722 ac_status=$?
1723 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1724 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1725 { { case "(($ac_try" in
1726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1727 *) ac_try_echo=$ac_try;;
1728 esac
1729 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1730 $as_echo "$ac_try_echo"; } >&5
1731 (eval "$ac_try") 2>&5
1732 ac_status=$?
1733 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1734 test $ac_status = 0; }; }; then :
1735 ac_retval=0
1736 else
1737 $as_echo "$as_me: program exited with status $ac_status" >&5
1738 $as_echo "$as_me: failed program was:" >&5
1739 sed 's/^/| /' conftest.$ac_ext >&5
1741 ac_retval=$ac_status
1743 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1744 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1745 as_fn_set_status $ac_retval
1747 } # ac_fn_c_try_run
1749 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1750 # -------------------------------------------------------
1751 # Tests whether HEADER exists and can be compiled using the include files in
1752 # INCLUDES, setting the cache variable VAR accordingly.
1753 ac_fn_c_check_header_compile ()
1755 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1757 $as_echo_n "checking for $2... " >&6; }
1758 if eval \${$3+:} false; then :
1759 $as_echo_n "(cached) " >&6
1760 else
1761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1762 /* end confdefs.h. */
1764 #include <$2>
1765 _ACEOF
1766 if ac_fn_c_try_compile "$LINENO"; then :
1767 eval "$3=yes"
1768 else
1769 eval "$3=no"
1771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1773 eval ac_res=\$$3
1774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1775 $as_echo "$ac_res" >&6; }
1776 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1778 } # ac_fn_c_check_header_compile
1780 # ac_fn_c_try_link LINENO
1781 # -----------------------
1782 # Try to link conftest.$ac_ext, and return whether this succeeded.
1783 ac_fn_c_try_link ()
1785 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1786 rm -f conftest.$ac_objext conftest$ac_exeext
1787 if { { ac_try="$ac_link"
1788 case "(($ac_try" in
1789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1790 *) ac_try_echo=$ac_try;;
1791 esac
1792 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1793 $as_echo "$ac_try_echo"; } >&5
1794 (eval "$ac_link") 2>conftest.err
1795 ac_status=$?
1796 if test -s conftest.err; then
1797 grep -v '^ *+' conftest.err >conftest.er1
1798 cat conftest.er1 >&5
1799 mv -f conftest.er1 conftest.err
1801 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1802 test $ac_status = 0; } && {
1803 test -z "$ac_c_werror_flag" ||
1804 test ! -s conftest.err
1805 } && test -s conftest$ac_exeext && {
1806 test "$cross_compiling" = yes ||
1807 test -x conftest$ac_exeext
1808 }; then :
1809 ac_retval=0
1810 else
1811 $as_echo "$as_me: failed program was:" >&5
1812 sed 's/^/| /' conftest.$ac_ext >&5
1814 ac_retval=1
1816 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1817 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1818 # interfere with the next link command; also delete a directory that is
1819 # left behind by Apple's compiler. We do this before executing the actions.
1820 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1821 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1822 as_fn_set_status $ac_retval
1824 } # ac_fn_c_try_link
1826 # ac_fn_c_check_func LINENO FUNC VAR
1827 # ----------------------------------
1828 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1829 ac_fn_c_check_func ()
1831 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1833 $as_echo_n "checking for $2... " >&6; }
1834 if eval \${$3+:} false; then :
1835 $as_echo_n "(cached) " >&6
1836 else
1837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1838 /* end confdefs.h. */
1839 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1840 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1841 #define $2 innocuous_$2
1843 /* System header to define __stub macros and hopefully few prototypes,
1844 which can conflict with char $2 (); below.
1845 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1846 <limits.h> exists even on freestanding compilers. */
1848 #ifdef __STDC__
1849 # include <limits.h>
1850 #else
1851 # include <assert.h>
1852 #endif
1854 #undef $2
1856 /* Override any GCC internal prototype to avoid an error.
1857 Use char because int might match the return type of a GCC
1858 builtin and then its argument prototype would still apply. */
1859 #ifdef __cplusplus
1860 extern "C"
1861 #endif
1862 char $2 ();
1863 /* The GNU C library defines this for functions which it implements
1864 to always fail with ENOSYS. Some functions are actually named
1865 something starting with __ and the normal name is an alias. */
1866 #if defined __stub_$2 || defined __stub___$2
1867 choke me
1868 #endif
1871 main ()
1873 return $2 ();
1875 return 0;
1877 _ACEOF
1878 if ac_fn_c_try_link "$LINENO"; then :
1879 eval "$3=yes"
1880 else
1881 eval "$3=no"
1883 rm -f core conftest.err conftest.$ac_objext \
1884 conftest$ac_exeext conftest.$ac_ext
1886 eval ac_res=\$$3
1887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1888 $as_echo "$ac_res" >&6; }
1889 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1891 } # ac_fn_c_check_func
1893 # ac_fn_cxx_try_compile LINENO
1894 # ----------------------------
1895 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1896 ac_fn_cxx_try_compile ()
1898 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1899 rm -f conftest.$ac_objext
1900 if { { ac_try="$ac_compile"
1901 case "(($ac_try" in
1902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1903 *) ac_try_echo=$ac_try;;
1904 esac
1905 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1906 $as_echo "$ac_try_echo"; } >&5
1907 (eval "$ac_compile") 2>conftest.err
1908 ac_status=$?
1909 if test -s conftest.err; then
1910 grep -v '^ *+' conftest.err >conftest.er1
1911 cat conftest.er1 >&5
1912 mv -f conftest.er1 conftest.err
1914 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1915 test $ac_status = 0; } && {
1916 test -z "$ac_cxx_werror_flag" ||
1917 test ! -s conftest.err
1918 } && test -s conftest.$ac_objext; then :
1919 ac_retval=0
1920 else
1921 $as_echo "$as_me: failed program was:" >&5
1922 sed 's/^/| /' conftest.$ac_ext >&5
1924 ac_retval=1
1926 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1927 as_fn_set_status $ac_retval
1929 } # ac_fn_cxx_try_compile
1931 # ac_fn_cxx_try_cpp LINENO
1932 # ------------------------
1933 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1934 ac_fn_cxx_try_cpp ()
1936 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1937 if { { ac_try="$ac_cpp conftest.$ac_ext"
1938 case "(($ac_try" in
1939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1940 *) ac_try_echo=$ac_try;;
1941 esac
1942 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1943 $as_echo "$ac_try_echo"; } >&5
1944 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1945 ac_status=$?
1946 if test -s conftest.err; then
1947 grep -v '^ *+' conftest.err >conftest.er1
1948 cat conftest.er1 >&5
1949 mv -f conftest.er1 conftest.err
1951 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1952 test $ac_status = 0; } > conftest.i && {
1953 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1954 test ! -s conftest.err
1955 }; then :
1956 ac_retval=0
1957 else
1958 $as_echo "$as_me: failed program was:" >&5
1959 sed 's/^/| /' conftest.$ac_ext >&5
1961 ac_retval=1
1963 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1964 as_fn_set_status $ac_retval
1966 } # ac_fn_cxx_try_cpp
1968 # ac_fn_cxx_try_link LINENO
1969 # -------------------------
1970 # Try to link conftest.$ac_ext, and return whether this succeeded.
1971 ac_fn_cxx_try_link ()
1973 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1974 rm -f conftest.$ac_objext conftest$ac_exeext
1975 if { { ac_try="$ac_link"
1976 case "(($ac_try" in
1977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1978 *) ac_try_echo=$ac_try;;
1979 esac
1980 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1981 $as_echo "$ac_try_echo"; } >&5
1982 (eval "$ac_link") 2>conftest.err
1983 ac_status=$?
1984 if test -s conftest.err; then
1985 grep -v '^ *+' conftest.err >conftest.er1
1986 cat conftest.er1 >&5
1987 mv -f conftest.er1 conftest.err
1989 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1990 test $ac_status = 0; } && {
1991 test -z "$ac_cxx_werror_flag" ||
1992 test ! -s conftest.err
1993 } && test -s conftest$ac_exeext && {
1994 test "$cross_compiling" = yes ||
1995 test -x conftest$ac_exeext
1996 }; then :
1997 ac_retval=0
1998 else
1999 $as_echo "$as_me: failed program was:" >&5
2000 sed 's/^/| /' conftest.$ac_ext >&5
2002 ac_retval=1
2004 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2005 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2006 # interfere with the next link command; also delete a directory that is
2007 # left behind by Apple's compiler. We do this before executing the actions.
2008 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2009 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2010 as_fn_set_status $ac_retval
2012 } # ac_fn_cxx_try_link
2014 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2015 # ---------------------------------------------
2016 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2017 # accordingly.
2018 ac_fn_c_check_decl ()
2020 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2021 as_decl_name=`echo $2|sed 's/ *(.*//'`
2022 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2024 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2025 if eval \${$3+:} false; then :
2026 $as_echo_n "(cached) " >&6
2027 else
2028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2029 /* end confdefs.h. */
2032 main ()
2034 #ifndef $as_decl_name
2035 #ifdef __cplusplus
2036 (void) $as_decl_use;
2037 #else
2038 (void) $as_decl_name;
2039 #endif
2040 #endif
2043 return 0;
2045 _ACEOF
2046 if ac_fn_c_try_compile "$LINENO"; then :
2047 eval "$3=yes"
2048 else
2049 eval "$3=no"
2051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2053 eval ac_res=\$$3
2054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2055 $as_echo "$ac_res" >&6; }
2056 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2058 } # ac_fn_c_check_decl
2059 cat >config.log <<_ACEOF
2060 This file contains any messages produced by compilers while
2061 running configure, to aid debugging if configure makes a mistake.
2063 It was created by libcc1 $as_me version-unused, which was
2064 generated by GNU Autoconf 2.69. Invocation command line was
2066 $ $0 $@
2068 _ACEOF
2069 exec 5>>config.log
2071 cat <<_ASUNAME
2072 ## --------- ##
2073 ## Platform. ##
2074 ## --------- ##
2076 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2077 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2078 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2079 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2080 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2082 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2083 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2085 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2086 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2087 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2088 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2089 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2090 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2091 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2093 _ASUNAME
2095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2096 for as_dir in $PATH
2098 IFS=$as_save_IFS
2099 test -z "$as_dir" && as_dir=.
2100 $as_echo "PATH: $as_dir"
2101 done
2102 IFS=$as_save_IFS
2104 } >&5
2106 cat >&5 <<_ACEOF
2109 ## ----------- ##
2110 ## Core tests. ##
2111 ## ----------- ##
2113 _ACEOF
2116 # Keep a trace of the command line.
2117 # Strip out --no-create and --no-recursion so they do not pile up.
2118 # Strip out --silent because we don't want to record it for future runs.
2119 # Also quote any args containing shell meta-characters.
2120 # Make two passes to allow for proper duplicate-argument suppression.
2121 ac_configure_args=
2122 ac_configure_args0=
2123 ac_configure_args1=
2124 ac_must_keep_next=false
2125 for ac_pass in 1 2
2127 for ac_arg
2129 case $ac_arg in
2130 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2131 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2132 | -silent | --silent | --silen | --sile | --sil)
2133 continue ;;
2134 *\'*)
2135 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2136 esac
2137 case $ac_pass in
2138 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2140 as_fn_append ac_configure_args1 " '$ac_arg'"
2141 if test $ac_must_keep_next = true; then
2142 ac_must_keep_next=false # Got value, back to normal.
2143 else
2144 case $ac_arg in
2145 *=* | --config-cache | -C | -disable-* | --disable-* \
2146 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2147 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2148 | -with-* | --with-* | -without-* | --without-* | --x)
2149 case "$ac_configure_args0 " in
2150 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2151 esac
2153 -* ) ac_must_keep_next=true ;;
2154 esac
2156 as_fn_append ac_configure_args " '$ac_arg'"
2158 esac
2159 done
2160 done
2161 { ac_configure_args0=; unset ac_configure_args0;}
2162 { ac_configure_args1=; unset ac_configure_args1;}
2164 # When interrupted or exit'd, cleanup temporary files, and complete
2165 # config.log. We remove comments because anyway the quotes in there
2166 # would cause problems or look ugly.
2167 # WARNING: Use '\'' to represent an apostrophe within the trap.
2168 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2169 trap 'exit_status=$?
2170 # Save into config.log some information that might help in debugging.
2172 echo
2174 $as_echo "## ---------------- ##
2175 ## Cache variables. ##
2176 ## ---------------- ##"
2177 echo
2178 # The following way of writing the cache mishandles newlines in values,
2180 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2181 eval ac_val=\$$ac_var
2182 case $ac_val in #(
2183 *${as_nl}*)
2184 case $ac_var in #(
2185 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2186 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2187 esac
2188 case $ac_var in #(
2189 _ | IFS | as_nl) ;; #(
2190 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2191 *) { eval $ac_var=; unset $ac_var;} ;;
2192 esac ;;
2193 esac
2194 done
2195 (set) 2>&1 |
2196 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2197 *${as_nl}ac_space=\ *)
2198 sed -n \
2199 "s/'\''/'\''\\\\'\'''\''/g;
2200 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2201 ;; #(
2203 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2205 esac |
2206 sort
2208 echo
2210 $as_echo "## ----------------- ##
2211 ## Output variables. ##
2212 ## ----------------- ##"
2213 echo
2214 for ac_var in $ac_subst_vars
2216 eval ac_val=\$$ac_var
2217 case $ac_val in
2218 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2219 esac
2220 $as_echo "$ac_var='\''$ac_val'\''"
2221 done | sort
2222 echo
2224 if test -n "$ac_subst_files"; then
2225 $as_echo "## ------------------- ##
2226 ## File substitutions. ##
2227 ## ------------------- ##"
2228 echo
2229 for ac_var in $ac_subst_files
2231 eval ac_val=\$$ac_var
2232 case $ac_val in
2233 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2234 esac
2235 $as_echo "$ac_var='\''$ac_val'\''"
2236 done | sort
2237 echo
2240 if test -s confdefs.h; then
2241 $as_echo "## ----------- ##
2242 ## confdefs.h. ##
2243 ## ----------- ##"
2244 echo
2245 cat confdefs.h
2246 echo
2248 test "$ac_signal" != 0 &&
2249 $as_echo "$as_me: caught signal $ac_signal"
2250 $as_echo "$as_me: exit $exit_status"
2251 } >&5
2252 rm -f core *.core core.conftest.* &&
2253 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2254 exit $exit_status
2256 for ac_signal in 1 2 13 15; do
2257 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2258 done
2259 ac_signal=0
2261 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2262 rm -f -r conftest* confdefs.h
2264 $as_echo "/* confdefs.h */" > confdefs.h
2266 # Predefined preprocessor variables.
2268 cat >>confdefs.h <<_ACEOF
2269 #define PACKAGE_NAME "$PACKAGE_NAME"
2270 _ACEOF
2272 cat >>confdefs.h <<_ACEOF
2273 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2274 _ACEOF
2276 cat >>confdefs.h <<_ACEOF
2277 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2278 _ACEOF
2280 cat >>confdefs.h <<_ACEOF
2281 #define PACKAGE_STRING "$PACKAGE_STRING"
2282 _ACEOF
2284 cat >>confdefs.h <<_ACEOF
2285 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2286 _ACEOF
2288 cat >>confdefs.h <<_ACEOF
2289 #define PACKAGE_URL "$PACKAGE_URL"
2290 _ACEOF
2293 # Let the site file select an alternate cache file if it wants to.
2294 # Prefer an explicitly selected file to automatically selected ones.
2295 ac_site_file1=NONE
2296 ac_site_file2=NONE
2297 if test -n "$CONFIG_SITE"; then
2298 # We do not want a PATH search for config.site.
2299 case $CONFIG_SITE in #((
2300 -*) ac_site_file1=./$CONFIG_SITE;;
2301 */*) ac_site_file1=$CONFIG_SITE;;
2302 *) ac_site_file1=./$CONFIG_SITE;;
2303 esac
2304 elif test "x$prefix" != xNONE; then
2305 ac_site_file1=$prefix/share/config.site
2306 ac_site_file2=$prefix/etc/config.site
2307 else
2308 ac_site_file1=$ac_default_prefix/share/config.site
2309 ac_site_file2=$ac_default_prefix/etc/config.site
2311 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2313 test "x$ac_site_file" = xNONE && continue
2314 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2315 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2316 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2317 sed 's/^/| /' "$ac_site_file" >&5
2318 . "$ac_site_file" \
2319 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2320 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2321 as_fn_error $? "failed to load site script $ac_site_file
2322 See \`config.log' for more details" "$LINENO" 5; }
2324 done
2326 if test -r "$cache_file"; then
2327 # Some versions of bash will fail to source /dev/null (special files
2328 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2329 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2330 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2331 $as_echo "$as_me: loading cache $cache_file" >&6;}
2332 case $cache_file in
2333 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2334 *) . "./$cache_file";;
2335 esac
2337 else
2338 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2339 $as_echo "$as_me: creating cache $cache_file" >&6;}
2340 >$cache_file
2343 # Check that the precious variables saved in the cache have kept the same
2344 # value.
2345 ac_cache_corrupted=false
2346 for ac_var in $ac_precious_vars; do
2347 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2348 eval ac_new_set=\$ac_env_${ac_var}_set
2349 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2350 eval ac_new_val=\$ac_env_${ac_var}_value
2351 case $ac_old_set,$ac_new_set in
2352 set,)
2353 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2354 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2355 ac_cache_corrupted=: ;;
2356 ,set)
2357 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2358 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2359 ac_cache_corrupted=: ;;
2360 ,);;
2362 if test "x$ac_old_val" != "x$ac_new_val"; then
2363 # differences in whitespace do not lead to failure.
2364 ac_old_val_w=`echo x $ac_old_val`
2365 ac_new_val_w=`echo x $ac_new_val`
2366 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2367 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2368 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2369 ac_cache_corrupted=:
2370 else
2371 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2372 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2373 eval $ac_var=\$ac_old_val
2375 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2376 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2377 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2378 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2379 fi;;
2380 esac
2381 # Pass precious variables to config.status.
2382 if test "$ac_new_set" = set; then
2383 case $ac_new_val in
2384 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2385 *) ac_arg=$ac_var=$ac_new_val ;;
2386 esac
2387 case " $ac_configure_args " in
2388 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2389 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2390 esac
2392 done
2393 if $ac_cache_corrupted; then
2394 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2395 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2396 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2397 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2398 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2400 ## -------------------- ##
2401 ## Main body of script. ##
2402 ## -------------------- ##
2404 ac_ext=c
2405 ac_cpp='$CPP $CPPFLAGS'
2406 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2407 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2408 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2415 ac_config_headers="$ac_config_headers cc1plugin-config.h"
2418 ac_aux_dir=
2419 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2420 if test -f "$ac_dir/install-sh"; then
2421 ac_aux_dir=$ac_dir
2422 ac_install_sh="$ac_aux_dir/install-sh -c"
2423 break
2424 elif test -f "$ac_dir/install.sh"; then
2425 ac_aux_dir=$ac_dir
2426 ac_install_sh="$ac_aux_dir/install.sh -c"
2427 break
2428 elif test -f "$ac_dir/shtool"; then
2429 ac_aux_dir=$ac_dir
2430 ac_install_sh="$ac_aux_dir/shtool install -c"
2431 break
2433 done
2434 if test -z "$ac_aux_dir"; then
2435 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2438 # These three variables are undocumented and unsupported,
2439 # and are intended to be withdrawn in a future Autoconf release.
2440 # They can cause serious problems if a builder's source tree is in a directory
2441 # whose full name contains unusual characters.
2442 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2443 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2444 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2447 # Make sure we can run config.sub.
2448 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2449 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2452 $as_echo_n "checking build system type... " >&6; }
2453 if ${ac_cv_build+:} false; then :
2454 $as_echo_n "(cached) " >&6
2455 else
2456 ac_build_alias=$build_alias
2457 test "x$ac_build_alias" = x &&
2458 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2459 test "x$ac_build_alias" = x &&
2460 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2461 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2462 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2466 $as_echo "$ac_cv_build" >&6; }
2467 case $ac_cv_build in
2468 *-*-*) ;;
2469 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2470 esac
2471 build=$ac_cv_build
2472 ac_save_IFS=$IFS; IFS='-'
2473 set x $ac_cv_build
2474 shift
2475 build_cpu=$1
2476 build_vendor=$2
2477 shift; shift
2478 # Remember, the first character of IFS is used to create $*,
2479 # except with old shells:
2480 build_os=$*
2481 IFS=$ac_save_IFS
2482 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2486 $as_echo_n "checking host system type... " >&6; }
2487 if ${ac_cv_host+:} false; then :
2488 $as_echo_n "(cached) " >&6
2489 else
2490 if test "x$host_alias" = x; then
2491 ac_cv_host=$ac_cv_build
2492 else
2493 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2494 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2499 $as_echo "$ac_cv_host" >&6; }
2500 case $ac_cv_host in
2501 *-*-*) ;;
2502 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2503 esac
2504 host=$ac_cv_host
2505 ac_save_IFS=$IFS; IFS='-'
2506 set x $ac_cv_host
2507 shift
2508 host_cpu=$1
2509 host_vendor=$2
2510 shift; shift
2511 # Remember, the first character of IFS is used to create $*,
2512 # except with old shells:
2513 host_os=$*
2514 IFS=$ac_save_IFS
2515 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2519 $as_echo_n "checking target system type... " >&6; }
2520 if ${ac_cv_target+:} false; then :
2521 $as_echo_n "(cached) " >&6
2522 else
2523 if test "x$target_alias" = x; then
2524 ac_cv_target=$ac_cv_host
2525 else
2526 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2527 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2532 $as_echo "$ac_cv_target" >&6; }
2533 case $ac_cv_target in
2534 *-*-*) ;;
2535 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2536 esac
2537 target=$ac_cv_target
2538 ac_save_IFS=$IFS; IFS='-'
2539 set x $ac_cv_target
2540 shift
2541 target_cpu=$1
2542 target_vendor=$2
2543 shift; shift
2544 # Remember, the first character of IFS is used to create $*,
2545 # except with old shells:
2546 target_os=$*
2547 IFS=$ac_save_IFS
2548 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2551 # The aliases save the names the user supplied, while $host etc.
2552 # will get canonicalized.
2553 test -n "$target_alias" &&
2554 test "$program_prefix$program_suffix$program_transform_name" = \
2555 NONENONEs,x,x, &&
2556 program_prefix=${target_alias}-
2558 # Expand $ac_aux_dir to an absolute path.
2559 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2561 ac_ext=c
2562 ac_cpp='$CPP $CPPFLAGS'
2563 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2564 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2565 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2566 if test -n "$ac_tool_prefix"; then
2567 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2568 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2570 $as_echo_n "checking for $ac_word... " >&6; }
2571 if ${ac_cv_prog_CC+:} false; then :
2572 $as_echo_n "(cached) " >&6
2573 else
2574 if test -n "$CC"; then
2575 ac_cv_prog_CC="$CC" # Let the user override the test.
2576 else
2577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2578 for as_dir in $PATH
2580 IFS=$as_save_IFS
2581 test -z "$as_dir" && as_dir=.
2582 for ac_exec_ext in '' $ac_executable_extensions; do
2583 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2584 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2585 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2586 break 2
2588 done
2589 done
2590 IFS=$as_save_IFS
2594 CC=$ac_cv_prog_CC
2595 if test -n "$CC"; then
2596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2597 $as_echo "$CC" >&6; }
2598 else
2599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2600 $as_echo "no" >&6; }
2605 if test -z "$ac_cv_prog_CC"; then
2606 ac_ct_CC=$CC
2607 # Extract the first word of "gcc", so it can be a program name with args.
2608 set dummy gcc; ac_word=$2
2609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2610 $as_echo_n "checking for $ac_word... " >&6; }
2611 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2612 $as_echo_n "(cached) " >&6
2613 else
2614 if test -n "$ac_ct_CC"; then
2615 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2616 else
2617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2618 for as_dir in $PATH
2620 IFS=$as_save_IFS
2621 test -z "$as_dir" && as_dir=.
2622 for ac_exec_ext in '' $ac_executable_extensions; do
2623 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2624 ac_cv_prog_ac_ct_CC="gcc"
2625 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2626 break 2
2628 done
2629 done
2630 IFS=$as_save_IFS
2634 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2635 if test -n "$ac_ct_CC"; then
2636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2637 $as_echo "$ac_ct_CC" >&6; }
2638 else
2639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2640 $as_echo "no" >&6; }
2643 if test "x$ac_ct_CC" = x; then
2644 CC=""
2645 else
2646 case $cross_compiling:$ac_tool_warned in
2647 yes:)
2648 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2649 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2650 ac_tool_warned=yes ;;
2651 esac
2652 CC=$ac_ct_CC
2654 else
2655 CC="$ac_cv_prog_CC"
2658 if test -z "$CC"; then
2659 if test -n "$ac_tool_prefix"; then
2660 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2661 set dummy ${ac_tool_prefix}cc; ac_word=$2
2662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2663 $as_echo_n "checking for $ac_word... " >&6; }
2664 if ${ac_cv_prog_CC+:} false; then :
2665 $as_echo_n "(cached) " >&6
2666 else
2667 if test -n "$CC"; then
2668 ac_cv_prog_CC="$CC" # Let the user override the test.
2669 else
2670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2671 for as_dir in $PATH
2673 IFS=$as_save_IFS
2674 test -z "$as_dir" && as_dir=.
2675 for ac_exec_ext in '' $ac_executable_extensions; do
2676 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2677 ac_cv_prog_CC="${ac_tool_prefix}cc"
2678 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2679 break 2
2681 done
2682 done
2683 IFS=$as_save_IFS
2687 CC=$ac_cv_prog_CC
2688 if test -n "$CC"; then
2689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2690 $as_echo "$CC" >&6; }
2691 else
2692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2693 $as_echo "no" >&6; }
2699 if test -z "$CC"; then
2700 # Extract the first word of "cc", so it can be a program name with args.
2701 set dummy cc; ac_word=$2
2702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2703 $as_echo_n "checking for $ac_word... " >&6; }
2704 if ${ac_cv_prog_CC+:} false; then :
2705 $as_echo_n "(cached) " >&6
2706 else
2707 if test -n "$CC"; then
2708 ac_cv_prog_CC="$CC" # Let the user override the test.
2709 else
2710 ac_prog_rejected=no
2711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2712 for as_dir in $PATH
2714 IFS=$as_save_IFS
2715 test -z "$as_dir" && as_dir=.
2716 for ac_exec_ext in '' $ac_executable_extensions; do
2717 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2718 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2719 ac_prog_rejected=yes
2720 continue
2722 ac_cv_prog_CC="cc"
2723 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2724 break 2
2726 done
2727 done
2728 IFS=$as_save_IFS
2730 if test $ac_prog_rejected = yes; then
2731 # We found a bogon in the path, so make sure we never use it.
2732 set dummy $ac_cv_prog_CC
2733 shift
2734 if test $# != 0; then
2735 # We chose a different compiler from the bogus one.
2736 # However, it has the same basename, so the bogon will be chosen
2737 # first if we set CC to just the basename; use the full file name.
2738 shift
2739 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2744 CC=$ac_cv_prog_CC
2745 if test -n "$CC"; then
2746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2747 $as_echo "$CC" >&6; }
2748 else
2749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2750 $as_echo "no" >&6; }
2755 if test -z "$CC"; then
2756 if test -n "$ac_tool_prefix"; then
2757 for ac_prog in cl.exe
2759 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2760 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2762 $as_echo_n "checking for $ac_word... " >&6; }
2763 if ${ac_cv_prog_CC+:} false; then :
2764 $as_echo_n "(cached) " >&6
2765 else
2766 if test -n "$CC"; then
2767 ac_cv_prog_CC="$CC" # Let the user override the test.
2768 else
2769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2770 for as_dir in $PATH
2772 IFS=$as_save_IFS
2773 test -z "$as_dir" && as_dir=.
2774 for ac_exec_ext in '' $ac_executable_extensions; do
2775 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2776 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2777 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2778 break 2
2780 done
2781 done
2782 IFS=$as_save_IFS
2786 CC=$ac_cv_prog_CC
2787 if test -n "$CC"; then
2788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2789 $as_echo "$CC" >&6; }
2790 else
2791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2792 $as_echo "no" >&6; }
2796 test -n "$CC" && break
2797 done
2799 if test -z "$CC"; then
2800 ac_ct_CC=$CC
2801 for ac_prog in cl.exe
2803 # Extract the first word of "$ac_prog", so it can be a program name with args.
2804 set dummy $ac_prog; ac_word=$2
2805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2806 $as_echo_n "checking for $ac_word... " >&6; }
2807 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2808 $as_echo_n "(cached) " >&6
2809 else
2810 if test -n "$ac_ct_CC"; then
2811 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2812 else
2813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2814 for as_dir in $PATH
2816 IFS=$as_save_IFS
2817 test -z "$as_dir" && as_dir=.
2818 for ac_exec_ext in '' $ac_executable_extensions; do
2819 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2820 ac_cv_prog_ac_ct_CC="$ac_prog"
2821 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2822 break 2
2824 done
2825 done
2826 IFS=$as_save_IFS
2830 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2831 if test -n "$ac_ct_CC"; then
2832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2833 $as_echo "$ac_ct_CC" >&6; }
2834 else
2835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2836 $as_echo "no" >&6; }
2840 test -n "$ac_ct_CC" && break
2841 done
2843 if test "x$ac_ct_CC" = x; then
2844 CC=""
2845 else
2846 case $cross_compiling:$ac_tool_warned in
2847 yes:)
2848 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2849 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2850 ac_tool_warned=yes ;;
2851 esac
2852 CC=$ac_ct_CC
2859 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2860 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2861 as_fn_error $? "no acceptable C compiler found in \$PATH
2862 See \`config.log' for more details" "$LINENO" 5; }
2864 # Provide some information about the compiler.
2865 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2866 set X $ac_compile
2867 ac_compiler=$2
2868 for ac_option in --version -v -V -qversion; do
2869 { { ac_try="$ac_compiler $ac_option >&5"
2870 case "(($ac_try" in
2871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2872 *) ac_try_echo=$ac_try;;
2873 esac
2874 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2875 $as_echo "$ac_try_echo"; } >&5
2876 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2877 ac_status=$?
2878 if test -s conftest.err; then
2879 sed '10a\
2880 ... rest of stderr output deleted ...
2881 10q' conftest.err >conftest.er1
2882 cat conftest.er1 >&5
2884 rm -f conftest.er1 conftest.err
2885 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2886 test $ac_status = 0; }
2887 done
2889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2890 /* end confdefs.h. */
2893 main ()
2897 return 0;
2899 _ACEOF
2900 ac_clean_files_save=$ac_clean_files
2901 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2902 # Try to create an executable without -o first, disregard a.out.
2903 # It will help us diagnose broken compilers, and finding out an intuition
2904 # of exeext.
2905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2906 $as_echo_n "checking whether the C compiler works... " >&6; }
2907 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2909 # The possible output files:
2910 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2912 ac_rmfiles=
2913 for ac_file in $ac_files
2915 case $ac_file in
2916 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2917 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2918 esac
2919 done
2920 rm -f $ac_rmfiles
2922 if { { ac_try="$ac_link_default"
2923 case "(($ac_try" in
2924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2925 *) ac_try_echo=$ac_try;;
2926 esac
2927 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2928 $as_echo "$ac_try_echo"; } >&5
2929 (eval "$ac_link_default") 2>&5
2930 ac_status=$?
2931 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2932 test $ac_status = 0; }; then :
2933 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2934 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2935 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2936 # so that the user can short-circuit this test for compilers unknown to
2937 # Autoconf.
2938 for ac_file in $ac_files ''
2940 test -f "$ac_file" || continue
2941 case $ac_file in
2942 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2944 [ab].out )
2945 # We found the default executable, but exeext='' is most
2946 # certainly right.
2947 break;;
2948 *.* )
2949 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2950 then :; else
2951 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2953 # We set ac_cv_exeext here because the later test for it is not
2954 # safe: cross compilers may not add the suffix if given an `-o'
2955 # argument, so we may need to know it at that point already.
2956 # Even if this section looks crufty: it has the advantage of
2957 # actually working.
2958 break;;
2960 break;;
2961 esac
2962 done
2963 test "$ac_cv_exeext" = no && ac_cv_exeext=
2965 else
2966 ac_file=''
2968 if test -z "$ac_file"; then :
2969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2970 $as_echo "no" >&6; }
2971 $as_echo "$as_me: failed program was:" >&5
2972 sed 's/^/| /' conftest.$ac_ext >&5
2974 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2975 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2976 as_fn_error 77 "C compiler cannot create executables
2977 See \`config.log' for more details" "$LINENO" 5; }
2978 else
2979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2980 $as_echo "yes" >&6; }
2982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2983 $as_echo_n "checking for C compiler default output file name... " >&6; }
2984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2985 $as_echo "$ac_file" >&6; }
2986 ac_exeext=$ac_cv_exeext
2988 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2989 ac_clean_files=$ac_clean_files_save
2990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2991 $as_echo_n "checking for suffix of executables... " >&6; }
2992 if { { ac_try="$ac_link"
2993 case "(($ac_try" in
2994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2995 *) ac_try_echo=$ac_try;;
2996 esac
2997 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2998 $as_echo "$ac_try_echo"; } >&5
2999 (eval "$ac_link") 2>&5
3000 ac_status=$?
3001 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3002 test $ac_status = 0; }; then :
3003 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3004 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3005 # work properly (i.e., refer to `conftest.exe'), while it won't with
3006 # `rm'.
3007 for ac_file in conftest.exe conftest conftest.*; do
3008 test -f "$ac_file" || continue
3009 case $ac_file in
3010 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3011 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3012 break;;
3013 * ) break;;
3014 esac
3015 done
3016 else
3017 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3018 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3019 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3020 See \`config.log' for more details" "$LINENO" 5; }
3022 rm -f conftest conftest$ac_cv_exeext
3023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3024 $as_echo "$ac_cv_exeext" >&6; }
3026 rm -f conftest.$ac_ext
3027 EXEEXT=$ac_cv_exeext
3028 ac_exeext=$EXEEXT
3029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3030 /* end confdefs.h. */
3031 #include <stdio.h>
3033 main ()
3035 FILE *f = fopen ("conftest.out", "w");
3036 return ferror (f) || fclose (f) != 0;
3039 return 0;
3041 _ACEOF
3042 ac_clean_files="$ac_clean_files conftest.out"
3043 # Check that the compiler produces executables we can run. If not, either
3044 # the compiler is broken, or we cross compile.
3045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3046 $as_echo_n "checking whether we are cross compiling... " >&6; }
3047 if test "$cross_compiling" != yes; then
3048 { { ac_try="$ac_link"
3049 case "(($ac_try" in
3050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3051 *) ac_try_echo=$ac_try;;
3052 esac
3053 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3054 $as_echo "$ac_try_echo"; } >&5
3055 (eval "$ac_link") 2>&5
3056 ac_status=$?
3057 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3058 test $ac_status = 0; }
3059 if { ac_try='./conftest$ac_cv_exeext'
3060 { { case "(($ac_try" in
3061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3062 *) ac_try_echo=$ac_try;;
3063 esac
3064 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3065 $as_echo "$ac_try_echo"; } >&5
3066 (eval "$ac_try") 2>&5
3067 ac_status=$?
3068 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3069 test $ac_status = 0; }; }; then
3070 cross_compiling=no
3071 else
3072 if test "$cross_compiling" = maybe; then
3073 cross_compiling=yes
3074 else
3075 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3076 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3077 as_fn_error $? "cannot run C compiled programs.
3078 If you meant to cross compile, use \`--host'.
3079 See \`config.log' for more details" "$LINENO" 5; }
3083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3084 $as_echo "$cross_compiling" >&6; }
3086 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3087 ac_clean_files=$ac_clean_files_save
3088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3089 $as_echo_n "checking for suffix of object files... " >&6; }
3090 if ${ac_cv_objext+:} false; then :
3091 $as_echo_n "(cached) " >&6
3092 else
3093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3094 /* end confdefs.h. */
3097 main ()
3101 return 0;
3103 _ACEOF
3104 rm -f conftest.o conftest.obj
3105 if { { ac_try="$ac_compile"
3106 case "(($ac_try" in
3107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3108 *) ac_try_echo=$ac_try;;
3109 esac
3110 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3111 $as_echo "$ac_try_echo"; } >&5
3112 (eval "$ac_compile") 2>&5
3113 ac_status=$?
3114 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3115 test $ac_status = 0; }; then :
3116 for ac_file in conftest.o conftest.obj conftest.*; do
3117 test -f "$ac_file" || continue;
3118 case $ac_file in
3119 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3120 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3121 break;;
3122 esac
3123 done
3124 else
3125 $as_echo "$as_me: failed program was:" >&5
3126 sed 's/^/| /' conftest.$ac_ext >&5
3128 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3129 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3130 as_fn_error $? "cannot compute suffix of object files: cannot compile
3131 See \`config.log' for more details" "$LINENO" 5; }
3133 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3136 $as_echo "$ac_cv_objext" >&6; }
3137 OBJEXT=$ac_cv_objext
3138 ac_objext=$OBJEXT
3139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3140 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3141 if ${ac_cv_c_compiler_gnu+:} false; then :
3142 $as_echo_n "(cached) " >&6
3143 else
3144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3145 /* end confdefs.h. */
3148 main ()
3150 #ifndef __GNUC__
3151 choke me
3152 #endif
3155 return 0;
3157 _ACEOF
3158 if ac_fn_c_try_compile "$LINENO"; then :
3159 ac_compiler_gnu=yes
3160 else
3161 ac_compiler_gnu=no
3163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3164 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3168 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3169 if test $ac_compiler_gnu = yes; then
3170 GCC=yes
3171 else
3172 GCC=
3174 ac_test_CFLAGS=${CFLAGS+set}
3175 ac_save_CFLAGS=$CFLAGS
3176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3177 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3178 if ${ac_cv_prog_cc_g+:} false; then :
3179 $as_echo_n "(cached) " >&6
3180 else
3181 ac_save_c_werror_flag=$ac_c_werror_flag
3182 ac_c_werror_flag=yes
3183 ac_cv_prog_cc_g=no
3184 CFLAGS="-g"
3185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3186 /* end confdefs.h. */
3189 main ()
3193 return 0;
3195 _ACEOF
3196 if ac_fn_c_try_compile "$LINENO"; then :
3197 ac_cv_prog_cc_g=yes
3198 else
3199 CFLAGS=""
3200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3201 /* end confdefs.h. */
3204 main ()
3208 return 0;
3210 _ACEOF
3211 if ac_fn_c_try_compile "$LINENO"; then :
3213 else
3214 ac_c_werror_flag=$ac_save_c_werror_flag
3215 CFLAGS="-g"
3216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3217 /* end confdefs.h. */
3220 main ()
3224 return 0;
3226 _ACEOF
3227 if ac_fn_c_try_compile "$LINENO"; then :
3228 ac_cv_prog_cc_g=yes
3230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3235 ac_c_werror_flag=$ac_save_c_werror_flag
3237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3238 $as_echo "$ac_cv_prog_cc_g" >&6; }
3239 if test "$ac_test_CFLAGS" = set; then
3240 CFLAGS=$ac_save_CFLAGS
3241 elif test $ac_cv_prog_cc_g = yes; then
3242 if test "$GCC" = yes; then
3243 CFLAGS="-g -O2"
3244 else
3245 CFLAGS="-g"
3247 else
3248 if test "$GCC" = yes; then
3249 CFLAGS="-O2"
3250 else
3251 CFLAGS=
3254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3255 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3256 if ${ac_cv_prog_cc_c89+:} false; then :
3257 $as_echo_n "(cached) " >&6
3258 else
3259 ac_cv_prog_cc_c89=no
3260 ac_save_CC=$CC
3261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3262 /* end confdefs.h. */
3263 #include <stdarg.h>
3264 #include <stdio.h>
3265 struct stat;
3266 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3267 struct buf { int x; };
3268 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3269 static char *e (p, i)
3270 char **p;
3271 int i;
3273 return p[i];
3275 static char *f (char * (*g) (char **, int), char **p, ...)
3277 char *s;
3278 va_list v;
3279 va_start (v,p);
3280 s = g (p, va_arg (v,int));
3281 va_end (v);
3282 return s;
3285 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3286 function prototypes and stuff, but not '\xHH' hex character constants.
3287 These don't provoke an error unfortunately, instead are silently treated
3288 as 'x'. The following induces an error, until -std is added to get
3289 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3290 array size at least. It's necessary to write '\x00'==0 to get something
3291 that's true only with -std. */
3292 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3294 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3295 inside strings and character constants. */
3296 #define FOO(x) 'x'
3297 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3299 int test (int i, double x);
3300 struct s1 {int (*f) (int a);};
3301 struct s2 {int (*f) (double a);};
3302 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3303 int argc;
3304 char **argv;
3306 main ()
3308 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3310 return 0;
3312 _ACEOF
3313 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3314 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3316 CC="$ac_save_CC $ac_arg"
3317 if ac_fn_c_try_compile "$LINENO"; then :
3318 ac_cv_prog_cc_c89=$ac_arg
3320 rm -f core conftest.err conftest.$ac_objext
3321 test "x$ac_cv_prog_cc_c89" != "xno" && break
3322 done
3323 rm -f conftest.$ac_ext
3324 CC=$ac_save_CC
3327 # AC_CACHE_VAL
3328 case "x$ac_cv_prog_cc_c89" in
3330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3331 $as_echo "none needed" >&6; } ;;
3332 xno)
3333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3334 $as_echo "unsupported" >&6; } ;;
3336 CC="$CC $ac_cv_prog_cc_c89"
3337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3338 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3339 esac
3340 if test "x$ac_cv_prog_cc_c89" != xno; then :
3344 ac_ext=c
3345 ac_cpp='$CPP $CPPFLAGS'
3346 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3347 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3348 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3350 ac_ext=c
3351 ac_cpp='$CPP $CPPFLAGS'
3352 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3353 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3354 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3356 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3357 if ${am_cv_prog_cc_c_o+:} false; then :
3358 $as_echo_n "(cached) " >&6
3359 else
3360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3361 /* end confdefs.h. */
3364 main ()
3368 return 0;
3370 _ACEOF
3371 # Make sure it works both with $CC and with simple cc.
3372 # Following AC_PROG_CC_C_O, we do the test twice because some
3373 # compilers refuse to overwrite an existing .o file with -o,
3374 # though they will create one.
3375 am_cv_prog_cc_c_o=yes
3376 for am_i in 1 2; do
3377 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3378 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3379 ac_status=$?
3380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3381 (exit $ac_status); } \
3382 && test -f conftest2.$ac_objext; then
3383 : OK
3384 else
3385 am_cv_prog_cc_c_o=no
3386 break
3388 done
3389 rm -f core conftest*
3390 unset am_i
3392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3393 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3394 if test "$am_cv_prog_cc_c_o" != yes; then
3395 # Losing compiler, so override with the script.
3396 # FIXME: It is wrong to rewrite CC.
3397 # But if we don't then we get into trouble of one sort or another.
3398 # A longer-term fix would be to have automake use am__CC in this case,
3399 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3400 CC="$am_aux_dir/compile $CC"
3402 ac_ext=c
3403 ac_cpp='$CPP $CPPFLAGS'
3404 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3405 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3406 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3410 ac_ext=c
3411 ac_cpp='$CPP $CPPFLAGS'
3412 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3413 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3414 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3416 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3417 # On Suns, sometimes $CPP names a directory.
3418 if test -n "$CPP" && test -d "$CPP"; then
3419 CPP=
3421 if test -z "$CPP"; then
3422 if ${ac_cv_prog_CPP+:} false; then :
3423 $as_echo_n "(cached) " >&6
3424 else
3425 # Double quotes because CPP needs to be expanded
3426 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3428 ac_preproc_ok=false
3429 for ac_c_preproc_warn_flag in '' yes
3431 # Use a header file that comes with gcc, so configuring glibc
3432 # with a fresh cross-compiler works.
3433 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3434 # <limits.h> exists even on freestanding compilers.
3435 # On the NeXT, cc -E runs the code through the compiler's parser,
3436 # not just through cpp. "Syntax error" is here to catch this case.
3437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3438 /* end confdefs.h. */
3439 #ifdef __STDC__
3440 # include <limits.h>
3441 #else
3442 # include <assert.h>
3443 #endif
3444 Syntax error
3445 _ACEOF
3446 if ac_fn_c_try_cpp "$LINENO"; then :
3448 else
3449 # Broken: fails on valid input.
3450 continue
3452 rm -f conftest.err conftest.i conftest.$ac_ext
3454 # OK, works on sane cases. Now check whether nonexistent headers
3455 # can be detected and how.
3456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3457 /* end confdefs.h. */
3458 #include <ac_nonexistent.h>
3459 _ACEOF
3460 if ac_fn_c_try_cpp "$LINENO"; then :
3461 # Broken: success on invalid input.
3462 continue
3463 else
3464 # Passes both tests.
3465 ac_preproc_ok=:
3466 break
3468 rm -f conftest.err conftest.i conftest.$ac_ext
3470 done
3471 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3472 rm -f conftest.i conftest.err conftest.$ac_ext
3473 if $ac_preproc_ok; then :
3474 break
3477 done
3478 ac_cv_prog_CPP=$CPP
3481 CPP=$ac_cv_prog_CPP
3482 else
3483 ac_cv_prog_CPP=$CPP
3485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3486 $as_echo "$CPP" >&6; }
3487 ac_preproc_ok=false
3488 for ac_c_preproc_warn_flag in '' yes
3490 # Use a header file that comes with gcc, so configuring glibc
3491 # with a fresh cross-compiler works.
3492 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3493 # <limits.h> exists even on freestanding compilers.
3494 # On the NeXT, cc -E runs the code through the compiler's parser,
3495 # not just through cpp. "Syntax error" is here to catch this case.
3496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3497 /* end confdefs.h. */
3498 #ifdef __STDC__
3499 # include <limits.h>
3500 #else
3501 # include <assert.h>
3502 #endif
3503 Syntax error
3504 _ACEOF
3505 if ac_fn_c_try_cpp "$LINENO"; then :
3507 else
3508 # Broken: fails on valid input.
3509 continue
3511 rm -f conftest.err conftest.i conftest.$ac_ext
3513 # OK, works on sane cases. Now check whether nonexistent headers
3514 # can be detected and how.
3515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3516 /* end confdefs.h. */
3517 #include <ac_nonexistent.h>
3518 _ACEOF
3519 if ac_fn_c_try_cpp "$LINENO"; then :
3520 # Broken: success on invalid input.
3521 continue
3522 else
3523 # Passes both tests.
3524 ac_preproc_ok=:
3525 break
3527 rm -f conftest.err conftest.i conftest.$ac_ext
3529 done
3530 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3531 rm -f conftest.i conftest.err conftest.$ac_ext
3532 if $ac_preproc_ok; then :
3534 else
3535 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3536 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3537 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3538 See \`config.log' for more details" "$LINENO" 5; }
3541 ac_ext=c
3542 ac_cpp='$CPP $CPPFLAGS'
3543 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3544 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3545 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3549 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3550 if ${ac_cv_path_GREP+:} false; then :
3551 $as_echo_n "(cached) " >&6
3552 else
3553 if test -z "$GREP"; then
3554 ac_path_GREP_found=false
3555 # Loop through the user's path and test for each of PROGNAME-LIST
3556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3557 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3559 IFS=$as_save_IFS
3560 test -z "$as_dir" && as_dir=.
3561 for ac_prog in grep ggrep; do
3562 for ac_exec_ext in '' $ac_executable_extensions; do
3563 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3564 as_fn_executable_p "$ac_path_GREP" || continue
3565 # Check for GNU ac_path_GREP and select it if it is found.
3566 # Check for GNU $ac_path_GREP
3567 case `"$ac_path_GREP" --version 2>&1` in
3568 *GNU*)
3569 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3571 ac_count=0
3572 $as_echo_n 0123456789 >"conftest.in"
3573 while :
3575 cat "conftest.in" "conftest.in" >"conftest.tmp"
3576 mv "conftest.tmp" "conftest.in"
3577 cp "conftest.in" "conftest.nl"
3578 $as_echo 'GREP' >> "conftest.nl"
3579 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3580 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3581 as_fn_arith $ac_count + 1 && ac_count=$as_val
3582 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3583 # Best one so far, save it but keep looking for a better one
3584 ac_cv_path_GREP="$ac_path_GREP"
3585 ac_path_GREP_max=$ac_count
3587 # 10*(2^10) chars as input seems more than enough
3588 test $ac_count -gt 10 && break
3589 done
3590 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3591 esac
3593 $ac_path_GREP_found && break 3
3594 done
3595 done
3596 done
3597 IFS=$as_save_IFS
3598 if test -z "$ac_cv_path_GREP"; then
3599 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3601 else
3602 ac_cv_path_GREP=$GREP
3606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3607 $as_echo "$ac_cv_path_GREP" >&6; }
3608 GREP="$ac_cv_path_GREP"
3611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3612 $as_echo_n "checking for egrep... " >&6; }
3613 if ${ac_cv_path_EGREP+:} false; then :
3614 $as_echo_n "(cached) " >&6
3615 else
3616 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3617 then ac_cv_path_EGREP="$GREP -E"
3618 else
3619 if test -z "$EGREP"; then
3620 ac_path_EGREP_found=false
3621 # Loop through the user's path and test for each of PROGNAME-LIST
3622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3623 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3625 IFS=$as_save_IFS
3626 test -z "$as_dir" && as_dir=.
3627 for ac_prog in egrep; do
3628 for ac_exec_ext in '' $ac_executable_extensions; do
3629 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3630 as_fn_executable_p "$ac_path_EGREP" || continue
3631 # Check for GNU ac_path_EGREP and select it if it is found.
3632 # Check for GNU $ac_path_EGREP
3633 case `"$ac_path_EGREP" --version 2>&1` in
3634 *GNU*)
3635 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3637 ac_count=0
3638 $as_echo_n 0123456789 >"conftest.in"
3639 while :
3641 cat "conftest.in" "conftest.in" >"conftest.tmp"
3642 mv "conftest.tmp" "conftest.in"
3643 cp "conftest.in" "conftest.nl"
3644 $as_echo 'EGREP' >> "conftest.nl"
3645 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3646 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3647 as_fn_arith $ac_count + 1 && ac_count=$as_val
3648 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3649 # Best one so far, save it but keep looking for a better one
3650 ac_cv_path_EGREP="$ac_path_EGREP"
3651 ac_path_EGREP_max=$ac_count
3653 # 10*(2^10) chars as input seems more than enough
3654 test $ac_count -gt 10 && break
3655 done
3656 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3657 esac
3659 $ac_path_EGREP_found && break 3
3660 done
3661 done
3662 done
3663 IFS=$as_save_IFS
3664 if test -z "$ac_cv_path_EGREP"; then
3665 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3667 else
3668 ac_cv_path_EGREP=$EGREP
3673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3674 $as_echo "$ac_cv_path_EGREP" >&6; }
3675 EGREP="$ac_cv_path_EGREP"
3678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3679 $as_echo_n "checking for ANSI C header files... " >&6; }
3680 if ${ac_cv_header_stdc+:} false; then :
3681 $as_echo_n "(cached) " >&6
3682 else
3683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3684 /* end confdefs.h. */
3685 #include <stdlib.h>
3686 #include <stdarg.h>
3687 #include <string.h>
3688 #include <float.h>
3691 main ()
3695 return 0;
3697 _ACEOF
3698 if ac_fn_c_try_compile "$LINENO"; then :
3699 ac_cv_header_stdc=yes
3700 else
3701 ac_cv_header_stdc=no
3703 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3705 if test $ac_cv_header_stdc = yes; then
3706 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3708 /* end confdefs.h. */
3709 #include <string.h>
3711 _ACEOF
3712 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3713 $EGREP "memchr" >/dev/null 2>&1; then :
3715 else
3716 ac_cv_header_stdc=no
3718 rm -f conftest*
3722 if test $ac_cv_header_stdc = yes; then
3723 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3725 /* end confdefs.h. */
3726 #include <stdlib.h>
3728 _ACEOF
3729 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3730 $EGREP "free" >/dev/null 2>&1; then :
3732 else
3733 ac_cv_header_stdc=no
3735 rm -f conftest*
3739 if test $ac_cv_header_stdc = yes; then
3740 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3741 if test "$cross_compiling" = yes; then :
3743 else
3744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3745 /* end confdefs.h. */
3746 #include <ctype.h>
3747 #include <stdlib.h>
3748 #if ((' ' & 0x0FF) == 0x020)
3749 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3750 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3751 #else
3752 # define ISLOWER(c) \
3753 (('a' <= (c) && (c) <= 'i') \
3754 || ('j' <= (c) && (c) <= 'r') \
3755 || ('s' <= (c) && (c) <= 'z'))
3756 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3757 #endif
3759 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3761 main ()
3763 int i;
3764 for (i = 0; i < 256; i++)
3765 if (XOR (islower (i), ISLOWER (i))
3766 || toupper (i) != TOUPPER (i))
3767 return 2;
3768 return 0;
3770 _ACEOF
3771 if ac_fn_c_try_run "$LINENO"; then :
3773 else
3774 ac_cv_header_stdc=no
3776 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3777 conftest.$ac_objext conftest.beam conftest.$ac_ext
3782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3783 $as_echo "$ac_cv_header_stdc" >&6; }
3784 if test $ac_cv_header_stdc = yes; then
3786 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3790 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3791 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3792 inttypes.h stdint.h unistd.h
3793 do :
3794 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3795 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3797 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3798 cat >>confdefs.h <<_ACEOF
3799 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3800 _ACEOF
3804 done
3808 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3809 if test "x$ac_cv_header_minix_config_h" = xyes; then :
3810 MINIX=yes
3811 else
3812 MINIX=
3816 if test "$MINIX" = yes; then
3818 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3821 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3824 $as_echo "#define _MINIX 1" >>confdefs.h
3829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3830 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3831 if ${ac_cv_safe_to_define___extensions__+:} false; then :
3832 $as_echo_n "(cached) " >&6
3833 else
3834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3835 /* end confdefs.h. */
3837 # define __EXTENSIONS__ 1
3838 $ac_includes_default
3840 main ()
3844 return 0;
3846 _ACEOF
3847 if ac_fn_c_try_compile "$LINENO"; then :
3848 ac_cv_safe_to_define___extensions__=yes
3849 else
3850 ac_cv_safe_to_define___extensions__=no
3852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3855 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3856 test $ac_cv_safe_to_define___extensions__ = yes &&
3857 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3859 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3861 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3863 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3865 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3868 # Determine the noncanonical target name, for directory use.
3869 case ${build_alias} in
3870 "") build_noncanonical=${build} ;;
3871 *) build_noncanonical=${build_alias} ;;
3872 esac
3874 case ${host_alias} in
3875 "") host_noncanonical=${build_noncanonical} ;;
3876 *) host_noncanonical=${host_alias} ;;
3877 esac
3879 case ${target_alias} in
3880 "") target_noncanonical=${host_noncanonical} ;;
3881 *) target_noncanonical=${target_alias} ;;
3882 esac
3887 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3888 # have matching libraries, they should use host libraries: Makefile.tpl
3889 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3890 # However, they still use the build modules, because the corresponding
3891 # host modules (e.g. bison) are only built for the host when bootstrap
3892 # finishes. So:
3893 # - build_subdir is where we find build modules, and never changes.
3894 # - build_libsubdir is where we find build libraries, and can be overridden.
3896 # Prefix 'build-' so this never conflicts with target_subdir.
3897 build_subdir="build-${build_noncanonical}"
3899 # Check whether --with-build-libsubdir was given.
3900 if test "${with_build_libsubdir+set}" = set; then :
3901 withval=$with_build_libsubdir; build_libsubdir="$withval"
3902 else
3903 build_libsubdir="$build_subdir"
3906 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3907 if ( test $srcdir = . && test -d gcc ) \
3908 || test -d $srcdir/../host-${host_noncanonical}; then
3909 host_subdir="host-${host_noncanonical}"
3910 else
3911 host_subdir=.
3913 # No prefix.
3914 target_subdir=${target_noncanonical}
3917 # 1.11.1: Require that version of automake.
3918 # foreign: Don't require README, INSTALL, NEWS, etc.
3919 # no-define: Don't define PACKAGE and VERSION.
3920 # -Wall: Issue all automake warnings.
3921 # -Wno-portability: Don't warn about constructs supported by GNU make.
3922 # (because GCC requires GNU make anyhow).
3923 am__api_version='1.15'
3925 # Find a good install program. We prefer a C program (faster),
3926 # so one script is as good as another. But avoid the broken or
3927 # incompatible versions:
3928 # SysV /etc/install, /usr/sbin/install
3929 # SunOS /usr/etc/install
3930 # IRIX /sbin/install
3931 # AIX /bin/install
3932 # AmigaOS /C/install, which installs bootblocks on floppy discs
3933 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3934 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3935 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3936 # OS/2's system install, which has a completely different semantic
3937 # ./install, which can be erroneously created by make from ./install.sh.
3938 # Reject install programs that cannot install multiple files.
3939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3940 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3941 if test -z "$INSTALL"; then
3942 if ${ac_cv_path_install+:} false; then :
3943 $as_echo_n "(cached) " >&6
3944 else
3945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3946 for as_dir in $PATH
3948 IFS=$as_save_IFS
3949 test -z "$as_dir" && as_dir=.
3950 # Account for people who put trailing slashes in PATH elements.
3951 case $as_dir/ in #((
3952 ./ | .// | /[cC]/* | \
3953 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3954 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3955 /usr/ucb/* ) ;;
3957 # OSF1 and SCO ODT 3.0 have their own names for install.
3958 # Don't use installbsd from OSF since it installs stuff as root
3959 # by default.
3960 for ac_prog in ginstall scoinst install; do
3961 for ac_exec_ext in '' $ac_executable_extensions; do
3962 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3963 if test $ac_prog = install &&
3964 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3965 # AIX install. It has an incompatible calling convention.
3967 elif test $ac_prog = install &&
3968 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3969 # program-specific install script used by HP pwplus--don't use.
3971 else
3972 rm -rf conftest.one conftest.two conftest.dir
3973 echo one > conftest.one
3974 echo two > conftest.two
3975 mkdir conftest.dir
3976 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3977 test -s conftest.one && test -s conftest.two &&
3978 test -s conftest.dir/conftest.one &&
3979 test -s conftest.dir/conftest.two
3980 then
3981 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3982 break 3
3986 done
3987 done
3989 esac
3991 done
3992 IFS=$as_save_IFS
3994 rm -rf conftest.one conftest.two conftest.dir
3997 if test "${ac_cv_path_install+set}" = set; then
3998 INSTALL=$ac_cv_path_install
3999 else
4000 # As a last resort, use the slow shell script. Don't cache a
4001 # value for INSTALL within a source directory, because that will
4002 # break other packages using the cache if that directory is
4003 # removed, or if the value is a relative name.
4004 INSTALL=$ac_install_sh
4007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4008 $as_echo "$INSTALL" >&6; }
4010 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4011 # It thinks the first close brace ends the variable substitution.
4012 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4014 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4016 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4019 $as_echo_n "checking whether build environment is sane... " >&6; }
4020 # Reject unsafe characters in $srcdir or the absolute working directory
4021 # name. Accept space and tab only in the latter.
4022 am_lf='
4024 case `pwd` in
4025 *[\\\"\#\$\&\'\`$am_lf]*)
4026 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
4027 esac
4028 case $srcdir in
4029 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
4030 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
4031 esac
4033 # Do 'set' in a subshell so we don't clobber the current shell's
4034 # arguments. Must try -L first in case configure is actually a
4035 # symlink; some systems play weird games with the mod time of symlinks
4036 # (eg FreeBSD returns the mod time of the symlink's containing
4037 # directory).
4038 if (
4039 am_has_slept=no
4040 for am_try in 1 2; do
4041 echo "timestamp, slept: $am_has_slept" > conftest.file
4042 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4043 if test "$*" = "X"; then
4044 # -L didn't work.
4045 set X `ls -t "$srcdir/configure" conftest.file`
4047 if test "$*" != "X $srcdir/configure conftest.file" \
4048 && test "$*" != "X conftest.file $srcdir/configure"; then
4050 # If neither matched, then we have a broken ls. This can happen
4051 # if, for instance, CONFIG_SHELL is bash and it inherits a
4052 # broken ls alias from the environment. This has actually
4053 # happened. Such a system could not be considered "sane".
4054 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
4055 alias in your environment" "$LINENO" 5
4057 if test "$2" = conftest.file || test $am_try -eq 2; then
4058 break
4060 # Just in case.
4061 sleep 1
4062 am_has_slept=yes
4063 done
4064 test "$2" = conftest.file
4066 then
4067 # Ok.
4069 else
4070 as_fn_error $? "newly created file is older than distributed files!
4071 Check your system clock" "$LINENO" 5
4073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4074 $as_echo "yes" >&6; }
4075 # If we didn't sleep, we still need to ensure time stamps of config.status and
4076 # generated files are strictly newer.
4077 am_sleep_pid=
4078 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
4079 ( sleep 1 ) &
4080 am_sleep_pid=$!
4083 rm -f conftest.file
4085 test "$program_prefix" != NONE &&
4086 program_transform_name="s&^&$program_prefix&;$program_transform_name"
4087 # Use a double $ so make ignores it.
4088 test "$program_suffix" != NONE &&
4089 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4090 # Double any \ or $.
4091 # By default was `s,x,x', remove it if useless.
4092 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4093 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4095 if test x"${MISSING+set}" != xset; then
4096 case $am_aux_dir in
4097 *\ * | *\ *)
4098 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
4100 MISSING="\${SHELL} $am_aux_dir/missing" ;;
4101 esac
4103 # Use eval to expand $SHELL
4104 if eval "$MISSING --is-lightweight"; then
4105 am_missing_run="$MISSING "
4106 else
4107 am_missing_run=
4108 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
4109 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
4112 if test x"${install_sh+set}" != xset; then
4113 case $am_aux_dir in
4114 *\ * | *\ *)
4115 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4117 install_sh="\${SHELL} $am_aux_dir/install-sh"
4118 esac
4121 # Installed binaries are usually stripped using 'strip' when the user
4122 # run "make install-strip". However 'strip' might not be the right
4123 # tool to use in cross-compilation environments, therefore Automake
4124 # will honor the 'STRIP' environment variable to overrule this program.
4125 if test "$cross_compiling" != no; then
4126 if test -n "$ac_tool_prefix"; then
4127 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4128 set dummy ${ac_tool_prefix}strip; ac_word=$2
4129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4130 $as_echo_n "checking for $ac_word... " >&6; }
4131 if ${ac_cv_prog_STRIP+:} false; then :
4132 $as_echo_n "(cached) " >&6
4133 else
4134 if test -n "$STRIP"; then
4135 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4136 else
4137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4138 for as_dir in $PATH
4140 IFS=$as_save_IFS
4141 test -z "$as_dir" && as_dir=.
4142 for ac_exec_ext in '' $ac_executable_extensions; do
4143 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4144 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4146 break 2
4148 done
4149 done
4150 IFS=$as_save_IFS
4154 STRIP=$ac_cv_prog_STRIP
4155 if test -n "$STRIP"; then
4156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4157 $as_echo "$STRIP" >&6; }
4158 else
4159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4160 $as_echo "no" >&6; }
4165 if test -z "$ac_cv_prog_STRIP"; then
4166 ac_ct_STRIP=$STRIP
4167 # Extract the first word of "strip", so it can be a program name with args.
4168 set dummy strip; ac_word=$2
4169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4170 $as_echo_n "checking for $ac_word... " >&6; }
4171 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
4172 $as_echo_n "(cached) " >&6
4173 else
4174 if test -n "$ac_ct_STRIP"; then
4175 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4176 else
4177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4178 for as_dir in $PATH
4180 IFS=$as_save_IFS
4181 test -z "$as_dir" && as_dir=.
4182 for ac_exec_ext in '' $ac_executable_extensions; do
4183 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4184 ac_cv_prog_ac_ct_STRIP="strip"
4185 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4186 break 2
4188 done
4189 done
4190 IFS=$as_save_IFS
4194 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4195 if test -n "$ac_ct_STRIP"; then
4196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4197 $as_echo "$ac_ct_STRIP" >&6; }
4198 else
4199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4200 $as_echo "no" >&6; }
4203 if test "x$ac_ct_STRIP" = x; then
4204 STRIP=":"
4205 else
4206 case $cross_compiling:$ac_tool_warned in
4207 yes:)
4208 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4209 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4210 ac_tool_warned=yes ;;
4211 esac
4212 STRIP=$ac_ct_STRIP
4214 else
4215 STRIP="$ac_cv_prog_STRIP"
4219 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4222 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4223 if test -z "$MKDIR_P"; then
4224 if ${ac_cv_path_mkdir+:} false; then :
4225 $as_echo_n "(cached) " >&6
4226 else
4227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4228 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4230 IFS=$as_save_IFS
4231 test -z "$as_dir" && as_dir=.
4232 for ac_prog in mkdir gmkdir; do
4233 for ac_exec_ext in '' $ac_executable_extensions; do
4234 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
4235 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4236 'mkdir (GNU coreutils) '* | \
4237 'mkdir (coreutils) '* | \
4238 'mkdir (fileutils) '4.1*)
4239 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4240 break 3;;
4241 esac
4242 done
4243 done
4244 done
4245 IFS=$as_save_IFS
4249 test -d ./--version && rmdir ./--version
4250 if test "${ac_cv_path_mkdir+set}" = set; then
4251 MKDIR_P="$ac_cv_path_mkdir -p"
4252 else
4253 # As a last resort, use the slow shell script. Don't cache a
4254 # value for MKDIR_P within a source directory, because that will
4255 # break other packages using the cache if that directory is
4256 # removed, or if the value is a relative name.
4257 MKDIR_P="$ac_install_sh -d"
4260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4261 $as_echo "$MKDIR_P" >&6; }
4263 for ac_prog in gawk mawk nawk awk
4265 # Extract the first word of "$ac_prog", so it can be a program name with args.
4266 set dummy $ac_prog; ac_word=$2
4267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4268 $as_echo_n "checking for $ac_word... " >&6; }
4269 if ${ac_cv_prog_AWK+:} false; then :
4270 $as_echo_n "(cached) " >&6
4271 else
4272 if test -n "$AWK"; then
4273 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4274 else
4275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4276 for as_dir in $PATH
4278 IFS=$as_save_IFS
4279 test -z "$as_dir" && as_dir=.
4280 for ac_exec_ext in '' $ac_executable_extensions; do
4281 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4282 ac_cv_prog_AWK="$ac_prog"
4283 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4284 break 2
4286 done
4287 done
4288 IFS=$as_save_IFS
4292 AWK=$ac_cv_prog_AWK
4293 if test -n "$AWK"; then
4294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4295 $as_echo "$AWK" >&6; }
4296 else
4297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4298 $as_echo "no" >&6; }
4302 test -n "$AWK" && break
4303 done
4305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4306 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4307 set x ${MAKE-make}
4308 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4309 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4310 $as_echo_n "(cached) " >&6
4311 else
4312 cat >conftest.make <<\_ACEOF
4313 SHELL = /bin/sh
4314 all:
4315 @echo '@@@%%%=$(MAKE)=@@@%%%'
4316 _ACEOF
4317 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4318 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4319 *@@@%%%=?*=@@@%%%*)
4320 eval ac_cv_prog_make_${ac_make}_set=yes;;
4322 eval ac_cv_prog_make_${ac_make}_set=no;;
4323 esac
4324 rm -f conftest.make
4326 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4328 $as_echo "yes" >&6; }
4329 SET_MAKE=
4330 else
4331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4332 $as_echo "no" >&6; }
4333 SET_MAKE="MAKE=${MAKE-make}"
4336 rm -rf .tst 2>/dev/null
4337 mkdir .tst 2>/dev/null
4338 if test -d .tst; then
4339 am__leading_dot=.
4340 else
4341 am__leading_dot=_
4343 rmdir .tst 2>/dev/null
4345 DEPDIR="${am__leading_dot}deps"
4347 ac_config_commands="$ac_config_commands depfiles"
4350 am_make=${MAKE-make}
4351 cat > confinc << 'END'
4352 am__doit:
4353 @echo this is the am__doit target
4354 .PHONY: am__doit
4356 # If we don't find an include directive, just comment out the code.
4357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4358 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4359 am__include="#"
4360 am__quote=
4361 _am_result=none
4362 # First try GNU make style include.
4363 echo "include confinc" > confmf
4364 # Ignore all kinds of additional output from 'make'.
4365 case `$am_make -s -f confmf 2> /dev/null` in #(
4366 *the\ am__doit\ target*)
4367 am__include=include
4368 am__quote=
4369 _am_result=GNU
4371 esac
4372 # Now try BSD make style include.
4373 if test "$am__include" = "#"; then
4374 echo '.include "confinc"' > confmf
4375 case `$am_make -s -f confmf 2> /dev/null` in #(
4376 *the\ am__doit\ target*)
4377 am__include=.include
4378 am__quote="\""
4379 _am_result=BSD
4381 esac
4385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4386 $as_echo "$_am_result" >&6; }
4387 rm -f confinc confmf
4389 # Check whether --enable-dependency-tracking was given.
4390 if test "${enable_dependency_tracking+set}" = set; then :
4391 enableval=$enable_dependency_tracking;
4394 if test "x$enable_dependency_tracking" != xno; then
4395 am_depcomp="$ac_aux_dir/depcomp"
4396 AMDEPBACKSLASH='\'
4397 am__nodep='_no'
4399 if test "x$enable_dependency_tracking" != xno; then
4400 AMDEP_TRUE=
4401 AMDEP_FALSE='#'
4402 else
4403 AMDEP_TRUE='#'
4404 AMDEP_FALSE=
4408 # Check whether --enable-silent-rules was given.
4409 if test "${enable_silent_rules+set}" = set; then :
4410 enableval=$enable_silent_rules;
4413 case $enable_silent_rules in # (((
4414 yes) AM_DEFAULT_VERBOSITY=0;;
4415 no) AM_DEFAULT_VERBOSITY=1;;
4416 *) AM_DEFAULT_VERBOSITY=1;;
4417 esac
4418 am_make=${MAKE-make}
4419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4420 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4421 if ${am_cv_make_support_nested_variables+:} false; then :
4422 $as_echo_n "(cached) " >&6
4423 else
4424 if $as_echo 'TRUE=$(BAR$(V))
4425 BAR0=false
4426 BAR1=true
4428 am__doit:
4429 @$(TRUE)
4430 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4431 am_cv_make_support_nested_variables=yes
4432 else
4433 am_cv_make_support_nested_variables=no
4436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4437 $as_echo "$am_cv_make_support_nested_variables" >&6; }
4438 if test $am_cv_make_support_nested_variables = yes; then
4439 AM_V='$(V)'
4440 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4441 else
4442 AM_V=$AM_DEFAULT_VERBOSITY
4443 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4445 AM_BACKSLASH='\'
4447 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4448 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4449 # is not polluted with repeated "-I."
4450 am__isrc=' -I$(srcdir)'
4451 # test to see if srcdir already configured
4452 if test -f $srcdir/config.status; then
4453 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4457 # test whether we have cygpath
4458 if test -z "$CYGPATH_W"; then
4459 if (cygpath --version) >/dev/null 2>/dev/null; then
4460 CYGPATH_W='cygpath -w'
4461 else
4462 CYGPATH_W=echo
4467 # Define the identity of the package.
4468 PACKAGE='libcc1'
4469 VERSION='version-unused'
4472 # Some tools Automake needs.
4474 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4477 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4480 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4483 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4486 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4488 # For better backward compatibility. To be removed once Automake 1.9.x
4489 # dies out for good. For more background, see:
4490 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4491 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4492 mkdir_p='$(MKDIR_P)'
4494 # We need awk for the "check" target (and possibly the TAP driver). The
4495 # system "awk" is bad on some platforms.
4496 # Always define AMTAR for backward compatibility. Yes, it's still used
4497 # in the wild :-( We should find a proper way to deprecate it ...
4498 AMTAR='$${TAR-tar}'
4501 # We'll loop over all known methods to create a tar archive until one works.
4502 _am_tools='gnutar pax cpio none'
4504 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4510 depcc="$CC" am_compiler_list=
4512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4513 $as_echo_n "checking dependency style of $depcc... " >&6; }
4514 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4515 $as_echo_n "(cached) " >&6
4516 else
4517 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4518 # We make a subdir and do the tests there. Otherwise we can end up
4519 # making bogus files that we don't know about and never remove. For
4520 # instance it was reported that on HP-UX the gcc test will end up
4521 # making a dummy file named 'D' -- because '-MD' means "put the output
4522 # in D".
4523 rm -rf conftest.dir
4524 mkdir conftest.dir
4525 # Copy depcomp to subdir because otherwise we won't find it if we're
4526 # using a relative directory.
4527 cp "$am_depcomp" conftest.dir
4528 cd conftest.dir
4529 # We will build objects and dependencies in a subdirectory because
4530 # it helps to detect inapplicable dependency modes. For instance
4531 # both Tru64's cc and ICC support -MD to output dependencies as a
4532 # side effect of compilation, but ICC will put the dependencies in
4533 # the current directory while Tru64 will put them in the object
4534 # directory.
4535 mkdir sub
4537 am_cv_CC_dependencies_compiler_type=none
4538 if test "$am_compiler_list" = ""; then
4539 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4541 am__universal=false
4542 case " $depcc " in #(
4543 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4544 esac
4546 for depmode in $am_compiler_list; do
4547 # Setup a source with many dependencies, because some compilers
4548 # like to wrap large dependency lists on column 80 (with \), and
4549 # we should not choose a depcomp mode which is confused by this.
4551 # We need to recreate these files for each test, as the compiler may
4552 # overwrite some of them when testing with obscure command lines.
4553 # This happens at least with the AIX C compiler.
4554 : > sub/conftest.c
4555 for i in 1 2 3 4 5 6; do
4556 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4557 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4558 # Solaris 10 /bin/sh.
4559 echo '/* dummy */' > sub/conftst$i.h
4560 done
4561 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4563 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4564 # mode. It turns out that the SunPro C++ compiler does not properly
4565 # handle '-M -o', and we need to detect this. Also, some Intel
4566 # versions had trouble with output in subdirs.
4567 am__obj=sub/conftest.${OBJEXT-o}
4568 am__minus_obj="-o $am__obj"
4569 case $depmode in
4570 gcc)
4571 # This depmode causes a compiler race in universal mode.
4572 test "$am__universal" = false || continue
4574 nosideeffect)
4575 # After this tag, mechanisms are not by side-effect, so they'll
4576 # only be used when explicitly requested.
4577 if test "x$enable_dependency_tracking" = xyes; then
4578 continue
4579 else
4580 break
4583 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4584 # This compiler won't grok '-c -o', but also, the minuso test has
4585 # not run yet. These depmodes are late enough in the game, and
4586 # so weak that their functioning should not be impacted.
4587 am__obj=conftest.${OBJEXT-o}
4588 am__minus_obj=
4590 none) break ;;
4591 esac
4592 if depmode=$depmode \
4593 source=sub/conftest.c object=$am__obj \
4594 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4595 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4596 >/dev/null 2>conftest.err &&
4597 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4598 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4599 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4600 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4601 # icc doesn't choke on unknown options, it will just issue warnings
4602 # or remarks (even with -Werror). So we grep stderr for any message
4603 # that says an option was ignored or not supported.
4604 # When given -MP, icc 7.0 and 7.1 complain thusly:
4605 # icc: Command line warning: ignoring option '-M'; no argument required
4606 # The diagnosis changed in icc 8.0:
4607 # icc: Command line remark: option '-MP' not supported
4608 if (grep 'ignoring option' conftest.err ||
4609 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4610 am_cv_CC_dependencies_compiler_type=$depmode
4611 break
4614 done
4616 cd ..
4617 rm -rf conftest.dir
4618 else
4619 am_cv_CC_dependencies_compiler_type=none
4623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4624 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4625 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4628 test "x$enable_dependency_tracking" != xno \
4629 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4630 am__fastdepCC_TRUE=
4631 am__fastdepCC_FALSE='#'
4632 else
4633 am__fastdepCC_TRUE='#'
4634 am__fastdepCC_FALSE=
4639 # POSIX will say in a future version that running "rm -f" with no argument
4640 # is OK; and we want to be able to make that assumption in our Makefile
4641 # recipes. So use an aggressive probe to check that the usage we want is
4642 # actually supported "in the wild" to an acceptable degree.
4643 # See automake bug#10828.
4644 # To make any issue more visible, cause the running configure to be aborted
4645 # by default if the 'rm' program in use doesn't match our expectations; the
4646 # user can still override this though.
4647 if rm -f && rm -fr && rm -rf; then : OK; else
4648 cat >&2 <<'END'
4649 Oops!
4651 Your 'rm' program seems unable to run without file operands specified
4652 on the command line, even when the '-f' option is present. This is contrary
4653 to the behaviour of most rm programs out there, and not conforming with
4654 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
4656 Please tell bug-automake@gnu.org about your system, including the value
4657 of your $PATH and any error possibly output before this message. This
4658 can help us improve future automake versions.
4661 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
4662 echo 'Configuration will proceed anyway, since you have set the' >&2
4663 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4664 echo >&2
4665 else
4666 cat >&2 <<'END'
4667 Aborting the configuration process, to ensure you take notice of the issue.
4669 You can download and install GNU coreutils to get an 'rm' implementation
4670 that behaves properly: <http://www.gnu.org/software/coreutils/>.
4672 If you want to complete the configuration process using your problematic
4673 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4674 to "yes", and re-run configure.
4677 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
4682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4683 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4684 # Check whether --enable-maintainer-mode was given.
4685 if test "${enable_maintainer_mode+set}" = set; then :
4686 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4687 else
4688 USE_MAINTAINER_MODE=no
4691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4692 $as_echo "$USE_MAINTAINER_MODE" >&6; }
4693 if test $USE_MAINTAINER_MODE = yes; then
4694 MAINTAINER_MODE_TRUE=
4695 MAINTAINER_MODE_FALSE='#'
4696 else
4697 MAINTAINER_MODE_TRUE='#'
4698 MAINTAINER_MODE_FALSE=
4701 MAINT=$MAINTAINER_MODE_TRUE
4705 case `pwd` in
4706 *\ * | *\ *)
4707 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4708 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4709 esac
4713 macro_version='2.2.7a'
4714 macro_revision='1.3134'
4728 ltmain="$ac_aux_dir/ltmain.sh"
4730 # Backslashify metacharacters that are still active within
4731 # double-quoted strings.
4732 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4734 # Same as above, but do not quote variable references.
4735 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4737 # Sed substitution to delay expansion of an escaped shell variable in a
4738 # double_quote_subst'ed string.
4739 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4741 # Sed substitution to delay expansion of an escaped single quote.
4742 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4744 # Sed substitution to avoid accidental globbing in evaled expressions
4745 no_glob_subst='s/\*/\\\*/g'
4747 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4748 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4749 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4752 $as_echo_n "checking how to print strings... " >&6; }
4753 # Test print first, because it will be a builtin if present.
4754 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
4755 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4756 ECHO='print -r --'
4757 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4758 ECHO='printf %s\n'
4759 else
4760 # Use this function as a fallback that always works.
4761 func_fallback_echo ()
4763 eval 'cat <<_LTECHO_EOF
4765 _LTECHO_EOF'
4767 ECHO='func_fallback_echo'
4770 # func_echo_all arg...
4771 # Invoke $ECHO with all args, space-separated.
4772 func_echo_all ()
4774 $ECHO ""
4777 case "$ECHO" in
4778 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4779 $as_echo "printf" >&6; } ;;
4780 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4781 $as_echo "print -r" >&6; } ;;
4782 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4783 $as_echo "cat" >&6; } ;;
4784 esac
4799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4800 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4801 if ${ac_cv_path_SED+:} false; then :
4802 $as_echo_n "(cached) " >&6
4803 else
4804 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4805 for ac_i in 1 2 3 4 5 6 7; do
4806 ac_script="$ac_script$as_nl$ac_script"
4807 done
4808 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4809 { ac_script=; unset ac_script;}
4810 if test -z "$SED"; then
4811 ac_path_SED_found=false
4812 # Loop through the user's path and test for each of PROGNAME-LIST
4813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4814 for as_dir in $PATH
4816 IFS=$as_save_IFS
4817 test -z "$as_dir" && as_dir=.
4818 for ac_prog in sed gsed; do
4819 for ac_exec_ext in '' $ac_executable_extensions; do
4820 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4821 as_fn_executable_p "$ac_path_SED" || continue
4822 # Check for GNU ac_path_SED and select it if it is found.
4823 # Check for GNU $ac_path_SED
4824 case `"$ac_path_SED" --version 2>&1` in
4825 *GNU*)
4826 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4828 ac_count=0
4829 $as_echo_n 0123456789 >"conftest.in"
4830 while :
4832 cat "conftest.in" "conftest.in" >"conftest.tmp"
4833 mv "conftest.tmp" "conftest.in"
4834 cp "conftest.in" "conftest.nl"
4835 $as_echo '' >> "conftest.nl"
4836 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4837 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4838 as_fn_arith $ac_count + 1 && ac_count=$as_val
4839 if test $ac_count -gt ${ac_path_SED_max-0}; then
4840 # Best one so far, save it but keep looking for a better one
4841 ac_cv_path_SED="$ac_path_SED"
4842 ac_path_SED_max=$ac_count
4844 # 10*(2^10) chars as input seems more than enough
4845 test $ac_count -gt 10 && break
4846 done
4847 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4848 esac
4850 $ac_path_SED_found && break 3
4851 done
4852 done
4853 done
4854 IFS=$as_save_IFS
4855 if test -z "$ac_cv_path_SED"; then
4856 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4858 else
4859 ac_cv_path_SED=$SED
4863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4864 $as_echo "$ac_cv_path_SED" >&6; }
4865 SED="$ac_cv_path_SED"
4866 rm -f conftest.sed
4868 test -z "$SED" && SED=sed
4869 Xsed="$SED -e 1s/^X//"
4881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4882 $as_echo_n "checking for fgrep... " >&6; }
4883 if ${ac_cv_path_FGREP+:} false; then :
4884 $as_echo_n "(cached) " >&6
4885 else
4886 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4887 then ac_cv_path_FGREP="$GREP -F"
4888 else
4889 if test -z "$FGREP"; then
4890 ac_path_FGREP_found=false
4891 # Loop through the user's path and test for each of PROGNAME-LIST
4892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4893 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4895 IFS=$as_save_IFS
4896 test -z "$as_dir" && as_dir=.
4897 for ac_prog in fgrep; do
4898 for ac_exec_ext in '' $ac_executable_extensions; do
4899 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4900 as_fn_executable_p "$ac_path_FGREP" || continue
4901 # Check for GNU ac_path_FGREP and select it if it is found.
4902 # Check for GNU $ac_path_FGREP
4903 case `"$ac_path_FGREP" --version 2>&1` in
4904 *GNU*)
4905 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4907 ac_count=0
4908 $as_echo_n 0123456789 >"conftest.in"
4909 while :
4911 cat "conftest.in" "conftest.in" >"conftest.tmp"
4912 mv "conftest.tmp" "conftest.in"
4913 cp "conftest.in" "conftest.nl"
4914 $as_echo 'FGREP' >> "conftest.nl"
4915 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4916 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4917 as_fn_arith $ac_count + 1 && ac_count=$as_val
4918 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4919 # Best one so far, save it but keep looking for a better one
4920 ac_cv_path_FGREP="$ac_path_FGREP"
4921 ac_path_FGREP_max=$ac_count
4923 # 10*(2^10) chars as input seems more than enough
4924 test $ac_count -gt 10 && break
4925 done
4926 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4927 esac
4929 $ac_path_FGREP_found && break 3
4930 done
4931 done
4932 done
4933 IFS=$as_save_IFS
4934 if test -z "$ac_cv_path_FGREP"; then
4935 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4937 else
4938 ac_cv_path_FGREP=$FGREP
4943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4944 $as_echo "$ac_cv_path_FGREP" >&6; }
4945 FGREP="$ac_cv_path_FGREP"
4948 test -z "$GREP" && GREP=grep
4968 # Check whether --with-gnu-ld was given.
4969 if test "${with_gnu_ld+set}" = set; then :
4970 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4971 else
4972 with_gnu_ld=no
4975 ac_prog=ld
4976 if test "$GCC" = yes; then
4977 # Check if gcc -print-prog-name=ld gives a path.
4978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4979 $as_echo_n "checking for ld used by $CC... " >&6; }
4980 case $host in
4981 *-*-mingw*)
4982 # gcc leaves a trailing carriage return which upsets mingw
4983 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4985 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4986 esac
4987 case $ac_prog in
4988 # Accept absolute paths.
4989 [\\/]* | ?:[\\/]*)
4990 re_direlt='/[^/][^/]*/\.\./'
4991 # Canonicalize the pathname of ld
4992 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4993 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4994 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4995 done
4996 test -z "$LD" && LD="$ac_prog"
4999 # If it fails, then pretend we aren't using GCC.
5000 ac_prog=ld
5003 # If it is relative, then search for the first ld in PATH.
5004 with_gnu_ld=unknown
5006 esac
5007 elif test "$with_gnu_ld" = yes; then
5008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5009 $as_echo_n "checking for GNU ld... " >&6; }
5010 else
5011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5012 $as_echo_n "checking for non-GNU ld... " >&6; }
5014 if ${lt_cv_path_LD+:} false; then :
5015 $as_echo_n "(cached) " >&6
5016 else
5017 if test -z "$LD"; then
5018 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5019 for ac_dir in $PATH; do
5020 IFS="$lt_save_ifs"
5021 test -z "$ac_dir" && ac_dir=.
5022 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5023 lt_cv_path_LD="$ac_dir/$ac_prog"
5024 # Check to see if the program is GNU ld. I'd rather use --version,
5025 # but apparently some variants of GNU ld only accept -v.
5026 # Break only if it was the GNU/non-GNU ld that we prefer.
5027 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5028 *GNU* | *'with BFD'*)
5029 test "$with_gnu_ld" != no && break
5032 test "$with_gnu_ld" != yes && break
5034 esac
5036 done
5037 IFS="$lt_save_ifs"
5038 else
5039 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5043 LD="$lt_cv_path_LD"
5044 if test -n "$LD"; then
5045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5046 $as_echo "$LD" >&6; }
5047 else
5048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5049 $as_echo "no" >&6; }
5051 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5053 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5054 if ${lt_cv_prog_gnu_ld+:} false; then :
5055 $as_echo_n "(cached) " >&6
5056 else
5057 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5058 case `$LD -v 2>&1 </dev/null` in
5059 *GNU* | *'with BFD'*)
5060 lt_cv_prog_gnu_ld=yes
5063 lt_cv_prog_gnu_ld=no
5065 esac
5067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5068 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5069 with_gnu_ld=$lt_cv_prog_gnu_ld
5079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5080 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5081 if ${lt_cv_path_NM+:} false; then :
5082 $as_echo_n "(cached) " >&6
5083 else
5084 if test -n "$NM"; then
5085 # Let the user override the test.
5086 lt_cv_path_NM="$NM"
5087 else
5088 lt_nm_to_check="${ac_tool_prefix}nm"
5089 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5090 lt_nm_to_check="$lt_nm_to_check nm"
5092 for lt_tmp_nm in $lt_nm_to_check; do
5093 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5094 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5095 IFS="$lt_save_ifs"
5096 test -z "$ac_dir" && ac_dir=.
5097 tmp_nm="$ac_dir/$lt_tmp_nm"
5098 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5099 # Check to see if the nm accepts a BSD-compat flag.
5100 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5101 # nm: unknown option "B" ignored
5102 # Tru64's nm complains that /dev/null is an invalid object file
5103 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5104 */dev/null* | *'Invalid file or object type'*)
5105 lt_cv_path_NM="$tmp_nm -B"
5106 break
5109 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5110 */dev/null*)
5111 lt_cv_path_NM="$tmp_nm -p"
5112 break
5115 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5116 continue # so that we can try to find one that supports BSD flags
5118 esac
5120 esac
5122 done
5123 IFS="$lt_save_ifs"
5124 done
5125 : ${lt_cv_path_NM=no}
5128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5129 $as_echo "$lt_cv_path_NM" >&6; }
5130 if test "$lt_cv_path_NM" != "no"; then
5131 NM="$lt_cv_path_NM"
5132 else
5133 # Didn't find any BSD compatible name lister, look for dumpbin.
5134 if test -n "$DUMPBIN"; then :
5135 # Let the user override the test.
5136 else
5137 if test -n "$ac_tool_prefix"; then
5138 for ac_prog in dumpbin "link -dump"
5140 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5141 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5143 $as_echo_n "checking for $ac_word... " >&6; }
5144 if ${ac_cv_prog_DUMPBIN+:} false; then :
5145 $as_echo_n "(cached) " >&6
5146 else
5147 if test -n "$DUMPBIN"; then
5148 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5149 else
5150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5151 for as_dir in $PATH
5153 IFS=$as_save_IFS
5154 test -z "$as_dir" && as_dir=.
5155 for ac_exec_ext in '' $ac_executable_extensions; do
5156 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5157 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5158 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5159 break 2
5161 done
5162 done
5163 IFS=$as_save_IFS
5167 DUMPBIN=$ac_cv_prog_DUMPBIN
5168 if test -n "$DUMPBIN"; then
5169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5170 $as_echo "$DUMPBIN" >&6; }
5171 else
5172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5173 $as_echo "no" >&6; }
5177 test -n "$DUMPBIN" && break
5178 done
5180 if test -z "$DUMPBIN"; then
5181 ac_ct_DUMPBIN=$DUMPBIN
5182 for ac_prog in dumpbin "link -dump"
5184 # Extract the first word of "$ac_prog", so it can be a program name with args.
5185 set dummy $ac_prog; ac_word=$2
5186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5187 $as_echo_n "checking for $ac_word... " >&6; }
5188 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5189 $as_echo_n "(cached) " >&6
5190 else
5191 if test -n "$ac_ct_DUMPBIN"; then
5192 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5193 else
5194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5195 for as_dir in $PATH
5197 IFS=$as_save_IFS
5198 test -z "$as_dir" && as_dir=.
5199 for ac_exec_ext in '' $ac_executable_extensions; do
5200 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5201 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5202 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5203 break 2
5205 done
5206 done
5207 IFS=$as_save_IFS
5211 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5212 if test -n "$ac_ct_DUMPBIN"; then
5213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5214 $as_echo "$ac_ct_DUMPBIN" >&6; }
5215 else
5216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5217 $as_echo "no" >&6; }
5221 test -n "$ac_ct_DUMPBIN" && break
5222 done
5224 if test "x$ac_ct_DUMPBIN" = x; then
5225 DUMPBIN=":"
5226 else
5227 case $cross_compiling:$ac_tool_warned in
5228 yes:)
5229 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5230 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5231 ac_tool_warned=yes ;;
5232 esac
5233 DUMPBIN=$ac_ct_DUMPBIN
5237 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5238 *COFF*)
5239 DUMPBIN="$DUMPBIN -symbols"
5242 DUMPBIN=:
5244 esac
5247 if test "$DUMPBIN" != ":"; then
5248 NM="$DUMPBIN"
5251 test -z "$NM" && NM=nm
5258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5259 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5260 if ${lt_cv_nm_interface+:} false; then :
5261 $as_echo_n "(cached) " >&6
5262 else
5263 lt_cv_nm_interface="BSD nm"
5264 echo "int some_variable = 0;" > conftest.$ac_ext
5265 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5266 (eval "$ac_compile" 2>conftest.err)
5267 cat conftest.err >&5
5268 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5269 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5270 cat conftest.err >&5
5271 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5272 cat conftest.out >&5
5273 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5274 lt_cv_nm_interface="MS dumpbin"
5276 rm -f conftest*
5278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5279 $as_echo "$lt_cv_nm_interface" >&6; }
5281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5282 $as_echo_n "checking whether ln -s works... " >&6; }
5283 LN_S=$as_ln_s
5284 if test "$LN_S" = "ln -s"; then
5285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5286 $as_echo "yes" >&6; }
5287 else
5288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5289 $as_echo "no, using $LN_S" >&6; }
5292 # find the maximum length of command line arguments
5293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5294 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5295 if ${lt_cv_sys_max_cmd_len+:} false; then :
5296 $as_echo_n "(cached) " >&6
5297 else
5299 teststring="ABCD"
5301 case $build_os in
5302 msdosdjgpp*)
5303 # On DJGPP, this test can blow up pretty badly due to problems in libc
5304 # (any single argument exceeding 2000 bytes causes a buffer overrun
5305 # during glob expansion). Even if it were fixed, the result of this
5306 # check would be larger than it should be.
5307 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5310 gnu*)
5311 # Under GNU Hurd, this test is not required because there is
5312 # no limit to the length of command line arguments.
5313 # Libtool will interpret -1 as no limit whatsoever
5314 lt_cv_sys_max_cmd_len=-1;
5317 cygwin* | mingw* | cegcc*)
5318 # On Win9x/ME, this test blows up -- it succeeds, but takes
5319 # about 5 minutes as the teststring grows exponentially.
5320 # Worse, since 9x/ME are not pre-emptively multitasking,
5321 # you end up with a "frozen" computer, even though with patience
5322 # the test eventually succeeds (with a max line length of 256k).
5323 # Instead, let's just punt: use the minimum linelength reported by
5324 # all of the supported platforms: 8192 (on NT/2K/XP).
5325 lt_cv_sys_max_cmd_len=8192;
5328 mint*)
5329 # On MiNT this can take a long time and run out of memory.
5330 lt_cv_sys_max_cmd_len=8192;
5333 amigaos*)
5334 # On AmigaOS with pdksh, this test takes hours, literally.
5335 # So we just punt and use a minimum line length of 8192.
5336 lt_cv_sys_max_cmd_len=8192;
5339 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5340 # This has been around since 386BSD, at least. Likely further.
5341 if test -x /sbin/sysctl; then
5342 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5343 elif test -x /usr/sbin/sysctl; then
5344 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5345 else
5346 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5348 # And add a safety zone
5349 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5350 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5353 interix*)
5354 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5355 lt_cv_sys_max_cmd_len=196608
5358 osf*)
5359 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5360 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5361 # nice to cause kernel panics so lets avoid the loop below.
5362 # First set a reasonable default.
5363 lt_cv_sys_max_cmd_len=16384
5365 if test -x /sbin/sysconfig; then
5366 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5367 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5368 esac
5371 sco3.2v5*)
5372 lt_cv_sys_max_cmd_len=102400
5374 sysv5* | sco5v6* | sysv4.2uw2*)
5375 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5376 if test -n "$kargmax"; then
5377 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5378 else
5379 lt_cv_sys_max_cmd_len=32768
5383 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5384 if test -n "$lt_cv_sys_max_cmd_len"; then
5385 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5386 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5387 else
5388 # Make teststring a little bigger before we do anything with it.
5389 # a 1K string should be a reasonable start.
5390 for i in 1 2 3 4 5 6 7 8 ; do
5391 teststring=$teststring$teststring
5392 done
5393 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5394 # If test is not a shell built-in, we'll probably end up computing a
5395 # maximum length that is only half of the actual maximum length, but
5396 # we can't tell.
5397 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5398 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5399 test $i != 17 # 1/2 MB should be enough
5401 i=`expr $i + 1`
5402 teststring=$teststring$teststring
5403 done
5404 # Only check the string length outside the loop.
5405 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5406 teststring=
5407 # Add a significant safety factor because C++ compilers can tack on
5408 # massive amounts of additional arguments before passing them to the
5409 # linker. It appears as though 1/2 is a usable value.
5410 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5413 esac
5417 if test -n $lt_cv_sys_max_cmd_len ; then
5418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5419 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5420 else
5421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5422 $as_echo "none" >&6; }
5424 max_cmd_len=$lt_cv_sys_max_cmd_len
5431 : ${CP="cp -f"}
5432 : ${MV="mv -f"}
5433 : ${RM="rm -f"}
5435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5436 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5437 # Try some XSI features
5438 xsi_shell=no
5439 ( _lt_dummy="a/b/c"
5440 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5441 = c,a/b,, \
5442 && eval 'test $(( 1 + 1 )) -eq 2 \
5443 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5444 && xsi_shell=yes
5445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5446 $as_echo "$xsi_shell" >&6; }
5449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5450 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5451 lt_shell_append=no
5452 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5453 >/dev/null 2>&1 \
5454 && lt_shell_append=yes
5455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5456 $as_echo "$lt_shell_append" >&6; }
5459 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5460 lt_unset=unset
5461 else
5462 lt_unset=false
5469 # test EBCDIC or ASCII
5470 case `echo X|tr X '\101'` in
5471 A) # ASCII based system
5472 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5473 lt_SP2NL='tr \040 \012'
5474 lt_NL2SP='tr \015\012 \040\040'
5476 *) # EBCDIC based system
5477 lt_SP2NL='tr \100 \n'
5478 lt_NL2SP='tr \r\n \100\100'
5480 esac
5490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5491 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5492 if ${lt_cv_ld_reload_flag+:} false; then :
5493 $as_echo_n "(cached) " >&6
5494 else
5495 lt_cv_ld_reload_flag='-r'
5497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5498 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5499 reload_flag=$lt_cv_ld_reload_flag
5500 case $reload_flag in
5501 "" | " "*) ;;
5502 *) reload_flag=" $reload_flag" ;;
5503 esac
5504 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5505 case $host_os in
5506 darwin*)
5507 if test "$GCC" = yes; then
5508 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5509 else
5510 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5513 esac
5523 if test -n "$ac_tool_prefix"; then
5524 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5525 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5527 $as_echo_n "checking for $ac_word... " >&6; }
5528 if ${ac_cv_prog_OBJDUMP+:} false; then :
5529 $as_echo_n "(cached) " >&6
5530 else
5531 if test -n "$OBJDUMP"; then
5532 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5533 else
5534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5535 for as_dir in $PATH
5537 IFS=$as_save_IFS
5538 test -z "$as_dir" && as_dir=.
5539 for ac_exec_ext in '' $ac_executable_extensions; do
5540 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5541 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5542 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5543 break 2
5545 done
5546 done
5547 IFS=$as_save_IFS
5551 OBJDUMP=$ac_cv_prog_OBJDUMP
5552 if test -n "$OBJDUMP"; then
5553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5554 $as_echo "$OBJDUMP" >&6; }
5555 else
5556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5557 $as_echo "no" >&6; }
5562 if test -z "$ac_cv_prog_OBJDUMP"; then
5563 ac_ct_OBJDUMP=$OBJDUMP
5564 # Extract the first word of "objdump", so it can be a program name with args.
5565 set dummy objdump; ac_word=$2
5566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5567 $as_echo_n "checking for $ac_word... " >&6; }
5568 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5569 $as_echo_n "(cached) " >&6
5570 else
5571 if test -n "$ac_ct_OBJDUMP"; then
5572 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5573 else
5574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5575 for as_dir in $PATH
5577 IFS=$as_save_IFS
5578 test -z "$as_dir" && as_dir=.
5579 for ac_exec_ext in '' $ac_executable_extensions; do
5580 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5581 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5582 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5583 break 2
5585 done
5586 done
5587 IFS=$as_save_IFS
5591 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5592 if test -n "$ac_ct_OBJDUMP"; then
5593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5594 $as_echo "$ac_ct_OBJDUMP" >&6; }
5595 else
5596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5597 $as_echo "no" >&6; }
5600 if test "x$ac_ct_OBJDUMP" = x; then
5601 OBJDUMP="false"
5602 else
5603 case $cross_compiling:$ac_tool_warned in
5604 yes:)
5605 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5606 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5607 ac_tool_warned=yes ;;
5608 esac
5609 OBJDUMP=$ac_ct_OBJDUMP
5611 else
5612 OBJDUMP="$ac_cv_prog_OBJDUMP"
5615 test -z "$OBJDUMP" && OBJDUMP=objdump
5625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5626 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5627 if ${lt_cv_deplibs_check_method+:} false; then :
5628 $as_echo_n "(cached) " >&6
5629 else
5630 lt_cv_file_magic_cmd='$MAGIC_CMD'
5631 lt_cv_file_magic_test_file=
5632 lt_cv_deplibs_check_method='unknown'
5633 # Need to set the preceding variable on all platforms that support
5634 # interlibrary dependencies.
5635 # 'none' -- dependencies not supported.
5636 # `unknown' -- same as none, but documents that we really don't know.
5637 # 'pass_all' -- all dependencies passed with no checks.
5638 # 'test_compile' -- check by making test program.
5639 # 'file_magic [[regex]]' -- check by looking for files in library path
5640 # which responds to the $file_magic_cmd with a given extended regex.
5641 # If you have `file' or equivalent on your system and you're not sure
5642 # whether `pass_all' will *always* work, you probably want this one.
5644 case $host_os in
5645 aix[4-9]*)
5646 lt_cv_deplibs_check_method=pass_all
5649 beos*)
5650 lt_cv_deplibs_check_method=pass_all
5653 bsdi[45]*)
5654 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5655 lt_cv_file_magic_cmd='/usr/bin/file -L'
5656 lt_cv_file_magic_test_file=/shlib/libc.so
5659 cygwin*)
5660 # func_win32_libid is a shell function defined in ltmain.sh
5661 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5662 lt_cv_file_magic_cmd='func_win32_libid'
5665 mingw* | pw32*)
5666 # Base MSYS/MinGW do not provide the 'file' command needed by
5667 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5668 # unless we find 'file', for example because we are cross-compiling.
5669 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5670 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5671 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5672 lt_cv_file_magic_cmd='func_win32_libid'
5673 else
5674 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5675 lt_cv_file_magic_cmd='$OBJDUMP -f'
5679 cegcc*)
5680 # use the weaker test based on 'objdump'. See mingw*.
5681 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5682 lt_cv_file_magic_cmd='$OBJDUMP -f'
5685 darwin* | rhapsody*)
5686 lt_cv_deplibs_check_method=pass_all
5689 freebsd* | dragonfly*)
5690 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5691 case $host_cpu in
5692 i*86 )
5693 # Not sure whether the presence of OpenBSD here was a mistake.
5694 # Let's accept both of them until this is cleared up.
5695 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5696 lt_cv_file_magic_cmd=/usr/bin/file
5697 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5699 esac
5700 else
5701 lt_cv_deplibs_check_method=pass_all
5705 gnu*)
5706 lt_cv_deplibs_check_method=pass_all
5709 haiku*)
5710 lt_cv_deplibs_check_method=pass_all
5713 hpux10.20* | hpux11*)
5714 lt_cv_file_magic_cmd=/usr/bin/file
5715 case $host_cpu in
5716 ia64*)
5717 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5718 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5720 hppa*64*)
5721 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]'
5722 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5725 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5726 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5728 esac
5731 interix[3-9]*)
5732 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5733 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5736 irix5* | irix6* | nonstopux*)
5737 case $LD in
5738 *-32|*"-32 ") libmagic=32-bit;;
5739 *-n32|*"-n32 ") libmagic=N32;;
5740 *-64|*"-64 ") libmagic=64-bit;;
5741 *) libmagic=never-match;;
5742 esac
5743 lt_cv_deplibs_check_method=pass_all
5746 # This must be Linux ELF.
5747 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
5748 lt_cv_deplibs_check_method=pass_all
5751 netbsd*)
5752 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5753 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5754 else
5755 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5759 newos6*)
5760 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5761 lt_cv_file_magic_cmd=/usr/bin/file
5762 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5765 *nto* | *qnx*)
5766 lt_cv_deplibs_check_method=pass_all
5769 openbsd*)
5770 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5771 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5772 else
5773 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5777 osf3* | osf4* | osf5*)
5778 lt_cv_deplibs_check_method=pass_all
5781 rdos*)
5782 lt_cv_deplibs_check_method=pass_all
5785 solaris*)
5786 lt_cv_deplibs_check_method=pass_all
5789 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5790 lt_cv_deplibs_check_method=pass_all
5793 sysv4 | sysv4.3*)
5794 case $host_vendor in
5795 motorola)
5796 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]'
5797 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5799 ncr)
5800 lt_cv_deplibs_check_method=pass_all
5802 sequent)
5803 lt_cv_file_magic_cmd='/bin/file'
5804 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5806 sni)
5807 lt_cv_file_magic_cmd='/bin/file'
5808 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5809 lt_cv_file_magic_test_file=/lib/libc.so
5811 siemens)
5812 lt_cv_deplibs_check_method=pass_all
5815 lt_cv_deplibs_check_method=pass_all
5817 esac
5820 tpf*)
5821 lt_cv_deplibs_check_method=pass_all
5823 esac
5826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5827 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5828 file_magic_cmd=$lt_cv_file_magic_cmd
5829 deplibs_check_method=$lt_cv_deplibs_check_method
5830 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5843 if test -n "$ac_tool_prefix"; then
5844 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5845 set dummy ${ac_tool_prefix}ar; ac_word=$2
5846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5847 $as_echo_n "checking for $ac_word... " >&6; }
5848 if ${ac_cv_prog_AR+:} false; then :
5849 $as_echo_n "(cached) " >&6
5850 else
5851 if test -n "$AR"; then
5852 ac_cv_prog_AR="$AR" # Let the user override the test.
5853 else
5854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5855 for as_dir in $PATH
5857 IFS=$as_save_IFS
5858 test -z "$as_dir" && as_dir=.
5859 for ac_exec_ext in '' $ac_executable_extensions; do
5860 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5861 ac_cv_prog_AR="${ac_tool_prefix}ar"
5862 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5863 break 2
5865 done
5866 done
5867 IFS=$as_save_IFS
5871 AR=$ac_cv_prog_AR
5872 if test -n "$AR"; then
5873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5874 $as_echo "$AR" >&6; }
5875 else
5876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5877 $as_echo "no" >&6; }
5882 if test -z "$ac_cv_prog_AR"; then
5883 ac_ct_AR=$AR
5884 # Extract the first word of "ar", so it can be a program name with args.
5885 set dummy ar; ac_word=$2
5886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5887 $as_echo_n "checking for $ac_word... " >&6; }
5888 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5889 $as_echo_n "(cached) " >&6
5890 else
5891 if test -n "$ac_ct_AR"; then
5892 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5893 else
5894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5895 for as_dir in $PATH
5897 IFS=$as_save_IFS
5898 test -z "$as_dir" && as_dir=.
5899 for ac_exec_ext in '' $ac_executable_extensions; do
5900 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5901 ac_cv_prog_ac_ct_AR="ar"
5902 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5903 break 2
5905 done
5906 done
5907 IFS=$as_save_IFS
5911 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5912 if test -n "$ac_ct_AR"; then
5913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5914 $as_echo "$ac_ct_AR" >&6; }
5915 else
5916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5917 $as_echo "no" >&6; }
5920 if test "x$ac_ct_AR" = x; then
5921 AR="false"
5922 else
5923 case $cross_compiling:$ac_tool_warned in
5924 yes:)
5925 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5926 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5927 ac_tool_warned=yes ;;
5928 esac
5929 AR=$ac_ct_AR
5931 else
5932 AR="$ac_cv_prog_AR"
5935 test -z "$AR" && AR=ar
5936 test -z "$AR_FLAGS" && AR_FLAGS=cru
5948 if test -n "$ac_tool_prefix"; then
5949 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5950 set dummy ${ac_tool_prefix}strip; ac_word=$2
5951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5952 $as_echo_n "checking for $ac_word... " >&6; }
5953 if ${ac_cv_prog_STRIP+:} false; then :
5954 $as_echo_n "(cached) " >&6
5955 else
5956 if test -n "$STRIP"; then
5957 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5958 else
5959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5960 for as_dir in $PATH
5962 IFS=$as_save_IFS
5963 test -z "$as_dir" && as_dir=.
5964 for ac_exec_ext in '' $ac_executable_extensions; do
5965 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5966 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5968 break 2
5970 done
5971 done
5972 IFS=$as_save_IFS
5976 STRIP=$ac_cv_prog_STRIP
5977 if test -n "$STRIP"; then
5978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5979 $as_echo "$STRIP" >&6; }
5980 else
5981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5982 $as_echo "no" >&6; }
5987 if test -z "$ac_cv_prog_STRIP"; then
5988 ac_ct_STRIP=$STRIP
5989 # Extract the first word of "strip", so it can be a program name with args.
5990 set dummy strip; ac_word=$2
5991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5992 $as_echo_n "checking for $ac_word... " >&6; }
5993 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5994 $as_echo_n "(cached) " >&6
5995 else
5996 if test -n "$ac_ct_STRIP"; then
5997 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5998 else
5999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6000 for as_dir in $PATH
6002 IFS=$as_save_IFS
6003 test -z "$as_dir" && as_dir=.
6004 for ac_exec_ext in '' $ac_executable_extensions; do
6005 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6006 ac_cv_prog_ac_ct_STRIP="strip"
6007 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6008 break 2
6010 done
6011 done
6012 IFS=$as_save_IFS
6016 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6017 if test -n "$ac_ct_STRIP"; then
6018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6019 $as_echo "$ac_ct_STRIP" >&6; }
6020 else
6021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6022 $as_echo "no" >&6; }
6025 if test "x$ac_ct_STRIP" = x; then
6026 STRIP=":"
6027 else
6028 case $cross_compiling:$ac_tool_warned in
6029 yes:)
6030 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6031 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6032 ac_tool_warned=yes ;;
6033 esac
6034 STRIP=$ac_ct_STRIP
6036 else
6037 STRIP="$ac_cv_prog_STRIP"
6040 test -z "$STRIP" && STRIP=:
6047 if test -n "$ac_tool_prefix"; then
6048 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6049 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6051 $as_echo_n "checking for $ac_word... " >&6; }
6052 if ${ac_cv_prog_RANLIB+:} false; then :
6053 $as_echo_n "(cached) " >&6
6054 else
6055 if test -n "$RANLIB"; then
6056 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6057 else
6058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6059 for as_dir in $PATH
6061 IFS=$as_save_IFS
6062 test -z "$as_dir" && as_dir=.
6063 for ac_exec_ext in '' $ac_executable_extensions; do
6064 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6065 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6066 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6067 break 2
6069 done
6070 done
6071 IFS=$as_save_IFS
6075 RANLIB=$ac_cv_prog_RANLIB
6076 if test -n "$RANLIB"; then
6077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6078 $as_echo "$RANLIB" >&6; }
6079 else
6080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6081 $as_echo "no" >&6; }
6086 if test -z "$ac_cv_prog_RANLIB"; then
6087 ac_ct_RANLIB=$RANLIB
6088 # Extract the first word of "ranlib", so it can be a program name with args.
6089 set dummy ranlib; ac_word=$2
6090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6091 $as_echo_n "checking for $ac_word... " >&6; }
6092 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6093 $as_echo_n "(cached) " >&6
6094 else
6095 if test -n "$ac_ct_RANLIB"; then
6096 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6097 else
6098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6099 for as_dir in $PATH
6101 IFS=$as_save_IFS
6102 test -z "$as_dir" && as_dir=.
6103 for ac_exec_ext in '' $ac_executable_extensions; do
6104 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6105 ac_cv_prog_ac_ct_RANLIB="ranlib"
6106 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6107 break 2
6109 done
6110 done
6111 IFS=$as_save_IFS
6115 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6116 if test -n "$ac_ct_RANLIB"; then
6117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6118 $as_echo "$ac_ct_RANLIB" >&6; }
6119 else
6120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6121 $as_echo "no" >&6; }
6124 if test "x$ac_ct_RANLIB" = x; then
6125 RANLIB=":"
6126 else
6127 case $cross_compiling:$ac_tool_warned in
6128 yes:)
6129 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6130 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6131 ac_tool_warned=yes ;;
6132 esac
6133 RANLIB=$ac_ct_RANLIB
6135 else
6136 RANLIB="$ac_cv_prog_RANLIB"
6139 test -z "$RANLIB" && RANLIB=:
6146 # Determine commands to create old-style static archives.
6147 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6148 old_postinstall_cmds='chmod 644 $oldlib'
6149 old_postuninstall_cmds=
6151 if test -n "$RANLIB"; then
6152 case $host_os in
6153 openbsd*)
6154 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6157 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6159 esac
6160 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6163 case $host_os in
6164 darwin*)
6165 lock_old_archive_extraction=yes ;;
6167 lock_old_archive_extraction=no ;;
6168 esac
6208 # If no C compiler was specified, use CC.
6209 LTCC=${LTCC-"$CC"}
6211 # If no C compiler flags were specified, use CFLAGS.
6212 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6214 # Allow CC to be a program name with arguments.
6215 compiler=$CC
6218 # Check for command to grab the raw symbol name followed by C symbol from nm.
6219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6220 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6221 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6222 $as_echo_n "(cached) " >&6
6223 else
6225 # These are sane defaults that work on at least a few old systems.
6226 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6228 # Character class describing NM global symbol codes.
6229 symcode='[BCDEGRST]'
6231 # Regexp to match symbols that can be accessed directly from C.
6232 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6234 # Define system-specific variables.
6235 case $host_os in
6236 aix*)
6237 symcode='[BCDT]'
6239 cygwin* | mingw* | pw32* | cegcc*)
6240 symcode='[ABCDGISTW]'
6242 hpux*)
6243 if test "$host_cpu" = ia64; then
6244 symcode='[ABCDEGRST]'
6247 irix* | nonstopux*)
6248 symcode='[BCDEGRST]'
6250 osf*)
6251 symcode='[BCDEGQRST]'
6253 solaris*)
6254 symcode='[BDRT]'
6256 sco3.2v5*)
6257 symcode='[DT]'
6259 sysv4.2uw2*)
6260 symcode='[DT]'
6262 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6263 symcode='[ABDT]'
6265 sysv4)
6266 symcode='[DFNSTU]'
6268 esac
6270 # If we're using GNU nm, then use its standard symbol codes.
6271 case `$NM -V 2>&1` in
6272 *GNU* | *'with BFD'*)
6273 symcode='[ABCDGIRSTW]' ;;
6274 esac
6276 # Transform an extracted symbol line into a proper C declaration.
6277 # Some systems (esp. on ia64) link data and code symbols differently,
6278 # so use this general approach.
6279 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6281 # Transform an extracted symbol line into symbol name and symbol address
6282 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6283 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'"
6285 # Handle CRLF in mingw tool chain
6286 opt_cr=
6287 case $build_os in
6288 mingw*)
6289 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6291 esac
6293 # Try without a prefix underscore, then with it.
6294 for ac_symprfx in "" "_"; do
6296 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6297 symxfrm="\\1 $ac_symprfx\\2 \\2"
6299 # Write the raw and C identifiers.
6300 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6301 # Fake it for dumpbin and say T for any non-static function
6302 # and D for any global variable.
6303 # Also find C++ and __fastcall symbols from MSVC++,
6304 # which start with @ or ?.
6305 lt_cv_sys_global_symbol_pipe="$AWK '"\
6306 " {last_section=section; section=\$ 3};"\
6307 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6308 " \$ 0!~/External *\|/{next};"\
6309 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6310 " {if(hide[section]) next};"\
6311 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6312 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6313 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6314 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6315 " ' prfx=^$ac_symprfx"
6316 else
6317 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6320 # Check to see that the pipe works correctly.
6321 pipe_works=no
6323 rm -f conftest*
6324 cat > conftest.$ac_ext <<_LT_EOF
6325 #ifdef __cplusplus
6326 extern "C" {
6327 #endif
6328 char nm_test_var;
6329 void nm_test_func(void);
6330 void nm_test_func(void){}
6331 #ifdef __cplusplus
6333 #endif
6334 int main(){nm_test_var='a';nm_test_func();return(0);}
6335 _LT_EOF
6337 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6338 (eval $ac_compile) 2>&5
6339 ac_status=$?
6340 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6341 test $ac_status = 0; }; then
6342 # Now try to grab the symbols.
6343 nlist=conftest.nm
6344 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6345 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6346 ac_status=$?
6347 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6348 test $ac_status = 0; } && test -s "$nlist"; then
6349 # Try sorting and uniquifying the output.
6350 if sort "$nlist" | uniq > "$nlist"T; then
6351 mv -f "$nlist"T "$nlist"
6352 else
6353 rm -f "$nlist"T
6356 # Make sure that we snagged all the symbols we need.
6357 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6358 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6359 cat <<_LT_EOF > conftest.$ac_ext
6360 #ifdef __cplusplus
6361 extern "C" {
6362 #endif
6364 _LT_EOF
6365 # Now generate the symbol file.
6366 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6368 cat <<_LT_EOF >> conftest.$ac_ext
6370 /* The mapping between symbol names and symbols. */
6371 const struct {
6372 const char *name;
6373 void *address;
6375 lt__PROGRAM__LTX_preloaded_symbols[] =
6377 { "@PROGRAM@", (void *) 0 },
6378 _LT_EOF
6379 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6380 cat <<\_LT_EOF >> conftest.$ac_ext
6381 {0, (void *) 0}
6384 /* This works around a problem in FreeBSD linker */
6385 #ifdef FREEBSD_WORKAROUND
6386 static const void *lt_preloaded_setup() {
6387 return lt__PROGRAM__LTX_preloaded_symbols;
6389 #endif
6391 #ifdef __cplusplus
6393 #endif
6394 _LT_EOF
6395 # Now try linking the two files.
6396 mv conftest.$ac_objext conftstm.$ac_objext
6397 lt_save_LIBS="$LIBS"
6398 lt_save_CFLAGS="$CFLAGS"
6399 LIBS="conftstm.$ac_objext"
6400 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6401 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6402 (eval $ac_link) 2>&5
6403 ac_status=$?
6404 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6405 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6406 pipe_works=yes
6408 LIBS="$lt_save_LIBS"
6409 CFLAGS="$lt_save_CFLAGS"
6410 else
6411 echo "cannot find nm_test_func in $nlist" >&5
6413 else
6414 echo "cannot find nm_test_var in $nlist" >&5
6416 else
6417 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6419 else
6420 echo "$progname: failed program was:" >&5
6421 cat conftest.$ac_ext >&5
6423 rm -rf conftest* conftst*
6425 # Do not use the global_symbol_pipe unless it works.
6426 if test "$pipe_works" = yes; then
6427 break
6428 else
6429 lt_cv_sys_global_symbol_pipe=
6431 done
6435 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6436 lt_cv_sys_global_symbol_to_cdecl=
6438 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6440 $as_echo "failed" >&6; }
6441 else
6442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6443 $as_echo "ok" >&6; }
6467 # Check whether --enable-libtool-lock was given.
6468 if test "${enable_libtool_lock+set}" = set; then :
6469 enableval=$enable_libtool_lock;
6472 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6474 # Some flags need to be propagated to the compiler or linker for good
6475 # libtool support.
6476 case $host in
6477 ia64-*-hpux*)
6478 # Find out which ABI we are using.
6479 echo 'int i;' > conftest.$ac_ext
6480 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6481 (eval $ac_compile) 2>&5
6482 ac_status=$?
6483 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6484 test $ac_status = 0; }; then
6485 case `/usr/bin/file conftest.$ac_objext` in
6486 *ELF-32*)
6487 HPUX_IA64_MODE="32"
6489 *ELF-64*)
6490 HPUX_IA64_MODE="64"
6492 esac
6494 rm -rf conftest*
6496 *-*-irix6*)
6497 # Find out which ABI we are using.
6498 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6499 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6500 (eval $ac_compile) 2>&5
6501 ac_status=$?
6502 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6503 test $ac_status = 0; }; then
6504 if test "$lt_cv_prog_gnu_ld" = yes; then
6505 case `/usr/bin/file conftest.$ac_objext` in
6506 *32-bit*)
6507 LD="${LD-ld} -melf32bsmip"
6509 *N32*)
6510 LD="${LD-ld} -melf32bmipn32"
6512 *64-bit*)
6513 LD="${LD-ld} -melf64bmip"
6515 esac
6516 else
6517 case `/usr/bin/file conftest.$ac_objext` in
6518 *32-bit*)
6519 LD="${LD-ld} -32"
6521 *N32*)
6522 LD="${LD-ld} -n32"
6524 *64-bit*)
6525 LD="${LD-ld} -64"
6527 esac
6530 rm -rf conftest*
6533 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6534 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6535 # Find out which ABI we are using.
6536 echo 'int i;' > conftest.$ac_ext
6537 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6538 (eval $ac_compile) 2>&5
6539 ac_status=$?
6540 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6541 test $ac_status = 0; }; then
6542 case `/usr/bin/file conftest.o` in
6543 *32-bit*)
6544 case $host in
6545 x86_64-*kfreebsd*-gnu)
6546 LD="${LD-ld} -m elf_i386_fbsd"
6548 x86_64-*linux*)
6549 case `/usr/bin/file conftest.o` in
6550 *x86-64*)
6551 LD="${LD-ld} -m elf32_x86_64"
6554 LD="${LD-ld} -m elf_i386"
6556 esac
6558 powerpc64le-*linux*)
6559 LD="${LD-ld} -m elf32lppclinux"
6561 powerpc64-*linux*)
6562 LD="${LD-ld} -m elf32ppclinux"
6564 s390x-*linux*)
6565 LD="${LD-ld} -m elf_s390"
6567 sparc64-*linux*)
6568 LD="${LD-ld} -m elf32_sparc"
6570 esac
6572 *64-bit*)
6573 case $host in
6574 x86_64-*kfreebsd*-gnu)
6575 LD="${LD-ld} -m elf_x86_64_fbsd"
6577 x86_64-*linux*)
6578 LD="${LD-ld} -m elf_x86_64"
6580 powerpcle-*linux*)
6581 LD="${LD-ld} -m elf64lppc"
6583 powerpc-*linux*)
6584 LD="${LD-ld} -m elf64ppc"
6586 s390*-*linux*|s390*-*tpf*)
6587 LD="${LD-ld} -m elf64_s390"
6589 sparc*-*linux*)
6590 LD="${LD-ld} -m elf64_sparc"
6592 esac
6594 esac
6596 rm -rf conftest*
6599 *-*-sco3.2v5*)
6600 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6601 SAVE_CFLAGS="$CFLAGS"
6602 CFLAGS="$CFLAGS -belf"
6603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6604 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6605 if ${lt_cv_cc_needs_belf+:} false; then :
6606 $as_echo_n "(cached) " >&6
6607 else
6608 ac_ext=c
6609 ac_cpp='$CPP $CPPFLAGS'
6610 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6611 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6612 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6615 /* end confdefs.h. */
6618 main ()
6622 return 0;
6624 _ACEOF
6625 if ac_fn_c_try_link "$LINENO"; then :
6626 lt_cv_cc_needs_belf=yes
6627 else
6628 lt_cv_cc_needs_belf=no
6630 rm -f core conftest.err conftest.$ac_objext \
6631 conftest$ac_exeext conftest.$ac_ext
6632 ac_ext=c
6633 ac_cpp='$CPP $CPPFLAGS'
6634 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6635 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6636 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6640 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6641 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6642 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6643 CFLAGS="$SAVE_CFLAGS"
6646 sparc*-*solaris*)
6647 # Find out which ABI we are using.
6648 echo 'int i;' > conftest.$ac_ext
6649 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6650 (eval $ac_compile) 2>&5
6651 ac_status=$?
6652 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6653 test $ac_status = 0; }; then
6654 case `/usr/bin/file conftest.o` in
6655 *64-bit*)
6656 case $lt_cv_prog_gnu_ld in
6657 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6659 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6660 LD="${LD-ld} -64"
6663 esac
6665 esac
6667 rm -rf conftest*
6669 esac
6671 need_locks="$enable_libtool_lock"
6674 case $host_os in
6675 rhapsody* | darwin*)
6676 if test -n "$ac_tool_prefix"; then
6677 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6678 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6680 $as_echo_n "checking for $ac_word... " >&6; }
6681 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6682 $as_echo_n "(cached) " >&6
6683 else
6684 if test -n "$DSYMUTIL"; then
6685 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6686 else
6687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6688 for as_dir in $PATH
6690 IFS=$as_save_IFS
6691 test -z "$as_dir" && as_dir=.
6692 for ac_exec_ext in '' $ac_executable_extensions; do
6693 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6694 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6695 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6696 break 2
6698 done
6699 done
6700 IFS=$as_save_IFS
6704 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6705 if test -n "$DSYMUTIL"; then
6706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6707 $as_echo "$DSYMUTIL" >&6; }
6708 else
6709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6710 $as_echo "no" >&6; }
6715 if test -z "$ac_cv_prog_DSYMUTIL"; then
6716 ac_ct_DSYMUTIL=$DSYMUTIL
6717 # Extract the first word of "dsymutil", so it can be a program name with args.
6718 set dummy dsymutil; ac_word=$2
6719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6720 $as_echo_n "checking for $ac_word... " >&6; }
6721 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6722 $as_echo_n "(cached) " >&6
6723 else
6724 if test -n "$ac_ct_DSYMUTIL"; then
6725 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6726 else
6727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6728 for as_dir in $PATH
6730 IFS=$as_save_IFS
6731 test -z "$as_dir" && as_dir=.
6732 for ac_exec_ext in '' $ac_executable_extensions; do
6733 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6734 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6735 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6736 break 2
6738 done
6739 done
6740 IFS=$as_save_IFS
6744 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6745 if test -n "$ac_ct_DSYMUTIL"; then
6746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6747 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6748 else
6749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6750 $as_echo "no" >&6; }
6753 if test "x$ac_ct_DSYMUTIL" = x; then
6754 DSYMUTIL=":"
6755 else
6756 case $cross_compiling:$ac_tool_warned in
6757 yes:)
6758 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6759 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6760 ac_tool_warned=yes ;;
6761 esac
6762 DSYMUTIL=$ac_ct_DSYMUTIL
6764 else
6765 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6768 if test -n "$ac_tool_prefix"; then
6769 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6770 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6772 $as_echo_n "checking for $ac_word... " >&6; }
6773 if ${ac_cv_prog_NMEDIT+:} false; then :
6774 $as_echo_n "(cached) " >&6
6775 else
6776 if test -n "$NMEDIT"; then
6777 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6778 else
6779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6780 for as_dir in $PATH
6782 IFS=$as_save_IFS
6783 test -z "$as_dir" && as_dir=.
6784 for ac_exec_ext in '' $ac_executable_extensions; do
6785 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6786 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6787 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6788 break 2
6790 done
6791 done
6792 IFS=$as_save_IFS
6796 NMEDIT=$ac_cv_prog_NMEDIT
6797 if test -n "$NMEDIT"; then
6798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6799 $as_echo "$NMEDIT" >&6; }
6800 else
6801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6802 $as_echo "no" >&6; }
6807 if test -z "$ac_cv_prog_NMEDIT"; then
6808 ac_ct_NMEDIT=$NMEDIT
6809 # Extract the first word of "nmedit", so it can be a program name with args.
6810 set dummy nmedit; ac_word=$2
6811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6812 $as_echo_n "checking for $ac_word... " >&6; }
6813 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6814 $as_echo_n "(cached) " >&6
6815 else
6816 if test -n "$ac_ct_NMEDIT"; then
6817 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6818 else
6819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6820 for as_dir in $PATH
6822 IFS=$as_save_IFS
6823 test -z "$as_dir" && as_dir=.
6824 for ac_exec_ext in '' $ac_executable_extensions; do
6825 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6826 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6827 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6828 break 2
6830 done
6831 done
6832 IFS=$as_save_IFS
6836 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6837 if test -n "$ac_ct_NMEDIT"; then
6838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6839 $as_echo "$ac_ct_NMEDIT" >&6; }
6840 else
6841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6842 $as_echo "no" >&6; }
6845 if test "x$ac_ct_NMEDIT" = x; then
6846 NMEDIT=":"
6847 else
6848 case $cross_compiling:$ac_tool_warned in
6849 yes:)
6850 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6851 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6852 ac_tool_warned=yes ;;
6853 esac
6854 NMEDIT=$ac_ct_NMEDIT
6856 else
6857 NMEDIT="$ac_cv_prog_NMEDIT"
6860 if test -n "$ac_tool_prefix"; then
6861 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6862 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6864 $as_echo_n "checking for $ac_word... " >&6; }
6865 if ${ac_cv_prog_LIPO+:} false; then :
6866 $as_echo_n "(cached) " >&6
6867 else
6868 if test -n "$LIPO"; then
6869 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6870 else
6871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6872 for as_dir in $PATH
6874 IFS=$as_save_IFS
6875 test -z "$as_dir" && as_dir=.
6876 for ac_exec_ext in '' $ac_executable_extensions; do
6877 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6878 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6879 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6880 break 2
6882 done
6883 done
6884 IFS=$as_save_IFS
6888 LIPO=$ac_cv_prog_LIPO
6889 if test -n "$LIPO"; then
6890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6891 $as_echo "$LIPO" >&6; }
6892 else
6893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6894 $as_echo "no" >&6; }
6899 if test -z "$ac_cv_prog_LIPO"; then
6900 ac_ct_LIPO=$LIPO
6901 # Extract the first word of "lipo", so it can be a program name with args.
6902 set dummy lipo; ac_word=$2
6903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6904 $as_echo_n "checking for $ac_word... " >&6; }
6905 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6906 $as_echo_n "(cached) " >&6
6907 else
6908 if test -n "$ac_ct_LIPO"; then
6909 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6910 else
6911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6912 for as_dir in $PATH
6914 IFS=$as_save_IFS
6915 test -z "$as_dir" && as_dir=.
6916 for ac_exec_ext in '' $ac_executable_extensions; do
6917 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6918 ac_cv_prog_ac_ct_LIPO="lipo"
6919 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6920 break 2
6922 done
6923 done
6924 IFS=$as_save_IFS
6928 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6929 if test -n "$ac_ct_LIPO"; then
6930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6931 $as_echo "$ac_ct_LIPO" >&6; }
6932 else
6933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6934 $as_echo "no" >&6; }
6937 if test "x$ac_ct_LIPO" = x; then
6938 LIPO=":"
6939 else
6940 case $cross_compiling:$ac_tool_warned in
6941 yes:)
6942 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6943 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6944 ac_tool_warned=yes ;;
6945 esac
6946 LIPO=$ac_ct_LIPO
6948 else
6949 LIPO="$ac_cv_prog_LIPO"
6952 if test -n "$ac_tool_prefix"; then
6953 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6954 set dummy ${ac_tool_prefix}otool; ac_word=$2
6955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6956 $as_echo_n "checking for $ac_word... " >&6; }
6957 if ${ac_cv_prog_OTOOL+:} false; then :
6958 $as_echo_n "(cached) " >&6
6959 else
6960 if test -n "$OTOOL"; then
6961 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6962 else
6963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6964 for as_dir in $PATH
6966 IFS=$as_save_IFS
6967 test -z "$as_dir" && as_dir=.
6968 for ac_exec_ext in '' $ac_executable_extensions; do
6969 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6970 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6971 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6972 break 2
6974 done
6975 done
6976 IFS=$as_save_IFS
6980 OTOOL=$ac_cv_prog_OTOOL
6981 if test -n "$OTOOL"; then
6982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6983 $as_echo "$OTOOL" >&6; }
6984 else
6985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6986 $as_echo "no" >&6; }
6991 if test -z "$ac_cv_prog_OTOOL"; then
6992 ac_ct_OTOOL=$OTOOL
6993 # Extract the first word of "otool", so it can be a program name with args.
6994 set dummy otool; ac_word=$2
6995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6996 $as_echo_n "checking for $ac_word... " >&6; }
6997 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6998 $as_echo_n "(cached) " >&6
6999 else
7000 if test -n "$ac_ct_OTOOL"; then
7001 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7002 else
7003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7004 for as_dir in $PATH
7006 IFS=$as_save_IFS
7007 test -z "$as_dir" && as_dir=.
7008 for ac_exec_ext in '' $ac_executable_extensions; do
7009 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7010 ac_cv_prog_ac_ct_OTOOL="otool"
7011 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7012 break 2
7014 done
7015 done
7016 IFS=$as_save_IFS
7020 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7021 if test -n "$ac_ct_OTOOL"; then
7022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7023 $as_echo "$ac_ct_OTOOL" >&6; }
7024 else
7025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7026 $as_echo "no" >&6; }
7029 if test "x$ac_ct_OTOOL" = x; then
7030 OTOOL=":"
7031 else
7032 case $cross_compiling:$ac_tool_warned in
7033 yes:)
7034 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7035 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7036 ac_tool_warned=yes ;;
7037 esac
7038 OTOOL=$ac_ct_OTOOL
7040 else
7041 OTOOL="$ac_cv_prog_OTOOL"
7044 if test -n "$ac_tool_prefix"; then
7045 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7046 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7048 $as_echo_n "checking for $ac_word... " >&6; }
7049 if ${ac_cv_prog_OTOOL64+:} false; then :
7050 $as_echo_n "(cached) " >&6
7051 else
7052 if test -n "$OTOOL64"; then
7053 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7054 else
7055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7056 for as_dir in $PATH
7058 IFS=$as_save_IFS
7059 test -z "$as_dir" && as_dir=.
7060 for ac_exec_ext in '' $ac_executable_extensions; do
7061 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7062 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7063 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7064 break 2
7066 done
7067 done
7068 IFS=$as_save_IFS
7072 OTOOL64=$ac_cv_prog_OTOOL64
7073 if test -n "$OTOOL64"; then
7074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7075 $as_echo "$OTOOL64" >&6; }
7076 else
7077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7078 $as_echo "no" >&6; }
7083 if test -z "$ac_cv_prog_OTOOL64"; then
7084 ac_ct_OTOOL64=$OTOOL64
7085 # Extract the first word of "otool64", so it can be a program name with args.
7086 set dummy otool64; ac_word=$2
7087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7088 $as_echo_n "checking for $ac_word... " >&6; }
7089 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7090 $as_echo_n "(cached) " >&6
7091 else
7092 if test -n "$ac_ct_OTOOL64"; then
7093 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7094 else
7095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7096 for as_dir in $PATH
7098 IFS=$as_save_IFS
7099 test -z "$as_dir" && as_dir=.
7100 for ac_exec_ext in '' $ac_executable_extensions; do
7101 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7102 ac_cv_prog_ac_ct_OTOOL64="otool64"
7103 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7104 break 2
7106 done
7107 done
7108 IFS=$as_save_IFS
7112 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7113 if test -n "$ac_ct_OTOOL64"; then
7114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7115 $as_echo "$ac_ct_OTOOL64" >&6; }
7116 else
7117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7118 $as_echo "no" >&6; }
7121 if test "x$ac_ct_OTOOL64" = x; then
7122 OTOOL64=":"
7123 else
7124 case $cross_compiling:$ac_tool_warned in
7125 yes:)
7126 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7127 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7128 ac_tool_warned=yes ;;
7129 esac
7130 OTOOL64=$ac_ct_OTOOL64
7132 else
7133 OTOOL64="$ac_cv_prog_OTOOL64"
7162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7163 $as_echo_n "checking for -single_module linker flag... " >&6; }
7164 if ${lt_cv_apple_cc_single_mod+:} false; then :
7165 $as_echo_n "(cached) " >&6
7166 else
7167 lt_cv_apple_cc_single_mod=no
7168 if test -z "${LT_MULTI_MODULE}"; then
7169 # By default we will add the -single_module flag. You can override
7170 # by either setting the environment variable LT_MULTI_MODULE
7171 # non-empty at configure time, or by adding -multi_module to the
7172 # link flags.
7173 rm -rf libconftest.dylib*
7174 echo "int foo(void){return 1;}" > conftest.c
7175 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7176 -dynamiclib -Wl,-single_module conftest.c" >&5
7177 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7178 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7179 _lt_result=$?
7180 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7181 lt_cv_apple_cc_single_mod=yes
7182 else
7183 cat conftest.err >&5
7185 rm -rf libconftest.dylib*
7186 rm -f conftest.*
7189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7190 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7192 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7193 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7194 $as_echo_n "(cached) " >&6
7195 else
7196 lt_cv_ld_exported_symbols_list=no
7197 save_LDFLAGS=$LDFLAGS
7198 echo "_main" > conftest.sym
7199 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7201 /* end confdefs.h. */
7204 main ()
7208 return 0;
7210 _ACEOF
7211 if ac_fn_c_try_link "$LINENO"; then :
7212 lt_cv_ld_exported_symbols_list=yes
7213 else
7214 lt_cv_ld_exported_symbols_list=no
7216 rm -f core conftest.err conftest.$ac_objext \
7217 conftest$ac_exeext conftest.$ac_ext
7218 LDFLAGS="$save_LDFLAGS"
7221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7222 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7224 $as_echo_n "checking for -force_load linker flag... " >&6; }
7225 if ${lt_cv_ld_force_load+:} false; then :
7226 $as_echo_n "(cached) " >&6
7227 else
7228 lt_cv_ld_force_load=no
7229 cat > conftest.c << _LT_EOF
7230 int forced_loaded() { return 2;}
7231 _LT_EOF
7232 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7233 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7234 echo "$AR cru libconftest.a conftest.o" >&5
7235 $AR cru libconftest.a conftest.o 2>&5
7236 cat > conftest.c << _LT_EOF
7237 int main() { return 0;}
7238 _LT_EOF
7239 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7240 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7241 _lt_result=$?
7242 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7243 lt_cv_ld_force_load=yes
7244 else
7245 cat conftest.err >&5
7247 rm -f conftest.err libconftest.a conftest conftest.c
7248 rm -rf conftest.dSYM
7251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7252 $as_echo "$lt_cv_ld_force_load" >&6; }
7253 case $host_os in
7254 rhapsody* | darwin1.[012])
7255 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7256 darwin1.*)
7257 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7258 darwin*) # darwin 5.x on
7259 # if running on 10.5 or later, the deployment target defaults
7260 # to the OS version, if on x86, and 10.4, the deployment
7261 # target defaults to 10.4. Don't you love it?
7262 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7263 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7264 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7265 10.[012][,.]*)
7266 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7267 10.*)
7268 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7269 esac
7271 esac
7272 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7273 _lt_dar_single_mod='$single_module'
7275 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7276 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7277 else
7278 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7280 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7281 _lt_dsymutil='~$DSYMUTIL $lib || :'
7282 else
7283 _lt_dsymutil=
7286 esac
7288 for ac_header in dlfcn.h
7289 do :
7290 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7292 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7293 cat >>confdefs.h <<_ACEOF
7294 #define HAVE_DLFCN_H 1
7295 _ACEOF
7299 done
7305 # Set options
7306 # Check whether --enable-static was given.
7307 if test "${enable_static+set}" = set; then :
7308 enableval=$enable_static; p=${PACKAGE-default}
7309 case $enableval in
7310 yes) enable_static=yes ;;
7311 no) enable_static=no ;;
7313 enable_static=no
7314 # Look at the argument we got. We use all the common list separators.
7315 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7316 for pkg in $enableval; do
7317 IFS="$lt_save_ifs"
7318 if test "X$pkg" = "X$p"; then
7319 enable_static=yes
7321 done
7322 IFS="$lt_save_ifs"
7324 esac
7325 else
7326 enable_static=no
7338 enable_dlopen=no
7341 enable_win32_dll=no
7344 # Check whether --enable-shared was given.
7345 if test "${enable_shared+set}" = set; then :
7346 enableval=$enable_shared; p=${PACKAGE-default}
7347 case $enableval in
7348 yes) enable_shared=yes ;;
7349 no) enable_shared=no ;;
7351 enable_shared=no
7352 # Look at the argument we got. We use all the common list separators.
7353 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7354 for pkg in $enableval; do
7355 IFS="$lt_save_ifs"
7356 if test "X$pkg" = "X$p"; then
7357 enable_shared=yes
7359 done
7360 IFS="$lt_save_ifs"
7362 esac
7363 else
7364 enable_shared=yes
7377 # Check whether --with-pic was given.
7378 if test "${with_pic+set}" = set; then :
7379 withval=$with_pic; pic_mode="$withval"
7380 else
7381 pic_mode=default
7385 test -z "$pic_mode" && pic_mode=default
7393 # Check whether --enable-fast-install was given.
7394 if test "${enable_fast_install+set}" = set; then :
7395 enableval=$enable_fast_install; p=${PACKAGE-default}
7396 case $enableval in
7397 yes) enable_fast_install=yes ;;
7398 no) enable_fast_install=no ;;
7400 enable_fast_install=no
7401 # Look at the argument we got. We use all the common list separators.
7402 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7403 for pkg in $enableval; do
7404 IFS="$lt_save_ifs"
7405 if test "X$pkg" = "X$p"; then
7406 enable_fast_install=yes
7408 done
7409 IFS="$lt_save_ifs"
7411 esac
7412 else
7413 enable_fast_install=yes
7426 # This can be used to rebuild libtool when needed
7427 LIBTOOL_DEPS="$ltmain"
7429 # Always use our own libtool.
7430 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7457 test -z "$LN_S" && LN_S="ln -s"
7472 if test -n "${ZSH_VERSION+set}" ; then
7473 setopt NO_GLOB_SUBST
7476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7477 $as_echo_n "checking for objdir... " >&6; }
7478 if ${lt_cv_objdir+:} false; then :
7479 $as_echo_n "(cached) " >&6
7480 else
7481 rm -f .libs 2>/dev/null
7482 mkdir .libs 2>/dev/null
7483 if test -d .libs; then
7484 lt_cv_objdir=.libs
7485 else
7486 # MS-DOS does not allow filenames that begin with a dot.
7487 lt_cv_objdir=_libs
7489 rmdir .libs 2>/dev/null
7491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7492 $as_echo "$lt_cv_objdir" >&6; }
7493 objdir=$lt_cv_objdir
7499 cat >>confdefs.h <<_ACEOF
7500 #define LT_OBJDIR "$lt_cv_objdir/"
7501 _ACEOF
7506 case $host_os in
7507 aix3*)
7508 # AIX sometimes has problems with the GCC collect2 program. For some
7509 # reason, if we set the COLLECT_NAMES environment variable, the problems
7510 # vanish in a puff of smoke.
7511 if test "X${COLLECT_NAMES+set}" != Xset; then
7512 COLLECT_NAMES=
7513 export COLLECT_NAMES
7516 esac
7518 # Global variables:
7519 ofile=libtool
7520 can_build_shared=yes
7522 # All known linkers require a `.a' archive for static linking (except MSVC,
7523 # which needs '.lib').
7524 libext=a
7526 with_gnu_ld="$lt_cv_prog_gnu_ld"
7528 old_CC="$CC"
7529 old_CFLAGS="$CFLAGS"
7531 # Set sane defaults for various variables
7532 test -z "$CC" && CC=cc
7533 test -z "$LTCC" && LTCC=$CC
7534 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7535 test -z "$LD" && LD=ld
7536 test -z "$ac_objext" && ac_objext=o
7538 for cc_temp in $compiler""; do
7539 case $cc_temp in
7540 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7541 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7542 \-*) ;;
7543 *) break;;
7544 esac
7545 done
7546 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7549 # Only perform the check for file, if the check method requires it
7550 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7551 case $deplibs_check_method in
7552 file_magic*)
7553 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7555 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7556 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7557 $as_echo_n "(cached) " >&6
7558 else
7559 case $MAGIC_CMD in
7560 [\\/*] | ?:[\\/]*)
7561 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7564 lt_save_MAGIC_CMD="$MAGIC_CMD"
7565 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7566 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7567 for ac_dir in $ac_dummy; do
7568 IFS="$lt_save_ifs"
7569 test -z "$ac_dir" && ac_dir=.
7570 if test -f $ac_dir/${ac_tool_prefix}file; then
7571 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7572 if test -n "$file_magic_test_file"; then
7573 case $deplibs_check_method in
7574 "file_magic "*)
7575 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7576 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7577 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7578 $EGREP "$file_magic_regex" > /dev/null; then
7580 else
7581 cat <<_LT_EOF 1>&2
7583 *** Warning: the command libtool uses to detect shared libraries,
7584 *** $file_magic_cmd, produces output that libtool cannot recognize.
7585 *** The result is that libtool may fail to recognize shared libraries
7586 *** as such. This will affect the creation of libtool libraries that
7587 *** depend on shared libraries, but programs linked with such libtool
7588 *** libraries will work regardless of this problem. Nevertheless, you
7589 *** may want to report the problem to your system manager and/or to
7590 *** bug-libtool@gnu.org
7592 _LT_EOF
7593 fi ;;
7594 esac
7596 break
7598 done
7599 IFS="$lt_save_ifs"
7600 MAGIC_CMD="$lt_save_MAGIC_CMD"
7602 esac
7605 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7606 if test -n "$MAGIC_CMD"; then
7607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7608 $as_echo "$MAGIC_CMD" >&6; }
7609 else
7610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7611 $as_echo "no" >&6; }
7618 if test -z "$lt_cv_path_MAGIC_CMD"; then
7619 if test -n "$ac_tool_prefix"; then
7620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7621 $as_echo_n "checking for file... " >&6; }
7622 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7623 $as_echo_n "(cached) " >&6
7624 else
7625 case $MAGIC_CMD in
7626 [\\/*] | ?:[\\/]*)
7627 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7630 lt_save_MAGIC_CMD="$MAGIC_CMD"
7631 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7632 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7633 for ac_dir in $ac_dummy; do
7634 IFS="$lt_save_ifs"
7635 test -z "$ac_dir" && ac_dir=.
7636 if test -f $ac_dir/file; then
7637 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7638 if test -n "$file_magic_test_file"; then
7639 case $deplibs_check_method in
7640 "file_magic "*)
7641 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7642 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7643 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7644 $EGREP "$file_magic_regex" > /dev/null; then
7646 else
7647 cat <<_LT_EOF 1>&2
7649 *** Warning: the command libtool uses to detect shared libraries,
7650 *** $file_magic_cmd, produces output that libtool cannot recognize.
7651 *** The result is that libtool may fail to recognize shared libraries
7652 *** as such. This will affect the creation of libtool libraries that
7653 *** depend on shared libraries, but programs linked with such libtool
7654 *** libraries will work regardless of this problem. Nevertheless, you
7655 *** may want to report the problem to your system manager and/or to
7656 *** bug-libtool@gnu.org
7658 _LT_EOF
7659 fi ;;
7660 esac
7662 break
7664 done
7665 IFS="$lt_save_ifs"
7666 MAGIC_CMD="$lt_save_MAGIC_CMD"
7668 esac
7671 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7672 if test -n "$MAGIC_CMD"; then
7673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7674 $as_echo "$MAGIC_CMD" >&6; }
7675 else
7676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7677 $as_echo "no" >&6; }
7681 else
7682 MAGIC_CMD=:
7688 esac
7690 # Use C for the default configuration in the libtool script
7692 lt_save_CC="$CC"
7693 ac_ext=c
7694 ac_cpp='$CPP $CPPFLAGS'
7695 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7696 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7697 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7700 # Source file extension for C test sources.
7701 ac_ext=c
7703 # Object file extension for compiled C test sources.
7704 objext=o
7705 objext=$objext
7707 # Code to be used in simple compile tests
7708 lt_simple_compile_test_code="int some_variable = 0;"
7710 # Code to be used in simple link tests
7711 lt_simple_link_test_code='int main(){return(0);}'
7719 # If no C compiler was specified, use CC.
7720 LTCC=${LTCC-"$CC"}
7722 # If no C compiler flags were specified, use CFLAGS.
7723 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7725 # Allow CC to be a program name with arguments.
7726 compiler=$CC
7728 # Save the default compiler, since it gets overwritten when the other
7729 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7730 compiler_DEFAULT=$CC
7732 # save warnings/boilerplate of simple test code
7733 ac_outfile=conftest.$ac_objext
7734 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7735 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7736 _lt_compiler_boilerplate=`cat conftest.err`
7737 $RM conftest*
7739 ac_outfile=conftest.$ac_objext
7740 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7741 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7742 _lt_linker_boilerplate=`cat conftest.err`
7743 $RM -r conftest*
7746 ## CAVEAT EMPTOR:
7747 ## There is no encapsulation within the following macros, do not change
7748 ## the running order or otherwise move them around unless you know exactly
7749 ## what you are doing...
7750 if test -n "$compiler"; then
7752 lt_prog_compiler_no_builtin_flag=
7754 if test "$GCC" = yes; then
7755 case $cc_basename in
7756 nvcc*)
7757 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7759 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7760 esac
7762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7763 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7764 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7765 $as_echo_n "(cached) " >&6
7766 else
7767 lt_cv_prog_compiler_rtti_exceptions=no
7768 ac_outfile=conftest.$ac_objext
7769 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7770 lt_compiler_flag="-fno-rtti -fno-exceptions"
7771 # Insert the option either (1) after the last *FLAGS variable, or
7772 # (2) before a word containing "conftest.", or (3) at the end.
7773 # Note that $ac_compile itself does not contain backslashes and begins
7774 # with a dollar sign (not a hyphen), so the echo should work correctly.
7775 # The option is referenced via a variable to avoid confusing sed.
7776 lt_compile=`echo "$ac_compile" | $SED \
7777 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7778 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7779 -e 's:$: $lt_compiler_flag:'`
7780 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7781 (eval "$lt_compile" 2>conftest.err)
7782 ac_status=$?
7783 cat conftest.err >&5
7784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7785 if (exit $ac_status) && test -s "$ac_outfile"; then
7786 # The compiler can only warn and ignore the option if not recognized
7787 # So say no if there are warnings other than the usual output.
7788 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7789 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7790 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7791 lt_cv_prog_compiler_rtti_exceptions=yes
7794 $RM conftest*
7797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7798 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7800 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7801 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7802 else
7813 lt_prog_compiler_wl=
7814 lt_prog_compiler_pic=
7815 lt_prog_compiler_static=
7817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7818 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7820 if test "$GCC" = yes; then
7821 lt_prog_compiler_wl='-Wl,'
7822 lt_prog_compiler_static='-static'
7824 case $host_os in
7825 aix*)
7826 # All AIX code is PIC.
7827 if test "$host_cpu" = ia64; then
7828 # AIX 5 now supports IA64 processor
7829 lt_prog_compiler_static='-Bstatic'
7831 lt_prog_compiler_pic='-fPIC'
7834 amigaos*)
7835 case $host_cpu in
7836 powerpc)
7837 # see comment about AmigaOS4 .so support
7838 lt_prog_compiler_pic='-fPIC'
7840 m68k)
7841 # FIXME: we need at least 68020 code to build shared libraries, but
7842 # adding the `-m68020' flag to GCC prevents building anything better,
7843 # like `-m68040'.
7844 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7846 esac
7849 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7850 # PIC is the default for these OSes.
7853 mingw* | cygwin* | pw32* | os2* | cegcc*)
7854 # This hack is so that the source file can tell whether it is being
7855 # built for inclusion in a dll (and should export symbols for example).
7856 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7857 # (--disable-auto-import) libraries
7858 lt_prog_compiler_pic='-DDLL_EXPORT'
7861 darwin* | rhapsody*)
7862 # PIC is the default on this platform
7863 # Common symbols not allowed in MH_DYLIB files
7864 lt_prog_compiler_pic='-fno-common'
7867 haiku*)
7868 # PIC is the default for Haiku.
7869 # The "-static" flag exists, but is broken.
7870 lt_prog_compiler_static=
7873 hpux*)
7874 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7875 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7876 # sets the default TLS model and affects inlining.
7877 case $host_cpu in
7878 hppa*64*)
7879 # +Z the default
7882 lt_prog_compiler_pic='-fPIC'
7884 esac
7887 interix[3-9]*)
7888 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7889 # Instead, we relocate shared libraries at runtime.
7892 msdosdjgpp*)
7893 # Just because we use GCC doesn't mean we suddenly get shared libraries
7894 # on systems that don't support them.
7895 lt_prog_compiler_can_build_shared=no
7896 enable_shared=no
7899 *nto* | *qnx*)
7900 # QNX uses GNU C++, but need to define -shared option too, otherwise
7901 # it will coredump.
7902 lt_prog_compiler_pic='-fPIC -shared'
7905 sysv4*MP*)
7906 if test -d /usr/nec; then
7907 lt_prog_compiler_pic=-Kconform_pic
7912 lt_prog_compiler_pic='-fPIC'
7914 esac
7916 case $cc_basename in
7917 nvcc*) # Cuda Compiler Driver 2.2
7918 lt_prog_compiler_wl='-Xlinker '
7919 lt_prog_compiler_pic='-Xcompiler -fPIC'
7921 esac
7922 else
7923 # PORTME Check for flag to pass linker flags through the system compiler.
7924 case $host_os in
7925 aix*)
7926 lt_prog_compiler_wl='-Wl,'
7927 if test "$host_cpu" = ia64; then
7928 # AIX 5 now supports IA64 processor
7929 lt_prog_compiler_static='-Bstatic'
7930 else
7931 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7935 mingw* | cygwin* | pw32* | os2* | cegcc*)
7936 # This hack is so that the source file can tell whether it is being
7937 # built for inclusion in a dll (and should export symbols for example).
7938 lt_prog_compiler_pic='-DDLL_EXPORT'
7941 hpux9* | hpux10* | hpux11*)
7942 lt_prog_compiler_wl='-Wl,'
7943 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7944 # not for PA HP-UX.
7945 case $host_cpu in
7946 hppa*64*|ia64*)
7947 # +Z the default
7950 lt_prog_compiler_pic='+Z'
7952 esac
7953 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7954 lt_prog_compiler_static='${wl}-a ${wl}archive'
7957 irix5* | irix6* | nonstopux*)
7958 lt_prog_compiler_wl='-Wl,'
7959 # PIC (with -KPIC) is the default.
7960 lt_prog_compiler_static='-non_shared'
7963 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7964 case $cc_basename in
7965 # old Intel for x86_64 which still supported -KPIC.
7966 ecc*)
7967 lt_prog_compiler_wl='-Wl,'
7968 lt_prog_compiler_pic='-KPIC'
7969 lt_prog_compiler_static='-static'
7971 # icc used to be incompatible with GCC.
7972 # ICC 10 doesn't accept -KPIC any more.
7973 icc* | ifort*)
7974 lt_prog_compiler_wl='-Wl,'
7975 lt_prog_compiler_pic='-fPIC'
7976 lt_prog_compiler_static='-static'
7978 # Lahey Fortran 8.1.
7979 lf95*)
7980 lt_prog_compiler_wl='-Wl,'
7981 lt_prog_compiler_pic='--shared'
7982 lt_prog_compiler_static='--static'
7984 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
7985 # Portland Group compilers (*not* the Pentium gcc compiler,
7986 # which looks to be a dead project)
7987 lt_prog_compiler_wl='-Wl,'
7988 lt_prog_compiler_pic='-fpic'
7989 lt_prog_compiler_static='-Bstatic'
7991 ccc*)
7992 lt_prog_compiler_wl='-Wl,'
7993 # All Alpha code is PIC.
7994 lt_prog_compiler_static='-non_shared'
7996 xl* | bgxl* | bgf* | mpixl*)
7997 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
7998 lt_prog_compiler_wl='-Wl,'
7999 lt_prog_compiler_pic='-qpic'
8000 lt_prog_compiler_static='-qstaticlink'
8003 case `$CC -V 2>&1 | sed 5q` in
8004 *Sun\ F* | *Sun*Fortran*)
8005 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8006 lt_prog_compiler_pic='-KPIC'
8007 lt_prog_compiler_static='-Bstatic'
8008 lt_prog_compiler_wl=''
8010 *Sun\ C*)
8011 # Sun C 5.9
8012 lt_prog_compiler_pic='-KPIC'
8013 lt_prog_compiler_static='-Bstatic'
8014 lt_prog_compiler_wl='-Wl,'
8016 esac
8018 esac
8021 newsos6)
8022 lt_prog_compiler_pic='-KPIC'
8023 lt_prog_compiler_static='-Bstatic'
8026 *nto* | *qnx*)
8027 # QNX uses GNU C++, but need to define -shared option too, otherwise
8028 # it will coredump.
8029 lt_prog_compiler_pic='-fPIC -shared'
8032 osf3* | osf4* | osf5*)
8033 lt_prog_compiler_wl='-Wl,'
8034 # All OSF/1 code is PIC.
8035 lt_prog_compiler_static='-non_shared'
8038 rdos*)
8039 lt_prog_compiler_static='-non_shared'
8042 solaris*)
8043 lt_prog_compiler_pic='-KPIC'
8044 lt_prog_compiler_static='-Bstatic'
8045 case $cc_basename in
8046 f77* | f90* | f95*)
8047 lt_prog_compiler_wl='-Qoption ld ';;
8049 lt_prog_compiler_wl='-Wl,';;
8050 esac
8053 sunos4*)
8054 lt_prog_compiler_wl='-Qoption ld '
8055 lt_prog_compiler_pic='-PIC'
8056 lt_prog_compiler_static='-Bstatic'
8059 sysv4 | sysv4.2uw2* | sysv4.3*)
8060 lt_prog_compiler_wl='-Wl,'
8061 lt_prog_compiler_pic='-KPIC'
8062 lt_prog_compiler_static='-Bstatic'
8065 sysv4*MP*)
8066 if test -d /usr/nec ;then
8067 lt_prog_compiler_pic='-Kconform_pic'
8068 lt_prog_compiler_static='-Bstatic'
8072 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8073 lt_prog_compiler_wl='-Wl,'
8074 lt_prog_compiler_pic='-KPIC'
8075 lt_prog_compiler_static='-Bstatic'
8078 unicos*)
8079 lt_prog_compiler_wl='-Wl,'
8080 lt_prog_compiler_can_build_shared=no
8083 uts4*)
8084 lt_prog_compiler_pic='-pic'
8085 lt_prog_compiler_static='-Bstatic'
8089 lt_prog_compiler_can_build_shared=no
8091 esac
8094 case $host_os in
8095 # For platforms which do not support PIC, -DPIC is meaningless:
8096 *djgpp*)
8097 lt_prog_compiler_pic=
8100 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8102 esac
8103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8104 $as_echo "$lt_prog_compiler_pic" >&6; }
8112 # Check to make sure the PIC flag actually works.
8114 if test -n "$lt_prog_compiler_pic"; then
8115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8116 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8117 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8118 $as_echo_n "(cached) " >&6
8119 else
8120 lt_cv_prog_compiler_pic_works=no
8121 ac_outfile=conftest.$ac_objext
8122 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8123 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8124 # Insert the option either (1) after the last *FLAGS variable, or
8125 # (2) before a word containing "conftest.", or (3) at the end.
8126 # Note that $ac_compile itself does not contain backslashes and begins
8127 # with a dollar sign (not a hyphen), so the echo should work correctly.
8128 # The option is referenced via a variable to avoid confusing sed.
8129 lt_compile=`echo "$ac_compile" | $SED \
8130 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8131 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8132 -e 's:$: $lt_compiler_flag:'`
8133 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8134 (eval "$lt_compile" 2>conftest.err)
8135 ac_status=$?
8136 cat conftest.err >&5
8137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8138 if (exit $ac_status) && test -s "$ac_outfile"; then
8139 # The compiler can only warn and ignore the option if not recognized
8140 # So say no if there are warnings other than the usual output.
8141 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8142 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8143 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8144 lt_cv_prog_compiler_pic_works=yes
8147 $RM conftest*
8150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8151 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8153 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8154 case $lt_prog_compiler_pic in
8155 "" | " "*) ;;
8156 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8157 esac
8158 else
8159 lt_prog_compiler_pic=
8160 lt_prog_compiler_can_build_shared=no
8171 # Check to make sure the static flag actually works.
8173 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8175 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8176 if ${lt_cv_prog_compiler_static_works+:} false; then :
8177 $as_echo_n "(cached) " >&6
8178 else
8179 lt_cv_prog_compiler_static_works=no
8180 save_LDFLAGS="$LDFLAGS"
8181 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8182 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8183 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8184 # The linker can only warn and ignore the option if not recognized
8185 # So say no if there are warnings
8186 if test -s conftest.err; then
8187 # Append any errors to the config.log.
8188 cat conftest.err 1>&5
8189 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8190 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8191 if diff conftest.exp conftest.er2 >/dev/null; then
8192 lt_cv_prog_compiler_static_works=yes
8194 else
8195 lt_cv_prog_compiler_static_works=yes
8198 $RM -r conftest*
8199 LDFLAGS="$save_LDFLAGS"
8202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8203 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8205 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8207 else
8208 lt_prog_compiler_static=
8217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8218 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8219 if ${lt_cv_prog_compiler_c_o+:} false; then :
8220 $as_echo_n "(cached) " >&6
8221 else
8222 lt_cv_prog_compiler_c_o=no
8223 $RM -r conftest 2>/dev/null
8224 mkdir conftest
8225 cd conftest
8226 mkdir out
8227 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8229 lt_compiler_flag="-o out/conftest2.$ac_objext"
8230 # Insert the option either (1) after the last *FLAGS variable, or
8231 # (2) before a word containing "conftest.", or (3) at the end.
8232 # Note that $ac_compile itself does not contain backslashes and begins
8233 # with a dollar sign (not a hyphen), so the echo should work correctly.
8234 lt_compile=`echo "$ac_compile" | $SED \
8235 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8236 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8237 -e 's:$: $lt_compiler_flag:'`
8238 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8239 (eval "$lt_compile" 2>out/conftest.err)
8240 ac_status=$?
8241 cat out/conftest.err >&5
8242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8243 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8244 then
8245 # The compiler can only warn and ignore the option if not recognized
8246 # So say no if there are warnings
8247 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8248 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8249 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8250 lt_cv_prog_compiler_c_o=yes
8253 chmod u+w . 2>&5
8254 $RM conftest*
8255 # SGI C++ compiler will create directory out/ii_files/ for
8256 # template instantiation
8257 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8258 $RM out/* && rmdir out
8259 cd ..
8260 $RM -r conftest
8261 $RM conftest*
8264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8265 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8273 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8274 if ${lt_cv_prog_compiler_c_o+:} false; then :
8275 $as_echo_n "(cached) " >&6
8276 else
8277 lt_cv_prog_compiler_c_o=no
8278 $RM -r conftest 2>/dev/null
8279 mkdir conftest
8280 cd conftest
8281 mkdir out
8282 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8284 lt_compiler_flag="-o out/conftest2.$ac_objext"
8285 # Insert the option either (1) after the last *FLAGS variable, or
8286 # (2) before a word containing "conftest.", or (3) at the end.
8287 # Note that $ac_compile itself does not contain backslashes and begins
8288 # with a dollar sign (not a hyphen), so the echo should work correctly.
8289 lt_compile=`echo "$ac_compile" | $SED \
8290 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8291 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8292 -e 's:$: $lt_compiler_flag:'`
8293 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8294 (eval "$lt_compile" 2>out/conftest.err)
8295 ac_status=$?
8296 cat out/conftest.err >&5
8297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8298 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8299 then
8300 # The compiler can only warn and ignore the option if not recognized
8301 # So say no if there are warnings
8302 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8303 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8304 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8305 lt_cv_prog_compiler_c_o=yes
8308 chmod u+w . 2>&5
8309 $RM conftest*
8310 # SGI C++ compiler will create directory out/ii_files/ for
8311 # template instantiation
8312 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8313 $RM out/* && rmdir out
8314 cd ..
8315 $RM -r conftest
8316 $RM conftest*
8319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8320 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8325 hard_links="nottested"
8326 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8327 # do not overwrite the value of need_locks provided by the user
8328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8329 $as_echo_n "checking if we can lock with hard links... " >&6; }
8330 hard_links=yes
8331 $RM conftest*
8332 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8333 touch conftest.a
8334 ln conftest.a conftest.b 2>&5 || hard_links=no
8335 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8337 $as_echo "$hard_links" >&6; }
8338 if test "$hard_links" = no; then
8339 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8340 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8341 need_locks=warn
8343 else
8344 need_locks=no
8352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8353 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8355 runpath_var=
8356 allow_undefined_flag=
8357 always_export_symbols=no
8358 archive_cmds=
8359 archive_expsym_cmds=
8360 compiler_needs_object=no
8361 enable_shared_with_static_runtimes=no
8362 export_dynamic_flag_spec=
8363 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8364 hardcode_automatic=no
8365 hardcode_direct=no
8366 hardcode_direct_absolute=no
8367 hardcode_libdir_flag_spec=
8368 hardcode_libdir_flag_spec_ld=
8369 hardcode_libdir_separator=
8370 hardcode_minus_L=no
8371 hardcode_shlibpath_var=unsupported
8372 inherit_rpath=no
8373 link_all_deplibs=unknown
8374 module_cmds=
8375 module_expsym_cmds=
8376 old_archive_from_new_cmds=
8377 old_archive_from_expsyms_cmds=
8378 thread_safe_flag_spec=
8379 whole_archive_flag_spec=
8380 # include_expsyms should be a list of space-separated symbols to be *always*
8381 # included in the symbol list
8382 include_expsyms=
8383 # exclude_expsyms can be an extended regexp of symbols to exclude
8384 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8385 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8386 # as well as any symbol that contains `d'.
8387 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8388 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8389 # platforms (ab)use it in PIC code, but their linkers get confused if
8390 # the symbol is explicitly referenced. Since portable code cannot
8391 # rely on this symbol name, it's probably fine to never include it in
8392 # preloaded symbol tables.
8393 # Exclude shared library initialization/finalization symbols.
8394 extract_expsyms_cmds=
8396 case $host_os in
8397 cygwin* | mingw* | pw32* | cegcc*)
8398 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8399 # When not using gcc, we currently assume that we are using
8400 # Microsoft Visual C++.
8401 if test "$GCC" != yes; then
8402 with_gnu_ld=no
8405 interix*)
8406 # we just hope/assume this is gcc and not c89 (= MSVC++)
8407 with_gnu_ld=yes
8409 openbsd*)
8410 with_gnu_ld=no
8412 esac
8414 ld_shlibs=yes
8416 # On some targets, GNU ld is compatible enough with the native linker
8417 # that we're better off using the native interface for both.
8418 lt_use_gnu_ld_interface=no
8419 if test "$with_gnu_ld" = yes; then
8420 case $host_os in
8421 aix*)
8422 # The AIX port of GNU ld has always aspired to compatibility
8423 # with the native linker. However, as the warning in the GNU ld
8424 # block says, versions before 2.19.5* couldn't really create working
8425 # shared libraries, regardless of the interface used.
8426 case `$LD -v 2>&1` in
8427 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8428 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8429 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8431 lt_use_gnu_ld_interface=yes
8433 esac
8436 lt_use_gnu_ld_interface=yes
8438 esac
8441 if test "$lt_use_gnu_ld_interface" = yes; then
8442 # If archive_cmds runs LD, not CC, wlarc should be empty
8443 wlarc='${wl}'
8445 # Set some defaults for GNU ld with shared library support. These
8446 # are reset later if shared libraries are not supported. Putting them
8447 # here allows them to be overridden if necessary.
8448 runpath_var=LD_RUN_PATH
8449 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8450 export_dynamic_flag_spec='${wl}--export-dynamic'
8451 # ancient GNU ld didn't support --whole-archive et. al.
8452 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8453 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8454 else
8455 whole_archive_flag_spec=
8457 supports_anon_versioning=no
8458 case `$LD -v 2>&1` in
8459 *GNU\ gold*) supports_anon_versioning=yes ;;
8460 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8461 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8462 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8463 *\ 2.11.*) ;; # other 2.11 versions
8464 *) supports_anon_versioning=yes ;;
8465 esac
8467 # See if GNU ld supports shared libraries.
8468 case $host_os in
8469 aix[3-9]*)
8470 # On AIX/PPC, the GNU linker is very broken
8471 if test "$host_cpu" != ia64; then
8472 ld_shlibs=no
8473 cat <<_LT_EOF 1>&2
8475 *** Warning: the GNU linker, at least up to release 2.19, is reported
8476 *** to be unable to reliably create shared libraries on AIX.
8477 *** Therefore, libtool is disabling shared libraries support. If you
8478 *** really care for shared libraries, you may want to install binutils
8479 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8480 *** You will then need to restart the configuration process.
8482 _LT_EOF
8486 amigaos*)
8487 case $host_cpu in
8488 powerpc)
8489 # see comment about AmigaOS4 .so support
8490 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8491 archive_expsym_cmds=''
8493 m68k)
8494 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)'
8495 hardcode_libdir_flag_spec='-L$libdir'
8496 hardcode_minus_L=yes
8498 esac
8501 beos*)
8502 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8503 allow_undefined_flag=unsupported
8504 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8505 # support --undefined. This deserves some investigation. FIXME
8506 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8507 else
8508 ld_shlibs=no
8512 cygwin* | mingw* | pw32* | cegcc*)
8513 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8514 # as there is no search path for DLLs.
8515 hardcode_libdir_flag_spec='-L$libdir'
8516 export_dynamic_flag_spec='${wl}--export-all-symbols'
8517 allow_undefined_flag=unsupported
8518 always_export_symbols=no
8519 enable_shared_with_static_runtimes=yes
8520 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8522 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8523 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8524 # If the export-symbols file already is a .def file (1st line
8525 # is EXPORTS), use it as is; otherwise, prepend...
8526 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8527 cp $export_symbols $output_objdir/$soname.def;
8528 else
8529 echo EXPORTS > $output_objdir/$soname.def;
8530 cat $export_symbols >> $output_objdir/$soname.def;
8532 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8533 else
8534 ld_shlibs=no
8538 haiku*)
8539 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8540 link_all_deplibs=yes
8543 interix[3-9]*)
8544 hardcode_direct=no
8545 hardcode_shlibpath_var=no
8546 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8547 export_dynamic_flag_spec='${wl}-E'
8548 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8549 # Instead, shared libraries are loaded at an image base (0x10000000 by
8550 # default) and relocated if they conflict, which is a slow very memory
8551 # consuming and fragmenting process. To avoid this, we pick a random,
8552 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8553 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8554 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8555 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'
8558 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
8559 tmp_diet=no
8560 if test "$host_os" = linux-dietlibc; then
8561 case $cc_basename in
8562 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8563 esac
8565 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8566 && test "$tmp_diet" = no
8567 then
8568 tmp_addflag=' $pic_flag'
8569 tmp_sharedflag='-shared'
8570 case $cc_basename,$host_cpu in
8571 pgcc*) # Portland Group C compiler
8572 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'
8573 tmp_addflag=' $pic_flag'
8575 pgf77* | pgf90* | pgf95* | pgfortran*)
8576 # Portland Group f77 and f90 compilers
8577 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'
8578 tmp_addflag=' $pic_flag -Mnomain' ;;
8579 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8580 tmp_addflag=' -i_dynamic' ;;
8581 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8582 tmp_addflag=' -i_dynamic -nofor_main' ;;
8583 ifc* | ifort*) # Intel Fortran compiler
8584 tmp_addflag=' -nofor_main' ;;
8585 lf95*) # Lahey Fortran 8.1
8586 whole_archive_flag_spec=
8587 tmp_sharedflag='--shared' ;;
8588 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8589 tmp_sharedflag='-qmkshrobj'
8590 tmp_addflag= ;;
8591 nvcc*) # Cuda Compiler Driver 2.2
8592 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'
8593 compiler_needs_object=yes
8595 esac
8596 case `$CC -V 2>&1 | sed 5q` in
8597 *Sun\ C*) # Sun C 5.9
8598 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'
8599 compiler_needs_object=yes
8600 tmp_sharedflag='-G' ;;
8601 *Sun\ F*) # Sun Fortran 8.3
8602 tmp_sharedflag='-G' ;;
8603 esac
8604 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8606 if test "x$supports_anon_versioning" = xyes; then
8607 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8608 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8609 echo "local: *; };" >> $output_objdir/$libname.ver~
8610 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8613 case $cc_basename in
8614 xlf* | bgf* | bgxlf* | mpixlf*)
8615 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8616 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8617 hardcode_libdir_flag_spec=
8618 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8619 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8620 if test "x$supports_anon_versioning" = xyes; then
8621 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8622 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8623 echo "local: *; };" >> $output_objdir/$libname.ver~
8624 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8627 esac
8628 else
8629 ld_shlibs=no
8633 netbsd*)
8634 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8635 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8636 wlarc=
8637 else
8638 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8639 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8643 solaris*)
8644 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8645 ld_shlibs=no
8646 cat <<_LT_EOF 1>&2
8648 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8649 *** create shared libraries on Solaris systems. Therefore, libtool
8650 *** is disabling shared libraries support. We urge you to upgrade GNU
8651 *** binutils to release 2.9.1 or newer. Another option is to modify
8652 *** your PATH or compiler configuration so that the native linker is
8653 *** used, and then restart.
8655 _LT_EOF
8656 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8657 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8658 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8659 else
8660 ld_shlibs=no
8664 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8665 case `$LD -v 2>&1` in
8666 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8667 ld_shlibs=no
8668 cat <<_LT_EOF 1>&2
8670 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8671 *** reliably create shared libraries on SCO systems. Therefore, libtool
8672 *** is disabling shared libraries support. We urge you to upgrade GNU
8673 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8674 *** your PATH or compiler configuration so that the native linker is
8675 *** used, and then restart.
8677 _LT_EOF
8680 # For security reasons, it is highly recommended that you always
8681 # use absolute paths for naming shared libraries, and exclude the
8682 # DT_RUNPATH tag from executables and libraries. But doing so
8683 # requires that you compile everything twice, which is a pain.
8684 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8685 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8686 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8687 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8688 else
8689 ld_shlibs=no
8692 esac
8695 sunos4*)
8696 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8697 wlarc=
8698 hardcode_direct=yes
8699 hardcode_shlibpath_var=no
8703 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8704 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8705 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8706 else
8707 ld_shlibs=no
8710 esac
8712 if test "$ld_shlibs" = no; then
8713 runpath_var=
8714 hardcode_libdir_flag_spec=
8715 export_dynamic_flag_spec=
8716 whole_archive_flag_spec=
8718 else
8719 # PORTME fill in a description of your system's linker (not GNU ld)
8720 case $host_os in
8721 aix3*)
8722 allow_undefined_flag=unsupported
8723 always_export_symbols=yes
8724 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'
8725 # Note: this linker hardcodes the directories in LIBPATH if there
8726 # are no directories specified by -L.
8727 hardcode_minus_L=yes
8728 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8729 # Neither direct hardcoding nor static linking is supported with a
8730 # broken collect2.
8731 hardcode_direct=unsupported
8735 aix[4-9]*)
8736 if test "$host_cpu" = ia64; then
8737 # On IA64, the linker does run time linking by default, so we don't
8738 # have to do anything special.
8739 aix_use_runtimelinking=no
8740 exp_sym_flag='-Bexport'
8741 no_entry_flag=""
8742 else
8743 # If we're using GNU nm, then we don't want the "-C" option.
8744 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8745 # Also, AIX nm treats weak defined symbols like other global
8746 # defined symbols, whereas GNU nm marks them as "W".
8747 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8748 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'
8749 else
8750 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'
8752 aix_use_runtimelinking=no
8754 # Test if we are trying to use run time linking or normal
8755 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8756 # need to do runtime linking.
8757 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8758 for ld_flag in $LDFLAGS; do
8759 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8760 aix_use_runtimelinking=yes
8761 break
8763 done
8765 esac
8767 exp_sym_flag='-bexport'
8768 no_entry_flag='-bnoentry'
8771 # When large executables or shared objects are built, AIX ld can
8772 # have problems creating the table of contents. If linking a library
8773 # or program results in "error TOC overflow" add -mminimal-toc to
8774 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8775 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8777 archive_cmds=''
8778 hardcode_direct=yes
8779 hardcode_direct_absolute=yes
8780 hardcode_libdir_separator=':'
8781 link_all_deplibs=yes
8782 file_list_spec='${wl}-f,'
8784 if test "$GCC" = yes; then
8785 case $host_os in aix4.[012]|aix4.[012].*)
8786 # We only want to do this on AIX 4.2 and lower, the check
8787 # below for broken collect2 doesn't work under 4.3+
8788 collect2name=`${CC} -print-prog-name=collect2`
8789 if test -f "$collect2name" &&
8790 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8791 then
8792 # We have reworked collect2
8794 else
8795 # We have old collect2
8796 hardcode_direct=unsupported
8797 # It fails to find uninstalled libraries when the uninstalled
8798 # path is not listed in the libpath. Setting hardcode_minus_L
8799 # to unsupported forces relinking
8800 hardcode_minus_L=yes
8801 hardcode_libdir_flag_spec='-L$libdir'
8802 hardcode_libdir_separator=
8805 esac
8806 shared_flag='-shared'
8807 if test "$aix_use_runtimelinking" = yes; then
8808 shared_flag="$shared_flag "'${wl}-G'
8810 else
8811 # not using gcc
8812 if test "$host_cpu" = ia64; then
8813 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8814 # chokes on -Wl,-G. The following line is correct:
8815 shared_flag='-G'
8816 else
8817 if test "$aix_use_runtimelinking" = yes; then
8818 shared_flag='${wl}-G'
8819 else
8820 shared_flag='${wl}-bM:SRE'
8825 export_dynamic_flag_spec='${wl}-bexpall'
8826 # It seems that -bexpall does not export symbols beginning with
8827 # underscore (_), so it is better to generate a list of symbols to export.
8828 always_export_symbols=yes
8829 if test "$aix_use_runtimelinking" = yes; then
8830 # Warning - without using the other runtime loading flags (-brtl),
8831 # -berok will link without error, but may produce a broken library.
8832 allow_undefined_flag='-berok'
8833 # Determine the default libpath from the value encoded in an
8834 # empty executable.
8835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8836 /* end confdefs.h. */
8839 main ()
8843 return 0;
8845 _ACEOF
8846 if ac_fn_c_try_link "$LINENO"; then :
8848 lt_aix_libpath_sed='
8849 /Import File Strings/,/^$/ {
8850 /^0/ {
8851 s/^0 *\(.*\)$/\1/
8855 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8856 # Check for a 64-bit object if we didn't find anything.
8857 if test -z "$aix_libpath"; then
8858 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8861 rm -f core conftest.err conftest.$ac_objext \
8862 conftest$ac_exeext conftest.$ac_ext
8863 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8865 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8866 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"
8867 else
8868 if test "$host_cpu" = ia64; then
8869 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8870 allow_undefined_flag="-z nodefs"
8871 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"
8872 else
8873 # Determine the default libpath from the value encoded in an
8874 # empty executable.
8875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8876 /* end confdefs.h. */
8879 main ()
8883 return 0;
8885 _ACEOF
8886 if ac_fn_c_try_link "$LINENO"; then :
8888 lt_aix_libpath_sed='
8889 /Import File Strings/,/^$/ {
8890 /^0/ {
8891 s/^0 *\(.*\)$/\1/
8895 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8896 # Check for a 64-bit object if we didn't find anything.
8897 if test -z "$aix_libpath"; then
8898 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8901 rm -f core conftest.err conftest.$ac_objext \
8902 conftest$ac_exeext conftest.$ac_ext
8903 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8905 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8906 # Warning - without using the other run time loading flags,
8907 # -berok will link without error, but may produce a broken library.
8908 no_undefined_flag=' ${wl}-bernotok'
8909 allow_undefined_flag=' ${wl}-berok'
8910 if test "$with_gnu_ld" = yes; then
8911 # We only use this code for GNU lds that support --whole-archive.
8912 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
8913 else
8914 # Exported symbols can be pulled into shared objects from archives
8915 whole_archive_flag_spec='$convenience'
8917 archive_cmds_need_lc=yes
8918 # This is similar to how AIX traditionally builds its shared libraries.
8919 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'
8924 amigaos*)
8925 case $host_cpu in
8926 powerpc)
8927 # see comment about AmigaOS4 .so support
8928 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8929 archive_expsym_cmds=''
8931 m68k)
8932 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)'
8933 hardcode_libdir_flag_spec='-L$libdir'
8934 hardcode_minus_L=yes
8936 esac
8939 bsdi[45]*)
8940 export_dynamic_flag_spec=-rdynamic
8943 cygwin* | mingw* | pw32* | cegcc*)
8944 # When not using gcc, we currently assume that we are using
8945 # Microsoft Visual C++.
8946 # hardcode_libdir_flag_spec is actually meaningless, as there is
8947 # no search path for DLLs.
8948 hardcode_libdir_flag_spec=' '
8949 allow_undefined_flag=unsupported
8950 # Tell ltmain to make .lib files, not .a files.
8951 libext=lib
8952 # Tell ltmain to make .dll files, not .so files.
8953 shrext_cmds=".dll"
8954 # FIXME: Setting linknames here is a bad hack.
8955 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
8956 # The linker will automatically build a .lib file if we build a DLL.
8957 old_archive_from_new_cmds='true'
8958 # FIXME: Should let the user specify the lib program.
8959 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8960 fix_srcfile_path='`cygpath -w "$srcfile"`'
8961 enable_shared_with_static_runtimes=yes
8964 darwin* | rhapsody*)
8967 archive_cmds_need_lc=no
8968 hardcode_direct=no
8969 hardcode_automatic=yes
8970 hardcode_shlibpath_var=unsupported
8971 if test "$lt_cv_ld_force_load" = "yes"; then
8972 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\"`'
8973 else
8974 whole_archive_flag_spec=''
8976 link_all_deplibs=yes
8977 allow_undefined_flag="$_lt_dar_allow_undefined"
8978 case $cc_basename in
8979 ifort*) _lt_dar_can_shared=yes ;;
8980 *) _lt_dar_can_shared=$GCC ;;
8981 esac
8982 if test "$_lt_dar_can_shared" = "yes"; then
8983 output_verbose_link_cmd=func_echo_all
8984 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8985 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8986 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
8987 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}"
8989 else
8990 ld_shlibs=no
8995 dgux*)
8996 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8997 hardcode_libdir_flag_spec='-L$libdir'
8998 hardcode_shlibpath_var=no
9001 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9002 # support. Future versions do this automatically, but an explicit c++rt0.o
9003 # does not break anything, and helps significantly (at the cost of a little
9004 # extra space).
9005 freebsd2.2*)
9006 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9007 hardcode_libdir_flag_spec='-R$libdir'
9008 hardcode_direct=yes
9009 hardcode_shlibpath_var=no
9012 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9013 freebsd2.*)
9014 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9015 hardcode_direct=yes
9016 hardcode_minus_L=yes
9017 hardcode_shlibpath_var=no
9020 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9021 freebsd* | dragonfly*)
9022 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9023 hardcode_libdir_flag_spec='-R$libdir'
9024 hardcode_direct=yes
9025 hardcode_shlibpath_var=no
9028 hpux9*)
9029 if test "$GCC" = yes; then
9030 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'
9031 else
9032 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'
9034 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9035 hardcode_libdir_separator=:
9036 hardcode_direct=yes
9038 # hardcode_minus_L: Not really in the search PATH,
9039 # but as the default location of the library.
9040 hardcode_minus_L=yes
9041 export_dynamic_flag_spec='${wl}-E'
9044 hpux10*)
9045 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9046 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9047 else
9048 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9050 if test "$with_gnu_ld" = no; then
9051 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9052 hardcode_libdir_flag_spec_ld='+b $libdir'
9053 hardcode_libdir_separator=:
9054 hardcode_direct=yes
9055 hardcode_direct_absolute=yes
9056 export_dynamic_flag_spec='${wl}-E'
9057 # hardcode_minus_L: Not really in the search PATH,
9058 # but as the default location of the library.
9059 hardcode_minus_L=yes
9063 hpux11*)
9064 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9065 case $host_cpu in
9066 hppa*64*)
9067 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9069 ia64*)
9070 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9073 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9075 esac
9076 else
9077 case $host_cpu in
9078 hppa*64*)
9079 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9081 ia64*)
9082 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9086 # Older versions of the 11.00 compiler do not understand -b yet
9087 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9089 $as_echo_n "checking if $CC understands -b... " >&6; }
9090 if ${lt_cv_prog_compiler__b+:} false; then :
9091 $as_echo_n "(cached) " >&6
9092 else
9093 lt_cv_prog_compiler__b=no
9094 save_LDFLAGS="$LDFLAGS"
9095 LDFLAGS="$LDFLAGS -b"
9096 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9097 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9098 # The linker can only warn and ignore the option if not recognized
9099 # So say no if there are warnings
9100 if test -s conftest.err; then
9101 # Append any errors to the config.log.
9102 cat conftest.err 1>&5
9103 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9104 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9105 if diff conftest.exp conftest.er2 >/dev/null; then
9106 lt_cv_prog_compiler__b=yes
9108 else
9109 lt_cv_prog_compiler__b=yes
9112 $RM -r conftest*
9113 LDFLAGS="$save_LDFLAGS"
9116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9117 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9119 if test x"$lt_cv_prog_compiler__b" = xyes; then
9120 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9121 else
9122 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9126 esac
9128 if test "$with_gnu_ld" = no; then
9129 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9130 hardcode_libdir_separator=:
9132 case $host_cpu in
9133 hppa*64*|ia64*)
9134 hardcode_direct=no
9135 hardcode_shlibpath_var=no
9138 hardcode_direct=yes
9139 hardcode_direct_absolute=yes
9140 export_dynamic_flag_spec='${wl}-E'
9142 # hardcode_minus_L: Not really in the search PATH,
9143 # but as the default location of the library.
9144 hardcode_minus_L=yes
9146 esac
9150 irix5* | irix6* | nonstopux*)
9151 if test "$GCC" = yes; then
9152 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'
9153 # Try to use the -exported_symbol ld option, if it does not
9154 # work, assume that -exports_file does not work either and
9155 # implicitly export all symbols.
9156 save_LDFLAGS="$LDFLAGS"
9157 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9159 /* end confdefs.h. */
9160 int foo(void) {}
9161 _ACEOF
9162 if ac_fn_c_try_link "$LINENO"; then :
9163 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'
9166 rm -f core conftest.err conftest.$ac_objext \
9167 conftest$ac_exeext conftest.$ac_ext
9168 LDFLAGS="$save_LDFLAGS"
9169 else
9170 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'
9171 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'
9173 archive_cmds_need_lc='no'
9174 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9175 hardcode_libdir_separator=:
9176 inherit_rpath=yes
9177 link_all_deplibs=yes
9180 netbsd*)
9181 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9182 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9183 else
9184 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9186 hardcode_libdir_flag_spec='-R$libdir'
9187 hardcode_direct=yes
9188 hardcode_shlibpath_var=no
9191 newsos6)
9192 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9193 hardcode_direct=yes
9194 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9195 hardcode_libdir_separator=:
9196 hardcode_shlibpath_var=no
9199 *nto* | *qnx*)
9202 openbsd*)
9203 if test -f /usr/libexec/ld.so; then
9204 hardcode_direct=yes
9205 hardcode_shlibpath_var=no
9206 hardcode_direct_absolute=yes
9207 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9208 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9209 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9210 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9211 export_dynamic_flag_spec='${wl}-E'
9212 else
9213 case $host_os in
9214 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9215 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9216 hardcode_libdir_flag_spec='-R$libdir'
9219 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9220 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9222 esac
9224 else
9225 ld_shlibs=no
9229 os2*)
9230 hardcode_libdir_flag_spec='-L$libdir'
9231 hardcode_minus_L=yes
9232 allow_undefined_flag=unsupported
9233 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'
9234 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9237 osf3*)
9238 if test "$GCC" = yes; then
9239 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9240 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'
9241 else
9242 allow_undefined_flag=' -expect_unresolved \*'
9243 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'
9245 archive_cmds_need_lc='no'
9246 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9247 hardcode_libdir_separator=:
9250 osf4* | osf5*) # as osf3* with the addition of -msym flag
9251 if test "$GCC" = yes; then
9252 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9253 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'
9254 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9255 else
9256 allow_undefined_flag=' -expect_unresolved \*'
9257 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'
9258 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~
9259 $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'
9261 # Both c and cxx compiler support -rpath directly
9262 hardcode_libdir_flag_spec='-rpath $libdir'
9264 archive_cmds_need_lc='no'
9265 hardcode_libdir_separator=:
9268 solaris*)
9269 no_undefined_flag=' -z defs'
9270 if test "$GCC" = yes; then
9271 wlarc='${wl}'
9272 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9273 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9274 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9275 else
9276 case `$CC -V 2>&1` in
9277 *"Compilers 5.0"*)
9278 wlarc=''
9279 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9280 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9281 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9284 wlarc='${wl}'
9285 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9286 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9287 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9289 esac
9291 hardcode_libdir_flag_spec='-R$libdir'
9292 hardcode_shlibpath_var=no
9293 case $host_os in
9294 solaris2.[0-5] | solaris2.[0-5].*) ;;
9296 # The compiler driver will combine and reorder linker options,
9297 # but understands `-z linker_flag'. GCC discards it without `$wl',
9298 # but is careful enough not to reorder.
9299 # Supported since Solaris 2.6 (maybe 2.5.1?)
9300 if test "$GCC" = yes; then
9301 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9302 else
9303 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9306 esac
9307 link_all_deplibs=yes
9310 sunos4*)
9311 if test "x$host_vendor" = xsequent; then
9312 # Use $CC to link under sequent, because it throws in some extra .o
9313 # files that make .init and .fini sections work.
9314 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9315 else
9316 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9318 hardcode_libdir_flag_spec='-L$libdir'
9319 hardcode_direct=yes
9320 hardcode_minus_L=yes
9321 hardcode_shlibpath_var=no
9324 sysv4)
9325 case $host_vendor in
9326 sni)
9327 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9328 hardcode_direct=yes # is this really true???
9330 siemens)
9331 ## LD is ld it makes a PLAMLIB
9332 ## CC just makes a GrossModule.
9333 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9334 reload_cmds='$CC -r -o $output$reload_objs'
9335 hardcode_direct=no
9337 motorola)
9338 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9339 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9341 esac
9342 runpath_var='LD_RUN_PATH'
9343 hardcode_shlibpath_var=no
9346 sysv4.3*)
9347 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9348 hardcode_shlibpath_var=no
9349 export_dynamic_flag_spec='-Bexport'
9352 sysv4*MP*)
9353 if test -d /usr/nec; then
9354 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9355 hardcode_shlibpath_var=no
9356 runpath_var=LD_RUN_PATH
9357 hardcode_runpath_var=yes
9358 ld_shlibs=yes
9362 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9363 no_undefined_flag='${wl}-z,text'
9364 archive_cmds_need_lc=no
9365 hardcode_shlibpath_var=no
9366 runpath_var='LD_RUN_PATH'
9368 if test "$GCC" = yes; then
9369 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9370 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9371 else
9372 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9373 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9377 sysv5* | sco3.2v5* | sco5v6*)
9378 # Note: We can NOT use -z defs as we might desire, because we do not
9379 # link with -lc, and that would cause any symbols used from libc to
9380 # always be unresolved, which means just about no library would
9381 # ever link correctly. If we're not using GNU ld we use -z text
9382 # though, which does catch some bad symbols but isn't as heavy-handed
9383 # as -z defs.
9384 no_undefined_flag='${wl}-z,text'
9385 allow_undefined_flag='${wl}-z,nodefs'
9386 archive_cmds_need_lc=no
9387 hardcode_shlibpath_var=no
9388 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9389 hardcode_libdir_separator=':'
9390 link_all_deplibs=yes
9391 export_dynamic_flag_spec='${wl}-Bexport'
9392 runpath_var='LD_RUN_PATH'
9394 if test "$GCC" = yes; then
9395 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9396 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9397 else
9398 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9399 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9403 uts4*)
9404 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9405 hardcode_libdir_flag_spec='-L$libdir'
9406 hardcode_shlibpath_var=no
9410 ld_shlibs=no
9412 esac
9414 if test x$host_vendor = xsni; then
9415 case $host in
9416 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9417 export_dynamic_flag_spec='${wl}-Blargedynsym'
9419 esac
9423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9424 $as_echo "$ld_shlibs" >&6; }
9425 test "$ld_shlibs" = no && can_build_shared=no
9427 with_gnu_ld=$with_gnu_ld
9444 # Do we need to explicitly link libc?
9446 case "x$archive_cmds_need_lc" in
9447 x|xyes)
9448 # Assume -lc should be added
9449 archive_cmds_need_lc=yes
9451 if test "$enable_shared" = yes && test "$GCC" = yes; then
9452 case $archive_cmds in
9453 *'~'*)
9454 # FIXME: we may have to deal with multi-command sequences.
9456 '$CC '*)
9457 # Test whether the compiler implicitly links with -lc since on some
9458 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9459 # to ld, don't add -lc before -lgcc.
9460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9461 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9462 if ${lt_cv_archive_cmds_need_lc+:} false; then :
9463 $as_echo_n "(cached) " >&6
9464 else
9465 $RM conftest*
9466 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9468 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9469 (eval $ac_compile) 2>&5
9470 ac_status=$?
9471 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9472 test $ac_status = 0; } 2>conftest.err; then
9473 soname=conftest
9474 lib=conftest
9475 libobjs=conftest.$ac_objext
9476 deplibs=
9477 wl=$lt_prog_compiler_wl
9478 pic_flag=$lt_prog_compiler_pic
9479 compiler_flags=-v
9480 linker_flags=-v
9481 verstring=
9482 output_objdir=.
9483 libname=conftest
9484 lt_save_allow_undefined_flag=$allow_undefined_flag
9485 allow_undefined_flag=
9486 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9487 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9488 ac_status=$?
9489 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9490 test $ac_status = 0; }
9491 then
9492 lt_cv_archive_cmds_need_lc=no
9493 else
9494 lt_cv_archive_cmds_need_lc=yes
9496 allow_undefined_flag=$lt_save_allow_undefined_flag
9497 else
9498 cat conftest.err 1>&5
9500 $RM conftest*
9503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9504 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9505 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9507 esac
9510 esac
9668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9669 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9671 if test "$GCC" = yes; then
9672 case $host_os in
9673 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9674 *) lt_awk_arg="/^libraries:/" ;;
9675 esac
9676 case $host_os in
9677 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9678 *) lt_sed_strip_eq="s,=/,/,g" ;;
9679 esac
9680 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9681 case $lt_search_path_spec in
9682 *\;*)
9683 # if the path contains ";" then we assume it to be the separator
9684 # otherwise default to the standard path separator (i.e. ":") - it is
9685 # assumed that no part of a normal pathname contains ";" but that should
9686 # okay in the real world where ";" in dirpaths is itself problematic.
9687 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9690 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9692 esac
9693 # Ok, now we have the path, separated by spaces, we can step through it
9694 # and add multilib dir if necessary.
9695 lt_tmp_lt_search_path_spec=
9696 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9697 for lt_sys_path in $lt_search_path_spec; do
9698 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9699 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9700 else
9701 test -d "$lt_sys_path" && \
9702 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9704 done
9705 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9706 BEGIN {RS=" "; FS="/|\n";} {
9707 lt_foo="";
9708 lt_count=0;
9709 for (lt_i = NF; lt_i > 0; lt_i--) {
9710 if ($lt_i != "" && $lt_i != ".") {
9711 if ($lt_i == "..") {
9712 lt_count++;
9713 } else {
9714 if (lt_count == 0) {
9715 lt_foo="/" $lt_i lt_foo;
9716 } else {
9717 lt_count--;
9722 if (lt_foo != "") { lt_freq[lt_foo]++; }
9723 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9725 # AWK program above erroneously prepends '/' to C:/dos/paths
9726 # for these hosts.
9727 case $host_os in
9728 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9729 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9730 esac
9731 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9732 else
9733 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9735 library_names_spec=
9736 libname_spec='lib$name'
9737 soname_spec=
9738 shrext_cmds=".so"
9739 postinstall_cmds=
9740 postuninstall_cmds=
9741 finish_cmds=
9742 finish_eval=
9743 shlibpath_var=
9744 shlibpath_overrides_runpath=unknown
9745 version_type=none
9746 dynamic_linker="$host_os ld.so"
9747 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9748 need_lib_prefix=unknown
9749 hardcode_into_libs=no
9751 # when you set need_version to no, make sure it does not cause -set_version
9752 # flags to be left without arguments
9753 need_version=unknown
9755 case $host_os in
9756 aix3*)
9757 version_type=linux
9758 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9759 shlibpath_var=LIBPATH
9761 # AIX 3 has no versioning support, so we append a major version to the name.
9762 soname_spec='${libname}${release}${shared_ext}$major'
9765 aix[4-9]*)
9766 version_type=linux
9767 need_lib_prefix=no
9768 need_version=no
9769 hardcode_into_libs=yes
9770 if test "$host_cpu" = ia64; then
9771 # AIX 5 supports IA64
9772 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9773 shlibpath_var=LD_LIBRARY_PATH
9774 else
9775 # With GCC up to 2.95.x, collect2 would create an import file
9776 # for dependence libraries. The import file would start with
9777 # the line `#! .'. This would cause the generated library to
9778 # depend on `.', always an invalid library. This was fixed in
9779 # development snapshots of GCC prior to 3.0.
9780 case $host_os in
9781 aix4 | aix4.[01] | aix4.[01].*)
9782 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9783 echo ' yes '
9784 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9786 else
9787 can_build_shared=no
9790 esac
9791 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9792 # soname into executable. Probably we can add versioning support to
9793 # collect2, so additional links can be useful in future.
9794 if test "$aix_use_runtimelinking" = yes; then
9795 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9796 # instead of lib<name>.a to let people know that these are not
9797 # typical AIX shared libraries.
9798 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9799 else
9800 # We preserve .a as extension for shared libraries through AIX4.2
9801 # and later when we are not doing run time linking.
9802 library_names_spec='${libname}${release}.a $libname.a'
9803 soname_spec='${libname}${release}${shared_ext}$major'
9805 shlibpath_var=LIBPATH
9809 amigaos*)
9810 case $host_cpu in
9811 powerpc)
9812 # Since July 2007 AmigaOS4 officially supports .so libraries.
9813 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9814 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9816 m68k)
9817 library_names_spec='$libname.ixlibrary $libname.a'
9818 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9819 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'
9821 esac
9824 beos*)
9825 library_names_spec='${libname}${shared_ext}'
9826 dynamic_linker="$host_os ld.so"
9827 shlibpath_var=LIBRARY_PATH
9830 bsdi[45]*)
9831 version_type=linux
9832 need_version=no
9833 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9834 soname_spec='${libname}${release}${shared_ext}$major'
9835 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9836 shlibpath_var=LD_LIBRARY_PATH
9837 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9838 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9839 # the default ld.so.conf also contains /usr/contrib/lib and
9840 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9841 # libtool to hard-code these into programs
9844 cygwin* | mingw* | pw32* | cegcc*)
9845 version_type=windows
9846 shrext_cmds=".dll"
9847 need_version=no
9848 need_lib_prefix=no
9850 case $GCC,$host_os in
9851 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9852 library_names_spec='$libname.dll.a'
9853 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9854 postinstall_cmds='base_file=`basename \${file}`~
9855 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9856 dldir=$destdir/`dirname \$dlpath`~
9857 test -d \$dldir || mkdir -p \$dldir~
9858 $install_prog $dir/$dlname \$dldir/$dlname~
9859 chmod a+x \$dldir/$dlname~
9860 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9861 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9863 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9864 dlpath=$dir/\$dldll~
9865 $RM \$dlpath'
9866 shlibpath_overrides_runpath=yes
9868 case $host_os in
9869 cygwin*)
9870 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9871 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9873 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
9875 mingw* | cegcc*)
9876 # MinGW DLLs use traditional 'lib' prefix
9877 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9879 pw32*)
9880 # pw32 DLLs use 'pw' prefix rather than 'lib'
9881 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9883 esac
9887 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9889 esac
9890 dynamic_linker='Win32 ld.exe'
9891 # FIXME: first we should search . and the directory the executable is in
9892 shlibpath_var=PATH
9895 darwin* | rhapsody*)
9896 dynamic_linker="$host_os dyld"
9897 version_type=darwin
9898 need_lib_prefix=no
9899 need_version=no
9900 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9901 soname_spec='${libname}${release}${major}$shared_ext'
9902 shlibpath_overrides_runpath=yes
9903 shlibpath_var=DYLD_LIBRARY_PATH
9904 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9906 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9907 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9910 dgux*)
9911 version_type=linux
9912 need_lib_prefix=no
9913 need_version=no
9914 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9915 soname_spec='${libname}${release}${shared_ext}$major'
9916 shlibpath_var=LD_LIBRARY_PATH
9919 freebsd* | dragonfly*)
9920 # DragonFly does not have aout. When/if they implement a new
9921 # versioning mechanism, adjust this.
9922 if test -x /usr/bin/objformat; then
9923 objformat=`/usr/bin/objformat`
9924 else
9925 case $host_os in
9926 freebsd[23].*) objformat=aout ;;
9927 *) objformat=elf ;;
9928 esac
9930 version_type=freebsd-$objformat
9931 case $version_type in
9932 freebsd-elf*)
9933 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9934 need_version=no
9935 need_lib_prefix=no
9937 freebsd-*)
9938 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9939 need_version=yes
9941 esac
9942 shlibpath_var=LD_LIBRARY_PATH
9943 case $host_os in
9944 freebsd2.*)
9945 shlibpath_overrides_runpath=yes
9947 freebsd3.[01]* | freebsdelf3.[01]*)
9948 shlibpath_overrides_runpath=yes
9949 hardcode_into_libs=yes
9951 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9952 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9953 shlibpath_overrides_runpath=no
9954 hardcode_into_libs=yes
9956 *) # from 4.6 on, and DragonFly
9957 shlibpath_overrides_runpath=yes
9958 hardcode_into_libs=yes
9960 esac
9963 gnu*)
9964 version_type=linux
9965 need_lib_prefix=no
9966 need_version=no
9967 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9968 soname_spec='${libname}${release}${shared_ext}$major'
9969 shlibpath_var=LD_LIBRARY_PATH
9970 hardcode_into_libs=yes
9973 haiku*)
9974 version_type=linux
9975 need_lib_prefix=no
9976 need_version=no
9977 dynamic_linker="$host_os runtime_loader"
9978 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9979 soname_spec='${libname}${release}${shared_ext}$major'
9980 shlibpath_var=LIBRARY_PATH
9981 shlibpath_overrides_runpath=yes
9982 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
9983 hardcode_into_libs=yes
9986 hpux9* | hpux10* | hpux11*)
9987 # Give a soname corresponding to the major version so that dld.sl refuses to
9988 # link against other versions.
9989 version_type=sunos
9990 need_lib_prefix=no
9991 need_version=no
9992 case $host_cpu in
9993 ia64*)
9994 shrext_cmds='.so'
9995 hardcode_into_libs=yes
9996 dynamic_linker="$host_os dld.so"
9997 shlibpath_var=LD_LIBRARY_PATH
9998 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9999 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10000 soname_spec='${libname}${release}${shared_ext}$major'
10001 if test "X$HPUX_IA64_MODE" = X32; then
10002 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10003 else
10004 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10006 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10008 hppa*64*)
10009 shrext_cmds='.sl'
10010 hardcode_into_libs=yes
10011 dynamic_linker="$host_os dld.sl"
10012 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10013 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10014 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10015 soname_spec='${libname}${release}${shared_ext}$major'
10016 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10017 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10020 shrext_cmds='.sl'
10021 dynamic_linker="$host_os dld.sl"
10022 shlibpath_var=SHLIB_PATH
10023 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10024 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10025 soname_spec='${libname}${release}${shared_ext}$major'
10027 esac
10028 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10029 postinstall_cmds='chmod 555 $lib'
10030 # or fails outright, so override atomically:
10031 install_override_mode=555
10034 interix[3-9]*)
10035 version_type=linux
10036 need_lib_prefix=no
10037 need_version=no
10038 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10039 soname_spec='${libname}${release}${shared_ext}$major'
10040 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10041 shlibpath_var=LD_LIBRARY_PATH
10042 shlibpath_overrides_runpath=no
10043 hardcode_into_libs=yes
10046 irix5* | irix6* | nonstopux*)
10047 case $host_os in
10048 nonstopux*) version_type=nonstopux ;;
10050 if test "$lt_cv_prog_gnu_ld" = yes; then
10051 version_type=linux
10052 else
10053 version_type=irix
10054 fi ;;
10055 esac
10056 need_lib_prefix=no
10057 need_version=no
10058 soname_spec='${libname}${release}${shared_ext}$major'
10059 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10060 case $host_os in
10061 irix5* | nonstopux*)
10062 libsuff= shlibsuff=
10065 case $LD in # libtool.m4 will add one of these switches to LD
10066 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10067 libsuff= shlibsuff= libmagic=32-bit;;
10068 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10069 libsuff=32 shlibsuff=N32 libmagic=N32;;
10070 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10071 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10072 *) libsuff= shlibsuff= libmagic=never-match;;
10073 esac
10075 esac
10076 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10077 shlibpath_overrides_runpath=no
10078 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10079 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10080 hardcode_into_libs=yes
10083 # No shared lib support for Linux oldld, aout, or coff.
10084 linux*oldld* | linux*aout* | linux*coff*)
10085 dynamic_linker=no
10088 # This must be Linux ELF.
10090 # uclinux* changes (here and below) have been submitted to the libtool
10091 # project, but have not yet been accepted: they are GCC-local changes
10092 # for the time being. (See
10093 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
10094 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
10095 version_type=linux
10096 need_lib_prefix=no
10097 need_version=no
10098 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10099 soname_spec='${libname}${release}${shared_ext}$major'
10100 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10101 shlibpath_var=LD_LIBRARY_PATH
10102 shlibpath_overrides_runpath=no
10104 # Some binutils ld are patched to set DT_RUNPATH
10105 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10106 $as_echo_n "(cached) " >&6
10107 else
10108 lt_cv_shlibpath_overrides_runpath=no
10109 save_LDFLAGS=$LDFLAGS
10110 save_libdir=$libdir
10111 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10112 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10114 /* end confdefs.h. */
10117 main ()
10121 return 0;
10123 _ACEOF
10124 if ac_fn_c_try_link "$LINENO"; then :
10125 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10126 lt_cv_shlibpath_overrides_runpath=yes
10129 rm -f core conftest.err conftest.$ac_objext \
10130 conftest$ac_exeext conftest.$ac_ext
10131 LDFLAGS=$save_LDFLAGS
10132 libdir=$save_libdir
10136 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10138 # This implies no fast_install, which is unacceptable.
10139 # Some rework will be needed to allow for fast_install
10140 # before this can be enabled.
10141 hardcode_into_libs=yes
10143 # Append ld.so.conf contents to the search path
10144 if test -f /etc/ld.so.conf; then
10145 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' ' '`
10146 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10149 # We used to test for /lib/ld.so.1 and disable shared libraries on
10150 # powerpc, because MkLinux only supported shared libraries with the
10151 # GNU dynamic linker. Since this was broken with cross compilers,
10152 # most powerpc-linux boxes support dynamic linking these days and
10153 # people can always --disable-shared, the test was removed, and we
10154 # assume the GNU/Linux dynamic linker is in use.
10155 dynamic_linker='GNU/Linux ld.so'
10158 netbsd*)
10159 version_type=sunos
10160 need_lib_prefix=no
10161 need_version=no
10162 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10163 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10164 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10165 dynamic_linker='NetBSD (a.out) ld.so'
10166 else
10167 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10168 soname_spec='${libname}${release}${shared_ext}$major'
10169 dynamic_linker='NetBSD ld.elf_so'
10171 shlibpath_var=LD_LIBRARY_PATH
10172 shlibpath_overrides_runpath=yes
10173 hardcode_into_libs=yes
10176 newsos6)
10177 version_type=linux
10178 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10179 shlibpath_var=LD_LIBRARY_PATH
10180 shlibpath_overrides_runpath=yes
10183 *nto* | *qnx*)
10184 version_type=qnx
10185 need_lib_prefix=no
10186 need_version=no
10187 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10188 soname_spec='${libname}${release}${shared_ext}$major'
10189 shlibpath_var=LD_LIBRARY_PATH
10190 shlibpath_overrides_runpath=no
10191 hardcode_into_libs=yes
10192 dynamic_linker='ldqnx.so'
10195 openbsd*)
10196 version_type=sunos
10197 sys_lib_dlsearch_path_spec="/usr/lib"
10198 need_lib_prefix=no
10199 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10200 case $host_os in
10201 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10202 *) need_version=no ;;
10203 esac
10204 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10205 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10206 shlibpath_var=LD_LIBRARY_PATH
10207 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10208 case $host_os in
10209 openbsd2.[89] | openbsd2.[89].*)
10210 shlibpath_overrides_runpath=no
10213 shlibpath_overrides_runpath=yes
10215 esac
10216 else
10217 shlibpath_overrides_runpath=yes
10221 os2*)
10222 libname_spec='$name'
10223 shrext_cmds=".dll"
10224 need_lib_prefix=no
10225 library_names_spec='$libname${shared_ext} $libname.a'
10226 dynamic_linker='OS/2 ld.exe'
10227 shlibpath_var=LIBPATH
10230 osf3* | osf4* | osf5*)
10231 version_type=osf
10232 need_lib_prefix=no
10233 need_version=no
10234 soname_spec='${libname}${release}${shared_ext}$major'
10235 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10236 shlibpath_var=LD_LIBRARY_PATH
10237 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10238 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10241 rdos*)
10242 dynamic_linker=no
10245 solaris*)
10246 version_type=linux
10247 need_lib_prefix=no
10248 need_version=no
10249 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10250 soname_spec='${libname}${release}${shared_ext}$major'
10251 shlibpath_var=LD_LIBRARY_PATH
10252 shlibpath_overrides_runpath=yes
10253 hardcode_into_libs=yes
10254 # ldd complains unless libraries are executable
10255 postinstall_cmds='chmod +x $lib'
10258 sunos4*)
10259 version_type=sunos
10260 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10261 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10262 shlibpath_var=LD_LIBRARY_PATH
10263 shlibpath_overrides_runpath=yes
10264 if test "$with_gnu_ld" = yes; then
10265 need_lib_prefix=no
10267 need_version=yes
10270 sysv4 | sysv4.3*)
10271 version_type=linux
10272 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10273 soname_spec='${libname}${release}${shared_ext}$major'
10274 shlibpath_var=LD_LIBRARY_PATH
10275 case $host_vendor in
10276 sni)
10277 shlibpath_overrides_runpath=no
10278 need_lib_prefix=no
10279 runpath_var=LD_RUN_PATH
10281 siemens)
10282 need_lib_prefix=no
10284 motorola)
10285 need_lib_prefix=no
10286 need_version=no
10287 shlibpath_overrides_runpath=no
10288 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10290 esac
10293 sysv4*MP*)
10294 if test -d /usr/nec ;then
10295 version_type=linux
10296 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10297 soname_spec='$libname${shared_ext}.$major'
10298 shlibpath_var=LD_LIBRARY_PATH
10302 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10303 version_type=freebsd-elf
10304 need_lib_prefix=no
10305 need_version=no
10306 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10307 soname_spec='${libname}${release}${shared_ext}$major'
10308 shlibpath_var=LD_LIBRARY_PATH
10309 shlibpath_overrides_runpath=yes
10310 hardcode_into_libs=yes
10311 if test "$with_gnu_ld" = yes; then
10312 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10313 else
10314 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10315 case $host_os in
10316 sco3.2v5*)
10317 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10319 esac
10321 sys_lib_dlsearch_path_spec='/usr/lib'
10324 tpf*)
10325 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10326 version_type=linux
10327 need_lib_prefix=no
10328 need_version=no
10329 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10330 shlibpath_var=LD_LIBRARY_PATH
10331 shlibpath_overrides_runpath=no
10332 hardcode_into_libs=yes
10335 uts4*)
10336 version_type=linux
10337 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10338 soname_spec='${libname}${release}${shared_ext}$major'
10339 shlibpath_var=LD_LIBRARY_PATH
10343 dynamic_linker=no
10345 esac
10346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10347 $as_echo "$dynamic_linker" >&6; }
10348 test "$dynamic_linker" = no && can_build_shared=no
10350 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10351 if test "$GCC" = yes; then
10352 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10355 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10356 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10358 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10359 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10454 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10455 hardcode_action=
10456 if test -n "$hardcode_libdir_flag_spec" ||
10457 test -n "$runpath_var" ||
10458 test "X$hardcode_automatic" = "Xyes" ; then
10460 # We can hardcode non-existent directories.
10461 if test "$hardcode_direct" != no &&
10462 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10463 # have to relink, otherwise we might link with an installed library
10464 # when we should be linking with a yet-to-be-installed one
10465 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10466 test "$hardcode_minus_L" != no; then
10467 # Linking always hardcodes the temporary library directory.
10468 hardcode_action=relink
10469 else
10470 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10471 hardcode_action=immediate
10473 else
10474 # We cannot hardcode anything, or else we can only hardcode existing
10475 # directories.
10476 hardcode_action=unsupported
10478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10479 $as_echo "$hardcode_action" >&6; }
10481 if test "$hardcode_action" = relink ||
10482 test "$inherit_rpath" = yes; then
10483 # Fast installation is not supported
10484 enable_fast_install=no
10485 elif test "$shlibpath_overrides_runpath" = yes ||
10486 test "$enable_shared" = no; then
10487 # Fast installation is not necessary
10488 enable_fast_install=needless
10496 if test "x$enable_dlopen" != xyes; then
10497 enable_dlopen=unknown
10498 enable_dlopen_self=unknown
10499 enable_dlopen_self_static=unknown
10500 else
10501 lt_cv_dlopen=no
10502 lt_cv_dlopen_libs=
10504 case $host_os in
10505 beos*)
10506 lt_cv_dlopen="load_add_on"
10507 lt_cv_dlopen_libs=
10508 lt_cv_dlopen_self=yes
10511 mingw* | pw32* | cegcc*)
10512 lt_cv_dlopen="LoadLibrary"
10513 lt_cv_dlopen_libs=
10516 cygwin*)
10517 lt_cv_dlopen="dlopen"
10518 lt_cv_dlopen_libs=
10521 darwin*)
10522 # if libdl is installed we need to link against it
10523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10524 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10525 if ${ac_cv_lib_dl_dlopen+:} false; then :
10526 $as_echo_n "(cached) " >&6
10527 else
10528 ac_check_lib_save_LIBS=$LIBS
10529 LIBS="-ldl $LIBS"
10530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10531 /* end confdefs.h. */
10533 /* Override any GCC internal prototype to avoid an error.
10534 Use char because int might match the return type of a GCC
10535 builtin and then its argument prototype would still apply. */
10536 #ifdef __cplusplus
10537 extern "C"
10538 #endif
10539 char dlopen ();
10541 main ()
10543 return dlopen ();
10545 return 0;
10547 _ACEOF
10548 if ac_fn_c_try_link "$LINENO"; then :
10549 ac_cv_lib_dl_dlopen=yes
10550 else
10551 ac_cv_lib_dl_dlopen=no
10553 rm -f core conftest.err conftest.$ac_objext \
10554 conftest$ac_exeext conftest.$ac_ext
10555 LIBS=$ac_check_lib_save_LIBS
10557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10558 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10559 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10560 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10561 else
10563 lt_cv_dlopen="dyld"
10564 lt_cv_dlopen_libs=
10565 lt_cv_dlopen_self=yes
10572 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10573 if test "x$ac_cv_func_shl_load" = xyes; then :
10574 lt_cv_dlopen="shl_load"
10575 else
10576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10577 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10578 if ${ac_cv_lib_dld_shl_load+:} false; then :
10579 $as_echo_n "(cached) " >&6
10580 else
10581 ac_check_lib_save_LIBS=$LIBS
10582 LIBS="-ldld $LIBS"
10583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10584 /* end confdefs.h. */
10586 /* Override any GCC internal prototype to avoid an error.
10587 Use char because int might match the return type of a GCC
10588 builtin and then its argument prototype would still apply. */
10589 #ifdef __cplusplus
10590 extern "C"
10591 #endif
10592 char shl_load ();
10594 main ()
10596 return shl_load ();
10598 return 0;
10600 _ACEOF
10601 if ac_fn_c_try_link "$LINENO"; then :
10602 ac_cv_lib_dld_shl_load=yes
10603 else
10604 ac_cv_lib_dld_shl_load=no
10606 rm -f core conftest.err conftest.$ac_objext \
10607 conftest$ac_exeext conftest.$ac_ext
10608 LIBS=$ac_check_lib_save_LIBS
10610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10611 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10612 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
10613 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10614 else
10615 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10616 if test "x$ac_cv_func_dlopen" = xyes; then :
10617 lt_cv_dlopen="dlopen"
10618 else
10619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10620 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10621 if ${ac_cv_lib_dl_dlopen+:} false; then :
10622 $as_echo_n "(cached) " >&6
10623 else
10624 ac_check_lib_save_LIBS=$LIBS
10625 LIBS="-ldl $LIBS"
10626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10627 /* end confdefs.h. */
10629 /* Override any GCC internal prototype to avoid an error.
10630 Use char because int might match the return type of a GCC
10631 builtin and then its argument prototype would still apply. */
10632 #ifdef __cplusplus
10633 extern "C"
10634 #endif
10635 char dlopen ();
10637 main ()
10639 return dlopen ();
10641 return 0;
10643 _ACEOF
10644 if ac_fn_c_try_link "$LINENO"; then :
10645 ac_cv_lib_dl_dlopen=yes
10646 else
10647 ac_cv_lib_dl_dlopen=no
10649 rm -f core conftest.err conftest.$ac_objext \
10650 conftest$ac_exeext conftest.$ac_ext
10651 LIBS=$ac_check_lib_save_LIBS
10653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10654 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10655 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10656 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10657 else
10658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10659 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10660 if ${ac_cv_lib_svld_dlopen+:} false; then :
10661 $as_echo_n "(cached) " >&6
10662 else
10663 ac_check_lib_save_LIBS=$LIBS
10664 LIBS="-lsvld $LIBS"
10665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10666 /* end confdefs.h. */
10668 /* Override any GCC internal prototype to avoid an error.
10669 Use char because int might match the return type of a GCC
10670 builtin and then its argument prototype would still apply. */
10671 #ifdef __cplusplus
10672 extern "C"
10673 #endif
10674 char dlopen ();
10676 main ()
10678 return dlopen ();
10680 return 0;
10682 _ACEOF
10683 if ac_fn_c_try_link "$LINENO"; then :
10684 ac_cv_lib_svld_dlopen=yes
10685 else
10686 ac_cv_lib_svld_dlopen=no
10688 rm -f core conftest.err conftest.$ac_objext \
10689 conftest$ac_exeext conftest.$ac_ext
10690 LIBS=$ac_check_lib_save_LIBS
10692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10693 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10694 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
10695 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10696 else
10697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10698 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10699 if ${ac_cv_lib_dld_dld_link+:} false; then :
10700 $as_echo_n "(cached) " >&6
10701 else
10702 ac_check_lib_save_LIBS=$LIBS
10703 LIBS="-ldld $LIBS"
10704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10705 /* end confdefs.h. */
10707 /* Override any GCC internal prototype to avoid an error.
10708 Use char because int might match the return type of a GCC
10709 builtin and then its argument prototype would still apply. */
10710 #ifdef __cplusplus
10711 extern "C"
10712 #endif
10713 char dld_link ();
10715 main ()
10717 return dld_link ();
10719 return 0;
10721 _ACEOF
10722 if ac_fn_c_try_link "$LINENO"; then :
10723 ac_cv_lib_dld_dld_link=yes
10724 else
10725 ac_cv_lib_dld_dld_link=no
10727 rm -f core conftest.err conftest.$ac_objext \
10728 conftest$ac_exeext conftest.$ac_ext
10729 LIBS=$ac_check_lib_save_LIBS
10731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10732 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10733 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
10734 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10753 esac
10755 if test "x$lt_cv_dlopen" != xno; then
10756 enable_dlopen=yes
10757 else
10758 enable_dlopen=no
10761 case $lt_cv_dlopen in
10762 dlopen)
10763 save_CPPFLAGS="$CPPFLAGS"
10764 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10766 save_LDFLAGS="$LDFLAGS"
10767 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10769 save_LIBS="$LIBS"
10770 LIBS="$lt_cv_dlopen_libs $LIBS"
10772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10773 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10774 if ${lt_cv_dlopen_self+:} false; then :
10775 $as_echo_n "(cached) " >&6
10776 else
10777 if test "$cross_compiling" = yes; then :
10778 lt_cv_dlopen_self=cross
10779 else
10780 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10781 lt_status=$lt_dlunknown
10782 cat > conftest.$ac_ext <<_LT_EOF
10783 #line 10783 "configure"
10784 #include "confdefs.h"
10786 #if HAVE_DLFCN_H
10787 #include <dlfcn.h>
10788 #endif
10790 #include <stdio.h>
10792 #ifdef RTLD_GLOBAL
10793 # define LT_DLGLOBAL RTLD_GLOBAL
10794 #else
10795 # ifdef DL_GLOBAL
10796 # define LT_DLGLOBAL DL_GLOBAL
10797 # else
10798 # define LT_DLGLOBAL 0
10799 # endif
10800 #endif
10802 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10803 find out it does not work in some platform. */
10804 #ifndef LT_DLLAZY_OR_NOW
10805 # ifdef RTLD_LAZY
10806 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10807 # else
10808 # ifdef DL_LAZY
10809 # define LT_DLLAZY_OR_NOW DL_LAZY
10810 # else
10811 # ifdef RTLD_NOW
10812 # define LT_DLLAZY_OR_NOW RTLD_NOW
10813 # else
10814 # ifdef DL_NOW
10815 # define LT_DLLAZY_OR_NOW DL_NOW
10816 # else
10817 # define LT_DLLAZY_OR_NOW 0
10818 # endif
10819 # endif
10820 # endif
10821 # endif
10822 #endif
10824 /* When -fvisbility=hidden is used, assume the code has been annotated
10825 correspondingly for the symbols needed. */
10826 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10827 void fnord () __attribute__((visibility("default")));
10828 #endif
10830 void fnord () { int i=42; }
10831 int main ()
10833 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10834 int status = $lt_dlunknown;
10836 if (self)
10838 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10839 else
10841 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10842 else puts (dlerror ());
10844 /* dlclose (self); */
10846 else
10847 puts (dlerror ());
10849 return status;
10851 _LT_EOF
10852 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10853 (eval $ac_link) 2>&5
10854 ac_status=$?
10855 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10856 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10857 (./conftest; exit; ) >&5 2>/dev/null
10858 lt_status=$?
10859 case x$lt_status in
10860 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10861 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10862 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10863 esac
10864 else :
10865 # compilation failed
10866 lt_cv_dlopen_self=no
10869 rm -fr conftest*
10873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10874 $as_echo "$lt_cv_dlopen_self" >&6; }
10876 if test "x$lt_cv_dlopen_self" = xyes; then
10877 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10879 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10880 if ${lt_cv_dlopen_self_static+:} false; then :
10881 $as_echo_n "(cached) " >&6
10882 else
10883 if test "$cross_compiling" = yes; then :
10884 lt_cv_dlopen_self_static=cross
10885 else
10886 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10887 lt_status=$lt_dlunknown
10888 cat > conftest.$ac_ext <<_LT_EOF
10889 #line 10889 "configure"
10890 #include "confdefs.h"
10892 #if HAVE_DLFCN_H
10893 #include <dlfcn.h>
10894 #endif
10896 #include <stdio.h>
10898 #ifdef RTLD_GLOBAL
10899 # define LT_DLGLOBAL RTLD_GLOBAL
10900 #else
10901 # ifdef DL_GLOBAL
10902 # define LT_DLGLOBAL DL_GLOBAL
10903 # else
10904 # define LT_DLGLOBAL 0
10905 # endif
10906 #endif
10908 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10909 find out it does not work in some platform. */
10910 #ifndef LT_DLLAZY_OR_NOW
10911 # ifdef RTLD_LAZY
10912 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10913 # else
10914 # ifdef DL_LAZY
10915 # define LT_DLLAZY_OR_NOW DL_LAZY
10916 # else
10917 # ifdef RTLD_NOW
10918 # define LT_DLLAZY_OR_NOW RTLD_NOW
10919 # else
10920 # ifdef DL_NOW
10921 # define LT_DLLAZY_OR_NOW DL_NOW
10922 # else
10923 # define LT_DLLAZY_OR_NOW 0
10924 # endif
10925 # endif
10926 # endif
10927 # endif
10928 #endif
10930 /* When -fvisbility=hidden is used, assume the code has been annotated
10931 correspondingly for the symbols needed. */
10932 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10933 void fnord () __attribute__((visibility("default")));
10934 #endif
10936 void fnord () { int i=42; }
10937 int main ()
10939 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10940 int status = $lt_dlunknown;
10942 if (self)
10944 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10945 else
10947 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10948 else puts (dlerror ());
10950 /* dlclose (self); */
10952 else
10953 puts (dlerror ());
10955 return status;
10957 _LT_EOF
10958 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10959 (eval $ac_link) 2>&5
10960 ac_status=$?
10961 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10962 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10963 (./conftest; exit; ) >&5 2>/dev/null
10964 lt_status=$?
10965 case x$lt_status in
10966 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10967 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10968 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10969 esac
10970 else :
10971 # compilation failed
10972 lt_cv_dlopen_self_static=no
10975 rm -fr conftest*
10979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10980 $as_echo "$lt_cv_dlopen_self_static" >&6; }
10983 CPPFLAGS="$save_CPPFLAGS"
10984 LDFLAGS="$save_LDFLAGS"
10985 LIBS="$save_LIBS"
10987 esac
10989 case $lt_cv_dlopen_self in
10990 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10991 *) enable_dlopen_self=unknown ;;
10992 esac
10994 case $lt_cv_dlopen_self_static in
10995 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10996 *) enable_dlopen_self_static=unknown ;;
10997 esac
11016 striplib=
11017 old_striplib=
11018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11019 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11020 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11021 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11022 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11024 $as_echo "yes" >&6; }
11025 else
11026 # FIXME - insert some real tests, host_os isn't really good enough
11027 case $host_os in
11028 darwin*)
11029 if test -n "$STRIP" ; then
11030 striplib="$STRIP -x"
11031 old_striplib="$STRIP -S"
11032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11033 $as_echo "yes" >&6; }
11034 else
11035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11036 $as_echo "no" >&6; }
11040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11041 $as_echo "no" >&6; }
11043 esac
11057 # Report which library types will actually be built
11058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11059 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11061 $as_echo "$can_build_shared" >&6; }
11063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11064 $as_echo_n "checking whether to build shared libraries... " >&6; }
11065 test "$can_build_shared" = "no" && enable_shared=no
11067 # On AIX, shared libraries and static libraries use the same namespace, and
11068 # are all built from PIC.
11069 case $host_os in
11070 aix3*)
11071 test "$enable_shared" = yes && enable_static=no
11072 if test -n "$RANLIB"; then
11073 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11074 postinstall_cmds='$RANLIB $lib'
11078 aix[4-9]*)
11079 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11080 test "$enable_shared" = yes && enable_static=no
11083 esac
11084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11085 $as_echo "$enable_shared" >&6; }
11087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11088 $as_echo_n "checking whether to build static libraries... " >&6; }
11089 # Make sure either enable_shared or enable_static is yes.
11090 test "$enable_shared" = yes || enable_static=yes
11091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11092 $as_echo "$enable_static" >&6; }
11098 ac_ext=c
11099 ac_cpp='$CPP $CPPFLAGS'
11100 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11101 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11102 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11104 CC="$lt_save_CC"
11118 ac_config_commands="$ac_config_commands libtool"
11123 # Only expand once:
11127 ac_ext=cpp
11128 ac_cpp='$CXXCPP $CPPFLAGS'
11129 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11130 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11131 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11132 if test -z "$CXX"; then
11133 if test -n "$CCC"; then
11134 CXX=$CCC
11135 else
11136 if test -n "$ac_tool_prefix"; then
11137 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
11139 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11140 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11142 $as_echo_n "checking for $ac_word... " >&6; }
11143 if ${ac_cv_prog_CXX+:} false; then :
11144 $as_echo_n "(cached) " >&6
11145 else
11146 if test -n "$CXX"; then
11147 ac_cv_prog_CXX="$CXX" # Let the user override the test.
11148 else
11149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11150 for as_dir in $PATH
11152 IFS=$as_save_IFS
11153 test -z "$as_dir" && as_dir=.
11154 for ac_exec_ext in '' $ac_executable_extensions; do
11155 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11156 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
11157 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11158 break 2
11160 done
11161 done
11162 IFS=$as_save_IFS
11166 CXX=$ac_cv_prog_CXX
11167 if test -n "$CXX"; then
11168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
11169 $as_echo "$CXX" >&6; }
11170 else
11171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11172 $as_echo "no" >&6; }
11176 test -n "$CXX" && break
11177 done
11179 if test -z "$CXX"; then
11180 ac_ct_CXX=$CXX
11181 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
11183 # Extract the first word of "$ac_prog", so it can be a program name with args.
11184 set dummy $ac_prog; ac_word=$2
11185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11186 $as_echo_n "checking for $ac_word... " >&6; }
11187 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
11188 $as_echo_n "(cached) " >&6
11189 else
11190 if test -n "$ac_ct_CXX"; then
11191 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
11192 else
11193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11194 for as_dir in $PATH
11196 IFS=$as_save_IFS
11197 test -z "$as_dir" && as_dir=.
11198 for ac_exec_ext in '' $ac_executable_extensions; do
11199 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11200 ac_cv_prog_ac_ct_CXX="$ac_prog"
11201 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11202 break 2
11204 done
11205 done
11206 IFS=$as_save_IFS
11210 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
11211 if test -n "$ac_ct_CXX"; then
11212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
11213 $as_echo "$ac_ct_CXX" >&6; }
11214 else
11215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11216 $as_echo "no" >&6; }
11220 test -n "$ac_ct_CXX" && break
11221 done
11223 if test "x$ac_ct_CXX" = x; then
11224 CXX="g++"
11225 else
11226 case $cross_compiling:$ac_tool_warned in
11227 yes:)
11228 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11229 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11230 ac_tool_warned=yes ;;
11231 esac
11232 CXX=$ac_ct_CXX
11238 # Provide some information about the compiler.
11239 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
11240 set X $ac_compile
11241 ac_compiler=$2
11242 for ac_option in --version -v -V -qversion; do
11243 { { ac_try="$ac_compiler $ac_option >&5"
11244 case "(($ac_try" in
11245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11246 *) ac_try_echo=$ac_try;;
11247 esac
11248 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11249 $as_echo "$ac_try_echo"; } >&5
11250 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11251 ac_status=$?
11252 if test -s conftest.err; then
11253 sed '10a\
11254 ... rest of stderr output deleted ...
11255 10q' conftest.err >conftest.er1
11256 cat conftest.er1 >&5
11258 rm -f conftest.er1 conftest.err
11259 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11260 test $ac_status = 0; }
11261 done
11263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
11264 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
11265 if ${ac_cv_cxx_compiler_gnu+:} false; then :
11266 $as_echo_n "(cached) " >&6
11267 else
11268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11269 /* end confdefs.h. */
11272 main ()
11274 #ifndef __GNUC__
11275 choke me
11276 #endif
11279 return 0;
11281 _ACEOF
11282 if ac_fn_cxx_try_compile "$LINENO"; then :
11283 ac_compiler_gnu=yes
11284 else
11285 ac_compiler_gnu=no
11287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11288 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
11291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
11292 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
11293 if test $ac_compiler_gnu = yes; then
11294 GXX=yes
11295 else
11296 GXX=
11298 ac_test_CXXFLAGS=${CXXFLAGS+set}
11299 ac_save_CXXFLAGS=$CXXFLAGS
11300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
11301 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
11302 if ${ac_cv_prog_cxx_g+:} false; then :
11303 $as_echo_n "(cached) " >&6
11304 else
11305 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
11306 ac_cxx_werror_flag=yes
11307 ac_cv_prog_cxx_g=no
11308 CXXFLAGS="-g"
11309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11310 /* end confdefs.h. */
11313 main ()
11317 return 0;
11319 _ACEOF
11320 if ac_fn_cxx_try_compile "$LINENO"; then :
11321 ac_cv_prog_cxx_g=yes
11322 else
11323 CXXFLAGS=""
11324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11325 /* end confdefs.h. */
11328 main ()
11332 return 0;
11334 _ACEOF
11335 if ac_fn_cxx_try_compile "$LINENO"; then :
11337 else
11338 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
11339 CXXFLAGS="-g"
11340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11341 /* end confdefs.h. */
11344 main ()
11348 return 0;
11350 _ACEOF
11351 if ac_fn_cxx_try_compile "$LINENO"; then :
11352 ac_cv_prog_cxx_g=yes
11354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11359 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
11361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
11362 $as_echo "$ac_cv_prog_cxx_g" >&6; }
11363 if test "$ac_test_CXXFLAGS" = set; then
11364 CXXFLAGS=$ac_save_CXXFLAGS
11365 elif test $ac_cv_prog_cxx_g = yes; then
11366 if test "$GXX" = yes; then
11367 CXXFLAGS="-g -O2"
11368 else
11369 CXXFLAGS="-g"
11371 else
11372 if test "$GXX" = yes; then
11373 CXXFLAGS="-O2"
11374 else
11375 CXXFLAGS=
11378 ac_ext=c
11379 ac_cpp='$CPP $CPPFLAGS'
11380 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11381 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11382 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11384 depcc="$CXX" am_compiler_list=
11386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
11387 $as_echo_n "checking dependency style of $depcc... " >&6; }
11388 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
11389 $as_echo_n "(cached) " >&6
11390 else
11391 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
11392 # We make a subdir and do the tests there. Otherwise we can end up
11393 # making bogus files that we don't know about and never remove. For
11394 # instance it was reported that on HP-UX the gcc test will end up
11395 # making a dummy file named 'D' -- because '-MD' means "put the output
11396 # in D".
11397 rm -rf conftest.dir
11398 mkdir conftest.dir
11399 # Copy depcomp to subdir because otherwise we won't find it if we're
11400 # using a relative directory.
11401 cp "$am_depcomp" conftest.dir
11402 cd conftest.dir
11403 # We will build objects and dependencies in a subdirectory because
11404 # it helps to detect inapplicable dependency modes. For instance
11405 # both Tru64's cc and ICC support -MD to output dependencies as a
11406 # side effect of compilation, but ICC will put the dependencies in
11407 # the current directory while Tru64 will put them in the object
11408 # directory.
11409 mkdir sub
11411 am_cv_CXX_dependencies_compiler_type=none
11412 if test "$am_compiler_list" = ""; then
11413 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
11415 am__universal=false
11416 case " $depcc " in #(
11417 *\ -arch\ *\ -arch\ *) am__universal=true ;;
11418 esac
11420 for depmode in $am_compiler_list; do
11421 # Setup a source with many dependencies, because some compilers
11422 # like to wrap large dependency lists on column 80 (with \), and
11423 # we should not choose a depcomp mode which is confused by this.
11425 # We need to recreate these files for each test, as the compiler may
11426 # overwrite some of them when testing with obscure command lines.
11427 # This happens at least with the AIX C compiler.
11428 : > sub/conftest.c
11429 for i in 1 2 3 4 5 6; do
11430 echo '#include "conftst'$i'.h"' >> sub/conftest.c
11431 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
11432 # Solaris 10 /bin/sh.
11433 echo '/* dummy */' > sub/conftst$i.h
11434 done
11435 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
11437 # We check with '-c' and '-o' for the sake of the "dashmstdout"
11438 # mode. It turns out that the SunPro C++ compiler does not properly
11439 # handle '-M -o', and we need to detect this. Also, some Intel
11440 # versions had trouble with output in subdirs.
11441 am__obj=sub/conftest.${OBJEXT-o}
11442 am__minus_obj="-o $am__obj"
11443 case $depmode in
11444 gcc)
11445 # This depmode causes a compiler race in universal mode.
11446 test "$am__universal" = false || continue
11448 nosideeffect)
11449 # After this tag, mechanisms are not by side-effect, so they'll
11450 # only be used when explicitly requested.
11451 if test "x$enable_dependency_tracking" = xyes; then
11452 continue
11453 else
11454 break
11457 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
11458 # This compiler won't grok '-c -o', but also, the minuso test has
11459 # not run yet. These depmodes are late enough in the game, and
11460 # so weak that their functioning should not be impacted.
11461 am__obj=conftest.${OBJEXT-o}
11462 am__minus_obj=
11464 none) break ;;
11465 esac
11466 if depmode=$depmode \
11467 source=sub/conftest.c object=$am__obj \
11468 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
11469 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
11470 >/dev/null 2>conftest.err &&
11471 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
11472 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
11473 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
11474 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
11475 # icc doesn't choke on unknown options, it will just issue warnings
11476 # or remarks (even with -Werror). So we grep stderr for any message
11477 # that says an option was ignored or not supported.
11478 # When given -MP, icc 7.0 and 7.1 complain thusly:
11479 # icc: Command line warning: ignoring option '-M'; no argument required
11480 # The diagnosis changed in icc 8.0:
11481 # icc: Command line remark: option '-MP' not supported
11482 if (grep 'ignoring option' conftest.err ||
11483 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
11484 am_cv_CXX_dependencies_compiler_type=$depmode
11485 break
11488 done
11490 cd ..
11491 rm -rf conftest.dir
11492 else
11493 am_cv_CXX_dependencies_compiler_type=none
11497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
11498 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
11499 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
11502 test "x$enable_dependency_tracking" != xno \
11503 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
11504 am__fastdepCXX_TRUE=
11505 am__fastdepCXX_FALSE='#'
11506 else
11507 am__fastdepCXX_TRUE='#'
11508 am__fastdepCXX_FALSE=
11512 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11513 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11514 (test "X$CXX" != "Xg++"))) ; then
11515 ac_ext=cpp
11516 ac_cpp='$CXXCPP $CPPFLAGS'
11517 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11518 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11519 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
11521 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
11522 if test -z "$CXXCPP"; then
11523 if ${ac_cv_prog_CXXCPP+:} false; then :
11524 $as_echo_n "(cached) " >&6
11525 else
11526 # Double quotes because CXXCPP needs to be expanded
11527 for CXXCPP in "$CXX -E" "/lib/cpp"
11529 ac_preproc_ok=false
11530 for ac_cxx_preproc_warn_flag in '' yes
11532 # Use a header file that comes with gcc, so configuring glibc
11533 # with a fresh cross-compiler works.
11534 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11535 # <limits.h> exists even on freestanding compilers.
11536 # On the NeXT, cc -E runs the code through the compiler's parser,
11537 # not just through cpp. "Syntax error" is here to catch this case.
11538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11539 /* end confdefs.h. */
11540 #ifdef __STDC__
11541 # include <limits.h>
11542 #else
11543 # include <assert.h>
11544 #endif
11545 Syntax error
11546 _ACEOF
11547 if ac_fn_cxx_try_cpp "$LINENO"; then :
11549 else
11550 # Broken: fails on valid input.
11551 continue
11553 rm -f conftest.err conftest.i conftest.$ac_ext
11555 # OK, works on sane cases. Now check whether nonexistent headers
11556 # can be detected and how.
11557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11558 /* end confdefs.h. */
11559 #include <ac_nonexistent.h>
11560 _ACEOF
11561 if ac_fn_cxx_try_cpp "$LINENO"; then :
11562 # Broken: success on invalid input.
11563 continue
11564 else
11565 # Passes both tests.
11566 ac_preproc_ok=:
11567 break
11569 rm -f conftest.err conftest.i conftest.$ac_ext
11571 done
11572 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11573 rm -f conftest.i conftest.err conftest.$ac_ext
11574 if $ac_preproc_ok; then :
11575 break
11578 done
11579 ac_cv_prog_CXXCPP=$CXXCPP
11582 CXXCPP=$ac_cv_prog_CXXCPP
11583 else
11584 ac_cv_prog_CXXCPP=$CXXCPP
11586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
11587 $as_echo "$CXXCPP" >&6; }
11588 ac_preproc_ok=false
11589 for ac_cxx_preproc_warn_flag in '' yes
11591 # Use a header file that comes with gcc, so configuring glibc
11592 # with a fresh cross-compiler works.
11593 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11594 # <limits.h> exists even on freestanding compilers.
11595 # On the NeXT, cc -E runs the code through the compiler's parser,
11596 # not just through cpp. "Syntax error" is here to catch this case.
11597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11598 /* end confdefs.h. */
11599 #ifdef __STDC__
11600 # include <limits.h>
11601 #else
11602 # include <assert.h>
11603 #endif
11604 Syntax error
11605 _ACEOF
11606 if ac_fn_cxx_try_cpp "$LINENO"; then :
11608 else
11609 # Broken: fails on valid input.
11610 continue
11612 rm -f conftest.err conftest.i conftest.$ac_ext
11614 # OK, works on sane cases. Now check whether nonexistent headers
11615 # can be detected and how.
11616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11617 /* end confdefs.h. */
11618 #include <ac_nonexistent.h>
11619 _ACEOF
11620 if ac_fn_cxx_try_cpp "$LINENO"; then :
11621 # Broken: success on invalid input.
11622 continue
11623 else
11624 # Passes both tests.
11625 ac_preproc_ok=:
11626 break
11628 rm -f conftest.err conftest.i conftest.$ac_ext
11630 done
11631 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11632 rm -f conftest.i conftest.err conftest.$ac_ext
11633 if $ac_preproc_ok; then :
11635 else
11636 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11637 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11638 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
11639 See \`config.log' for more details" "$LINENO" 5; }
11642 ac_ext=c
11643 ac_cpp='$CPP $CPPFLAGS'
11644 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11645 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11646 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11648 else
11649 _lt_caught_CXX_error=yes
11652 ac_ext=cpp
11653 ac_cpp='$CXXCPP $CPPFLAGS'
11654 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11655 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11656 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11658 archive_cmds_need_lc_CXX=no
11659 allow_undefined_flag_CXX=
11660 always_export_symbols_CXX=no
11661 archive_expsym_cmds_CXX=
11662 compiler_needs_object_CXX=no
11663 export_dynamic_flag_spec_CXX=
11664 hardcode_direct_CXX=no
11665 hardcode_direct_absolute_CXX=no
11666 hardcode_libdir_flag_spec_CXX=
11667 hardcode_libdir_flag_spec_ld_CXX=
11668 hardcode_libdir_separator_CXX=
11669 hardcode_minus_L_CXX=no
11670 hardcode_shlibpath_var_CXX=unsupported
11671 hardcode_automatic_CXX=no
11672 inherit_rpath_CXX=no
11673 module_cmds_CXX=
11674 module_expsym_cmds_CXX=
11675 link_all_deplibs_CXX=unknown
11676 old_archive_cmds_CXX=$old_archive_cmds
11677 reload_flag_CXX=$reload_flag
11678 reload_cmds_CXX=$reload_cmds
11679 no_undefined_flag_CXX=
11680 whole_archive_flag_spec_CXX=
11681 enable_shared_with_static_runtimes_CXX=no
11683 # Source file extension for C++ test sources.
11684 ac_ext=cpp
11686 # Object file extension for compiled C++ test sources.
11687 objext=o
11688 objext_CXX=$objext
11690 # No sense in running all these tests if we already determined that
11691 # the CXX compiler isn't working. Some variables (like enable_shared)
11692 # are currently assumed to apply to all compilers on this platform,
11693 # and will be corrupted by setting them based on a non-working compiler.
11694 if test "$_lt_caught_CXX_error" != yes; then
11695 # Code to be used in simple compile tests
11696 lt_simple_compile_test_code="int some_variable = 0;"
11698 # Code to be used in simple link tests
11699 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11701 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11708 # If no C compiler was specified, use CC.
11709 LTCC=${LTCC-"$CC"}
11711 # If no C compiler flags were specified, use CFLAGS.
11712 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11714 # Allow CC to be a program name with arguments.
11715 compiler=$CC
11718 # save warnings/boilerplate of simple test code
11719 ac_outfile=conftest.$ac_objext
11720 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11721 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11722 _lt_compiler_boilerplate=`cat conftest.err`
11723 $RM conftest*
11725 ac_outfile=conftest.$ac_objext
11726 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11727 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11728 _lt_linker_boilerplate=`cat conftest.err`
11729 $RM -r conftest*
11732 # Allow CC to be a program name with arguments.
11733 lt_save_CC=$CC
11734 lt_save_LD=$LD
11735 lt_save_GCC=$GCC
11736 GCC=$GXX
11737 lt_save_with_gnu_ld=$with_gnu_ld
11738 lt_save_path_LD=$lt_cv_path_LD
11739 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11740 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11741 else
11742 $as_unset lt_cv_prog_gnu_ld
11744 if test -n "${lt_cv_path_LDCXX+set}"; then
11745 lt_cv_path_LD=$lt_cv_path_LDCXX
11746 else
11747 $as_unset lt_cv_path_LD
11749 test -z "${LDCXX+set}" || LD=$LDCXX
11750 CC=${CXX-"c++"}
11751 compiler=$CC
11752 compiler_CXX=$CC
11753 for cc_temp in $compiler""; do
11754 case $cc_temp in
11755 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11756 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11757 \-*) ;;
11758 *) break;;
11759 esac
11760 done
11761 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
11764 if test -n "$compiler"; then
11765 # We don't want -fno-exception when compiling C++ code, so set the
11766 # no_builtin_flag separately
11767 if test "$GXX" = yes; then
11768 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11769 else
11770 lt_prog_compiler_no_builtin_flag_CXX=
11773 if test "$GXX" = yes; then
11774 # Set up default GNU C++ configuration
11778 # Check whether --with-gnu-ld was given.
11779 if test "${with_gnu_ld+set}" = set; then :
11780 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11781 else
11782 with_gnu_ld=no
11785 ac_prog=ld
11786 if test "$GCC" = yes; then
11787 # Check if gcc -print-prog-name=ld gives a path.
11788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
11789 $as_echo_n "checking for ld used by $CC... " >&6; }
11790 case $host in
11791 *-*-mingw*)
11792 # gcc leaves a trailing carriage return which upsets mingw
11793 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11795 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11796 esac
11797 case $ac_prog in
11798 # Accept absolute paths.
11799 [\\/]* | ?:[\\/]*)
11800 re_direlt='/[^/][^/]*/\.\./'
11801 # Canonicalize the pathname of ld
11802 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
11803 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
11804 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
11805 done
11806 test -z "$LD" && LD="$ac_prog"
11809 # If it fails, then pretend we aren't using GCC.
11810 ac_prog=ld
11813 # If it is relative, then search for the first ld in PATH.
11814 with_gnu_ld=unknown
11816 esac
11817 elif test "$with_gnu_ld" = yes; then
11818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11819 $as_echo_n "checking for GNU ld... " >&6; }
11820 else
11821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11822 $as_echo_n "checking for non-GNU ld... " >&6; }
11824 if ${lt_cv_path_LD+:} false; then :
11825 $as_echo_n "(cached) " >&6
11826 else
11827 if test -z "$LD"; then
11828 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11829 for ac_dir in $PATH; do
11830 IFS="$lt_save_ifs"
11831 test -z "$ac_dir" && ac_dir=.
11832 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11833 lt_cv_path_LD="$ac_dir/$ac_prog"
11834 # Check to see if the program is GNU ld. I'd rather use --version,
11835 # but apparently some variants of GNU ld only accept -v.
11836 # Break only if it was the GNU/non-GNU ld that we prefer.
11837 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11838 *GNU* | *'with BFD'*)
11839 test "$with_gnu_ld" != no && break
11842 test "$with_gnu_ld" != yes && break
11844 esac
11846 done
11847 IFS="$lt_save_ifs"
11848 else
11849 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11853 LD="$lt_cv_path_LD"
11854 if test -n "$LD"; then
11855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11856 $as_echo "$LD" >&6; }
11857 else
11858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11859 $as_echo "no" >&6; }
11861 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
11862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11863 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11864 if ${lt_cv_prog_gnu_ld+:} false; then :
11865 $as_echo_n "(cached) " >&6
11866 else
11867 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11868 case `$LD -v 2>&1 </dev/null` in
11869 *GNU* | *'with BFD'*)
11870 lt_cv_prog_gnu_ld=yes
11873 lt_cv_prog_gnu_ld=no
11875 esac
11877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
11878 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
11879 with_gnu_ld=$lt_cv_prog_gnu_ld
11887 # Check if GNU C++ uses GNU ld as the underlying linker, since the
11888 # archiving commands below assume that GNU ld is being used.
11889 if test "$with_gnu_ld" = yes; then
11890 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11891 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'
11893 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11894 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11896 # If archive_cmds runs LD, not CC, wlarc should be empty
11897 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11898 # investigate it a little bit more. (MM)
11899 wlarc='${wl}'
11901 # ancient GNU ld didn't support --whole-archive et. al.
11902 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
11903 $GREP 'no-whole-archive' > /dev/null; then
11904 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11905 else
11906 whole_archive_flag_spec_CXX=
11908 else
11909 with_gnu_ld=no
11910 wlarc=
11912 # A generic and very simple default shared library creation
11913 # command for GNU C++ for the case where it uses the native
11914 # linker, instead of GNU ld. If possible, this setting should
11915 # overridden to take advantage of the native linker features on
11916 # the platform it is being used on.
11917 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11920 # Commands to make compiler produce verbose output that lists
11921 # what "hidden" libraries, object files and flags are used when
11922 # linking a shared library.
11923 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
11925 else
11926 GXX=no
11927 with_gnu_ld=no
11928 wlarc=
11931 # PORTME: fill in a description of your system's C++ link characteristics
11932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11933 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11934 ld_shlibs_CXX=yes
11935 case $host_os in
11936 aix3*)
11937 # FIXME: insert proper C++ library support
11938 ld_shlibs_CXX=no
11940 aix[4-9]*)
11941 if test "$host_cpu" = ia64; then
11942 # On IA64, the linker does run time linking by default, so we don't
11943 # have to do anything special.
11944 aix_use_runtimelinking=no
11945 exp_sym_flag='-Bexport'
11946 no_entry_flag=""
11947 else
11948 aix_use_runtimelinking=no
11950 # Test if we are trying to use run time linking or normal
11951 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11952 # need to do runtime linking.
11953 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11954 for ld_flag in $LDFLAGS; do
11955 case $ld_flag in
11956 *-brtl*)
11957 aix_use_runtimelinking=yes
11958 break
11960 esac
11961 done
11963 esac
11965 exp_sym_flag='-bexport'
11966 no_entry_flag='-bnoentry'
11969 # When large executables or shared objects are built, AIX ld can
11970 # have problems creating the table of contents. If linking a library
11971 # or program results in "error TOC overflow" add -mminimal-toc to
11972 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11973 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11975 archive_cmds_CXX=''
11976 hardcode_direct_CXX=yes
11977 hardcode_direct_absolute_CXX=yes
11978 hardcode_libdir_separator_CXX=':'
11979 link_all_deplibs_CXX=yes
11980 file_list_spec_CXX='${wl}-f,'
11982 if test "$GXX" = yes; then
11983 case $host_os in aix4.[012]|aix4.[012].*)
11984 # We only want to do this on AIX 4.2 and lower, the check
11985 # below for broken collect2 doesn't work under 4.3+
11986 collect2name=`${CC} -print-prog-name=collect2`
11987 if test -f "$collect2name" &&
11988 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11989 then
11990 # We have reworked collect2
11992 else
11993 # We have old collect2
11994 hardcode_direct_CXX=unsupported
11995 # It fails to find uninstalled libraries when the uninstalled
11996 # path is not listed in the libpath. Setting hardcode_minus_L
11997 # to unsupported forces relinking
11998 hardcode_minus_L_CXX=yes
11999 hardcode_libdir_flag_spec_CXX='-L$libdir'
12000 hardcode_libdir_separator_CXX=
12002 esac
12003 shared_flag='-shared'
12004 if test "$aix_use_runtimelinking" = yes; then
12005 shared_flag="$shared_flag "'${wl}-G'
12007 else
12008 # not using gcc
12009 if test "$host_cpu" = ia64; then
12010 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12011 # chokes on -Wl,-G. The following line is correct:
12012 shared_flag='-G'
12013 else
12014 if test "$aix_use_runtimelinking" = yes; then
12015 shared_flag='${wl}-G'
12016 else
12017 shared_flag='${wl}-bM:SRE'
12022 export_dynamic_flag_spec_CXX='${wl}-bexpall'
12023 # It seems that -bexpall does not export symbols beginning with
12024 # underscore (_), so it is better to generate a list of symbols to
12025 # export.
12026 always_export_symbols_CXX=yes
12027 if test "$aix_use_runtimelinking" = yes; then
12028 # Warning - without using the other runtime loading flags (-brtl),
12029 # -berok will link without error, but may produce a broken library.
12030 allow_undefined_flag_CXX='-berok'
12031 # Determine the default libpath from the value encoded in an empty
12032 # executable.
12033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12034 /* end confdefs.h. */
12037 main ()
12041 return 0;
12043 _ACEOF
12044 if ac_fn_cxx_try_link "$LINENO"; then :
12046 lt_aix_libpath_sed='
12047 /Import File Strings/,/^$/ {
12048 /^0/ {
12049 s/^0 *\(.*\)$/\1/
12053 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12054 # Check for a 64-bit object if we didn't find anything.
12055 if test -z "$aix_libpath"; then
12056 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12059 rm -f core conftest.err conftest.$ac_objext \
12060 conftest$ac_exeext conftest.$ac_ext
12061 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12063 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12065 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"
12066 else
12067 if test "$host_cpu" = ia64; then
12068 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12069 allow_undefined_flag_CXX="-z nodefs"
12070 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"
12071 else
12072 # Determine the default libpath from the value encoded in an
12073 # empty executable.
12074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12075 /* end confdefs.h. */
12078 main ()
12082 return 0;
12084 _ACEOF
12085 if ac_fn_cxx_try_link "$LINENO"; then :
12087 lt_aix_libpath_sed='
12088 /Import File Strings/,/^$/ {
12089 /^0/ {
12090 s/^0 *\(.*\)$/\1/
12094 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12095 # Check for a 64-bit object if we didn't find anything.
12096 if test -z "$aix_libpath"; then
12097 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12100 rm -f core conftest.err conftest.$ac_objext \
12101 conftest$ac_exeext conftest.$ac_ext
12102 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12104 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12105 # Warning - without using the other run time loading flags,
12106 # -berok will link without error, but may produce a broken library.
12107 no_undefined_flag_CXX=' ${wl}-bernotok'
12108 allow_undefined_flag_CXX=' ${wl}-berok'
12109 if test "$with_gnu_ld" = yes; then
12110 # We only use this code for GNU lds that support --whole-archive.
12111 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12112 else
12113 # Exported symbols can be pulled into shared objects from archives
12114 whole_archive_flag_spec_CXX='$convenience'
12116 archive_cmds_need_lc_CXX=yes
12117 # This is similar to how AIX traditionally builds its shared
12118 # libraries.
12119 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'
12124 beos*)
12125 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12126 allow_undefined_flag_CXX=unsupported
12127 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12128 # support --undefined. This deserves some investigation. FIXME
12129 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12130 else
12131 ld_shlibs_CXX=no
12135 chorus*)
12136 case $cc_basename in
12138 # FIXME: insert proper C++ library support
12139 ld_shlibs_CXX=no
12141 esac
12144 cygwin* | mingw* | pw32* | cegcc*)
12145 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12146 # as there is no search path for DLLs.
12147 hardcode_libdir_flag_spec_CXX='-L$libdir'
12148 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
12149 allow_undefined_flag_CXX=unsupported
12150 always_export_symbols_CXX=no
12151 enable_shared_with_static_runtimes_CXX=yes
12153 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12154 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'
12155 # If the export-symbols file already is a .def file (1st line
12156 # is EXPORTS), use it as is; otherwise, prepend...
12157 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12158 cp $export_symbols $output_objdir/$soname.def;
12159 else
12160 echo EXPORTS > $output_objdir/$soname.def;
12161 cat $export_symbols >> $output_objdir/$soname.def;
12163 $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'
12164 else
12165 ld_shlibs_CXX=no
12168 darwin* | rhapsody*)
12171 archive_cmds_need_lc_CXX=no
12172 hardcode_direct_CXX=no
12173 hardcode_automatic_CXX=yes
12174 hardcode_shlibpath_var_CXX=unsupported
12175 if test "$lt_cv_ld_force_load" = "yes"; then
12176 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\"`'
12177 else
12178 whole_archive_flag_spec_CXX=''
12180 link_all_deplibs_CXX=yes
12181 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12182 case $cc_basename in
12183 ifort*) _lt_dar_can_shared=yes ;;
12184 *) _lt_dar_can_shared=$GCC ;;
12185 esac
12186 if test "$_lt_dar_can_shared" = "yes"; then
12187 output_verbose_link_cmd=func_echo_all
12188 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
12189 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12190 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 \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
12191 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}"
12192 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12193 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 \$rpath/\$soname \$verstring${_lt_dsymutil}"
12194 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}"
12197 else
12198 ld_shlibs_CXX=no
12203 dgux*)
12204 case $cc_basename in
12205 ec++*)
12206 # FIXME: insert proper C++ library support
12207 ld_shlibs_CXX=no
12209 ghcx*)
12210 # Green Hills C++ Compiler
12211 # FIXME: insert proper C++ library support
12212 ld_shlibs_CXX=no
12215 # FIXME: insert proper C++ library support
12216 ld_shlibs_CXX=no
12218 esac
12221 freebsd2.*)
12222 # C++ shared libraries reported to be fairly broken before
12223 # switch to ELF
12224 ld_shlibs_CXX=no
12227 freebsd-elf*)
12228 archive_cmds_need_lc_CXX=no
12231 freebsd* | dragonfly*)
12232 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12233 # conventions
12234 ld_shlibs_CXX=yes
12237 gnu*)
12240 haiku*)
12241 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12242 link_all_deplibs_CXX=yes
12245 hpux9*)
12246 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12247 hardcode_libdir_separator_CXX=:
12248 export_dynamic_flag_spec_CXX='${wl}-E'
12249 hardcode_direct_CXX=yes
12250 hardcode_minus_L_CXX=yes # Not in the search PATH,
12251 # but as the default
12252 # location of the library.
12254 case $cc_basename in
12255 CC*)
12256 # FIXME: insert proper C++ library support
12257 ld_shlibs_CXX=no
12259 aCC*)
12260 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'
12261 # Commands to make compiler produce verbose output that lists
12262 # what "hidden" libraries, object files and flags are used when
12263 # linking a shared library.
12265 # There doesn't appear to be a way to prevent this compiler from
12266 # explicitly linking system object files so we need to strip them
12267 # from the output so that they don't get included in the library
12268 # dependencies.
12269 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"'
12272 if test "$GXX" = yes; then
12273 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'
12274 else
12275 # FIXME: insert proper C++ library support
12276 ld_shlibs_CXX=no
12279 esac
12282 hpux10*|hpux11*)
12283 if test $with_gnu_ld = no; then
12284 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12285 hardcode_libdir_separator_CXX=:
12287 case $host_cpu in
12288 hppa*64*|ia64*)
12291 export_dynamic_flag_spec_CXX='${wl}-E'
12293 esac
12295 case $host_cpu in
12296 hppa*64*|ia64*)
12297 hardcode_direct_CXX=no
12298 hardcode_shlibpath_var_CXX=no
12301 hardcode_direct_CXX=yes
12302 hardcode_direct_absolute_CXX=yes
12303 hardcode_minus_L_CXX=yes # Not in the search PATH,
12304 # but as the default
12305 # location of the library.
12307 esac
12309 case $cc_basename in
12310 CC*)
12311 # FIXME: insert proper C++ library support
12312 ld_shlibs_CXX=no
12314 aCC*)
12315 case $host_cpu in
12316 hppa*64*)
12317 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12319 ia64*)
12320 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12323 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12325 esac
12326 # Commands to make compiler produce verbose output that lists
12327 # what "hidden" libraries, object files and flags are used when
12328 # linking a shared library.
12330 # There doesn't appear to be a way to prevent this compiler from
12331 # explicitly linking system object files so we need to strip them
12332 # from the output so that they don't get included in the library
12333 # dependencies.
12334 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"'
12337 if test "$GXX" = yes; then
12338 if test $with_gnu_ld = no; then
12339 case $host_cpu in
12340 hppa*64*)
12341 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12343 ia64*)
12344 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12347 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'
12349 esac
12351 else
12352 # FIXME: insert proper C++ library support
12353 ld_shlibs_CXX=no
12356 esac
12359 interix[3-9]*)
12360 hardcode_direct_CXX=no
12361 hardcode_shlibpath_var_CXX=no
12362 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12363 export_dynamic_flag_spec_CXX='${wl}-E'
12364 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12365 # Instead, shared libraries are loaded at an image base (0x10000000 by
12366 # default) and relocated if they conflict, which is a slow very memory
12367 # consuming and fragmenting process. To avoid this, we pick a random,
12368 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12369 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12370 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'
12371 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'
12373 irix5* | irix6*)
12374 case $cc_basename in
12375 CC*)
12376 # SGI C++
12377 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'
12379 # Archives containing C++ object files must be created using
12380 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12381 # necessary to make sure instantiated templates are included
12382 # in the archive.
12383 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12386 if test "$GXX" = yes; then
12387 if test "$with_gnu_ld" = no; then
12388 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'
12389 else
12390 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'
12393 link_all_deplibs_CXX=yes
12395 esac
12396 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12397 hardcode_libdir_separator_CXX=:
12398 inherit_rpath_CXX=yes
12401 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12402 case $cc_basename in
12403 KCC*)
12404 # Kuck and Associates, Inc. (KAI) C++ Compiler
12406 # KCC will only create a shared library if the output file
12407 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12408 # to its proper name (with version) after linking.
12409 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'
12410 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'
12411 # Commands to make compiler produce verbose output that lists
12412 # what "hidden" libraries, object files and flags are used when
12413 # linking a shared library.
12415 # There doesn't appear to be a way to prevent this compiler from
12416 # explicitly linking system object files so we need to strip them
12417 # from the output so that they don't get included in the library
12418 # dependencies.
12419 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"'
12421 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12422 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12424 # Archives containing C++ object files must be created using
12425 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12426 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12428 icpc* | ecpc* )
12429 # Intel C++
12430 with_gnu_ld=yes
12431 # version 8.0 and above of icpc choke on multiply defined symbols
12432 # if we add $predep_objects and $postdep_objects, however 7.1 and
12433 # earlier do not add the objects themselves.
12434 case `$CC -V 2>&1` in
12435 *"Version 7."*)
12436 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12437 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'
12439 *) # Version 8.0 or newer
12440 tmp_idyn=
12441 case $host_cpu in
12442 ia64*) tmp_idyn=' -i_dynamic';;
12443 esac
12444 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12445 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'
12447 esac
12448 archive_cmds_need_lc_CXX=no
12449 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12450 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12451 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12453 pgCC* | pgcpp*)
12454 # Portland Group C++ compiler
12455 case `$CC -V` in
12456 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
12457 prelink_cmds_CXX='tpldir=Template.dir~
12458 rm -rf $tpldir~
12459 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
12460 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
12461 old_archive_cmds_CXX='tpldir=Template.dir~
12462 rm -rf $tpldir~
12463 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
12464 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
12465 $RANLIB $oldlib'
12466 archive_cmds_CXX='tpldir=Template.dir~
12467 rm -rf $tpldir~
12468 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12469 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12470 archive_expsym_cmds_CXX='tpldir=Template.dir~
12471 rm -rf $tpldir~
12472 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12473 $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'
12475 *) # Version 6 and above use weak symbols
12476 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12477 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'
12479 esac
12481 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12482 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12483 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'
12485 cxx*)
12486 # Compaq C++
12487 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12488 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'
12490 runpath_var=LD_RUN_PATH
12491 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12492 hardcode_libdir_separator_CXX=:
12494 # Commands to make compiler produce verbose output that lists
12495 # what "hidden" libraries, object files and flags are used when
12496 # linking a shared library.
12498 # There doesn't appear to be a way to prevent this compiler from
12499 # explicitly linking system object files so we need to strip them
12500 # from the output so that they don't get included in the library
12501 # dependencies.
12502 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'
12504 xl* | mpixl* | bgxl*)
12505 # IBM XL 8.0 on PPC, with GNU ld
12506 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12507 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12508 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12509 if test "x$supports_anon_versioning" = xyes; then
12510 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
12511 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12512 echo "local: *; };" >> $output_objdir/$libname.ver~
12513 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12517 case `$CC -V 2>&1 | sed 5q` in
12518 *Sun\ C*)
12519 # Sun C++ 5.9
12520 no_undefined_flag_CXX=' -zdefs'
12521 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12522 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'
12523 hardcode_libdir_flag_spec_CXX='-R$libdir'
12524 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'
12525 compiler_needs_object_CXX=yes
12527 # Not sure whether something based on
12528 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12529 # would be better.
12530 output_verbose_link_cmd='func_echo_all'
12532 # Archives containing C++ object files must be created using
12533 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12534 # necessary to make sure instantiated templates are included
12535 # in the archive.
12536 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12538 esac
12540 esac
12543 lynxos*)
12544 # FIXME: insert proper C++ library support
12545 ld_shlibs_CXX=no
12548 m88k*)
12549 # FIXME: insert proper C++ library support
12550 ld_shlibs_CXX=no
12553 mvs*)
12554 case $cc_basename in
12555 cxx*)
12556 # FIXME: insert proper C++ library support
12557 ld_shlibs_CXX=no
12560 # FIXME: insert proper C++ library support
12561 ld_shlibs_CXX=no
12563 esac
12566 netbsd*)
12567 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12568 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12569 wlarc=
12570 hardcode_libdir_flag_spec_CXX='-R$libdir'
12571 hardcode_direct_CXX=yes
12572 hardcode_shlibpath_var_CXX=no
12574 # Workaround some broken pre-1.5 toolchains
12575 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12578 *nto* | *qnx*)
12579 ld_shlibs_CXX=yes
12582 openbsd2*)
12583 # C++ shared libraries are fairly broken
12584 ld_shlibs_CXX=no
12587 openbsd*)
12588 if test -f /usr/libexec/ld.so; then
12589 hardcode_direct_CXX=yes
12590 hardcode_shlibpath_var_CXX=no
12591 hardcode_direct_absolute_CXX=yes
12592 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12593 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12594 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12595 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12596 export_dynamic_flag_spec_CXX='${wl}-E'
12597 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12599 output_verbose_link_cmd=func_echo_all
12600 else
12601 ld_shlibs_CXX=no
12605 osf3* | osf4* | osf5*)
12606 case $cc_basename in
12607 KCC*)
12608 # Kuck and Associates, Inc. (KAI) C++ Compiler
12610 # KCC will only create a shared library if the output file
12611 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12612 # to its proper name (with version) after linking.
12613 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'
12615 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12616 hardcode_libdir_separator_CXX=:
12618 # Archives containing C++ object files must be created using
12619 # the KAI C++ compiler.
12620 case $host in
12621 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
12622 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
12623 esac
12625 RCC*)
12626 # Rational C++ 2.4.1
12627 # FIXME: insert proper C++ library support
12628 ld_shlibs_CXX=no
12630 cxx*)
12631 case $host in
12632 osf3*)
12633 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12634 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'
12635 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12638 allow_undefined_flag_CXX=' -expect_unresolved \*'
12639 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'
12640 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12641 echo "-hidden">> $lib.exp~
12642 $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~
12643 $RM $lib.exp'
12644 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12646 esac
12648 hardcode_libdir_separator_CXX=:
12650 # Commands to make compiler produce verbose output that lists
12651 # what "hidden" libraries, object files and flags are used when
12652 # linking a shared library.
12654 # There doesn't appear to be a way to prevent this compiler from
12655 # explicitly linking system object files so we need to strip them
12656 # from the output so that they don't get included in the library
12657 # dependencies.
12658 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"'
12661 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12662 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12663 case $host in
12664 osf3*)
12665 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'
12668 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'
12670 esac
12672 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12673 hardcode_libdir_separator_CXX=:
12675 # Commands to make compiler produce verbose output that lists
12676 # what "hidden" libraries, object files and flags are used when
12677 # linking a shared library.
12678 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12680 else
12681 # FIXME: insert proper C++ library support
12682 ld_shlibs_CXX=no
12685 esac
12688 psos*)
12689 # FIXME: insert proper C++ library support
12690 ld_shlibs_CXX=no
12693 sunos4*)
12694 case $cc_basename in
12695 CC*)
12696 # Sun C++ 4.x
12697 # FIXME: insert proper C++ library support
12698 ld_shlibs_CXX=no
12700 lcc*)
12701 # Lucid
12702 # FIXME: insert proper C++ library support
12703 ld_shlibs_CXX=no
12706 # FIXME: insert proper C++ library support
12707 ld_shlibs_CXX=no
12709 esac
12712 solaris*)
12713 case $cc_basename in
12714 CC*)
12715 # Sun C++ 4.2, 5.x and Centerline C++
12716 archive_cmds_need_lc_CXX=yes
12717 no_undefined_flag_CXX=' -zdefs'
12718 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12719 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12720 $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'
12722 hardcode_libdir_flag_spec_CXX='-R$libdir'
12723 hardcode_shlibpath_var_CXX=no
12724 case $host_os in
12725 solaris2.[0-5] | solaris2.[0-5].*) ;;
12727 # The compiler driver will combine and reorder linker options,
12728 # but understands `-z linker_flag'.
12729 # Supported since Solaris 2.6 (maybe 2.5.1?)
12730 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12732 esac
12733 link_all_deplibs_CXX=yes
12735 output_verbose_link_cmd='func_echo_all'
12737 # Archives containing C++ object files must be created using
12738 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12739 # necessary to make sure instantiated templates are included
12740 # in the archive.
12741 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12743 gcx*)
12744 # Green Hills C++ Compiler
12745 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12747 # The C++ compiler must be used to create the archive.
12748 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12751 # GNU C++ compiler with Solaris linker
12752 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12753 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12754 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
12755 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12756 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12757 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
12759 # Commands to make compiler produce verbose output that lists
12760 # what "hidden" libraries, object files and flags are used when
12761 # linking a shared library.
12762 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12763 else
12764 # g++ 2.7 appears to require `-G' NOT `-shared' on this
12765 # platform.
12766 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12767 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12768 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
12770 # Commands to make compiler produce verbose output that lists
12771 # what "hidden" libraries, object files and flags are used when
12772 # linking a shared library.
12773 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12776 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12777 case $host_os in
12778 solaris2.[0-5] | solaris2.[0-5].*) ;;
12780 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12782 esac
12785 esac
12788 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12789 no_undefined_flag_CXX='${wl}-z,text'
12790 archive_cmds_need_lc_CXX=no
12791 hardcode_shlibpath_var_CXX=no
12792 runpath_var='LD_RUN_PATH'
12794 case $cc_basename in
12795 CC*)
12796 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12797 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12800 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12801 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12803 esac
12806 sysv5* | sco3.2v5* | sco5v6*)
12807 # Note: We can NOT use -z defs as we might desire, because we do not
12808 # link with -lc, and that would cause any symbols used from libc to
12809 # always be unresolved, which means just about no library would
12810 # ever link correctly. If we're not using GNU ld we use -z text
12811 # though, which does catch some bad symbols but isn't as heavy-handed
12812 # as -z defs.
12813 no_undefined_flag_CXX='${wl}-z,text'
12814 allow_undefined_flag_CXX='${wl}-z,nodefs'
12815 archive_cmds_need_lc_CXX=no
12816 hardcode_shlibpath_var_CXX=no
12817 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
12818 hardcode_libdir_separator_CXX=':'
12819 link_all_deplibs_CXX=yes
12820 export_dynamic_flag_spec_CXX='${wl}-Bexport'
12821 runpath_var='LD_RUN_PATH'
12823 case $cc_basename in
12824 CC*)
12825 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12826 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12827 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
12828 '"$old_archive_cmds_CXX"
12829 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
12830 '"$reload_cmds_CXX"
12833 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12834 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12836 esac
12839 tandem*)
12840 case $cc_basename in
12841 NCC*)
12842 # NonStop-UX NCC 3.20
12843 # FIXME: insert proper C++ library support
12844 ld_shlibs_CXX=no
12847 # FIXME: insert proper C++ library support
12848 ld_shlibs_CXX=no
12850 esac
12853 vxworks*)
12854 # FIXME: insert proper C++ library support
12855 ld_shlibs_CXX=no
12859 # FIXME: insert proper C++ library support
12860 ld_shlibs_CXX=no
12862 esac
12864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
12865 $as_echo "$ld_shlibs_CXX" >&6; }
12866 test "$ld_shlibs_CXX" = no && can_build_shared=no
12868 GCC_CXX="$GXX"
12869 LD_CXX="$LD"
12871 ## CAVEAT EMPTOR:
12872 ## There is no encapsulation within the following macros, do not change
12873 ## the running order or otherwise move them around unless you know exactly
12874 ## what you are doing...
12875 # Dependencies to place before and after the object being linked:
12876 predep_objects_CXX=
12877 postdep_objects_CXX=
12878 predeps_CXX=
12879 postdeps_CXX=
12880 compiler_lib_search_path_CXX=
12882 cat > conftest.$ac_ext <<_LT_EOF
12883 class Foo
12885 public:
12886 Foo (void) { a = 0; }
12887 private:
12888 int a;
12890 _LT_EOF
12892 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12893 (eval $ac_compile) 2>&5
12894 ac_status=$?
12895 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12896 test $ac_status = 0; }; then
12897 # Parse the compiler output and extract the necessary
12898 # objects, libraries and library flags.
12900 # Sentinel used to keep track of whether or not we are before
12901 # the conftest object file.
12902 pre_test_object_deps_done=no
12904 for p in `eval "$output_verbose_link_cmd"`; do
12905 case $p in
12907 -L* | -R* | -l*)
12908 # Some compilers place space between "-{L,R}" and the path.
12909 # Remove the space.
12910 if test $p = "-L" ||
12911 test $p = "-R"; then
12912 prev=$p
12913 continue
12914 else
12915 prev=
12918 if test "$pre_test_object_deps_done" = no; then
12919 case $p in
12920 -L* | -R*)
12921 # Internal compiler library paths should come after those
12922 # provided the user. The postdeps already come after the
12923 # user supplied libs so there is no need to process them.
12924 if test -z "$compiler_lib_search_path_CXX"; then
12925 compiler_lib_search_path_CXX="${prev}${p}"
12926 else
12927 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12930 # The "-l" case would never come before the object being
12931 # linked, so don't bother handling this case.
12932 esac
12933 else
12934 if test -z "$postdeps_CXX"; then
12935 postdeps_CXX="${prev}${p}"
12936 else
12937 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12942 *.$objext)
12943 # This assumes that the test object file only shows up
12944 # once in the compiler output.
12945 if test "$p" = "conftest.$objext"; then
12946 pre_test_object_deps_done=yes
12947 continue
12950 if test "$pre_test_object_deps_done" = no; then
12951 if test -z "$predep_objects_CXX"; then
12952 predep_objects_CXX="$p"
12953 else
12954 predep_objects_CXX="$predep_objects_CXX $p"
12956 else
12957 if test -z "$postdep_objects_CXX"; then
12958 postdep_objects_CXX="$p"
12959 else
12960 postdep_objects_CXX="$postdep_objects_CXX $p"
12965 *) ;; # Ignore the rest.
12967 esac
12968 done
12970 # Clean up.
12971 rm -f a.out a.exe
12972 else
12973 echo "libtool.m4: error: problem compiling CXX test program"
12976 $RM -f confest.$objext
12978 # PORTME: override above test on systems where it is broken
12979 case $host_os in
12980 interix[3-9]*)
12981 # Interix 3.5 installs completely hosed .la files for C++, so rather than
12982 # hack all around it, let's just trust "g++" to DTRT.
12983 predep_objects_CXX=
12984 postdep_objects_CXX=
12985 postdeps_CXX=
12988 linux*)
12989 case `$CC -V 2>&1 | sed 5q` in
12990 *Sun\ C*)
12991 # Sun C++ 5.9
12993 # The more standards-conforming stlport4 library is
12994 # incompatible with the Cstd library. Avoid specifying
12995 # it if it's in CXXFLAGS. Ignore libCrun as
12996 # -library=stlport4 depends on it.
12997 case " $CXX $CXXFLAGS " in
12998 *" -library=stlport4 "*)
12999 solaris_use_stlport4=yes
13001 esac
13003 if test "$solaris_use_stlport4" != yes; then
13004 postdeps_CXX='-library=Cstd -library=Crun'
13007 esac
13010 solaris*)
13011 case $cc_basename in
13012 CC*)
13013 # The more standards-conforming stlport4 library is
13014 # incompatible with the Cstd library. Avoid specifying
13015 # it if it's in CXXFLAGS. Ignore libCrun as
13016 # -library=stlport4 depends on it.
13017 case " $CXX $CXXFLAGS " in
13018 *" -library=stlport4 "*)
13019 solaris_use_stlport4=yes
13021 esac
13023 # Adding this requires a known-good setup of shared libraries for
13024 # Sun compiler versions before 5.6, else PIC objects from an old
13025 # archive will be linked into the output, leading to subtle bugs.
13026 if test "$solaris_use_stlport4" != yes; then
13027 postdeps_CXX='-library=Cstd -library=Crun'
13030 esac
13032 esac
13035 case " $postdeps_CXX " in
13036 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13037 esac
13038 compiler_lib_search_dirs_CXX=
13039 if test -n "${compiler_lib_search_path_CXX}"; then
13040 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13073 lt_prog_compiler_wl_CXX=
13074 lt_prog_compiler_pic_CXX=
13075 lt_prog_compiler_static_CXX=
13077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13078 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13080 # C++ specific cases for pic, static, wl, etc.
13081 if test "$GXX" = yes; then
13082 lt_prog_compiler_wl_CXX='-Wl,'
13083 lt_prog_compiler_static_CXX='-static'
13085 case $host_os in
13086 aix*)
13087 # All AIX code is PIC.
13088 if test "$host_cpu" = ia64; then
13089 # AIX 5 now supports IA64 processor
13090 lt_prog_compiler_static_CXX='-Bstatic'
13092 lt_prog_compiler_pic_CXX='-fPIC'
13095 amigaos*)
13096 case $host_cpu in
13097 powerpc)
13098 # see comment about AmigaOS4 .so support
13099 lt_prog_compiler_pic_CXX='-fPIC'
13101 m68k)
13102 # FIXME: we need at least 68020 code to build shared libraries, but
13103 # adding the `-m68020' flag to GCC prevents building anything better,
13104 # like `-m68040'.
13105 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13107 esac
13110 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13111 # PIC is the default for these OSes.
13113 mingw* | cygwin* | os2* | pw32* | cegcc*)
13114 # This hack is so that the source file can tell whether it is being
13115 # built for inclusion in a dll (and should export symbols for example).
13116 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13117 # (--disable-auto-import) libraries
13118 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13120 darwin* | rhapsody*)
13121 # PIC is the default on this platform
13122 # Common symbols not allowed in MH_DYLIB files
13123 lt_prog_compiler_pic_CXX='-fno-common'
13125 *djgpp*)
13126 # DJGPP does not support shared libraries at all
13127 lt_prog_compiler_pic_CXX=
13129 haiku*)
13130 # PIC is the default for Haiku.
13131 # The "-static" flag exists, but is broken.
13132 lt_prog_compiler_static_CXX=
13134 interix[3-9]*)
13135 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13136 # Instead, we relocate shared libraries at runtime.
13138 sysv4*MP*)
13139 if test -d /usr/nec; then
13140 lt_prog_compiler_pic_CXX=-Kconform_pic
13143 hpux*)
13144 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13145 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13146 # sets the default TLS model and affects inlining.
13147 case $host_cpu in
13148 hppa*64*)
13151 lt_prog_compiler_pic_CXX='-fPIC'
13153 esac
13155 *qnx* | *nto*)
13156 # QNX uses GNU C++, but need to define -shared option too, otherwise
13157 # it will coredump.
13158 lt_prog_compiler_pic_CXX='-fPIC -shared'
13161 lt_prog_compiler_pic_CXX='-fPIC'
13163 esac
13164 else
13165 case $host_os in
13166 aix[4-9]*)
13167 # All AIX code is PIC.
13168 if test "$host_cpu" = ia64; then
13169 # AIX 5 now supports IA64 processor
13170 lt_prog_compiler_static_CXX='-Bstatic'
13171 else
13172 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13175 chorus*)
13176 case $cc_basename in
13177 cxch68*)
13178 # Green Hills C++ Compiler
13179 # _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"
13181 esac
13183 dgux*)
13184 case $cc_basename in
13185 ec++*)
13186 lt_prog_compiler_pic_CXX='-KPIC'
13188 ghcx*)
13189 # Green Hills C++ Compiler
13190 lt_prog_compiler_pic_CXX='-pic'
13194 esac
13196 freebsd* | dragonfly*)
13197 # FreeBSD uses GNU C++
13199 hpux9* | hpux10* | hpux11*)
13200 case $cc_basename in
13201 CC*)
13202 lt_prog_compiler_wl_CXX='-Wl,'
13203 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13204 if test "$host_cpu" != ia64; then
13205 lt_prog_compiler_pic_CXX='+Z'
13208 aCC*)
13209 lt_prog_compiler_wl_CXX='-Wl,'
13210 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13211 case $host_cpu in
13212 hppa*64*|ia64*)
13213 # +Z the default
13216 lt_prog_compiler_pic_CXX='+Z'
13218 esac
13222 esac
13224 interix*)
13225 # This is c89, which is MS Visual C++ (no shared libs)
13226 # Anyone wants to do a port?
13228 irix5* | irix6* | nonstopux*)
13229 case $cc_basename in
13230 CC*)
13231 lt_prog_compiler_wl_CXX='-Wl,'
13232 lt_prog_compiler_static_CXX='-non_shared'
13233 # CC pic flag -KPIC is the default.
13237 esac
13239 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13240 case $cc_basename in
13241 KCC*)
13242 # KAI C++ Compiler
13243 lt_prog_compiler_wl_CXX='--backend -Wl,'
13244 lt_prog_compiler_pic_CXX='-fPIC'
13246 ecpc* )
13247 # old Intel C++ for x86_64 which still supported -KPIC.
13248 lt_prog_compiler_wl_CXX='-Wl,'
13249 lt_prog_compiler_pic_CXX='-KPIC'
13250 lt_prog_compiler_static_CXX='-static'
13252 icpc* )
13253 # Intel C++, used to be incompatible with GCC.
13254 # ICC 10 doesn't accept -KPIC any more.
13255 lt_prog_compiler_wl_CXX='-Wl,'
13256 lt_prog_compiler_pic_CXX='-fPIC'
13257 lt_prog_compiler_static_CXX='-static'
13259 pgCC* | pgcpp*)
13260 # Portland Group C++ compiler
13261 lt_prog_compiler_wl_CXX='-Wl,'
13262 lt_prog_compiler_pic_CXX='-fpic'
13263 lt_prog_compiler_static_CXX='-Bstatic'
13265 cxx*)
13266 # Compaq C++
13267 # Make sure the PIC flag is empty. It appears that all Alpha
13268 # Linux and Compaq Tru64 Unix objects are PIC.
13269 lt_prog_compiler_pic_CXX=
13270 lt_prog_compiler_static_CXX='-non_shared'
13272 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
13273 # IBM XL 8.0, 9.0 on PPC and BlueGene
13274 lt_prog_compiler_wl_CXX='-Wl,'
13275 lt_prog_compiler_pic_CXX='-qpic'
13276 lt_prog_compiler_static_CXX='-qstaticlink'
13279 case `$CC -V 2>&1 | sed 5q` in
13280 *Sun\ C*)
13281 # Sun C++ 5.9
13282 lt_prog_compiler_pic_CXX='-KPIC'
13283 lt_prog_compiler_static_CXX='-Bstatic'
13284 lt_prog_compiler_wl_CXX='-Qoption ld '
13286 esac
13288 esac
13290 lynxos*)
13292 m88k*)
13294 mvs*)
13295 case $cc_basename in
13296 cxx*)
13297 lt_prog_compiler_pic_CXX='-W c,exportall'
13301 esac
13303 netbsd*)
13305 *qnx* | *nto*)
13306 # QNX uses GNU C++, but need to define -shared option too, otherwise
13307 # it will coredump.
13308 lt_prog_compiler_pic_CXX='-fPIC -shared'
13310 osf3* | osf4* | osf5*)
13311 case $cc_basename in
13312 KCC*)
13313 lt_prog_compiler_wl_CXX='--backend -Wl,'
13315 RCC*)
13316 # Rational C++ 2.4.1
13317 lt_prog_compiler_pic_CXX='-pic'
13319 cxx*)
13320 # Digital/Compaq C++
13321 lt_prog_compiler_wl_CXX='-Wl,'
13322 # Make sure the PIC flag is empty. It appears that all Alpha
13323 # Linux and Compaq Tru64 Unix objects are PIC.
13324 lt_prog_compiler_pic_CXX=
13325 lt_prog_compiler_static_CXX='-non_shared'
13329 esac
13331 psos*)
13333 solaris*)
13334 case $cc_basename in
13335 CC*)
13336 # Sun C++ 4.2, 5.x and Centerline C++
13337 lt_prog_compiler_pic_CXX='-KPIC'
13338 lt_prog_compiler_static_CXX='-Bstatic'
13339 lt_prog_compiler_wl_CXX='-Qoption ld '
13341 gcx*)
13342 # Green Hills C++ Compiler
13343 lt_prog_compiler_pic_CXX='-PIC'
13347 esac
13349 sunos4*)
13350 case $cc_basename in
13351 CC*)
13352 # Sun C++ 4.x
13353 lt_prog_compiler_pic_CXX='-pic'
13354 lt_prog_compiler_static_CXX='-Bstatic'
13356 lcc*)
13357 # Lucid
13358 lt_prog_compiler_pic_CXX='-pic'
13362 esac
13364 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13365 case $cc_basename in
13366 CC*)
13367 lt_prog_compiler_wl_CXX='-Wl,'
13368 lt_prog_compiler_pic_CXX='-KPIC'
13369 lt_prog_compiler_static_CXX='-Bstatic'
13371 esac
13373 tandem*)
13374 case $cc_basename in
13375 NCC*)
13376 # NonStop-UX NCC 3.20
13377 lt_prog_compiler_pic_CXX='-KPIC'
13381 esac
13383 vxworks*)
13386 lt_prog_compiler_can_build_shared_CXX=no
13388 esac
13391 case $host_os in
13392 # For platforms which do not support PIC, -DPIC is meaningless:
13393 *djgpp*)
13394 lt_prog_compiler_pic_CXX=
13397 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13399 esac
13400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
13401 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
13406 # Check to make sure the PIC flag actually works.
13408 if test -n "$lt_prog_compiler_pic_CXX"; then
13409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13410 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
13411 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
13412 $as_echo_n "(cached) " >&6
13413 else
13414 lt_cv_prog_compiler_pic_works_CXX=no
13415 ac_outfile=conftest.$ac_objext
13416 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13417 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13418 # Insert the option either (1) after the last *FLAGS variable, or
13419 # (2) before a word containing "conftest.", or (3) at the end.
13420 # Note that $ac_compile itself does not contain backslashes and begins
13421 # with a dollar sign (not a hyphen), so the echo should work correctly.
13422 # The option is referenced via a variable to avoid confusing sed.
13423 lt_compile=`echo "$ac_compile" | $SED \
13424 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13425 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13426 -e 's:$: $lt_compiler_flag:'`
13427 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13428 (eval "$lt_compile" 2>conftest.err)
13429 ac_status=$?
13430 cat conftest.err >&5
13431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13432 if (exit $ac_status) && test -s "$ac_outfile"; then
13433 # The compiler can only warn and ignore the option if not recognized
13434 # So say no if there are warnings other than the usual output.
13435 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13436 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13437 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13438 lt_cv_prog_compiler_pic_works_CXX=yes
13441 $RM conftest*
13444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13445 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
13447 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
13448 case $lt_prog_compiler_pic_CXX in
13449 "" | " "*) ;;
13450 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13451 esac
13452 else
13453 lt_prog_compiler_pic_CXX=
13454 lt_prog_compiler_can_build_shared_CXX=no
13462 # Check to make sure the static flag actually works.
13464 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13466 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13467 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
13468 $as_echo_n "(cached) " >&6
13469 else
13470 lt_cv_prog_compiler_static_works_CXX=no
13471 save_LDFLAGS="$LDFLAGS"
13472 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13473 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13474 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13475 # The linker can only warn and ignore the option if not recognized
13476 # So say no if there are warnings
13477 if test -s conftest.err; then
13478 # Append any errors to the config.log.
13479 cat conftest.err 1>&5
13480 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13481 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13482 if diff conftest.exp conftest.er2 >/dev/null; then
13483 lt_cv_prog_compiler_static_works_CXX=yes
13485 else
13486 lt_cv_prog_compiler_static_works_CXX=yes
13489 $RM -r conftest*
13490 LDFLAGS="$save_LDFLAGS"
13493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13494 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
13496 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
13498 else
13499 lt_prog_compiler_static_CXX=
13505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13506 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13507 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
13508 $as_echo_n "(cached) " >&6
13509 else
13510 lt_cv_prog_compiler_c_o_CXX=no
13511 $RM -r conftest 2>/dev/null
13512 mkdir conftest
13513 cd conftest
13514 mkdir out
13515 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13517 lt_compiler_flag="-o out/conftest2.$ac_objext"
13518 # Insert the option either (1) after the last *FLAGS variable, or
13519 # (2) before a word containing "conftest.", or (3) at the end.
13520 # Note that $ac_compile itself does not contain backslashes and begins
13521 # with a dollar sign (not a hyphen), so the echo should work correctly.
13522 lt_compile=`echo "$ac_compile" | $SED \
13523 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13524 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13525 -e 's:$: $lt_compiler_flag:'`
13526 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13527 (eval "$lt_compile" 2>out/conftest.err)
13528 ac_status=$?
13529 cat out/conftest.err >&5
13530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13531 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13532 then
13533 # The compiler can only warn and ignore the option if not recognized
13534 # So say no if there are warnings
13535 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13536 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13537 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13538 lt_cv_prog_compiler_c_o_CXX=yes
13541 chmod u+w . 2>&5
13542 $RM conftest*
13543 # SGI C++ compiler will create directory out/ii_files/ for
13544 # template instantiation
13545 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13546 $RM out/* && rmdir out
13547 cd ..
13548 $RM -r conftest
13549 $RM conftest*
13552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13553 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13558 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13559 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
13560 $as_echo_n "(cached) " >&6
13561 else
13562 lt_cv_prog_compiler_c_o_CXX=no
13563 $RM -r conftest 2>/dev/null
13564 mkdir conftest
13565 cd conftest
13566 mkdir out
13567 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13569 lt_compiler_flag="-o out/conftest2.$ac_objext"
13570 # Insert the option either (1) after the last *FLAGS variable, or
13571 # (2) before a word containing "conftest.", or (3) at the end.
13572 # Note that $ac_compile itself does not contain backslashes and begins
13573 # with a dollar sign (not a hyphen), so the echo should work correctly.
13574 lt_compile=`echo "$ac_compile" | $SED \
13575 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13576 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13577 -e 's:$: $lt_compiler_flag:'`
13578 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13579 (eval "$lt_compile" 2>out/conftest.err)
13580 ac_status=$?
13581 cat out/conftest.err >&5
13582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13583 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13584 then
13585 # The compiler can only warn and ignore the option if not recognized
13586 # So say no if there are warnings
13587 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13588 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13589 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13590 lt_cv_prog_compiler_c_o_CXX=yes
13593 chmod u+w . 2>&5
13594 $RM conftest*
13595 # SGI C++ compiler will create directory out/ii_files/ for
13596 # template instantiation
13597 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13598 $RM out/* && rmdir out
13599 cd ..
13600 $RM -r conftest
13601 $RM conftest*
13604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13605 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13610 hard_links="nottested"
13611 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13612 # do not overwrite the value of need_locks provided by the user
13613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13614 $as_echo_n "checking if we can lock with hard links... " >&6; }
13615 hard_links=yes
13616 $RM conftest*
13617 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13618 touch conftest.a
13619 ln conftest.a conftest.b 2>&5 || hard_links=no
13620 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13622 $as_echo "$hard_links" >&6; }
13623 if test "$hard_links" = no; then
13624 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13625 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13626 need_locks=warn
13628 else
13629 need_locks=no
13634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13635 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13637 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13638 case $host_os in
13639 aix[4-9]*)
13640 # If we're using GNU nm, then we don't want the "-C" option.
13641 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13642 # Also, AIX nm treats weak defined symbols like other global defined
13643 # symbols, whereas GNU nm marks them as "W".
13644 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
13645 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'
13646 else
13647 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'
13650 pw32*)
13651 export_symbols_cmds_CXX="$ltdll_cmds"
13653 cygwin* | mingw* | cegcc*)
13654 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'
13657 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13659 esac
13660 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13663 $as_echo "$ld_shlibs_CXX" >&6; }
13664 test "$ld_shlibs_CXX" = no && can_build_shared=no
13666 with_gnu_ld_CXX=$with_gnu_ld
13674 # Do we need to explicitly link libc?
13676 case "x$archive_cmds_need_lc_CXX" in
13677 x|xyes)
13678 # Assume -lc should be added
13679 archive_cmds_need_lc_CXX=yes
13681 if test "$enable_shared" = yes && test "$GCC" = yes; then
13682 case $archive_cmds_CXX in
13683 *'~'*)
13684 # FIXME: we may have to deal with multi-command sequences.
13686 '$CC '*)
13687 # Test whether the compiler implicitly links with -lc since on some
13688 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13689 # to ld, don't add -lc before -lgcc.
13690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13691 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13692 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
13693 $as_echo_n "(cached) " >&6
13694 else
13695 $RM conftest*
13696 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13698 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13699 (eval $ac_compile) 2>&5
13700 ac_status=$?
13701 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13702 test $ac_status = 0; } 2>conftest.err; then
13703 soname=conftest
13704 lib=conftest
13705 libobjs=conftest.$ac_objext
13706 deplibs=
13707 wl=$lt_prog_compiler_wl_CXX
13708 pic_flag=$lt_prog_compiler_pic_CXX
13709 compiler_flags=-v
13710 linker_flags=-v
13711 verstring=
13712 output_objdir=.
13713 libname=conftest
13714 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13715 allow_undefined_flag_CXX=
13716 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13717 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13718 ac_status=$?
13719 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13720 test $ac_status = 0; }
13721 then
13722 lt_cv_archive_cmds_need_lc_CXX=no
13723 else
13724 lt_cv_archive_cmds_need_lc_CXX=yes
13726 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13727 else
13728 cat conftest.err 1>&5
13730 $RM conftest*
13733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
13734 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
13735 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
13737 esac
13740 esac
13805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
13806 $as_echo_n "checking dynamic linker characteristics... " >&6; }
13808 library_names_spec=
13809 libname_spec='lib$name'
13810 soname_spec=
13811 shrext_cmds=".so"
13812 postinstall_cmds=
13813 postuninstall_cmds=
13814 finish_cmds=
13815 finish_eval=
13816 shlibpath_var=
13817 shlibpath_overrides_runpath=unknown
13818 version_type=none
13819 dynamic_linker="$host_os ld.so"
13820 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13821 need_lib_prefix=unknown
13822 hardcode_into_libs=no
13824 # when you set need_version to no, make sure it does not cause -set_version
13825 # flags to be left without arguments
13826 need_version=unknown
13828 case $host_os in
13829 aix3*)
13830 version_type=linux
13831 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13832 shlibpath_var=LIBPATH
13834 # AIX 3 has no versioning support, so we append a major version to the name.
13835 soname_spec='${libname}${release}${shared_ext}$major'
13838 aix[4-9]*)
13839 version_type=linux
13840 need_lib_prefix=no
13841 need_version=no
13842 hardcode_into_libs=yes
13843 if test "$host_cpu" = ia64; then
13844 # AIX 5 supports IA64
13845 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13846 shlibpath_var=LD_LIBRARY_PATH
13847 else
13848 # With GCC up to 2.95.x, collect2 would create an import file
13849 # for dependence libraries. The import file would start with
13850 # the line `#! .'. This would cause the generated library to
13851 # depend on `.', always an invalid library. This was fixed in
13852 # development snapshots of GCC prior to 3.0.
13853 case $host_os in
13854 aix4 | aix4.[01] | aix4.[01].*)
13855 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13856 echo ' yes '
13857 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
13859 else
13860 can_build_shared=no
13863 esac
13864 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13865 # soname into executable. Probably we can add versioning support to
13866 # collect2, so additional links can be useful in future.
13867 if test "$aix_use_runtimelinking" = yes; then
13868 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13869 # instead of lib<name>.a to let people know that these are not
13870 # typical AIX shared libraries.
13871 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13872 else
13873 # We preserve .a as extension for shared libraries through AIX4.2
13874 # and later when we are not doing run time linking.
13875 library_names_spec='${libname}${release}.a $libname.a'
13876 soname_spec='${libname}${release}${shared_ext}$major'
13878 shlibpath_var=LIBPATH
13882 amigaos*)
13883 case $host_cpu in
13884 powerpc)
13885 # Since July 2007 AmigaOS4 officially supports .so libraries.
13886 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
13887 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13889 m68k)
13890 library_names_spec='$libname.ixlibrary $libname.a'
13891 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13892 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'
13894 esac
13897 beos*)
13898 library_names_spec='${libname}${shared_ext}'
13899 dynamic_linker="$host_os ld.so"
13900 shlibpath_var=LIBRARY_PATH
13903 bsdi[45]*)
13904 version_type=linux
13905 need_version=no
13906 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13907 soname_spec='${libname}${release}${shared_ext}$major'
13908 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13909 shlibpath_var=LD_LIBRARY_PATH
13910 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13911 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13912 # the default ld.so.conf also contains /usr/contrib/lib and
13913 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13914 # libtool to hard-code these into programs
13917 cygwin* | mingw* | pw32* | cegcc*)
13918 version_type=windows
13919 shrext_cmds=".dll"
13920 need_version=no
13921 need_lib_prefix=no
13923 case $GCC,$host_os in
13924 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
13925 library_names_spec='$libname.dll.a'
13926 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13927 postinstall_cmds='base_file=`basename \${file}`~
13928 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
13929 dldir=$destdir/`dirname \$dlpath`~
13930 test -d \$dldir || mkdir -p \$dldir~
13931 $install_prog $dir/$dlname \$dldir/$dlname~
13932 chmod a+x \$dldir/$dlname~
13933 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13934 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13936 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13937 dlpath=$dir/\$dldll~
13938 $RM \$dlpath'
13939 shlibpath_overrides_runpath=yes
13941 case $host_os in
13942 cygwin*)
13943 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13944 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13947 mingw* | cegcc*)
13948 # MinGW DLLs use traditional 'lib' prefix
13949 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13951 pw32*)
13952 # pw32 DLLs use 'pw' prefix rather than 'lib'
13953 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13955 esac
13959 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13961 esac
13962 dynamic_linker='Win32 ld.exe'
13963 # FIXME: first we should search . and the directory the executable is in
13964 shlibpath_var=PATH
13967 darwin* | rhapsody*)
13968 dynamic_linker="$host_os dyld"
13969 version_type=darwin
13970 need_lib_prefix=no
13971 need_version=no
13972 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13973 soname_spec='${libname}${release}${major}$shared_ext'
13974 shlibpath_overrides_runpath=yes
13975 shlibpath_var=DYLD_LIBRARY_PATH
13976 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13978 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13981 dgux*)
13982 version_type=linux
13983 need_lib_prefix=no
13984 need_version=no
13985 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13986 soname_spec='${libname}${release}${shared_ext}$major'
13987 shlibpath_var=LD_LIBRARY_PATH
13990 freebsd* | dragonfly*)
13991 # DragonFly does not have aout. When/if they implement a new
13992 # versioning mechanism, adjust this.
13993 if test -x /usr/bin/objformat; then
13994 objformat=`/usr/bin/objformat`
13995 else
13996 case $host_os in
13997 freebsd[23].*) objformat=aout ;;
13998 *) objformat=elf ;;
13999 esac
14001 version_type=freebsd-$objformat
14002 case $version_type in
14003 freebsd-elf*)
14004 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14005 need_version=no
14006 need_lib_prefix=no
14008 freebsd-*)
14009 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14010 need_version=yes
14012 esac
14013 shlibpath_var=LD_LIBRARY_PATH
14014 case $host_os in
14015 freebsd2.*)
14016 shlibpath_overrides_runpath=yes
14018 freebsd3.[01]* | freebsdelf3.[01]*)
14019 shlibpath_overrides_runpath=yes
14020 hardcode_into_libs=yes
14022 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14023 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14024 shlibpath_overrides_runpath=no
14025 hardcode_into_libs=yes
14027 *) # from 4.6 on, and DragonFly
14028 shlibpath_overrides_runpath=yes
14029 hardcode_into_libs=yes
14031 esac
14034 gnu*)
14035 version_type=linux
14036 need_lib_prefix=no
14037 need_version=no
14038 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14039 soname_spec='${libname}${release}${shared_ext}$major'
14040 shlibpath_var=LD_LIBRARY_PATH
14041 hardcode_into_libs=yes
14044 haiku*)
14045 version_type=linux
14046 need_lib_prefix=no
14047 need_version=no
14048 dynamic_linker="$host_os runtime_loader"
14049 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14050 soname_spec='${libname}${release}${shared_ext}$major'
14051 shlibpath_var=LIBRARY_PATH
14052 shlibpath_overrides_runpath=yes
14053 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
14054 hardcode_into_libs=yes
14057 hpux9* | hpux10* | hpux11*)
14058 # Give a soname corresponding to the major version so that dld.sl refuses to
14059 # link against other versions.
14060 version_type=sunos
14061 need_lib_prefix=no
14062 need_version=no
14063 case $host_cpu in
14064 ia64*)
14065 shrext_cmds='.so'
14066 hardcode_into_libs=yes
14067 dynamic_linker="$host_os dld.so"
14068 shlibpath_var=LD_LIBRARY_PATH
14069 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14070 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14071 soname_spec='${libname}${release}${shared_ext}$major'
14072 if test "X$HPUX_IA64_MODE" = X32; then
14073 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14074 else
14075 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14077 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14079 hppa*64*)
14080 shrext_cmds='.sl'
14081 hardcode_into_libs=yes
14082 dynamic_linker="$host_os dld.sl"
14083 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14084 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14085 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14086 soname_spec='${libname}${release}${shared_ext}$major'
14087 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14088 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14091 shrext_cmds='.sl'
14092 dynamic_linker="$host_os dld.sl"
14093 shlibpath_var=SHLIB_PATH
14094 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14095 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14096 soname_spec='${libname}${release}${shared_ext}$major'
14098 esac
14099 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14100 postinstall_cmds='chmod 555 $lib'
14101 # or fails outright, so override atomically:
14102 install_override_mode=555
14105 interix[3-9]*)
14106 version_type=linux
14107 need_lib_prefix=no
14108 need_version=no
14109 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14110 soname_spec='${libname}${release}${shared_ext}$major'
14111 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14112 shlibpath_var=LD_LIBRARY_PATH
14113 shlibpath_overrides_runpath=no
14114 hardcode_into_libs=yes
14117 irix5* | irix6* | nonstopux*)
14118 case $host_os in
14119 nonstopux*) version_type=nonstopux ;;
14121 if test "$lt_cv_prog_gnu_ld" = yes; then
14122 version_type=linux
14123 else
14124 version_type=irix
14125 fi ;;
14126 esac
14127 need_lib_prefix=no
14128 need_version=no
14129 soname_spec='${libname}${release}${shared_ext}$major'
14130 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14131 case $host_os in
14132 irix5* | nonstopux*)
14133 libsuff= shlibsuff=
14136 case $LD in # libtool.m4 will add one of these switches to LD
14137 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14138 libsuff= shlibsuff= libmagic=32-bit;;
14139 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14140 libsuff=32 shlibsuff=N32 libmagic=N32;;
14141 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14142 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14143 *) libsuff= shlibsuff= libmagic=never-match;;
14144 esac
14146 esac
14147 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14148 shlibpath_overrides_runpath=no
14149 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14150 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14151 hardcode_into_libs=yes
14154 # No shared lib support for Linux oldld, aout, or coff.
14155 linux*oldld* | linux*aout* | linux*coff*)
14156 dynamic_linker=no
14159 # This must be Linux ELF.
14161 # uclinux* changes (here and below) have been submitted to the libtool
14162 # project, but have not yet been accepted: they are GCC-local changes
14163 # for the time being. (See
14164 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
14165 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
14166 version_type=linux
14167 need_lib_prefix=no
14168 need_version=no
14169 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14170 soname_spec='${libname}${release}${shared_ext}$major'
14171 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14172 shlibpath_var=LD_LIBRARY_PATH
14173 shlibpath_overrides_runpath=no
14175 # Some binutils ld are patched to set DT_RUNPATH
14176 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
14177 $as_echo_n "(cached) " >&6
14178 else
14179 lt_cv_shlibpath_overrides_runpath=no
14180 save_LDFLAGS=$LDFLAGS
14181 save_libdir=$libdir
14182 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14183 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14185 /* end confdefs.h. */
14188 main ()
14192 return 0;
14194 _ACEOF
14195 if ac_fn_cxx_try_link "$LINENO"; then :
14196 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14197 lt_cv_shlibpath_overrides_runpath=yes
14200 rm -f core conftest.err conftest.$ac_objext \
14201 conftest$ac_exeext conftest.$ac_ext
14202 LDFLAGS=$save_LDFLAGS
14203 libdir=$save_libdir
14207 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14209 # This implies no fast_install, which is unacceptable.
14210 # Some rework will be needed to allow for fast_install
14211 # before this can be enabled.
14212 hardcode_into_libs=yes
14214 # Append ld.so.conf contents to the search path
14215 if test -f /etc/ld.so.conf; then
14216 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' ' '`
14217 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14220 # We used to test for /lib/ld.so.1 and disable shared libraries on
14221 # powerpc, because MkLinux only supported shared libraries with the
14222 # GNU dynamic linker. Since this was broken with cross compilers,
14223 # most powerpc-linux boxes support dynamic linking these days and
14224 # people can always --disable-shared, the test was removed, and we
14225 # assume the GNU/Linux dynamic linker is in use.
14226 dynamic_linker='GNU/Linux ld.so'
14229 netbsd*)
14230 version_type=sunos
14231 need_lib_prefix=no
14232 need_version=no
14233 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14234 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14235 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14236 dynamic_linker='NetBSD (a.out) ld.so'
14237 else
14238 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14239 soname_spec='${libname}${release}${shared_ext}$major'
14240 dynamic_linker='NetBSD ld.elf_so'
14242 shlibpath_var=LD_LIBRARY_PATH
14243 shlibpath_overrides_runpath=yes
14244 hardcode_into_libs=yes
14247 newsos6)
14248 version_type=linux
14249 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14250 shlibpath_var=LD_LIBRARY_PATH
14251 shlibpath_overrides_runpath=yes
14254 *nto* | *qnx*)
14255 version_type=qnx
14256 need_lib_prefix=no
14257 need_version=no
14258 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14259 soname_spec='${libname}${release}${shared_ext}$major'
14260 shlibpath_var=LD_LIBRARY_PATH
14261 shlibpath_overrides_runpath=no
14262 hardcode_into_libs=yes
14263 dynamic_linker='ldqnx.so'
14266 openbsd*)
14267 version_type=sunos
14268 sys_lib_dlsearch_path_spec="/usr/lib"
14269 need_lib_prefix=no
14270 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14271 case $host_os in
14272 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14273 *) need_version=no ;;
14274 esac
14275 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14276 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14277 shlibpath_var=LD_LIBRARY_PATH
14278 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14279 case $host_os in
14280 openbsd2.[89] | openbsd2.[89].*)
14281 shlibpath_overrides_runpath=no
14284 shlibpath_overrides_runpath=yes
14286 esac
14287 else
14288 shlibpath_overrides_runpath=yes
14292 os2*)
14293 libname_spec='$name'
14294 shrext_cmds=".dll"
14295 need_lib_prefix=no
14296 library_names_spec='$libname${shared_ext} $libname.a'
14297 dynamic_linker='OS/2 ld.exe'
14298 shlibpath_var=LIBPATH
14301 osf3* | osf4* | osf5*)
14302 version_type=osf
14303 need_lib_prefix=no
14304 need_version=no
14305 soname_spec='${libname}${release}${shared_ext}$major'
14306 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14307 shlibpath_var=LD_LIBRARY_PATH
14308 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14309 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14312 rdos*)
14313 dynamic_linker=no
14316 solaris*)
14317 version_type=linux
14318 need_lib_prefix=no
14319 need_version=no
14320 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14321 soname_spec='${libname}${release}${shared_ext}$major'
14322 shlibpath_var=LD_LIBRARY_PATH
14323 shlibpath_overrides_runpath=yes
14324 hardcode_into_libs=yes
14325 # ldd complains unless libraries are executable
14326 postinstall_cmds='chmod +x $lib'
14329 sunos4*)
14330 version_type=sunos
14331 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14332 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14333 shlibpath_var=LD_LIBRARY_PATH
14334 shlibpath_overrides_runpath=yes
14335 if test "$with_gnu_ld" = yes; then
14336 need_lib_prefix=no
14338 need_version=yes
14341 sysv4 | sysv4.3*)
14342 version_type=linux
14343 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14344 soname_spec='${libname}${release}${shared_ext}$major'
14345 shlibpath_var=LD_LIBRARY_PATH
14346 case $host_vendor in
14347 sni)
14348 shlibpath_overrides_runpath=no
14349 need_lib_prefix=no
14350 runpath_var=LD_RUN_PATH
14352 siemens)
14353 need_lib_prefix=no
14355 motorola)
14356 need_lib_prefix=no
14357 need_version=no
14358 shlibpath_overrides_runpath=no
14359 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14361 esac
14364 sysv4*MP*)
14365 if test -d /usr/nec ;then
14366 version_type=linux
14367 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14368 soname_spec='$libname${shared_ext}.$major'
14369 shlibpath_var=LD_LIBRARY_PATH
14373 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14374 version_type=freebsd-elf
14375 need_lib_prefix=no
14376 need_version=no
14377 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14378 soname_spec='${libname}${release}${shared_ext}$major'
14379 shlibpath_var=LD_LIBRARY_PATH
14380 shlibpath_overrides_runpath=yes
14381 hardcode_into_libs=yes
14382 if test "$with_gnu_ld" = yes; then
14383 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14384 else
14385 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14386 case $host_os in
14387 sco3.2v5*)
14388 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14390 esac
14392 sys_lib_dlsearch_path_spec='/usr/lib'
14395 tpf*)
14396 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14397 version_type=linux
14398 need_lib_prefix=no
14399 need_version=no
14400 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14401 shlibpath_var=LD_LIBRARY_PATH
14402 shlibpath_overrides_runpath=no
14403 hardcode_into_libs=yes
14406 uts4*)
14407 version_type=linux
14408 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14409 soname_spec='${libname}${release}${shared_ext}$major'
14410 shlibpath_var=LD_LIBRARY_PATH
14414 dynamic_linker=no
14416 esac
14417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14418 $as_echo "$dynamic_linker" >&6; }
14419 test "$dynamic_linker" = no && can_build_shared=no
14421 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14422 if test "$GCC" = yes; then
14423 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14426 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14427 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14429 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14430 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14471 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14472 hardcode_action_CXX=
14473 if test -n "$hardcode_libdir_flag_spec_CXX" ||
14474 test -n "$runpath_var_CXX" ||
14475 test "X$hardcode_automatic_CXX" = "Xyes" ; then
14477 # We can hardcode non-existent directories.
14478 if test "$hardcode_direct_CXX" != no &&
14479 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14480 # have to relink, otherwise we might link with an installed library
14481 # when we should be linking with a yet-to-be-installed one
14482 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14483 test "$hardcode_minus_L_CXX" != no; then
14484 # Linking always hardcodes the temporary library directory.
14485 hardcode_action_CXX=relink
14486 else
14487 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14488 hardcode_action_CXX=immediate
14490 else
14491 # We cannot hardcode anything, or else we can only hardcode existing
14492 # directories.
14493 hardcode_action_CXX=unsupported
14495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
14496 $as_echo "$hardcode_action_CXX" >&6; }
14498 if test "$hardcode_action_CXX" = relink ||
14499 test "$inherit_rpath_CXX" = yes; then
14500 # Fast installation is not supported
14501 enable_fast_install=no
14502 elif test "$shlibpath_overrides_runpath" = yes ||
14503 test "$enable_shared" = no; then
14504 # Fast installation is not necessary
14505 enable_fast_install=needless
14514 fi # test -n "$compiler"
14516 CC=$lt_save_CC
14517 LDCXX=$LD
14518 LD=$lt_save_LD
14519 GCC=$lt_save_GCC
14520 with_gnu_ld=$lt_save_with_gnu_ld
14521 lt_cv_path_LDCXX=$lt_cv_path_LD
14522 lt_cv_path_LD=$lt_save_path_LD
14523 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14524 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14525 fi # test "$_lt_caught_CXX_error" != yes
14527 ac_ext=c
14528 ac_cpp='$CPP $CPPFLAGS'
14529 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14530 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14531 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14535 visibility=
14536 if test "$GXX" = yes; then
14537 visibility=-fvisibility=hidden
14541 ac_fn_c_check_decl "$LINENO" "basename" "ac_cv_have_decl_basename" "$ac_includes_default"
14542 if test "x$ac_cv_have_decl_basename" = xyes; then :
14543 ac_have_decl=1
14544 else
14545 ac_have_decl=0
14548 cat >>confdefs.h <<_ACEOF
14549 #define HAVE_DECL_BASENAME $ac_have_decl
14550 _ACEOF
14554 get_gcc_base_ver="cat"
14556 # Check whether --with-gcc-major-version-only was given.
14557 if test "${with_gcc_major_version_only+set}" = set; then :
14558 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
14559 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
14567 if test x$with_gcc_major_version_only = xyes ; then
14568 gcc_version=`sed -e 's/^\([0-9]*\).*$/\1/' $srcdir/../gcc/BASE-VER`
14569 else
14570 gcc_version=`cat $srcdir/../gcc/BASE-VER`
14573 CONFIG_STATUS_DEPENDENCIES='$(top_srcdir)/../gcc/BASE-VER'
14576 ac_ext=c
14577 ac_cpp='$CPP $CPPFLAGS'
14578 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14579 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14580 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14582 WARN_FLAGS=
14583 save_CFLAGS="$CFLAGS"
14584 for real_option in -W -Wall; do
14585 # Do the check with the no- prefix removed since gcc silently
14586 # accepts any -Wno-* option on purpose
14587 case $real_option in
14588 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
14589 *) option=$real_option ;;
14590 esac
14591 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
14593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
14594 $as_echo_n "checking whether $CC supports $option... " >&6; }
14595 if eval \${$as_acx_Woption+:} false; then :
14596 $as_echo_n "(cached) " >&6
14597 else
14598 CFLAGS="$option"
14599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14600 /* end confdefs.h. */
14603 main ()
14607 return 0;
14609 _ACEOF
14610 if ac_fn_c_try_compile "$LINENO"; then :
14611 eval "$as_acx_Woption=yes"
14612 else
14613 eval "$as_acx_Woption=no"
14615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14618 eval ac_res=\$$as_acx_Woption
14619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14620 $as_echo "$ac_res" >&6; }
14621 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
14622 WARN_FLAGS="$WARN_FLAGS${WARN_FLAGS:+ }$real_option"
14624 done
14625 CFLAGS="$save_CFLAGS"
14626 ac_ext=c
14627 ac_cpp='$CPP $CPPFLAGS'
14628 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14629 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14630 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14634 ac_ext=c
14635 ac_cpp='$CPP $CPPFLAGS'
14636 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14637 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14638 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14640 WERROR=
14641 # Check whether --enable-werror-always was given.
14642 if test "${enable_werror_always+set}" = set; then :
14643 enableval=$enable_werror_always;
14644 else
14645 enable_werror_always=no
14648 if test $enable_werror_always = yes; then :
14649 WERROR="$WERROR${WERROR:+ }-Werror"
14652 ac_ext=c
14653 ac_cpp='$CPP $CPPFLAGS'
14654 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14655 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14656 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14662 libsuffix=
14663 if test "$GXX" = yes; then
14664 libsuffix=`$CXX -print-multi-os-directory`
14668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket libraries" >&5
14669 $as_echo_n "checking for socket libraries... " >&6; }
14670 if ${libcc1_cv_lib_sockets+:} false; then :
14671 $as_echo_n "(cached) " >&6
14672 else
14673 libcc1_cv_lib_sockets=
14674 libcc1_check_both=no
14675 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
14676 if test "x$ac_cv_func_connect" = xyes; then :
14677 libcc1_check_socket=no
14678 else
14679 libcc1_check_socket=yes
14682 if test "$libcc1_check_socket" = "yes"; then
14683 unset ac_cv_func_connect
14684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsocket" >&5
14685 $as_echo_n "checking for main in -lsocket... " >&6; }
14686 if ${ac_cv_lib_socket_main+:} false; then :
14687 $as_echo_n "(cached) " >&6
14688 else
14689 ac_check_lib_save_LIBS=$LIBS
14690 LIBS="-lsocket $LIBS"
14691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14692 /* end confdefs.h. */
14696 main ()
14698 return main ();
14700 return 0;
14702 _ACEOF
14703 if ac_fn_c_try_link "$LINENO"; then :
14704 ac_cv_lib_socket_main=yes
14705 else
14706 ac_cv_lib_socket_main=no
14708 rm -f core conftest.err conftest.$ac_objext \
14709 conftest$ac_exeext conftest.$ac_ext
14710 LIBS=$ac_check_lib_save_LIBS
14712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_main" >&5
14713 $as_echo "$ac_cv_lib_socket_main" >&6; }
14714 if test "x$ac_cv_lib_socket_main" = xyes; then :
14715 libcc1_cv_lib_sockets="-lsocket"
14716 else
14717 libcc1_check_both=yes
14721 if test "$libcc1_check_both" = "yes"; then
14722 libcc1_old_libs=$LIBS
14723 LIBS="$LIBS -lsocket -lnsl"
14724 unset ac_cv_func_accept
14725 ac_fn_c_check_func "$LINENO" "accept" "ac_cv_func_accept"
14726 if test "x$ac_cv_func_accept" = xyes; then :
14727 libcc1_check_nsl=no
14728 libcc1_cv_lib_sockets="-lsocket -lnsl"
14731 unset ac_cv_func_accept
14732 LIBS=$libcc1_old_libs
14734 unset ac_cv_func_gethostbyname
14735 libcc1_old_libs="$LIBS"
14736 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
14737 if test "x$ac_cv_func_gethostbyname" = xyes; then :
14739 else
14740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lnsl" >&5
14741 $as_echo_n "checking for main in -lnsl... " >&6; }
14742 if ${ac_cv_lib_nsl_main+:} false; then :
14743 $as_echo_n "(cached) " >&6
14744 else
14745 ac_check_lib_save_LIBS=$LIBS
14746 LIBS="-lnsl $LIBS"
14747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14748 /* end confdefs.h. */
14752 main ()
14754 return main ();
14756 return 0;
14758 _ACEOF
14759 if ac_fn_c_try_link "$LINENO"; then :
14760 ac_cv_lib_nsl_main=yes
14761 else
14762 ac_cv_lib_nsl_main=no
14764 rm -f core conftest.err conftest.$ac_objext \
14765 conftest$ac_exeext conftest.$ac_ext
14766 LIBS=$ac_check_lib_save_LIBS
14768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_main" >&5
14769 $as_echo "$ac_cv_lib_nsl_main" >&6; }
14770 if test "x$ac_cv_lib_nsl_main" = xyes; then :
14771 libcc1_cv_lib_sockets="$libcc1_cv_lib_sockets -lnsl"
14776 unset ac_cv_func_gethostbyname
14777 LIBS=$libcc1_old_libs
14780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libcc1_cv_lib_sockets" >&5
14781 $as_echo "$libcc1_cv_lib_sockets" >&6; }
14782 LIBS="$LIBS $libcc1_cv_lib_sockets"
14784 # If any of these functions are missing, simply don't bother building
14785 # this plugin.
14786 # Check for plugin support
14787 # Check whether --enable-plugin was given.
14788 if test "${enable_plugin+set}" = set; then :
14789 enableval=$enable_plugin; enable_plugin=$enableval
14790 else
14791 enable_plugin=yes; default_plugin=yes
14795 pluginlibs=
14796 plugin_check=yes
14798 case "${host}" in
14799 *-*-mingw*)
14800 # Since plugin support under MinGW is not as straightforward as on
14801 # other platforms (e.g., we have to link import library, etc), we
14802 # only enable it if explicitly requested.
14803 if test x"$default_plugin" = x"yes"; then
14804 enable_plugin=no
14805 elif test x"$enable_plugin" = x"yes"; then
14806 # Use make's target variable to derive import library name.
14807 pluginlibs='-Wl,--export-all-symbols -Wl,--out-implib=$@.a'
14808 plugin_check=no
14811 *-*-darwin*)
14812 if test x$build = x$host; then
14813 export_sym_check="nm${exeext} -g"
14814 elif test x$host = x$target; then
14815 export_sym_check="$gcc_cv_nm -g"
14816 else
14817 export_sym_check=
14821 if test x$build = x$host; then
14822 export_sym_check="objdump${exeext} -T"
14823 elif test x$host = x$target; then
14824 export_sym_check="$gcc_cv_objdump -T"
14825 else
14826 export_sym_check=
14829 esac
14831 if test x"$enable_plugin" = x"yes" -a x"$plugin_check" = x"yes"; then
14833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
14834 $as_echo_n "checking for exported symbols... " >&6; }
14835 if test "x$export_sym_check" != x; then
14836 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
14837 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c -o conftest$ac_exeext > /dev/null 2>&1
14838 if $export_sym_check conftest$ac_exeext | grep foobar > /dev/null; then
14839 : # No need to use a flag
14840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14841 $as_echo "yes" >&6; }
14842 else
14843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14844 $as_echo "yes" >&6; }
14845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
14846 $as_echo_n "checking for -rdynamic... " >&6; }
14847 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c -o conftest$ac_exeext > /dev/null 2>&1
14848 if $export_sym_check conftest$ac_exeext | grep foobar > /dev/null; then
14849 plugin_rdynamic=yes
14850 pluginlibs="-rdynamic"
14851 else
14852 plugin_rdynamic=no
14853 enable_plugin=no
14855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
14856 $as_echo "$plugin_rdynamic" >&6; }
14858 else
14859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
14860 $as_echo "unable to check" >&6; }
14863 # Check -ldl
14864 saved_LIBS="$LIBS"
14865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
14866 $as_echo_n "checking for library containing dlopen... " >&6; }
14867 if ${ac_cv_search_dlopen+:} false; then :
14868 $as_echo_n "(cached) " >&6
14869 else
14870 ac_func_search_save_LIBS=$LIBS
14871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14872 /* end confdefs.h. */
14874 /* Override any GCC internal prototype to avoid an error.
14875 Use char because int might match the return type of a GCC
14876 builtin and then its argument prototype would still apply. */
14877 #ifdef __cplusplus
14878 extern "C"
14879 #endif
14880 char dlopen ();
14882 main ()
14884 return dlopen ();
14886 return 0;
14888 _ACEOF
14889 for ac_lib in '' dl; do
14890 if test -z "$ac_lib"; then
14891 ac_res="none required"
14892 else
14893 ac_res=-l$ac_lib
14894 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14896 if ac_fn_c_try_link "$LINENO"; then :
14897 ac_cv_search_dlopen=$ac_res
14899 rm -f core conftest.err conftest.$ac_objext \
14900 conftest$ac_exeext
14901 if ${ac_cv_search_dlopen+:} false; then :
14902 break
14904 done
14905 if ${ac_cv_search_dlopen+:} false; then :
14907 else
14908 ac_cv_search_dlopen=no
14910 rm conftest.$ac_ext
14911 LIBS=$ac_func_search_save_LIBS
14913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
14914 $as_echo "$ac_cv_search_dlopen" >&6; }
14915 ac_res=$ac_cv_search_dlopen
14916 if test "$ac_res" != no; then :
14917 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14921 if test x"$ac_cv_search_dlopen" = x"-ldl"; then
14922 pluginlibs="$pluginlibs -ldl"
14924 LIBS="$saved_LIBS"
14926 # Check that we can build shared objects with -fPIC -shared
14927 saved_LDFLAGS="$LDFLAGS"
14928 saved_CFLAGS="$CFLAGS"
14929 case "${host}" in
14930 *-*-darwin*)
14931 CFLAGS=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
14932 CFLAGS="$CFLAGS -fPIC"
14933 LDFLAGS="$LDFLAGS -shared -undefined dynamic_lookup"
14936 CFLAGS="$CFLAGS -fPIC"
14937 LDFLAGS="$LDFLAGS -fPIC -shared"
14939 esac
14940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
14941 $as_echo_n "checking for -fPIC -shared... " >&6; }
14942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14943 /* end confdefs.h. */
14944 extern int X;
14946 main ()
14948 return X == 0;
14950 return 0;
14952 _ACEOF
14953 if ac_fn_c_try_link "$LINENO"; then :
14954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14955 $as_echo "yes" >&6; }; have_pic_shared=yes
14956 else
14957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14958 $as_echo "no" >&6; }; have_pic_shared=no
14960 rm -f core conftest.err conftest.$ac_objext \
14961 conftest$ac_exeext conftest.$ac_ext
14962 if test x"$have_pic_shared" != x"yes" -o x"$ac_cv_search_dlopen" = x"no"; then
14963 pluginlibs=
14964 enable_plugin=no
14966 LDFLAGS="$saved_LDFLAGS"
14967 CFLAGS="$saved_CFLAGS"
14969 # If plugin support had been requested but not available, fail.
14970 if test x"$enable_plugin" = x"no" ; then
14971 if test x"$default_plugin" != x"yes"; then
14972 as_fn_error $? "
14973 Building GCC with plugin support requires a host that supports
14974 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
14979 ac_fn_c_check_func "$LINENO" "socketpair" "ac_cv_func_socketpair"
14980 if test "x$ac_cv_func_socketpair" = xyes; then :
14982 else
14983 enable_plugin=no
14986 ac_fn_c_check_func "$LINENO" "select" "ac_cv_func_select"
14987 if test "x$ac_cv_func_select" = xyes; then :
14989 else
14990 enable_plugin=no
14993 ac_fn_c_check_func "$LINENO" "fork" "ac_cv_func_fork"
14994 if test "x$ac_cv_func_fork" = xyes; then :
14996 else
14997 enable_plugin=no
15000 if test $enable_plugin = yes; then
15001 ENABLE_PLUGIN_TRUE=
15002 ENABLE_PLUGIN_FALSE='#'
15003 else
15004 ENABLE_PLUGIN_TRUE='#'
15005 ENABLE_PLUGIN_FALSE=
15009 ac_config_files="$ac_config_files Makefile"
15011 cat >confcache <<\_ACEOF
15012 # This file is a shell script that caches the results of configure
15013 # tests run on this system so they can be shared between configure
15014 # scripts and configure runs, see configure's option --config-cache.
15015 # It is not useful on other systems. If it contains results you don't
15016 # want to keep, you may remove or edit it.
15018 # config.status only pays attention to the cache file if you give it
15019 # the --recheck option to rerun configure.
15021 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15022 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15023 # following values.
15025 _ACEOF
15027 # The following way of writing the cache mishandles newlines in values,
15028 # but we know of no workaround that is simple, portable, and efficient.
15029 # So, we kill variables containing newlines.
15030 # Ultrix sh set writes to stderr and can't be redirected directly,
15031 # and sets the high bit in the cache file unless we assign to the vars.
15033 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15034 eval ac_val=\$$ac_var
15035 case $ac_val in #(
15036 *${as_nl}*)
15037 case $ac_var in #(
15038 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15039 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15040 esac
15041 case $ac_var in #(
15042 _ | IFS | as_nl) ;; #(
15043 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15044 *) { eval $ac_var=; unset $ac_var;} ;;
15045 esac ;;
15046 esac
15047 done
15049 (set) 2>&1 |
15050 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15051 *${as_nl}ac_space=\ *)
15052 # `set' does not quote correctly, so add quotes: double-quote
15053 # substitution turns \\\\ into \\, and sed turns \\ into \.
15054 sed -n \
15055 "s/'/'\\\\''/g;
15056 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15057 ;; #(
15059 # `set' quotes correctly as required by POSIX, so do not add quotes.
15060 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15062 esac |
15063 sort
15065 sed '
15066 /^ac_cv_env_/b end
15067 t clear
15068 :clear
15069 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15070 t end
15071 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15072 :end' >>confcache
15073 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15074 if test -w "$cache_file"; then
15075 if test "x$cache_file" != "x/dev/null"; then
15076 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15077 $as_echo "$as_me: updating cache $cache_file" >&6;}
15078 if test ! -f "$cache_file" || test -h "$cache_file"; then
15079 cat confcache >"$cache_file"
15080 else
15081 case $cache_file in #(
15082 */* | ?:*)
15083 mv -f confcache "$cache_file"$$ &&
15084 mv -f "$cache_file"$$ "$cache_file" ;; #(
15086 mv -f confcache "$cache_file" ;;
15087 esac
15090 else
15091 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15092 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15095 rm -f confcache
15097 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15098 # Let make expand exec_prefix.
15099 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15101 DEFS=-DHAVE_CONFIG_H
15103 ac_libobjs=
15104 ac_ltlibobjs=
15106 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15107 # 1. Remove the extension, and $U if already installed.
15108 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15109 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15110 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15111 # will be set to the directory where LIBOBJS objects are built.
15112 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15113 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15114 done
15115 LIBOBJS=$ac_libobjs
15117 LTLIBOBJS=$ac_ltlibobjs
15120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
15121 $as_echo_n "checking that generated files are newer than configure... " >&6; }
15122 if test -n "$am_sleep_pid"; then
15123 # Hide warnings about reused PIDs.
15124 wait $am_sleep_pid 2>/dev/null
15126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
15127 $as_echo "done" >&6; }
15128 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15129 as_fn_error $? "conditional \"AMDEP\" was never defined.
15130 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15132 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15133 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
15134 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15136 if test -n "$EXEEXT"; then
15137 am__EXEEXT_TRUE=
15138 am__EXEEXT_FALSE='#'
15139 else
15140 am__EXEEXT_TRUE='#'
15141 am__EXEEXT_FALSE=
15144 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15145 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
15146 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15148 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
15149 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
15150 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15152 if test -z "${ENABLE_PLUGIN_TRUE}" && test -z "${ENABLE_PLUGIN_FALSE}"; then
15153 as_fn_error $? "conditional \"ENABLE_PLUGIN\" was never defined.
15154 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15157 : "${CONFIG_STATUS=./config.status}"
15158 ac_write_fail=0
15159 ac_clean_files_save=$ac_clean_files
15160 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15161 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15162 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15163 as_write_fail=0
15164 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15165 #! $SHELL
15166 # Generated by $as_me.
15167 # Run this file to recreate the current configuration.
15168 # Compiler output produced by configure, useful for debugging
15169 # configure, is in config.log if it exists.
15171 debug=false
15172 ac_cs_recheck=false
15173 ac_cs_silent=false
15175 SHELL=\${CONFIG_SHELL-$SHELL}
15176 export SHELL
15177 _ASEOF
15178 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15179 ## -------------------- ##
15180 ## M4sh Initialization. ##
15181 ## -------------------- ##
15183 # Be more Bourne compatible
15184 DUALCASE=1; export DUALCASE # for MKS sh
15185 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15186 emulate sh
15187 NULLCMD=:
15188 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15189 # is contrary to our usage. Disable this feature.
15190 alias -g '${1+"$@"}'='"$@"'
15191 setopt NO_GLOB_SUBST
15192 else
15193 case `(set -o) 2>/dev/null` in #(
15194 *posix*) :
15195 set -o posix ;; #(
15196 *) :
15198 esac
15202 as_nl='
15204 export as_nl
15205 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15206 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15207 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15208 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15209 # Prefer a ksh shell builtin over an external printf program on Solaris,
15210 # but without wasting forks for bash or zsh.
15211 if test -z "$BASH_VERSION$ZSH_VERSION" \
15212 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15213 as_echo='print -r --'
15214 as_echo_n='print -rn --'
15215 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15216 as_echo='printf %s\n'
15217 as_echo_n='printf %s'
15218 else
15219 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15220 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15221 as_echo_n='/usr/ucb/echo -n'
15222 else
15223 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15224 as_echo_n_body='eval
15225 arg=$1;
15226 case $arg in #(
15227 *"$as_nl"*)
15228 expr "X$arg" : "X\\(.*\\)$as_nl";
15229 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15230 esac;
15231 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15233 export as_echo_n_body
15234 as_echo_n='sh -c $as_echo_n_body as_echo'
15236 export as_echo_body
15237 as_echo='sh -c $as_echo_body as_echo'
15240 # The user is always right.
15241 if test "${PATH_SEPARATOR+set}" != set; then
15242 PATH_SEPARATOR=:
15243 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15244 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15245 PATH_SEPARATOR=';'
15250 # IFS
15251 # We need space, tab and new line, in precisely that order. Quoting is
15252 # there to prevent editors from complaining about space-tab.
15253 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15254 # splitting by setting IFS to empty value.)
15255 IFS=" "" $as_nl"
15257 # Find who we are. Look in the path if we contain no directory separator.
15258 as_myself=
15259 case $0 in #((
15260 *[\\/]* ) as_myself=$0 ;;
15261 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15262 for as_dir in $PATH
15264 IFS=$as_save_IFS
15265 test -z "$as_dir" && as_dir=.
15266 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15267 done
15268 IFS=$as_save_IFS
15271 esac
15272 # We did not find ourselves, most probably we were run as `sh COMMAND'
15273 # in which case we are not to be found in the path.
15274 if test "x$as_myself" = x; then
15275 as_myself=$0
15277 if test ! -f "$as_myself"; then
15278 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15279 exit 1
15282 # Unset variables that we do not need and which cause bugs (e.g. in
15283 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15284 # suppresses any "Segmentation fault" message there. '((' could
15285 # trigger a bug in pdksh 5.2.14.
15286 for as_var in BASH_ENV ENV MAIL MAILPATH
15287 do eval test x\${$as_var+set} = xset \
15288 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15289 done
15290 PS1='$ '
15291 PS2='> '
15292 PS4='+ '
15294 # NLS nuisances.
15295 LC_ALL=C
15296 export LC_ALL
15297 LANGUAGE=C
15298 export LANGUAGE
15300 # CDPATH.
15301 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15304 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15305 # ----------------------------------------
15306 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15307 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15308 # script with STATUS, using 1 if that was 0.
15309 as_fn_error ()
15311 as_status=$1; test $as_status -eq 0 && as_status=1
15312 if test "$4"; then
15313 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15314 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15316 $as_echo "$as_me: error: $2" >&2
15317 as_fn_exit $as_status
15318 } # as_fn_error
15321 # as_fn_set_status STATUS
15322 # -----------------------
15323 # Set $? to STATUS, without forking.
15324 as_fn_set_status ()
15326 return $1
15327 } # as_fn_set_status
15329 # as_fn_exit STATUS
15330 # -----------------
15331 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15332 as_fn_exit ()
15334 set +e
15335 as_fn_set_status $1
15336 exit $1
15337 } # as_fn_exit
15339 # as_fn_unset VAR
15340 # ---------------
15341 # Portably unset VAR.
15342 as_fn_unset ()
15344 { eval $1=; unset $1;}
15346 as_unset=as_fn_unset
15347 # as_fn_append VAR VALUE
15348 # ----------------------
15349 # Append the text in VALUE to the end of the definition contained in VAR. Take
15350 # advantage of any shell optimizations that allow amortized linear growth over
15351 # repeated appends, instead of the typical quadratic growth present in naive
15352 # implementations.
15353 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15354 eval 'as_fn_append ()
15356 eval $1+=\$2
15358 else
15359 as_fn_append ()
15361 eval $1=\$$1\$2
15363 fi # as_fn_append
15365 # as_fn_arith ARG...
15366 # ------------------
15367 # Perform arithmetic evaluation on the ARGs, and store the result in the
15368 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15369 # must be portable across $(()) and expr.
15370 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15371 eval 'as_fn_arith ()
15373 as_val=$(( $* ))
15375 else
15376 as_fn_arith ()
15378 as_val=`expr "$@" || test $? -eq 1`
15380 fi # as_fn_arith
15383 if expr a : '\(a\)' >/dev/null 2>&1 &&
15384 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15385 as_expr=expr
15386 else
15387 as_expr=false
15390 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15391 as_basename=basename
15392 else
15393 as_basename=false
15396 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15397 as_dirname=dirname
15398 else
15399 as_dirname=false
15402 as_me=`$as_basename -- "$0" ||
15403 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15404 X"$0" : 'X\(//\)$' \| \
15405 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15406 $as_echo X/"$0" |
15407 sed '/^.*\/\([^/][^/]*\)\/*$/{
15408 s//\1/
15411 /^X\/\(\/\/\)$/{
15412 s//\1/
15415 /^X\/\(\/\).*/{
15416 s//\1/
15419 s/.*/./; q'`
15421 # Avoid depending upon Character Ranges.
15422 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15423 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15424 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15425 as_cr_digits='0123456789'
15426 as_cr_alnum=$as_cr_Letters$as_cr_digits
15428 ECHO_C= ECHO_N= ECHO_T=
15429 case `echo -n x` in #(((((
15430 -n*)
15431 case `echo 'xy\c'` in
15432 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15433 xy) ECHO_C='\c';;
15434 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15435 ECHO_T=' ';;
15436 esac;;
15438 ECHO_N='-n';;
15439 esac
15441 rm -f conf$$ conf$$.exe conf$$.file
15442 if test -d conf$$.dir; then
15443 rm -f conf$$.dir/conf$$.file
15444 else
15445 rm -f conf$$.dir
15446 mkdir conf$$.dir 2>/dev/null
15448 if (echo >conf$$.file) 2>/dev/null; then
15449 if ln -s conf$$.file conf$$ 2>/dev/null; then
15450 as_ln_s='ln -s'
15451 # ... but there are two gotchas:
15452 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15453 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15454 # In both cases, we have to default to `cp -pR'.
15455 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15456 as_ln_s='cp -pR'
15457 elif ln conf$$.file conf$$ 2>/dev/null; then
15458 as_ln_s=ln
15459 else
15460 as_ln_s='cp -pR'
15462 else
15463 as_ln_s='cp -pR'
15465 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15466 rmdir conf$$.dir 2>/dev/null
15469 # as_fn_mkdir_p
15470 # -------------
15471 # Create "$as_dir" as a directory, including parents if necessary.
15472 as_fn_mkdir_p ()
15475 case $as_dir in #(
15476 -*) as_dir=./$as_dir;;
15477 esac
15478 test -d "$as_dir" || eval $as_mkdir_p || {
15479 as_dirs=
15480 while :; do
15481 case $as_dir in #(
15482 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15483 *) as_qdir=$as_dir;;
15484 esac
15485 as_dirs="'$as_qdir' $as_dirs"
15486 as_dir=`$as_dirname -- "$as_dir" ||
15487 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15488 X"$as_dir" : 'X\(//\)[^/]' \| \
15489 X"$as_dir" : 'X\(//\)$' \| \
15490 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15491 $as_echo X"$as_dir" |
15492 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15493 s//\1/
15496 /^X\(\/\/\)[^/].*/{
15497 s//\1/
15500 /^X\(\/\/\)$/{
15501 s//\1/
15504 /^X\(\/\).*/{
15505 s//\1/
15508 s/.*/./; q'`
15509 test -d "$as_dir" && break
15510 done
15511 test -z "$as_dirs" || eval "mkdir $as_dirs"
15512 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15515 } # as_fn_mkdir_p
15516 if mkdir -p . 2>/dev/null; then
15517 as_mkdir_p='mkdir -p "$as_dir"'
15518 else
15519 test -d ./-p && rmdir ./-p
15520 as_mkdir_p=false
15524 # as_fn_executable_p FILE
15525 # -----------------------
15526 # Test if FILE is an executable regular file.
15527 as_fn_executable_p ()
15529 test -f "$1" && test -x "$1"
15530 } # as_fn_executable_p
15531 as_test_x='test -x'
15532 as_executable_p=as_fn_executable_p
15534 # Sed expression to map a string onto a valid CPP name.
15535 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15537 # Sed expression to map a string onto a valid variable name.
15538 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15541 exec 6>&1
15542 ## ----------------------------------- ##
15543 ## Main body of $CONFIG_STATUS script. ##
15544 ## ----------------------------------- ##
15545 _ASEOF
15546 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15548 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15549 # Save the log message, to keep $0 and so on meaningful, and to
15550 # report actual input values of CONFIG_FILES etc. instead of their
15551 # values after options handling.
15552 ac_log="
15553 This file was extended by libcc1 $as_me version-unused, which was
15554 generated by GNU Autoconf 2.69. Invocation command line was
15556 CONFIG_FILES = $CONFIG_FILES
15557 CONFIG_HEADERS = $CONFIG_HEADERS
15558 CONFIG_LINKS = $CONFIG_LINKS
15559 CONFIG_COMMANDS = $CONFIG_COMMANDS
15560 $ $0 $@
15562 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15565 _ACEOF
15567 case $ac_config_files in *"
15568 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15569 esac
15571 case $ac_config_headers in *"
15572 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15573 esac
15576 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15577 # Files that config.status was made for.
15578 config_files="$ac_config_files"
15579 config_headers="$ac_config_headers"
15580 config_commands="$ac_config_commands"
15582 _ACEOF
15584 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15585 ac_cs_usage="\
15586 \`$as_me' instantiates files and other configuration actions
15587 from templates according to the current configuration. Unless the files
15588 and actions are specified as TAGs, all are instantiated by default.
15590 Usage: $0 [OPTION]... [TAG]...
15592 -h, --help print this help, then exit
15593 -V, --version print version number and configuration settings, then exit
15594 --config print configuration, then exit
15595 -q, --quiet, --silent
15596 do not print progress messages
15597 -d, --debug don't remove temporary files
15598 --recheck update $as_me by reconfiguring in the same conditions
15599 --file=FILE[:TEMPLATE]
15600 instantiate the configuration file FILE
15601 --header=FILE[:TEMPLATE]
15602 instantiate the configuration header FILE
15604 Configuration files:
15605 $config_files
15607 Configuration headers:
15608 $config_headers
15610 Configuration commands:
15611 $config_commands
15613 Report bugs to the package provider."
15615 _ACEOF
15616 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15617 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15618 ac_cs_version="\\
15619 libcc1 config.status version-unused
15620 configured by $0, generated by GNU Autoconf 2.69,
15621 with options \\"\$ac_cs_config\\"
15623 Copyright (C) 2012 Free Software Foundation, Inc.
15624 This config.status script is free software; the Free Software Foundation
15625 gives unlimited permission to copy, distribute and modify it."
15627 ac_pwd='$ac_pwd'
15628 srcdir='$srcdir'
15629 INSTALL='$INSTALL'
15630 MKDIR_P='$MKDIR_P'
15631 AWK='$AWK'
15632 test -n "\$AWK" || AWK=awk
15633 _ACEOF
15635 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15636 # The default lists apply if the user does not specify any file.
15637 ac_need_defaults=:
15638 while test $# != 0
15640 case $1 in
15641 --*=?*)
15642 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15643 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15644 ac_shift=:
15646 --*=)
15647 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15648 ac_optarg=
15649 ac_shift=:
15652 ac_option=$1
15653 ac_optarg=$2
15654 ac_shift=shift
15656 esac
15658 case $ac_option in
15659 # Handling of the options.
15660 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15661 ac_cs_recheck=: ;;
15662 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15663 $as_echo "$ac_cs_version"; exit ;;
15664 --config | --confi | --conf | --con | --co | --c )
15665 $as_echo "$ac_cs_config"; exit ;;
15666 --debug | --debu | --deb | --de | --d | -d )
15667 debug=: ;;
15668 --file | --fil | --fi | --f )
15669 $ac_shift
15670 case $ac_optarg in
15671 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15672 '') as_fn_error $? "missing file argument" ;;
15673 esac
15674 as_fn_append CONFIG_FILES " '$ac_optarg'"
15675 ac_need_defaults=false;;
15676 --header | --heade | --head | --hea )
15677 $ac_shift
15678 case $ac_optarg in
15679 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15680 esac
15681 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15682 ac_need_defaults=false;;
15683 --he | --h)
15684 # Conflict between --help and --header
15685 as_fn_error $? "ambiguous option: \`$1'
15686 Try \`$0 --help' for more information.";;
15687 --help | --hel | -h )
15688 $as_echo "$ac_cs_usage"; exit ;;
15689 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15690 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15691 ac_cs_silent=: ;;
15693 # This is an error.
15694 -*) as_fn_error $? "unrecognized option: \`$1'
15695 Try \`$0 --help' for more information." ;;
15697 *) as_fn_append ac_config_targets " $1"
15698 ac_need_defaults=false ;;
15700 esac
15701 shift
15702 done
15704 ac_configure_extra_args=
15706 if $ac_cs_silent; then
15707 exec 6>/dev/null
15708 ac_configure_extra_args="$ac_configure_extra_args --silent"
15711 _ACEOF
15712 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15713 if \$ac_cs_recheck; then
15714 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15715 shift
15716 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15717 CONFIG_SHELL='$SHELL'
15718 export CONFIG_SHELL
15719 exec "\$@"
15722 _ACEOF
15723 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15724 exec 5>>config.log
15726 echo
15727 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15728 ## Running $as_me. ##
15729 _ASBOX
15730 $as_echo "$ac_log"
15731 } >&5
15733 _ACEOF
15734 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15736 # INIT-COMMANDS
15738 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15741 # The HP-UX ksh and POSIX shell print the target directory to stdout
15742 # if CDPATH is set.
15743 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15745 sed_quote_subst='$sed_quote_subst'
15746 double_quote_subst='$double_quote_subst'
15747 delay_variable_subst='$delay_variable_subst'
15748 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15749 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15750 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15751 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15752 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15753 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15754 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15755 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15756 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15757 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15758 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15759 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15760 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15761 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15762 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15763 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15764 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15765 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15766 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15767 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15768 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15769 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15770 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15771 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15772 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15773 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15774 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15775 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15776 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15777 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15778 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15779 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15780 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15781 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15782 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15783 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15784 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15785 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15786 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15787 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15788 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15789 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15790 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15791 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15792 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15793 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15794 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15795 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15796 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"`'
15797 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15798 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15799 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15800 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15801 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15802 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15803 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15804 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15805 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15806 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15807 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15808 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15809 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15810 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15811 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15812 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15813 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15814 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15815 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15816 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15817 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15818 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15819 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15820 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15821 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15822 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15823 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15824 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15825 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15826 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15827 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15828 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
15829 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15830 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15831 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15832 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15833 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15834 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15835 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15836 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15837 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
15838 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15839 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15840 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15841 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15842 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15843 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15844 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15845 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15846 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15847 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15848 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15849 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15850 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15851 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15852 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15853 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15854 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15855 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15856 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15857 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15858 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15859 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15860 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15861 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
15862 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15863 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15864 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15865 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15866 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15867 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15868 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
15869 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
15870 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
15871 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
15872 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
15873 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
15874 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
15875 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
15876 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15877 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15878 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
15879 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
15880 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
15881 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
15882 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
15883 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
15884 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
15885 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
15886 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
15887 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
15888 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
15889 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
15890 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15891 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15892 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15893 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15894 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15895 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15896 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
15897 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
15898 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
15899 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
15900 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
15901 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
15902 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
15903 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
15904 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
15905 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
15906 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
15907 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
15908 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
15909 fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
15910 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
15911 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15912 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
15913 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
15914 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15915 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
15916 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
15917 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
15918 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
15919 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
15920 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
15921 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
15922 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
15924 LTCC='$LTCC'
15925 LTCFLAGS='$LTCFLAGS'
15926 compiler='$compiler_DEFAULT'
15928 # A function that is used when there is no print builtin or printf.
15929 func_fallback_echo ()
15931 eval 'cat <<_LTECHO_EOF
15933 _LTECHO_EOF'
15936 # Quote evaled strings.
15937 for var in SHELL \
15938 ECHO \
15939 SED \
15940 GREP \
15941 EGREP \
15942 FGREP \
15943 LD \
15944 NM \
15945 LN_S \
15946 lt_SP2NL \
15947 lt_NL2SP \
15948 reload_flag \
15949 OBJDUMP \
15950 deplibs_check_method \
15951 file_magic_cmd \
15952 AR \
15953 AR_FLAGS \
15954 STRIP \
15955 RANLIB \
15956 CC \
15957 CFLAGS \
15958 compiler \
15959 lt_cv_sys_global_symbol_pipe \
15960 lt_cv_sys_global_symbol_to_cdecl \
15961 lt_cv_sys_global_symbol_to_c_name_address \
15962 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15963 lt_prog_compiler_no_builtin_flag \
15964 lt_prog_compiler_wl \
15965 lt_prog_compiler_pic \
15966 lt_prog_compiler_static \
15967 lt_cv_prog_compiler_c_o \
15968 need_locks \
15969 DSYMUTIL \
15970 NMEDIT \
15971 LIPO \
15972 OTOOL \
15973 OTOOL64 \
15974 shrext_cmds \
15975 export_dynamic_flag_spec \
15976 whole_archive_flag_spec \
15977 compiler_needs_object \
15978 with_gnu_ld \
15979 allow_undefined_flag \
15980 no_undefined_flag \
15981 hardcode_libdir_flag_spec \
15982 hardcode_libdir_flag_spec_ld \
15983 hardcode_libdir_separator \
15984 fix_srcfile_path \
15985 exclude_expsyms \
15986 include_expsyms \
15987 file_list_spec \
15988 variables_saved_for_relink \
15989 libname_spec \
15990 library_names_spec \
15991 soname_spec \
15992 install_override_mode \
15993 finish_eval \
15994 old_striplib \
15995 striplib \
15996 compiler_lib_search_dirs \
15997 predep_objects \
15998 postdep_objects \
15999 predeps \
16000 postdeps \
16001 compiler_lib_search_path \
16002 LD_CXX \
16003 reload_flag_CXX \
16004 compiler_CXX \
16005 lt_prog_compiler_no_builtin_flag_CXX \
16006 lt_prog_compiler_wl_CXX \
16007 lt_prog_compiler_pic_CXX \
16008 lt_prog_compiler_static_CXX \
16009 lt_cv_prog_compiler_c_o_CXX \
16010 export_dynamic_flag_spec_CXX \
16011 whole_archive_flag_spec_CXX \
16012 compiler_needs_object_CXX \
16013 with_gnu_ld_CXX \
16014 allow_undefined_flag_CXX \
16015 no_undefined_flag_CXX \
16016 hardcode_libdir_flag_spec_CXX \
16017 hardcode_libdir_flag_spec_ld_CXX \
16018 hardcode_libdir_separator_CXX \
16019 fix_srcfile_path_CXX \
16020 exclude_expsyms_CXX \
16021 include_expsyms_CXX \
16022 file_list_spec_CXX \
16023 compiler_lib_search_dirs_CXX \
16024 predep_objects_CXX \
16025 postdep_objects_CXX \
16026 predeps_CXX \
16027 postdeps_CXX \
16028 compiler_lib_search_path_CXX; do
16029 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16030 *[\\\\\\\`\\"\\\$]*)
16031 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16034 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16036 esac
16037 done
16039 # Double-quote double-evaled strings.
16040 for var in reload_cmds \
16041 old_postinstall_cmds \
16042 old_postuninstall_cmds \
16043 old_archive_cmds \
16044 extract_expsyms_cmds \
16045 old_archive_from_new_cmds \
16046 old_archive_from_expsyms_cmds \
16047 archive_cmds \
16048 archive_expsym_cmds \
16049 module_cmds \
16050 module_expsym_cmds \
16051 export_symbols_cmds \
16052 prelink_cmds \
16053 postinstall_cmds \
16054 postuninstall_cmds \
16055 finish_cmds \
16056 sys_lib_search_path_spec \
16057 sys_lib_dlsearch_path_spec \
16058 reload_cmds_CXX \
16059 old_archive_cmds_CXX \
16060 old_archive_from_new_cmds_CXX \
16061 old_archive_from_expsyms_cmds_CXX \
16062 archive_cmds_CXX \
16063 archive_expsym_cmds_CXX \
16064 module_cmds_CXX \
16065 module_expsym_cmds_CXX \
16066 export_symbols_cmds_CXX \
16067 prelink_cmds_CXX; do
16068 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16069 *[\\\\\\\`\\"\\\$]*)
16070 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16073 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16075 esac
16076 done
16078 ac_aux_dir='$ac_aux_dir'
16079 xsi_shell='$xsi_shell'
16080 lt_shell_append='$lt_shell_append'
16082 # See if we are running on zsh, and set the options which allow our
16083 # commands through without removal of \ escapes INIT.
16084 if test -n "\${ZSH_VERSION+set}" ; then
16085 setopt NO_GLOB_SUBST
16089 PACKAGE='$PACKAGE'
16090 VERSION='$VERSION'
16091 TIMESTAMP='$TIMESTAMP'
16092 RM='$RM'
16093 ofile='$ofile'
16100 _ACEOF
16102 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16104 # Handling of arguments.
16105 for ac_config_target in $ac_config_targets
16107 case $ac_config_target in
16108 "cc1plugin-config.h") CONFIG_HEADERS="$CONFIG_HEADERS cc1plugin-config.h" ;;
16109 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16110 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16111 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16113 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16114 esac
16115 done
16118 # If the user did not use the arguments to specify the items to instantiate,
16119 # then the envvar interface is used. Set only those that are not.
16120 # We use the long form for the default assignment because of an extremely
16121 # bizarre bug on SunOS 4.1.3.
16122 if $ac_need_defaults; then
16123 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16124 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16125 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16128 # Have a temporary directory for convenience. Make it in the build tree
16129 # simply because there is no reason against having it here, and in addition,
16130 # creating and moving files from /tmp can sometimes cause problems.
16131 # Hook for its removal unless debugging.
16132 # Note that there is a small window in which the directory will not be cleaned:
16133 # after its creation but before its name has been assigned to `$tmp'.
16134 $debug ||
16136 tmp= ac_tmp=
16137 trap 'exit_status=$?
16138 : "${ac_tmp:=$tmp}"
16139 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16141 trap 'as_fn_exit 1' 1 2 13 15
16143 # Create a (secure) tmp directory for tmp files.
16146 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16147 test -d "$tmp"
16148 } ||
16150 tmp=./conf$$-$RANDOM
16151 (umask 077 && mkdir "$tmp")
16152 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16153 ac_tmp=$tmp
16155 # Set up the scripts for CONFIG_FILES section.
16156 # No need to generate them if there are no CONFIG_FILES.
16157 # This happens for instance with `./config.status config.h'.
16158 if test -n "$CONFIG_FILES"; then
16161 ac_cr=`echo X | tr X '\015'`
16162 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16163 # But we know of no other shell where ac_cr would be empty at this
16164 # point, so we can use a bashism as a fallback.
16165 if test "x$ac_cr" = x; then
16166 eval ac_cr=\$\'\\r\'
16168 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16169 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16170 ac_cs_awk_cr='\\r'
16171 else
16172 ac_cs_awk_cr=$ac_cr
16175 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16176 _ACEOF
16180 echo "cat >conf$$subs.awk <<_ACEOF" &&
16181 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16182 echo "_ACEOF"
16183 } >conf$$subs.sh ||
16184 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16185 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16186 ac_delim='%!_!# '
16187 for ac_last_try in false false false false false :; do
16188 . ./conf$$subs.sh ||
16189 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16191 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16192 if test $ac_delim_n = $ac_delim_num; then
16193 break
16194 elif $ac_last_try; then
16195 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16196 else
16197 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16199 done
16200 rm -f conf$$subs.sh
16202 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16203 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16204 _ACEOF
16205 sed -n '
16207 s/^/S["/; s/!.*/"]=/
16210 s/^[^!]*!//
16211 :repl
16212 t repl
16213 s/'"$ac_delim"'$//
16214 t delim
16217 s/\(.\{148\}\)..*/\1/
16218 t more1
16219 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16222 b repl
16223 :more1
16224 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16227 s/.\{148\}//
16228 t nl
16229 :delim
16231 s/\(.\{148\}\)..*/\1/
16232 t more2
16233 s/["\\]/\\&/g; s/^/"/; s/$/"/
16236 :more2
16237 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16240 s/.\{148\}//
16241 t delim
16242 ' <conf$$subs.awk | sed '
16243 /^[^""]/{
16245 s/\n//
16247 ' >>$CONFIG_STATUS || ac_write_fail=1
16248 rm -f conf$$subs.awk
16249 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16250 _ACAWK
16251 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16252 for (key in S) S_is_set[key] = 1
16253 FS = "\a"
16257 line = $ 0
16258 nfields = split(line, field, "@")
16259 substed = 0
16260 len = length(field[1])
16261 for (i = 2; i < nfields; i++) {
16262 key = field[i]
16263 keylen = length(key)
16264 if (S_is_set[key]) {
16265 value = S[key]
16266 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16267 len += length(value) + length(field[++i])
16268 substed = 1
16269 } else
16270 len += 1 + keylen
16273 print line
16276 _ACAWK
16277 _ACEOF
16278 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16279 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16280 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16281 else
16283 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16284 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16285 _ACEOF
16287 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16288 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16289 # trailing colons and then remove the whole line if VPATH becomes empty
16290 # (actually we leave an empty line to preserve line numbers).
16291 if test "x$srcdir" = x.; then
16292 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16294 s///
16295 s/^/:/
16296 s/[ ]*$/:/
16297 s/:\$(srcdir):/:/g
16298 s/:\${srcdir}:/:/g
16299 s/:@srcdir@:/:/g
16300 s/^:*//
16301 s/:*$//
16303 s/\(=[ ]*\).*/\1/
16305 s/\n//
16306 s/^[^=]*=[ ]*$//
16310 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16311 fi # test -n "$CONFIG_FILES"
16313 # Set up the scripts for CONFIG_HEADERS section.
16314 # No need to generate them if there are no CONFIG_HEADERS.
16315 # This happens for instance with `./config.status Makefile'.
16316 if test -n "$CONFIG_HEADERS"; then
16317 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16318 BEGIN {
16319 _ACEOF
16321 # Transform confdefs.h into an awk script `defines.awk', embedded as
16322 # here-document in config.status, that substitutes the proper values into
16323 # config.h.in to produce config.h.
16325 # Create a delimiter string that does not exist in confdefs.h, to ease
16326 # handling of long lines.
16327 ac_delim='%!_!# '
16328 for ac_last_try in false false :; do
16329 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16330 if test -z "$ac_tt"; then
16331 break
16332 elif $ac_last_try; then
16333 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16334 else
16335 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16337 done
16339 # For the awk script, D is an array of macro values keyed by name,
16340 # likewise P contains macro parameters if any. Preserve backslash
16341 # newline sequences.
16343 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16344 sed -n '
16345 s/.\{148\}/&'"$ac_delim"'/g
16346 t rset
16347 :rset
16348 s/^[ ]*#[ ]*define[ ][ ]*/ /
16349 t def
16351 :def
16352 s/\\$//
16353 t bsnl
16354 s/["\\]/\\&/g
16355 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16356 D["\1"]=" \3"/p
16357 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16359 :bsnl
16360 s/["\\]/\\&/g
16361 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16362 D["\1"]=" \3\\\\\\n"\\/p
16363 t cont
16364 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16365 t cont
16367 :cont
16369 s/.\{148\}/&'"$ac_delim"'/g
16370 t clear
16371 :clear
16372 s/\\$//
16373 t bsnlc
16374 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16376 :bsnlc
16377 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16378 b cont
16379 ' <confdefs.h | sed '
16380 s/'"$ac_delim"'/"\\\
16381 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16383 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16384 for (key in D) D_is_set[key] = 1
16385 FS = "\a"
16387 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16388 line = \$ 0
16389 split(line, arg, " ")
16390 if (arg[1] == "#") {
16391 defundef = arg[2]
16392 mac1 = arg[3]
16393 } else {
16394 defundef = substr(arg[1], 2)
16395 mac1 = arg[2]
16397 split(mac1, mac2, "(") #)
16398 macro = mac2[1]
16399 prefix = substr(line, 1, index(line, defundef) - 1)
16400 if (D_is_set[macro]) {
16401 # Preserve the white space surrounding the "#".
16402 print prefix "define", macro P[macro] D[macro]
16403 next
16404 } else {
16405 # Replace #undef with comments. This is necessary, for example,
16406 # in the case of _POSIX_SOURCE, which is predefined and required
16407 # on some systems where configure will not decide to define it.
16408 if (defundef == "undef") {
16409 print "/*", prefix defundef, macro, "*/"
16410 next
16414 { print }
16415 _ACAWK
16416 _ACEOF
16417 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16418 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16419 fi # test -n "$CONFIG_HEADERS"
16422 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16423 shift
16424 for ac_tag
16426 case $ac_tag in
16427 :[FHLC]) ac_mode=$ac_tag; continue;;
16428 esac
16429 case $ac_mode$ac_tag in
16430 :[FHL]*:*);;
16431 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16432 :[FH]-) ac_tag=-:-;;
16433 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16434 esac
16435 ac_save_IFS=$IFS
16436 IFS=:
16437 set x $ac_tag
16438 IFS=$ac_save_IFS
16439 shift
16440 ac_file=$1
16441 shift
16443 case $ac_mode in
16444 :L) ac_source=$1;;
16445 :[FH])
16446 ac_file_inputs=
16447 for ac_f
16449 case $ac_f in
16450 -) ac_f="$ac_tmp/stdin";;
16451 *) # Look for the file first in the build tree, then in the source tree
16452 # (if the path is not absolute). The absolute path cannot be DOS-style,
16453 # because $ac_f cannot contain `:'.
16454 test -f "$ac_f" ||
16455 case $ac_f in
16456 [\\/$]*) false;;
16457 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16458 esac ||
16459 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16460 esac
16461 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16462 as_fn_append ac_file_inputs " '$ac_f'"
16463 done
16465 # Let's still pretend it is `configure' which instantiates (i.e., don't
16466 # use $as_me), people would be surprised to read:
16467 # /* config.h. Generated by config.status. */
16468 configure_input='Generated from '`
16469 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16470 `' by configure.'
16471 if test x"$ac_file" != x-; then
16472 configure_input="$ac_file. $configure_input"
16473 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16474 $as_echo "$as_me: creating $ac_file" >&6;}
16476 # Neutralize special characters interpreted by sed in replacement strings.
16477 case $configure_input in #(
16478 *\&* | *\|* | *\\* )
16479 ac_sed_conf_input=`$as_echo "$configure_input" |
16480 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16481 *) ac_sed_conf_input=$configure_input;;
16482 esac
16484 case $ac_tag in
16485 *:-:* | *:-) cat >"$ac_tmp/stdin" \
16486 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16487 esac
16489 esac
16491 ac_dir=`$as_dirname -- "$ac_file" ||
16492 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16493 X"$ac_file" : 'X\(//\)[^/]' \| \
16494 X"$ac_file" : 'X\(//\)$' \| \
16495 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16496 $as_echo X"$ac_file" |
16497 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16498 s//\1/
16501 /^X\(\/\/\)[^/].*/{
16502 s//\1/
16505 /^X\(\/\/\)$/{
16506 s//\1/
16509 /^X\(\/\).*/{
16510 s//\1/
16513 s/.*/./; q'`
16514 as_dir="$ac_dir"; as_fn_mkdir_p
16515 ac_builddir=.
16517 case "$ac_dir" in
16518 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16520 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16521 # A ".." for each directory in $ac_dir_suffix.
16522 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16523 case $ac_top_builddir_sub in
16524 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16525 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16526 esac ;;
16527 esac
16528 ac_abs_top_builddir=$ac_pwd
16529 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16530 # for backward compatibility:
16531 ac_top_builddir=$ac_top_build_prefix
16533 case $srcdir in
16534 .) # We are building in place.
16535 ac_srcdir=.
16536 ac_top_srcdir=$ac_top_builddir_sub
16537 ac_abs_top_srcdir=$ac_pwd ;;
16538 [\\/]* | ?:[\\/]* ) # Absolute name.
16539 ac_srcdir=$srcdir$ac_dir_suffix;
16540 ac_top_srcdir=$srcdir
16541 ac_abs_top_srcdir=$srcdir ;;
16542 *) # Relative name.
16543 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16544 ac_top_srcdir=$ac_top_build_prefix$srcdir
16545 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16546 esac
16547 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16550 case $ac_mode in
16553 # CONFIG_FILE
16556 case $INSTALL in
16557 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16558 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16559 esac
16560 ac_MKDIR_P=$MKDIR_P
16561 case $MKDIR_P in
16562 [\\/$]* | ?:[\\/]* ) ;;
16563 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16564 esac
16565 _ACEOF
16567 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16568 # If the template does not know about datarootdir, expand it.
16569 # FIXME: This hack should be removed a few years after 2.60.
16570 ac_datarootdir_hack=; ac_datarootdir_seen=
16571 ac_sed_dataroot='
16572 /datarootdir/ {
16576 /@datadir@/p
16577 /@docdir@/p
16578 /@infodir@/p
16579 /@localedir@/p
16580 /@mandir@/p'
16581 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16582 *datarootdir*) ac_datarootdir_seen=yes;;
16583 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16584 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16585 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16586 _ACEOF
16587 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16588 ac_datarootdir_hack='
16589 s&@datadir@&$datadir&g
16590 s&@docdir@&$docdir&g
16591 s&@infodir@&$infodir&g
16592 s&@localedir@&$localedir&g
16593 s&@mandir@&$mandir&g
16594 s&\\\${datarootdir}&$datarootdir&g' ;;
16595 esac
16596 _ACEOF
16598 # Neutralize VPATH when `$srcdir' = `.'.
16599 # Shell code in configure.ac might set extrasub.
16600 # FIXME: do we really want to maintain this feature?
16601 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16602 ac_sed_extra="$ac_vpsub
16603 $extrasub
16604 _ACEOF
16605 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16607 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16608 s|@configure_input@|$ac_sed_conf_input|;t t
16609 s&@top_builddir@&$ac_top_builddir_sub&;t t
16610 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16611 s&@srcdir@&$ac_srcdir&;t t
16612 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16613 s&@top_srcdir@&$ac_top_srcdir&;t t
16614 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16615 s&@builddir@&$ac_builddir&;t t
16616 s&@abs_builddir@&$ac_abs_builddir&;t t
16617 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16618 s&@INSTALL@&$ac_INSTALL&;t t
16619 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16620 $ac_datarootdir_hack
16622 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16623 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16625 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16626 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16627 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16628 "$ac_tmp/out"`; test -z "$ac_out"; } &&
16629 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16630 which seems to be undefined. Please make sure it is defined" >&5
16631 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16632 which seems to be undefined. Please make sure it is defined" >&2;}
16634 rm -f "$ac_tmp/stdin"
16635 case $ac_file in
16636 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16637 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16638 esac \
16639 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16643 # CONFIG_HEADER
16645 if test x"$ac_file" != x-; then
16647 $as_echo "/* $configure_input */" \
16648 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16649 } >"$ac_tmp/config.h" \
16650 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16651 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16652 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16653 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16654 else
16655 rm -f "$ac_file"
16656 mv "$ac_tmp/config.h" "$ac_file" \
16657 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16659 else
16660 $as_echo "/* $configure_input */" \
16661 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16662 || as_fn_error $? "could not create -" "$LINENO" 5
16664 # Compute "$ac_file"'s index in $config_headers.
16665 _am_arg="$ac_file"
16666 _am_stamp_count=1
16667 for _am_header in $config_headers :; do
16668 case $_am_header in
16669 $_am_arg | $_am_arg:* )
16670 break ;;
16672 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16673 esac
16674 done
16675 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16676 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16677 X"$_am_arg" : 'X\(//\)[^/]' \| \
16678 X"$_am_arg" : 'X\(//\)$' \| \
16679 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16680 $as_echo X"$_am_arg" |
16681 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16682 s//\1/
16685 /^X\(\/\/\)[^/].*/{
16686 s//\1/
16689 /^X\(\/\/\)$/{
16690 s//\1/
16693 /^X\(\/\).*/{
16694 s//\1/
16697 s/.*/./; q'`/stamp-h$_am_stamp_count
16700 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16701 $as_echo "$as_me: executing $ac_file commands" >&6;}
16703 esac
16706 case $ac_file$ac_mode in
16707 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16708 # Older Autoconf quotes --file arguments for eval, but not when files
16709 # are listed without --file. Let's play safe and only enable the eval
16710 # if we detect the quoting.
16711 case $CONFIG_FILES in
16712 *\'*) eval set x "$CONFIG_FILES" ;;
16713 *) set x $CONFIG_FILES ;;
16714 esac
16715 shift
16716 for mf
16718 # Strip MF so we end up with the name of the file.
16719 mf=`echo "$mf" | sed -e 's/:.*$//'`
16720 # Check whether this is an Automake generated Makefile or not.
16721 # We used to match only the files named 'Makefile.in', but
16722 # some people rename them; so instead we look at the file content.
16723 # Grep'ing the first line is not enough: some people post-process
16724 # each Makefile.in and add a new line on top of each file to say so.
16725 # Grep'ing the whole file is not good either: AIX grep has a line
16726 # limit of 2048, but all sed's we know have understand at least 4000.
16727 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16728 dirpart=`$as_dirname -- "$mf" ||
16729 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16730 X"$mf" : 'X\(//\)[^/]' \| \
16731 X"$mf" : 'X\(//\)$' \| \
16732 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16733 $as_echo X"$mf" |
16734 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16735 s//\1/
16738 /^X\(\/\/\)[^/].*/{
16739 s//\1/
16742 /^X\(\/\/\)$/{
16743 s//\1/
16746 /^X\(\/\).*/{
16747 s//\1/
16750 s/.*/./; q'`
16751 else
16752 continue
16754 # Extract the definition of DEPDIR, am__include, and am__quote
16755 # from the Makefile without running 'make'.
16756 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16757 test -z "$DEPDIR" && continue
16758 am__include=`sed -n 's/^am__include = //p' < "$mf"`
16759 test -z "$am__include" && continue
16760 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16761 # Find all dependency output files, they are included files with
16762 # $(DEPDIR) in their names. We invoke sed twice because it is the
16763 # simplest approach to changing $(DEPDIR) to its actual value in the
16764 # expansion.
16765 for file in `sed -n "
16766 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16767 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
16768 # Make sure the directory exists.
16769 test -f "$dirpart/$file" && continue
16770 fdir=`$as_dirname -- "$file" ||
16771 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16772 X"$file" : 'X\(//\)[^/]' \| \
16773 X"$file" : 'X\(//\)$' \| \
16774 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16775 $as_echo X"$file" |
16776 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16777 s//\1/
16780 /^X\(\/\/\)[^/].*/{
16781 s//\1/
16784 /^X\(\/\/\)$/{
16785 s//\1/
16788 /^X\(\/\).*/{
16789 s//\1/
16792 s/.*/./; q'`
16793 as_dir=$dirpart/$fdir; as_fn_mkdir_p
16794 # echo "creating $dirpart/$file"
16795 echo '# dummy' > "$dirpart/$file"
16796 done
16797 done
16800 "libtool":C)
16802 # See if we are running on zsh, and set the options which allow our
16803 # commands through without removal of \ escapes.
16804 if test -n "${ZSH_VERSION+set}" ; then
16805 setopt NO_GLOB_SUBST
16808 cfgfile="${ofile}T"
16809 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16810 $RM "$cfgfile"
16812 cat <<_LT_EOF >> "$cfgfile"
16813 #! $SHELL
16815 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16816 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16817 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16818 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16820 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16821 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
16822 # Written by Gordon Matzigkeit, 1996
16824 # This file is part of GNU Libtool.
16826 # GNU Libtool is free software; you can redistribute it and/or
16827 # modify it under the terms of the GNU General Public License as
16828 # published by the Free Software Foundation; either version 2 of
16829 # the License, or (at your option) any later version.
16831 # As a special exception to the GNU General Public License,
16832 # if you distribute this file as part of a program or library that
16833 # is built using GNU Libtool, you may include this file under the
16834 # same distribution terms that you use for the rest of that program.
16836 # GNU Libtool is distributed in the hope that it will be useful,
16837 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16838 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16839 # GNU General Public License for more details.
16841 # You should have received a copy of the GNU General Public License
16842 # along with GNU Libtool; see the file COPYING. If not, a copy
16843 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16844 # obtained by writing to the Free Software Foundation, Inc.,
16845 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16848 # The names of the tagged configurations supported by this script.
16849 available_tags="CXX "
16851 # ### BEGIN LIBTOOL CONFIG
16853 # Which release of libtool.m4 was used?
16854 macro_version=$macro_version
16855 macro_revision=$macro_revision
16857 # Whether or not to build static libraries.
16858 build_old_libs=$enable_static
16860 # Whether or not to build shared libraries.
16861 build_libtool_libs=$enable_shared
16863 # What type of objects to build.
16864 pic_mode=$pic_mode
16866 # Whether or not to optimize for fast installation.
16867 fast_install=$enable_fast_install
16869 # Shell to use when invoking shell scripts.
16870 SHELL=$lt_SHELL
16872 # An echo program that protects backslashes.
16873 ECHO=$lt_ECHO
16875 # The host system.
16876 host_alias=$host_alias
16877 host=$host
16878 host_os=$host_os
16880 # The build system.
16881 build_alias=$build_alias
16882 build=$build
16883 build_os=$build_os
16885 # A sed program that does not truncate output.
16886 SED=$lt_SED
16888 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16889 Xsed="\$SED -e 1s/^X//"
16891 # A grep program that handles long lines.
16892 GREP=$lt_GREP
16894 # An ERE matcher.
16895 EGREP=$lt_EGREP
16897 # A literal string matcher.
16898 FGREP=$lt_FGREP
16900 # A BSD- or MS-compatible name lister.
16901 NM=$lt_NM
16903 # Whether we need soft or hard links.
16904 LN_S=$lt_LN_S
16906 # What is the maximum length of a command?
16907 max_cmd_len=$max_cmd_len
16909 # Object file suffix (normally "o").
16910 objext=$ac_objext
16912 # Executable file suffix (normally "").
16913 exeext=$exeext
16915 # whether the shell understands "unset".
16916 lt_unset=$lt_unset
16918 # turn spaces into newlines.
16919 SP2NL=$lt_lt_SP2NL
16921 # turn newlines into spaces.
16922 NL2SP=$lt_lt_NL2SP
16924 # An object symbol dumper.
16925 OBJDUMP=$lt_OBJDUMP
16927 # Method to check whether dependent libraries are shared objects.
16928 deplibs_check_method=$lt_deplibs_check_method
16930 # Command to use when deplibs_check_method == "file_magic".
16931 file_magic_cmd=$lt_file_magic_cmd
16933 # The archiver.
16934 AR=$lt_AR
16935 AR_FLAGS=$lt_AR_FLAGS
16937 # A symbol stripping program.
16938 STRIP=$lt_STRIP
16940 # Commands used to install an old-style archive.
16941 RANLIB=$lt_RANLIB
16942 old_postinstall_cmds=$lt_old_postinstall_cmds
16943 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16945 # Whether to use a lock for old archive extraction.
16946 lock_old_archive_extraction=$lock_old_archive_extraction
16948 # A C compiler.
16949 LTCC=$lt_CC
16951 # LTCC compiler flags.
16952 LTCFLAGS=$lt_CFLAGS
16954 # Take the output of nm and produce a listing of raw symbols and C names.
16955 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16957 # Transform the output of nm in a proper C declaration.
16958 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16960 # Transform the output of nm in a C name address pair.
16961 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16963 # Transform the output of nm in a C name address pair when lib prefix is needed.
16964 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16966 # The name of the directory that contains temporary libtool files.
16967 objdir=$objdir
16969 # Used to examine libraries when file_magic_cmd begins with "file".
16970 MAGIC_CMD=$MAGIC_CMD
16972 # Must we lock files when doing compilation?
16973 need_locks=$lt_need_locks
16975 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16976 DSYMUTIL=$lt_DSYMUTIL
16978 # Tool to change global to local symbols on Mac OS X.
16979 NMEDIT=$lt_NMEDIT
16981 # Tool to manipulate fat objects and archives on Mac OS X.
16982 LIPO=$lt_LIPO
16984 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
16985 OTOOL=$lt_OTOOL
16987 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16988 OTOOL64=$lt_OTOOL64
16990 # Old archive suffix (normally "a").
16991 libext=$libext
16993 # Shared library suffix (normally ".so").
16994 shrext_cmds=$lt_shrext_cmds
16996 # The commands to extract the exported symbol list from a shared archive.
16997 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16999 # Variables whose values should be saved in libtool wrapper scripts and
17000 # restored at link time.
17001 variables_saved_for_relink=$lt_variables_saved_for_relink
17003 # Do we need the "lib" prefix for modules?
17004 need_lib_prefix=$need_lib_prefix
17006 # Do we need a version for libraries?
17007 need_version=$need_version
17009 # Library versioning type.
17010 version_type=$version_type
17012 # Shared library runtime path variable.
17013 runpath_var=$runpath_var
17015 # Shared library path variable.
17016 shlibpath_var=$shlibpath_var
17018 # Is shlibpath searched before the hard-coded library search path?
17019 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17021 # Format of library name prefix.
17022 libname_spec=$lt_libname_spec
17024 # List of archive names. First name is the real one, the rest are links.
17025 # The last name is the one that the linker finds with -lNAME
17026 library_names_spec=$lt_library_names_spec
17028 # The coded name of the library, if different from the real name.
17029 soname_spec=$lt_soname_spec
17031 # Permission mode override for installation of shared libraries.
17032 install_override_mode=$lt_install_override_mode
17034 # Command to use after installation of a shared archive.
17035 postinstall_cmds=$lt_postinstall_cmds
17037 # Command to use after uninstallation of a shared archive.
17038 postuninstall_cmds=$lt_postuninstall_cmds
17040 # Commands used to finish a libtool library installation in a directory.
17041 finish_cmds=$lt_finish_cmds
17043 # As "finish_cmds", except a single script fragment to be evaled but
17044 # not shown.
17045 finish_eval=$lt_finish_eval
17047 # Whether we should hardcode library paths into libraries.
17048 hardcode_into_libs=$hardcode_into_libs
17050 # Compile-time system search path for libraries.
17051 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17053 # Run-time system search path for libraries.
17054 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17056 # Whether dlopen is supported.
17057 dlopen_support=$enable_dlopen
17059 # Whether dlopen of programs is supported.
17060 dlopen_self=$enable_dlopen_self
17062 # Whether dlopen of statically linked programs is supported.
17063 dlopen_self_static=$enable_dlopen_self_static
17065 # Commands to strip libraries.
17066 old_striplib=$lt_old_striplib
17067 striplib=$lt_striplib
17070 # The linker used to build libraries.
17071 LD=$lt_LD
17073 # How to create reloadable object files.
17074 reload_flag=$lt_reload_flag
17075 reload_cmds=$lt_reload_cmds
17077 # Commands used to build an old-style archive.
17078 old_archive_cmds=$lt_old_archive_cmds
17080 # A language specific compiler.
17081 CC=$lt_compiler
17083 # Is the compiler the GNU compiler?
17084 with_gcc=$GCC
17086 # Compiler flag to turn off builtin functions.
17087 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17089 # How to pass a linker flag through the compiler.
17090 wl=$lt_lt_prog_compiler_wl
17092 # Additional compiler flags for building library objects.
17093 pic_flag=$lt_lt_prog_compiler_pic
17095 # Compiler flag to prevent dynamic linking.
17096 link_static_flag=$lt_lt_prog_compiler_static
17098 # Does compiler simultaneously support -c and -o options?
17099 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17101 # Whether or not to add -lc for building shared libraries.
17102 build_libtool_need_lc=$archive_cmds_need_lc
17104 # Whether or not to disallow shared libs when runtime libs are static.
17105 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17107 # Compiler flag to allow reflexive dlopens.
17108 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17110 # Compiler flag to generate shared objects directly from archives.
17111 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17113 # Whether the compiler copes with passing no objects directly.
17114 compiler_needs_object=$lt_compiler_needs_object
17116 # Create an old-style archive from a shared archive.
17117 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17119 # Create a temporary old-style archive to link instead of a shared archive.
17120 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17122 # Commands used to build a shared archive.
17123 archive_cmds=$lt_archive_cmds
17124 archive_expsym_cmds=$lt_archive_expsym_cmds
17126 # Commands used to build a loadable module if different from building
17127 # a shared archive.
17128 module_cmds=$lt_module_cmds
17129 module_expsym_cmds=$lt_module_expsym_cmds
17131 # Whether we are building with GNU ld or not.
17132 with_gnu_ld=$lt_with_gnu_ld
17134 # Flag that allows shared libraries with undefined symbols to be built.
17135 allow_undefined_flag=$lt_allow_undefined_flag
17137 # Flag that enforces no undefined symbols.
17138 no_undefined_flag=$lt_no_undefined_flag
17140 # Flag to hardcode \$libdir into a binary during linking.
17141 # This must work even if \$libdir does not exist
17142 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17144 # If ld is used when linking, flag to hardcode \$libdir into a binary
17145 # during linking. This must work even if \$libdir does not exist.
17146 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17148 # Whether we need a single "-rpath" flag with a separated argument.
17149 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17151 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17152 # DIR into the resulting binary.
17153 hardcode_direct=$hardcode_direct
17155 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17156 # DIR into the resulting binary and the resulting library dependency is
17157 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17158 # library is relocated.
17159 hardcode_direct_absolute=$hardcode_direct_absolute
17161 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17162 # into the resulting binary.
17163 hardcode_minus_L=$hardcode_minus_L
17165 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17166 # into the resulting binary.
17167 hardcode_shlibpath_var=$hardcode_shlibpath_var
17169 # Set to "yes" if building a shared library automatically hardcodes DIR
17170 # into the library and all subsequent libraries and executables linked
17171 # against it.
17172 hardcode_automatic=$hardcode_automatic
17174 # Set to yes if linker adds runtime paths of dependent libraries
17175 # to runtime path list.
17176 inherit_rpath=$inherit_rpath
17178 # Whether libtool must link a program against all its dependency libraries.
17179 link_all_deplibs=$link_all_deplibs
17181 # Fix the shell variable \$srcfile for the compiler.
17182 fix_srcfile_path=$lt_fix_srcfile_path
17184 # Set to "yes" if exported symbols are required.
17185 always_export_symbols=$always_export_symbols
17187 # The commands to list exported symbols.
17188 export_symbols_cmds=$lt_export_symbols_cmds
17190 # Symbols that should not be listed in the preloaded symbols.
17191 exclude_expsyms=$lt_exclude_expsyms
17193 # Symbols that must always be exported.
17194 include_expsyms=$lt_include_expsyms
17196 # Commands necessary for linking programs (against libraries) with templates.
17197 prelink_cmds=$lt_prelink_cmds
17199 # Specify filename containing input files.
17200 file_list_spec=$lt_file_list_spec
17202 # How to hardcode a shared library path into an executable.
17203 hardcode_action=$hardcode_action
17205 # The directories searched by this compiler when creating a shared library.
17206 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
17208 # Dependencies to place before and after the objects being linked to
17209 # create a shared library.
17210 predep_objects=$lt_predep_objects
17211 postdep_objects=$lt_postdep_objects
17212 predeps=$lt_predeps
17213 postdeps=$lt_postdeps
17215 # The library search path used internally by the compiler when linking
17216 # a shared library.
17217 compiler_lib_search_path=$lt_compiler_lib_search_path
17219 # ### END LIBTOOL CONFIG
17221 _LT_EOF
17223 case $host_os in
17224 aix3*)
17225 cat <<\_LT_EOF >> "$cfgfile"
17226 # AIX sometimes has problems with the GCC collect2 program. For some
17227 # reason, if we set the COLLECT_NAMES environment variable, the problems
17228 # vanish in a puff of smoke.
17229 if test "X${COLLECT_NAMES+set}" != Xset; then
17230 COLLECT_NAMES=
17231 export COLLECT_NAMES
17233 _LT_EOF
17235 esac
17238 ltmain="$ac_aux_dir/ltmain.sh"
17241 # We use sed instead of cat because bash on DJGPP gets confused if
17242 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17243 # text mode, it properly converts lines to CR/LF. This bash problem
17244 # is reportedly fixed, but why not run on old versions too?
17245 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
17246 || (rm -f "$cfgfile"; exit 1)
17248 case $xsi_shell in
17249 yes)
17250 cat << \_LT_EOF >> "$cfgfile"
17252 # func_dirname file append nondir_replacement
17253 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
17254 # otherwise set result to NONDIR_REPLACEMENT.
17255 func_dirname ()
17257 case ${1} in
17258 */*) func_dirname_result="${1%/*}${2}" ;;
17259 * ) func_dirname_result="${3}" ;;
17260 esac
17263 # func_basename file
17264 func_basename ()
17266 func_basename_result="${1##*/}"
17269 # func_dirname_and_basename file append nondir_replacement
17270 # perform func_basename and func_dirname in a single function
17271 # call:
17272 # dirname: Compute the dirname of FILE. If nonempty,
17273 # add APPEND to the result, otherwise set result
17274 # to NONDIR_REPLACEMENT.
17275 # value returned in "$func_dirname_result"
17276 # basename: Compute filename of FILE.
17277 # value retuned in "$func_basename_result"
17278 # Implementation must be kept synchronized with func_dirname
17279 # and func_basename. For efficiency, we do not delegate to
17280 # those functions but instead duplicate the functionality here.
17281 func_dirname_and_basename ()
17283 case ${1} in
17284 */*) func_dirname_result="${1%/*}${2}" ;;
17285 * ) func_dirname_result="${3}" ;;
17286 esac
17287 func_basename_result="${1##*/}"
17290 # func_stripname prefix suffix name
17291 # strip PREFIX and SUFFIX off of NAME.
17292 # PREFIX and SUFFIX must not contain globbing or regex special
17293 # characters, hashes, percent signs, but SUFFIX may contain a leading
17294 # dot (in which case that matches only a dot).
17295 func_stripname ()
17297 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
17298 # positional parameters, so assign one to ordinary parameter first.
17299 func_stripname_result=${3}
17300 func_stripname_result=${func_stripname_result#"${1}"}
17301 func_stripname_result=${func_stripname_result%"${2}"}
17304 # func_opt_split
17305 func_opt_split ()
17307 func_opt_split_opt=${1%%=*}
17308 func_opt_split_arg=${1#*=}
17311 # func_lo2o object
17312 func_lo2o ()
17314 case ${1} in
17315 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
17316 *) func_lo2o_result=${1} ;;
17317 esac
17320 # func_xform libobj-or-source
17321 func_xform ()
17323 func_xform_result=${1%.*}.lo
17326 # func_arith arithmetic-term...
17327 func_arith ()
17329 func_arith_result=$(( $* ))
17332 # func_len string
17333 # STRING may not start with a hyphen.
17334 func_len ()
17336 func_len_result=${#1}
17339 _LT_EOF
17341 *) # Bourne compatible functions.
17342 cat << \_LT_EOF >> "$cfgfile"
17344 # func_dirname file append nondir_replacement
17345 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
17346 # otherwise set result to NONDIR_REPLACEMENT.
17347 func_dirname ()
17349 # Extract subdirectory from the argument.
17350 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
17351 if test "X$func_dirname_result" = "X${1}"; then
17352 func_dirname_result="${3}"
17353 else
17354 func_dirname_result="$func_dirname_result${2}"
17358 # func_basename file
17359 func_basename ()
17361 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
17365 # func_stripname prefix suffix name
17366 # strip PREFIX and SUFFIX off of NAME.
17367 # PREFIX and SUFFIX must not contain globbing or regex special
17368 # characters, hashes, percent signs, but SUFFIX may contain a leading
17369 # dot (in which case that matches only a dot).
17370 # func_strip_suffix prefix name
17371 func_stripname ()
17373 case ${2} in
17374 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
17375 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
17376 esac
17379 # sed scripts:
17380 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
17381 my_sed_long_arg='1s/^-[^=]*=//'
17383 # func_opt_split
17384 func_opt_split ()
17386 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
17387 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
17390 # func_lo2o object
17391 func_lo2o ()
17393 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
17396 # func_xform libobj-or-source
17397 func_xform ()
17399 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
17402 # func_arith arithmetic-term...
17403 func_arith ()
17405 func_arith_result=`expr "$@"`
17408 # func_len string
17409 # STRING may not start with a hyphen.
17410 func_len ()
17412 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
17415 _LT_EOF
17416 esac
17418 case $lt_shell_append in
17419 yes)
17420 cat << \_LT_EOF >> "$cfgfile"
17422 # func_append var value
17423 # Append VALUE to the end of shell variable VAR.
17424 func_append ()
17426 eval "$1+=\$2"
17428 _LT_EOF
17431 cat << \_LT_EOF >> "$cfgfile"
17433 # func_append var value
17434 # Append VALUE to the end of shell variable VAR.
17435 func_append ()
17437 eval "$1=\$$1\$2"
17440 _LT_EOF
17442 esac
17445 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
17446 || (rm -f "$cfgfile"; exit 1)
17448 mv -f "$cfgfile" "$ofile" ||
17449 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17450 chmod +x "$ofile"
17453 cat <<_LT_EOF >> "$ofile"
17455 # ### BEGIN LIBTOOL TAG CONFIG: CXX
17457 # The linker used to build libraries.
17458 LD=$lt_LD_CXX
17460 # How to create reloadable object files.
17461 reload_flag=$lt_reload_flag_CXX
17462 reload_cmds=$lt_reload_cmds_CXX
17464 # Commands used to build an old-style archive.
17465 old_archive_cmds=$lt_old_archive_cmds_CXX
17467 # A language specific compiler.
17468 CC=$lt_compiler_CXX
17470 # Is the compiler the GNU compiler?
17471 with_gcc=$GCC_CXX
17473 # Compiler flag to turn off builtin functions.
17474 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
17476 # How to pass a linker flag through the compiler.
17477 wl=$lt_lt_prog_compiler_wl_CXX
17479 # Additional compiler flags for building library objects.
17480 pic_flag=$lt_lt_prog_compiler_pic_CXX
17482 # Compiler flag to prevent dynamic linking.
17483 link_static_flag=$lt_lt_prog_compiler_static_CXX
17485 # Does compiler simultaneously support -c and -o options?
17486 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
17488 # Whether or not to add -lc for building shared libraries.
17489 build_libtool_need_lc=$archive_cmds_need_lc_CXX
17491 # Whether or not to disallow shared libs when runtime libs are static.
17492 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
17494 # Compiler flag to allow reflexive dlopens.
17495 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
17497 # Compiler flag to generate shared objects directly from archives.
17498 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
17500 # Whether the compiler copes with passing no objects directly.
17501 compiler_needs_object=$lt_compiler_needs_object_CXX
17503 # Create an old-style archive from a shared archive.
17504 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
17506 # Create a temporary old-style archive to link instead of a shared archive.
17507 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
17509 # Commands used to build a shared archive.
17510 archive_cmds=$lt_archive_cmds_CXX
17511 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
17513 # Commands used to build a loadable module if different from building
17514 # a shared archive.
17515 module_cmds=$lt_module_cmds_CXX
17516 module_expsym_cmds=$lt_module_expsym_cmds_CXX
17518 # Whether we are building with GNU ld or not.
17519 with_gnu_ld=$lt_with_gnu_ld_CXX
17521 # Flag that allows shared libraries with undefined symbols to be built.
17522 allow_undefined_flag=$lt_allow_undefined_flag_CXX
17524 # Flag that enforces no undefined symbols.
17525 no_undefined_flag=$lt_no_undefined_flag_CXX
17527 # Flag to hardcode \$libdir into a binary during linking.
17528 # This must work even if \$libdir does not exist
17529 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
17531 # If ld is used when linking, flag to hardcode \$libdir into a binary
17532 # during linking. This must work even if \$libdir does not exist.
17533 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
17535 # Whether we need a single "-rpath" flag with a separated argument.
17536 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
17538 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17539 # DIR into the resulting binary.
17540 hardcode_direct=$hardcode_direct_CXX
17542 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17543 # DIR into the resulting binary and the resulting library dependency is
17544 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17545 # library is relocated.
17546 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
17548 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17549 # into the resulting binary.
17550 hardcode_minus_L=$hardcode_minus_L_CXX
17552 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17553 # into the resulting binary.
17554 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
17556 # Set to "yes" if building a shared library automatically hardcodes DIR
17557 # into the library and all subsequent libraries and executables linked
17558 # against it.
17559 hardcode_automatic=$hardcode_automatic_CXX
17561 # Set to yes if linker adds runtime paths of dependent libraries
17562 # to runtime path list.
17563 inherit_rpath=$inherit_rpath_CXX
17565 # Whether libtool must link a program against all its dependency libraries.
17566 link_all_deplibs=$link_all_deplibs_CXX
17568 # Fix the shell variable \$srcfile for the compiler.
17569 fix_srcfile_path=$lt_fix_srcfile_path_CXX
17571 # Set to "yes" if exported symbols are required.
17572 always_export_symbols=$always_export_symbols_CXX
17574 # The commands to list exported symbols.
17575 export_symbols_cmds=$lt_export_symbols_cmds_CXX
17577 # Symbols that should not be listed in the preloaded symbols.
17578 exclude_expsyms=$lt_exclude_expsyms_CXX
17580 # Symbols that must always be exported.
17581 include_expsyms=$lt_include_expsyms_CXX
17583 # Commands necessary for linking programs (against libraries) with templates.
17584 prelink_cmds=$lt_prelink_cmds_CXX
17586 # Specify filename containing input files.
17587 file_list_spec=$lt_file_list_spec_CXX
17589 # How to hardcode a shared library path into an executable.
17590 hardcode_action=$hardcode_action_CXX
17592 # The directories searched by this compiler when creating a shared library.
17593 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
17595 # Dependencies to place before and after the objects being linked to
17596 # create a shared library.
17597 predep_objects=$lt_predep_objects_CXX
17598 postdep_objects=$lt_postdep_objects_CXX
17599 predeps=$lt_predeps_CXX
17600 postdeps=$lt_postdeps_CXX
17602 # The library search path used internally by the compiler when linking
17603 # a shared library.
17604 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
17606 # ### END LIBTOOL TAG CONFIG: CXX
17607 _LT_EOF
17611 esac
17612 done # for ac_tag
17615 as_fn_exit 0
17616 _ACEOF
17617 ac_clean_files=$ac_clean_files_save
17619 test $ac_write_fail = 0 ||
17620 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17623 # configure is writing to config.log, and then calls config.status.
17624 # config.status does its own redirection, appending to config.log.
17625 # Unfortunately, on DOS this fails, as config.log is still kept open
17626 # by configure, so config.status won't be able to write to it; its
17627 # output is simply discarded. So we exec the FD to /dev/null,
17628 # effectively closing config.log, so it can be properly (re)opened and
17629 # appended to by config.status. When coming back to configure, we
17630 # need to make the FD available again.
17631 if test "$no_create" != yes; then
17632 ac_cs_success=:
17633 ac_config_status_args=
17634 test "$silent" = yes &&
17635 ac_config_status_args="$ac_config_status_args --quiet"
17636 exec 5>/dev/null
17637 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17638 exec 5>>config.log
17639 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17640 # would make configure fail if this is the last instruction.
17641 $ac_cs_success || as_fn_exit 1
17643 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17644 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17645 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}