testsuite: p8vector-int128 require int128 not lp64.
[official-gcc.git] / libcc1 / configure
blob37dbeac490806a558d32b73c1c8632ce09d04864
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 CET_HOST_FLAGS
646 visibility
647 CXXCPP
648 am__fastdepCXX_FALSE
649 am__fastdepCXX_TRUE
650 CXXDEPMODE
651 ac_ct_CXX
652 CXXFLAGS
654 OTOOL64
655 OTOOL
656 LIPO
657 NMEDIT
658 DSYMUTIL
659 RANLIB
661 OBJDUMP
662 LN_S
664 ac_ct_DUMPBIN
665 DUMPBIN
667 FGREP
669 LIBTOOL
670 MAINT
671 MAINTAINER_MODE_FALSE
672 MAINTAINER_MODE_TRUE
673 AM_BACKSLASH
674 AM_DEFAULT_VERBOSITY
675 AM_DEFAULT_V
676 AM_V
677 am__fastdepCC_FALSE
678 am__fastdepCC_TRUE
679 CCDEPMODE
680 am__nodep
681 AMDEPBACKSLASH
682 AMDEP_FALSE
683 AMDEP_TRUE
684 am__quote
685 am__include
686 DEPDIR
687 am__untar
688 am__tar
689 AMTAR
690 am__leading_dot
691 SET_MAKE
693 mkdir_p
694 MKDIR_P
695 INSTALL_STRIP_PROGRAM
696 STRIP
697 install_sh
698 MAKEINFO
699 AUTOHEADER
700 AUTOMAKE
701 AUTOCONF
702 ACLOCAL
703 VERSION
704 PACKAGE
705 CYGPATH_W
706 am__isrc
707 INSTALL_DATA
708 INSTALL_SCRIPT
709 INSTALL_PROGRAM
710 target_subdir
711 host_subdir
712 build_subdir
713 build_libsubdir
714 target_noncanonical
715 EGREP
716 GREP
718 OBJEXT
719 EXEEXT
720 ac_ct_CC
721 CPPFLAGS
722 LDFLAGS
723 CFLAGS
725 target_os
726 target_vendor
727 target_cpu
728 target
729 host_os
730 host_vendor
731 host_cpu
732 host
733 build_os
734 build_vendor
735 build_cpu
736 build
737 target_alias
738 host_alias
739 build_alias
740 LIBS
741 ECHO_T
742 ECHO_N
743 ECHO_C
744 DEFS
745 mandir
746 localedir
747 libdir
748 psdir
749 pdfdir
750 dvidir
751 htmldir
752 infodir
753 docdir
754 oldincludedir
755 includedir
756 localstatedir
757 sharedstatedir
758 sysconfdir
759 datadir
760 datarootdir
761 libexecdir
762 sbindir
763 bindir
764 program_transform_name
765 prefix
766 exec_prefix
767 PACKAGE_URL
768 PACKAGE_BUGREPORT
769 PACKAGE_STRING
770 PACKAGE_VERSION
771 PACKAGE_TARNAME
772 PACKAGE_NAME
773 PATH_SEPARATOR
774 SHELL'
775 ac_subst_files=''
776 ac_user_opts='
777 enable_option_checking
778 with_build_libsubdir
779 enable_dependency_tracking
780 enable_silent_rules
781 enable_maintainer_mode
782 enable_static
783 enable_shared
784 with_pic
785 enable_fast_install
786 with_gnu_ld
787 enable_libtool_lock
788 enable_cet
789 with_gcc_major_version_only
790 enable_werror_always
791 enable_plugin
793 ac_precious_vars='build_alias
794 host_alias
795 target_alias
797 CFLAGS
798 LDFLAGS
799 LIBS
800 CPPFLAGS
803 CXXFLAGS
805 CXXCPP
806 GMPINC'
809 # Initialize some variables set by options.
810 ac_init_help=
811 ac_init_version=false
812 ac_unrecognized_opts=
813 ac_unrecognized_sep=
814 # The variables have the same names as the options, with
815 # dashes changed to underlines.
816 cache_file=/dev/null
817 exec_prefix=NONE
818 no_create=
819 no_recursion=
820 prefix=NONE
821 program_prefix=NONE
822 program_suffix=NONE
823 program_transform_name=s,x,x,
824 silent=
825 site=
826 srcdir=
827 verbose=
828 x_includes=NONE
829 x_libraries=NONE
831 # Installation directory options.
832 # These are left unexpanded so users can "make install exec_prefix=/foo"
833 # and all the variables that are supposed to be based on exec_prefix
834 # by default will actually change.
835 # Use braces instead of parens because sh, perl, etc. also accept them.
836 # (The list follows the same order as the GNU Coding Standards.)
837 bindir='${exec_prefix}/bin'
838 sbindir='${exec_prefix}/sbin'
839 libexecdir='${exec_prefix}/libexec'
840 datarootdir='${prefix}/share'
841 datadir='${datarootdir}'
842 sysconfdir='${prefix}/etc'
843 sharedstatedir='${prefix}/com'
844 localstatedir='${prefix}/var'
845 includedir='${prefix}/include'
846 oldincludedir='/usr/include'
847 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
848 infodir='${datarootdir}/info'
849 htmldir='${docdir}'
850 dvidir='${docdir}'
851 pdfdir='${docdir}'
852 psdir='${docdir}'
853 libdir='${exec_prefix}/lib'
854 localedir='${datarootdir}/locale'
855 mandir='${datarootdir}/man'
857 ac_prev=
858 ac_dashdash=
859 for ac_option
861 # If the previous option needs an argument, assign it.
862 if test -n "$ac_prev"; then
863 eval $ac_prev=\$ac_option
864 ac_prev=
865 continue
868 case $ac_option in
869 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
870 *=) ac_optarg= ;;
871 *) ac_optarg=yes ;;
872 esac
874 # Accept the important Cygnus configure options, so we can diagnose typos.
876 case $ac_dashdash$ac_option in
878 ac_dashdash=yes ;;
880 -bindir | --bindir | --bindi | --bind | --bin | --bi)
881 ac_prev=bindir ;;
882 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
883 bindir=$ac_optarg ;;
885 -build | --build | --buil | --bui | --bu)
886 ac_prev=build_alias ;;
887 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
888 build_alias=$ac_optarg ;;
890 -cache-file | --cache-file | --cache-fil | --cache-fi \
891 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
892 ac_prev=cache_file ;;
893 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
894 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
895 cache_file=$ac_optarg ;;
897 --config-cache | -C)
898 cache_file=config.cache ;;
900 -datadir | --datadir | --datadi | --datad)
901 ac_prev=datadir ;;
902 -datadir=* | --datadir=* | --datadi=* | --datad=*)
903 datadir=$ac_optarg ;;
905 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
906 | --dataroo | --dataro | --datar)
907 ac_prev=datarootdir ;;
908 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
909 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
910 datarootdir=$ac_optarg ;;
912 -disable-* | --disable-*)
913 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
914 # Reject names that are not valid shell variable names.
915 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
916 as_fn_error $? "invalid feature name: $ac_useropt"
917 ac_useropt_orig=$ac_useropt
918 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
919 case $ac_user_opts in
921 "enable_$ac_useropt"
922 "*) ;;
923 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
924 ac_unrecognized_sep=', ';;
925 esac
926 eval enable_$ac_useropt=no ;;
928 -docdir | --docdir | --docdi | --doc | --do)
929 ac_prev=docdir ;;
930 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
931 docdir=$ac_optarg ;;
933 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
934 ac_prev=dvidir ;;
935 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
936 dvidir=$ac_optarg ;;
938 -enable-* | --enable-*)
939 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
940 # Reject names that are not valid shell variable names.
941 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
942 as_fn_error $? "invalid feature name: $ac_useropt"
943 ac_useropt_orig=$ac_useropt
944 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
945 case $ac_user_opts in
947 "enable_$ac_useropt"
948 "*) ;;
949 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
950 ac_unrecognized_sep=', ';;
951 esac
952 eval enable_$ac_useropt=\$ac_optarg ;;
954 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
955 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
956 | --exec | --exe | --ex)
957 ac_prev=exec_prefix ;;
958 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
959 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
960 | --exec=* | --exe=* | --ex=*)
961 exec_prefix=$ac_optarg ;;
963 -gas | --gas | --ga | --g)
964 # Obsolete; use --with-gas.
965 with_gas=yes ;;
967 -help | --help | --hel | --he | -h)
968 ac_init_help=long ;;
969 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
970 ac_init_help=recursive ;;
971 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
972 ac_init_help=short ;;
974 -host | --host | --hos | --ho)
975 ac_prev=host_alias ;;
976 -host=* | --host=* | --hos=* | --ho=*)
977 host_alias=$ac_optarg ;;
979 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
980 ac_prev=htmldir ;;
981 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
982 | --ht=*)
983 htmldir=$ac_optarg ;;
985 -includedir | --includedir | --includedi | --included | --include \
986 | --includ | --inclu | --incl | --inc)
987 ac_prev=includedir ;;
988 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
989 | --includ=* | --inclu=* | --incl=* | --inc=*)
990 includedir=$ac_optarg ;;
992 -infodir | --infodir | --infodi | --infod | --info | --inf)
993 ac_prev=infodir ;;
994 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
995 infodir=$ac_optarg ;;
997 -libdir | --libdir | --libdi | --libd)
998 ac_prev=libdir ;;
999 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1000 libdir=$ac_optarg ;;
1002 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1003 | --libexe | --libex | --libe)
1004 ac_prev=libexecdir ;;
1005 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1006 | --libexe=* | --libex=* | --libe=*)
1007 libexecdir=$ac_optarg ;;
1009 -localedir | --localedir | --localedi | --localed | --locale)
1010 ac_prev=localedir ;;
1011 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1012 localedir=$ac_optarg ;;
1014 -localstatedir | --localstatedir | --localstatedi | --localstated \
1015 | --localstate | --localstat | --localsta | --localst | --locals)
1016 ac_prev=localstatedir ;;
1017 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1018 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1019 localstatedir=$ac_optarg ;;
1021 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1022 ac_prev=mandir ;;
1023 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1024 mandir=$ac_optarg ;;
1026 -nfp | --nfp | --nf)
1027 # Obsolete; use --without-fp.
1028 with_fp=no ;;
1030 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1031 | --no-cr | --no-c | -n)
1032 no_create=yes ;;
1034 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1035 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1036 no_recursion=yes ;;
1038 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1039 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1040 | --oldin | --oldi | --old | --ol | --o)
1041 ac_prev=oldincludedir ;;
1042 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1043 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1044 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1045 oldincludedir=$ac_optarg ;;
1047 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1048 ac_prev=prefix ;;
1049 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1050 prefix=$ac_optarg ;;
1052 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1053 | --program-pre | --program-pr | --program-p)
1054 ac_prev=program_prefix ;;
1055 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1056 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1057 program_prefix=$ac_optarg ;;
1059 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1060 | --program-suf | --program-su | --program-s)
1061 ac_prev=program_suffix ;;
1062 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1063 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1064 program_suffix=$ac_optarg ;;
1066 -program-transform-name | --program-transform-name \
1067 | --program-transform-nam | --program-transform-na \
1068 | --program-transform-n | --program-transform- \
1069 | --program-transform | --program-transfor \
1070 | --program-transfo | --program-transf \
1071 | --program-trans | --program-tran \
1072 | --progr-tra | --program-tr | --program-t)
1073 ac_prev=program_transform_name ;;
1074 -program-transform-name=* | --program-transform-name=* \
1075 | --program-transform-nam=* | --program-transform-na=* \
1076 | --program-transform-n=* | --program-transform-=* \
1077 | --program-transform=* | --program-transfor=* \
1078 | --program-transfo=* | --program-transf=* \
1079 | --program-trans=* | --program-tran=* \
1080 | --progr-tra=* | --program-tr=* | --program-t=*)
1081 program_transform_name=$ac_optarg ;;
1083 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1084 ac_prev=pdfdir ;;
1085 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1086 pdfdir=$ac_optarg ;;
1088 -psdir | --psdir | --psdi | --psd | --ps)
1089 ac_prev=psdir ;;
1090 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1091 psdir=$ac_optarg ;;
1093 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1094 | -silent | --silent | --silen | --sile | --sil)
1095 silent=yes ;;
1097 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1098 ac_prev=sbindir ;;
1099 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1100 | --sbi=* | --sb=*)
1101 sbindir=$ac_optarg ;;
1103 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1104 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1105 | --sharedst | --shareds | --shared | --share | --shar \
1106 | --sha | --sh)
1107 ac_prev=sharedstatedir ;;
1108 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1109 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1110 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1111 | --sha=* | --sh=*)
1112 sharedstatedir=$ac_optarg ;;
1114 -site | --site | --sit)
1115 ac_prev=site ;;
1116 -site=* | --site=* | --sit=*)
1117 site=$ac_optarg ;;
1119 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1120 ac_prev=srcdir ;;
1121 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1122 srcdir=$ac_optarg ;;
1124 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1125 | --syscon | --sysco | --sysc | --sys | --sy)
1126 ac_prev=sysconfdir ;;
1127 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1128 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1129 sysconfdir=$ac_optarg ;;
1131 -target | --target | --targe | --targ | --tar | --ta | --t)
1132 ac_prev=target_alias ;;
1133 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1134 target_alias=$ac_optarg ;;
1136 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1137 verbose=yes ;;
1139 -version | --version | --versio | --versi | --vers | -V)
1140 ac_init_version=: ;;
1142 -with-* | --with-*)
1143 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1144 # Reject names that are not valid shell variable names.
1145 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1146 as_fn_error $? "invalid package name: $ac_useropt"
1147 ac_useropt_orig=$ac_useropt
1148 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1149 case $ac_user_opts in
1151 "with_$ac_useropt"
1152 "*) ;;
1153 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1154 ac_unrecognized_sep=', ';;
1155 esac
1156 eval with_$ac_useropt=\$ac_optarg ;;
1158 -without-* | --without-*)
1159 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1160 # Reject names that are not valid shell variable names.
1161 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1162 as_fn_error $? "invalid package name: $ac_useropt"
1163 ac_useropt_orig=$ac_useropt
1164 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1165 case $ac_user_opts in
1167 "with_$ac_useropt"
1168 "*) ;;
1169 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1170 ac_unrecognized_sep=', ';;
1171 esac
1172 eval with_$ac_useropt=no ;;
1174 --x)
1175 # Obsolete; use --with-x.
1176 with_x=yes ;;
1178 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1179 | --x-incl | --x-inc | --x-in | --x-i)
1180 ac_prev=x_includes ;;
1181 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1182 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1183 x_includes=$ac_optarg ;;
1185 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1186 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1187 ac_prev=x_libraries ;;
1188 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1189 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1190 x_libraries=$ac_optarg ;;
1192 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1193 Try \`$0 --help' for more information"
1196 *=*)
1197 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1198 # Reject names that are not valid shell variable names.
1199 case $ac_envvar in #(
1200 '' | [0-9]* | *[!_$as_cr_alnum]* )
1201 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1202 esac
1203 eval $ac_envvar=\$ac_optarg
1204 export $ac_envvar ;;
1207 # FIXME: should be removed in autoconf 3.0.
1208 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1209 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1210 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1211 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1214 esac
1215 done
1217 if test -n "$ac_prev"; then
1218 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1219 as_fn_error $? "missing argument to $ac_option"
1222 if test -n "$ac_unrecognized_opts"; then
1223 case $enable_option_checking in
1224 no) ;;
1225 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1226 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1227 esac
1230 # Check all directory arguments for consistency.
1231 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1232 datadir sysconfdir sharedstatedir localstatedir includedir \
1233 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1234 libdir localedir mandir
1236 eval ac_val=\$$ac_var
1237 # Remove trailing slashes.
1238 case $ac_val in
1239 */ )
1240 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1241 eval $ac_var=\$ac_val;;
1242 esac
1243 # Be sure to have absolute directory names.
1244 case $ac_val in
1245 [\\/$]* | ?:[\\/]* ) continue;;
1246 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1247 esac
1248 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1249 done
1251 # There might be people who depend on the old broken behavior: `$host'
1252 # used to hold the argument of --host etc.
1253 # FIXME: To remove some day.
1254 build=$build_alias
1255 host=$host_alias
1256 target=$target_alias
1258 # FIXME: To remove some day.
1259 if test "x$host_alias" != x; then
1260 if test "x$build_alias" = x; then
1261 cross_compiling=maybe
1262 elif test "x$build_alias" != "x$host_alias"; then
1263 cross_compiling=yes
1267 ac_tool_prefix=
1268 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1270 test "$silent" = yes && exec 6>/dev/null
1273 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1274 ac_ls_di=`ls -di .` &&
1275 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1276 as_fn_error $? "working directory cannot be determined"
1277 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1278 as_fn_error $? "pwd does not report name of working directory"
1281 # Find the source files, if location was not specified.
1282 if test -z "$srcdir"; then
1283 ac_srcdir_defaulted=yes
1284 # Try the directory containing this script, then the parent directory.
1285 ac_confdir=`$as_dirname -- "$as_myself" ||
1286 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1287 X"$as_myself" : 'X\(//\)[^/]' \| \
1288 X"$as_myself" : 'X\(//\)$' \| \
1289 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1290 $as_echo X"$as_myself" |
1291 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1292 s//\1/
1295 /^X\(\/\/\)[^/].*/{
1296 s//\1/
1299 /^X\(\/\/\)$/{
1300 s//\1/
1303 /^X\(\/\).*/{
1304 s//\1/
1307 s/.*/./; q'`
1308 srcdir=$ac_confdir
1309 if test ! -r "$srcdir/$ac_unique_file"; then
1310 srcdir=..
1312 else
1313 ac_srcdir_defaulted=no
1315 if test ! -r "$srcdir/$ac_unique_file"; then
1316 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1317 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1319 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1320 ac_abs_confdir=`(
1321 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1322 pwd)`
1323 # When building in place, set srcdir=.
1324 if test "$ac_abs_confdir" = "$ac_pwd"; then
1325 srcdir=.
1327 # Remove unnecessary trailing slashes from srcdir.
1328 # Double slashes in file names in object file debugging info
1329 # mess up M-x gdb in Emacs.
1330 case $srcdir in
1331 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1332 esac
1333 for ac_var in $ac_precious_vars; do
1334 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1335 eval ac_env_${ac_var}_value=\$${ac_var}
1336 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1337 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1338 done
1341 # Report the --help message.
1343 if test "$ac_init_help" = "long"; then
1344 # Omit some internal or obsolete options to make the list less imposing.
1345 # This message is too long to be a string in the A/UX 3.1 sh.
1346 cat <<_ACEOF
1347 \`configure' configures libcc1 version-unused to adapt to many kinds of systems.
1349 Usage: $0 [OPTION]... [VAR=VALUE]...
1351 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1352 VAR=VALUE. See below for descriptions of some of the useful variables.
1354 Defaults for the options are specified in brackets.
1356 Configuration:
1357 -h, --help display this help and exit
1358 --help=short display options specific to this package
1359 --help=recursive display the short help of all the included packages
1360 -V, --version display version information and exit
1361 -q, --quiet, --silent do not print \`checking ...' messages
1362 --cache-file=FILE cache test results in FILE [disabled]
1363 -C, --config-cache alias for \`--cache-file=config.cache'
1364 -n, --no-create do not create output files
1365 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1367 Installation directories:
1368 --prefix=PREFIX install architecture-independent files in PREFIX
1369 [$ac_default_prefix]
1370 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1371 [PREFIX]
1373 By default, \`make install' will install all the files in
1374 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1375 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1376 for instance \`--prefix=\$HOME'.
1378 For better control, use the options below.
1380 Fine tuning of the installation directories:
1381 --bindir=DIR user executables [EPREFIX/bin]
1382 --sbindir=DIR system admin executables [EPREFIX/sbin]
1383 --libexecdir=DIR program executables [EPREFIX/libexec]
1384 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1385 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1386 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1387 --libdir=DIR object code libraries [EPREFIX/lib]
1388 --includedir=DIR C header files [PREFIX/include]
1389 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1390 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1391 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1392 --infodir=DIR info documentation [DATAROOTDIR/info]
1393 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1394 --mandir=DIR man documentation [DATAROOTDIR/man]
1395 --docdir=DIR documentation root [DATAROOTDIR/doc/libcc1]
1396 --htmldir=DIR html documentation [DOCDIR]
1397 --dvidir=DIR dvi documentation [DOCDIR]
1398 --pdfdir=DIR pdf documentation [DOCDIR]
1399 --psdir=DIR ps documentation [DOCDIR]
1400 _ACEOF
1402 cat <<\_ACEOF
1404 Program names:
1405 --program-prefix=PREFIX prepend PREFIX to installed program names
1406 --program-suffix=SUFFIX append SUFFIX to installed program names
1407 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1409 System types:
1410 --build=BUILD configure for building on BUILD [guessed]
1411 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1412 --target=TARGET configure for building compilers for TARGET [HOST]
1413 _ACEOF
1416 if test -n "$ac_init_help"; then
1417 case $ac_init_help in
1418 short | recursive ) echo "Configuration of libcc1 version-unused:";;
1419 esac
1420 cat <<\_ACEOF
1422 Optional Features:
1423 --disable-option-checking ignore unrecognized --enable/--with options
1424 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1425 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1426 --enable-dependency-tracking
1427 do not reject slow dependency extractors
1428 --disable-dependency-tracking
1429 speeds up one-time build
1430 --enable-silent-rules less verbose build output (undo: "make V=1")
1431 --disable-silent-rules verbose build output (undo: "make V=0")
1432 --enable-maintainer-mode
1433 enable make rules and dependencies not useful (and
1434 sometimes confusing) to the casual installer
1435 --enable-static[=PKGS] build static libraries [default=no]
1436 --enable-shared[=PKGS] build shared libraries [default=yes]
1437 --enable-fast-install[=PKGS]
1438 optimize for fast installation [default=yes]
1439 --disable-libtool-lock avoid locking (might break parallel builds)
1440 --enable-cet enable Intel CET in host libraries [default=auto]
1441 --enable-werror-always enable -Werror despite compiler version
1442 --enable-plugin enable plugin support
1444 Optional Packages:
1445 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1446 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1447 --with-build-libsubdir=DIR Directory where to find libraries for build system
1448 --with-pic try to use only PIC/non-PIC objects [default=use
1449 both]
1450 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1451 --with-gcc-major-version-only
1452 use only GCC major number in filesystem paths
1454 Some influential environment variables:
1455 CC C compiler command
1456 CFLAGS C compiler flags
1457 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1458 nonstandard directory <lib dir>
1459 LIBS libraries to pass to the linker, e.g. -l<library>
1460 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1461 you have headers in a nonstandard directory <include dir>
1462 CPP C preprocessor
1463 CXX C++ compiler command
1464 CXXFLAGS C++ compiler flags
1465 CXXCPP C++ preprocessor
1466 GMPINC How to find GMP include files
1468 Use these variables to override the choices made by `configure' or to help
1469 it to find libraries and programs with nonstandard names/locations.
1471 Report bugs to the package provider.
1472 _ACEOF
1473 ac_status=$?
1476 if test "$ac_init_help" = "recursive"; then
1477 # If there are subdirs, report their specific --help.
1478 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1479 test -d "$ac_dir" ||
1480 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1481 continue
1482 ac_builddir=.
1484 case "$ac_dir" in
1485 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1487 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1488 # A ".." for each directory in $ac_dir_suffix.
1489 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1490 case $ac_top_builddir_sub in
1491 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1492 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1493 esac ;;
1494 esac
1495 ac_abs_top_builddir=$ac_pwd
1496 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1497 # for backward compatibility:
1498 ac_top_builddir=$ac_top_build_prefix
1500 case $srcdir in
1501 .) # We are building in place.
1502 ac_srcdir=.
1503 ac_top_srcdir=$ac_top_builddir_sub
1504 ac_abs_top_srcdir=$ac_pwd ;;
1505 [\\/]* | ?:[\\/]* ) # Absolute name.
1506 ac_srcdir=$srcdir$ac_dir_suffix;
1507 ac_top_srcdir=$srcdir
1508 ac_abs_top_srcdir=$srcdir ;;
1509 *) # Relative name.
1510 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1511 ac_top_srcdir=$ac_top_build_prefix$srcdir
1512 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1513 esac
1514 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1516 cd "$ac_dir" || { ac_status=$?; continue; }
1517 # Check for guested configure.
1518 if test -f "$ac_srcdir/configure.gnu"; then
1519 echo &&
1520 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1521 elif test -f "$ac_srcdir/configure"; then
1522 echo &&
1523 $SHELL "$ac_srcdir/configure" --help=recursive
1524 else
1525 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1526 fi || ac_status=$?
1527 cd "$ac_pwd" || { ac_status=$?; break; }
1528 done
1531 test -n "$ac_init_help" && exit $ac_status
1532 if $ac_init_version; then
1533 cat <<\_ACEOF
1534 libcc1 configure version-unused
1535 generated by GNU Autoconf 2.69
1537 Copyright (C) 2012 Free Software Foundation, Inc.
1538 This configure script is free software; the Free Software Foundation
1539 gives unlimited permission to copy, distribute and modify it.
1540 _ACEOF
1541 exit
1544 ## ------------------------ ##
1545 ## Autoconf initialization. ##
1546 ## ------------------------ ##
1548 # ac_fn_c_try_compile LINENO
1549 # --------------------------
1550 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1551 ac_fn_c_try_compile ()
1553 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1554 rm -f conftest.$ac_objext
1555 if { { ac_try="$ac_compile"
1556 case "(($ac_try" in
1557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1558 *) ac_try_echo=$ac_try;;
1559 esac
1560 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1561 $as_echo "$ac_try_echo"; } >&5
1562 (eval "$ac_compile") 2>conftest.err
1563 ac_status=$?
1564 if test -s conftest.err; then
1565 grep -v '^ *+' conftest.err >conftest.er1
1566 cat conftest.er1 >&5
1567 mv -f conftest.er1 conftest.err
1569 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1570 test $ac_status = 0; } && {
1571 test -z "$ac_c_werror_flag" ||
1572 test ! -s conftest.err
1573 } && test -s conftest.$ac_objext; then :
1574 ac_retval=0
1575 else
1576 $as_echo "$as_me: failed program was:" >&5
1577 sed 's/^/| /' conftest.$ac_ext >&5
1579 ac_retval=1
1581 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1582 as_fn_set_status $ac_retval
1584 } # ac_fn_c_try_compile
1586 # ac_fn_c_try_cpp LINENO
1587 # ----------------------
1588 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1589 ac_fn_c_try_cpp ()
1591 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1592 if { { ac_try="$ac_cpp conftest.$ac_ext"
1593 case "(($ac_try" in
1594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1595 *) ac_try_echo=$ac_try;;
1596 esac
1597 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1598 $as_echo "$ac_try_echo"; } >&5
1599 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1600 ac_status=$?
1601 if test -s conftest.err; then
1602 grep -v '^ *+' conftest.err >conftest.er1
1603 cat conftest.er1 >&5
1604 mv -f conftest.er1 conftest.err
1606 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1607 test $ac_status = 0; } > conftest.i && {
1608 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1609 test ! -s conftest.err
1610 }; then :
1611 ac_retval=0
1612 else
1613 $as_echo "$as_me: failed program was:" >&5
1614 sed 's/^/| /' conftest.$ac_ext >&5
1616 ac_retval=1
1618 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1619 as_fn_set_status $ac_retval
1621 } # ac_fn_c_try_cpp
1623 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1624 # -------------------------------------------------------
1625 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1626 # the include files in INCLUDES and setting the cache variable VAR
1627 # accordingly.
1628 ac_fn_c_check_header_mongrel ()
1630 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1631 if eval \${$3+:} false; then :
1632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1633 $as_echo_n "checking for $2... " >&6; }
1634 if eval \${$3+:} false; then :
1635 $as_echo_n "(cached) " >&6
1637 eval ac_res=\$$3
1638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1639 $as_echo "$ac_res" >&6; }
1640 else
1641 # Is the header compilable?
1642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1643 $as_echo_n "checking $2 usability... " >&6; }
1644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1645 /* end confdefs.h. */
1647 #include <$2>
1648 _ACEOF
1649 if ac_fn_c_try_compile "$LINENO"; then :
1650 ac_header_compiler=yes
1651 else
1652 ac_header_compiler=no
1654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1656 $as_echo "$ac_header_compiler" >&6; }
1658 # Is the header present?
1659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1660 $as_echo_n "checking $2 presence... " >&6; }
1661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1662 /* end confdefs.h. */
1663 #include <$2>
1664 _ACEOF
1665 if ac_fn_c_try_cpp "$LINENO"; then :
1666 ac_header_preproc=yes
1667 else
1668 ac_header_preproc=no
1670 rm -f conftest.err conftest.i conftest.$ac_ext
1671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1672 $as_echo "$ac_header_preproc" >&6; }
1674 # So? What about this header?
1675 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1676 yes:no: )
1677 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1678 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1679 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1680 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1682 no:yes:* )
1683 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1684 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1685 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1686 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1687 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1688 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1689 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1690 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1691 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1692 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1694 esac
1695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1696 $as_echo_n "checking for $2... " >&6; }
1697 if eval \${$3+:} false; then :
1698 $as_echo_n "(cached) " >&6
1699 else
1700 eval "$3=\$ac_header_compiler"
1702 eval ac_res=\$$3
1703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1704 $as_echo "$ac_res" >&6; }
1706 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1708 } # ac_fn_c_check_header_mongrel
1710 # ac_fn_c_try_run LINENO
1711 # ----------------------
1712 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1713 # that executables *can* be run.
1714 ac_fn_c_try_run ()
1716 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1717 if { { ac_try="$ac_link"
1718 case "(($ac_try" in
1719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1720 *) ac_try_echo=$ac_try;;
1721 esac
1722 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1723 $as_echo "$ac_try_echo"; } >&5
1724 (eval "$ac_link") 2>&5
1725 ac_status=$?
1726 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1727 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1728 { { case "(($ac_try" in
1729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1730 *) ac_try_echo=$ac_try;;
1731 esac
1732 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1733 $as_echo "$ac_try_echo"; } >&5
1734 (eval "$ac_try") 2>&5
1735 ac_status=$?
1736 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1737 test $ac_status = 0; }; }; then :
1738 ac_retval=0
1739 else
1740 $as_echo "$as_me: program exited with status $ac_status" >&5
1741 $as_echo "$as_me: failed program was:" >&5
1742 sed 's/^/| /' conftest.$ac_ext >&5
1744 ac_retval=$ac_status
1746 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1747 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1748 as_fn_set_status $ac_retval
1750 } # ac_fn_c_try_run
1752 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1753 # -------------------------------------------------------
1754 # Tests whether HEADER exists and can be compiled using the include files in
1755 # INCLUDES, setting the cache variable VAR accordingly.
1756 ac_fn_c_check_header_compile ()
1758 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1760 $as_echo_n "checking for $2... " >&6; }
1761 if eval \${$3+:} false; then :
1762 $as_echo_n "(cached) " >&6
1763 else
1764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1765 /* end confdefs.h. */
1767 #include <$2>
1768 _ACEOF
1769 if ac_fn_c_try_compile "$LINENO"; then :
1770 eval "$3=yes"
1771 else
1772 eval "$3=no"
1774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1776 eval ac_res=\$$3
1777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1778 $as_echo "$ac_res" >&6; }
1779 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1781 } # ac_fn_c_check_header_compile
1783 # ac_fn_c_try_link LINENO
1784 # -----------------------
1785 # Try to link conftest.$ac_ext, and return whether this succeeded.
1786 ac_fn_c_try_link ()
1788 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1789 rm -f conftest.$ac_objext conftest$ac_exeext
1790 if { { ac_try="$ac_link"
1791 case "(($ac_try" in
1792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1793 *) ac_try_echo=$ac_try;;
1794 esac
1795 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1796 $as_echo "$ac_try_echo"; } >&5
1797 (eval "$ac_link") 2>conftest.err
1798 ac_status=$?
1799 if test -s conftest.err; then
1800 grep -v '^ *+' conftest.err >conftest.er1
1801 cat conftest.er1 >&5
1802 mv -f conftest.er1 conftest.err
1804 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1805 test $ac_status = 0; } && {
1806 test -z "$ac_c_werror_flag" ||
1807 test ! -s conftest.err
1808 } && test -s conftest$ac_exeext && {
1809 test "$cross_compiling" = yes ||
1810 test -x conftest$ac_exeext
1811 }; then :
1812 ac_retval=0
1813 else
1814 $as_echo "$as_me: failed program was:" >&5
1815 sed 's/^/| /' conftest.$ac_ext >&5
1817 ac_retval=1
1819 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1820 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1821 # interfere with the next link command; also delete a directory that is
1822 # left behind by Apple's compiler. We do this before executing the actions.
1823 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1824 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1825 as_fn_set_status $ac_retval
1827 } # ac_fn_c_try_link
1829 # ac_fn_c_check_func LINENO FUNC VAR
1830 # ----------------------------------
1831 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1832 ac_fn_c_check_func ()
1834 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1836 $as_echo_n "checking for $2... " >&6; }
1837 if eval \${$3+:} false; then :
1838 $as_echo_n "(cached) " >&6
1839 else
1840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1841 /* end confdefs.h. */
1842 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1843 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1844 #define $2 innocuous_$2
1846 /* System header to define __stub macros and hopefully few prototypes,
1847 which can conflict with char $2 (); below.
1848 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1849 <limits.h> exists even on freestanding compilers. */
1851 #ifdef __STDC__
1852 # include <limits.h>
1853 #else
1854 # include <assert.h>
1855 #endif
1857 #undef $2
1859 /* Override any GCC internal prototype to avoid an error.
1860 Use char because int might match the return type of a GCC
1861 builtin and then its argument prototype would still apply. */
1862 #ifdef __cplusplus
1863 extern "C"
1864 #endif
1865 char $2 ();
1866 /* The GNU C library defines this for functions which it implements
1867 to always fail with ENOSYS. Some functions are actually named
1868 something starting with __ and the normal name is an alias. */
1869 #if defined __stub_$2 || defined __stub___$2
1870 choke me
1871 #endif
1874 main ()
1876 return $2 ();
1878 return 0;
1880 _ACEOF
1881 if ac_fn_c_try_link "$LINENO"; then :
1882 eval "$3=yes"
1883 else
1884 eval "$3=no"
1886 rm -f core conftest.err conftest.$ac_objext \
1887 conftest$ac_exeext conftest.$ac_ext
1889 eval ac_res=\$$3
1890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1891 $as_echo "$ac_res" >&6; }
1892 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1894 } # ac_fn_c_check_func
1896 # ac_fn_cxx_try_compile LINENO
1897 # ----------------------------
1898 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1899 ac_fn_cxx_try_compile ()
1901 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1902 rm -f conftest.$ac_objext
1903 if { { ac_try="$ac_compile"
1904 case "(($ac_try" in
1905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1906 *) ac_try_echo=$ac_try;;
1907 esac
1908 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1909 $as_echo "$ac_try_echo"; } >&5
1910 (eval "$ac_compile") 2>conftest.err
1911 ac_status=$?
1912 if test -s conftest.err; then
1913 grep -v '^ *+' conftest.err >conftest.er1
1914 cat conftest.er1 >&5
1915 mv -f conftest.er1 conftest.err
1917 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1918 test $ac_status = 0; } && {
1919 test -z "$ac_cxx_werror_flag" ||
1920 test ! -s conftest.err
1921 } && test -s conftest.$ac_objext; then :
1922 ac_retval=0
1923 else
1924 $as_echo "$as_me: failed program was:" >&5
1925 sed 's/^/| /' conftest.$ac_ext >&5
1927 ac_retval=1
1929 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1930 as_fn_set_status $ac_retval
1932 } # ac_fn_cxx_try_compile
1934 # ac_fn_cxx_try_cpp LINENO
1935 # ------------------------
1936 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1937 ac_fn_cxx_try_cpp ()
1939 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1940 if { { ac_try="$ac_cpp conftest.$ac_ext"
1941 case "(($ac_try" in
1942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1943 *) ac_try_echo=$ac_try;;
1944 esac
1945 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1946 $as_echo "$ac_try_echo"; } >&5
1947 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1948 ac_status=$?
1949 if test -s conftest.err; then
1950 grep -v '^ *+' conftest.err >conftest.er1
1951 cat conftest.er1 >&5
1952 mv -f conftest.er1 conftest.err
1954 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1955 test $ac_status = 0; } > conftest.i && {
1956 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1957 test ! -s conftest.err
1958 }; then :
1959 ac_retval=0
1960 else
1961 $as_echo "$as_me: failed program was:" >&5
1962 sed 's/^/| /' conftest.$ac_ext >&5
1964 ac_retval=1
1966 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1967 as_fn_set_status $ac_retval
1969 } # ac_fn_cxx_try_cpp
1971 # ac_fn_cxx_try_link LINENO
1972 # -------------------------
1973 # Try to link conftest.$ac_ext, and return whether this succeeded.
1974 ac_fn_cxx_try_link ()
1976 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1977 rm -f conftest.$ac_objext conftest$ac_exeext
1978 if { { ac_try="$ac_link"
1979 case "(($ac_try" in
1980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1981 *) ac_try_echo=$ac_try;;
1982 esac
1983 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1984 $as_echo "$ac_try_echo"; } >&5
1985 (eval "$ac_link") 2>conftest.err
1986 ac_status=$?
1987 if test -s conftest.err; then
1988 grep -v '^ *+' conftest.err >conftest.er1
1989 cat conftest.er1 >&5
1990 mv -f conftest.er1 conftest.err
1992 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1993 test $ac_status = 0; } && {
1994 test -z "$ac_cxx_werror_flag" ||
1995 test ! -s conftest.err
1996 } && test -s conftest$ac_exeext && {
1997 test "$cross_compiling" = yes ||
1998 test -x conftest$ac_exeext
1999 }; then :
2000 ac_retval=0
2001 else
2002 $as_echo "$as_me: failed program was:" >&5
2003 sed 's/^/| /' conftest.$ac_ext >&5
2005 ac_retval=1
2007 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2008 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2009 # interfere with the next link command; also delete a directory that is
2010 # left behind by Apple's compiler. We do this before executing the actions.
2011 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2012 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2013 as_fn_set_status $ac_retval
2015 } # ac_fn_cxx_try_link
2017 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2018 # ---------------------------------------------
2019 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2020 # accordingly.
2021 ac_fn_c_check_decl ()
2023 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2024 as_decl_name=`echo $2|sed 's/ *(.*//'`
2025 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2027 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2028 if eval \${$3+:} false; then :
2029 $as_echo_n "(cached) " >&6
2030 else
2031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2032 /* end confdefs.h. */
2035 main ()
2037 #ifndef $as_decl_name
2038 #ifdef __cplusplus
2039 (void) $as_decl_use;
2040 #else
2041 (void) $as_decl_name;
2042 #endif
2043 #endif
2046 return 0;
2048 _ACEOF
2049 if ac_fn_c_try_compile "$LINENO"; then :
2050 eval "$3=yes"
2051 else
2052 eval "$3=no"
2054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2056 eval ac_res=\$$3
2057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2058 $as_echo "$ac_res" >&6; }
2059 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2061 } # ac_fn_c_check_decl
2062 cat >config.log <<_ACEOF
2063 This file contains any messages produced by compilers while
2064 running configure, to aid debugging if configure makes a mistake.
2066 It was created by libcc1 $as_me version-unused, which was
2067 generated by GNU Autoconf 2.69. Invocation command line was
2069 $ $0 $@
2071 _ACEOF
2072 exec 5>>config.log
2074 cat <<_ASUNAME
2075 ## --------- ##
2076 ## Platform. ##
2077 ## --------- ##
2079 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2080 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2081 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2082 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2083 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2085 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2086 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2088 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2089 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2090 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2091 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2092 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2093 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2094 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2096 _ASUNAME
2098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2099 for as_dir in $PATH
2101 IFS=$as_save_IFS
2102 test -z "$as_dir" && as_dir=.
2103 $as_echo "PATH: $as_dir"
2104 done
2105 IFS=$as_save_IFS
2107 } >&5
2109 cat >&5 <<_ACEOF
2112 ## ----------- ##
2113 ## Core tests. ##
2114 ## ----------- ##
2116 _ACEOF
2119 # Keep a trace of the command line.
2120 # Strip out --no-create and --no-recursion so they do not pile up.
2121 # Strip out --silent because we don't want to record it for future runs.
2122 # Also quote any args containing shell meta-characters.
2123 # Make two passes to allow for proper duplicate-argument suppression.
2124 ac_configure_args=
2125 ac_configure_args0=
2126 ac_configure_args1=
2127 ac_must_keep_next=false
2128 for ac_pass in 1 2
2130 for ac_arg
2132 case $ac_arg in
2133 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2134 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2135 | -silent | --silent | --silen | --sile | --sil)
2136 continue ;;
2137 *\'*)
2138 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2139 esac
2140 case $ac_pass in
2141 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2143 as_fn_append ac_configure_args1 " '$ac_arg'"
2144 if test $ac_must_keep_next = true; then
2145 ac_must_keep_next=false # Got value, back to normal.
2146 else
2147 case $ac_arg in
2148 *=* | --config-cache | -C | -disable-* | --disable-* \
2149 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2150 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2151 | -with-* | --with-* | -without-* | --without-* | --x)
2152 case "$ac_configure_args0 " in
2153 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2154 esac
2156 -* ) ac_must_keep_next=true ;;
2157 esac
2159 as_fn_append ac_configure_args " '$ac_arg'"
2161 esac
2162 done
2163 done
2164 { ac_configure_args0=; unset ac_configure_args0;}
2165 { ac_configure_args1=; unset ac_configure_args1;}
2167 # When interrupted or exit'd, cleanup temporary files, and complete
2168 # config.log. We remove comments because anyway the quotes in there
2169 # would cause problems or look ugly.
2170 # WARNING: Use '\'' to represent an apostrophe within the trap.
2171 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2172 trap 'exit_status=$?
2173 # Save into config.log some information that might help in debugging.
2175 echo
2177 $as_echo "## ---------------- ##
2178 ## Cache variables. ##
2179 ## ---------------- ##"
2180 echo
2181 # The following way of writing the cache mishandles newlines in values,
2183 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2184 eval ac_val=\$$ac_var
2185 case $ac_val in #(
2186 *${as_nl}*)
2187 case $ac_var in #(
2188 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2189 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2190 esac
2191 case $ac_var in #(
2192 _ | IFS | as_nl) ;; #(
2193 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2194 *) { eval $ac_var=; unset $ac_var;} ;;
2195 esac ;;
2196 esac
2197 done
2198 (set) 2>&1 |
2199 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2200 *${as_nl}ac_space=\ *)
2201 sed -n \
2202 "s/'\''/'\''\\\\'\'''\''/g;
2203 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2204 ;; #(
2206 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2208 esac |
2209 sort
2211 echo
2213 $as_echo "## ----------------- ##
2214 ## Output variables. ##
2215 ## ----------------- ##"
2216 echo
2217 for ac_var in $ac_subst_vars
2219 eval ac_val=\$$ac_var
2220 case $ac_val in
2221 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2222 esac
2223 $as_echo "$ac_var='\''$ac_val'\''"
2224 done | sort
2225 echo
2227 if test -n "$ac_subst_files"; then
2228 $as_echo "## ------------------- ##
2229 ## File substitutions. ##
2230 ## ------------------- ##"
2231 echo
2232 for ac_var in $ac_subst_files
2234 eval ac_val=\$$ac_var
2235 case $ac_val in
2236 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2237 esac
2238 $as_echo "$ac_var='\''$ac_val'\''"
2239 done | sort
2240 echo
2243 if test -s confdefs.h; then
2244 $as_echo "## ----------- ##
2245 ## confdefs.h. ##
2246 ## ----------- ##"
2247 echo
2248 cat confdefs.h
2249 echo
2251 test "$ac_signal" != 0 &&
2252 $as_echo "$as_me: caught signal $ac_signal"
2253 $as_echo "$as_me: exit $exit_status"
2254 } >&5
2255 rm -f core *.core core.conftest.* &&
2256 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2257 exit $exit_status
2259 for ac_signal in 1 2 13 15; do
2260 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2261 done
2262 ac_signal=0
2264 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2265 rm -f -r conftest* confdefs.h
2267 $as_echo "/* confdefs.h */" > confdefs.h
2269 # Predefined preprocessor variables.
2271 cat >>confdefs.h <<_ACEOF
2272 #define PACKAGE_NAME "$PACKAGE_NAME"
2273 _ACEOF
2275 cat >>confdefs.h <<_ACEOF
2276 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2277 _ACEOF
2279 cat >>confdefs.h <<_ACEOF
2280 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2281 _ACEOF
2283 cat >>confdefs.h <<_ACEOF
2284 #define PACKAGE_STRING "$PACKAGE_STRING"
2285 _ACEOF
2287 cat >>confdefs.h <<_ACEOF
2288 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2289 _ACEOF
2291 cat >>confdefs.h <<_ACEOF
2292 #define PACKAGE_URL "$PACKAGE_URL"
2293 _ACEOF
2296 # Let the site file select an alternate cache file if it wants to.
2297 # Prefer an explicitly selected file to automatically selected ones.
2298 ac_site_file1=NONE
2299 ac_site_file2=NONE
2300 if test -n "$CONFIG_SITE"; then
2301 # We do not want a PATH search for config.site.
2302 case $CONFIG_SITE in #((
2303 -*) ac_site_file1=./$CONFIG_SITE;;
2304 */*) ac_site_file1=$CONFIG_SITE;;
2305 *) ac_site_file1=./$CONFIG_SITE;;
2306 esac
2307 elif test "x$prefix" != xNONE; then
2308 ac_site_file1=$prefix/share/config.site
2309 ac_site_file2=$prefix/etc/config.site
2310 else
2311 ac_site_file1=$ac_default_prefix/share/config.site
2312 ac_site_file2=$ac_default_prefix/etc/config.site
2314 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2316 test "x$ac_site_file" = xNONE && continue
2317 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2318 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2319 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2320 sed 's/^/| /' "$ac_site_file" >&5
2321 . "$ac_site_file" \
2322 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2323 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2324 as_fn_error $? "failed to load site script $ac_site_file
2325 See \`config.log' for more details" "$LINENO" 5; }
2327 done
2329 if test -r "$cache_file"; then
2330 # Some versions of bash will fail to source /dev/null (special files
2331 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2332 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2333 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2334 $as_echo "$as_me: loading cache $cache_file" >&6;}
2335 case $cache_file in
2336 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2337 *) . "./$cache_file";;
2338 esac
2340 else
2341 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2342 $as_echo "$as_me: creating cache $cache_file" >&6;}
2343 >$cache_file
2346 # Check that the precious variables saved in the cache have kept the same
2347 # value.
2348 ac_cache_corrupted=false
2349 for ac_var in $ac_precious_vars; do
2350 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2351 eval ac_new_set=\$ac_env_${ac_var}_set
2352 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2353 eval ac_new_val=\$ac_env_${ac_var}_value
2354 case $ac_old_set,$ac_new_set in
2355 set,)
2356 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2357 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2358 ac_cache_corrupted=: ;;
2359 ,set)
2360 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2361 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2362 ac_cache_corrupted=: ;;
2363 ,);;
2365 if test "x$ac_old_val" != "x$ac_new_val"; then
2366 # differences in whitespace do not lead to failure.
2367 ac_old_val_w=`echo x $ac_old_val`
2368 ac_new_val_w=`echo x $ac_new_val`
2369 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2370 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2371 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2372 ac_cache_corrupted=:
2373 else
2374 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2375 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2376 eval $ac_var=\$ac_old_val
2378 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2379 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2380 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2381 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2382 fi;;
2383 esac
2384 # Pass precious variables to config.status.
2385 if test "$ac_new_set" = set; then
2386 case $ac_new_val in
2387 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2388 *) ac_arg=$ac_var=$ac_new_val ;;
2389 esac
2390 case " $ac_configure_args " in
2391 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2392 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2393 esac
2395 done
2396 if $ac_cache_corrupted; then
2397 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2398 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2399 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2400 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2401 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2403 ## -------------------- ##
2404 ## Main body of script. ##
2405 ## -------------------- ##
2407 ac_ext=c
2408 ac_cpp='$CPP $CPPFLAGS'
2409 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2410 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2411 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2418 ac_config_headers="$ac_config_headers cc1plugin-config.h"
2421 ac_aux_dir=
2422 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2423 if test -f "$ac_dir/install-sh"; then
2424 ac_aux_dir=$ac_dir
2425 ac_install_sh="$ac_aux_dir/install-sh -c"
2426 break
2427 elif test -f "$ac_dir/install.sh"; then
2428 ac_aux_dir=$ac_dir
2429 ac_install_sh="$ac_aux_dir/install.sh -c"
2430 break
2431 elif test -f "$ac_dir/shtool"; then
2432 ac_aux_dir=$ac_dir
2433 ac_install_sh="$ac_aux_dir/shtool install -c"
2434 break
2436 done
2437 if test -z "$ac_aux_dir"; then
2438 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2441 # These three variables are undocumented and unsupported,
2442 # and are intended to be withdrawn in a future Autoconf release.
2443 # They can cause serious problems if a builder's source tree is in a directory
2444 # whose full name contains unusual characters.
2445 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2446 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2447 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2450 # Make sure we can run config.sub.
2451 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2452 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2455 $as_echo_n "checking build system type... " >&6; }
2456 if ${ac_cv_build+:} false; then :
2457 $as_echo_n "(cached) " >&6
2458 else
2459 ac_build_alias=$build_alias
2460 test "x$ac_build_alias" = x &&
2461 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2462 test "x$ac_build_alias" = x &&
2463 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2464 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2465 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2469 $as_echo "$ac_cv_build" >&6; }
2470 case $ac_cv_build in
2471 *-*-*) ;;
2472 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2473 esac
2474 build=$ac_cv_build
2475 ac_save_IFS=$IFS; IFS='-'
2476 set x $ac_cv_build
2477 shift
2478 build_cpu=$1
2479 build_vendor=$2
2480 shift; shift
2481 # Remember, the first character of IFS is used to create $*,
2482 # except with old shells:
2483 build_os=$*
2484 IFS=$ac_save_IFS
2485 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2489 $as_echo_n "checking host system type... " >&6; }
2490 if ${ac_cv_host+:} false; then :
2491 $as_echo_n "(cached) " >&6
2492 else
2493 if test "x$host_alias" = x; then
2494 ac_cv_host=$ac_cv_build
2495 else
2496 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2497 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2502 $as_echo "$ac_cv_host" >&6; }
2503 case $ac_cv_host in
2504 *-*-*) ;;
2505 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2506 esac
2507 host=$ac_cv_host
2508 ac_save_IFS=$IFS; IFS='-'
2509 set x $ac_cv_host
2510 shift
2511 host_cpu=$1
2512 host_vendor=$2
2513 shift; shift
2514 # Remember, the first character of IFS is used to create $*,
2515 # except with old shells:
2516 host_os=$*
2517 IFS=$ac_save_IFS
2518 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2522 $as_echo_n "checking target system type... " >&6; }
2523 if ${ac_cv_target+:} false; then :
2524 $as_echo_n "(cached) " >&6
2525 else
2526 if test "x$target_alias" = x; then
2527 ac_cv_target=$ac_cv_host
2528 else
2529 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2530 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2535 $as_echo "$ac_cv_target" >&6; }
2536 case $ac_cv_target in
2537 *-*-*) ;;
2538 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2539 esac
2540 target=$ac_cv_target
2541 ac_save_IFS=$IFS; IFS='-'
2542 set x $ac_cv_target
2543 shift
2544 target_cpu=$1
2545 target_vendor=$2
2546 shift; shift
2547 # Remember, the first character of IFS is used to create $*,
2548 # except with old shells:
2549 target_os=$*
2550 IFS=$ac_save_IFS
2551 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2554 # The aliases save the names the user supplied, while $host etc.
2555 # will get canonicalized.
2556 test -n "$target_alias" &&
2557 test "$program_prefix$program_suffix$program_transform_name" = \
2558 NONENONEs,x,x, &&
2559 program_prefix=${target_alias}-
2561 # Expand $ac_aux_dir to an absolute path.
2562 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2564 ac_ext=c
2565 ac_cpp='$CPP $CPPFLAGS'
2566 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2567 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2568 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2569 if test -n "$ac_tool_prefix"; then
2570 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2571 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2573 $as_echo_n "checking for $ac_word... " >&6; }
2574 if ${ac_cv_prog_CC+:} false; then :
2575 $as_echo_n "(cached) " >&6
2576 else
2577 if test -n "$CC"; then
2578 ac_cv_prog_CC="$CC" # Let the user override the test.
2579 else
2580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2581 for as_dir in $PATH
2583 IFS=$as_save_IFS
2584 test -z "$as_dir" && as_dir=.
2585 for ac_exec_ext in '' $ac_executable_extensions; do
2586 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2587 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2588 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2589 break 2
2591 done
2592 done
2593 IFS=$as_save_IFS
2597 CC=$ac_cv_prog_CC
2598 if test -n "$CC"; then
2599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2600 $as_echo "$CC" >&6; }
2601 else
2602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2603 $as_echo "no" >&6; }
2608 if test -z "$ac_cv_prog_CC"; then
2609 ac_ct_CC=$CC
2610 # Extract the first word of "gcc", so it can be a program name with args.
2611 set dummy gcc; ac_word=$2
2612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2613 $as_echo_n "checking for $ac_word... " >&6; }
2614 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2615 $as_echo_n "(cached) " >&6
2616 else
2617 if test -n "$ac_ct_CC"; then
2618 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2619 else
2620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2621 for as_dir in $PATH
2623 IFS=$as_save_IFS
2624 test -z "$as_dir" && as_dir=.
2625 for ac_exec_ext in '' $ac_executable_extensions; do
2626 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2627 ac_cv_prog_ac_ct_CC="gcc"
2628 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2629 break 2
2631 done
2632 done
2633 IFS=$as_save_IFS
2637 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2638 if test -n "$ac_ct_CC"; then
2639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2640 $as_echo "$ac_ct_CC" >&6; }
2641 else
2642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2643 $as_echo "no" >&6; }
2646 if test "x$ac_ct_CC" = x; then
2647 CC=""
2648 else
2649 case $cross_compiling:$ac_tool_warned in
2650 yes:)
2651 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2652 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2653 ac_tool_warned=yes ;;
2654 esac
2655 CC=$ac_ct_CC
2657 else
2658 CC="$ac_cv_prog_CC"
2661 if test -z "$CC"; then
2662 if test -n "$ac_tool_prefix"; then
2663 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2664 set dummy ${ac_tool_prefix}cc; ac_word=$2
2665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2666 $as_echo_n "checking for $ac_word... " >&6; }
2667 if ${ac_cv_prog_CC+:} false; then :
2668 $as_echo_n "(cached) " >&6
2669 else
2670 if test -n "$CC"; then
2671 ac_cv_prog_CC="$CC" # Let the user override the test.
2672 else
2673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2674 for as_dir in $PATH
2676 IFS=$as_save_IFS
2677 test -z "$as_dir" && as_dir=.
2678 for ac_exec_ext in '' $ac_executable_extensions; do
2679 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2680 ac_cv_prog_CC="${ac_tool_prefix}cc"
2681 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2682 break 2
2684 done
2685 done
2686 IFS=$as_save_IFS
2690 CC=$ac_cv_prog_CC
2691 if test -n "$CC"; then
2692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2693 $as_echo "$CC" >&6; }
2694 else
2695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2696 $as_echo "no" >&6; }
2702 if test -z "$CC"; then
2703 # Extract the first word of "cc", so it can be a program name with args.
2704 set dummy cc; ac_word=$2
2705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2706 $as_echo_n "checking for $ac_word... " >&6; }
2707 if ${ac_cv_prog_CC+:} false; then :
2708 $as_echo_n "(cached) " >&6
2709 else
2710 if test -n "$CC"; then
2711 ac_cv_prog_CC="$CC" # Let the user override the test.
2712 else
2713 ac_prog_rejected=no
2714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2715 for as_dir in $PATH
2717 IFS=$as_save_IFS
2718 test -z "$as_dir" && as_dir=.
2719 for ac_exec_ext in '' $ac_executable_extensions; do
2720 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2721 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2722 ac_prog_rejected=yes
2723 continue
2725 ac_cv_prog_CC="cc"
2726 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2727 break 2
2729 done
2730 done
2731 IFS=$as_save_IFS
2733 if test $ac_prog_rejected = yes; then
2734 # We found a bogon in the path, so make sure we never use it.
2735 set dummy $ac_cv_prog_CC
2736 shift
2737 if test $# != 0; then
2738 # We chose a different compiler from the bogus one.
2739 # However, it has the same basename, so the bogon will be chosen
2740 # first if we set CC to just the basename; use the full file name.
2741 shift
2742 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2747 CC=$ac_cv_prog_CC
2748 if test -n "$CC"; then
2749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2750 $as_echo "$CC" >&6; }
2751 else
2752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2753 $as_echo "no" >&6; }
2758 if test -z "$CC"; then
2759 if test -n "$ac_tool_prefix"; then
2760 for ac_prog in cl.exe
2762 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2763 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2765 $as_echo_n "checking for $ac_word... " >&6; }
2766 if ${ac_cv_prog_CC+:} false; then :
2767 $as_echo_n "(cached) " >&6
2768 else
2769 if test -n "$CC"; then
2770 ac_cv_prog_CC="$CC" # Let the user override the test.
2771 else
2772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2773 for as_dir in $PATH
2775 IFS=$as_save_IFS
2776 test -z "$as_dir" && as_dir=.
2777 for ac_exec_ext in '' $ac_executable_extensions; do
2778 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2779 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2780 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2781 break 2
2783 done
2784 done
2785 IFS=$as_save_IFS
2789 CC=$ac_cv_prog_CC
2790 if test -n "$CC"; then
2791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2792 $as_echo "$CC" >&6; }
2793 else
2794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2795 $as_echo "no" >&6; }
2799 test -n "$CC" && break
2800 done
2802 if test -z "$CC"; then
2803 ac_ct_CC=$CC
2804 for ac_prog in cl.exe
2806 # Extract the first word of "$ac_prog", so it can be a program name with args.
2807 set dummy $ac_prog; ac_word=$2
2808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2809 $as_echo_n "checking for $ac_word... " >&6; }
2810 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2811 $as_echo_n "(cached) " >&6
2812 else
2813 if test -n "$ac_ct_CC"; then
2814 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2815 else
2816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2817 for as_dir in $PATH
2819 IFS=$as_save_IFS
2820 test -z "$as_dir" && as_dir=.
2821 for ac_exec_ext in '' $ac_executable_extensions; do
2822 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2823 ac_cv_prog_ac_ct_CC="$ac_prog"
2824 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2825 break 2
2827 done
2828 done
2829 IFS=$as_save_IFS
2833 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2834 if test -n "$ac_ct_CC"; then
2835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2836 $as_echo "$ac_ct_CC" >&6; }
2837 else
2838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2839 $as_echo "no" >&6; }
2843 test -n "$ac_ct_CC" && break
2844 done
2846 if test "x$ac_ct_CC" = x; then
2847 CC=""
2848 else
2849 case $cross_compiling:$ac_tool_warned in
2850 yes:)
2851 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2852 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2853 ac_tool_warned=yes ;;
2854 esac
2855 CC=$ac_ct_CC
2862 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2863 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2864 as_fn_error $? "no acceptable C compiler found in \$PATH
2865 See \`config.log' for more details" "$LINENO" 5; }
2867 # Provide some information about the compiler.
2868 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2869 set X $ac_compile
2870 ac_compiler=$2
2871 for ac_option in --version -v -V -qversion; do
2872 { { ac_try="$ac_compiler $ac_option >&5"
2873 case "(($ac_try" in
2874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2875 *) ac_try_echo=$ac_try;;
2876 esac
2877 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2878 $as_echo "$ac_try_echo"; } >&5
2879 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2880 ac_status=$?
2881 if test -s conftest.err; then
2882 sed '10a\
2883 ... rest of stderr output deleted ...
2884 10q' conftest.err >conftest.er1
2885 cat conftest.er1 >&5
2887 rm -f conftest.er1 conftest.err
2888 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2889 test $ac_status = 0; }
2890 done
2892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2893 /* end confdefs.h. */
2896 main ()
2900 return 0;
2902 _ACEOF
2903 ac_clean_files_save=$ac_clean_files
2904 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2905 # Try to create an executable without -o first, disregard a.out.
2906 # It will help us diagnose broken compilers, and finding out an intuition
2907 # of exeext.
2908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2909 $as_echo_n "checking whether the C compiler works... " >&6; }
2910 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2912 # The possible output files:
2913 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2915 ac_rmfiles=
2916 for ac_file in $ac_files
2918 case $ac_file in
2919 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2920 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2921 esac
2922 done
2923 rm -f $ac_rmfiles
2925 if { { ac_try="$ac_link_default"
2926 case "(($ac_try" in
2927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2928 *) ac_try_echo=$ac_try;;
2929 esac
2930 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2931 $as_echo "$ac_try_echo"; } >&5
2932 (eval "$ac_link_default") 2>&5
2933 ac_status=$?
2934 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2935 test $ac_status = 0; }; then :
2936 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2937 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2938 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2939 # so that the user can short-circuit this test for compilers unknown to
2940 # Autoconf.
2941 for ac_file in $ac_files ''
2943 test -f "$ac_file" || continue
2944 case $ac_file in
2945 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2947 [ab].out )
2948 # We found the default executable, but exeext='' is most
2949 # certainly right.
2950 break;;
2951 *.* )
2952 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2953 then :; else
2954 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2956 # We set ac_cv_exeext here because the later test for it is not
2957 # safe: cross compilers may not add the suffix if given an `-o'
2958 # argument, so we may need to know it at that point already.
2959 # Even if this section looks crufty: it has the advantage of
2960 # actually working.
2961 break;;
2963 break;;
2964 esac
2965 done
2966 test "$ac_cv_exeext" = no && ac_cv_exeext=
2968 else
2969 ac_file=''
2971 if test -z "$ac_file"; then :
2972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2973 $as_echo "no" >&6; }
2974 $as_echo "$as_me: failed program was:" >&5
2975 sed 's/^/| /' conftest.$ac_ext >&5
2977 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2978 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2979 as_fn_error 77 "C compiler cannot create executables
2980 See \`config.log' for more details" "$LINENO" 5; }
2981 else
2982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2983 $as_echo "yes" >&6; }
2985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2986 $as_echo_n "checking for C compiler default output file name... " >&6; }
2987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2988 $as_echo "$ac_file" >&6; }
2989 ac_exeext=$ac_cv_exeext
2991 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2992 ac_clean_files=$ac_clean_files_save
2993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2994 $as_echo_n "checking for suffix of executables... " >&6; }
2995 if { { ac_try="$ac_link"
2996 case "(($ac_try" in
2997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2998 *) ac_try_echo=$ac_try;;
2999 esac
3000 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3001 $as_echo "$ac_try_echo"; } >&5
3002 (eval "$ac_link") 2>&5
3003 ac_status=$?
3004 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3005 test $ac_status = 0; }; then :
3006 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3007 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3008 # work properly (i.e., refer to `conftest.exe'), while it won't with
3009 # `rm'.
3010 for ac_file in conftest.exe conftest conftest.*; do
3011 test -f "$ac_file" || continue
3012 case $ac_file in
3013 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3014 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3015 break;;
3016 * ) break;;
3017 esac
3018 done
3019 else
3020 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3021 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3022 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3023 See \`config.log' for more details" "$LINENO" 5; }
3025 rm -f conftest conftest$ac_cv_exeext
3026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3027 $as_echo "$ac_cv_exeext" >&6; }
3029 rm -f conftest.$ac_ext
3030 EXEEXT=$ac_cv_exeext
3031 ac_exeext=$EXEEXT
3032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3033 /* end confdefs.h. */
3034 #include <stdio.h>
3036 main ()
3038 FILE *f = fopen ("conftest.out", "w");
3039 return ferror (f) || fclose (f) != 0;
3042 return 0;
3044 _ACEOF
3045 ac_clean_files="$ac_clean_files conftest.out"
3046 # Check that the compiler produces executables we can run. If not, either
3047 # the compiler is broken, or we cross compile.
3048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3049 $as_echo_n "checking whether we are cross compiling... " >&6; }
3050 if test "$cross_compiling" != yes; then
3051 { { ac_try="$ac_link"
3052 case "(($ac_try" in
3053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3054 *) ac_try_echo=$ac_try;;
3055 esac
3056 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3057 $as_echo "$ac_try_echo"; } >&5
3058 (eval "$ac_link") 2>&5
3059 ac_status=$?
3060 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3061 test $ac_status = 0; }
3062 if { ac_try='./conftest$ac_cv_exeext'
3063 { { case "(($ac_try" in
3064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3065 *) ac_try_echo=$ac_try;;
3066 esac
3067 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3068 $as_echo "$ac_try_echo"; } >&5
3069 (eval "$ac_try") 2>&5
3070 ac_status=$?
3071 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3072 test $ac_status = 0; }; }; then
3073 cross_compiling=no
3074 else
3075 if test "$cross_compiling" = maybe; then
3076 cross_compiling=yes
3077 else
3078 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3079 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3080 as_fn_error $? "cannot run C compiled programs.
3081 If you meant to cross compile, use \`--host'.
3082 See \`config.log' for more details" "$LINENO" 5; }
3086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3087 $as_echo "$cross_compiling" >&6; }
3089 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3090 ac_clean_files=$ac_clean_files_save
3091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3092 $as_echo_n "checking for suffix of object files... " >&6; }
3093 if ${ac_cv_objext+:} false; then :
3094 $as_echo_n "(cached) " >&6
3095 else
3096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3097 /* end confdefs.h. */
3100 main ()
3104 return 0;
3106 _ACEOF
3107 rm -f conftest.o conftest.obj
3108 if { { ac_try="$ac_compile"
3109 case "(($ac_try" in
3110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3111 *) ac_try_echo=$ac_try;;
3112 esac
3113 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3114 $as_echo "$ac_try_echo"; } >&5
3115 (eval "$ac_compile") 2>&5
3116 ac_status=$?
3117 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3118 test $ac_status = 0; }; then :
3119 for ac_file in conftest.o conftest.obj conftest.*; do
3120 test -f "$ac_file" || continue;
3121 case $ac_file in
3122 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3123 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3124 break;;
3125 esac
3126 done
3127 else
3128 $as_echo "$as_me: failed program was:" >&5
3129 sed 's/^/| /' conftest.$ac_ext >&5
3131 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3132 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3133 as_fn_error $? "cannot compute suffix of object files: cannot compile
3134 See \`config.log' for more details" "$LINENO" 5; }
3136 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3139 $as_echo "$ac_cv_objext" >&6; }
3140 OBJEXT=$ac_cv_objext
3141 ac_objext=$OBJEXT
3142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3143 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3144 if ${ac_cv_c_compiler_gnu+:} false; then :
3145 $as_echo_n "(cached) " >&6
3146 else
3147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3148 /* end confdefs.h. */
3151 main ()
3153 #ifndef __GNUC__
3154 choke me
3155 #endif
3158 return 0;
3160 _ACEOF
3161 if ac_fn_c_try_compile "$LINENO"; then :
3162 ac_compiler_gnu=yes
3163 else
3164 ac_compiler_gnu=no
3166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3167 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3171 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3172 if test $ac_compiler_gnu = yes; then
3173 GCC=yes
3174 else
3175 GCC=
3177 ac_test_CFLAGS=${CFLAGS+set}
3178 ac_save_CFLAGS=$CFLAGS
3179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3180 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3181 if ${ac_cv_prog_cc_g+:} false; then :
3182 $as_echo_n "(cached) " >&6
3183 else
3184 ac_save_c_werror_flag=$ac_c_werror_flag
3185 ac_c_werror_flag=yes
3186 ac_cv_prog_cc_g=no
3187 CFLAGS="-g"
3188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3189 /* end confdefs.h. */
3192 main ()
3196 return 0;
3198 _ACEOF
3199 if ac_fn_c_try_compile "$LINENO"; then :
3200 ac_cv_prog_cc_g=yes
3201 else
3202 CFLAGS=""
3203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3204 /* end confdefs.h. */
3207 main ()
3211 return 0;
3213 _ACEOF
3214 if ac_fn_c_try_compile "$LINENO"; then :
3216 else
3217 ac_c_werror_flag=$ac_save_c_werror_flag
3218 CFLAGS="-g"
3219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3220 /* end confdefs.h. */
3223 main ()
3227 return 0;
3229 _ACEOF
3230 if ac_fn_c_try_compile "$LINENO"; then :
3231 ac_cv_prog_cc_g=yes
3233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3238 ac_c_werror_flag=$ac_save_c_werror_flag
3240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3241 $as_echo "$ac_cv_prog_cc_g" >&6; }
3242 if test "$ac_test_CFLAGS" = set; then
3243 CFLAGS=$ac_save_CFLAGS
3244 elif test $ac_cv_prog_cc_g = yes; then
3245 if test "$GCC" = yes; then
3246 CFLAGS="-g -O2"
3247 else
3248 CFLAGS="-g"
3250 else
3251 if test "$GCC" = yes; then
3252 CFLAGS="-O2"
3253 else
3254 CFLAGS=
3257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3258 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3259 if ${ac_cv_prog_cc_c89+:} false; then :
3260 $as_echo_n "(cached) " >&6
3261 else
3262 ac_cv_prog_cc_c89=no
3263 ac_save_CC=$CC
3264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3265 /* end confdefs.h. */
3266 #include <stdarg.h>
3267 #include <stdio.h>
3268 struct stat;
3269 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3270 struct buf { int x; };
3271 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3272 static char *e (p, i)
3273 char **p;
3274 int i;
3276 return p[i];
3278 static char *f (char * (*g) (char **, int), char **p, ...)
3280 char *s;
3281 va_list v;
3282 va_start (v,p);
3283 s = g (p, va_arg (v,int));
3284 va_end (v);
3285 return s;
3288 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3289 function prototypes and stuff, but not '\xHH' hex character constants.
3290 These don't provoke an error unfortunately, instead are silently treated
3291 as 'x'. The following induces an error, until -std is added to get
3292 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3293 array size at least. It's necessary to write '\x00'==0 to get something
3294 that's true only with -std. */
3295 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3297 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3298 inside strings and character constants. */
3299 #define FOO(x) 'x'
3300 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3302 int test (int i, double x);
3303 struct s1 {int (*f) (int a);};
3304 struct s2 {int (*f) (double a);};
3305 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3306 int argc;
3307 char **argv;
3309 main ()
3311 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3313 return 0;
3315 _ACEOF
3316 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3317 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3319 CC="$ac_save_CC $ac_arg"
3320 if ac_fn_c_try_compile "$LINENO"; then :
3321 ac_cv_prog_cc_c89=$ac_arg
3323 rm -f core conftest.err conftest.$ac_objext
3324 test "x$ac_cv_prog_cc_c89" != "xno" && break
3325 done
3326 rm -f conftest.$ac_ext
3327 CC=$ac_save_CC
3330 # AC_CACHE_VAL
3331 case "x$ac_cv_prog_cc_c89" in
3333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3334 $as_echo "none needed" >&6; } ;;
3335 xno)
3336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3337 $as_echo "unsupported" >&6; } ;;
3339 CC="$CC $ac_cv_prog_cc_c89"
3340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3341 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3342 esac
3343 if test "x$ac_cv_prog_cc_c89" != xno; then :
3347 ac_ext=c
3348 ac_cpp='$CPP $CPPFLAGS'
3349 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3350 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3351 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3353 ac_ext=c
3354 ac_cpp='$CPP $CPPFLAGS'
3355 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3356 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3357 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3359 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3360 if ${am_cv_prog_cc_c_o+:} false; then :
3361 $as_echo_n "(cached) " >&6
3362 else
3363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3364 /* end confdefs.h. */
3367 main ()
3371 return 0;
3373 _ACEOF
3374 # Make sure it works both with $CC and with simple cc.
3375 # Following AC_PROG_CC_C_O, we do the test twice because some
3376 # compilers refuse to overwrite an existing .o file with -o,
3377 # though they will create one.
3378 am_cv_prog_cc_c_o=yes
3379 for am_i in 1 2; do
3380 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3381 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3382 ac_status=$?
3383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3384 (exit $ac_status); } \
3385 && test -f conftest2.$ac_objext; then
3386 : OK
3387 else
3388 am_cv_prog_cc_c_o=no
3389 break
3391 done
3392 rm -f core conftest*
3393 unset am_i
3395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3396 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3397 if test "$am_cv_prog_cc_c_o" != yes; then
3398 # Losing compiler, so override with the script.
3399 # FIXME: It is wrong to rewrite CC.
3400 # But if we don't then we get into trouble of one sort or another.
3401 # A longer-term fix would be to have automake use am__CC in this case,
3402 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3403 CC="$am_aux_dir/compile $CC"
3405 ac_ext=c
3406 ac_cpp='$CPP $CPPFLAGS'
3407 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3408 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3409 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3413 ac_ext=c
3414 ac_cpp='$CPP $CPPFLAGS'
3415 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3416 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3417 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3419 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3420 # On Suns, sometimes $CPP names a directory.
3421 if test -n "$CPP" && test -d "$CPP"; then
3422 CPP=
3424 if test -z "$CPP"; then
3425 if ${ac_cv_prog_CPP+:} false; then :
3426 $as_echo_n "(cached) " >&6
3427 else
3428 # Double quotes because CPP needs to be expanded
3429 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3431 ac_preproc_ok=false
3432 for ac_c_preproc_warn_flag in '' yes
3434 # Use a header file that comes with gcc, so configuring glibc
3435 # with a fresh cross-compiler works.
3436 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3437 # <limits.h> exists even on freestanding compilers.
3438 # On the NeXT, cc -E runs the code through the compiler's parser,
3439 # not just through cpp. "Syntax error" is here to catch this case.
3440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3441 /* end confdefs.h. */
3442 #ifdef __STDC__
3443 # include <limits.h>
3444 #else
3445 # include <assert.h>
3446 #endif
3447 Syntax error
3448 _ACEOF
3449 if ac_fn_c_try_cpp "$LINENO"; then :
3451 else
3452 # Broken: fails on valid input.
3453 continue
3455 rm -f conftest.err conftest.i conftest.$ac_ext
3457 # OK, works on sane cases. Now check whether nonexistent headers
3458 # can be detected and how.
3459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3460 /* end confdefs.h. */
3461 #include <ac_nonexistent.h>
3462 _ACEOF
3463 if ac_fn_c_try_cpp "$LINENO"; then :
3464 # Broken: success on invalid input.
3465 continue
3466 else
3467 # Passes both tests.
3468 ac_preproc_ok=:
3469 break
3471 rm -f conftest.err conftest.i conftest.$ac_ext
3473 done
3474 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3475 rm -f conftest.i conftest.err conftest.$ac_ext
3476 if $ac_preproc_ok; then :
3477 break
3480 done
3481 ac_cv_prog_CPP=$CPP
3484 CPP=$ac_cv_prog_CPP
3485 else
3486 ac_cv_prog_CPP=$CPP
3488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3489 $as_echo "$CPP" >&6; }
3490 ac_preproc_ok=false
3491 for ac_c_preproc_warn_flag in '' yes
3493 # Use a header file that comes with gcc, so configuring glibc
3494 # with a fresh cross-compiler works.
3495 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3496 # <limits.h> exists even on freestanding compilers.
3497 # On the NeXT, cc -E runs the code through the compiler's parser,
3498 # not just through cpp. "Syntax error" is here to catch this case.
3499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3500 /* end confdefs.h. */
3501 #ifdef __STDC__
3502 # include <limits.h>
3503 #else
3504 # include <assert.h>
3505 #endif
3506 Syntax error
3507 _ACEOF
3508 if ac_fn_c_try_cpp "$LINENO"; then :
3510 else
3511 # Broken: fails on valid input.
3512 continue
3514 rm -f conftest.err conftest.i conftest.$ac_ext
3516 # OK, works on sane cases. Now check whether nonexistent headers
3517 # can be detected and how.
3518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3519 /* end confdefs.h. */
3520 #include <ac_nonexistent.h>
3521 _ACEOF
3522 if ac_fn_c_try_cpp "$LINENO"; then :
3523 # Broken: success on invalid input.
3524 continue
3525 else
3526 # Passes both tests.
3527 ac_preproc_ok=:
3528 break
3530 rm -f conftest.err conftest.i conftest.$ac_ext
3532 done
3533 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3534 rm -f conftest.i conftest.err conftest.$ac_ext
3535 if $ac_preproc_ok; then :
3537 else
3538 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3539 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3540 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3541 See \`config.log' for more details" "$LINENO" 5; }
3544 ac_ext=c
3545 ac_cpp='$CPP $CPPFLAGS'
3546 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3547 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3548 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3552 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3553 if ${ac_cv_path_GREP+:} false; then :
3554 $as_echo_n "(cached) " >&6
3555 else
3556 if test -z "$GREP"; then
3557 ac_path_GREP_found=false
3558 # Loop through the user's path and test for each of PROGNAME-LIST
3559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3560 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3562 IFS=$as_save_IFS
3563 test -z "$as_dir" && as_dir=.
3564 for ac_prog in grep ggrep; do
3565 for ac_exec_ext in '' $ac_executable_extensions; do
3566 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3567 as_fn_executable_p "$ac_path_GREP" || continue
3568 # Check for GNU ac_path_GREP and select it if it is found.
3569 # Check for GNU $ac_path_GREP
3570 case `"$ac_path_GREP" --version 2>&1` in
3571 *GNU*)
3572 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3574 ac_count=0
3575 $as_echo_n 0123456789 >"conftest.in"
3576 while :
3578 cat "conftest.in" "conftest.in" >"conftest.tmp"
3579 mv "conftest.tmp" "conftest.in"
3580 cp "conftest.in" "conftest.nl"
3581 $as_echo 'GREP' >> "conftest.nl"
3582 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3583 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3584 as_fn_arith $ac_count + 1 && ac_count=$as_val
3585 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3586 # Best one so far, save it but keep looking for a better one
3587 ac_cv_path_GREP="$ac_path_GREP"
3588 ac_path_GREP_max=$ac_count
3590 # 10*(2^10) chars as input seems more than enough
3591 test $ac_count -gt 10 && break
3592 done
3593 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3594 esac
3596 $ac_path_GREP_found && break 3
3597 done
3598 done
3599 done
3600 IFS=$as_save_IFS
3601 if test -z "$ac_cv_path_GREP"; then
3602 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3604 else
3605 ac_cv_path_GREP=$GREP
3609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3610 $as_echo "$ac_cv_path_GREP" >&6; }
3611 GREP="$ac_cv_path_GREP"
3614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3615 $as_echo_n "checking for egrep... " >&6; }
3616 if ${ac_cv_path_EGREP+:} false; then :
3617 $as_echo_n "(cached) " >&6
3618 else
3619 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3620 then ac_cv_path_EGREP="$GREP -E"
3621 else
3622 if test -z "$EGREP"; then
3623 ac_path_EGREP_found=false
3624 # Loop through the user's path and test for each of PROGNAME-LIST
3625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3626 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3628 IFS=$as_save_IFS
3629 test -z "$as_dir" && as_dir=.
3630 for ac_prog in egrep; do
3631 for ac_exec_ext in '' $ac_executable_extensions; do
3632 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3633 as_fn_executable_p "$ac_path_EGREP" || continue
3634 # Check for GNU ac_path_EGREP and select it if it is found.
3635 # Check for GNU $ac_path_EGREP
3636 case `"$ac_path_EGREP" --version 2>&1` in
3637 *GNU*)
3638 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3640 ac_count=0
3641 $as_echo_n 0123456789 >"conftest.in"
3642 while :
3644 cat "conftest.in" "conftest.in" >"conftest.tmp"
3645 mv "conftest.tmp" "conftest.in"
3646 cp "conftest.in" "conftest.nl"
3647 $as_echo 'EGREP' >> "conftest.nl"
3648 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3649 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3650 as_fn_arith $ac_count + 1 && ac_count=$as_val
3651 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3652 # Best one so far, save it but keep looking for a better one
3653 ac_cv_path_EGREP="$ac_path_EGREP"
3654 ac_path_EGREP_max=$ac_count
3656 # 10*(2^10) chars as input seems more than enough
3657 test $ac_count -gt 10 && break
3658 done
3659 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3660 esac
3662 $ac_path_EGREP_found && break 3
3663 done
3664 done
3665 done
3666 IFS=$as_save_IFS
3667 if test -z "$ac_cv_path_EGREP"; then
3668 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3670 else
3671 ac_cv_path_EGREP=$EGREP
3676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3677 $as_echo "$ac_cv_path_EGREP" >&6; }
3678 EGREP="$ac_cv_path_EGREP"
3681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3682 $as_echo_n "checking for ANSI C header files... " >&6; }
3683 if ${ac_cv_header_stdc+:} false; then :
3684 $as_echo_n "(cached) " >&6
3685 else
3686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3687 /* end confdefs.h. */
3688 #include <stdlib.h>
3689 #include <stdarg.h>
3690 #include <string.h>
3691 #include <float.h>
3694 main ()
3698 return 0;
3700 _ACEOF
3701 if ac_fn_c_try_compile "$LINENO"; then :
3702 ac_cv_header_stdc=yes
3703 else
3704 ac_cv_header_stdc=no
3706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3708 if test $ac_cv_header_stdc = yes; then
3709 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3711 /* end confdefs.h. */
3712 #include <string.h>
3714 _ACEOF
3715 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3716 $EGREP "memchr" >/dev/null 2>&1; then :
3718 else
3719 ac_cv_header_stdc=no
3721 rm -f conftest*
3725 if test $ac_cv_header_stdc = yes; then
3726 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3728 /* end confdefs.h. */
3729 #include <stdlib.h>
3731 _ACEOF
3732 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3733 $EGREP "free" >/dev/null 2>&1; then :
3735 else
3736 ac_cv_header_stdc=no
3738 rm -f conftest*
3742 if test $ac_cv_header_stdc = yes; then
3743 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3744 if test "$cross_compiling" = yes; then :
3746 else
3747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3748 /* end confdefs.h. */
3749 #include <ctype.h>
3750 #include <stdlib.h>
3751 #if ((' ' & 0x0FF) == 0x020)
3752 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3753 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3754 #else
3755 # define ISLOWER(c) \
3756 (('a' <= (c) && (c) <= 'i') \
3757 || ('j' <= (c) && (c) <= 'r') \
3758 || ('s' <= (c) && (c) <= 'z'))
3759 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3760 #endif
3762 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3764 main ()
3766 int i;
3767 for (i = 0; i < 256; i++)
3768 if (XOR (islower (i), ISLOWER (i))
3769 || toupper (i) != TOUPPER (i))
3770 return 2;
3771 return 0;
3773 _ACEOF
3774 if ac_fn_c_try_run "$LINENO"; then :
3776 else
3777 ac_cv_header_stdc=no
3779 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3780 conftest.$ac_objext conftest.beam conftest.$ac_ext
3785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3786 $as_echo "$ac_cv_header_stdc" >&6; }
3787 if test $ac_cv_header_stdc = yes; then
3789 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3793 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3794 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3795 inttypes.h stdint.h unistd.h
3796 do :
3797 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3798 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3800 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3801 cat >>confdefs.h <<_ACEOF
3802 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3803 _ACEOF
3807 done
3811 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3812 if test "x$ac_cv_header_minix_config_h" = xyes; then :
3813 MINIX=yes
3814 else
3815 MINIX=
3819 if test "$MINIX" = yes; then
3821 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3824 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3827 $as_echo "#define _MINIX 1" >>confdefs.h
3832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3833 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3834 if ${ac_cv_safe_to_define___extensions__+:} false; then :
3835 $as_echo_n "(cached) " >&6
3836 else
3837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3838 /* end confdefs.h. */
3840 # define __EXTENSIONS__ 1
3841 $ac_includes_default
3843 main ()
3847 return 0;
3849 _ACEOF
3850 if ac_fn_c_try_compile "$LINENO"; then :
3851 ac_cv_safe_to_define___extensions__=yes
3852 else
3853 ac_cv_safe_to_define___extensions__=no
3855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3858 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3859 test $ac_cv_safe_to_define___extensions__ = yes &&
3860 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3862 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3864 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3866 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3868 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3871 # Determine the noncanonical target name, for directory use.
3872 case ${build_alias} in
3873 "") build_noncanonical=${build} ;;
3874 *) build_noncanonical=${build_alias} ;;
3875 esac
3877 case ${host_alias} in
3878 "") host_noncanonical=${build_noncanonical} ;;
3879 *) host_noncanonical=${host_alias} ;;
3880 esac
3882 case ${target_alias} in
3883 "") target_noncanonical=${host_noncanonical} ;;
3884 *) target_noncanonical=${target_alias} ;;
3885 esac
3890 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3891 # have matching libraries, they should use host libraries: Makefile.tpl
3892 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3893 # However, they still use the build modules, because the corresponding
3894 # host modules (e.g. bison) are only built for the host when bootstrap
3895 # finishes. So:
3896 # - build_subdir is where we find build modules, and never changes.
3897 # - build_libsubdir is where we find build libraries, and can be overridden.
3899 # Prefix 'build-' so this never conflicts with target_subdir.
3900 build_subdir="build-${build_noncanonical}"
3902 # Check whether --with-build-libsubdir was given.
3903 if test "${with_build_libsubdir+set}" = set; then :
3904 withval=$with_build_libsubdir; build_libsubdir="$withval"
3905 else
3906 build_libsubdir="$build_subdir"
3909 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3910 if ( test $srcdir = . && test -d gcc ) \
3911 || test -d $srcdir/../host-${host_noncanonical}; then
3912 host_subdir="host-${host_noncanonical}"
3913 else
3914 host_subdir=.
3916 # No prefix.
3917 target_subdir=${target_noncanonical}
3920 # 1.11.1: Require that version of automake.
3921 # foreign: Don't require README, INSTALL, NEWS, etc.
3922 # no-define: Don't define PACKAGE and VERSION.
3923 # -Wall: Issue all automake warnings.
3924 # -Wno-portability: Don't warn about constructs supported by GNU make.
3925 # (because GCC requires GNU make anyhow).
3926 am__api_version='1.15'
3928 # Find a good install program. We prefer a C program (faster),
3929 # so one script is as good as another. But avoid the broken or
3930 # incompatible versions:
3931 # SysV /etc/install, /usr/sbin/install
3932 # SunOS /usr/etc/install
3933 # IRIX /sbin/install
3934 # AIX /bin/install
3935 # AmigaOS /C/install, which installs bootblocks on floppy discs
3936 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3937 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3938 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3939 # OS/2's system install, which has a completely different semantic
3940 # ./install, which can be erroneously created by make from ./install.sh.
3941 # Reject install programs that cannot install multiple files.
3942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3943 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3944 if test -z "$INSTALL"; then
3945 if ${ac_cv_path_install+:} false; then :
3946 $as_echo_n "(cached) " >&6
3947 else
3948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3949 for as_dir in $PATH
3951 IFS=$as_save_IFS
3952 test -z "$as_dir" && as_dir=.
3953 # Account for people who put trailing slashes in PATH elements.
3954 case $as_dir/ in #((
3955 ./ | .// | /[cC]/* | \
3956 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3957 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3958 /usr/ucb/* ) ;;
3960 # OSF1 and SCO ODT 3.0 have their own names for install.
3961 # Don't use installbsd from OSF since it installs stuff as root
3962 # by default.
3963 for ac_prog in ginstall scoinst install; do
3964 for ac_exec_ext in '' $ac_executable_extensions; do
3965 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3966 if test $ac_prog = install &&
3967 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3968 # AIX install. It has an incompatible calling convention.
3970 elif test $ac_prog = install &&
3971 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3972 # program-specific install script used by HP pwplus--don't use.
3974 else
3975 rm -rf conftest.one conftest.two conftest.dir
3976 echo one > conftest.one
3977 echo two > conftest.two
3978 mkdir conftest.dir
3979 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3980 test -s conftest.one && test -s conftest.two &&
3981 test -s conftest.dir/conftest.one &&
3982 test -s conftest.dir/conftest.two
3983 then
3984 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3985 break 3
3989 done
3990 done
3992 esac
3994 done
3995 IFS=$as_save_IFS
3997 rm -rf conftest.one conftest.two conftest.dir
4000 if test "${ac_cv_path_install+set}" = set; then
4001 INSTALL=$ac_cv_path_install
4002 else
4003 # As a last resort, use the slow shell script. Don't cache a
4004 # value for INSTALL within a source directory, because that will
4005 # break other packages using the cache if that directory is
4006 # removed, or if the value is a relative name.
4007 INSTALL=$ac_install_sh
4010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4011 $as_echo "$INSTALL" >&6; }
4013 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4014 # It thinks the first close brace ends the variable substitution.
4015 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4017 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4019 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4022 $as_echo_n "checking whether build environment is sane... " >&6; }
4023 # Reject unsafe characters in $srcdir or the absolute working directory
4024 # name. Accept space and tab only in the latter.
4025 am_lf='
4027 case `pwd` in
4028 *[\\\"\#\$\&\'\`$am_lf]*)
4029 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
4030 esac
4031 case $srcdir in
4032 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
4033 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
4034 esac
4036 # Do 'set' in a subshell so we don't clobber the current shell's
4037 # arguments. Must try -L first in case configure is actually a
4038 # symlink; some systems play weird games with the mod time of symlinks
4039 # (eg FreeBSD returns the mod time of the symlink's containing
4040 # directory).
4041 if (
4042 am_has_slept=no
4043 for am_try in 1 2; do
4044 echo "timestamp, slept: $am_has_slept" > conftest.file
4045 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4046 if test "$*" = "X"; then
4047 # -L didn't work.
4048 set X `ls -t "$srcdir/configure" conftest.file`
4050 if test "$*" != "X $srcdir/configure conftest.file" \
4051 && test "$*" != "X conftest.file $srcdir/configure"; then
4053 # If neither matched, then we have a broken ls. This can happen
4054 # if, for instance, CONFIG_SHELL is bash and it inherits a
4055 # broken ls alias from the environment. This has actually
4056 # happened. Such a system could not be considered "sane".
4057 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
4058 alias in your environment" "$LINENO" 5
4060 if test "$2" = conftest.file || test $am_try -eq 2; then
4061 break
4063 # Just in case.
4064 sleep 1
4065 am_has_slept=yes
4066 done
4067 test "$2" = conftest.file
4069 then
4070 # Ok.
4072 else
4073 as_fn_error $? "newly created file is older than distributed files!
4074 Check your system clock" "$LINENO" 5
4076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4077 $as_echo "yes" >&6; }
4078 # If we didn't sleep, we still need to ensure time stamps of config.status and
4079 # generated files are strictly newer.
4080 am_sleep_pid=
4081 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
4082 ( sleep 1 ) &
4083 am_sleep_pid=$!
4086 rm -f conftest.file
4088 test "$program_prefix" != NONE &&
4089 program_transform_name="s&^&$program_prefix&;$program_transform_name"
4090 # Use a double $ so make ignores it.
4091 test "$program_suffix" != NONE &&
4092 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4093 # Double any \ or $.
4094 # By default was `s,x,x', remove it if useless.
4095 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4096 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4098 if test x"${MISSING+set}" != xset; then
4099 case $am_aux_dir in
4100 *\ * | *\ *)
4101 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
4103 MISSING="\${SHELL} $am_aux_dir/missing" ;;
4104 esac
4106 # Use eval to expand $SHELL
4107 if eval "$MISSING --is-lightweight"; then
4108 am_missing_run="$MISSING "
4109 else
4110 am_missing_run=
4111 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
4112 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
4115 if test x"${install_sh+set}" != xset; then
4116 case $am_aux_dir in
4117 *\ * | *\ *)
4118 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4120 install_sh="\${SHELL} $am_aux_dir/install-sh"
4121 esac
4124 # Installed binaries are usually stripped using 'strip' when the user
4125 # run "make install-strip". However 'strip' might not be the right
4126 # tool to use in cross-compilation environments, therefore Automake
4127 # will honor the 'STRIP' environment variable to overrule this program.
4128 if test "$cross_compiling" != no; then
4129 if test -n "$ac_tool_prefix"; then
4130 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4131 set dummy ${ac_tool_prefix}strip; ac_word=$2
4132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4133 $as_echo_n "checking for $ac_word... " >&6; }
4134 if ${ac_cv_prog_STRIP+:} false; then :
4135 $as_echo_n "(cached) " >&6
4136 else
4137 if test -n "$STRIP"; then
4138 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4139 else
4140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4141 for as_dir in $PATH
4143 IFS=$as_save_IFS
4144 test -z "$as_dir" && as_dir=.
4145 for ac_exec_ext in '' $ac_executable_extensions; do
4146 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4147 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4148 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4149 break 2
4151 done
4152 done
4153 IFS=$as_save_IFS
4157 STRIP=$ac_cv_prog_STRIP
4158 if test -n "$STRIP"; then
4159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4160 $as_echo "$STRIP" >&6; }
4161 else
4162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4163 $as_echo "no" >&6; }
4168 if test -z "$ac_cv_prog_STRIP"; then
4169 ac_ct_STRIP=$STRIP
4170 # Extract the first word of "strip", so it can be a program name with args.
4171 set dummy strip; ac_word=$2
4172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4173 $as_echo_n "checking for $ac_word... " >&6; }
4174 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
4175 $as_echo_n "(cached) " >&6
4176 else
4177 if test -n "$ac_ct_STRIP"; then
4178 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4179 else
4180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4181 for as_dir in $PATH
4183 IFS=$as_save_IFS
4184 test -z "$as_dir" && as_dir=.
4185 for ac_exec_ext in '' $ac_executable_extensions; do
4186 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4187 ac_cv_prog_ac_ct_STRIP="strip"
4188 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4189 break 2
4191 done
4192 done
4193 IFS=$as_save_IFS
4197 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4198 if test -n "$ac_ct_STRIP"; then
4199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4200 $as_echo "$ac_ct_STRIP" >&6; }
4201 else
4202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4203 $as_echo "no" >&6; }
4206 if test "x$ac_ct_STRIP" = x; then
4207 STRIP=":"
4208 else
4209 case $cross_compiling:$ac_tool_warned in
4210 yes:)
4211 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4212 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4213 ac_tool_warned=yes ;;
4214 esac
4215 STRIP=$ac_ct_STRIP
4217 else
4218 STRIP="$ac_cv_prog_STRIP"
4222 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4225 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4226 if test -z "$MKDIR_P"; then
4227 if ${ac_cv_path_mkdir+:} false; then :
4228 $as_echo_n "(cached) " >&6
4229 else
4230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4231 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4233 IFS=$as_save_IFS
4234 test -z "$as_dir" && as_dir=.
4235 for ac_prog in mkdir gmkdir; do
4236 for ac_exec_ext in '' $ac_executable_extensions; do
4237 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
4238 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4239 'mkdir (GNU coreutils) '* | \
4240 'mkdir (coreutils) '* | \
4241 'mkdir (fileutils) '4.1*)
4242 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4243 break 3;;
4244 esac
4245 done
4246 done
4247 done
4248 IFS=$as_save_IFS
4252 test -d ./--version && rmdir ./--version
4253 if test "${ac_cv_path_mkdir+set}" = set; then
4254 MKDIR_P="$ac_cv_path_mkdir -p"
4255 else
4256 # As a last resort, use the slow shell script. Don't cache a
4257 # value for MKDIR_P within a source directory, because that will
4258 # break other packages using the cache if that directory is
4259 # removed, or if the value is a relative name.
4260 MKDIR_P="$ac_install_sh -d"
4263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4264 $as_echo "$MKDIR_P" >&6; }
4266 for ac_prog in gawk mawk nawk awk
4268 # Extract the first word of "$ac_prog", so it can be a program name with args.
4269 set dummy $ac_prog; ac_word=$2
4270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4271 $as_echo_n "checking for $ac_word... " >&6; }
4272 if ${ac_cv_prog_AWK+:} false; then :
4273 $as_echo_n "(cached) " >&6
4274 else
4275 if test -n "$AWK"; then
4276 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4277 else
4278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4279 for as_dir in $PATH
4281 IFS=$as_save_IFS
4282 test -z "$as_dir" && as_dir=.
4283 for ac_exec_ext in '' $ac_executable_extensions; do
4284 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4285 ac_cv_prog_AWK="$ac_prog"
4286 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4287 break 2
4289 done
4290 done
4291 IFS=$as_save_IFS
4295 AWK=$ac_cv_prog_AWK
4296 if test -n "$AWK"; then
4297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4298 $as_echo "$AWK" >&6; }
4299 else
4300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4301 $as_echo "no" >&6; }
4305 test -n "$AWK" && break
4306 done
4308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4309 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4310 set x ${MAKE-make}
4311 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4312 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4313 $as_echo_n "(cached) " >&6
4314 else
4315 cat >conftest.make <<\_ACEOF
4316 SHELL = /bin/sh
4317 all:
4318 @echo '@@@%%%=$(MAKE)=@@@%%%'
4319 _ACEOF
4320 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4321 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4322 *@@@%%%=?*=@@@%%%*)
4323 eval ac_cv_prog_make_${ac_make}_set=yes;;
4325 eval ac_cv_prog_make_${ac_make}_set=no;;
4326 esac
4327 rm -f conftest.make
4329 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4331 $as_echo "yes" >&6; }
4332 SET_MAKE=
4333 else
4334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4335 $as_echo "no" >&6; }
4336 SET_MAKE="MAKE=${MAKE-make}"
4339 rm -rf .tst 2>/dev/null
4340 mkdir .tst 2>/dev/null
4341 if test -d .tst; then
4342 am__leading_dot=.
4343 else
4344 am__leading_dot=_
4346 rmdir .tst 2>/dev/null
4348 DEPDIR="${am__leading_dot}deps"
4350 ac_config_commands="$ac_config_commands depfiles"
4353 am_make=${MAKE-make}
4354 cat > confinc << 'END'
4355 am__doit:
4356 @echo this is the am__doit target
4357 .PHONY: am__doit
4359 # If we don't find an include directive, just comment out the code.
4360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4361 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4362 am__include="#"
4363 am__quote=
4364 _am_result=none
4365 # First try GNU make style include.
4366 echo "include confinc" > confmf
4367 # Ignore all kinds of additional output from 'make'.
4368 case `$am_make -s -f confmf 2> /dev/null` in #(
4369 *the\ am__doit\ target*)
4370 am__include=include
4371 am__quote=
4372 _am_result=GNU
4374 esac
4375 # Now try BSD make style include.
4376 if test "$am__include" = "#"; then
4377 echo '.include "confinc"' > confmf
4378 case `$am_make -s -f confmf 2> /dev/null` in #(
4379 *the\ am__doit\ target*)
4380 am__include=.include
4381 am__quote="\""
4382 _am_result=BSD
4384 esac
4388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4389 $as_echo "$_am_result" >&6; }
4390 rm -f confinc confmf
4392 # Check whether --enable-dependency-tracking was given.
4393 if test "${enable_dependency_tracking+set}" = set; then :
4394 enableval=$enable_dependency_tracking;
4397 if test "x$enable_dependency_tracking" != xno; then
4398 am_depcomp="$ac_aux_dir/depcomp"
4399 AMDEPBACKSLASH='\'
4400 am__nodep='_no'
4402 if test "x$enable_dependency_tracking" != xno; then
4403 AMDEP_TRUE=
4404 AMDEP_FALSE='#'
4405 else
4406 AMDEP_TRUE='#'
4407 AMDEP_FALSE=
4411 # Check whether --enable-silent-rules was given.
4412 if test "${enable_silent_rules+set}" = set; then :
4413 enableval=$enable_silent_rules;
4416 case $enable_silent_rules in # (((
4417 yes) AM_DEFAULT_VERBOSITY=0;;
4418 no) AM_DEFAULT_VERBOSITY=1;;
4419 *) AM_DEFAULT_VERBOSITY=1;;
4420 esac
4421 am_make=${MAKE-make}
4422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4423 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4424 if ${am_cv_make_support_nested_variables+:} false; then :
4425 $as_echo_n "(cached) " >&6
4426 else
4427 if $as_echo 'TRUE=$(BAR$(V))
4428 BAR0=false
4429 BAR1=true
4431 am__doit:
4432 @$(TRUE)
4433 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4434 am_cv_make_support_nested_variables=yes
4435 else
4436 am_cv_make_support_nested_variables=no
4439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4440 $as_echo "$am_cv_make_support_nested_variables" >&6; }
4441 if test $am_cv_make_support_nested_variables = yes; then
4442 AM_V='$(V)'
4443 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4444 else
4445 AM_V=$AM_DEFAULT_VERBOSITY
4446 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4448 AM_BACKSLASH='\'
4450 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4451 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4452 # is not polluted with repeated "-I."
4453 am__isrc=' -I$(srcdir)'
4454 # test to see if srcdir already configured
4455 if test -f $srcdir/config.status; then
4456 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4460 # test whether we have cygpath
4461 if test -z "$CYGPATH_W"; then
4462 if (cygpath --version) >/dev/null 2>/dev/null; then
4463 CYGPATH_W='cygpath -w'
4464 else
4465 CYGPATH_W=echo
4470 # Define the identity of the package.
4471 PACKAGE='libcc1'
4472 VERSION='version-unused'
4475 # Some tools Automake needs.
4477 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4480 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4483 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4486 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4489 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4491 # For better backward compatibility. To be removed once Automake 1.9.x
4492 # dies out for good. For more background, see:
4493 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4494 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4495 mkdir_p='$(MKDIR_P)'
4497 # We need awk for the "check" target (and possibly the TAP driver). The
4498 # system "awk" is bad on some platforms.
4499 # Always define AMTAR for backward compatibility. Yes, it's still used
4500 # in the wild :-( We should find a proper way to deprecate it ...
4501 AMTAR='$${TAR-tar}'
4504 # We'll loop over all known methods to create a tar archive until one works.
4505 _am_tools='gnutar pax cpio none'
4507 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4513 depcc="$CC" am_compiler_list=
4515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4516 $as_echo_n "checking dependency style of $depcc... " >&6; }
4517 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4518 $as_echo_n "(cached) " >&6
4519 else
4520 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4521 # We make a subdir and do the tests there. Otherwise we can end up
4522 # making bogus files that we don't know about and never remove. For
4523 # instance it was reported that on HP-UX the gcc test will end up
4524 # making a dummy file named 'D' -- because '-MD' means "put the output
4525 # in D".
4526 rm -rf conftest.dir
4527 mkdir conftest.dir
4528 # Copy depcomp to subdir because otherwise we won't find it if we're
4529 # using a relative directory.
4530 cp "$am_depcomp" conftest.dir
4531 cd conftest.dir
4532 # We will build objects and dependencies in a subdirectory because
4533 # it helps to detect inapplicable dependency modes. For instance
4534 # both Tru64's cc and ICC support -MD to output dependencies as a
4535 # side effect of compilation, but ICC will put the dependencies in
4536 # the current directory while Tru64 will put them in the object
4537 # directory.
4538 mkdir sub
4540 am_cv_CC_dependencies_compiler_type=none
4541 if test "$am_compiler_list" = ""; then
4542 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4544 am__universal=false
4545 case " $depcc " in #(
4546 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4547 esac
4549 for depmode in $am_compiler_list; do
4550 # Setup a source with many dependencies, because some compilers
4551 # like to wrap large dependency lists on column 80 (with \), and
4552 # we should not choose a depcomp mode which is confused by this.
4554 # We need to recreate these files for each test, as the compiler may
4555 # overwrite some of them when testing with obscure command lines.
4556 # This happens at least with the AIX C compiler.
4557 : > sub/conftest.c
4558 for i in 1 2 3 4 5 6; do
4559 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4560 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4561 # Solaris 10 /bin/sh.
4562 echo '/* dummy */' > sub/conftst$i.h
4563 done
4564 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4566 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4567 # mode. It turns out that the SunPro C++ compiler does not properly
4568 # handle '-M -o', and we need to detect this. Also, some Intel
4569 # versions had trouble with output in subdirs.
4570 am__obj=sub/conftest.${OBJEXT-o}
4571 am__minus_obj="-o $am__obj"
4572 case $depmode in
4573 gcc)
4574 # This depmode causes a compiler race in universal mode.
4575 test "$am__universal" = false || continue
4577 nosideeffect)
4578 # After this tag, mechanisms are not by side-effect, so they'll
4579 # only be used when explicitly requested.
4580 if test "x$enable_dependency_tracking" = xyes; then
4581 continue
4582 else
4583 break
4586 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4587 # This compiler won't grok '-c -o', but also, the minuso test has
4588 # not run yet. These depmodes are late enough in the game, and
4589 # so weak that their functioning should not be impacted.
4590 am__obj=conftest.${OBJEXT-o}
4591 am__minus_obj=
4593 none) break ;;
4594 esac
4595 if depmode=$depmode \
4596 source=sub/conftest.c object=$am__obj \
4597 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4598 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4599 >/dev/null 2>conftest.err &&
4600 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4601 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4602 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4603 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4604 # icc doesn't choke on unknown options, it will just issue warnings
4605 # or remarks (even with -Werror). So we grep stderr for any message
4606 # that says an option was ignored or not supported.
4607 # When given -MP, icc 7.0 and 7.1 complain thusly:
4608 # icc: Command line warning: ignoring option '-M'; no argument required
4609 # The diagnosis changed in icc 8.0:
4610 # icc: Command line remark: option '-MP' not supported
4611 if (grep 'ignoring option' conftest.err ||
4612 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4613 am_cv_CC_dependencies_compiler_type=$depmode
4614 break
4617 done
4619 cd ..
4620 rm -rf conftest.dir
4621 else
4622 am_cv_CC_dependencies_compiler_type=none
4626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4627 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4628 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4631 test "x$enable_dependency_tracking" != xno \
4632 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4633 am__fastdepCC_TRUE=
4634 am__fastdepCC_FALSE='#'
4635 else
4636 am__fastdepCC_TRUE='#'
4637 am__fastdepCC_FALSE=
4642 # POSIX will say in a future version that running "rm -f" with no argument
4643 # is OK; and we want to be able to make that assumption in our Makefile
4644 # recipes. So use an aggressive probe to check that the usage we want is
4645 # actually supported "in the wild" to an acceptable degree.
4646 # See automake bug#10828.
4647 # To make any issue more visible, cause the running configure to be aborted
4648 # by default if the 'rm' program in use doesn't match our expectations; the
4649 # user can still override this though.
4650 if rm -f && rm -fr && rm -rf; then : OK; else
4651 cat >&2 <<'END'
4652 Oops!
4654 Your 'rm' program seems unable to run without file operands specified
4655 on the command line, even when the '-f' option is present. This is contrary
4656 to the behaviour of most rm programs out there, and not conforming with
4657 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
4659 Please tell bug-automake@gnu.org about your system, including the value
4660 of your $PATH and any error possibly output before this message. This
4661 can help us improve future automake versions.
4664 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
4665 echo 'Configuration will proceed anyway, since you have set the' >&2
4666 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4667 echo >&2
4668 else
4669 cat >&2 <<'END'
4670 Aborting the configuration process, to ensure you take notice of the issue.
4672 You can download and install GNU coreutils to get an 'rm' implementation
4673 that behaves properly: <http://www.gnu.org/software/coreutils/>.
4675 If you want to complete the configuration process using your problematic
4676 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4677 to "yes", and re-run configure.
4680 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
4685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4686 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4687 # Check whether --enable-maintainer-mode was given.
4688 if test "${enable_maintainer_mode+set}" = set; then :
4689 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4690 else
4691 USE_MAINTAINER_MODE=no
4694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4695 $as_echo "$USE_MAINTAINER_MODE" >&6; }
4696 if test $USE_MAINTAINER_MODE = yes; then
4697 MAINTAINER_MODE_TRUE=
4698 MAINTAINER_MODE_FALSE='#'
4699 else
4700 MAINTAINER_MODE_TRUE='#'
4701 MAINTAINER_MODE_FALSE=
4704 MAINT=$MAINTAINER_MODE_TRUE
4708 case `pwd` in
4709 *\ * | *\ *)
4710 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4711 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4712 esac
4716 macro_version='2.2.7a'
4717 macro_revision='1.3134'
4731 ltmain="$ac_aux_dir/ltmain.sh"
4733 # Backslashify metacharacters that are still active within
4734 # double-quoted strings.
4735 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4737 # Same as above, but do not quote variable references.
4738 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4740 # Sed substitution to delay expansion of an escaped shell variable in a
4741 # double_quote_subst'ed string.
4742 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4744 # Sed substitution to delay expansion of an escaped single quote.
4745 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4747 # Sed substitution to avoid accidental globbing in evaled expressions
4748 no_glob_subst='s/\*/\\\*/g'
4750 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4751 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4752 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4755 $as_echo_n "checking how to print strings... " >&6; }
4756 # Test print first, because it will be a builtin if present.
4757 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
4758 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4759 ECHO='print -r --'
4760 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4761 ECHO='printf %s\n'
4762 else
4763 # Use this function as a fallback that always works.
4764 func_fallback_echo ()
4766 eval 'cat <<_LTECHO_EOF
4768 _LTECHO_EOF'
4770 ECHO='func_fallback_echo'
4773 # func_echo_all arg...
4774 # Invoke $ECHO with all args, space-separated.
4775 func_echo_all ()
4777 $ECHO ""
4780 case "$ECHO" in
4781 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4782 $as_echo "printf" >&6; } ;;
4783 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4784 $as_echo "print -r" >&6; } ;;
4785 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4786 $as_echo "cat" >&6; } ;;
4787 esac
4802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4803 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4804 if ${ac_cv_path_SED+:} false; then :
4805 $as_echo_n "(cached) " >&6
4806 else
4807 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4808 for ac_i in 1 2 3 4 5 6 7; do
4809 ac_script="$ac_script$as_nl$ac_script"
4810 done
4811 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4812 { ac_script=; unset ac_script;}
4813 if test -z "$SED"; then
4814 ac_path_SED_found=false
4815 # Loop through the user's path and test for each of PROGNAME-LIST
4816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4817 for as_dir in $PATH
4819 IFS=$as_save_IFS
4820 test -z "$as_dir" && as_dir=.
4821 for ac_prog in sed gsed; do
4822 for ac_exec_ext in '' $ac_executable_extensions; do
4823 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4824 as_fn_executable_p "$ac_path_SED" || continue
4825 # Check for GNU ac_path_SED and select it if it is found.
4826 # Check for GNU $ac_path_SED
4827 case `"$ac_path_SED" --version 2>&1` in
4828 *GNU*)
4829 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4831 ac_count=0
4832 $as_echo_n 0123456789 >"conftest.in"
4833 while :
4835 cat "conftest.in" "conftest.in" >"conftest.tmp"
4836 mv "conftest.tmp" "conftest.in"
4837 cp "conftest.in" "conftest.nl"
4838 $as_echo '' >> "conftest.nl"
4839 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4840 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4841 as_fn_arith $ac_count + 1 && ac_count=$as_val
4842 if test $ac_count -gt ${ac_path_SED_max-0}; then
4843 # Best one so far, save it but keep looking for a better one
4844 ac_cv_path_SED="$ac_path_SED"
4845 ac_path_SED_max=$ac_count
4847 # 10*(2^10) chars as input seems more than enough
4848 test $ac_count -gt 10 && break
4849 done
4850 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4851 esac
4853 $ac_path_SED_found && break 3
4854 done
4855 done
4856 done
4857 IFS=$as_save_IFS
4858 if test -z "$ac_cv_path_SED"; then
4859 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4861 else
4862 ac_cv_path_SED=$SED
4866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4867 $as_echo "$ac_cv_path_SED" >&6; }
4868 SED="$ac_cv_path_SED"
4869 rm -f conftest.sed
4871 test -z "$SED" && SED=sed
4872 Xsed="$SED -e 1s/^X//"
4884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4885 $as_echo_n "checking for fgrep... " >&6; }
4886 if ${ac_cv_path_FGREP+:} false; then :
4887 $as_echo_n "(cached) " >&6
4888 else
4889 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4890 then ac_cv_path_FGREP="$GREP -F"
4891 else
4892 if test -z "$FGREP"; then
4893 ac_path_FGREP_found=false
4894 # Loop through the user's path and test for each of PROGNAME-LIST
4895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4896 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4898 IFS=$as_save_IFS
4899 test -z "$as_dir" && as_dir=.
4900 for ac_prog in fgrep; do
4901 for ac_exec_ext in '' $ac_executable_extensions; do
4902 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4903 as_fn_executable_p "$ac_path_FGREP" || continue
4904 # Check for GNU ac_path_FGREP and select it if it is found.
4905 # Check for GNU $ac_path_FGREP
4906 case `"$ac_path_FGREP" --version 2>&1` in
4907 *GNU*)
4908 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4910 ac_count=0
4911 $as_echo_n 0123456789 >"conftest.in"
4912 while :
4914 cat "conftest.in" "conftest.in" >"conftest.tmp"
4915 mv "conftest.tmp" "conftest.in"
4916 cp "conftest.in" "conftest.nl"
4917 $as_echo 'FGREP' >> "conftest.nl"
4918 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4919 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4920 as_fn_arith $ac_count + 1 && ac_count=$as_val
4921 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4922 # Best one so far, save it but keep looking for a better one
4923 ac_cv_path_FGREP="$ac_path_FGREP"
4924 ac_path_FGREP_max=$ac_count
4926 # 10*(2^10) chars as input seems more than enough
4927 test $ac_count -gt 10 && break
4928 done
4929 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4930 esac
4932 $ac_path_FGREP_found && break 3
4933 done
4934 done
4935 done
4936 IFS=$as_save_IFS
4937 if test -z "$ac_cv_path_FGREP"; then
4938 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4940 else
4941 ac_cv_path_FGREP=$FGREP
4946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4947 $as_echo "$ac_cv_path_FGREP" >&6; }
4948 FGREP="$ac_cv_path_FGREP"
4951 test -z "$GREP" && GREP=grep
4971 # Check whether --with-gnu-ld was given.
4972 if test "${with_gnu_ld+set}" = set; then :
4973 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4974 else
4975 with_gnu_ld=no
4978 ac_prog=ld
4979 if test "$GCC" = yes; then
4980 # Check if gcc -print-prog-name=ld gives a path.
4981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4982 $as_echo_n "checking for ld used by $CC... " >&6; }
4983 case $host in
4984 *-*-mingw*)
4985 # gcc leaves a trailing carriage return which upsets mingw
4986 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4988 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4989 esac
4990 case $ac_prog in
4991 # Accept absolute paths.
4992 [\\/]* | ?:[\\/]*)
4993 re_direlt='/[^/][^/]*/\.\./'
4994 # Canonicalize the pathname of ld
4995 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4996 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4997 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4998 done
4999 test -z "$LD" && LD="$ac_prog"
5002 # If it fails, then pretend we aren't using GCC.
5003 ac_prog=ld
5006 # If it is relative, then search for the first ld in PATH.
5007 with_gnu_ld=unknown
5009 esac
5010 elif test "$with_gnu_ld" = yes; then
5011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5012 $as_echo_n "checking for GNU ld... " >&6; }
5013 else
5014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5015 $as_echo_n "checking for non-GNU ld... " >&6; }
5017 if ${lt_cv_path_LD+:} false; then :
5018 $as_echo_n "(cached) " >&6
5019 else
5020 if test -z "$LD"; then
5021 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5022 for ac_dir in $PATH; do
5023 IFS="$lt_save_ifs"
5024 test -z "$ac_dir" && ac_dir=.
5025 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5026 lt_cv_path_LD="$ac_dir/$ac_prog"
5027 # Check to see if the program is GNU ld. I'd rather use --version,
5028 # but apparently some variants of GNU ld only accept -v.
5029 # Break only if it was the GNU/non-GNU ld that we prefer.
5030 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5031 *GNU* | *'with BFD'*)
5032 test "$with_gnu_ld" != no && break
5035 test "$with_gnu_ld" != yes && break
5037 esac
5039 done
5040 IFS="$lt_save_ifs"
5041 else
5042 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5046 LD="$lt_cv_path_LD"
5047 if test -n "$LD"; then
5048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5049 $as_echo "$LD" >&6; }
5050 else
5051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5052 $as_echo "no" >&6; }
5054 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5056 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5057 if ${lt_cv_prog_gnu_ld+:} false; then :
5058 $as_echo_n "(cached) " >&6
5059 else
5060 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5061 case `$LD -v 2>&1 </dev/null` in
5062 *GNU* | *'with BFD'*)
5063 lt_cv_prog_gnu_ld=yes
5066 lt_cv_prog_gnu_ld=no
5068 esac
5070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5071 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5072 with_gnu_ld=$lt_cv_prog_gnu_ld
5082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5083 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5084 if ${lt_cv_path_NM+:} false; then :
5085 $as_echo_n "(cached) " >&6
5086 else
5087 if test -n "$NM"; then
5088 # Let the user override the test.
5089 lt_cv_path_NM="$NM"
5090 else
5091 lt_nm_to_check="${ac_tool_prefix}nm"
5092 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5093 lt_nm_to_check="$lt_nm_to_check nm"
5095 for lt_tmp_nm in $lt_nm_to_check; do
5096 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5097 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5098 IFS="$lt_save_ifs"
5099 test -z "$ac_dir" && ac_dir=.
5100 tmp_nm="$ac_dir/$lt_tmp_nm"
5101 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5102 # Check to see if the nm accepts a BSD-compat flag.
5103 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5104 # nm: unknown option "B" ignored
5105 # Tru64's nm complains that /dev/null is an invalid object file
5106 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5107 */dev/null* | *'Invalid file or object type'*)
5108 lt_cv_path_NM="$tmp_nm -B"
5109 break
5112 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5113 */dev/null*)
5114 lt_cv_path_NM="$tmp_nm -p"
5115 break
5118 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5119 continue # so that we can try to find one that supports BSD flags
5121 esac
5123 esac
5125 done
5126 IFS="$lt_save_ifs"
5127 done
5128 : ${lt_cv_path_NM=no}
5131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5132 $as_echo "$lt_cv_path_NM" >&6; }
5133 if test "$lt_cv_path_NM" != "no"; then
5134 NM="$lt_cv_path_NM"
5135 else
5136 # Didn't find any BSD compatible name lister, look for dumpbin.
5137 if test -n "$DUMPBIN"; then :
5138 # Let the user override the test.
5139 else
5140 if test -n "$ac_tool_prefix"; then
5141 for ac_prog in dumpbin "link -dump"
5143 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5144 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5146 $as_echo_n "checking for $ac_word... " >&6; }
5147 if ${ac_cv_prog_DUMPBIN+:} false; then :
5148 $as_echo_n "(cached) " >&6
5149 else
5150 if test -n "$DUMPBIN"; then
5151 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5152 else
5153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5154 for as_dir in $PATH
5156 IFS=$as_save_IFS
5157 test -z "$as_dir" && as_dir=.
5158 for ac_exec_ext in '' $ac_executable_extensions; do
5159 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5160 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5161 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5162 break 2
5164 done
5165 done
5166 IFS=$as_save_IFS
5170 DUMPBIN=$ac_cv_prog_DUMPBIN
5171 if test -n "$DUMPBIN"; then
5172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5173 $as_echo "$DUMPBIN" >&6; }
5174 else
5175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5176 $as_echo "no" >&6; }
5180 test -n "$DUMPBIN" && break
5181 done
5183 if test -z "$DUMPBIN"; then
5184 ac_ct_DUMPBIN=$DUMPBIN
5185 for ac_prog in dumpbin "link -dump"
5187 # Extract the first word of "$ac_prog", so it can be a program name with args.
5188 set dummy $ac_prog; ac_word=$2
5189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5190 $as_echo_n "checking for $ac_word... " >&6; }
5191 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5192 $as_echo_n "(cached) " >&6
5193 else
5194 if test -n "$ac_ct_DUMPBIN"; then
5195 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5196 else
5197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5198 for as_dir in $PATH
5200 IFS=$as_save_IFS
5201 test -z "$as_dir" && as_dir=.
5202 for ac_exec_ext in '' $ac_executable_extensions; do
5203 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5204 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5205 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5206 break 2
5208 done
5209 done
5210 IFS=$as_save_IFS
5214 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5215 if test -n "$ac_ct_DUMPBIN"; then
5216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5217 $as_echo "$ac_ct_DUMPBIN" >&6; }
5218 else
5219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5220 $as_echo "no" >&6; }
5224 test -n "$ac_ct_DUMPBIN" && break
5225 done
5227 if test "x$ac_ct_DUMPBIN" = x; then
5228 DUMPBIN=":"
5229 else
5230 case $cross_compiling:$ac_tool_warned in
5231 yes:)
5232 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5233 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5234 ac_tool_warned=yes ;;
5235 esac
5236 DUMPBIN=$ac_ct_DUMPBIN
5240 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5241 *COFF*)
5242 DUMPBIN="$DUMPBIN -symbols"
5245 DUMPBIN=:
5247 esac
5250 if test "$DUMPBIN" != ":"; then
5251 NM="$DUMPBIN"
5254 test -z "$NM" && NM=nm
5261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5262 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5263 if ${lt_cv_nm_interface+:} false; then :
5264 $as_echo_n "(cached) " >&6
5265 else
5266 lt_cv_nm_interface="BSD nm"
5267 echo "int some_variable = 0;" > conftest.$ac_ext
5268 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5269 (eval "$ac_compile" 2>conftest.err)
5270 cat conftest.err >&5
5271 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5272 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5273 cat conftest.err >&5
5274 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5275 cat conftest.out >&5
5276 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5277 lt_cv_nm_interface="MS dumpbin"
5279 rm -f conftest*
5281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5282 $as_echo "$lt_cv_nm_interface" >&6; }
5284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5285 $as_echo_n "checking whether ln -s works... " >&6; }
5286 LN_S=$as_ln_s
5287 if test "$LN_S" = "ln -s"; then
5288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5289 $as_echo "yes" >&6; }
5290 else
5291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5292 $as_echo "no, using $LN_S" >&6; }
5295 # find the maximum length of command line arguments
5296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5297 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5298 if ${lt_cv_sys_max_cmd_len+:} false; then :
5299 $as_echo_n "(cached) " >&6
5300 else
5302 teststring="ABCD"
5304 case $build_os in
5305 msdosdjgpp*)
5306 # On DJGPP, this test can blow up pretty badly due to problems in libc
5307 # (any single argument exceeding 2000 bytes causes a buffer overrun
5308 # during glob expansion). Even if it were fixed, the result of this
5309 # check would be larger than it should be.
5310 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5313 gnu*)
5314 # Under GNU Hurd, this test is not required because there is
5315 # no limit to the length of command line arguments.
5316 # Libtool will interpret -1 as no limit whatsoever
5317 lt_cv_sys_max_cmd_len=-1;
5320 cygwin* | mingw* | cegcc*)
5321 # On Win9x/ME, this test blows up -- it succeeds, but takes
5322 # about 5 minutes as the teststring grows exponentially.
5323 # Worse, since 9x/ME are not pre-emptively multitasking,
5324 # you end up with a "frozen" computer, even though with patience
5325 # the test eventually succeeds (with a max line length of 256k).
5326 # Instead, let's just punt: use the minimum linelength reported by
5327 # all of the supported platforms: 8192 (on NT/2K/XP).
5328 lt_cv_sys_max_cmd_len=8192;
5331 mint*)
5332 # On MiNT this can take a long time and run out of memory.
5333 lt_cv_sys_max_cmd_len=8192;
5336 amigaos*)
5337 # On AmigaOS with pdksh, this test takes hours, literally.
5338 # So we just punt and use a minimum line length of 8192.
5339 lt_cv_sys_max_cmd_len=8192;
5342 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5343 # This has been around since 386BSD, at least. Likely further.
5344 if test -x /sbin/sysctl; then
5345 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5346 elif test -x /usr/sbin/sysctl; then
5347 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5348 else
5349 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5351 # And add a safety zone
5352 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5353 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5356 interix*)
5357 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5358 lt_cv_sys_max_cmd_len=196608
5361 osf*)
5362 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5363 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5364 # nice to cause kernel panics so lets avoid the loop below.
5365 # First set a reasonable default.
5366 lt_cv_sys_max_cmd_len=16384
5368 if test -x /sbin/sysconfig; then
5369 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5370 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5371 esac
5374 sco3.2v5*)
5375 lt_cv_sys_max_cmd_len=102400
5377 sysv5* | sco5v6* | sysv4.2uw2*)
5378 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5379 if test -n "$kargmax"; then
5380 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5381 else
5382 lt_cv_sys_max_cmd_len=32768
5386 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5387 if test -n "$lt_cv_sys_max_cmd_len"; then
5388 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5389 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5390 else
5391 # Make teststring a little bigger before we do anything with it.
5392 # a 1K string should be a reasonable start.
5393 for i in 1 2 3 4 5 6 7 8 ; do
5394 teststring=$teststring$teststring
5395 done
5396 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5397 # If test is not a shell built-in, we'll probably end up computing a
5398 # maximum length that is only half of the actual maximum length, but
5399 # we can't tell.
5400 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5401 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5402 test $i != 17 # 1/2 MB should be enough
5404 i=`expr $i + 1`
5405 teststring=$teststring$teststring
5406 done
5407 # Only check the string length outside the loop.
5408 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5409 teststring=
5410 # Add a significant safety factor because C++ compilers can tack on
5411 # massive amounts of additional arguments before passing them to the
5412 # linker. It appears as though 1/2 is a usable value.
5413 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5416 esac
5420 if test -n $lt_cv_sys_max_cmd_len ; then
5421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5422 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5423 else
5424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5425 $as_echo "none" >&6; }
5427 max_cmd_len=$lt_cv_sys_max_cmd_len
5434 : ${CP="cp -f"}
5435 : ${MV="mv -f"}
5436 : ${RM="rm -f"}
5438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5439 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5440 # Try some XSI features
5441 xsi_shell=no
5442 ( _lt_dummy="a/b/c"
5443 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5444 = c,a/b,, \
5445 && eval 'test $(( 1 + 1 )) -eq 2 \
5446 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5447 && xsi_shell=yes
5448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5449 $as_echo "$xsi_shell" >&6; }
5452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5453 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5454 lt_shell_append=no
5455 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5456 >/dev/null 2>&1 \
5457 && lt_shell_append=yes
5458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5459 $as_echo "$lt_shell_append" >&6; }
5462 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5463 lt_unset=unset
5464 else
5465 lt_unset=false
5472 # test EBCDIC or ASCII
5473 case `echo X|tr X '\101'` in
5474 A) # ASCII based system
5475 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5476 lt_SP2NL='tr \040 \012'
5477 lt_NL2SP='tr \015\012 \040\040'
5479 *) # EBCDIC based system
5480 lt_SP2NL='tr \100 \n'
5481 lt_NL2SP='tr \r\n \100\100'
5483 esac
5493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5494 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5495 if ${lt_cv_ld_reload_flag+:} false; then :
5496 $as_echo_n "(cached) " >&6
5497 else
5498 lt_cv_ld_reload_flag='-r'
5500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5501 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5502 reload_flag=$lt_cv_ld_reload_flag
5503 case $reload_flag in
5504 "" | " "*) ;;
5505 *) reload_flag=" $reload_flag" ;;
5506 esac
5507 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5508 case $host_os in
5509 darwin*)
5510 if test "$GCC" = yes; then
5511 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5512 else
5513 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5516 esac
5526 if test -n "$ac_tool_prefix"; then
5527 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5528 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5530 $as_echo_n "checking for $ac_word... " >&6; }
5531 if ${ac_cv_prog_OBJDUMP+:} false; then :
5532 $as_echo_n "(cached) " >&6
5533 else
5534 if test -n "$OBJDUMP"; then
5535 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5536 else
5537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5538 for as_dir in $PATH
5540 IFS=$as_save_IFS
5541 test -z "$as_dir" && as_dir=.
5542 for ac_exec_ext in '' $ac_executable_extensions; do
5543 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5544 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5545 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5546 break 2
5548 done
5549 done
5550 IFS=$as_save_IFS
5554 OBJDUMP=$ac_cv_prog_OBJDUMP
5555 if test -n "$OBJDUMP"; then
5556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5557 $as_echo "$OBJDUMP" >&6; }
5558 else
5559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5560 $as_echo "no" >&6; }
5565 if test -z "$ac_cv_prog_OBJDUMP"; then
5566 ac_ct_OBJDUMP=$OBJDUMP
5567 # Extract the first word of "objdump", so it can be a program name with args.
5568 set dummy objdump; ac_word=$2
5569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5570 $as_echo_n "checking for $ac_word... " >&6; }
5571 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5572 $as_echo_n "(cached) " >&6
5573 else
5574 if test -n "$ac_ct_OBJDUMP"; then
5575 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5576 else
5577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5578 for as_dir in $PATH
5580 IFS=$as_save_IFS
5581 test -z "$as_dir" && as_dir=.
5582 for ac_exec_ext in '' $ac_executable_extensions; do
5583 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5584 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5585 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5586 break 2
5588 done
5589 done
5590 IFS=$as_save_IFS
5594 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5595 if test -n "$ac_ct_OBJDUMP"; then
5596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5597 $as_echo "$ac_ct_OBJDUMP" >&6; }
5598 else
5599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5600 $as_echo "no" >&6; }
5603 if test "x$ac_ct_OBJDUMP" = x; then
5604 OBJDUMP="false"
5605 else
5606 case $cross_compiling:$ac_tool_warned in
5607 yes:)
5608 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5609 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5610 ac_tool_warned=yes ;;
5611 esac
5612 OBJDUMP=$ac_ct_OBJDUMP
5614 else
5615 OBJDUMP="$ac_cv_prog_OBJDUMP"
5618 test -z "$OBJDUMP" && OBJDUMP=objdump
5628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5629 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5630 if ${lt_cv_deplibs_check_method+:} false; then :
5631 $as_echo_n "(cached) " >&6
5632 else
5633 lt_cv_file_magic_cmd='$MAGIC_CMD'
5634 lt_cv_file_magic_test_file=
5635 lt_cv_deplibs_check_method='unknown'
5636 # Need to set the preceding variable on all platforms that support
5637 # interlibrary dependencies.
5638 # 'none' -- dependencies not supported.
5639 # `unknown' -- same as none, but documents that we really don't know.
5640 # 'pass_all' -- all dependencies passed with no checks.
5641 # 'test_compile' -- check by making test program.
5642 # 'file_magic [[regex]]' -- check by looking for files in library path
5643 # which responds to the $file_magic_cmd with a given extended regex.
5644 # If you have `file' or equivalent on your system and you're not sure
5645 # whether `pass_all' will *always* work, you probably want this one.
5647 case $host_os in
5648 aix[4-9]*)
5649 lt_cv_deplibs_check_method=pass_all
5652 beos*)
5653 lt_cv_deplibs_check_method=pass_all
5656 bsdi[45]*)
5657 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5658 lt_cv_file_magic_cmd='/usr/bin/file -L'
5659 lt_cv_file_magic_test_file=/shlib/libc.so
5662 cygwin*)
5663 # func_win32_libid is a shell function defined in ltmain.sh
5664 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5665 lt_cv_file_magic_cmd='func_win32_libid'
5668 mingw* | pw32*)
5669 # Base MSYS/MinGW do not provide the 'file' command needed by
5670 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5671 # unless we find 'file', for example because we are cross-compiling.
5672 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5673 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5674 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5675 lt_cv_file_magic_cmd='func_win32_libid'
5676 else
5677 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5678 lt_cv_file_magic_cmd='$OBJDUMP -f'
5682 cegcc*)
5683 # use the weaker test based on 'objdump'. See mingw*.
5684 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5685 lt_cv_file_magic_cmd='$OBJDUMP -f'
5688 darwin* | rhapsody*)
5689 lt_cv_deplibs_check_method=pass_all
5692 freebsd* | dragonfly*)
5693 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5694 case $host_cpu in
5695 i*86 )
5696 # Not sure whether the presence of OpenBSD here was a mistake.
5697 # Let's accept both of them until this is cleared up.
5698 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5699 lt_cv_file_magic_cmd=/usr/bin/file
5700 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5702 esac
5703 else
5704 lt_cv_deplibs_check_method=pass_all
5708 gnu*)
5709 lt_cv_deplibs_check_method=pass_all
5712 haiku*)
5713 lt_cv_deplibs_check_method=pass_all
5716 hpux10.20* | hpux11*)
5717 lt_cv_file_magic_cmd=/usr/bin/file
5718 case $host_cpu in
5719 ia64*)
5720 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5721 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5723 hppa*64*)
5724 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]'
5725 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5728 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5729 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5731 esac
5734 interix[3-9]*)
5735 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5736 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5739 irix5* | irix6* | nonstopux*)
5740 case $LD in
5741 *-32|*"-32 ") libmagic=32-bit;;
5742 *-n32|*"-n32 ") libmagic=N32;;
5743 *-64|*"-64 ") libmagic=64-bit;;
5744 *) libmagic=never-match;;
5745 esac
5746 lt_cv_deplibs_check_method=pass_all
5749 # This must be Linux ELF.
5750 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
5751 lt_cv_deplibs_check_method=pass_all
5754 netbsd*)
5755 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5756 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5757 else
5758 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5762 newos6*)
5763 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5764 lt_cv_file_magic_cmd=/usr/bin/file
5765 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5768 *nto* | *qnx*)
5769 lt_cv_deplibs_check_method=pass_all
5772 openbsd*)
5773 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5774 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5775 else
5776 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5780 osf3* | osf4* | osf5*)
5781 lt_cv_deplibs_check_method=pass_all
5784 rdos*)
5785 lt_cv_deplibs_check_method=pass_all
5788 solaris*)
5789 lt_cv_deplibs_check_method=pass_all
5792 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5793 lt_cv_deplibs_check_method=pass_all
5796 sysv4 | sysv4.3*)
5797 case $host_vendor in
5798 motorola)
5799 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]'
5800 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5802 ncr)
5803 lt_cv_deplibs_check_method=pass_all
5805 sequent)
5806 lt_cv_file_magic_cmd='/bin/file'
5807 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5809 sni)
5810 lt_cv_file_magic_cmd='/bin/file'
5811 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5812 lt_cv_file_magic_test_file=/lib/libc.so
5814 siemens)
5815 lt_cv_deplibs_check_method=pass_all
5818 lt_cv_deplibs_check_method=pass_all
5820 esac
5823 tpf*)
5824 lt_cv_deplibs_check_method=pass_all
5826 esac
5829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5830 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5831 file_magic_cmd=$lt_cv_file_magic_cmd
5832 deplibs_check_method=$lt_cv_deplibs_check_method
5833 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5846 if test -n "$ac_tool_prefix"; then
5847 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5848 set dummy ${ac_tool_prefix}ar; ac_word=$2
5849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5850 $as_echo_n "checking for $ac_word... " >&6; }
5851 if ${ac_cv_prog_AR+:} false; then :
5852 $as_echo_n "(cached) " >&6
5853 else
5854 if test -n "$AR"; then
5855 ac_cv_prog_AR="$AR" # Let the user override the test.
5856 else
5857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5858 for as_dir in $PATH
5860 IFS=$as_save_IFS
5861 test -z "$as_dir" && as_dir=.
5862 for ac_exec_ext in '' $ac_executable_extensions; do
5863 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5864 ac_cv_prog_AR="${ac_tool_prefix}ar"
5865 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5866 break 2
5868 done
5869 done
5870 IFS=$as_save_IFS
5874 AR=$ac_cv_prog_AR
5875 if test -n "$AR"; then
5876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5877 $as_echo "$AR" >&6; }
5878 else
5879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5880 $as_echo "no" >&6; }
5885 if test -z "$ac_cv_prog_AR"; then
5886 ac_ct_AR=$AR
5887 # Extract the first word of "ar", so it can be a program name with args.
5888 set dummy ar; ac_word=$2
5889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5890 $as_echo_n "checking for $ac_word... " >&6; }
5891 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5892 $as_echo_n "(cached) " >&6
5893 else
5894 if test -n "$ac_ct_AR"; then
5895 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5896 else
5897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5898 for as_dir in $PATH
5900 IFS=$as_save_IFS
5901 test -z "$as_dir" && as_dir=.
5902 for ac_exec_ext in '' $ac_executable_extensions; do
5903 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5904 ac_cv_prog_ac_ct_AR="ar"
5905 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5906 break 2
5908 done
5909 done
5910 IFS=$as_save_IFS
5914 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5915 if test -n "$ac_ct_AR"; then
5916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5917 $as_echo "$ac_ct_AR" >&6; }
5918 else
5919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5920 $as_echo "no" >&6; }
5923 if test "x$ac_ct_AR" = x; then
5924 AR="false"
5925 else
5926 case $cross_compiling:$ac_tool_warned in
5927 yes:)
5928 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5929 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5930 ac_tool_warned=yes ;;
5931 esac
5932 AR=$ac_ct_AR
5934 else
5935 AR="$ac_cv_prog_AR"
5938 test -z "$AR" && AR=ar
5939 test -z "$AR_FLAGS" && AR_FLAGS=cru
5951 if test -n "$ac_tool_prefix"; then
5952 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5953 set dummy ${ac_tool_prefix}strip; ac_word=$2
5954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5955 $as_echo_n "checking for $ac_word... " >&6; }
5956 if ${ac_cv_prog_STRIP+:} false; then :
5957 $as_echo_n "(cached) " >&6
5958 else
5959 if test -n "$STRIP"; then
5960 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5961 else
5962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5963 for as_dir in $PATH
5965 IFS=$as_save_IFS
5966 test -z "$as_dir" && as_dir=.
5967 for ac_exec_ext in '' $ac_executable_extensions; do
5968 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5969 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5970 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5971 break 2
5973 done
5974 done
5975 IFS=$as_save_IFS
5979 STRIP=$ac_cv_prog_STRIP
5980 if test -n "$STRIP"; then
5981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5982 $as_echo "$STRIP" >&6; }
5983 else
5984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5985 $as_echo "no" >&6; }
5990 if test -z "$ac_cv_prog_STRIP"; then
5991 ac_ct_STRIP=$STRIP
5992 # Extract the first word of "strip", so it can be a program name with args.
5993 set dummy strip; ac_word=$2
5994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5995 $as_echo_n "checking for $ac_word... " >&6; }
5996 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5997 $as_echo_n "(cached) " >&6
5998 else
5999 if test -n "$ac_ct_STRIP"; then
6000 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6001 else
6002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6003 for as_dir in $PATH
6005 IFS=$as_save_IFS
6006 test -z "$as_dir" && as_dir=.
6007 for ac_exec_ext in '' $ac_executable_extensions; do
6008 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6009 ac_cv_prog_ac_ct_STRIP="strip"
6010 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6011 break 2
6013 done
6014 done
6015 IFS=$as_save_IFS
6019 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6020 if test -n "$ac_ct_STRIP"; then
6021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6022 $as_echo "$ac_ct_STRIP" >&6; }
6023 else
6024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6025 $as_echo "no" >&6; }
6028 if test "x$ac_ct_STRIP" = x; then
6029 STRIP=":"
6030 else
6031 case $cross_compiling:$ac_tool_warned in
6032 yes:)
6033 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6034 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6035 ac_tool_warned=yes ;;
6036 esac
6037 STRIP=$ac_ct_STRIP
6039 else
6040 STRIP="$ac_cv_prog_STRIP"
6043 test -z "$STRIP" && STRIP=:
6050 if test -n "$ac_tool_prefix"; then
6051 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6052 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6054 $as_echo_n "checking for $ac_word... " >&6; }
6055 if ${ac_cv_prog_RANLIB+:} false; then :
6056 $as_echo_n "(cached) " >&6
6057 else
6058 if test -n "$RANLIB"; then
6059 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6060 else
6061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6062 for as_dir in $PATH
6064 IFS=$as_save_IFS
6065 test -z "$as_dir" && as_dir=.
6066 for ac_exec_ext in '' $ac_executable_extensions; do
6067 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6068 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6069 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6070 break 2
6072 done
6073 done
6074 IFS=$as_save_IFS
6078 RANLIB=$ac_cv_prog_RANLIB
6079 if test -n "$RANLIB"; then
6080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6081 $as_echo "$RANLIB" >&6; }
6082 else
6083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6084 $as_echo "no" >&6; }
6089 if test -z "$ac_cv_prog_RANLIB"; then
6090 ac_ct_RANLIB=$RANLIB
6091 # Extract the first word of "ranlib", so it can be a program name with args.
6092 set dummy ranlib; ac_word=$2
6093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6094 $as_echo_n "checking for $ac_word... " >&6; }
6095 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6096 $as_echo_n "(cached) " >&6
6097 else
6098 if test -n "$ac_ct_RANLIB"; then
6099 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6100 else
6101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6102 for as_dir in $PATH
6104 IFS=$as_save_IFS
6105 test -z "$as_dir" && as_dir=.
6106 for ac_exec_ext in '' $ac_executable_extensions; do
6107 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6108 ac_cv_prog_ac_ct_RANLIB="ranlib"
6109 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6110 break 2
6112 done
6113 done
6114 IFS=$as_save_IFS
6118 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6119 if test -n "$ac_ct_RANLIB"; then
6120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6121 $as_echo "$ac_ct_RANLIB" >&6; }
6122 else
6123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6124 $as_echo "no" >&6; }
6127 if test "x$ac_ct_RANLIB" = x; then
6128 RANLIB=":"
6129 else
6130 case $cross_compiling:$ac_tool_warned in
6131 yes:)
6132 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6133 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6134 ac_tool_warned=yes ;;
6135 esac
6136 RANLIB=$ac_ct_RANLIB
6138 else
6139 RANLIB="$ac_cv_prog_RANLIB"
6142 test -z "$RANLIB" && RANLIB=:
6149 # Determine commands to create old-style static archives.
6150 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6151 old_postinstall_cmds='chmod 644 $oldlib'
6152 old_postuninstall_cmds=
6154 if test -n "$RANLIB"; then
6155 case $host_os in
6156 openbsd*)
6157 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6160 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6162 esac
6163 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6166 case $host_os in
6167 darwin*)
6168 lock_old_archive_extraction=yes ;;
6170 lock_old_archive_extraction=no ;;
6171 esac
6211 # If no C compiler was specified, use CC.
6212 LTCC=${LTCC-"$CC"}
6214 # If no C compiler flags were specified, use CFLAGS.
6215 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6217 # Allow CC to be a program name with arguments.
6218 compiler=$CC
6221 # Check for command to grab the raw symbol name followed by C symbol from nm.
6222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6223 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6224 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6225 $as_echo_n "(cached) " >&6
6226 else
6228 # These are sane defaults that work on at least a few old systems.
6229 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6231 # Character class describing NM global symbol codes.
6232 symcode='[BCDEGRST]'
6234 # Regexp to match symbols that can be accessed directly from C.
6235 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6237 # Define system-specific variables.
6238 case $host_os in
6239 aix*)
6240 symcode='[BCDT]'
6242 cygwin* | mingw* | pw32* | cegcc*)
6243 symcode='[ABCDGISTW]'
6245 hpux*)
6246 if test "$host_cpu" = ia64; then
6247 symcode='[ABCDEGRST]'
6250 irix* | nonstopux*)
6251 symcode='[BCDEGRST]'
6253 osf*)
6254 symcode='[BCDEGQRST]'
6256 solaris*)
6257 symcode='[BDRT]'
6259 sco3.2v5*)
6260 symcode='[DT]'
6262 sysv4.2uw2*)
6263 symcode='[DT]'
6265 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6266 symcode='[ABDT]'
6268 sysv4)
6269 symcode='[DFNSTU]'
6271 esac
6273 # If we're using GNU nm, then use its standard symbol codes.
6274 case `$NM -V 2>&1` in
6275 *GNU* | *'with BFD'*)
6276 symcode='[ABCDGIRSTW]' ;;
6277 esac
6279 # Transform an extracted symbol line into a proper C declaration.
6280 # Some systems (esp. on ia64) link data and code symbols differently,
6281 # so use this general approach.
6282 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6284 # Transform an extracted symbol line into symbol name and symbol address
6285 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6286 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'"
6288 # Handle CRLF in mingw tool chain
6289 opt_cr=
6290 case $build_os in
6291 mingw*)
6292 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6294 esac
6296 # Try without a prefix underscore, then with it.
6297 for ac_symprfx in "" "_"; do
6299 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6300 symxfrm="\\1 $ac_symprfx\\2 \\2"
6302 # Write the raw and C identifiers.
6303 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6304 # Fake it for dumpbin and say T for any non-static function
6305 # and D for any global variable.
6306 # Also find C++ and __fastcall symbols from MSVC++,
6307 # which start with @ or ?.
6308 lt_cv_sys_global_symbol_pipe="$AWK '"\
6309 " {last_section=section; section=\$ 3};"\
6310 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6311 " \$ 0!~/External *\|/{next};"\
6312 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6313 " {if(hide[section]) next};"\
6314 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6315 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6316 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6317 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6318 " ' prfx=^$ac_symprfx"
6319 else
6320 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6323 # Check to see that the pipe works correctly.
6324 pipe_works=no
6326 rm -f conftest*
6327 cat > conftest.$ac_ext <<_LT_EOF
6328 #ifdef __cplusplus
6329 extern "C" {
6330 #endif
6331 char nm_test_var;
6332 void nm_test_func(void);
6333 void nm_test_func(void){}
6334 #ifdef __cplusplus
6336 #endif
6337 int main(){nm_test_var='a';nm_test_func();return(0);}
6338 _LT_EOF
6340 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6341 (eval $ac_compile) 2>&5
6342 ac_status=$?
6343 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6344 test $ac_status = 0; }; then
6345 # Now try to grab the symbols.
6346 nlist=conftest.nm
6347 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6348 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6349 ac_status=$?
6350 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6351 test $ac_status = 0; } && test -s "$nlist"; then
6352 # Try sorting and uniquifying the output.
6353 if sort "$nlist" | uniq > "$nlist"T; then
6354 mv -f "$nlist"T "$nlist"
6355 else
6356 rm -f "$nlist"T
6359 # Make sure that we snagged all the symbols we need.
6360 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6361 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6362 cat <<_LT_EOF > conftest.$ac_ext
6363 #ifdef __cplusplus
6364 extern "C" {
6365 #endif
6367 _LT_EOF
6368 # Now generate the symbol file.
6369 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6371 cat <<_LT_EOF >> conftest.$ac_ext
6373 /* The mapping between symbol names and symbols. */
6374 const struct {
6375 const char *name;
6376 void *address;
6378 lt__PROGRAM__LTX_preloaded_symbols[] =
6380 { "@PROGRAM@", (void *) 0 },
6381 _LT_EOF
6382 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6383 cat <<\_LT_EOF >> conftest.$ac_ext
6384 {0, (void *) 0}
6387 /* This works around a problem in FreeBSD linker */
6388 #ifdef FREEBSD_WORKAROUND
6389 static const void *lt_preloaded_setup() {
6390 return lt__PROGRAM__LTX_preloaded_symbols;
6392 #endif
6394 #ifdef __cplusplus
6396 #endif
6397 _LT_EOF
6398 # Now try linking the two files.
6399 mv conftest.$ac_objext conftstm.$ac_objext
6400 lt_save_LIBS="$LIBS"
6401 lt_save_CFLAGS="$CFLAGS"
6402 LIBS="conftstm.$ac_objext"
6403 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6404 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6405 (eval $ac_link) 2>&5
6406 ac_status=$?
6407 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6408 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6409 pipe_works=yes
6411 LIBS="$lt_save_LIBS"
6412 CFLAGS="$lt_save_CFLAGS"
6413 else
6414 echo "cannot find nm_test_func in $nlist" >&5
6416 else
6417 echo "cannot find nm_test_var in $nlist" >&5
6419 else
6420 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6422 else
6423 echo "$progname: failed program was:" >&5
6424 cat conftest.$ac_ext >&5
6426 rm -rf conftest* conftst*
6428 # Do not use the global_symbol_pipe unless it works.
6429 if test "$pipe_works" = yes; then
6430 break
6431 else
6432 lt_cv_sys_global_symbol_pipe=
6434 done
6438 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6439 lt_cv_sys_global_symbol_to_cdecl=
6441 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6443 $as_echo "failed" >&6; }
6444 else
6445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6446 $as_echo "ok" >&6; }
6470 # Check whether --enable-libtool-lock was given.
6471 if test "${enable_libtool_lock+set}" = set; then :
6472 enableval=$enable_libtool_lock;
6475 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6477 # Some flags need to be propagated to the compiler or linker for good
6478 # libtool support.
6479 case $host in
6480 ia64-*-hpux*)
6481 # Find out which ABI we are using.
6482 echo 'int i;' > conftest.$ac_ext
6483 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6484 (eval $ac_compile) 2>&5
6485 ac_status=$?
6486 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6487 test $ac_status = 0; }; then
6488 case `/usr/bin/file conftest.$ac_objext` in
6489 *ELF-32*)
6490 HPUX_IA64_MODE="32"
6492 *ELF-64*)
6493 HPUX_IA64_MODE="64"
6495 esac
6497 rm -rf conftest*
6499 *-*-irix6*)
6500 # Find out which ABI we are using.
6501 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6502 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6503 (eval $ac_compile) 2>&5
6504 ac_status=$?
6505 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6506 test $ac_status = 0; }; then
6507 if test "$lt_cv_prog_gnu_ld" = yes; then
6508 case `/usr/bin/file conftest.$ac_objext` in
6509 *32-bit*)
6510 LD="${LD-ld} -melf32bsmip"
6512 *N32*)
6513 LD="${LD-ld} -melf32bmipn32"
6515 *64-bit*)
6516 LD="${LD-ld} -melf64bmip"
6518 esac
6519 else
6520 case `/usr/bin/file conftest.$ac_objext` in
6521 *32-bit*)
6522 LD="${LD-ld} -32"
6524 *N32*)
6525 LD="${LD-ld} -n32"
6527 *64-bit*)
6528 LD="${LD-ld} -64"
6530 esac
6533 rm -rf conftest*
6536 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6537 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6538 # Find out which ABI we are using.
6539 echo 'int i;' > conftest.$ac_ext
6540 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6541 (eval $ac_compile) 2>&5
6542 ac_status=$?
6543 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6544 test $ac_status = 0; }; then
6545 case `/usr/bin/file conftest.o` in
6546 *32-bit*)
6547 case $host in
6548 x86_64-*kfreebsd*-gnu)
6549 LD="${LD-ld} -m elf_i386_fbsd"
6551 x86_64-*linux*)
6552 case `/usr/bin/file conftest.o` in
6553 *x86-64*)
6554 LD="${LD-ld} -m elf32_x86_64"
6557 LD="${LD-ld} -m elf_i386"
6559 esac
6561 powerpc64le-*linux*)
6562 LD="${LD-ld} -m elf32lppclinux"
6564 powerpc64-*linux*)
6565 LD="${LD-ld} -m elf32ppclinux"
6567 s390x-*linux*)
6568 LD="${LD-ld} -m elf_s390"
6570 sparc64-*linux*)
6571 LD="${LD-ld} -m elf32_sparc"
6573 esac
6575 *64-bit*)
6576 case $host in
6577 x86_64-*kfreebsd*-gnu)
6578 LD="${LD-ld} -m elf_x86_64_fbsd"
6580 x86_64-*linux*)
6581 LD="${LD-ld} -m elf_x86_64"
6583 powerpcle-*linux*)
6584 LD="${LD-ld} -m elf64lppc"
6586 powerpc-*linux*)
6587 LD="${LD-ld} -m elf64ppc"
6589 s390*-*linux*|s390*-*tpf*)
6590 LD="${LD-ld} -m elf64_s390"
6592 sparc*-*linux*)
6593 LD="${LD-ld} -m elf64_sparc"
6595 esac
6597 esac
6599 rm -rf conftest*
6602 *-*-sco3.2v5*)
6603 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6604 SAVE_CFLAGS="$CFLAGS"
6605 CFLAGS="$CFLAGS -belf"
6606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6607 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6608 if ${lt_cv_cc_needs_belf+:} false; then :
6609 $as_echo_n "(cached) " >&6
6610 else
6611 ac_ext=c
6612 ac_cpp='$CPP $CPPFLAGS'
6613 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6614 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6615 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6618 /* end confdefs.h. */
6621 main ()
6625 return 0;
6627 _ACEOF
6628 if ac_fn_c_try_link "$LINENO"; then :
6629 lt_cv_cc_needs_belf=yes
6630 else
6631 lt_cv_cc_needs_belf=no
6633 rm -f core conftest.err conftest.$ac_objext \
6634 conftest$ac_exeext conftest.$ac_ext
6635 ac_ext=c
6636 ac_cpp='$CPP $CPPFLAGS'
6637 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6638 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6639 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6643 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6644 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6645 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6646 CFLAGS="$SAVE_CFLAGS"
6649 sparc*-*solaris*)
6650 # Find out which ABI we are using.
6651 echo 'int i;' > conftest.$ac_ext
6652 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6653 (eval $ac_compile) 2>&5
6654 ac_status=$?
6655 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6656 test $ac_status = 0; }; then
6657 case `/usr/bin/file conftest.o` in
6658 *64-bit*)
6659 case $lt_cv_prog_gnu_ld in
6660 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6662 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6663 LD="${LD-ld} -64"
6666 esac
6668 esac
6670 rm -rf conftest*
6672 esac
6674 need_locks="$enable_libtool_lock"
6677 case $host_os in
6678 rhapsody* | darwin*)
6679 if test -n "$ac_tool_prefix"; then
6680 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6681 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6683 $as_echo_n "checking for $ac_word... " >&6; }
6684 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6685 $as_echo_n "(cached) " >&6
6686 else
6687 if test -n "$DSYMUTIL"; then
6688 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6689 else
6690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6691 for as_dir in $PATH
6693 IFS=$as_save_IFS
6694 test -z "$as_dir" && as_dir=.
6695 for ac_exec_ext in '' $ac_executable_extensions; do
6696 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6697 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6698 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6699 break 2
6701 done
6702 done
6703 IFS=$as_save_IFS
6707 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6708 if test -n "$DSYMUTIL"; then
6709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6710 $as_echo "$DSYMUTIL" >&6; }
6711 else
6712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6713 $as_echo "no" >&6; }
6718 if test -z "$ac_cv_prog_DSYMUTIL"; then
6719 ac_ct_DSYMUTIL=$DSYMUTIL
6720 # Extract the first word of "dsymutil", so it can be a program name with args.
6721 set dummy dsymutil; ac_word=$2
6722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6723 $as_echo_n "checking for $ac_word... " >&6; }
6724 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6725 $as_echo_n "(cached) " >&6
6726 else
6727 if test -n "$ac_ct_DSYMUTIL"; then
6728 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6729 else
6730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6731 for as_dir in $PATH
6733 IFS=$as_save_IFS
6734 test -z "$as_dir" && as_dir=.
6735 for ac_exec_ext in '' $ac_executable_extensions; do
6736 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6737 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6738 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6739 break 2
6741 done
6742 done
6743 IFS=$as_save_IFS
6747 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6748 if test -n "$ac_ct_DSYMUTIL"; then
6749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6750 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6751 else
6752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6753 $as_echo "no" >&6; }
6756 if test "x$ac_ct_DSYMUTIL" = x; then
6757 DSYMUTIL=":"
6758 else
6759 case $cross_compiling:$ac_tool_warned in
6760 yes:)
6761 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6762 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6763 ac_tool_warned=yes ;;
6764 esac
6765 DSYMUTIL=$ac_ct_DSYMUTIL
6767 else
6768 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6771 if test -n "$ac_tool_prefix"; then
6772 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6773 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6775 $as_echo_n "checking for $ac_word... " >&6; }
6776 if ${ac_cv_prog_NMEDIT+:} false; then :
6777 $as_echo_n "(cached) " >&6
6778 else
6779 if test -n "$NMEDIT"; then
6780 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6781 else
6782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6783 for as_dir in $PATH
6785 IFS=$as_save_IFS
6786 test -z "$as_dir" && as_dir=.
6787 for ac_exec_ext in '' $ac_executable_extensions; do
6788 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6789 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6790 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6791 break 2
6793 done
6794 done
6795 IFS=$as_save_IFS
6799 NMEDIT=$ac_cv_prog_NMEDIT
6800 if test -n "$NMEDIT"; then
6801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6802 $as_echo "$NMEDIT" >&6; }
6803 else
6804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6805 $as_echo "no" >&6; }
6810 if test -z "$ac_cv_prog_NMEDIT"; then
6811 ac_ct_NMEDIT=$NMEDIT
6812 # Extract the first word of "nmedit", so it can be a program name with args.
6813 set dummy nmedit; ac_word=$2
6814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6815 $as_echo_n "checking for $ac_word... " >&6; }
6816 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6817 $as_echo_n "(cached) " >&6
6818 else
6819 if test -n "$ac_ct_NMEDIT"; then
6820 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6821 else
6822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6823 for as_dir in $PATH
6825 IFS=$as_save_IFS
6826 test -z "$as_dir" && as_dir=.
6827 for ac_exec_ext in '' $ac_executable_extensions; do
6828 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6829 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6830 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6831 break 2
6833 done
6834 done
6835 IFS=$as_save_IFS
6839 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6840 if test -n "$ac_ct_NMEDIT"; then
6841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6842 $as_echo "$ac_ct_NMEDIT" >&6; }
6843 else
6844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6845 $as_echo "no" >&6; }
6848 if test "x$ac_ct_NMEDIT" = x; then
6849 NMEDIT=":"
6850 else
6851 case $cross_compiling:$ac_tool_warned in
6852 yes:)
6853 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6854 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6855 ac_tool_warned=yes ;;
6856 esac
6857 NMEDIT=$ac_ct_NMEDIT
6859 else
6860 NMEDIT="$ac_cv_prog_NMEDIT"
6863 if test -n "$ac_tool_prefix"; then
6864 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6865 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6867 $as_echo_n "checking for $ac_word... " >&6; }
6868 if ${ac_cv_prog_LIPO+:} false; then :
6869 $as_echo_n "(cached) " >&6
6870 else
6871 if test -n "$LIPO"; then
6872 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6873 else
6874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6875 for as_dir in $PATH
6877 IFS=$as_save_IFS
6878 test -z "$as_dir" && as_dir=.
6879 for ac_exec_ext in '' $ac_executable_extensions; do
6880 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6881 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6882 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6883 break 2
6885 done
6886 done
6887 IFS=$as_save_IFS
6891 LIPO=$ac_cv_prog_LIPO
6892 if test -n "$LIPO"; then
6893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6894 $as_echo "$LIPO" >&6; }
6895 else
6896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6897 $as_echo "no" >&6; }
6902 if test -z "$ac_cv_prog_LIPO"; then
6903 ac_ct_LIPO=$LIPO
6904 # Extract the first word of "lipo", so it can be a program name with args.
6905 set dummy lipo; ac_word=$2
6906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6907 $as_echo_n "checking for $ac_word... " >&6; }
6908 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6909 $as_echo_n "(cached) " >&6
6910 else
6911 if test -n "$ac_ct_LIPO"; then
6912 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6913 else
6914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6915 for as_dir in $PATH
6917 IFS=$as_save_IFS
6918 test -z "$as_dir" && as_dir=.
6919 for ac_exec_ext in '' $ac_executable_extensions; do
6920 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6921 ac_cv_prog_ac_ct_LIPO="lipo"
6922 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6923 break 2
6925 done
6926 done
6927 IFS=$as_save_IFS
6931 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6932 if test -n "$ac_ct_LIPO"; then
6933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6934 $as_echo "$ac_ct_LIPO" >&6; }
6935 else
6936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6937 $as_echo "no" >&6; }
6940 if test "x$ac_ct_LIPO" = x; then
6941 LIPO=":"
6942 else
6943 case $cross_compiling:$ac_tool_warned in
6944 yes:)
6945 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6946 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6947 ac_tool_warned=yes ;;
6948 esac
6949 LIPO=$ac_ct_LIPO
6951 else
6952 LIPO="$ac_cv_prog_LIPO"
6955 if test -n "$ac_tool_prefix"; then
6956 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6957 set dummy ${ac_tool_prefix}otool; ac_word=$2
6958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6959 $as_echo_n "checking for $ac_word... " >&6; }
6960 if ${ac_cv_prog_OTOOL+:} false; then :
6961 $as_echo_n "(cached) " >&6
6962 else
6963 if test -n "$OTOOL"; then
6964 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6965 else
6966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6967 for as_dir in $PATH
6969 IFS=$as_save_IFS
6970 test -z "$as_dir" && as_dir=.
6971 for ac_exec_ext in '' $ac_executable_extensions; do
6972 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6973 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6974 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6975 break 2
6977 done
6978 done
6979 IFS=$as_save_IFS
6983 OTOOL=$ac_cv_prog_OTOOL
6984 if test -n "$OTOOL"; then
6985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6986 $as_echo "$OTOOL" >&6; }
6987 else
6988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6989 $as_echo "no" >&6; }
6994 if test -z "$ac_cv_prog_OTOOL"; then
6995 ac_ct_OTOOL=$OTOOL
6996 # Extract the first word of "otool", so it can be a program name with args.
6997 set dummy otool; ac_word=$2
6998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6999 $as_echo_n "checking for $ac_word... " >&6; }
7000 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7001 $as_echo_n "(cached) " >&6
7002 else
7003 if test -n "$ac_ct_OTOOL"; then
7004 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7005 else
7006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7007 for as_dir in $PATH
7009 IFS=$as_save_IFS
7010 test -z "$as_dir" && as_dir=.
7011 for ac_exec_ext in '' $ac_executable_extensions; do
7012 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7013 ac_cv_prog_ac_ct_OTOOL="otool"
7014 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7015 break 2
7017 done
7018 done
7019 IFS=$as_save_IFS
7023 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7024 if test -n "$ac_ct_OTOOL"; then
7025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7026 $as_echo "$ac_ct_OTOOL" >&6; }
7027 else
7028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7029 $as_echo "no" >&6; }
7032 if test "x$ac_ct_OTOOL" = x; then
7033 OTOOL=":"
7034 else
7035 case $cross_compiling:$ac_tool_warned in
7036 yes:)
7037 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7038 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7039 ac_tool_warned=yes ;;
7040 esac
7041 OTOOL=$ac_ct_OTOOL
7043 else
7044 OTOOL="$ac_cv_prog_OTOOL"
7047 if test -n "$ac_tool_prefix"; then
7048 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7049 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7051 $as_echo_n "checking for $ac_word... " >&6; }
7052 if ${ac_cv_prog_OTOOL64+:} false; then :
7053 $as_echo_n "(cached) " >&6
7054 else
7055 if test -n "$OTOOL64"; then
7056 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7057 else
7058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7059 for as_dir in $PATH
7061 IFS=$as_save_IFS
7062 test -z "$as_dir" && as_dir=.
7063 for ac_exec_ext in '' $ac_executable_extensions; do
7064 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7065 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7066 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7067 break 2
7069 done
7070 done
7071 IFS=$as_save_IFS
7075 OTOOL64=$ac_cv_prog_OTOOL64
7076 if test -n "$OTOOL64"; then
7077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7078 $as_echo "$OTOOL64" >&6; }
7079 else
7080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7081 $as_echo "no" >&6; }
7086 if test -z "$ac_cv_prog_OTOOL64"; then
7087 ac_ct_OTOOL64=$OTOOL64
7088 # Extract the first word of "otool64", so it can be a program name with args.
7089 set dummy otool64; ac_word=$2
7090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7091 $as_echo_n "checking for $ac_word... " >&6; }
7092 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7093 $as_echo_n "(cached) " >&6
7094 else
7095 if test -n "$ac_ct_OTOOL64"; then
7096 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7097 else
7098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7099 for as_dir in $PATH
7101 IFS=$as_save_IFS
7102 test -z "$as_dir" && as_dir=.
7103 for ac_exec_ext in '' $ac_executable_extensions; do
7104 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7105 ac_cv_prog_ac_ct_OTOOL64="otool64"
7106 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7107 break 2
7109 done
7110 done
7111 IFS=$as_save_IFS
7115 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7116 if test -n "$ac_ct_OTOOL64"; then
7117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7118 $as_echo "$ac_ct_OTOOL64" >&6; }
7119 else
7120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7121 $as_echo "no" >&6; }
7124 if test "x$ac_ct_OTOOL64" = x; then
7125 OTOOL64=":"
7126 else
7127 case $cross_compiling:$ac_tool_warned in
7128 yes:)
7129 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7130 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7131 ac_tool_warned=yes ;;
7132 esac
7133 OTOOL64=$ac_ct_OTOOL64
7135 else
7136 OTOOL64="$ac_cv_prog_OTOOL64"
7165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7166 $as_echo_n "checking for -single_module linker flag... " >&6; }
7167 if ${lt_cv_apple_cc_single_mod+:} false; then :
7168 $as_echo_n "(cached) " >&6
7169 else
7170 lt_cv_apple_cc_single_mod=no
7171 if test -z "${LT_MULTI_MODULE}"; then
7172 # By default we will add the -single_module flag. You can override
7173 # by either setting the environment variable LT_MULTI_MODULE
7174 # non-empty at configure time, or by adding -multi_module to the
7175 # link flags.
7176 rm -rf libconftest.dylib*
7177 echo "int foo(void){return 1;}" > conftest.c
7178 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7179 -dynamiclib -Wl,-single_module conftest.c" >&5
7180 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7181 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7182 _lt_result=$?
7183 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7184 lt_cv_apple_cc_single_mod=yes
7185 else
7186 cat conftest.err >&5
7188 rm -rf libconftest.dylib*
7189 rm -f conftest.*
7192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7193 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7195 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7196 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7197 $as_echo_n "(cached) " >&6
7198 else
7199 lt_cv_ld_exported_symbols_list=no
7200 save_LDFLAGS=$LDFLAGS
7201 echo "_main" > conftest.sym
7202 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7204 /* end confdefs.h. */
7207 main ()
7211 return 0;
7213 _ACEOF
7214 if ac_fn_c_try_link "$LINENO"; then :
7215 lt_cv_ld_exported_symbols_list=yes
7216 else
7217 lt_cv_ld_exported_symbols_list=no
7219 rm -f core conftest.err conftest.$ac_objext \
7220 conftest$ac_exeext conftest.$ac_ext
7221 LDFLAGS="$save_LDFLAGS"
7224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7225 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7227 $as_echo_n "checking for -force_load linker flag... " >&6; }
7228 if ${lt_cv_ld_force_load+:} false; then :
7229 $as_echo_n "(cached) " >&6
7230 else
7231 lt_cv_ld_force_load=no
7232 cat > conftest.c << _LT_EOF
7233 int forced_loaded() { return 2;}
7234 _LT_EOF
7235 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7236 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7237 echo "$AR cru libconftest.a conftest.o" >&5
7238 $AR cru libconftest.a conftest.o 2>&5
7239 cat > conftest.c << _LT_EOF
7240 int main() { return 0;}
7241 _LT_EOF
7242 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7243 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7244 _lt_result=$?
7245 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7246 lt_cv_ld_force_load=yes
7247 else
7248 cat conftest.err >&5
7250 rm -f conftest.err libconftest.a conftest conftest.c
7251 rm -rf conftest.dSYM
7254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7255 $as_echo "$lt_cv_ld_force_load" >&6; }
7256 case $host_os in
7257 rhapsody* | darwin1.[012])
7258 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7259 darwin1.*)
7260 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7261 darwin*) # darwin 5.x on
7262 # if running on 10.5 or later, the deployment target defaults
7263 # to the OS version, if on x86, and 10.4, the deployment
7264 # target defaults to 10.4. Don't you love it?
7265 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7266 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7267 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7268 10.[012][,.]*)
7269 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7270 10.*)
7271 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7272 esac
7274 esac
7275 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7276 _lt_dar_single_mod='$single_module'
7278 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7279 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7280 else
7281 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7283 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7284 _lt_dsymutil='~$DSYMUTIL $lib || :'
7285 else
7286 _lt_dsymutil=
7289 esac
7291 for ac_header in dlfcn.h
7292 do :
7293 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7295 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7296 cat >>confdefs.h <<_ACEOF
7297 #define HAVE_DLFCN_H 1
7298 _ACEOF
7302 done
7308 # Set options
7309 # Check whether --enable-static was given.
7310 if test "${enable_static+set}" = set; then :
7311 enableval=$enable_static; p=${PACKAGE-default}
7312 case $enableval in
7313 yes) enable_static=yes ;;
7314 no) enable_static=no ;;
7316 enable_static=no
7317 # Look at the argument we got. We use all the common list separators.
7318 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7319 for pkg in $enableval; do
7320 IFS="$lt_save_ifs"
7321 if test "X$pkg" = "X$p"; then
7322 enable_static=yes
7324 done
7325 IFS="$lt_save_ifs"
7327 esac
7328 else
7329 enable_static=no
7341 enable_dlopen=no
7344 enable_win32_dll=no
7347 # Check whether --enable-shared was given.
7348 if test "${enable_shared+set}" = set; then :
7349 enableval=$enable_shared; p=${PACKAGE-default}
7350 case $enableval in
7351 yes) enable_shared=yes ;;
7352 no) enable_shared=no ;;
7354 enable_shared=no
7355 # Look at the argument we got. We use all the common list separators.
7356 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7357 for pkg in $enableval; do
7358 IFS="$lt_save_ifs"
7359 if test "X$pkg" = "X$p"; then
7360 enable_shared=yes
7362 done
7363 IFS="$lt_save_ifs"
7365 esac
7366 else
7367 enable_shared=yes
7380 # Check whether --with-pic was given.
7381 if test "${with_pic+set}" = set; then :
7382 withval=$with_pic; pic_mode="$withval"
7383 else
7384 pic_mode=default
7388 test -z "$pic_mode" && pic_mode=default
7396 # Check whether --enable-fast-install was given.
7397 if test "${enable_fast_install+set}" = set; then :
7398 enableval=$enable_fast_install; p=${PACKAGE-default}
7399 case $enableval in
7400 yes) enable_fast_install=yes ;;
7401 no) enable_fast_install=no ;;
7403 enable_fast_install=no
7404 # Look at the argument we got. We use all the common list separators.
7405 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7406 for pkg in $enableval; do
7407 IFS="$lt_save_ifs"
7408 if test "X$pkg" = "X$p"; then
7409 enable_fast_install=yes
7411 done
7412 IFS="$lt_save_ifs"
7414 esac
7415 else
7416 enable_fast_install=yes
7429 # This can be used to rebuild libtool when needed
7430 LIBTOOL_DEPS="$ltmain"
7432 # Always use our own libtool.
7433 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7460 test -z "$LN_S" && LN_S="ln -s"
7475 if test -n "${ZSH_VERSION+set}" ; then
7476 setopt NO_GLOB_SUBST
7479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7480 $as_echo_n "checking for objdir... " >&6; }
7481 if ${lt_cv_objdir+:} false; then :
7482 $as_echo_n "(cached) " >&6
7483 else
7484 rm -f .libs 2>/dev/null
7485 mkdir .libs 2>/dev/null
7486 if test -d .libs; then
7487 lt_cv_objdir=.libs
7488 else
7489 # MS-DOS does not allow filenames that begin with a dot.
7490 lt_cv_objdir=_libs
7492 rmdir .libs 2>/dev/null
7494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7495 $as_echo "$lt_cv_objdir" >&6; }
7496 objdir=$lt_cv_objdir
7502 cat >>confdefs.h <<_ACEOF
7503 #define LT_OBJDIR "$lt_cv_objdir/"
7504 _ACEOF
7509 case $host_os in
7510 aix3*)
7511 # AIX sometimes has problems with the GCC collect2 program. For some
7512 # reason, if we set the COLLECT_NAMES environment variable, the problems
7513 # vanish in a puff of smoke.
7514 if test "X${COLLECT_NAMES+set}" != Xset; then
7515 COLLECT_NAMES=
7516 export COLLECT_NAMES
7519 esac
7521 # Global variables:
7522 ofile=libtool
7523 can_build_shared=yes
7525 # All known linkers require a `.a' archive for static linking (except MSVC,
7526 # which needs '.lib').
7527 libext=a
7529 with_gnu_ld="$lt_cv_prog_gnu_ld"
7531 old_CC="$CC"
7532 old_CFLAGS="$CFLAGS"
7534 # Set sane defaults for various variables
7535 test -z "$CC" && CC=cc
7536 test -z "$LTCC" && LTCC=$CC
7537 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7538 test -z "$LD" && LD=ld
7539 test -z "$ac_objext" && ac_objext=o
7541 for cc_temp in $compiler""; do
7542 case $cc_temp in
7543 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7544 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7545 \-*) ;;
7546 *) break;;
7547 esac
7548 done
7549 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7552 # Only perform the check for file, if the check method requires it
7553 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7554 case $deplibs_check_method in
7555 file_magic*)
7556 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7558 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7559 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7560 $as_echo_n "(cached) " >&6
7561 else
7562 case $MAGIC_CMD in
7563 [\\/*] | ?:[\\/]*)
7564 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7567 lt_save_MAGIC_CMD="$MAGIC_CMD"
7568 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7569 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7570 for ac_dir in $ac_dummy; do
7571 IFS="$lt_save_ifs"
7572 test -z "$ac_dir" && ac_dir=.
7573 if test -f $ac_dir/${ac_tool_prefix}file; then
7574 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7575 if test -n "$file_magic_test_file"; then
7576 case $deplibs_check_method in
7577 "file_magic "*)
7578 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7579 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7580 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7581 $EGREP "$file_magic_regex" > /dev/null; then
7583 else
7584 cat <<_LT_EOF 1>&2
7586 *** Warning: the command libtool uses to detect shared libraries,
7587 *** $file_magic_cmd, produces output that libtool cannot recognize.
7588 *** The result is that libtool may fail to recognize shared libraries
7589 *** as such. This will affect the creation of libtool libraries that
7590 *** depend on shared libraries, but programs linked with such libtool
7591 *** libraries will work regardless of this problem. Nevertheless, you
7592 *** may want to report the problem to your system manager and/or to
7593 *** bug-libtool@gnu.org
7595 _LT_EOF
7596 fi ;;
7597 esac
7599 break
7601 done
7602 IFS="$lt_save_ifs"
7603 MAGIC_CMD="$lt_save_MAGIC_CMD"
7605 esac
7608 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7609 if test -n "$MAGIC_CMD"; then
7610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7611 $as_echo "$MAGIC_CMD" >&6; }
7612 else
7613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7614 $as_echo "no" >&6; }
7621 if test -z "$lt_cv_path_MAGIC_CMD"; then
7622 if test -n "$ac_tool_prefix"; then
7623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7624 $as_echo_n "checking for file... " >&6; }
7625 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7626 $as_echo_n "(cached) " >&6
7627 else
7628 case $MAGIC_CMD in
7629 [\\/*] | ?:[\\/]*)
7630 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7633 lt_save_MAGIC_CMD="$MAGIC_CMD"
7634 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7635 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7636 for ac_dir in $ac_dummy; do
7637 IFS="$lt_save_ifs"
7638 test -z "$ac_dir" && ac_dir=.
7639 if test -f $ac_dir/file; then
7640 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7641 if test -n "$file_magic_test_file"; then
7642 case $deplibs_check_method in
7643 "file_magic "*)
7644 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7645 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7646 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7647 $EGREP "$file_magic_regex" > /dev/null; then
7649 else
7650 cat <<_LT_EOF 1>&2
7652 *** Warning: the command libtool uses to detect shared libraries,
7653 *** $file_magic_cmd, produces output that libtool cannot recognize.
7654 *** The result is that libtool may fail to recognize shared libraries
7655 *** as such. This will affect the creation of libtool libraries that
7656 *** depend on shared libraries, but programs linked with such libtool
7657 *** libraries will work regardless of this problem. Nevertheless, you
7658 *** may want to report the problem to your system manager and/or to
7659 *** bug-libtool@gnu.org
7661 _LT_EOF
7662 fi ;;
7663 esac
7665 break
7667 done
7668 IFS="$lt_save_ifs"
7669 MAGIC_CMD="$lt_save_MAGIC_CMD"
7671 esac
7674 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7675 if test -n "$MAGIC_CMD"; then
7676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7677 $as_echo "$MAGIC_CMD" >&6; }
7678 else
7679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7680 $as_echo "no" >&6; }
7684 else
7685 MAGIC_CMD=:
7691 esac
7693 # Use C for the default configuration in the libtool script
7695 lt_save_CC="$CC"
7696 ac_ext=c
7697 ac_cpp='$CPP $CPPFLAGS'
7698 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7699 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7700 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7703 # Source file extension for C test sources.
7704 ac_ext=c
7706 # Object file extension for compiled C test sources.
7707 objext=o
7708 objext=$objext
7710 # Code to be used in simple compile tests
7711 lt_simple_compile_test_code="int some_variable = 0;"
7713 # Code to be used in simple link tests
7714 lt_simple_link_test_code='int main(){return(0);}'
7722 # If no C compiler was specified, use CC.
7723 LTCC=${LTCC-"$CC"}
7725 # If no C compiler flags were specified, use CFLAGS.
7726 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7728 # Allow CC to be a program name with arguments.
7729 compiler=$CC
7731 # Save the default compiler, since it gets overwritten when the other
7732 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7733 compiler_DEFAULT=$CC
7735 # save warnings/boilerplate of simple test code
7736 ac_outfile=conftest.$ac_objext
7737 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7738 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7739 _lt_compiler_boilerplate=`cat conftest.err`
7740 $RM conftest*
7742 ac_outfile=conftest.$ac_objext
7743 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7744 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7745 _lt_linker_boilerplate=`cat conftest.err`
7746 $RM -r conftest*
7749 ## CAVEAT EMPTOR:
7750 ## There is no encapsulation within the following macros, do not change
7751 ## the running order or otherwise move them around unless you know exactly
7752 ## what you are doing...
7753 if test -n "$compiler"; then
7755 lt_prog_compiler_no_builtin_flag=
7757 if test "$GCC" = yes; then
7758 case $cc_basename in
7759 nvcc*)
7760 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7762 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7763 esac
7765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7766 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7767 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7768 $as_echo_n "(cached) " >&6
7769 else
7770 lt_cv_prog_compiler_rtti_exceptions=no
7771 ac_outfile=conftest.$ac_objext
7772 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7773 lt_compiler_flag="-fno-rtti -fno-exceptions"
7774 # Insert the option either (1) after the last *FLAGS variable, or
7775 # (2) before a word containing "conftest.", or (3) at the end.
7776 # Note that $ac_compile itself does not contain backslashes and begins
7777 # with a dollar sign (not a hyphen), so the echo should work correctly.
7778 # The option is referenced via a variable to avoid confusing sed.
7779 lt_compile=`echo "$ac_compile" | $SED \
7780 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7781 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7782 -e 's:$: $lt_compiler_flag:'`
7783 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7784 (eval "$lt_compile" 2>conftest.err)
7785 ac_status=$?
7786 cat conftest.err >&5
7787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7788 if (exit $ac_status) && test -s "$ac_outfile"; then
7789 # The compiler can only warn and ignore the option if not recognized
7790 # So say no if there are warnings other than the usual output.
7791 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7792 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7793 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7794 lt_cv_prog_compiler_rtti_exceptions=yes
7797 $RM conftest*
7800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7801 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7803 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7804 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7805 else
7816 lt_prog_compiler_wl=
7817 lt_prog_compiler_pic=
7818 lt_prog_compiler_static=
7820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7821 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7823 if test "$GCC" = yes; then
7824 lt_prog_compiler_wl='-Wl,'
7825 lt_prog_compiler_static='-static'
7827 case $host_os in
7828 aix*)
7829 # All AIX code is PIC.
7830 if test "$host_cpu" = ia64; then
7831 # AIX 5 now supports IA64 processor
7832 lt_prog_compiler_static='-Bstatic'
7834 lt_prog_compiler_pic='-fPIC'
7837 amigaos*)
7838 case $host_cpu in
7839 powerpc)
7840 # see comment about AmigaOS4 .so support
7841 lt_prog_compiler_pic='-fPIC'
7843 m68k)
7844 # FIXME: we need at least 68020 code to build shared libraries, but
7845 # adding the `-m68020' flag to GCC prevents building anything better,
7846 # like `-m68040'.
7847 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7849 esac
7852 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7853 # PIC is the default for these OSes.
7856 mingw* | cygwin* | pw32* | os2* | cegcc*)
7857 # This hack is so that the source file can tell whether it is being
7858 # built for inclusion in a dll (and should export symbols for example).
7859 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7860 # (--disable-auto-import) libraries
7861 lt_prog_compiler_pic='-DDLL_EXPORT'
7864 darwin* | rhapsody*)
7865 # PIC is the default on this platform
7866 # Common symbols not allowed in MH_DYLIB files
7867 lt_prog_compiler_pic='-fno-common'
7870 haiku*)
7871 # PIC is the default for Haiku.
7872 # The "-static" flag exists, but is broken.
7873 lt_prog_compiler_static=
7876 hpux*)
7877 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7878 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7879 # sets the default TLS model and affects inlining.
7880 case $host_cpu in
7881 hppa*64*)
7882 # +Z the default
7885 lt_prog_compiler_pic='-fPIC'
7887 esac
7890 interix[3-9]*)
7891 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7892 # Instead, we relocate shared libraries at runtime.
7895 msdosdjgpp*)
7896 # Just because we use GCC doesn't mean we suddenly get shared libraries
7897 # on systems that don't support them.
7898 lt_prog_compiler_can_build_shared=no
7899 enable_shared=no
7902 *nto* | *qnx*)
7903 # QNX uses GNU C++, but need to define -shared option too, otherwise
7904 # it will coredump.
7905 lt_prog_compiler_pic='-fPIC -shared'
7908 sysv4*MP*)
7909 if test -d /usr/nec; then
7910 lt_prog_compiler_pic=-Kconform_pic
7915 lt_prog_compiler_pic='-fPIC'
7917 esac
7919 case $cc_basename in
7920 nvcc*) # Cuda Compiler Driver 2.2
7921 lt_prog_compiler_wl='-Xlinker '
7922 lt_prog_compiler_pic='-Xcompiler -fPIC'
7924 esac
7925 else
7926 # PORTME Check for flag to pass linker flags through the system compiler.
7927 case $host_os in
7928 aix*)
7929 lt_prog_compiler_wl='-Wl,'
7930 if test "$host_cpu" = ia64; then
7931 # AIX 5 now supports IA64 processor
7932 lt_prog_compiler_static='-Bstatic'
7933 else
7934 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7938 mingw* | cygwin* | pw32* | os2* | cegcc*)
7939 # This hack is so that the source file can tell whether it is being
7940 # built for inclusion in a dll (and should export symbols for example).
7941 lt_prog_compiler_pic='-DDLL_EXPORT'
7944 hpux9* | hpux10* | hpux11*)
7945 lt_prog_compiler_wl='-Wl,'
7946 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7947 # not for PA HP-UX.
7948 case $host_cpu in
7949 hppa*64*|ia64*)
7950 # +Z the default
7953 lt_prog_compiler_pic='+Z'
7955 esac
7956 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7957 lt_prog_compiler_static='${wl}-a ${wl}archive'
7960 irix5* | irix6* | nonstopux*)
7961 lt_prog_compiler_wl='-Wl,'
7962 # PIC (with -KPIC) is the default.
7963 lt_prog_compiler_static='-non_shared'
7966 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7967 case $cc_basename in
7968 # old Intel for x86_64 which still supported -KPIC.
7969 ecc*)
7970 lt_prog_compiler_wl='-Wl,'
7971 lt_prog_compiler_pic='-KPIC'
7972 lt_prog_compiler_static='-static'
7974 # icc used to be incompatible with GCC.
7975 # ICC 10 doesn't accept -KPIC any more.
7976 icc* | ifort*)
7977 lt_prog_compiler_wl='-Wl,'
7978 lt_prog_compiler_pic='-fPIC'
7979 lt_prog_compiler_static='-static'
7981 # Lahey Fortran 8.1.
7982 lf95*)
7983 lt_prog_compiler_wl='-Wl,'
7984 lt_prog_compiler_pic='--shared'
7985 lt_prog_compiler_static='--static'
7987 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
7988 # Portland Group compilers (*not* the Pentium gcc compiler,
7989 # which looks to be a dead project)
7990 lt_prog_compiler_wl='-Wl,'
7991 lt_prog_compiler_pic='-fpic'
7992 lt_prog_compiler_static='-Bstatic'
7994 ccc*)
7995 lt_prog_compiler_wl='-Wl,'
7996 # All Alpha code is PIC.
7997 lt_prog_compiler_static='-non_shared'
7999 xl* | bgxl* | bgf* | mpixl*)
8000 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8001 lt_prog_compiler_wl='-Wl,'
8002 lt_prog_compiler_pic='-qpic'
8003 lt_prog_compiler_static='-qstaticlink'
8006 case `$CC -V 2>&1 | sed 5q` in
8007 *Sun\ F* | *Sun*Fortran*)
8008 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8009 lt_prog_compiler_pic='-KPIC'
8010 lt_prog_compiler_static='-Bstatic'
8011 lt_prog_compiler_wl=''
8013 *Sun\ C*)
8014 # Sun C 5.9
8015 lt_prog_compiler_pic='-KPIC'
8016 lt_prog_compiler_static='-Bstatic'
8017 lt_prog_compiler_wl='-Wl,'
8019 esac
8021 esac
8024 newsos6)
8025 lt_prog_compiler_pic='-KPIC'
8026 lt_prog_compiler_static='-Bstatic'
8029 *nto* | *qnx*)
8030 # QNX uses GNU C++, but need to define -shared option too, otherwise
8031 # it will coredump.
8032 lt_prog_compiler_pic='-fPIC -shared'
8035 osf3* | osf4* | osf5*)
8036 lt_prog_compiler_wl='-Wl,'
8037 # All OSF/1 code is PIC.
8038 lt_prog_compiler_static='-non_shared'
8041 rdos*)
8042 lt_prog_compiler_static='-non_shared'
8045 solaris*)
8046 lt_prog_compiler_pic='-KPIC'
8047 lt_prog_compiler_static='-Bstatic'
8048 case $cc_basename in
8049 f77* | f90* | f95*)
8050 lt_prog_compiler_wl='-Qoption ld ';;
8052 lt_prog_compiler_wl='-Wl,';;
8053 esac
8056 sunos4*)
8057 lt_prog_compiler_wl='-Qoption ld '
8058 lt_prog_compiler_pic='-PIC'
8059 lt_prog_compiler_static='-Bstatic'
8062 sysv4 | sysv4.2uw2* | sysv4.3*)
8063 lt_prog_compiler_wl='-Wl,'
8064 lt_prog_compiler_pic='-KPIC'
8065 lt_prog_compiler_static='-Bstatic'
8068 sysv4*MP*)
8069 if test -d /usr/nec ;then
8070 lt_prog_compiler_pic='-Kconform_pic'
8071 lt_prog_compiler_static='-Bstatic'
8075 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8076 lt_prog_compiler_wl='-Wl,'
8077 lt_prog_compiler_pic='-KPIC'
8078 lt_prog_compiler_static='-Bstatic'
8081 unicos*)
8082 lt_prog_compiler_wl='-Wl,'
8083 lt_prog_compiler_can_build_shared=no
8086 uts4*)
8087 lt_prog_compiler_pic='-pic'
8088 lt_prog_compiler_static='-Bstatic'
8092 lt_prog_compiler_can_build_shared=no
8094 esac
8097 case $host_os in
8098 # For platforms which do not support PIC, -DPIC is meaningless:
8099 *djgpp*)
8100 lt_prog_compiler_pic=
8103 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8105 esac
8106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8107 $as_echo "$lt_prog_compiler_pic" >&6; }
8115 # Check to make sure the PIC flag actually works.
8117 if test -n "$lt_prog_compiler_pic"; then
8118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8119 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8120 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8121 $as_echo_n "(cached) " >&6
8122 else
8123 lt_cv_prog_compiler_pic_works=no
8124 ac_outfile=conftest.$ac_objext
8125 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8126 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8127 # Insert the option either (1) after the last *FLAGS variable, or
8128 # (2) before a word containing "conftest.", or (3) at the end.
8129 # Note that $ac_compile itself does not contain backslashes and begins
8130 # with a dollar sign (not a hyphen), so the echo should work correctly.
8131 # The option is referenced via a variable to avoid confusing sed.
8132 lt_compile=`echo "$ac_compile" | $SED \
8133 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8134 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8135 -e 's:$: $lt_compiler_flag:'`
8136 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8137 (eval "$lt_compile" 2>conftest.err)
8138 ac_status=$?
8139 cat conftest.err >&5
8140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8141 if (exit $ac_status) && test -s "$ac_outfile"; then
8142 # The compiler can only warn and ignore the option if not recognized
8143 # So say no if there are warnings other than the usual output.
8144 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8145 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8146 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8147 lt_cv_prog_compiler_pic_works=yes
8150 $RM conftest*
8153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8154 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8156 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8157 case $lt_prog_compiler_pic in
8158 "" | " "*) ;;
8159 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8160 esac
8161 else
8162 lt_prog_compiler_pic=
8163 lt_prog_compiler_can_build_shared=no
8174 # Check to make sure the static flag actually works.
8176 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8178 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8179 if ${lt_cv_prog_compiler_static_works+:} false; then :
8180 $as_echo_n "(cached) " >&6
8181 else
8182 lt_cv_prog_compiler_static_works=no
8183 save_LDFLAGS="$LDFLAGS"
8184 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8185 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8186 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8187 # The linker can only warn and ignore the option if not recognized
8188 # So say no if there are warnings
8189 if test -s conftest.err; then
8190 # Append any errors to the config.log.
8191 cat conftest.err 1>&5
8192 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8193 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8194 if diff conftest.exp conftest.er2 >/dev/null; then
8195 lt_cv_prog_compiler_static_works=yes
8197 else
8198 lt_cv_prog_compiler_static_works=yes
8201 $RM -r conftest*
8202 LDFLAGS="$save_LDFLAGS"
8205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8206 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8208 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8210 else
8211 lt_prog_compiler_static=
8220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8221 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8222 if ${lt_cv_prog_compiler_c_o+:} false; then :
8223 $as_echo_n "(cached) " >&6
8224 else
8225 lt_cv_prog_compiler_c_o=no
8226 $RM -r conftest 2>/dev/null
8227 mkdir conftest
8228 cd conftest
8229 mkdir out
8230 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8232 lt_compiler_flag="-o out/conftest2.$ac_objext"
8233 # Insert the option either (1) after the last *FLAGS variable, or
8234 # (2) before a word containing "conftest.", or (3) at the end.
8235 # Note that $ac_compile itself does not contain backslashes and begins
8236 # with a dollar sign (not a hyphen), so the echo should work correctly.
8237 lt_compile=`echo "$ac_compile" | $SED \
8238 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8239 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8240 -e 's:$: $lt_compiler_flag:'`
8241 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8242 (eval "$lt_compile" 2>out/conftest.err)
8243 ac_status=$?
8244 cat out/conftest.err >&5
8245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8246 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8247 then
8248 # The compiler can only warn and ignore the option if not recognized
8249 # So say no if there are warnings
8250 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8251 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8252 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8253 lt_cv_prog_compiler_c_o=yes
8256 chmod u+w . 2>&5
8257 $RM conftest*
8258 # SGI C++ compiler will create directory out/ii_files/ for
8259 # template instantiation
8260 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8261 $RM out/* && rmdir out
8262 cd ..
8263 $RM -r conftest
8264 $RM conftest*
8267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8268 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8276 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8277 if ${lt_cv_prog_compiler_c_o+:} false; then :
8278 $as_echo_n "(cached) " >&6
8279 else
8280 lt_cv_prog_compiler_c_o=no
8281 $RM -r conftest 2>/dev/null
8282 mkdir conftest
8283 cd conftest
8284 mkdir out
8285 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8287 lt_compiler_flag="-o out/conftest2.$ac_objext"
8288 # Insert the option either (1) after the last *FLAGS variable, or
8289 # (2) before a word containing "conftest.", or (3) at the end.
8290 # Note that $ac_compile itself does not contain backslashes and begins
8291 # with a dollar sign (not a hyphen), so the echo should work correctly.
8292 lt_compile=`echo "$ac_compile" | $SED \
8293 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8294 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8295 -e 's:$: $lt_compiler_flag:'`
8296 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8297 (eval "$lt_compile" 2>out/conftest.err)
8298 ac_status=$?
8299 cat out/conftest.err >&5
8300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8301 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8302 then
8303 # The compiler can only warn and ignore the option if not recognized
8304 # So say no if there are warnings
8305 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8306 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8307 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8308 lt_cv_prog_compiler_c_o=yes
8311 chmod u+w . 2>&5
8312 $RM conftest*
8313 # SGI C++ compiler will create directory out/ii_files/ for
8314 # template instantiation
8315 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8316 $RM out/* && rmdir out
8317 cd ..
8318 $RM -r conftest
8319 $RM conftest*
8322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8323 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8328 hard_links="nottested"
8329 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8330 # do not overwrite the value of need_locks provided by the user
8331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8332 $as_echo_n "checking if we can lock with hard links... " >&6; }
8333 hard_links=yes
8334 $RM conftest*
8335 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8336 touch conftest.a
8337 ln conftest.a conftest.b 2>&5 || hard_links=no
8338 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8340 $as_echo "$hard_links" >&6; }
8341 if test "$hard_links" = no; then
8342 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8343 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8344 need_locks=warn
8346 else
8347 need_locks=no
8355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8356 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8358 runpath_var=
8359 allow_undefined_flag=
8360 always_export_symbols=no
8361 archive_cmds=
8362 archive_expsym_cmds=
8363 compiler_needs_object=no
8364 enable_shared_with_static_runtimes=no
8365 export_dynamic_flag_spec=
8366 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8367 hardcode_automatic=no
8368 hardcode_direct=no
8369 hardcode_direct_absolute=no
8370 hardcode_libdir_flag_spec=
8371 hardcode_libdir_flag_spec_ld=
8372 hardcode_libdir_separator=
8373 hardcode_minus_L=no
8374 hardcode_shlibpath_var=unsupported
8375 inherit_rpath=no
8376 link_all_deplibs=unknown
8377 module_cmds=
8378 module_expsym_cmds=
8379 old_archive_from_new_cmds=
8380 old_archive_from_expsyms_cmds=
8381 thread_safe_flag_spec=
8382 whole_archive_flag_spec=
8383 # include_expsyms should be a list of space-separated symbols to be *always*
8384 # included in the symbol list
8385 include_expsyms=
8386 # exclude_expsyms can be an extended regexp of symbols to exclude
8387 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8388 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8389 # as well as any symbol that contains `d'.
8390 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8391 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8392 # platforms (ab)use it in PIC code, but their linkers get confused if
8393 # the symbol is explicitly referenced. Since portable code cannot
8394 # rely on this symbol name, it's probably fine to never include it in
8395 # preloaded symbol tables.
8396 # Exclude shared library initialization/finalization symbols.
8397 extract_expsyms_cmds=
8399 case $host_os in
8400 cygwin* | mingw* | pw32* | cegcc*)
8401 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8402 # When not using gcc, we currently assume that we are using
8403 # Microsoft Visual C++.
8404 if test "$GCC" != yes; then
8405 with_gnu_ld=no
8408 interix*)
8409 # we just hope/assume this is gcc and not c89 (= MSVC++)
8410 with_gnu_ld=yes
8412 openbsd*)
8413 with_gnu_ld=no
8415 esac
8417 ld_shlibs=yes
8419 # On some targets, GNU ld is compatible enough with the native linker
8420 # that we're better off using the native interface for both.
8421 lt_use_gnu_ld_interface=no
8422 if test "$with_gnu_ld" = yes; then
8423 case $host_os in
8424 aix*)
8425 # The AIX port of GNU ld has always aspired to compatibility
8426 # with the native linker. However, as the warning in the GNU ld
8427 # block says, versions before 2.19.5* couldn't really create working
8428 # shared libraries, regardless of the interface used.
8429 case `$LD -v 2>&1` in
8430 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8431 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8432 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8434 lt_use_gnu_ld_interface=yes
8436 esac
8439 lt_use_gnu_ld_interface=yes
8441 esac
8444 if test "$lt_use_gnu_ld_interface" = yes; then
8445 # If archive_cmds runs LD, not CC, wlarc should be empty
8446 wlarc='${wl}'
8448 # Set some defaults for GNU ld with shared library support. These
8449 # are reset later if shared libraries are not supported. Putting them
8450 # here allows them to be overridden if necessary.
8451 runpath_var=LD_RUN_PATH
8452 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8453 export_dynamic_flag_spec='${wl}--export-dynamic'
8454 # ancient GNU ld didn't support --whole-archive et. al.
8455 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8456 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8457 else
8458 whole_archive_flag_spec=
8460 supports_anon_versioning=no
8461 case `$LD -v 2>&1` in
8462 *GNU\ gold*) supports_anon_versioning=yes ;;
8463 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8464 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8465 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8466 *\ 2.11.*) ;; # other 2.11 versions
8467 *) supports_anon_versioning=yes ;;
8468 esac
8470 # See if GNU ld supports shared libraries.
8471 case $host_os in
8472 aix[3-9]*)
8473 # On AIX/PPC, the GNU linker is very broken
8474 if test "$host_cpu" != ia64; then
8475 ld_shlibs=no
8476 cat <<_LT_EOF 1>&2
8478 *** Warning: the GNU linker, at least up to release 2.19, is reported
8479 *** to be unable to reliably create shared libraries on AIX.
8480 *** Therefore, libtool is disabling shared libraries support. If you
8481 *** really care for shared libraries, you may want to install binutils
8482 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8483 *** You will then need to restart the configuration process.
8485 _LT_EOF
8489 amigaos*)
8490 case $host_cpu in
8491 powerpc)
8492 # see comment about AmigaOS4 .so support
8493 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8494 archive_expsym_cmds=''
8496 m68k)
8497 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)'
8498 hardcode_libdir_flag_spec='-L$libdir'
8499 hardcode_minus_L=yes
8501 esac
8504 beos*)
8505 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8506 allow_undefined_flag=unsupported
8507 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8508 # support --undefined. This deserves some investigation. FIXME
8509 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8510 else
8511 ld_shlibs=no
8515 cygwin* | mingw* | pw32* | cegcc*)
8516 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8517 # as there is no search path for DLLs.
8518 hardcode_libdir_flag_spec='-L$libdir'
8519 export_dynamic_flag_spec='${wl}--export-all-symbols'
8520 allow_undefined_flag=unsupported
8521 always_export_symbols=no
8522 enable_shared_with_static_runtimes=yes
8523 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8525 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8526 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8527 # If the export-symbols file already is a .def file (1st line
8528 # is EXPORTS), use it as is; otherwise, prepend...
8529 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8530 cp $export_symbols $output_objdir/$soname.def;
8531 else
8532 echo EXPORTS > $output_objdir/$soname.def;
8533 cat $export_symbols >> $output_objdir/$soname.def;
8535 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8536 else
8537 ld_shlibs=no
8541 haiku*)
8542 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8543 link_all_deplibs=yes
8546 interix[3-9]*)
8547 hardcode_direct=no
8548 hardcode_shlibpath_var=no
8549 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8550 export_dynamic_flag_spec='${wl}-E'
8551 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8552 # Instead, shared libraries are loaded at an image base (0x10000000 by
8553 # default) and relocated if they conflict, which is a slow very memory
8554 # consuming and fragmenting process. To avoid this, we pick a random,
8555 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8556 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8557 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8558 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'
8561 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
8562 tmp_diet=no
8563 if test "$host_os" = linux-dietlibc; then
8564 case $cc_basename in
8565 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8566 esac
8568 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8569 && test "$tmp_diet" = no
8570 then
8571 tmp_addflag=' $pic_flag'
8572 tmp_sharedflag='-shared'
8573 case $cc_basename,$host_cpu in
8574 pgcc*) # Portland Group C compiler
8575 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'
8576 tmp_addflag=' $pic_flag'
8578 pgf77* | pgf90* | pgf95* | pgfortran*)
8579 # Portland Group f77 and f90 compilers
8580 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'
8581 tmp_addflag=' $pic_flag -Mnomain' ;;
8582 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8583 tmp_addflag=' -i_dynamic' ;;
8584 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8585 tmp_addflag=' -i_dynamic -nofor_main' ;;
8586 ifc* | ifort*) # Intel Fortran compiler
8587 tmp_addflag=' -nofor_main' ;;
8588 lf95*) # Lahey Fortran 8.1
8589 whole_archive_flag_spec=
8590 tmp_sharedflag='--shared' ;;
8591 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8592 tmp_sharedflag='-qmkshrobj'
8593 tmp_addflag= ;;
8594 nvcc*) # Cuda Compiler Driver 2.2
8595 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'
8596 compiler_needs_object=yes
8598 esac
8599 case `$CC -V 2>&1 | sed 5q` in
8600 *Sun\ C*) # Sun C 5.9
8601 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'
8602 compiler_needs_object=yes
8603 tmp_sharedflag='-G' ;;
8604 *Sun\ F*) # Sun Fortran 8.3
8605 tmp_sharedflag='-G' ;;
8606 esac
8607 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8609 if test "x$supports_anon_versioning" = xyes; then
8610 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8611 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8612 echo "local: *; };" >> $output_objdir/$libname.ver~
8613 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8616 case $cc_basename in
8617 xlf* | bgf* | bgxlf* | mpixlf*)
8618 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8619 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8620 hardcode_libdir_flag_spec=
8621 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8622 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8623 if test "x$supports_anon_versioning" = xyes; then
8624 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8625 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8626 echo "local: *; };" >> $output_objdir/$libname.ver~
8627 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8630 esac
8631 else
8632 ld_shlibs=no
8636 netbsd*)
8637 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8638 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8639 wlarc=
8640 else
8641 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8642 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8646 solaris*)
8647 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8648 ld_shlibs=no
8649 cat <<_LT_EOF 1>&2
8651 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8652 *** create shared libraries on Solaris systems. Therefore, libtool
8653 *** is disabling shared libraries support. We urge you to upgrade GNU
8654 *** binutils to release 2.9.1 or newer. Another option is to modify
8655 *** your PATH or compiler configuration so that the native linker is
8656 *** used, and then restart.
8658 _LT_EOF
8659 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8660 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8661 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8662 else
8663 ld_shlibs=no
8667 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8668 case `$LD -v 2>&1` in
8669 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8670 ld_shlibs=no
8671 cat <<_LT_EOF 1>&2
8673 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8674 *** reliably create shared libraries on SCO systems. Therefore, libtool
8675 *** is disabling shared libraries support. We urge you to upgrade GNU
8676 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8677 *** your PATH or compiler configuration so that the native linker is
8678 *** used, and then restart.
8680 _LT_EOF
8683 # For security reasons, it is highly recommended that you always
8684 # use absolute paths for naming shared libraries, and exclude the
8685 # DT_RUNPATH tag from executables and libraries. But doing so
8686 # requires that you compile everything twice, which is a pain.
8687 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8688 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8689 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8690 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8691 else
8692 ld_shlibs=no
8695 esac
8698 sunos4*)
8699 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8700 wlarc=
8701 hardcode_direct=yes
8702 hardcode_shlibpath_var=no
8706 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8707 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8708 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8709 else
8710 ld_shlibs=no
8713 esac
8715 if test "$ld_shlibs" = no; then
8716 runpath_var=
8717 hardcode_libdir_flag_spec=
8718 export_dynamic_flag_spec=
8719 whole_archive_flag_spec=
8721 else
8722 # PORTME fill in a description of your system's linker (not GNU ld)
8723 case $host_os in
8724 aix3*)
8725 allow_undefined_flag=unsupported
8726 always_export_symbols=yes
8727 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'
8728 # Note: this linker hardcodes the directories in LIBPATH if there
8729 # are no directories specified by -L.
8730 hardcode_minus_L=yes
8731 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8732 # Neither direct hardcoding nor static linking is supported with a
8733 # broken collect2.
8734 hardcode_direct=unsupported
8738 aix[4-9]*)
8739 if test "$host_cpu" = ia64; then
8740 # On IA64, the linker does run time linking by default, so we don't
8741 # have to do anything special.
8742 aix_use_runtimelinking=no
8743 exp_sym_flag='-Bexport'
8744 no_entry_flag=""
8745 else
8746 # If we're using GNU nm, then we don't want the "-C" option.
8747 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8748 # Also, AIX nm treats weak defined symbols like other global
8749 # defined symbols, whereas GNU nm marks them as "W".
8750 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8751 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'
8752 else
8753 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'
8755 aix_use_runtimelinking=no
8757 # Test if we are trying to use run time linking or normal
8758 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8759 # need to do runtime linking.
8760 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8761 for ld_flag in $LDFLAGS; do
8762 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8763 aix_use_runtimelinking=yes
8764 break
8766 done
8768 esac
8770 exp_sym_flag='-bexport'
8771 no_entry_flag='-bnoentry'
8774 # When large executables or shared objects are built, AIX ld can
8775 # have problems creating the table of contents. If linking a library
8776 # or program results in "error TOC overflow" add -mminimal-toc to
8777 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8778 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8780 archive_cmds=''
8781 hardcode_direct=yes
8782 hardcode_direct_absolute=yes
8783 hardcode_libdir_separator=':'
8784 link_all_deplibs=yes
8785 file_list_spec='${wl}-f,'
8787 if test "$GCC" = yes; then
8788 case $host_os in aix4.[012]|aix4.[012].*)
8789 # We only want to do this on AIX 4.2 and lower, the check
8790 # below for broken collect2 doesn't work under 4.3+
8791 collect2name=`${CC} -print-prog-name=collect2`
8792 if test -f "$collect2name" &&
8793 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8794 then
8795 # We have reworked collect2
8797 else
8798 # We have old collect2
8799 hardcode_direct=unsupported
8800 # It fails to find uninstalled libraries when the uninstalled
8801 # path is not listed in the libpath. Setting hardcode_minus_L
8802 # to unsupported forces relinking
8803 hardcode_minus_L=yes
8804 hardcode_libdir_flag_spec='-L$libdir'
8805 hardcode_libdir_separator=
8808 esac
8809 shared_flag='-shared'
8810 if test "$aix_use_runtimelinking" = yes; then
8811 shared_flag="$shared_flag "'${wl}-G'
8813 else
8814 # not using gcc
8815 if test "$host_cpu" = ia64; then
8816 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8817 # chokes on -Wl,-G. The following line is correct:
8818 shared_flag='-G'
8819 else
8820 if test "$aix_use_runtimelinking" = yes; then
8821 shared_flag='${wl}-G'
8822 else
8823 shared_flag='${wl}-bM:SRE'
8828 export_dynamic_flag_spec='${wl}-bexpall'
8829 # It seems that -bexpall does not export symbols beginning with
8830 # underscore (_), so it is better to generate a list of symbols to export.
8831 always_export_symbols=yes
8832 if test "$aix_use_runtimelinking" = yes; then
8833 # Warning - without using the other runtime loading flags (-brtl),
8834 # -berok will link without error, but may produce a broken library.
8835 allow_undefined_flag='-berok'
8836 # Determine the default libpath from the value encoded in an
8837 # empty executable.
8838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8839 /* end confdefs.h. */
8842 main ()
8846 return 0;
8848 _ACEOF
8849 if ac_fn_c_try_link "$LINENO"; then :
8851 lt_aix_libpath_sed='
8852 /Import File Strings/,/^$/ {
8853 /^0/ {
8854 s/^0 *\(.*\)$/\1/
8858 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8859 # Check for a 64-bit object if we didn't find anything.
8860 if test -z "$aix_libpath"; then
8861 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8864 rm -f core conftest.err conftest.$ac_objext \
8865 conftest$ac_exeext conftest.$ac_ext
8866 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8868 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8869 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"
8870 else
8871 if test "$host_cpu" = ia64; then
8872 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8873 allow_undefined_flag="-z nodefs"
8874 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"
8875 else
8876 # Determine the default libpath from the value encoded in an
8877 # empty executable.
8878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8879 /* end confdefs.h. */
8882 main ()
8886 return 0;
8888 _ACEOF
8889 if ac_fn_c_try_link "$LINENO"; then :
8891 lt_aix_libpath_sed='
8892 /Import File Strings/,/^$/ {
8893 /^0/ {
8894 s/^0 *\(.*\)$/\1/
8898 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8899 # Check for a 64-bit object if we didn't find anything.
8900 if test -z "$aix_libpath"; then
8901 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8904 rm -f core conftest.err conftest.$ac_objext \
8905 conftest$ac_exeext conftest.$ac_ext
8906 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8908 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8909 # Warning - without using the other run time loading flags,
8910 # -berok will link without error, but may produce a broken library.
8911 no_undefined_flag=' ${wl}-bernotok'
8912 allow_undefined_flag=' ${wl}-berok'
8913 if test "$with_gnu_ld" = yes; then
8914 # We only use this code for GNU lds that support --whole-archive.
8915 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
8916 else
8917 # Exported symbols can be pulled into shared objects from archives
8918 whole_archive_flag_spec='$convenience'
8920 archive_cmds_need_lc=yes
8921 # This is similar to how AIX traditionally builds its shared libraries.
8922 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'
8927 amigaos*)
8928 case $host_cpu in
8929 powerpc)
8930 # see comment about AmigaOS4 .so support
8931 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8932 archive_expsym_cmds=''
8934 m68k)
8935 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)'
8936 hardcode_libdir_flag_spec='-L$libdir'
8937 hardcode_minus_L=yes
8939 esac
8942 bsdi[45]*)
8943 export_dynamic_flag_spec=-rdynamic
8946 cygwin* | mingw* | pw32* | cegcc*)
8947 # When not using gcc, we currently assume that we are using
8948 # Microsoft Visual C++.
8949 # hardcode_libdir_flag_spec is actually meaningless, as there is
8950 # no search path for DLLs.
8951 hardcode_libdir_flag_spec=' '
8952 allow_undefined_flag=unsupported
8953 # Tell ltmain to make .lib files, not .a files.
8954 libext=lib
8955 # Tell ltmain to make .dll files, not .so files.
8956 shrext_cmds=".dll"
8957 # FIXME: Setting linknames here is a bad hack.
8958 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
8959 # The linker will automatically build a .lib file if we build a DLL.
8960 old_archive_from_new_cmds='true'
8961 # FIXME: Should let the user specify the lib program.
8962 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8963 fix_srcfile_path='`cygpath -w "$srcfile"`'
8964 enable_shared_with_static_runtimes=yes
8967 darwin* | rhapsody*)
8970 archive_cmds_need_lc=no
8971 hardcode_direct=no
8972 hardcode_automatic=yes
8973 hardcode_shlibpath_var=unsupported
8974 if test "$lt_cv_ld_force_load" = "yes"; then
8975 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\"`'
8976 else
8977 whole_archive_flag_spec=''
8979 link_all_deplibs=yes
8980 allow_undefined_flag="$_lt_dar_allow_undefined"
8981 case $cc_basename in
8982 ifort*) _lt_dar_can_shared=yes ;;
8983 *) _lt_dar_can_shared=$GCC ;;
8984 esac
8985 if test "$_lt_dar_can_shared" = "yes"; then
8986 output_verbose_link_cmd=func_echo_all
8987 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8988 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8989 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}"
8990 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}"
8992 else
8993 ld_shlibs=no
8998 dgux*)
8999 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9000 hardcode_libdir_flag_spec='-L$libdir'
9001 hardcode_shlibpath_var=no
9004 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9005 # support. Future versions do this automatically, but an explicit c++rt0.o
9006 # does not break anything, and helps significantly (at the cost of a little
9007 # extra space).
9008 freebsd2.2*)
9009 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9010 hardcode_libdir_flag_spec='-R$libdir'
9011 hardcode_direct=yes
9012 hardcode_shlibpath_var=no
9015 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9016 freebsd2.*)
9017 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9018 hardcode_direct=yes
9019 hardcode_minus_L=yes
9020 hardcode_shlibpath_var=no
9023 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9024 freebsd* | dragonfly*)
9025 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9026 hardcode_libdir_flag_spec='-R$libdir'
9027 hardcode_direct=yes
9028 hardcode_shlibpath_var=no
9031 hpux9*)
9032 if test "$GCC" = yes; then
9033 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'
9034 else
9035 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'
9037 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9038 hardcode_libdir_separator=:
9039 hardcode_direct=yes
9041 # hardcode_minus_L: Not really in the search PATH,
9042 # but as the default location of the library.
9043 hardcode_minus_L=yes
9044 export_dynamic_flag_spec='${wl}-E'
9047 hpux10*)
9048 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9049 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9050 else
9051 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9053 if test "$with_gnu_ld" = no; then
9054 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9055 hardcode_libdir_flag_spec_ld='+b $libdir'
9056 hardcode_libdir_separator=:
9057 hardcode_direct=yes
9058 hardcode_direct_absolute=yes
9059 export_dynamic_flag_spec='${wl}-E'
9060 # hardcode_minus_L: Not really in the search PATH,
9061 # but as the default location of the library.
9062 hardcode_minus_L=yes
9066 hpux11*)
9067 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9068 case $host_cpu in
9069 hppa*64*)
9070 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9072 ia64*)
9073 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9076 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9078 esac
9079 else
9080 case $host_cpu in
9081 hppa*64*)
9082 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9084 ia64*)
9085 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9089 # Older versions of the 11.00 compiler do not understand -b yet
9090 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9092 $as_echo_n "checking if $CC understands -b... " >&6; }
9093 if ${lt_cv_prog_compiler__b+:} false; then :
9094 $as_echo_n "(cached) " >&6
9095 else
9096 lt_cv_prog_compiler__b=no
9097 save_LDFLAGS="$LDFLAGS"
9098 LDFLAGS="$LDFLAGS -b"
9099 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9100 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9101 # The linker can only warn and ignore the option if not recognized
9102 # So say no if there are warnings
9103 if test -s conftest.err; then
9104 # Append any errors to the config.log.
9105 cat conftest.err 1>&5
9106 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9107 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9108 if diff conftest.exp conftest.er2 >/dev/null; then
9109 lt_cv_prog_compiler__b=yes
9111 else
9112 lt_cv_prog_compiler__b=yes
9115 $RM -r conftest*
9116 LDFLAGS="$save_LDFLAGS"
9119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9120 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9122 if test x"$lt_cv_prog_compiler__b" = xyes; then
9123 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9124 else
9125 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9129 esac
9131 if test "$with_gnu_ld" = no; then
9132 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9133 hardcode_libdir_separator=:
9135 case $host_cpu in
9136 hppa*64*|ia64*)
9137 hardcode_direct=no
9138 hardcode_shlibpath_var=no
9141 hardcode_direct=yes
9142 hardcode_direct_absolute=yes
9143 export_dynamic_flag_spec='${wl}-E'
9145 # hardcode_minus_L: Not really in the search PATH,
9146 # but as the default location of the library.
9147 hardcode_minus_L=yes
9149 esac
9153 irix5* | irix6* | nonstopux*)
9154 if test "$GCC" = yes; then
9155 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'
9156 # Try to use the -exported_symbol ld option, if it does not
9157 # work, assume that -exports_file does not work either and
9158 # implicitly export all symbols.
9159 save_LDFLAGS="$LDFLAGS"
9160 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9162 /* end confdefs.h. */
9163 int foo(void) {}
9164 _ACEOF
9165 if ac_fn_c_try_link "$LINENO"; then :
9166 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'
9169 rm -f core conftest.err conftest.$ac_objext \
9170 conftest$ac_exeext conftest.$ac_ext
9171 LDFLAGS="$save_LDFLAGS"
9172 else
9173 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'
9174 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'
9176 archive_cmds_need_lc='no'
9177 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9178 hardcode_libdir_separator=:
9179 inherit_rpath=yes
9180 link_all_deplibs=yes
9183 netbsd*)
9184 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9185 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9186 else
9187 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9189 hardcode_libdir_flag_spec='-R$libdir'
9190 hardcode_direct=yes
9191 hardcode_shlibpath_var=no
9194 newsos6)
9195 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9196 hardcode_direct=yes
9197 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9198 hardcode_libdir_separator=:
9199 hardcode_shlibpath_var=no
9202 *nto* | *qnx*)
9205 openbsd*)
9206 if test -f /usr/libexec/ld.so; then
9207 hardcode_direct=yes
9208 hardcode_shlibpath_var=no
9209 hardcode_direct_absolute=yes
9210 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9211 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9212 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9213 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9214 export_dynamic_flag_spec='${wl}-E'
9215 else
9216 case $host_os in
9217 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9218 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9219 hardcode_libdir_flag_spec='-R$libdir'
9222 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9223 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9225 esac
9227 else
9228 ld_shlibs=no
9232 os2*)
9233 hardcode_libdir_flag_spec='-L$libdir'
9234 hardcode_minus_L=yes
9235 allow_undefined_flag=unsupported
9236 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'
9237 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9240 osf3*)
9241 if test "$GCC" = yes; then
9242 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9243 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'
9244 else
9245 allow_undefined_flag=' -expect_unresolved \*'
9246 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'
9248 archive_cmds_need_lc='no'
9249 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9250 hardcode_libdir_separator=:
9253 osf4* | osf5*) # as osf3* with the addition of -msym flag
9254 if test "$GCC" = yes; then
9255 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9256 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'
9257 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9258 else
9259 allow_undefined_flag=' -expect_unresolved \*'
9260 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'
9261 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~
9262 $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'
9264 # Both c and cxx compiler support -rpath directly
9265 hardcode_libdir_flag_spec='-rpath $libdir'
9267 archive_cmds_need_lc='no'
9268 hardcode_libdir_separator=:
9271 solaris*)
9272 no_undefined_flag=' -z defs'
9273 if test "$GCC" = yes; then
9274 wlarc='${wl}'
9275 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9276 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9277 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9278 else
9279 case `$CC -V 2>&1` in
9280 *"Compilers 5.0"*)
9281 wlarc=''
9282 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9283 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9284 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9287 wlarc='${wl}'
9288 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9289 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9290 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9292 esac
9294 hardcode_libdir_flag_spec='-R$libdir'
9295 hardcode_shlibpath_var=no
9296 case $host_os in
9297 solaris2.[0-5] | solaris2.[0-5].*) ;;
9299 # The compiler driver will combine and reorder linker options,
9300 # but understands `-z linker_flag'. GCC discards it without `$wl',
9301 # but is careful enough not to reorder.
9302 # Supported since Solaris 2.6 (maybe 2.5.1?)
9303 if test "$GCC" = yes; then
9304 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9305 else
9306 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9309 esac
9310 link_all_deplibs=yes
9313 sunos4*)
9314 if test "x$host_vendor" = xsequent; then
9315 # Use $CC to link under sequent, because it throws in some extra .o
9316 # files that make .init and .fini sections work.
9317 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9318 else
9319 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9321 hardcode_libdir_flag_spec='-L$libdir'
9322 hardcode_direct=yes
9323 hardcode_minus_L=yes
9324 hardcode_shlibpath_var=no
9327 sysv4)
9328 case $host_vendor in
9329 sni)
9330 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9331 hardcode_direct=yes # is this really true???
9333 siemens)
9334 ## LD is ld it makes a PLAMLIB
9335 ## CC just makes a GrossModule.
9336 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9337 reload_cmds='$CC -r -o $output$reload_objs'
9338 hardcode_direct=no
9340 motorola)
9341 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9342 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9344 esac
9345 runpath_var='LD_RUN_PATH'
9346 hardcode_shlibpath_var=no
9349 sysv4.3*)
9350 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9351 hardcode_shlibpath_var=no
9352 export_dynamic_flag_spec='-Bexport'
9355 sysv4*MP*)
9356 if test -d /usr/nec; then
9357 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9358 hardcode_shlibpath_var=no
9359 runpath_var=LD_RUN_PATH
9360 hardcode_runpath_var=yes
9361 ld_shlibs=yes
9365 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9366 no_undefined_flag='${wl}-z,text'
9367 archive_cmds_need_lc=no
9368 hardcode_shlibpath_var=no
9369 runpath_var='LD_RUN_PATH'
9371 if test "$GCC" = yes; then
9372 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9373 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9374 else
9375 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9376 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9380 sysv5* | sco3.2v5* | sco5v6*)
9381 # Note: We can NOT use -z defs as we might desire, because we do not
9382 # link with -lc, and that would cause any symbols used from libc to
9383 # always be unresolved, which means just about no library would
9384 # ever link correctly. If we're not using GNU ld we use -z text
9385 # though, which does catch some bad symbols but isn't as heavy-handed
9386 # as -z defs.
9387 no_undefined_flag='${wl}-z,text'
9388 allow_undefined_flag='${wl}-z,nodefs'
9389 archive_cmds_need_lc=no
9390 hardcode_shlibpath_var=no
9391 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9392 hardcode_libdir_separator=':'
9393 link_all_deplibs=yes
9394 export_dynamic_flag_spec='${wl}-Bexport'
9395 runpath_var='LD_RUN_PATH'
9397 if test "$GCC" = yes; then
9398 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9399 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9400 else
9401 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9402 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9406 uts4*)
9407 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9408 hardcode_libdir_flag_spec='-L$libdir'
9409 hardcode_shlibpath_var=no
9413 ld_shlibs=no
9415 esac
9417 if test x$host_vendor = xsni; then
9418 case $host in
9419 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9420 export_dynamic_flag_spec='${wl}-Blargedynsym'
9422 esac
9426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9427 $as_echo "$ld_shlibs" >&6; }
9428 test "$ld_shlibs" = no && can_build_shared=no
9430 with_gnu_ld=$with_gnu_ld
9447 # Do we need to explicitly link libc?
9449 case "x$archive_cmds_need_lc" in
9450 x|xyes)
9451 # Assume -lc should be added
9452 archive_cmds_need_lc=yes
9454 if test "$enable_shared" = yes && test "$GCC" = yes; then
9455 case $archive_cmds in
9456 *'~'*)
9457 # FIXME: we may have to deal with multi-command sequences.
9459 '$CC '*)
9460 # Test whether the compiler implicitly links with -lc since on some
9461 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9462 # to ld, don't add -lc before -lgcc.
9463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9464 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9465 if ${lt_cv_archive_cmds_need_lc+:} false; then :
9466 $as_echo_n "(cached) " >&6
9467 else
9468 $RM conftest*
9469 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9471 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9472 (eval $ac_compile) 2>&5
9473 ac_status=$?
9474 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9475 test $ac_status = 0; } 2>conftest.err; then
9476 soname=conftest
9477 lib=conftest
9478 libobjs=conftest.$ac_objext
9479 deplibs=
9480 wl=$lt_prog_compiler_wl
9481 pic_flag=$lt_prog_compiler_pic
9482 compiler_flags=-v
9483 linker_flags=-v
9484 verstring=
9485 output_objdir=.
9486 libname=conftest
9487 lt_save_allow_undefined_flag=$allow_undefined_flag
9488 allow_undefined_flag=
9489 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9490 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9491 ac_status=$?
9492 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9493 test $ac_status = 0; }
9494 then
9495 lt_cv_archive_cmds_need_lc=no
9496 else
9497 lt_cv_archive_cmds_need_lc=yes
9499 allow_undefined_flag=$lt_save_allow_undefined_flag
9500 else
9501 cat conftest.err 1>&5
9503 $RM conftest*
9506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9507 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9508 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9510 esac
9513 esac
9671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9672 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9674 if test "$GCC" = yes; then
9675 case $host_os in
9676 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9677 *) lt_awk_arg="/^libraries:/" ;;
9678 esac
9679 case $host_os in
9680 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9681 *) lt_sed_strip_eq="s,=/,/,g" ;;
9682 esac
9683 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9684 case $lt_search_path_spec in
9685 *\;*)
9686 # if the path contains ";" then we assume it to be the separator
9687 # otherwise default to the standard path separator (i.e. ":") - it is
9688 # assumed that no part of a normal pathname contains ";" but that should
9689 # okay in the real world where ";" in dirpaths is itself problematic.
9690 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9693 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9695 esac
9696 # Ok, now we have the path, separated by spaces, we can step through it
9697 # and add multilib dir if necessary.
9698 lt_tmp_lt_search_path_spec=
9699 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9700 for lt_sys_path in $lt_search_path_spec; do
9701 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9702 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9703 else
9704 test -d "$lt_sys_path" && \
9705 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9707 done
9708 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9709 BEGIN {RS=" "; FS="/|\n";} {
9710 lt_foo="";
9711 lt_count=0;
9712 for (lt_i = NF; lt_i > 0; lt_i--) {
9713 if ($lt_i != "" && $lt_i != ".") {
9714 if ($lt_i == "..") {
9715 lt_count++;
9716 } else {
9717 if (lt_count == 0) {
9718 lt_foo="/" $lt_i lt_foo;
9719 } else {
9720 lt_count--;
9725 if (lt_foo != "") { lt_freq[lt_foo]++; }
9726 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9728 # AWK program above erroneously prepends '/' to C:/dos/paths
9729 # for these hosts.
9730 case $host_os in
9731 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9732 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9733 esac
9734 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9735 else
9736 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9738 library_names_spec=
9739 libname_spec='lib$name'
9740 soname_spec=
9741 shrext_cmds=".so"
9742 postinstall_cmds=
9743 postuninstall_cmds=
9744 finish_cmds=
9745 finish_eval=
9746 shlibpath_var=
9747 shlibpath_overrides_runpath=unknown
9748 version_type=none
9749 dynamic_linker="$host_os ld.so"
9750 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9751 need_lib_prefix=unknown
9752 hardcode_into_libs=no
9754 # when you set need_version to no, make sure it does not cause -set_version
9755 # flags to be left without arguments
9756 need_version=unknown
9758 case $host_os in
9759 aix3*)
9760 version_type=linux
9761 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9762 shlibpath_var=LIBPATH
9764 # AIX 3 has no versioning support, so we append a major version to the name.
9765 soname_spec='${libname}${release}${shared_ext}$major'
9768 aix[4-9]*)
9769 version_type=linux
9770 need_lib_prefix=no
9771 need_version=no
9772 hardcode_into_libs=yes
9773 if test "$host_cpu" = ia64; then
9774 # AIX 5 supports IA64
9775 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9776 shlibpath_var=LD_LIBRARY_PATH
9777 else
9778 # With GCC up to 2.95.x, collect2 would create an import file
9779 # for dependence libraries. The import file would start with
9780 # the line `#! .'. This would cause the generated library to
9781 # depend on `.', always an invalid library. This was fixed in
9782 # development snapshots of GCC prior to 3.0.
9783 case $host_os in
9784 aix4 | aix4.[01] | aix4.[01].*)
9785 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9786 echo ' yes '
9787 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9789 else
9790 can_build_shared=no
9793 esac
9794 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9795 # soname into executable. Probably we can add versioning support to
9796 # collect2, so additional links can be useful in future.
9797 if test "$aix_use_runtimelinking" = yes; then
9798 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9799 # instead of lib<name>.a to let people know that these are not
9800 # typical AIX shared libraries.
9801 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9802 else
9803 # We preserve .a as extension for shared libraries through AIX4.2
9804 # and later when we are not doing run time linking.
9805 library_names_spec='${libname}${release}.a $libname.a'
9806 soname_spec='${libname}${release}${shared_ext}$major'
9808 shlibpath_var=LIBPATH
9812 amigaos*)
9813 case $host_cpu in
9814 powerpc)
9815 # Since July 2007 AmigaOS4 officially supports .so libraries.
9816 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9817 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9819 m68k)
9820 library_names_spec='$libname.ixlibrary $libname.a'
9821 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9822 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'
9824 esac
9827 beos*)
9828 library_names_spec='${libname}${shared_ext}'
9829 dynamic_linker="$host_os ld.so"
9830 shlibpath_var=LIBRARY_PATH
9833 bsdi[45]*)
9834 version_type=linux
9835 need_version=no
9836 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9837 soname_spec='${libname}${release}${shared_ext}$major'
9838 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9839 shlibpath_var=LD_LIBRARY_PATH
9840 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9841 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9842 # the default ld.so.conf also contains /usr/contrib/lib and
9843 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9844 # libtool to hard-code these into programs
9847 cygwin* | mingw* | pw32* | cegcc*)
9848 version_type=windows
9849 shrext_cmds=".dll"
9850 need_version=no
9851 need_lib_prefix=no
9853 case $GCC,$host_os in
9854 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9855 library_names_spec='$libname.dll.a'
9856 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9857 postinstall_cmds='base_file=`basename \${file}`~
9858 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9859 dldir=$destdir/`dirname \$dlpath`~
9860 test -d \$dldir || mkdir -p \$dldir~
9861 $install_prog $dir/$dlname \$dldir/$dlname~
9862 chmod a+x \$dldir/$dlname~
9863 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9864 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9866 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9867 dlpath=$dir/\$dldll~
9868 $RM \$dlpath'
9869 shlibpath_overrides_runpath=yes
9871 case $host_os in
9872 cygwin*)
9873 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9874 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9876 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
9878 mingw* | cegcc*)
9879 # MinGW DLLs use traditional 'lib' prefix
9880 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9882 pw32*)
9883 # pw32 DLLs use 'pw' prefix rather than 'lib'
9884 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9886 esac
9890 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9892 esac
9893 dynamic_linker='Win32 ld.exe'
9894 # FIXME: first we should search . and the directory the executable is in
9895 shlibpath_var=PATH
9898 darwin* | rhapsody*)
9899 dynamic_linker="$host_os dyld"
9900 version_type=darwin
9901 need_lib_prefix=no
9902 need_version=no
9903 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9904 soname_spec='${libname}${release}${major}$shared_ext'
9905 shlibpath_overrides_runpath=yes
9906 shlibpath_var=DYLD_LIBRARY_PATH
9907 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9909 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9910 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9913 dgux*)
9914 version_type=linux
9915 need_lib_prefix=no
9916 need_version=no
9917 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9918 soname_spec='${libname}${release}${shared_ext}$major'
9919 shlibpath_var=LD_LIBRARY_PATH
9922 freebsd* | dragonfly*)
9923 # DragonFly does not have aout. When/if they implement a new
9924 # versioning mechanism, adjust this.
9925 if test -x /usr/bin/objformat; then
9926 objformat=`/usr/bin/objformat`
9927 else
9928 case $host_os in
9929 freebsd[23].*) objformat=aout ;;
9930 *) objformat=elf ;;
9931 esac
9933 version_type=freebsd-$objformat
9934 case $version_type in
9935 freebsd-elf*)
9936 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9937 need_version=no
9938 need_lib_prefix=no
9940 freebsd-*)
9941 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9942 need_version=yes
9944 esac
9945 shlibpath_var=LD_LIBRARY_PATH
9946 case $host_os in
9947 freebsd2.*)
9948 shlibpath_overrides_runpath=yes
9950 freebsd3.[01]* | freebsdelf3.[01]*)
9951 shlibpath_overrides_runpath=yes
9952 hardcode_into_libs=yes
9954 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9955 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9956 shlibpath_overrides_runpath=no
9957 hardcode_into_libs=yes
9959 *) # from 4.6 on, and DragonFly
9960 shlibpath_overrides_runpath=yes
9961 hardcode_into_libs=yes
9963 esac
9966 gnu*)
9967 version_type=linux
9968 need_lib_prefix=no
9969 need_version=no
9970 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9971 soname_spec='${libname}${release}${shared_ext}$major'
9972 shlibpath_var=LD_LIBRARY_PATH
9973 hardcode_into_libs=yes
9976 haiku*)
9977 version_type=linux
9978 need_lib_prefix=no
9979 need_version=no
9980 dynamic_linker="$host_os runtime_loader"
9981 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9982 soname_spec='${libname}${release}${shared_ext}$major'
9983 shlibpath_var=LIBRARY_PATH
9984 shlibpath_overrides_runpath=yes
9985 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
9986 hardcode_into_libs=yes
9989 hpux9* | hpux10* | hpux11*)
9990 # Give a soname corresponding to the major version so that dld.sl refuses to
9991 # link against other versions.
9992 version_type=sunos
9993 need_lib_prefix=no
9994 need_version=no
9995 case $host_cpu in
9996 ia64*)
9997 shrext_cmds='.so'
9998 hardcode_into_libs=yes
9999 dynamic_linker="$host_os dld.so"
10000 shlibpath_var=LD_LIBRARY_PATH
10001 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10002 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10003 soname_spec='${libname}${release}${shared_ext}$major'
10004 if test "X$HPUX_IA64_MODE" = X32; then
10005 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10006 else
10007 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10009 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10011 hppa*64*)
10012 shrext_cmds='.sl'
10013 hardcode_into_libs=yes
10014 dynamic_linker="$host_os dld.sl"
10015 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10016 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10017 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10018 soname_spec='${libname}${release}${shared_ext}$major'
10019 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10020 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10023 shrext_cmds='.sl'
10024 dynamic_linker="$host_os dld.sl"
10025 shlibpath_var=SHLIB_PATH
10026 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10027 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10028 soname_spec='${libname}${release}${shared_ext}$major'
10030 esac
10031 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10032 postinstall_cmds='chmod 555 $lib'
10033 # or fails outright, so override atomically:
10034 install_override_mode=555
10037 interix[3-9]*)
10038 version_type=linux
10039 need_lib_prefix=no
10040 need_version=no
10041 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10042 soname_spec='${libname}${release}${shared_ext}$major'
10043 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10044 shlibpath_var=LD_LIBRARY_PATH
10045 shlibpath_overrides_runpath=no
10046 hardcode_into_libs=yes
10049 irix5* | irix6* | nonstopux*)
10050 case $host_os in
10051 nonstopux*) version_type=nonstopux ;;
10053 if test "$lt_cv_prog_gnu_ld" = yes; then
10054 version_type=linux
10055 else
10056 version_type=irix
10057 fi ;;
10058 esac
10059 need_lib_prefix=no
10060 need_version=no
10061 soname_spec='${libname}${release}${shared_ext}$major'
10062 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10063 case $host_os in
10064 irix5* | nonstopux*)
10065 libsuff= shlibsuff=
10068 case $LD in # libtool.m4 will add one of these switches to LD
10069 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10070 libsuff= shlibsuff= libmagic=32-bit;;
10071 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10072 libsuff=32 shlibsuff=N32 libmagic=N32;;
10073 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10074 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10075 *) libsuff= shlibsuff= libmagic=never-match;;
10076 esac
10078 esac
10079 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10080 shlibpath_overrides_runpath=no
10081 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10082 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10083 hardcode_into_libs=yes
10086 # No shared lib support for Linux oldld, aout, or coff.
10087 linux*oldld* | linux*aout* | linux*coff*)
10088 dynamic_linker=no
10091 # This must be Linux ELF.
10093 # uclinux* changes (here and below) have been submitted to the libtool
10094 # project, but have not yet been accepted: they are GCC-local changes
10095 # for the time being. (See
10096 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
10097 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
10098 version_type=linux
10099 need_lib_prefix=no
10100 need_version=no
10101 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10102 soname_spec='${libname}${release}${shared_ext}$major'
10103 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10104 shlibpath_var=LD_LIBRARY_PATH
10105 shlibpath_overrides_runpath=no
10107 # Some binutils ld are patched to set DT_RUNPATH
10108 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10109 $as_echo_n "(cached) " >&6
10110 else
10111 lt_cv_shlibpath_overrides_runpath=no
10112 save_LDFLAGS=$LDFLAGS
10113 save_libdir=$libdir
10114 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10115 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10117 /* end confdefs.h. */
10120 main ()
10124 return 0;
10126 _ACEOF
10127 if ac_fn_c_try_link "$LINENO"; then :
10128 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10129 lt_cv_shlibpath_overrides_runpath=yes
10132 rm -f core conftest.err conftest.$ac_objext \
10133 conftest$ac_exeext conftest.$ac_ext
10134 LDFLAGS=$save_LDFLAGS
10135 libdir=$save_libdir
10139 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10141 # This implies no fast_install, which is unacceptable.
10142 # Some rework will be needed to allow for fast_install
10143 # before this can be enabled.
10144 hardcode_into_libs=yes
10146 # Append ld.so.conf contents to the search path
10147 if test -f /etc/ld.so.conf; then
10148 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' ' '`
10149 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10152 # We used to test for /lib/ld.so.1 and disable shared libraries on
10153 # powerpc, because MkLinux only supported shared libraries with the
10154 # GNU dynamic linker. Since this was broken with cross compilers,
10155 # most powerpc-linux boxes support dynamic linking these days and
10156 # people can always --disable-shared, the test was removed, and we
10157 # assume the GNU/Linux dynamic linker is in use.
10158 dynamic_linker='GNU/Linux ld.so'
10161 netbsd*)
10162 version_type=sunos
10163 need_lib_prefix=no
10164 need_version=no
10165 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10166 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10167 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10168 dynamic_linker='NetBSD (a.out) ld.so'
10169 else
10170 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10171 soname_spec='${libname}${release}${shared_ext}$major'
10172 dynamic_linker='NetBSD ld.elf_so'
10174 shlibpath_var=LD_LIBRARY_PATH
10175 shlibpath_overrides_runpath=yes
10176 hardcode_into_libs=yes
10179 newsos6)
10180 version_type=linux
10181 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10182 shlibpath_var=LD_LIBRARY_PATH
10183 shlibpath_overrides_runpath=yes
10186 *nto* | *qnx*)
10187 version_type=qnx
10188 need_lib_prefix=no
10189 need_version=no
10190 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10191 soname_spec='${libname}${release}${shared_ext}$major'
10192 shlibpath_var=LD_LIBRARY_PATH
10193 shlibpath_overrides_runpath=no
10194 hardcode_into_libs=yes
10195 dynamic_linker='ldqnx.so'
10198 openbsd*)
10199 version_type=sunos
10200 sys_lib_dlsearch_path_spec="/usr/lib"
10201 need_lib_prefix=no
10202 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10203 case $host_os in
10204 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10205 *) need_version=no ;;
10206 esac
10207 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10208 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10209 shlibpath_var=LD_LIBRARY_PATH
10210 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10211 case $host_os in
10212 openbsd2.[89] | openbsd2.[89].*)
10213 shlibpath_overrides_runpath=no
10216 shlibpath_overrides_runpath=yes
10218 esac
10219 else
10220 shlibpath_overrides_runpath=yes
10224 os2*)
10225 libname_spec='$name'
10226 shrext_cmds=".dll"
10227 need_lib_prefix=no
10228 library_names_spec='$libname${shared_ext} $libname.a'
10229 dynamic_linker='OS/2 ld.exe'
10230 shlibpath_var=LIBPATH
10233 osf3* | osf4* | osf5*)
10234 version_type=osf
10235 need_lib_prefix=no
10236 need_version=no
10237 soname_spec='${libname}${release}${shared_ext}$major'
10238 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10239 shlibpath_var=LD_LIBRARY_PATH
10240 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10241 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10244 rdos*)
10245 dynamic_linker=no
10248 solaris*)
10249 version_type=linux
10250 need_lib_prefix=no
10251 need_version=no
10252 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10253 soname_spec='${libname}${release}${shared_ext}$major'
10254 shlibpath_var=LD_LIBRARY_PATH
10255 shlibpath_overrides_runpath=yes
10256 hardcode_into_libs=yes
10257 # ldd complains unless libraries are executable
10258 postinstall_cmds='chmod +x $lib'
10261 sunos4*)
10262 version_type=sunos
10263 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10264 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10265 shlibpath_var=LD_LIBRARY_PATH
10266 shlibpath_overrides_runpath=yes
10267 if test "$with_gnu_ld" = yes; then
10268 need_lib_prefix=no
10270 need_version=yes
10273 sysv4 | sysv4.3*)
10274 version_type=linux
10275 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10276 soname_spec='${libname}${release}${shared_ext}$major'
10277 shlibpath_var=LD_LIBRARY_PATH
10278 case $host_vendor in
10279 sni)
10280 shlibpath_overrides_runpath=no
10281 need_lib_prefix=no
10282 runpath_var=LD_RUN_PATH
10284 siemens)
10285 need_lib_prefix=no
10287 motorola)
10288 need_lib_prefix=no
10289 need_version=no
10290 shlibpath_overrides_runpath=no
10291 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10293 esac
10296 sysv4*MP*)
10297 if test -d /usr/nec ;then
10298 version_type=linux
10299 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10300 soname_spec='$libname${shared_ext}.$major'
10301 shlibpath_var=LD_LIBRARY_PATH
10305 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10306 version_type=freebsd-elf
10307 need_lib_prefix=no
10308 need_version=no
10309 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10310 soname_spec='${libname}${release}${shared_ext}$major'
10311 shlibpath_var=LD_LIBRARY_PATH
10312 shlibpath_overrides_runpath=yes
10313 hardcode_into_libs=yes
10314 if test "$with_gnu_ld" = yes; then
10315 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10316 else
10317 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10318 case $host_os in
10319 sco3.2v5*)
10320 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10322 esac
10324 sys_lib_dlsearch_path_spec='/usr/lib'
10327 tpf*)
10328 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10329 version_type=linux
10330 need_lib_prefix=no
10331 need_version=no
10332 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10333 shlibpath_var=LD_LIBRARY_PATH
10334 shlibpath_overrides_runpath=no
10335 hardcode_into_libs=yes
10338 uts4*)
10339 version_type=linux
10340 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10341 soname_spec='${libname}${release}${shared_ext}$major'
10342 shlibpath_var=LD_LIBRARY_PATH
10346 dynamic_linker=no
10348 esac
10349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10350 $as_echo "$dynamic_linker" >&6; }
10351 test "$dynamic_linker" = no && can_build_shared=no
10353 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10354 if test "$GCC" = yes; then
10355 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10358 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10359 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10361 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10362 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10457 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10458 hardcode_action=
10459 if test -n "$hardcode_libdir_flag_spec" ||
10460 test -n "$runpath_var" ||
10461 test "X$hardcode_automatic" = "Xyes" ; then
10463 # We can hardcode non-existent directories.
10464 if test "$hardcode_direct" != no &&
10465 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10466 # have to relink, otherwise we might link with an installed library
10467 # when we should be linking with a yet-to-be-installed one
10468 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10469 test "$hardcode_minus_L" != no; then
10470 # Linking always hardcodes the temporary library directory.
10471 hardcode_action=relink
10472 else
10473 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10474 hardcode_action=immediate
10476 else
10477 # We cannot hardcode anything, or else we can only hardcode existing
10478 # directories.
10479 hardcode_action=unsupported
10481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10482 $as_echo "$hardcode_action" >&6; }
10484 if test "$hardcode_action" = relink ||
10485 test "$inherit_rpath" = yes; then
10486 # Fast installation is not supported
10487 enable_fast_install=no
10488 elif test "$shlibpath_overrides_runpath" = yes ||
10489 test "$enable_shared" = no; then
10490 # Fast installation is not necessary
10491 enable_fast_install=needless
10499 if test "x$enable_dlopen" != xyes; then
10500 enable_dlopen=unknown
10501 enable_dlopen_self=unknown
10502 enable_dlopen_self_static=unknown
10503 else
10504 lt_cv_dlopen=no
10505 lt_cv_dlopen_libs=
10507 case $host_os in
10508 beos*)
10509 lt_cv_dlopen="load_add_on"
10510 lt_cv_dlopen_libs=
10511 lt_cv_dlopen_self=yes
10514 mingw* | pw32* | cegcc*)
10515 lt_cv_dlopen="LoadLibrary"
10516 lt_cv_dlopen_libs=
10519 cygwin*)
10520 lt_cv_dlopen="dlopen"
10521 lt_cv_dlopen_libs=
10524 darwin*)
10525 # if libdl is installed we need to link against it
10526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10527 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10528 if ${ac_cv_lib_dl_dlopen+:} false; then :
10529 $as_echo_n "(cached) " >&6
10530 else
10531 ac_check_lib_save_LIBS=$LIBS
10532 LIBS="-ldl $LIBS"
10533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10534 /* end confdefs.h. */
10536 /* Override any GCC internal prototype to avoid an error.
10537 Use char because int might match the return type of a GCC
10538 builtin and then its argument prototype would still apply. */
10539 #ifdef __cplusplus
10540 extern "C"
10541 #endif
10542 char dlopen ();
10544 main ()
10546 return dlopen ();
10548 return 0;
10550 _ACEOF
10551 if ac_fn_c_try_link "$LINENO"; then :
10552 ac_cv_lib_dl_dlopen=yes
10553 else
10554 ac_cv_lib_dl_dlopen=no
10556 rm -f core conftest.err conftest.$ac_objext \
10557 conftest$ac_exeext conftest.$ac_ext
10558 LIBS=$ac_check_lib_save_LIBS
10560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10561 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10562 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10563 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10564 else
10566 lt_cv_dlopen="dyld"
10567 lt_cv_dlopen_libs=
10568 lt_cv_dlopen_self=yes
10575 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10576 if test "x$ac_cv_func_shl_load" = xyes; then :
10577 lt_cv_dlopen="shl_load"
10578 else
10579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10580 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10581 if ${ac_cv_lib_dld_shl_load+:} false; then :
10582 $as_echo_n "(cached) " >&6
10583 else
10584 ac_check_lib_save_LIBS=$LIBS
10585 LIBS="-ldld $LIBS"
10586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10587 /* end confdefs.h. */
10589 /* Override any GCC internal prototype to avoid an error.
10590 Use char because int might match the return type of a GCC
10591 builtin and then its argument prototype would still apply. */
10592 #ifdef __cplusplus
10593 extern "C"
10594 #endif
10595 char shl_load ();
10597 main ()
10599 return shl_load ();
10601 return 0;
10603 _ACEOF
10604 if ac_fn_c_try_link "$LINENO"; then :
10605 ac_cv_lib_dld_shl_load=yes
10606 else
10607 ac_cv_lib_dld_shl_load=no
10609 rm -f core conftest.err conftest.$ac_objext \
10610 conftest$ac_exeext conftest.$ac_ext
10611 LIBS=$ac_check_lib_save_LIBS
10613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10614 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10615 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
10616 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10617 else
10618 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10619 if test "x$ac_cv_func_dlopen" = xyes; then :
10620 lt_cv_dlopen="dlopen"
10621 else
10622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10623 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10624 if ${ac_cv_lib_dl_dlopen+:} false; then :
10625 $as_echo_n "(cached) " >&6
10626 else
10627 ac_check_lib_save_LIBS=$LIBS
10628 LIBS="-ldl $LIBS"
10629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10630 /* end confdefs.h. */
10632 /* Override any GCC internal prototype to avoid an error.
10633 Use char because int might match the return type of a GCC
10634 builtin and then its argument prototype would still apply. */
10635 #ifdef __cplusplus
10636 extern "C"
10637 #endif
10638 char dlopen ();
10640 main ()
10642 return dlopen ();
10644 return 0;
10646 _ACEOF
10647 if ac_fn_c_try_link "$LINENO"; then :
10648 ac_cv_lib_dl_dlopen=yes
10649 else
10650 ac_cv_lib_dl_dlopen=no
10652 rm -f core conftest.err conftest.$ac_objext \
10653 conftest$ac_exeext conftest.$ac_ext
10654 LIBS=$ac_check_lib_save_LIBS
10656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10657 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10658 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10659 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10660 else
10661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10662 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10663 if ${ac_cv_lib_svld_dlopen+:} false; then :
10664 $as_echo_n "(cached) " >&6
10665 else
10666 ac_check_lib_save_LIBS=$LIBS
10667 LIBS="-lsvld $LIBS"
10668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10669 /* end confdefs.h. */
10671 /* Override any GCC internal prototype to avoid an error.
10672 Use char because int might match the return type of a GCC
10673 builtin and then its argument prototype would still apply. */
10674 #ifdef __cplusplus
10675 extern "C"
10676 #endif
10677 char dlopen ();
10679 main ()
10681 return dlopen ();
10683 return 0;
10685 _ACEOF
10686 if ac_fn_c_try_link "$LINENO"; then :
10687 ac_cv_lib_svld_dlopen=yes
10688 else
10689 ac_cv_lib_svld_dlopen=no
10691 rm -f core conftest.err conftest.$ac_objext \
10692 conftest$ac_exeext conftest.$ac_ext
10693 LIBS=$ac_check_lib_save_LIBS
10695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10696 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10697 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
10698 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10699 else
10700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10701 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10702 if ${ac_cv_lib_dld_dld_link+:} false; then :
10703 $as_echo_n "(cached) " >&6
10704 else
10705 ac_check_lib_save_LIBS=$LIBS
10706 LIBS="-ldld $LIBS"
10707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10708 /* end confdefs.h. */
10710 /* Override any GCC internal prototype to avoid an error.
10711 Use char because int might match the return type of a GCC
10712 builtin and then its argument prototype would still apply. */
10713 #ifdef __cplusplus
10714 extern "C"
10715 #endif
10716 char dld_link ();
10718 main ()
10720 return dld_link ();
10722 return 0;
10724 _ACEOF
10725 if ac_fn_c_try_link "$LINENO"; then :
10726 ac_cv_lib_dld_dld_link=yes
10727 else
10728 ac_cv_lib_dld_dld_link=no
10730 rm -f core conftest.err conftest.$ac_objext \
10731 conftest$ac_exeext conftest.$ac_ext
10732 LIBS=$ac_check_lib_save_LIBS
10734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10735 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10736 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
10737 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10756 esac
10758 if test "x$lt_cv_dlopen" != xno; then
10759 enable_dlopen=yes
10760 else
10761 enable_dlopen=no
10764 case $lt_cv_dlopen in
10765 dlopen)
10766 save_CPPFLAGS="$CPPFLAGS"
10767 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10769 save_LDFLAGS="$LDFLAGS"
10770 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10772 save_LIBS="$LIBS"
10773 LIBS="$lt_cv_dlopen_libs $LIBS"
10775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10776 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10777 if ${lt_cv_dlopen_self+:} false; then :
10778 $as_echo_n "(cached) " >&6
10779 else
10780 if test "$cross_compiling" = yes; then :
10781 lt_cv_dlopen_self=cross
10782 else
10783 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10784 lt_status=$lt_dlunknown
10785 cat > conftest.$ac_ext <<_LT_EOF
10786 #line 10786 "configure"
10787 #include "confdefs.h"
10789 #if HAVE_DLFCN_H
10790 #include <dlfcn.h>
10791 #endif
10793 #include <stdio.h>
10795 #ifdef RTLD_GLOBAL
10796 # define LT_DLGLOBAL RTLD_GLOBAL
10797 #else
10798 # ifdef DL_GLOBAL
10799 # define LT_DLGLOBAL DL_GLOBAL
10800 # else
10801 # define LT_DLGLOBAL 0
10802 # endif
10803 #endif
10805 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10806 find out it does not work in some platform. */
10807 #ifndef LT_DLLAZY_OR_NOW
10808 # ifdef RTLD_LAZY
10809 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10810 # else
10811 # ifdef DL_LAZY
10812 # define LT_DLLAZY_OR_NOW DL_LAZY
10813 # else
10814 # ifdef RTLD_NOW
10815 # define LT_DLLAZY_OR_NOW RTLD_NOW
10816 # else
10817 # ifdef DL_NOW
10818 # define LT_DLLAZY_OR_NOW DL_NOW
10819 # else
10820 # define LT_DLLAZY_OR_NOW 0
10821 # endif
10822 # endif
10823 # endif
10824 # endif
10825 #endif
10827 /* When -fvisbility=hidden is used, assume the code has been annotated
10828 correspondingly for the symbols needed. */
10829 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10830 void fnord () __attribute__((visibility("default")));
10831 #endif
10833 void fnord () { int i=42; }
10834 int main ()
10836 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10837 int status = $lt_dlunknown;
10839 if (self)
10841 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10842 else
10844 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10845 else puts (dlerror ());
10847 /* dlclose (self); */
10849 else
10850 puts (dlerror ());
10852 return status;
10854 _LT_EOF
10855 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10856 (eval $ac_link) 2>&5
10857 ac_status=$?
10858 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10859 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10860 (./conftest; exit; ) >&5 2>/dev/null
10861 lt_status=$?
10862 case x$lt_status in
10863 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10864 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10865 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10866 esac
10867 else :
10868 # compilation failed
10869 lt_cv_dlopen_self=no
10872 rm -fr conftest*
10876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10877 $as_echo "$lt_cv_dlopen_self" >&6; }
10879 if test "x$lt_cv_dlopen_self" = xyes; then
10880 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10882 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10883 if ${lt_cv_dlopen_self_static+:} false; then :
10884 $as_echo_n "(cached) " >&6
10885 else
10886 if test "$cross_compiling" = yes; then :
10887 lt_cv_dlopen_self_static=cross
10888 else
10889 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10890 lt_status=$lt_dlunknown
10891 cat > conftest.$ac_ext <<_LT_EOF
10892 #line 10892 "configure"
10893 #include "confdefs.h"
10895 #if HAVE_DLFCN_H
10896 #include <dlfcn.h>
10897 #endif
10899 #include <stdio.h>
10901 #ifdef RTLD_GLOBAL
10902 # define LT_DLGLOBAL RTLD_GLOBAL
10903 #else
10904 # ifdef DL_GLOBAL
10905 # define LT_DLGLOBAL DL_GLOBAL
10906 # else
10907 # define LT_DLGLOBAL 0
10908 # endif
10909 #endif
10911 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10912 find out it does not work in some platform. */
10913 #ifndef LT_DLLAZY_OR_NOW
10914 # ifdef RTLD_LAZY
10915 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10916 # else
10917 # ifdef DL_LAZY
10918 # define LT_DLLAZY_OR_NOW DL_LAZY
10919 # else
10920 # ifdef RTLD_NOW
10921 # define LT_DLLAZY_OR_NOW RTLD_NOW
10922 # else
10923 # ifdef DL_NOW
10924 # define LT_DLLAZY_OR_NOW DL_NOW
10925 # else
10926 # define LT_DLLAZY_OR_NOW 0
10927 # endif
10928 # endif
10929 # endif
10930 # endif
10931 #endif
10933 /* When -fvisbility=hidden is used, assume the code has been annotated
10934 correspondingly for the symbols needed. */
10935 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10936 void fnord () __attribute__((visibility("default")));
10937 #endif
10939 void fnord () { int i=42; }
10940 int main ()
10942 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10943 int status = $lt_dlunknown;
10945 if (self)
10947 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10948 else
10950 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10951 else puts (dlerror ());
10953 /* dlclose (self); */
10955 else
10956 puts (dlerror ());
10958 return status;
10960 _LT_EOF
10961 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10962 (eval $ac_link) 2>&5
10963 ac_status=$?
10964 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10965 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10966 (./conftest; exit; ) >&5 2>/dev/null
10967 lt_status=$?
10968 case x$lt_status in
10969 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10970 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10971 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10972 esac
10973 else :
10974 # compilation failed
10975 lt_cv_dlopen_self_static=no
10978 rm -fr conftest*
10982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10983 $as_echo "$lt_cv_dlopen_self_static" >&6; }
10986 CPPFLAGS="$save_CPPFLAGS"
10987 LDFLAGS="$save_LDFLAGS"
10988 LIBS="$save_LIBS"
10990 esac
10992 case $lt_cv_dlopen_self in
10993 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10994 *) enable_dlopen_self=unknown ;;
10995 esac
10997 case $lt_cv_dlopen_self_static in
10998 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10999 *) enable_dlopen_self_static=unknown ;;
11000 esac
11019 striplib=
11020 old_striplib=
11021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11022 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11023 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11024 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11025 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11027 $as_echo "yes" >&6; }
11028 else
11029 # FIXME - insert some real tests, host_os isn't really good enough
11030 case $host_os in
11031 darwin*)
11032 if test -n "$STRIP" ; then
11033 striplib="$STRIP -x"
11034 old_striplib="$STRIP -S"
11035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11036 $as_echo "yes" >&6; }
11037 else
11038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11039 $as_echo "no" >&6; }
11043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11044 $as_echo "no" >&6; }
11046 esac
11060 # Report which library types will actually be built
11061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11062 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11064 $as_echo "$can_build_shared" >&6; }
11066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11067 $as_echo_n "checking whether to build shared libraries... " >&6; }
11068 test "$can_build_shared" = "no" && enable_shared=no
11070 # On AIX, shared libraries and static libraries use the same namespace, and
11071 # are all built from PIC.
11072 case $host_os in
11073 aix3*)
11074 test "$enable_shared" = yes && enable_static=no
11075 if test -n "$RANLIB"; then
11076 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11077 postinstall_cmds='$RANLIB $lib'
11081 aix[4-9]*)
11082 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11083 test "$enable_shared" = yes && enable_static=no
11086 esac
11087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11088 $as_echo "$enable_shared" >&6; }
11090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11091 $as_echo_n "checking whether to build static libraries... " >&6; }
11092 # Make sure either enable_shared or enable_static is yes.
11093 test "$enable_shared" = yes || enable_static=yes
11094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11095 $as_echo "$enable_static" >&6; }
11101 ac_ext=c
11102 ac_cpp='$CPP $CPPFLAGS'
11103 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11104 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11105 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11107 CC="$lt_save_CC"
11121 ac_config_commands="$ac_config_commands libtool"
11126 # Only expand once:
11130 ac_ext=cpp
11131 ac_cpp='$CXXCPP $CPPFLAGS'
11132 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11133 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11134 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11135 if test -z "$CXX"; then
11136 if test -n "$CCC"; then
11137 CXX=$CCC
11138 else
11139 if test -n "$ac_tool_prefix"; then
11140 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
11142 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11143 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11145 $as_echo_n "checking for $ac_word... " >&6; }
11146 if ${ac_cv_prog_CXX+:} false; then :
11147 $as_echo_n "(cached) " >&6
11148 else
11149 if test -n "$CXX"; then
11150 ac_cv_prog_CXX="$CXX" # Let the user override the test.
11151 else
11152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11153 for as_dir in $PATH
11155 IFS=$as_save_IFS
11156 test -z "$as_dir" && as_dir=.
11157 for ac_exec_ext in '' $ac_executable_extensions; do
11158 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11159 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
11160 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11161 break 2
11163 done
11164 done
11165 IFS=$as_save_IFS
11169 CXX=$ac_cv_prog_CXX
11170 if test -n "$CXX"; then
11171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
11172 $as_echo "$CXX" >&6; }
11173 else
11174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11175 $as_echo "no" >&6; }
11179 test -n "$CXX" && break
11180 done
11182 if test -z "$CXX"; then
11183 ac_ct_CXX=$CXX
11184 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
11186 # Extract the first word of "$ac_prog", so it can be a program name with args.
11187 set dummy $ac_prog; ac_word=$2
11188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11189 $as_echo_n "checking for $ac_word... " >&6; }
11190 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
11191 $as_echo_n "(cached) " >&6
11192 else
11193 if test -n "$ac_ct_CXX"; then
11194 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
11195 else
11196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11197 for as_dir in $PATH
11199 IFS=$as_save_IFS
11200 test -z "$as_dir" && as_dir=.
11201 for ac_exec_ext in '' $ac_executable_extensions; do
11202 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11203 ac_cv_prog_ac_ct_CXX="$ac_prog"
11204 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11205 break 2
11207 done
11208 done
11209 IFS=$as_save_IFS
11213 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
11214 if test -n "$ac_ct_CXX"; then
11215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
11216 $as_echo "$ac_ct_CXX" >&6; }
11217 else
11218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11219 $as_echo "no" >&6; }
11223 test -n "$ac_ct_CXX" && break
11224 done
11226 if test "x$ac_ct_CXX" = x; then
11227 CXX="g++"
11228 else
11229 case $cross_compiling:$ac_tool_warned in
11230 yes:)
11231 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11232 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11233 ac_tool_warned=yes ;;
11234 esac
11235 CXX=$ac_ct_CXX
11241 # Provide some information about the compiler.
11242 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
11243 set X $ac_compile
11244 ac_compiler=$2
11245 for ac_option in --version -v -V -qversion; do
11246 { { ac_try="$ac_compiler $ac_option >&5"
11247 case "(($ac_try" in
11248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11249 *) ac_try_echo=$ac_try;;
11250 esac
11251 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11252 $as_echo "$ac_try_echo"; } >&5
11253 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11254 ac_status=$?
11255 if test -s conftest.err; then
11256 sed '10a\
11257 ... rest of stderr output deleted ...
11258 10q' conftest.err >conftest.er1
11259 cat conftest.er1 >&5
11261 rm -f conftest.er1 conftest.err
11262 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11263 test $ac_status = 0; }
11264 done
11266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
11267 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
11268 if ${ac_cv_cxx_compiler_gnu+:} false; then :
11269 $as_echo_n "(cached) " >&6
11270 else
11271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11272 /* end confdefs.h. */
11275 main ()
11277 #ifndef __GNUC__
11278 choke me
11279 #endif
11282 return 0;
11284 _ACEOF
11285 if ac_fn_cxx_try_compile "$LINENO"; then :
11286 ac_compiler_gnu=yes
11287 else
11288 ac_compiler_gnu=no
11290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11291 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
11294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
11295 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
11296 if test $ac_compiler_gnu = yes; then
11297 GXX=yes
11298 else
11299 GXX=
11301 ac_test_CXXFLAGS=${CXXFLAGS+set}
11302 ac_save_CXXFLAGS=$CXXFLAGS
11303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
11304 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
11305 if ${ac_cv_prog_cxx_g+:} false; then :
11306 $as_echo_n "(cached) " >&6
11307 else
11308 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
11309 ac_cxx_werror_flag=yes
11310 ac_cv_prog_cxx_g=no
11311 CXXFLAGS="-g"
11312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11313 /* end confdefs.h. */
11316 main ()
11320 return 0;
11322 _ACEOF
11323 if ac_fn_cxx_try_compile "$LINENO"; then :
11324 ac_cv_prog_cxx_g=yes
11325 else
11326 CXXFLAGS=""
11327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11328 /* end confdefs.h. */
11331 main ()
11335 return 0;
11337 _ACEOF
11338 if ac_fn_cxx_try_compile "$LINENO"; then :
11340 else
11341 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
11342 CXXFLAGS="-g"
11343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11344 /* end confdefs.h. */
11347 main ()
11351 return 0;
11353 _ACEOF
11354 if ac_fn_cxx_try_compile "$LINENO"; then :
11355 ac_cv_prog_cxx_g=yes
11357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11362 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
11364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
11365 $as_echo "$ac_cv_prog_cxx_g" >&6; }
11366 if test "$ac_test_CXXFLAGS" = set; then
11367 CXXFLAGS=$ac_save_CXXFLAGS
11368 elif test $ac_cv_prog_cxx_g = yes; then
11369 if test "$GXX" = yes; then
11370 CXXFLAGS="-g -O2"
11371 else
11372 CXXFLAGS="-g"
11374 else
11375 if test "$GXX" = yes; then
11376 CXXFLAGS="-O2"
11377 else
11378 CXXFLAGS=
11381 ac_ext=c
11382 ac_cpp='$CPP $CPPFLAGS'
11383 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11384 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11385 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11387 depcc="$CXX" am_compiler_list=
11389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
11390 $as_echo_n "checking dependency style of $depcc... " >&6; }
11391 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
11392 $as_echo_n "(cached) " >&6
11393 else
11394 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
11395 # We make a subdir and do the tests there. Otherwise we can end up
11396 # making bogus files that we don't know about and never remove. For
11397 # instance it was reported that on HP-UX the gcc test will end up
11398 # making a dummy file named 'D' -- because '-MD' means "put the output
11399 # in D".
11400 rm -rf conftest.dir
11401 mkdir conftest.dir
11402 # Copy depcomp to subdir because otherwise we won't find it if we're
11403 # using a relative directory.
11404 cp "$am_depcomp" conftest.dir
11405 cd conftest.dir
11406 # We will build objects and dependencies in a subdirectory because
11407 # it helps to detect inapplicable dependency modes. For instance
11408 # both Tru64's cc and ICC support -MD to output dependencies as a
11409 # side effect of compilation, but ICC will put the dependencies in
11410 # the current directory while Tru64 will put them in the object
11411 # directory.
11412 mkdir sub
11414 am_cv_CXX_dependencies_compiler_type=none
11415 if test "$am_compiler_list" = ""; then
11416 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
11418 am__universal=false
11419 case " $depcc " in #(
11420 *\ -arch\ *\ -arch\ *) am__universal=true ;;
11421 esac
11423 for depmode in $am_compiler_list; do
11424 # Setup a source with many dependencies, because some compilers
11425 # like to wrap large dependency lists on column 80 (with \), and
11426 # we should not choose a depcomp mode which is confused by this.
11428 # We need to recreate these files for each test, as the compiler may
11429 # overwrite some of them when testing with obscure command lines.
11430 # This happens at least with the AIX C compiler.
11431 : > sub/conftest.c
11432 for i in 1 2 3 4 5 6; do
11433 echo '#include "conftst'$i'.h"' >> sub/conftest.c
11434 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
11435 # Solaris 10 /bin/sh.
11436 echo '/* dummy */' > sub/conftst$i.h
11437 done
11438 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
11440 # We check with '-c' and '-o' for the sake of the "dashmstdout"
11441 # mode. It turns out that the SunPro C++ compiler does not properly
11442 # handle '-M -o', and we need to detect this. Also, some Intel
11443 # versions had trouble with output in subdirs.
11444 am__obj=sub/conftest.${OBJEXT-o}
11445 am__minus_obj="-o $am__obj"
11446 case $depmode in
11447 gcc)
11448 # This depmode causes a compiler race in universal mode.
11449 test "$am__universal" = false || continue
11451 nosideeffect)
11452 # After this tag, mechanisms are not by side-effect, so they'll
11453 # only be used when explicitly requested.
11454 if test "x$enable_dependency_tracking" = xyes; then
11455 continue
11456 else
11457 break
11460 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
11461 # This compiler won't grok '-c -o', but also, the minuso test has
11462 # not run yet. These depmodes are late enough in the game, and
11463 # so weak that their functioning should not be impacted.
11464 am__obj=conftest.${OBJEXT-o}
11465 am__minus_obj=
11467 none) break ;;
11468 esac
11469 if depmode=$depmode \
11470 source=sub/conftest.c object=$am__obj \
11471 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
11472 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
11473 >/dev/null 2>conftest.err &&
11474 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
11475 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
11476 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
11477 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
11478 # icc doesn't choke on unknown options, it will just issue warnings
11479 # or remarks (even with -Werror). So we grep stderr for any message
11480 # that says an option was ignored or not supported.
11481 # When given -MP, icc 7.0 and 7.1 complain thusly:
11482 # icc: Command line warning: ignoring option '-M'; no argument required
11483 # The diagnosis changed in icc 8.0:
11484 # icc: Command line remark: option '-MP' not supported
11485 if (grep 'ignoring option' conftest.err ||
11486 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
11487 am_cv_CXX_dependencies_compiler_type=$depmode
11488 break
11491 done
11493 cd ..
11494 rm -rf conftest.dir
11495 else
11496 am_cv_CXX_dependencies_compiler_type=none
11500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
11501 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
11502 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
11505 test "x$enable_dependency_tracking" != xno \
11506 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
11507 am__fastdepCXX_TRUE=
11508 am__fastdepCXX_FALSE='#'
11509 else
11510 am__fastdepCXX_TRUE='#'
11511 am__fastdepCXX_FALSE=
11515 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11516 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11517 (test "X$CXX" != "Xg++"))) ; then
11518 ac_ext=cpp
11519 ac_cpp='$CXXCPP $CPPFLAGS'
11520 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11521 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11522 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
11524 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
11525 if test -z "$CXXCPP"; then
11526 if ${ac_cv_prog_CXXCPP+:} false; then :
11527 $as_echo_n "(cached) " >&6
11528 else
11529 # Double quotes because CXXCPP needs to be expanded
11530 for CXXCPP in "$CXX -E" "/lib/cpp"
11532 ac_preproc_ok=false
11533 for ac_cxx_preproc_warn_flag in '' yes
11535 # Use a header file that comes with gcc, so configuring glibc
11536 # with a fresh cross-compiler works.
11537 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11538 # <limits.h> exists even on freestanding compilers.
11539 # On the NeXT, cc -E runs the code through the compiler's parser,
11540 # not just through cpp. "Syntax error" is here to catch this case.
11541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11542 /* end confdefs.h. */
11543 #ifdef __STDC__
11544 # include <limits.h>
11545 #else
11546 # include <assert.h>
11547 #endif
11548 Syntax error
11549 _ACEOF
11550 if ac_fn_cxx_try_cpp "$LINENO"; then :
11552 else
11553 # Broken: fails on valid input.
11554 continue
11556 rm -f conftest.err conftest.i conftest.$ac_ext
11558 # OK, works on sane cases. Now check whether nonexistent headers
11559 # can be detected and how.
11560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11561 /* end confdefs.h. */
11562 #include <ac_nonexistent.h>
11563 _ACEOF
11564 if ac_fn_cxx_try_cpp "$LINENO"; then :
11565 # Broken: success on invalid input.
11566 continue
11567 else
11568 # Passes both tests.
11569 ac_preproc_ok=:
11570 break
11572 rm -f conftest.err conftest.i conftest.$ac_ext
11574 done
11575 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11576 rm -f conftest.i conftest.err conftest.$ac_ext
11577 if $ac_preproc_ok; then :
11578 break
11581 done
11582 ac_cv_prog_CXXCPP=$CXXCPP
11585 CXXCPP=$ac_cv_prog_CXXCPP
11586 else
11587 ac_cv_prog_CXXCPP=$CXXCPP
11589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
11590 $as_echo "$CXXCPP" >&6; }
11591 ac_preproc_ok=false
11592 for ac_cxx_preproc_warn_flag in '' yes
11594 # Use a header file that comes with gcc, so configuring glibc
11595 # with a fresh cross-compiler works.
11596 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11597 # <limits.h> exists even on freestanding compilers.
11598 # On the NeXT, cc -E runs the code through the compiler's parser,
11599 # not just through cpp. "Syntax error" is here to catch this case.
11600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11601 /* end confdefs.h. */
11602 #ifdef __STDC__
11603 # include <limits.h>
11604 #else
11605 # include <assert.h>
11606 #endif
11607 Syntax error
11608 _ACEOF
11609 if ac_fn_cxx_try_cpp "$LINENO"; then :
11611 else
11612 # Broken: fails on valid input.
11613 continue
11615 rm -f conftest.err conftest.i conftest.$ac_ext
11617 # OK, works on sane cases. Now check whether nonexistent headers
11618 # can be detected and how.
11619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11620 /* end confdefs.h. */
11621 #include <ac_nonexistent.h>
11622 _ACEOF
11623 if ac_fn_cxx_try_cpp "$LINENO"; then :
11624 # Broken: success on invalid input.
11625 continue
11626 else
11627 # Passes both tests.
11628 ac_preproc_ok=:
11629 break
11631 rm -f conftest.err conftest.i conftest.$ac_ext
11633 done
11634 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11635 rm -f conftest.i conftest.err conftest.$ac_ext
11636 if $ac_preproc_ok; then :
11638 else
11639 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11640 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11641 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
11642 See \`config.log' for more details" "$LINENO" 5; }
11645 ac_ext=c
11646 ac_cpp='$CPP $CPPFLAGS'
11647 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11648 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11649 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11651 else
11652 _lt_caught_CXX_error=yes
11655 ac_ext=cpp
11656 ac_cpp='$CXXCPP $CPPFLAGS'
11657 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11658 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11659 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11661 archive_cmds_need_lc_CXX=no
11662 allow_undefined_flag_CXX=
11663 always_export_symbols_CXX=no
11664 archive_expsym_cmds_CXX=
11665 compiler_needs_object_CXX=no
11666 export_dynamic_flag_spec_CXX=
11667 hardcode_direct_CXX=no
11668 hardcode_direct_absolute_CXX=no
11669 hardcode_libdir_flag_spec_CXX=
11670 hardcode_libdir_flag_spec_ld_CXX=
11671 hardcode_libdir_separator_CXX=
11672 hardcode_minus_L_CXX=no
11673 hardcode_shlibpath_var_CXX=unsupported
11674 hardcode_automatic_CXX=no
11675 inherit_rpath_CXX=no
11676 module_cmds_CXX=
11677 module_expsym_cmds_CXX=
11678 link_all_deplibs_CXX=unknown
11679 old_archive_cmds_CXX=$old_archive_cmds
11680 reload_flag_CXX=$reload_flag
11681 reload_cmds_CXX=$reload_cmds
11682 no_undefined_flag_CXX=
11683 whole_archive_flag_spec_CXX=
11684 enable_shared_with_static_runtimes_CXX=no
11686 # Source file extension for C++ test sources.
11687 ac_ext=cpp
11689 # Object file extension for compiled C++ test sources.
11690 objext=o
11691 objext_CXX=$objext
11693 # No sense in running all these tests if we already determined that
11694 # the CXX compiler isn't working. Some variables (like enable_shared)
11695 # are currently assumed to apply to all compilers on this platform,
11696 # and will be corrupted by setting them based on a non-working compiler.
11697 if test "$_lt_caught_CXX_error" != yes; then
11698 # Code to be used in simple compile tests
11699 lt_simple_compile_test_code="int some_variable = 0;"
11701 # Code to be used in simple link tests
11702 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11704 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11711 # If no C compiler was specified, use CC.
11712 LTCC=${LTCC-"$CC"}
11714 # If no C compiler flags were specified, use CFLAGS.
11715 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11717 # Allow CC to be a program name with arguments.
11718 compiler=$CC
11721 # save warnings/boilerplate of simple test code
11722 ac_outfile=conftest.$ac_objext
11723 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11724 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11725 _lt_compiler_boilerplate=`cat conftest.err`
11726 $RM conftest*
11728 ac_outfile=conftest.$ac_objext
11729 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11730 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11731 _lt_linker_boilerplate=`cat conftest.err`
11732 $RM -r conftest*
11735 # Allow CC to be a program name with arguments.
11736 lt_save_CC=$CC
11737 lt_save_LD=$LD
11738 lt_save_GCC=$GCC
11739 GCC=$GXX
11740 lt_save_with_gnu_ld=$with_gnu_ld
11741 lt_save_path_LD=$lt_cv_path_LD
11742 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11743 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11744 else
11745 $as_unset lt_cv_prog_gnu_ld
11747 if test -n "${lt_cv_path_LDCXX+set}"; then
11748 lt_cv_path_LD=$lt_cv_path_LDCXX
11749 else
11750 $as_unset lt_cv_path_LD
11752 test -z "${LDCXX+set}" || LD=$LDCXX
11753 CC=${CXX-"c++"}
11754 compiler=$CC
11755 compiler_CXX=$CC
11756 for cc_temp in $compiler""; do
11757 case $cc_temp in
11758 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11759 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11760 \-*) ;;
11761 *) break;;
11762 esac
11763 done
11764 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
11767 if test -n "$compiler"; then
11768 # We don't want -fno-exception when compiling C++ code, so set the
11769 # no_builtin_flag separately
11770 if test "$GXX" = yes; then
11771 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11772 else
11773 lt_prog_compiler_no_builtin_flag_CXX=
11776 if test "$GXX" = yes; then
11777 # Set up default GNU C++ configuration
11781 # Check whether --with-gnu-ld was given.
11782 if test "${with_gnu_ld+set}" = set; then :
11783 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11784 else
11785 with_gnu_ld=no
11788 ac_prog=ld
11789 if test "$GCC" = yes; then
11790 # Check if gcc -print-prog-name=ld gives a path.
11791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
11792 $as_echo_n "checking for ld used by $CC... " >&6; }
11793 case $host in
11794 *-*-mingw*)
11795 # gcc leaves a trailing carriage return which upsets mingw
11796 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11798 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11799 esac
11800 case $ac_prog in
11801 # Accept absolute paths.
11802 [\\/]* | ?:[\\/]*)
11803 re_direlt='/[^/][^/]*/\.\./'
11804 # Canonicalize the pathname of ld
11805 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
11806 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
11807 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
11808 done
11809 test -z "$LD" && LD="$ac_prog"
11812 # If it fails, then pretend we aren't using GCC.
11813 ac_prog=ld
11816 # If it is relative, then search for the first ld in PATH.
11817 with_gnu_ld=unknown
11819 esac
11820 elif test "$with_gnu_ld" = yes; then
11821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11822 $as_echo_n "checking for GNU ld... " >&6; }
11823 else
11824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11825 $as_echo_n "checking for non-GNU ld... " >&6; }
11827 if ${lt_cv_path_LD+:} false; then :
11828 $as_echo_n "(cached) " >&6
11829 else
11830 if test -z "$LD"; then
11831 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11832 for ac_dir in $PATH; do
11833 IFS="$lt_save_ifs"
11834 test -z "$ac_dir" && ac_dir=.
11835 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11836 lt_cv_path_LD="$ac_dir/$ac_prog"
11837 # Check to see if the program is GNU ld. I'd rather use --version,
11838 # but apparently some variants of GNU ld only accept -v.
11839 # Break only if it was the GNU/non-GNU ld that we prefer.
11840 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11841 *GNU* | *'with BFD'*)
11842 test "$with_gnu_ld" != no && break
11845 test "$with_gnu_ld" != yes && break
11847 esac
11849 done
11850 IFS="$lt_save_ifs"
11851 else
11852 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11856 LD="$lt_cv_path_LD"
11857 if test -n "$LD"; then
11858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11859 $as_echo "$LD" >&6; }
11860 else
11861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11862 $as_echo "no" >&6; }
11864 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
11865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11866 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11867 if ${lt_cv_prog_gnu_ld+:} false; then :
11868 $as_echo_n "(cached) " >&6
11869 else
11870 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11871 case `$LD -v 2>&1 </dev/null` in
11872 *GNU* | *'with BFD'*)
11873 lt_cv_prog_gnu_ld=yes
11876 lt_cv_prog_gnu_ld=no
11878 esac
11880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
11881 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
11882 with_gnu_ld=$lt_cv_prog_gnu_ld
11890 # Check if GNU C++ uses GNU ld as the underlying linker, since the
11891 # archiving commands below assume that GNU ld is being used.
11892 if test "$with_gnu_ld" = yes; then
11893 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11894 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'
11896 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11897 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11899 # If archive_cmds runs LD, not CC, wlarc should be empty
11900 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11901 # investigate it a little bit more. (MM)
11902 wlarc='${wl}'
11904 # ancient GNU ld didn't support --whole-archive et. al.
11905 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
11906 $GREP 'no-whole-archive' > /dev/null; then
11907 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11908 else
11909 whole_archive_flag_spec_CXX=
11911 else
11912 with_gnu_ld=no
11913 wlarc=
11915 # A generic and very simple default shared library creation
11916 # command for GNU C++ for the case where it uses the native
11917 # linker, instead of GNU ld. If possible, this setting should
11918 # overridden to take advantage of the native linker features on
11919 # the platform it is being used on.
11920 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11923 # Commands to make compiler produce verbose output that lists
11924 # what "hidden" libraries, object files and flags are used when
11925 # linking a shared library.
11926 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
11928 else
11929 GXX=no
11930 with_gnu_ld=no
11931 wlarc=
11934 # PORTME: fill in a description of your system's C++ link characteristics
11935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11936 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11937 ld_shlibs_CXX=yes
11938 case $host_os in
11939 aix3*)
11940 # FIXME: insert proper C++ library support
11941 ld_shlibs_CXX=no
11943 aix[4-9]*)
11944 if test "$host_cpu" = ia64; then
11945 # On IA64, the linker does run time linking by default, so we don't
11946 # have to do anything special.
11947 aix_use_runtimelinking=no
11948 exp_sym_flag='-Bexport'
11949 no_entry_flag=""
11950 else
11951 aix_use_runtimelinking=no
11953 # Test if we are trying to use run time linking or normal
11954 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11955 # need to do runtime linking.
11956 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11957 for ld_flag in $LDFLAGS; do
11958 case $ld_flag in
11959 *-brtl*)
11960 aix_use_runtimelinking=yes
11961 break
11963 esac
11964 done
11966 esac
11968 exp_sym_flag='-bexport'
11969 no_entry_flag='-bnoentry'
11972 # When large executables or shared objects are built, AIX ld can
11973 # have problems creating the table of contents. If linking a library
11974 # or program results in "error TOC overflow" add -mminimal-toc to
11975 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11976 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11978 archive_cmds_CXX=''
11979 hardcode_direct_CXX=yes
11980 hardcode_direct_absolute_CXX=yes
11981 hardcode_libdir_separator_CXX=':'
11982 link_all_deplibs_CXX=yes
11983 file_list_spec_CXX='${wl}-f,'
11985 if test "$GXX" = yes; then
11986 case $host_os in aix4.[012]|aix4.[012].*)
11987 # We only want to do this on AIX 4.2 and lower, the check
11988 # below for broken collect2 doesn't work under 4.3+
11989 collect2name=`${CC} -print-prog-name=collect2`
11990 if test -f "$collect2name" &&
11991 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11992 then
11993 # We have reworked collect2
11995 else
11996 # We have old collect2
11997 hardcode_direct_CXX=unsupported
11998 # It fails to find uninstalled libraries when the uninstalled
11999 # path is not listed in the libpath. Setting hardcode_minus_L
12000 # to unsupported forces relinking
12001 hardcode_minus_L_CXX=yes
12002 hardcode_libdir_flag_spec_CXX='-L$libdir'
12003 hardcode_libdir_separator_CXX=
12005 esac
12006 shared_flag='-shared'
12007 if test "$aix_use_runtimelinking" = yes; then
12008 shared_flag="$shared_flag "'${wl}-G'
12010 else
12011 # not using gcc
12012 if test "$host_cpu" = ia64; then
12013 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12014 # chokes on -Wl,-G. The following line is correct:
12015 shared_flag='-G'
12016 else
12017 if test "$aix_use_runtimelinking" = yes; then
12018 shared_flag='${wl}-G'
12019 else
12020 shared_flag='${wl}-bM:SRE'
12025 export_dynamic_flag_spec_CXX='${wl}-bexpall'
12026 # It seems that -bexpall does not export symbols beginning with
12027 # underscore (_), so it is better to generate a list of symbols to
12028 # export.
12029 always_export_symbols_CXX=yes
12030 if test "$aix_use_runtimelinking" = yes; then
12031 # Warning - without using the other runtime loading flags (-brtl),
12032 # -berok will link without error, but may produce a broken library.
12033 allow_undefined_flag_CXX='-berok'
12034 # Determine the default libpath from the value encoded in an empty
12035 # executable.
12036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12037 /* end confdefs.h. */
12040 main ()
12044 return 0;
12046 _ACEOF
12047 if ac_fn_cxx_try_link "$LINENO"; then :
12049 lt_aix_libpath_sed='
12050 /Import File Strings/,/^$/ {
12051 /^0/ {
12052 s/^0 *\(.*\)$/\1/
12056 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12057 # Check for a 64-bit object if we didn't find anything.
12058 if test -z "$aix_libpath"; then
12059 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12062 rm -f core conftest.err conftest.$ac_objext \
12063 conftest$ac_exeext conftest.$ac_ext
12064 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12066 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12068 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"
12069 else
12070 if test "$host_cpu" = ia64; then
12071 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12072 allow_undefined_flag_CXX="-z nodefs"
12073 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"
12074 else
12075 # Determine the default libpath from the value encoded in an
12076 # empty executable.
12077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12078 /* end confdefs.h. */
12081 main ()
12085 return 0;
12087 _ACEOF
12088 if ac_fn_cxx_try_link "$LINENO"; then :
12090 lt_aix_libpath_sed='
12091 /Import File Strings/,/^$/ {
12092 /^0/ {
12093 s/^0 *\(.*\)$/\1/
12097 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12098 # Check for a 64-bit object if we didn't find anything.
12099 if test -z "$aix_libpath"; then
12100 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12103 rm -f core conftest.err conftest.$ac_objext \
12104 conftest$ac_exeext conftest.$ac_ext
12105 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12107 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12108 # Warning - without using the other run time loading flags,
12109 # -berok will link without error, but may produce a broken library.
12110 no_undefined_flag_CXX=' ${wl}-bernotok'
12111 allow_undefined_flag_CXX=' ${wl}-berok'
12112 if test "$with_gnu_ld" = yes; then
12113 # We only use this code for GNU lds that support --whole-archive.
12114 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12115 else
12116 # Exported symbols can be pulled into shared objects from archives
12117 whole_archive_flag_spec_CXX='$convenience'
12119 archive_cmds_need_lc_CXX=yes
12120 # This is similar to how AIX traditionally builds its shared
12121 # libraries.
12122 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'
12127 beos*)
12128 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12129 allow_undefined_flag_CXX=unsupported
12130 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12131 # support --undefined. This deserves some investigation. FIXME
12132 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12133 else
12134 ld_shlibs_CXX=no
12138 chorus*)
12139 case $cc_basename in
12141 # FIXME: insert proper C++ library support
12142 ld_shlibs_CXX=no
12144 esac
12147 cygwin* | mingw* | pw32* | cegcc*)
12148 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12149 # as there is no search path for DLLs.
12150 hardcode_libdir_flag_spec_CXX='-L$libdir'
12151 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
12152 allow_undefined_flag_CXX=unsupported
12153 always_export_symbols_CXX=no
12154 enable_shared_with_static_runtimes_CXX=yes
12156 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12157 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'
12158 # If the export-symbols file already is a .def file (1st line
12159 # is EXPORTS), use it as is; otherwise, prepend...
12160 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12161 cp $export_symbols $output_objdir/$soname.def;
12162 else
12163 echo EXPORTS > $output_objdir/$soname.def;
12164 cat $export_symbols >> $output_objdir/$soname.def;
12166 $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'
12167 else
12168 ld_shlibs_CXX=no
12171 darwin* | rhapsody*)
12174 archive_cmds_need_lc_CXX=no
12175 hardcode_direct_CXX=no
12176 hardcode_automatic_CXX=yes
12177 hardcode_shlibpath_var_CXX=unsupported
12178 if test "$lt_cv_ld_force_load" = "yes"; then
12179 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\"`'
12180 else
12181 whole_archive_flag_spec_CXX=''
12183 link_all_deplibs_CXX=yes
12184 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12185 case $cc_basename in
12186 ifort*) _lt_dar_can_shared=yes ;;
12187 *) _lt_dar_can_shared=$GCC ;;
12188 esac
12189 if test "$_lt_dar_can_shared" = "yes"; then
12190 output_verbose_link_cmd=func_echo_all
12191 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}"
12192 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12193 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}"
12194 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}"
12195 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12196 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}"
12197 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}"
12200 else
12201 ld_shlibs_CXX=no
12206 dgux*)
12207 case $cc_basename in
12208 ec++*)
12209 # FIXME: insert proper C++ library support
12210 ld_shlibs_CXX=no
12212 ghcx*)
12213 # Green Hills C++ Compiler
12214 # FIXME: insert proper C++ library support
12215 ld_shlibs_CXX=no
12218 # FIXME: insert proper C++ library support
12219 ld_shlibs_CXX=no
12221 esac
12224 freebsd2.*)
12225 # C++ shared libraries reported to be fairly broken before
12226 # switch to ELF
12227 ld_shlibs_CXX=no
12230 freebsd-elf*)
12231 archive_cmds_need_lc_CXX=no
12234 freebsd* | dragonfly*)
12235 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12236 # conventions
12237 ld_shlibs_CXX=yes
12240 gnu*)
12243 haiku*)
12244 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12245 link_all_deplibs_CXX=yes
12248 hpux9*)
12249 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12250 hardcode_libdir_separator_CXX=:
12251 export_dynamic_flag_spec_CXX='${wl}-E'
12252 hardcode_direct_CXX=yes
12253 hardcode_minus_L_CXX=yes # Not in the search PATH,
12254 # but as the default
12255 # location of the library.
12257 case $cc_basename in
12258 CC*)
12259 # FIXME: insert proper C++ library support
12260 ld_shlibs_CXX=no
12262 aCC*)
12263 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'
12264 # Commands to make compiler produce verbose output that lists
12265 # what "hidden" libraries, object files and flags are used when
12266 # linking a shared library.
12268 # There doesn't appear to be a way to prevent this compiler from
12269 # explicitly linking system object files so we need to strip them
12270 # from the output so that they don't get included in the library
12271 # dependencies.
12272 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"'
12275 if test "$GXX" = yes; then
12276 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'
12277 else
12278 # FIXME: insert proper C++ library support
12279 ld_shlibs_CXX=no
12282 esac
12285 hpux10*|hpux11*)
12286 if test $with_gnu_ld = no; then
12287 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12288 hardcode_libdir_separator_CXX=:
12290 case $host_cpu in
12291 hppa*64*|ia64*)
12294 export_dynamic_flag_spec_CXX='${wl}-E'
12296 esac
12298 case $host_cpu in
12299 hppa*64*|ia64*)
12300 hardcode_direct_CXX=no
12301 hardcode_shlibpath_var_CXX=no
12304 hardcode_direct_CXX=yes
12305 hardcode_direct_absolute_CXX=yes
12306 hardcode_minus_L_CXX=yes # Not in the search PATH,
12307 # but as the default
12308 # location of the library.
12310 esac
12312 case $cc_basename in
12313 CC*)
12314 # FIXME: insert proper C++ library support
12315 ld_shlibs_CXX=no
12317 aCC*)
12318 case $host_cpu in
12319 hppa*64*)
12320 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12322 ia64*)
12323 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12326 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12328 esac
12329 # Commands to make compiler produce verbose output that lists
12330 # what "hidden" libraries, object files and flags are used when
12331 # linking a shared library.
12333 # There doesn't appear to be a way to prevent this compiler from
12334 # explicitly linking system object files so we need to strip them
12335 # from the output so that they don't get included in the library
12336 # dependencies.
12337 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"'
12340 if test "$GXX" = yes; then
12341 if test $with_gnu_ld = no; then
12342 case $host_cpu in
12343 hppa*64*)
12344 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12346 ia64*)
12347 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12350 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'
12352 esac
12354 else
12355 # FIXME: insert proper C++ library support
12356 ld_shlibs_CXX=no
12359 esac
12362 interix[3-9]*)
12363 hardcode_direct_CXX=no
12364 hardcode_shlibpath_var_CXX=no
12365 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12366 export_dynamic_flag_spec_CXX='${wl}-E'
12367 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12368 # Instead, shared libraries are loaded at an image base (0x10000000 by
12369 # default) and relocated if they conflict, which is a slow very memory
12370 # consuming and fragmenting process. To avoid this, we pick a random,
12371 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12372 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12373 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'
12374 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'
12376 irix5* | irix6*)
12377 case $cc_basename in
12378 CC*)
12379 # SGI C++
12380 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'
12382 # Archives containing C++ object files must be created using
12383 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12384 # necessary to make sure instantiated templates are included
12385 # in the archive.
12386 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12389 if test "$GXX" = yes; then
12390 if test "$with_gnu_ld" = no; then
12391 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'
12392 else
12393 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'
12396 link_all_deplibs_CXX=yes
12398 esac
12399 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12400 hardcode_libdir_separator_CXX=:
12401 inherit_rpath_CXX=yes
12404 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12405 case $cc_basename in
12406 KCC*)
12407 # Kuck and Associates, Inc. (KAI) C++ Compiler
12409 # KCC will only create a shared library if the output file
12410 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12411 # to its proper name (with version) after linking.
12412 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'
12413 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'
12414 # Commands to make compiler produce verbose output that lists
12415 # what "hidden" libraries, object files and flags are used when
12416 # linking a shared library.
12418 # There doesn't appear to be a way to prevent this compiler from
12419 # explicitly linking system object files so we need to strip them
12420 # from the output so that they don't get included in the library
12421 # dependencies.
12422 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"'
12424 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12425 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12427 # Archives containing C++ object files must be created using
12428 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12429 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12431 icpc* | ecpc* )
12432 # Intel C++
12433 with_gnu_ld=yes
12434 # version 8.0 and above of icpc choke on multiply defined symbols
12435 # if we add $predep_objects and $postdep_objects, however 7.1 and
12436 # earlier do not add the objects themselves.
12437 case `$CC -V 2>&1` in
12438 *"Version 7."*)
12439 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12440 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'
12442 *) # Version 8.0 or newer
12443 tmp_idyn=
12444 case $host_cpu in
12445 ia64*) tmp_idyn=' -i_dynamic';;
12446 esac
12447 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12448 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'
12450 esac
12451 archive_cmds_need_lc_CXX=no
12452 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12453 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12454 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12456 pgCC* | pgcpp*)
12457 # Portland Group C++ compiler
12458 case `$CC -V` in
12459 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
12460 prelink_cmds_CXX='tpldir=Template.dir~
12461 rm -rf $tpldir~
12462 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
12463 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
12464 old_archive_cmds_CXX='tpldir=Template.dir~
12465 rm -rf $tpldir~
12466 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
12467 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
12468 $RANLIB $oldlib'
12469 archive_cmds_CXX='tpldir=Template.dir~
12470 rm -rf $tpldir~
12471 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12472 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12473 archive_expsym_cmds_CXX='tpldir=Template.dir~
12474 rm -rf $tpldir~
12475 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12476 $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'
12478 *) # Version 6 and above use weak symbols
12479 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12480 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'
12482 esac
12484 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12485 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12486 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'
12488 cxx*)
12489 # Compaq C++
12490 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12491 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'
12493 runpath_var=LD_RUN_PATH
12494 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12495 hardcode_libdir_separator_CXX=:
12497 # Commands to make compiler produce verbose output that lists
12498 # what "hidden" libraries, object files and flags are used when
12499 # linking a shared library.
12501 # There doesn't appear to be a way to prevent this compiler from
12502 # explicitly linking system object files so we need to strip them
12503 # from the output so that they don't get included in the library
12504 # dependencies.
12505 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'
12507 xl* | mpixl* | bgxl*)
12508 # IBM XL 8.0 on PPC, with GNU ld
12509 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12510 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12511 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12512 if test "x$supports_anon_versioning" = xyes; then
12513 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
12514 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12515 echo "local: *; };" >> $output_objdir/$libname.ver~
12516 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12520 case `$CC -V 2>&1 | sed 5q` in
12521 *Sun\ C*)
12522 # Sun C++ 5.9
12523 no_undefined_flag_CXX=' -zdefs'
12524 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12525 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'
12526 hardcode_libdir_flag_spec_CXX='-R$libdir'
12527 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'
12528 compiler_needs_object_CXX=yes
12530 # Not sure whether something based on
12531 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12532 # would be better.
12533 output_verbose_link_cmd='func_echo_all'
12535 # Archives containing C++ object files must be created using
12536 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12537 # necessary to make sure instantiated templates are included
12538 # in the archive.
12539 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12541 esac
12543 esac
12546 lynxos*)
12547 # FIXME: insert proper C++ library support
12548 ld_shlibs_CXX=no
12551 m88k*)
12552 # FIXME: insert proper C++ library support
12553 ld_shlibs_CXX=no
12556 mvs*)
12557 case $cc_basename in
12558 cxx*)
12559 # FIXME: insert proper C++ library support
12560 ld_shlibs_CXX=no
12563 # FIXME: insert proper C++ library support
12564 ld_shlibs_CXX=no
12566 esac
12569 netbsd*)
12570 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12571 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12572 wlarc=
12573 hardcode_libdir_flag_spec_CXX='-R$libdir'
12574 hardcode_direct_CXX=yes
12575 hardcode_shlibpath_var_CXX=no
12577 # Workaround some broken pre-1.5 toolchains
12578 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12581 *nto* | *qnx*)
12582 ld_shlibs_CXX=yes
12585 openbsd2*)
12586 # C++ shared libraries are fairly broken
12587 ld_shlibs_CXX=no
12590 openbsd*)
12591 if test -f /usr/libexec/ld.so; then
12592 hardcode_direct_CXX=yes
12593 hardcode_shlibpath_var_CXX=no
12594 hardcode_direct_absolute_CXX=yes
12595 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12596 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12597 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12598 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12599 export_dynamic_flag_spec_CXX='${wl}-E'
12600 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12602 output_verbose_link_cmd=func_echo_all
12603 else
12604 ld_shlibs_CXX=no
12608 osf3* | osf4* | osf5*)
12609 case $cc_basename in
12610 KCC*)
12611 # Kuck and Associates, Inc. (KAI) C++ Compiler
12613 # KCC will only create a shared library if the output file
12614 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12615 # to its proper name (with version) after linking.
12616 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'
12618 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12619 hardcode_libdir_separator_CXX=:
12621 # Archives containing C++ object files must be created using
12622 # the KAI C++ compiler.
12623 case $host in
12624 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
12625 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
12626 esac
12628 RCC*)
12629 # Rational C++ 2.4.1
12630 # FIXME: insert proper C++ library support
12631 ld_shlibs_CXX=no
12633 cxx*)
12634 case $host in
12635 osf3*)
12636 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12637 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'
12638 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12641 allow_undefined_flag_CXX=' -expect_unresolved \*'
12642 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'
12643 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12644 echo "-hidden">> $lib.exp~
12645 $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~
12646 $RM $lib.exp'
12647 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12649 esac
12651 hardcode_libdir_separator_CXX=:
12653 # Commands to make compiler produce verbose output that lists
12654 # what "hidden" libraries, object files and flags are used when
12655 # linking a shared library.
12657 # There doesn't appear to be a way to prevent this compiler from
12658 # explicitly linking system object files so we need to strip them
12659 # from the output so that they don't get included in the library
12660 # dependencies.
12661 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"'
12664 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12665 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12666 case $host in
12667 osf3*)
12668 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'
12671 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'
12673 esac
12675 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12676 hardcode_libdir_separator_CXX=:
12678 # Commands to make compiler produce verbose output that lists
12679 # what "hidden" libraries, object files and flags are used when
12680 # linking a shared library.
12681 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12683 else
12684 # FIXME: insert proper C++ library support
12685 ld_shlibs_CXX=no
12688 esac
12691 psos*)
12692 # FIXME: insert proper C++ library support
12693 ld_shlibs_CXX=no
12696 sunos4*)
12697 case $cc_basename in
12698 CC*)
12699 # Sun C++ 4.x
12700 # FIXME: insert proper C++ library support
12701 ld_shlibs_CXX=no
12703 lcc*)
12704 # Lucid
12705 # FIXME: insert proper C++ library support
12706 ld_shlibs_CXX=no
12709 # FIXME: insert proper C++ library support
12710 ld_shlibs_CXX=no
12712 esac
12715 solaris*)
12716 case $cc_basename in
12717 CC*)
12718 # Sun C++ 4.2, 5.x and Centerline C++
12719 archive_cmds_need_lc_CXX=yes
12720 no_undefined_flag_CXX=' -zdefs'
12721 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12722 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12723 $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'
12725 hardcode_libdir_flag_spec_CXX='-R$libdir'
12726 hardcode_shlibpath_var_CXX=no
12727 case $host_os in
12728 solaris2.[0-5] | solaris2.[0-5].*) ;;
12730 # The compiler driver will combine and reorder linker options,
12731 # but understands `-z linker_flag'.
12732 # Supported since Solaris 2.6 (maybe 2.5.1?)
12733 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12735 esac
12736 link_all_deplibs_CXX=yes
12738 output_verbose_link_cmd='func_echo_all'
12740 # Archives containing C++ object files must be created using
12741 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12742 # necessary to make sure instantiated templates are included
12743 # in the archive.
12744 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12746 gcx*)
12747 # Green Hills C++ Compiler
12748 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12750 # The C++ compiler must be used to create the archive.
12751 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12754 # GNU C++ compiler with Solaris linker
12755 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12756 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12757 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
12758 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12759 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12760 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
12762 # Commands to make compiler produce verbose output that lists
12763 # what "hidden" libraries, object files and flags are used when
12764 # linking a shared library.
12765 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12766 else
12767 # g++ 2.7 appears to require `-G' NOT `-shared' on this
12768 # platform.
12769 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12770 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12771 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
12773 # Commands to make compiler produce verbose output that lists
12774 # what "hidden" libraries, object files and flags are used when
12775 # linking a shared library.
12776 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12779 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12780 case $host_os in
12781 solaris2.[0-5] | solaris2.[0-5].*) ;;
12783 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12785 esac
12788 esac
12791 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12792 no_undefined_flag_CXX='${wl}-z,text'
12793 archive_cmds_need_lc_CXX=no
12794 hardcode_shlibpath_var_CXX=no
12795 runpath_var='LD_RUN_PATH'
12797 case $cc_basename in
12798 CC*)
12799 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12800 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12803 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12804 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12806 esac
12809 sysv5* | sco3.2v5* | sco5v6*)
12810 # Note: We can NOT use -z defs as we might desire, because we do not
12811 # link with -lc, and that would cause any symbols used from libc to
12812 # always be unresolved, which means just about no library would
12813 # ever link correctly. If we're not using GNU ld we use -z text
12814 # though, which does catch some bad symbols but isn't as heavy-handed
12815 # as -z defs.
12816 no_undefined_flag_CXX='${wl}-z,text'
12817 allow_undefined_flag_CXX='${wl}-z,nodefs'
12818 archive_cmds_need_lc_CXX=no
12819 hardcode_shlibpath_var_CXX=no
12820 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
12821 hardcode_libdir_separator_CXX=':'
12822 link_all_deplibs_CXX=yes
12823 export_dynamic_flag_spec_CXX='${wl}-Bexport'
12824 runpath_var='LD_RUN_PATH'
12826 case $cc_basename in
12827 CC*)
12828 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12829 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12830 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
12831 '"$old_archive_cmds_CXX"
12832 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
12833 '"$reload_cmds_CXX"
12836 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12837 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12839 esac
12842 tandem*)
12843 case $cc_basename in
12844 NCC*)
12845 # NonStop-UX NCC 3.20
12846 # FIXME: insert proper C++ library support
12847 ld_shlibs_CXX=no
12850 # FIXME: insert proper C++ library support
12851 ld_shlibs_CXX=no
12853 esac
12856 vxworks*)
12857 # FIXME: insert proper C++ library support
12858 ld_shlibs_CXX=no
12862 # FIXME: insert proper C++ library support
12863 ld_shlibs_CXX=no
12865 esac
12867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
12868 $as_echo "$ld_shlibs_CXX" >&6; }
12869 test "$ld_shlibs_CXX" = no && can_build_shared=no
12871 GCC_CXX="$GXX"
12872 LD_CXX="$LD"
12874 ## CAVEAT EMPTOR:
12875 ## There is no encapsulation within the following macros, do not change
12876 ## the running order or otherwise move them around unless you know exactly
12877 ## what you are doing...
12878 # Dependencies to place before and after the object being linked:
12879 predep_objects_CXX=
12880 postdep_objects_CXX=
12881 predeps_CXX=
12882 postdeps_CXX=
12883 compiler_lib_search_path_CXX=
12885 cat > conftest.$ac_ext <<_LT_EOF
12886 class Foo
12888 public:
12889 Foo (void) { a = 0; }
12890 private:
12891 int a;
12893 _LT_EOF
12895 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12896 (eval $ac_compile) 2>&5
12897 ac_status=$?
12898 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12899 test $ac_status = 0; }; then
12900 # Parse the compiler output and extract the necessary
12901 # objects, libraries and library flags.
12903 # Sentinel used to keep track of whether or not we are before
12904 # the conftest object file.
12905 pre_test_object_deps_done=no
12907 for p in `eval "$output_verbose_link_cmd"`; do
12908 case $p in
12910 -L* | -R* | -l*)
12911 # Some compilers place space between "-{L,R}" and the path.
12912 # Remove the space.
12913 if test $p = "-L" ||
12914 test $p = "-R"; then
12915 prev=$p
12916 continue
12917 else
12918 prev=
12921 if test "$pre_test_object_deps_done" = no; then
12922 case $p in
12923 -L* | -R*)
12924 # Internal compiler library paths should come after those
12925 # provided the user. The postdeps already come after the
12926 # user supplied libs so there is no need to process them.
12927 if test -z "$compiler_lib_search_path_CXX"; then
12928 compiler_lib_search_path_CXX="${prev}${p}"
12929 else
12930 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12933 # The "-l" case would never come before the object being
12934 # linked, so don't bother handling this case.
12935 esac
12936 else
12937 if test -z "$postdeps_CXX"; then
12938 postdeps_CXX="${prev}${p}"
12939 else
12940 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12945 *.$objext)
12946 # This assumes that the test object file only shows up
12947 # once in the compiler output.
12948 if test "$p" = "conftest.$objext"; then
12949 pre_test_object_deps_done=yes
12950 continue
12953 if test "$pre_test_object_deps_done" = no; then
12954 if test -z "$predep_objects_CXX"; then
12955 predep_objects_CXX="$p"
12956 else
12957 predep_objects_CXX="$predep_objects_CXX $p"
12959 else
12960 if test -z "$postdep_objects_CXX"; then
12961 postdep_objects_CXX="$p"
12962 else
12963 postdep_objects_CXX="$postdep_objects_CXX $p"
12968 *) ;; # Ignore the rest.
12970 esac
12971 done
12973 # Clean up.
12974 rm -f a.out a.exe
12975 else
12976 echo "libtool.m4: error: problem compiling CXX test program"
12979 $RM -f confest.$objext
12981 # PORTME: override above test on systems where it is broken
12982 case $host_os in
12983 interix[3-9]*)
12984 # Interix 3.5 installs completely hosed .la files for C++, so rather than
12985 # hack all around it, let's just trust "g++" to DTRT.
12986 predep_objects_CXX=
12987 postdep_objects_CXX=
12988 postdeps_CXX=
12991 linux*)
12992 case `$CC -V 2>&1 | sed 5q` in
12993 *Sun\ C*)
12994 # Sun C++ 5.9
12996 # The more standards-conforming stlport4 library is
12997 # incompatible with the Cstd library. Avoid specifying
12998 # it if it's in CXXFLAGS. Ignore libCrun as
12999 # -library=stlport4 depends on it.
13000 case " $CXX $CXXFLAGS " in
13001 *" -library=stlport4 "*)
13002 solaris_use_stlport4=yes
13004 esac
13006 if test "$solaris_use_stlport4" != yes; then
13007 postdeps_CXX='-library=Cstd -library=Crun'
13010 esac
13013 solaris*)
13014 case $cc_basename in
13015 CC*)
13016 # The more standards-conforming stlport4 library is
13017 # incompatible with the Cstd library. Avoid specifying
13018 # it if it's in CXXFLAGS. Ignore libCrun as
13019 # -library=stlport4 depends on it.
13020 case " $CXX $CXXFLAGS " in
13021 *" -library=stlport4 "*)
13022 solaris_use_stlport4=yes
13024 esac
13026 # Adding this requires a known-good setup of shared libraries for
13027 # Sun compiler versions before 5.6, else PIC objects from an old
13028 # archive will be linked into the output, leading to subtle bugs.
13029 if test "$solaris_use_stlport4" != yes; then
13030 postdeps_CXX='-library=Cstd -library=Crun'
13033 esac
13035 esac
13038 case " $postdeps_CXX " in
13039 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13040 esac
13041 compiler_lib_search_dirs_CXX=
13042 if test -n "${compiler_lib_search_path_CXX}"; then
13043 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13076 lt_prog_compiler_wl_CXX=
13077 lt_prog_compiler_pic_CXX=
13078 lt_prog_compiler_static_CXX=
13080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13081 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13083 # C++ specific cases for pic, static, wl, etc.
13084 if test "$GXX" = yes; then
13085 lt_prog_compiler_wl_CXX='-Wl,'
13086 lt_prog_compiler_static_CXX='-static'
13088 case $host_os in
13089 aix*)
13090 # All AIX code is PIC.
13091 if test "$host_cpu" = ia64; then
13092 # AIX 5 now supports IA64 processor
13093 lt_prog_compiler_static_CXX='-Bstatic'
13095 lt_prog_compiler_pic_CXX='-fPIC'
13098 amigaos*)
13099 case $host_cpu in
13100 powerpc)
13101 # see comment about AmigaOS4 .so support
13102 lt_prog_compiler_pic_CXX='-fPIC'
13104 m68k)
13105 # FIXME: we need at least 68020 code to build shared libraries, but
13106 # adding the `-m68020' flag to GCC prevents building anything better,
13107 # like `-m68040'.
13108 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13110 esac
13113 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13114 # PIC is the default for these OSes.
13116 mingw* | cygwin* | os2* | pw32* | cegcc*)
13117 # This hack is so that the source file can tell whether it is being
13118 # built for inclusion in a dll (and should export symbols for example).
13119 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13120 # (--disable-auto-import) libraries
13121 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13123 darwin* | rhapsody*)
13124 # PIC is the default on this platform
13125 # Common symbols not allowed in MH_DYLIB files
13126 lt_prog_compiler_pic_CXX='-fno-common'
13128 *djgpp*)
13129 # DJGPP does not support shared libraries at all
13130 lt_prog_compiler_pic_CXX=
13132 haiku*)
13133 # PIC is the default for Haiku.
13134 # The "-static" flag exists, but is broken.
13135 lt_prog_compiler_static_CXX=
13137 interix[3-9]*)
13138 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13139 # Instead, we relocate shared libraries at runtime.
13141 sysv4*MP*)
13142 if test -d /usr/nec; then
13143 lt_prog_compiler_pic_CXX=-Kconform_pic
13146 hpux*)
13147 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13148 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13149 # sets the default TLS model and affects inlining.
13150 case $host_cpu in
13151 hppa*64*)
13154 lt_prog_compiler_pic_CXX='-fPIC'
13156 esac
13158 *qnx* | *nto*)
13159 # QNX uses GNU C++, but need to define -shared option too, otherwise
13160 # it will coredump.
13161 lt_prog_compiler_pic_CXX='-fPIC -shared'
13164 lt_prog_compiler_pic_CXX='-fPIC'
13166 esac
13167 else
13168 case $host_os in
13169 aix[4-9]*)
13170 # All AIX code is PIC.
13171 if test "$host_cpu" = ia64; then
13172 # AIX 5 now supports IA64 processor
13173 lt_prog_compiler_static_CXX='-Bstatic'
13174 else
13175 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13178 chorus*)
13179 case $cc_basename in
13180 cxch68*)
13181 # Green Hills C++ Compiler
13182 # _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"
13184 esac
13186 dgux*)
13187 case $cc_basename in
13188 ec++*)
13189 lt_prog_compiler_pic_CXX='-KPIC'
13191 ghcx*)
13192 # Green Hills C++ Compiler
13193 lt_prog_compiler_pic_CXX='-pic'
13197 esac
13199 freebsd* | dragonfly*)
13200 # FreeBSD uses GNU C++
13202 hpux9* | hpux10* | hpux11*)
13203 case $cc_basename in
13204 CC*)
13205 lt_prog_compiler_wl_CXX='-Wl,'
13206 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13207 if test "$host_cpu" != ia64; then
13208 lt_prog_compiler_pic_CXX='+Z'
13211 aCC*)
13212 lt_prog_compiler_wl_CXX='-Wl,'
13213 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13214 case $host_cpu in
13215 hppa*64*|ia64*)
13216 # +Z the default
13219 lt_prog_compiler_pic_CXX='+Z'
13221 esac
13225 esac
13227 interix*)
13228 # This is c89, which is MS Visual C++ (no shared libs)
13229 # Anyone wants to do a port?
13231 irix5* | irix6* | nonstopux*)
13232 case $cc_basename in
13233 CC*)
13234 lt_prog_compiler_wl_CXX='-Wl,'
13235 lt_prog_compiler_static_CXX='-non_shared'
13236 # CC pic flag -KPIC is the default.
13240 esac
13242 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13243 case $cc_basename in
13244 KCC*)
13245 # KAI C++ Compiler
13246 lt_prog_compiler_wl_CXX='--backend -Wl,'
13247 lt_prog_compiler_pic_CXX='-fPIC'
13249 ecpc* )
13250 # old Intel C++ for x86_64 which still supported -KPIC.
13251 lt_prog_compiler_wl_CXX='-Wl,'
13252 lt_prog_compiler_pic_CXX='-KPIC'
13253 lt_prog_compiler_static_CXX='-static'
13255 icpc* )
13256 # Intel C++, used to be incompatible with GCC.
13257 # ICC 10 doesn't accept -KPIC any more.
13258 lt_prog_compiler_wl_CXX='-Wl,'
13259 lt_prog_compiler_pic_CXX='-fPIC'
13260 lt_prog_compiler_static_CXX='-static'
13262 pgCC* | pgcpp*)
13263 # Portland Group C++ compiler
13264 lt_prog_compiler_wl_CXX='-Wl,'
13265 lt_prog_compiler_pic_CXX='-fpic'
13266 lt_prog_compiler_static_CXX='-Bstatic'
13268 cxx*)
13269 # Compaq C++
13270 # Make sure the PIC flag is empty. It appears that all Alpha
13271 # Linux and Compaq Tru64 Unix objects are PIC.
13272 lt_prog_compiler_pic_CXX=
13273 lt_prog_compiler_static_CXX='-non_shared'
13275 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
13276 # IBM XL 8.0, 9.0 on PPC and BlueGene
13277 lt_prog_compiler_wl_CXX='-Wl,'
13278 lt_prog_compiler_pic_CXX='-qpic'
13279 lt_prog_compiler_static_CXX='-qstaticlink'
13282 case `$CC -V 2>&1 | sed 5q` in
13283 *Sun\ C*)
13284 # Sun C++ 5.9
13285 lt_prog_compiler_pic_CXX='-KPIC'
13286 lt_prog_compiler_static_CXX='-Bstatic'
13287 lt_prog_compiler_wl_CXX='-Qoption ld '
13289 esac
13291 esac
13293 lynxos*)
13295 m88k*)
13297 mvs*)
13298 case $cc_basename in
13299 cxx*)
13300 lt_prog_compiler_pic_CXX='-W c,exportall'
13304 esac
13306 netbsd*)
13308 *qnx* | *nto*)
13309 # QNX uses GNU C++, but need to define -shared option too, otherwise
13310 # it will coredump.
13311 lt_prog_compiler_pic_CXX='-fPIC -shared'
13313 osf3* | osf4* | osf5*)
13314 case $cc_basename in
13315 KCC*)
13316 lt_prog_compiler_wl_CXX='--backend -Wl,'
13318 RCC*)
13319 # Rational C++ 2.4.1
13320 lt_prog_compiler_pic_CXX='-pic'
13322 cxx*)
13323 # Digital/Compaq C++
13324 lt_prog_compiler_wl_CXX='-Wl,'
13325 # Make sure the PIC flag is empty. It appears that all Alpha
13326 # Linux and Compaq Tru64 Unix objects are PIC.
13327 lt_prog_compiler_pic_CXX=
13328 lt_prog_compiler_static_CXX='-non_shared'
13332 esac
13334 psos*)
13336 solaris*)
13337 case $cc_basename in
13338 CC*)
13339 # Sun C++ 4.2, 5.x and Centerline C++
13340 lt_prog_compiler_pic_CXX='-KPIC'
13341 lt_prog_compiler_static_CXX='-Bstatic'
13342 lt_prog_compiler_wl_CXX='-Qoption ld '
13344 gcx*)
13345 # Green Hills C++ Compiler
13346 lt_prog_compiler_pic_CXX='-PIC'
13350 esac
13352 sunos4*)
13353 case $cc_basename in
13354 CC*)
13355 # Sun C++ 4.x
13356 lt_prog_compiler_pic_CXX='-pic'
13357 lt_prog_compiler_static_CXX='-Bstatic'
13359 lcc*)
13360 # Lucid
13361 lt_prog_compiler_pic_CXX='-pic'
13365 esac
13367 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13368 case $cc_basename in
13369 CC*)
13370 lt_prog_compiler_wl_CXX='-Wl,'
13371 lt_prog_compiler_pic_CXX='-KPIC'
13372 lt_prog_compiler_static_CXX='-Bstatic'
13374 esac
13376 tandem*)
13377 case $cc_basename in
13378 NCC*)
13379 # NonStop-UX NCC 3.20
13380 lt_prog_compiler_pic_CXX='-KPIC'
13384 esac
13386 vxworks*)
13389 lt_prog_compiler_can_build_shared_CXX=no
13391 esac
13394 case $host_os in
13395 # For platforms which do not support PIC, -DPIC is meaningless:
13396 *djgpp*)
13397 lt_prog_compiler_pic_CXX=
13400 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13402 esac
13403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
13404 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
13409 # Check to make sure the PIC flag actually works.
13411 if test -n "$lt_prog_compiler_pic_CXX"; then
13412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13413 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
13414 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
13415 $as_echo_n "(cached) " >&6
13416 else
13417 lt_cv_prog_compiler_pic_works_CXX=no
13418 ac_outfile=conftest.$ac_objext
13419 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13420 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13421 # Insert the option either (1) after the last *FLAGS variable, or
13422 # (2) before a word containing "conftest.", or (3) at the end.
13423 # Note that $ac_compile itself does not contain backslashes and begins
13424 # with a dollar sign (not a hyphen), so the echo should work correctly.
13425 # The option is referenced via a variable to avoid confusing sed.
13426 lt_compile=`echo "$ac_compile" | $SED \
13427 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13428 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13429 -e 's:$: $lt_compiler_flag:'`
13430 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13431 (eval "$lt_compile" 2>conftest.err)
13432 ac_status=$?
13433 cat conftest.err >&5
13434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13435 if (exit $ac_status) && test -s "$ac_outfile"; then
13436 # The compiler can only warn and ignore the option if not recognized
13437 # So say no if there are warnings other than the usual output.
13438 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13439 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13440 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13441 lt_cv_prog_compiler_pic_works_CXX=yes
13444 $RM conftest*
13447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13448 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
13450 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
13451 case $lt_prog_compiler_pic_CXX in
13452 "" | " "*) ;;
13453 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13454 esac
13455 else
13456 lt_prog_compiler_pic_CXX=
13457 lt_prog_compiler_can_build_shared_CXX=no
13465 # Check to make sure the static flag actually works.
13467 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13469 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13470 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
13471 $as_echo_n "(cached) " >&6
13472 else
13473 lt_cv_prog_compiler_static_works_CXX=no
13474 save_LDFLAGS="$LDFLAGS"
13475 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13476 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13477 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13478 # The linker can only warn and ignore the option if not recognized
13479 # So say no if there are warnings
13480 if test -s conftest.err; then
13481 # Append any errors to the config.log.
13482 cat conftest.err 1>&5
13483 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13484 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13485 if diff conftest.exp conftest.er2 >/dev/null; then
13486 lt_cv_prog_compiler_static_works_CXX=yes
13488 else
13489 lt_cv_prog_compiler_static_works_CXX=yes
13492 $RM -r conftest*
13493 LDFLAGS="$save_LDFLAGS"
13496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13497 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
13499 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
13501 else
13502 lt_prog_compiler_static_CXX=
13508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13509 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13510 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
13511 $as_echo_n "(cached) " >&6
13512 else
13513 lt_cv_prog_compiler_c_o_CXX=no
13514 $RM -r conftest 2>/dev/null
13515 mkdir conftest
13516 cd conftest
13517 mkdir out
13518 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13520 lt_compiler_flag="-o out/conftest2.$ac_objext"
13521 # Insert the option either (1) after the last *FLAGS variable, or
13522 # (2) before a word containing "conftest.", or (3) at the end.
13523 # Note that $ac_compile itself does not contain backslashes and begins
13524 # with a dollar sign (not a hyphen), so the echo should work correctly.
13525 lt_compile=`echo "$ac_compile" | $SED \
13526 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13527 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13528 -e 's:$: $lt_compiler_flag:'`
13529 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13530 (eval "$lt_compile" 2>out/conftest.err)
13531 ac_status=$?
13532 cat out/conftest.err >&5
13533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13534 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13535 then
13536 # The compiler can only warn and ignore the option if not recognized
13537 # So say no if there are warnings
13538 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13539 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13540 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13541 lt_cv_prog_compiler_c_o_CXX=yes
13544 chmod u+w . 2>&5
13545 $RM conftest*
13546 # SGI C++ compiler will create directory out/ii_files/ for
13547 # template instantiation
13548 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13549 $RM out/* && rmdir out
13550 cd ..
13551 $RM -r conftest
13552 $RM conftest*
13555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13556 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13561 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13562 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
13563 $as_echo_n "(cached) " >&6
13564 else
13565 lt_cv_prog_compiler_c_o_CXX=no
13566 $RM -r conftest 2>/dev/null
13567 mkdir conftest
13568 cd conftest
13569 mkdir out
13570 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13572 lt_compiler_flag="-o out/conftest2.$ac_objext"
13573 # Insert the option either (1) after the last *FLAGS variable, or
13574 # (2) before a word containing "conftest.", or (3) at the end.
13575 # Note that $ac_compile itself does not contain backslashes and begins
13576 # with a dollar sign (not a hyphen), so the echo should work correctly.
13577 lt_compile=`echo "$ac_compile" | $SED \
13578 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13579 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13580 -e 's:$: $lt_compiler_flag:'`
13581 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13582 (eval "$lt_compile" 2>out/conftest.err)
13583 ac_status=$?
13584 cat out/conftest.err >&5
13585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13586 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13587 then
13588 # The compiler can only warn and ignore the option if not recognized
13589 # So say no if there are warnings
13590 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13591 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13592 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13593 lt_cv_prog_compiler_c_o_CXX=yes
13596 chmod u+w . 2>&5
13597 $RM conftest*
13598 # SGI C++ compiler will create directory out/ii_files/ for
13599 # template instantiation
13600 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13601 $RM out/* && rmdir out
13602 cd ..
13603 $RM -r conftest
13604 $RM conftest*
13607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13608 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13613 hard_links="nottested"
13614 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13615 # do not overwrite the value of need_locks provided by the user
13616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13617 $as_echo_n "checking if we can lock with hard links... " >&6; }
13618 hard_links=yes
13619 $RM conftest*
13620 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13621 touch conftest.a
13622 ln conftest.a conftest.b 2>&5 || hard_links=no
13623 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13625 $as_echo "$hard_links" >&6; }
13626 if test "$hard_links" = no; then
13627 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13628 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13629 need_locks=warn
13631 else
13632 need_locks=no
13637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13638 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13640 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13641 case $host_os in
13642 aix[4-9]*)
13643 # If we're using GNU nm, then we don't want the "-C" option.
13644 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13645 # Also, AIX nm treats weak defined symbols like other global defined
13646 # symbols, whereas GNU nm marks them as "W".
13647 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
13648 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'
13649 else
13650 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'
13653 pw32*)
13654 export_symbols_cmds_CXX="$ltdll_cmds"
13656 cygwin* | mingw* | cegcc*)
13657 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'
13660 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13662 esac
13663 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13666 $as_echo "$ld_shlibs_CXX" >&6; }
13667 test "$ld_shlibs_CXX" = no && can_build_shared=no
13669 with_gnu_ld_CXX=$with_gnu_ld
13677 # Do we need to explicitly link libc?
13679 case "x$archive_cmds_need_lc_CXX" in
13680 x|xyes)
13681 # Assume -lc should be added
13682 archive_cmds_need_lc_CXX=yes
13684 if test "$enable_shared" = yes && test "$GCC" = yes; then
13685 case $archive_cmds_CXX in
13686 *'~'*)
13687 # FIXME: we may have to deal with multi-command sequences.
13689 '$CC '*)
13690 # Test whether the compiler implicitly links with -lc since on some
13691 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13692 # to ld, don't add -lc before -lgcc.
13693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13694 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13695 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
13696 $as_echo_n "(cached) " >&6
13697 else
13698 $RM conftest*
13699 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13701 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13702 (eval $ac_compile) 2>&5
13703 ac_status=$?
13704 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13705 test $ac_status = 0; } 2>conftest.err; then
13706 soname=conftest
13707 lib=conftest
13708 libobjs=conftest.$ac_objext
13709 deplibs=
13710 wl=$lt_prog_compiler_wl_CXX
13711 pic_flag=$lt_prog_compiler_pic_CXX
13712 compiler_flags=-v
13713 linker_flags=-v
13714 verstring=
13715 output_objdir=.
13716 libname=conftest
13717 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13718 allow_undefined_flag_CXX=
13719 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13720 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13721 ac_status=$?
13722 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13723 test $ac_status = 0; }
13724 then
13725 lt_cv_archive_cmds_need_lc_CXX=no
13726 else
13727 lt_cv_archive_cmds_need_lc_CXX=yes
13729 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13730 else
13731 cat conftest.err 1>&5
13733 $RM conftest*
13736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
13737 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
13738 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
13740 esac
13743 esac
13808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
13809 $as_echo_n "checking dynamic linker characteristics... " >&6; }
13811 library_names_spec=
13812 libname_spec='lib$name'
13813 soname_spec=
13814 shrext_cmds=".so"
13815 postinstall_cmds=
13816 postuninstall_cmds=
13817 finish_cmds=
13818 finish_eval=
13819 shlibpath_var=
13820 shlibpath_overrides_runpath=unknown
13821 version_type=none
13822 dynamic_linker="$host_os ld.so"
13823 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13824 need_lib_prefix=unknown
13825 hardcode_into_libs=no
13827 # when you set need_version to no, make sure it does not cause -set_version
13828 # flags to be left without arguments
13829 need_version=unknown
13831 case $host_os in
13832 aix3*)
13833 version_type=linux
13834 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13835 shlibpath_var=LIBPATH
13837 # AIX 3 has no versioning support, so we append a major version to the name.
13838 soname_spec='${libname}${release}${shared_ext}$major'
13841 aix[4-9]*)
13842 version_type=linux
13843 need_lib_prefix=no
13844 need_version=no
13845 hardcode_into_libs=yes
13846 if test "$host_cpu" = ia64; then
13847 # AIX 5 supports IA64
13848 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13849 shlibpath_var=LD_LIBRARY_PATH
13850 else
13851 # With GCC up to 2.95.x, collect2 would create an import file
13852 # for dependence libraries. The import file would start with
13853 # the line `#! .'. This would cause the generated library to
13854 # depend on `.', always an invalid library. This was fixed in
13855 # development snapshots of GCC prior to 3.0.
13856 case $host_os in
13857 aix4 | aix4.[01] | aix4.[01].*)
13858 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13859 echo ' yes '
13860 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
13862 else
13863 can_build_shared=no
13866 esac
13867 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13868 # soname into executable. Probably we can add versioning support to
13869 # collect2, so additional links can be useful in future.
13870 if test "$aix_use_runtimelinking" = yes; then
13871 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13872 # instead of lib<name>.a to let people know that these are not
13873 # typical AIX shared libraries.
13874 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13875 else
13876 # We preserve .a as extension for shared libraries through AIX4.2
13877 # and later when we are not doing run time linking.
13878 library_names_spec='${libname}${release}.a $libname.a'
13879 soname_spec='${libname}${release}${shared_ext}$major'
13881 shlibpath_var=LIBPATH
13885 amigaos*)
13886 case $host_cpu in
13887 powerpc)
13888 # Since July 2007 AmigaOS4 officially supports .so libraries.
13889 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
13890 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13892 m68k)
13893 library_names_spec='$libname.ixlibrary $libname.a'
13894 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13895 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'
13897 esac
13900 beos*)
13901 library_names_spec='${libname}${shared_ext}'
13902 dynamic_linker="$host_os ld.so"
13903 shlibpath_var=LIBRARY_PATH
13906 bsdi[45]*)
13907 version_type=linux
13908 need_version=no
13909 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13910 soname_spec='${libname}${release}${shared_ext}$major'
13911 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13912 shlibpath_var=LD_LIBRARY_PATH
13913 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13914 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13915 # the default ld.so.conf also contains /usr/contrib/lib and
13916 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13917 # libtool to hard-code these into programs
13920 cygwin* | mingw* | pw32* | cegcc*)
13921 version_type=windows
13922 shrext_cmds=".dll"
13923 need_version=no
13924 need_lib_prefix=no
13926 case $GCC,$host_os in
13927 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
13928 library_names_spec='$libname.dll.a'
13929 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13930 postinstall_cmds='base_file=`basename \${file}`~
13931 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
13932 dldir=$destdir/`dirname \$dlpath`~
13933 test -d \$dldir || mkdir -p \$dldir~
13934 $install_prog $dir/$dlname \$dldir/$dlname~
13935 chmod a+x \$dldir/$dlname~
13936 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13937 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13939 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13940 dlpath=$dir/\$dldll~
13941 $RM \$dlpath'
13942 shlibpath_overrides_runpath=yes
13944 case $host_os in
13945 cygwin*)
13946 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13947 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13950 mingw* | cegcc*)
13951 # MinGW DLLs use traditional 'lib' prefix
13952 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13954 pw32*)
13955 # pw32 DLLs use 'pw' prefix rather than 'lib'
13956 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13958 esac
13962 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13964 esac
13965 dynamic_linker='Win32 ld.exe'
13966 # FIXME: first we should search . and the directory the executable is in
13967 shlibpath_var=PATH
13970 darwin* | rhapsody*)
13971 dynamic_linker="$host_os dyld"
13972 version_type=darwin
13973 need_lib_prefix=no
13974 need_version=no
13975 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13976 soname_spec='${libname}${release}${major}$shared_ext'
13977 shlibpath_overrides_runpath=yes
13978 shlibpath_var=DYLD_LIBRARY_PATH
13979 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13981 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13984 dgux*)
13985 version_type=linux
13986 need_lib_prefix=no
13987 need_version=no
13988 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13989 soname_spec='${libname}${release}${shared_ext}$major'
13990 shlibpath_var=LD_LIBRARY_PATH
13993 freebsd* | dragonfly*)
13994 # DragonFly does not have aout. When/if they implement a new
13995 # versioning mechanism, adjust this.
13996 if test -x /usr/bin/objformat; then
13997 objformat=`/usr/bin/objformat`
13998 else
13999 case $host_os in
14000 freebsd[23].*) objformat=aout ;;
14001 *) objformat=elf ;;
14002 esac
14004 version_type=freebsd-$objformat
14005 case $version_type in
14006 freebsd-elf*)
14007 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14008 need_version=no
14009 need_lib_prefix=no
14011 freebsd-*)
14012 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14013 need_version=yes
14015 esac
14016 shlibpath_var=LD_LIBRARY_PATH
14017 case $host_os in
14018 freebsd2.*)
14019 shlibpath_overrides_runpath=yes
14021 freebsd3.[01]* | freebsdelf3.[01]*)
14022 shlibpath_overrides_runpath=yes
14023 hardcode_into_libs=yes
14025 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14026 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14027 shlibpath_overrides_runpath=no
14028 hardcode_into_libs=yes
14030 *) # from 4.6 on, and DragonFly
14031 shlibpath_overrides_runpath=yes
14032 hardcode_into_libs=yes
14034 esac
14037 gnu*)
14038 version_type=linux
14039 need_lib_prefix=no
14040 need_version=no
14041 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14042 soname_spec='${libname}${release}${shared_ext}$major'
14043 shlibpath_var=LD_LIBRARY_PATH
14044 hardcode_into_libs=yes
14047 haiku*)
14048 version_type=linux
14049 need_lib_prefix=no
14050 need_version=no
14051 dynamic_linker="$host_os runtime_loader"
14052 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14053 soname_spec='${libname}${release}${shared_ext}$major'
14054 shlibpath_var=LIBRARY_PATH
14055 shlibpath_overrides_runpath=yes
14056 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
14057 hardcode_into_libs=yes
14060 hpux9* | hpux10* | hpux11*)
14061 # Give a soname corresponding to the major version so that dld.sl refuses to
14062 # link against other versions.
14063 version_type=sunos
14064 need_lib_prefix=no
14065 need_version=no
14066 case $host_cpu in
14067 ia64*)
14068 shrext_cmds='.so'
14069 hardcode_into_libs=yes
14070 dynamic_linker="$host_os dld.so"
14071 shlibpath_var=LD_LIBRARY_PATH
14072 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14073 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14074 soname_spec='${libname}${release}${shared_ext}$major'
14075 if test "X$HPUX_IA64_MODE" = X32; then
14076 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14077 else
14078 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14080 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14082 hppa*64*)
14083 shrext_cmds='.sl'
14084 hardcode_into_libs=yes
14085 dynamic_linker="$host_os dld.sl"
14086 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14087 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14088 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14089 soname_spec='${libname}${release}${shared_ext}$major'
14090 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14091 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14094 shrext_cmds='.sl'
14095 dynamic_linker="$host_os dld.sl"
14096 shlibpath_var=SHLIB_PATH
14097 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14098 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14099 soname_spec='${libname}${release}${shared_ext}$major'
14101 esac
14102 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14103 postinstall_cmds='chmod 555 $lib'
14104 # or fails outright, so override atomically:
14105 install_override_mode=555
14108 interix[3-9]*)
14109 version_type=linux
14110 need_lib_prefix=no
14111 need_version=no
14112 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14113 soname_spec='${libname}${release}${shared_ext}$major'
14114 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14115 shlibpath_var=LD_LIBRARY_PATH
14116 shlibpath_overrides_runpath=no
14117 hardcode_into_libs=yes
14120 irix5* | irix6* | nonstopux*)
14121 case $host_os in
14122 nonstopux*) version_type=nonstopux ;;
14124 if test "$lt_cv_prog_gnu_ld" = yes; then
14125 version_type=linux
14126 else
14127 version_type=irix
14128 fi ;;
14129 esac
14130 need_lib_prefix=no
14131 need_version=no
14132 soname_spec='${libname}${release}${shared_ext}$major'
14133 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14134 case $host_os in
14135 irix5* | nonstopux*)
14136 libsuff= shlibsuff=
14139 case $LD in # libtool.m4 will add one of these switches to LD
14140 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14141 libsuff= shlibsuff= libmagic=32-bit;;
14142 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14143 libsuff=32 shlibsuff=N32 libmagic=N32;;
14144 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14145 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14146 *) libsuff= shlibsuff= libmagic=never-match;;
14147 esac
14149 esac
14150 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14151 shlibpath_overrides_runpath=no
14152 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14153 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14154 hardcode_into_libs=yes
14157 # No shared lib support for Linux oldld, aout, or coff.
14158 linux*oldld* | linux*aout* | linux*coff*)
14159 dynamic_linker=no
14162 # This must be Linux ELF.
14164 # uclinux* changes (here and below) have been submitted to the libtool
14165 # project, but have not yet been accepted: they are GCC-local changes
14166 # for the time being. (See
14167 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
14168 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
14169 version_type=linux
14170 need_lib_prefix=no
14171 need_version=no
14172 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14173 soname_spec='${libname}${release}${shared_ext}$major'
14174 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14175 shlibpath_var=LD_LIBRARY_PATH
14176 shlibpath_overrides_runpath=no
14178 # Some binutils ld are patched to set DT_RUNPATH
14179 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
14180 $as_echo_n "(cached) " >&6
14181 else
14182 lt_cv_shlibpath_overrides_runpath=no
14183 save_LDFLAGS=$LDFLAGS
14184 save_libdir=$libdir
14185 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14186 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14188 /* end confdefs.h. */
14191 main ()
14195 return 0;
14197 _ACEOF
14198 if ac_fn_cxx_try_link "$LINENO"; then :
14199 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14200 lt_cv_shlibpath_overrides_runpath=yes
14203 rm -f core conftest.err conftest.$ac_objext \
14204 conftest$ac_exeext conftest.$ac_ext
14205 LDFLAGS=$save_LDFLAGS
14206 libdir=$save_libdir
14210 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14212 # This implies no fast_install, which is unacceptable.
14213 # Some rework will be needed to allow for fast_install
14214 # before this can be enabled.
14215 hardcode_into_libs=yes
14217 # Append ld.so.conf contents to the search path
14218 if test -f /etc/ld.so.conf; then
14219 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' ' '`
14220 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14223 # We used to test for /lib/ld.so.1 and disable shared libraries on
14224 # powerpc, because MkLinux only supported shared libraries with the
14225 # GNU dynamic linker. Since this was broken with cross compilers,
14226 # most powerpc-linux boxes support dynamic linking these days and
14227 # people can always --disable-shared, the test was removed, and we
14228 # assume the GNU/Linux dynamic linker is in use.
14229 dynamic_linker='GNU/Linux ld.so'
14232 netbsd*)
14233 version_type=sunos
14234 need_lib_prefix=no
14235 need_version=no
14236 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14237 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14238 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14239 dynamic_linker='NetBSD (a.out) ld.so'
14240 else
14241 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14242 soname_spec='${libname}${release}${shared_ext}$major'
14243 dynamic_linker='NetBSD ld.elf_so'
14245 shlibpath_var=LD_LIBRARY_PATH
14246 shlibpath_overrides_runpath=yes
14247 hardcode_into_libs=yes
14250 newsos6)
14251 version_type=linux
14252 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14253 shlibpath_var=LD_LIBRARY_PATH
14254 shlibpath_overrides_runpath=yes
14257 *nto* | *qnx*)
14258 version_type=qnx
14259 need_lib_prefix=no
14260 need_version=no
14261 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14262 soname_spec='${libname}${release}${shared_ext}$major'
14263 shlibpath_var=LD_LIBRARY_PATH
14264 shlibpath_overrides_runpath=no
14265 hardcode_into_libs=yes
14266 dynamic_linker='ldqnx.so'
14269 openbsd*)
14270 version_type=sunos
14271 sys_lib_dlsearch_path_spec="/usr/lib"
14272 need_lib_prefix=no
14273 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14274 case $host_os in
14275 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14276 *) need_version=no ;;
14277 esac
14278 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14279 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14280 shlibpath_var=LD_LIBRARY_PATH
14281 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14282 case $host_os in
14283 openbsd2.[89] | openbsd2.[89].*)
14284 shlibpath_overrides_runpath=no
14287 shlibpath_overrides_runpath=yes
14289 esac
14290 else
14291 shlibpath_overrides_runpath=yes
14295 os2*)
14296 libname_spec='$name'
14297 shrext_cmds=".dll"
14298 need_lib_prefix=no
14299 library_names_spec='$libname${shared_ext} $libname.a'
14300 dynamic_linker='OS/2 ld.exe'
14301 shlibpath_var=LIBPATH
14304 osf3* | osf4* | osf5*)
14305 version_type=osf
14306 need_lib_prefix=no
14307 need_version=no
14308 soname_spec='${libname}${release}${shared_ext}$major'
14309 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14310 shlibpath_var=LD_LIBRARY_PATH
14311 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14312 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14315 rdos*)
14316 dynamic_linker=no
14319 solaris*)
14320 version_type=linux
14321 need_lib_prefix=no
14322 need_version=no
14323 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14324 soname_spec='${libname}${release}${shared_ext}$major'
14325 shlibpath_var=LD_LIBRARY_PATH
14326 shlibpath_overrides_runpath=yes
14327 hardcode_into_libs=yes
14328 # ldd complains unless libraries are executable
14329 postinstall_cmds='chmod +x $lib'
14332 sunos4*)
14333 version_type=sunos
14334 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14335 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14336 shlibpath_var=LD_LIBRARY_PATH
14337 shlibpath_overrides_runpath=yes
14338 if test "$with_gnu_ld" = yes; then
14339 need_lib_prefix=no
14341 need_version=yes
14344 sysv4 | sysv4.3*)
14345 version_type=linux
14346 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14347 soname_spec='${libname}${release}${shared_ext}$major'
14348 shlibpath_var=LD_LIBRARY_PATH
14349 case $host_vendor in
14350 sni)
14351 shlibpath_overrides_runpath=no
14352 need_lib_prefix=no
14353 runpath_var=LD_RUN_PATH
14355 siemens)
14356 need_lib_prefix=no
14358 motorola)
14359 need_lib_prefix=no
14360 need_version=no
14361 shlibpath_overrides_runpath=no
14362 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14364 esac
14367 sysv4*MP*)
14368 if test -d /usr/nec ;then
14369 version_type=linux
14370 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14371 soname_spec='$libname${shared_ext}.$major'
14372 shlibpath_var=LD_LIBRARY_PATH
14376 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14377 version_type=freebsd-elf
14378 need_lib_prefix=no
14379 need_version=no
14380 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14381 soname_spec='${libname}${release}${shared_ext}$major'
14382 shlibpath_var=LD_LIBRARY_PATH
14383 shlibpath_overrides_runpath=yes
14384 hardcode_into_libs=yes
14385 if test "$with_gnu_ld" = yes; then
14386 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14387 else
14388 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14389 case $host_os in
14390 sco3.2v5*)
14391 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14393 esac
14395 sys_lib_dlsearch_path_spec='/usr/lib'
14398 tpf*)
14399 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14400 version_type=linux
14401 need_lib_prefix=no
14402 need_version=no
14403 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14404 shlibpath_var=LD_LIBRARY_PATH
14405 shlibpath_overrides_runpath=no
14406 hardcode_into_libs=yes
14409 uts4*)
14410 version_type=linux
14411 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14412 soname_spec='${libname}${release}${shared_ext}$major'
14413 shlibpath_var=LD_LIBRARY_PATH
14417 dynamic_linker=no
14419 esac
14420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14421 $as_echo "$dynamic_linker" >&6; }
14422 test "$dynamic_linker" = no && can_build_shared=no
14424 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14425 if test "$GCC" = yes; then
14426 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14429 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14430 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14432 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14433 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14474 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14475 hardcode_action_CXX=
14476 if test -n "$hardcode_libdir_flag_spec_CXX" ||
14477 test -n "$runpath_var_CXX" ||
14478 test "X$hardcode_automatic_CXX" = "Xyes" ; then
14480 # We can hardcode non-existent directories.
14481 if test "$hardcode_direct_CXX" != no &&
14482 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14483 # have to relink, otherwise we might link with an installed library
14484 # when we should be linking with a yet-to-be-installed one
14485 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14486 test "$hardcode_minus_L_CXX" != no; then
14487 # Linking always hardcodes the temporary library directory.
14488 hardcode_action_CXX=relink
14489 else
14490 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14491 hardcode_action_CXX=immediate
14493 else
14494 # We cannot hardcode anything, or else we can only hardcode existing
14495 # directories.
14496 hardcode_action_CXX=unsupported
14498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
14499 $as_echo "$hardcode_action_CXX" >&6; }
14501 if test "$hardcode_action_CXX" = relink ||
14502 test "$inherit_rpath_CXX" = yes; then
14503 # Fast installation is not supported
14504 enable_fast_install=no
14505 elif test "$shlibpath_overrides_runpath" = yes ||
14506 test "$enable_shared" = no; then
14507 # Fast installation is not necessary
14508 enable_fast_install=needless
14517 fi # test -n "$compiler"
14519 CC=$lt_save_CC
14520 LDCXX=$LD
14521 LD=$lt_save_LD
14522 GCC=$lt_save_GCC
14523 with_gnu_ld=$lt_save_with_gnu_ld
14524 lt_cv_path_LDCXX=$lt_cv_path_LD
14525 lt_cv_path_LD=$lt_save_path_LD
14526 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14527 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14528 fi # test "$_lt_caught_CXX_error" != yes
14530 ac_ext=c
14531 ac_cpp='$CPP $CPPFLAGS'
14532 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14533 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14534 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14538 visibility=
14539 if test "$GXX" = yes; then
14540 visibility=-fvisibility=hidden
14544 # Check whether --enable-cet was given.
14545 if test "${enable_cet+set}" = set; then :
14546 enableval=$enable_cet;
14547 case "$enableval" in
14548 yes|no|auto) ;;
14549 *) as_fn_error $? "Unknown argument to enable/disable cet" "$LINENO" 5 ;;
14550 esac
14552 else
14553 enable_cet=auto
14557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5
14558 $as_echo_n "checking for CET support... " >&6; }
14560 case "$host" in
14561 i[34567]86-*-linux* | x86_64-*-linux*)
14562 may_have_cet=yes
14563 cet_save_CFLAGS="$CFLAGS"
14564 CFLAGS="$CFLAGS -fcf-protection"
14565 case "$enable_cet" in
14566 auto)
14567 # Check if target supports multi-byte NOPs
14568 # and if assembler supports CET insn.
14569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14570 /* end confdefs.h. */
14573 main ()
14576 #if !defined(__SSE2__)
14577 #error target does not support multi-byte NOPs
14578 #else
14579 asm ("setssbsy");
14580 #endif
14583 return 0;
14585 _ACEOF
14586 if ac_fn_c_try_compile "$LINENO"; then :
14587 enable_cet=yes
14588 else
14589 enable_cet=no
14591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14593 yes)
14594 # Check if assembler supports CET.
14595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14596 /* end confdefs.h. */
14599 main ()
14601 asm ("setssbsy");
14603 return 0;
14605 _ACEOF
14606 if ac_fn_c_try_compile "$LINENO"; then :
14608 else
14609 as_fn_error $? "assembler with CET support is required for --enable-cet" "$LINENO" 5
14611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14613 esac
14614 CFLAGS="$cet_save_CFLAGS"
14617 may_have_cet=no
14618 enable_cet=no
14620 esac
14622 cet_save_CFLAGS="$CFLAGS"
14623 CFLAGS="$CFLAGS -fcf-protection=none"
14624 cet_save_LDFLAGS="$LDFLAGS"
14625 LDFLAGS="$LDFLAGS -Wl,-z,ibt,-z,shstk"
14626 if test x$may_have_cet = xyes; then
14627 # Check whether -fcf-protection=none -Wl,-z,ibt,-z,shstk work.
14628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14629 /* end confdefs.h. */
14632 main ()
14634 return 0;
14636 return 0;
14638 _ACEOF
14639 if ac_fn_c_try_link "$LINENO"; then :
14640 may_have_cet=yes
14641 else
14642 may_have_cet=no
14644 rm -f core conftest.err conftest.$ac_objext \
14645 conftest$ac_exeext conftest.$ac_ext
14648 if test x$may_have_cet = xyes; then
14649 if test x$cross_compiling = xno; then
14650 if test "$cross_compiling" = yes; then :
14651 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14652 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14653 as_fn_error $? "cannot run test program while cross compiling
14654 See \`config.log' for more details" "$LINENO" 5; }
14655 else
14656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14657 /* end confdefs.h. */
14659 static void
14660 foo (void)
14664 static void
14665 __attribute__ ((noinline, noclone))
14666 xxx (void (*f) (void))
14668 f ();
14671 static void
14672 __attribute__ ((noinline, noclone))
14673 bar (void)
14675 xxx (foo);
14679 main ()
14681 bar ();
14682 return 0;
14685 _ACEOF
14686 if ac_fn_c_try_run "$LINENO"; then :
14687 have_cet=no
14688 else
14689 have_cet=yes
14691 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14692 conftest.$ac_objext conftest.beam conftest.$ac_ext
14695 if test x$enable_cet = xno -a x$have_cet = xyes; then
14696 as_fn_error $? "Intel CET must be enabled on Intel CET enabled host" "$LINENO" 5
14699 else
14700 # Enable CET in cross compiler if possible so that it will run on both
14701 # CET and non-CET hosts.
14702 have_cet=yes
14704 if test x$enable_cet = xyes; then
14705 CET_HOST_FLAGS="-fcf-protection"
14706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14707 $as_echo "yes" >&6; }
14708 else
14709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14710 $as_echo "no" >&6; }
14712 CFLAGS="$cet_save_CFLAGS"
14713 LDFLAGS="$cet_save_LDFLAGS"
14717 ac_fn_c_check_decl "$LINENO" "basename" "ac_cv_have_decl_basename" "$ac_includes_default"
14718 if test "x$ac_cv_have_decl_basename" = xyes; then :
14719 ac_have_decl=1
14720 else
14721 ac_have_decl=0
14724 cat >>confdefs.h <<_ACEOF
14725 #define HAVE_DECL_BASENAME $ac_have_decl
14726 _ACEOF
14730 get_gcc_base_ver="cat"
14732 # Check whether --with-gcc-major-version-only was given.
14733 if test "${with_gcc_major_version_only+set}" = set; then :
14734 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
14735 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
14743 if test x$with_gcc_major_version_only = xyes ; then
14744 gcc_version=`sed -e 's/^\([0-9]*\).*$/\1/' $srcdir/../gcc/BASE-VER`
14745 else
14746 gcc_version=`cat $srcdir/../gcc/BASE-VER`
14749 CONFIG_STATUS_DEPENDENCIES='$(top_srcdir)/../gcc/BASE-VER'
14752 ac_ext=c
14753 ac_cpp='$CPP $CPPFLAGS'
14754 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14755 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14756 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14758 WARN_FLAGS=
14759 save_CFLAGS="$CFLAGS"
14760 for real_option in -W -Wall; do
14761 # Do the check with the no- prefix removed since gcc silently
14762 # accepts any -Wno-* option on purpose
14763 case $real_option in
14764 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
14765 *) option=$real_option ;;
14766 esac
14767 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
14769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
14770 $as_echo_n "checking whether $CC supports $option... " >&6; }
14771 if eval \${$as_acx_Woption+:} false; then :
14772 $as_echo_n "(cached) " >&6
14773 else
14774 CFLAGS="$option"
14775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14776 /* end confdefs.h. */
14779 main ()
14783 return 0;
14785 _ACEOF
14786 if ac_fn_c_try_compile "$LINENO"; then :
14787 eval "$as_acx_Woption=yes"
14788 else
14789 eval "$as_acx_Woption=no"
14791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14794 eval ac_res=\$$as_acx_Woption
14795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14796 $as_echo "$ac_res" >&6; }
14797 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
14798 WARN_FLAGS="$WARN_FLAGS${WARN_FLAGS:+ }$real_option"
14800 done
14801 CFLAGS="$save_CFLAGS"
14802 ac_ext=c
14803 ac_cpp='$CPP $CPPFLAGS'
14804 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14805 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14806 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14810 ac_ext=c
14811 ac_cpp='$CPP $CPPFLAGS'
14812 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14813 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14814 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14816 WERROR=
14817 # Check whether --enable-werror-always was given.
14818 if test "${enable_werror_always+set}" = set; then :
14819 enableval=$enable_werror_always;
14820 else
14821 enable_werror_always=no
14824 if test $enable_werror_always = yes; then :
14825 WERROR="$WERROR${WERROR:+ }-Werror"
14828 ac_ext=c
14829 ac_cpp='$CPP $CPPFLAGS'
14830 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14831 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14832 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14838 libsuffix=
14839 if test "$GXX" = yes; then
14840 libsuffix=`$CXX -print-multi-os-directory`
14844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket libraries" >&5
14845 $as_echo_n "checking for socket libraries... " >&6; }
14846 if ${libcc1_cv_lib_sockets+:} false; then :
14847 $as_echo_n "(cached) " >&6
14848 else
14849 libcc1_cv_lib_sockets=
14850 libcc1_check_both=no
14851 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
14852 if test "x$ac_cv_func_connect" = xyes; then :
14853 libcc1_check_socket=no
14854 else
14855 libcc1_check_socket=yes
14858 if test "$libcc1_check_socket" = "yes"; then
14859 unset ac_cv_func_connect
14860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsocket" >&5
14861 $as_echo_n "checking for main in -lsocket... " >&6; }
14862 if ${ac_cv_lib_socket_main+:} false; then :
14863 $as_echo_n "(cached) " >&6
14864 else
14865 ac_check_lib_save_LIBS=$LIBS
14866 LIBS="-lsocket $LIBS"
14867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14868 /* end confdefs.h. */
14872 main ()
14874 return main ();
14876 return 0;
14878 _ACEOF
14879 if ac_fn_c_try_link "$LINENO"; then :
14880 ac_cv_lib_socket_main=yes
14881 else
14882 ac_cv_lib_socket_main=no
14884 rm -f core conftest.err conftest.$ac_objext \
14885 conftest$ac_exeext conftest.$ac_ext
14886 LIBS=$ac_check_lib_save_LIBS
14888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_main" >&5
14889 $as_echo "$ac_cv_lib_socket_main" >&6; }
14890 if test "x$ac_cv_lib_socket_main" = xyes; then :
14891 libcc1_cv_lib_sockets="-lsocket"
14892 else
14893 libcc1_check_both=yes
14897 if test "$libcc1_check_both" = "yes"; then
14898 libcc1_old_libs=$LIBS
14899 LIBS="$LIBS -lsocket -lnsl"
14900 unset ac_cv_func_accept
14901 ac_fn_c_check_func "$LINENO" "accept" "ac_cv_func_accept"
14902 if test "x$ac_cv_func_accept" = xyes; then :
14903 libcc1_check_nsl=no
14904 libcc1_cv_lib_sockets="-lsocket -lnsl"
14907 unset ac_cv_func_accept
14908 LIBS=$libcc1_old_libs
14910 unset ac_cv_func_gethostbyname
14911 libcc1_old_libs="$LIBS"
14912 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
14913 if test "x$ac_cv_func_gethostbyname" = xyes; then :
14915 else
14916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lnsl" >&5
14917 $as_echo_n "checking for main in -lnsl... " >&6; }
14918 if ${ac_cv_lib_nsl_main+:} false; then :
14919 $as_echo_n "(cached) " >&6
14920 else
14921 ac_check_lib_save_LIBS=$LIBS
14922 LIBS="-lnsl $LIBS"
14923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14924 /* end confdefs.h. */
14928 main ()
14930 return main ();
14932 return 0;
14934 _ACEOF
14935 if ac_fn_c_try_link "$LINENO"; then :
14936 ac_cv_lib_nsl_main=yes
14937 else
14938 ac_cv_lib_nsl_main=no
14940 rm -f core conftest.err conftest.$ac_objext \
14941 conftest$ac_exeext conftest.$ac_ext
14942 LIBS=$ac_check_lib_save_LIBS
14944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_main" >&5
14945 $as_echo "$ac_cv_lib_nsl_main" >&6; }
14946 if test "x$ac_cv_lib_nsl_main" = xyes; then :
14947 libcc1_cv_lib_sockets="$libcc1_cv_lib_sockets -lnsl"
14952 unset ac_cv_func_gethostbyname
14953 LIBS=$libcc1_old_libs
14956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libcc1_cv_lib_sockets" >&5
14957 $as_echo "$libcc1_cv_lib_sockets" >&6; }
14958 LIBS="$LIBS $libcc1_cv_lib_sockets"
14960 # If any of these functions are missing, simply don't bother building
14961 # this plugin.
14962 # Check for plugin support
14963 # Check whether --enable-plugin was given.
14964 if test "${enable_plugin+set}" = set; then :
14965 enableval=$enable_plugin; enable_plugin=$enableval
14966 else
14967 enable_plugin=yes; default_plugin=yes
14971 pluginlibs=
14972 plugin_check=yes
14974 case "${host}" in
14975 *-*-mingw*)
14976 # Since plugin support under MinGW is not as straightforward as on
14977 # other platforms (e.g., we have to link import library, etc), we
14978 # only enable it if explicitly requested.
14979 if test x"$default_plugin" = x"yes"; then
14980 enable_plugin=no
14981 elif test x"$enable_plugin" = x"yes"; then
14982 # Use make's target variable to derive import library name.
14983 pluginlibs='-Wl,--export-all-symbols -Wl,--out-implib=$@.a'
14984 plugin_check=no
14987 *-*-darwin*)
14988 if test x$build = x$host; then
14989 export_sym_check="nm${exeext} -g"
14990 elif test x$host = x$target; then
14991 export_sym_check="$gcc_cv_nm -g"
14992 else
14993 export_sym_check=
14997 if test x$build = x$host; then
14998 export_sym_check="objdump${exeext} -T"
14999 elif test x$host = x$target; then
15000 export_sym_check="$gcc_cv_objdump -T"
15001 else
15002 export_sym_check=
15005 esac
15007 if test x"$enable_plugin" = x"yes" -a x"$plugin_check" = x"yes"; then
15009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
15010 $as_echo_n "checking for exported symbols... " >&6; }
15011 if test "x$export_sym_check" != x; then
15012 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
15013 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c -o conftest$ac_exeext > /dev/null 2>&1
15014 if $export_sym_check conftest$ac_exeext | grep foobar > /dev/null; then
15015 : # No need to use a flag
15016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15017 $as_echo "yes" >&6; }
15018 else
15019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15020 $as_echo "yes" >&6; }
15021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
15022 $as_echo_n "checking for -rdynamic... " >&6; }
15023 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c -o conftest$ac_exeext > /dev/null 2>&1
15024 if $export_sym_check conftest$ac_exeext | grep foobar > /dev/null; then
15025 plugin_rdynamic=yes
15026 pluginlibs="-rdynamic"
15027 else
15028 plugin_rdynamic=no
15029 enable_plugin=no
15031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
15032 $as_echo "$plugin_rdynamic" >&6; }
15034 else
15035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
15036 $as_echo "unable to check" >&6; }
15039 # Check -ldl
15040 saved_LIBS="$LIBS"
15041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
15042 $as_echo_n "checking for library containing dlopen... " >&6; }
15043 if ${ac_cv_search_dlopen+:} false; then :
15044 $as_echo_n "(cached) " >&6
15045 else
15046 ac_func_search_save_LIBS=$LIBS
15047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15048 /* end confdefs.h. */
15050 /* Override any GCC internal prototype to avoid an error.
15051 Use char because int might match the return type of a GCC
15052 builtin and then its argument prototype would still apply. */
15053 #ifdef __cplusplus
15054 extern "C"
15055 #endif
15056 char dlopen ();
15058 main ()
15060 return dlopen ();
15062 return 0;
15064 _ACEOF
15065 for ac_lib in '' dl; do
15066 if test -z "$ac_lib"; then
15067 ac_res="none required"
15068 else
15069 ac_res=-l$ac_lib
15070 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15072 if ac_fn_c_try_link "$LINENO"; then :
15073 ac_cv_search_dlopen=$ac_res
15075 rm -f core conftest.err conftest.$ac_objext \
15076 conftest$ac_exeext
15077 if ${ac_cv_search_dlopen+:} false; then :
15078 break
15080 done
15081 if ${ac_cv_search_dlopen+:} false; then :
15083 else
15084 ac_cv_search_dlopen=no
15086 rm conftest.$ac_ext
15087 LIBS=$ac_func_search_save_LIBS
15089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
15090 $as_echo "$ac_cv_search_dlopen" >&6; }
15091 ac_res=$ac_cv_search_dlopen
15092 if test "$ac_res" != no; then :
15093 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15097 if test x"$ac_cv_search_dlopen" = x"-ldl"; then
15098 pluginlibs="$pluginlibs -ldl"
15100 LIBS="$saved_LIBS"
15102 # Check that we can build shared objects with -fPIC -shared
15103 saved_LDFLAGS="$LDFLAGS"
15104 saved_CFLAGS="$CFLAGS"
15105 case "${host}" in
15106 *-*-darwin*)
15107 CFLAGS=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
15108 CFLAGS="$CFLAGS -fPIC"
15109 LDFLAGS="$LDFLAGS -shared -undefined dynamic_lookup"
15112 CFLAGS="$CFLAGS -fPIC"
15113 LDFLAGS="$LDFLAGS -fPIC -shared"
15115 esac
15116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
15117 $as_echo_n "checking for -fPIC -shared... " >&6; }
15118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15119 /* end confdefs.h. */
15120 extern int X;
15122 main ()
15124 return X == 0;
15126 return 0;
15128 _ACEOF
15129 if ac_fn_c_try_link "$LINENO"; then :
15130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15131 $as_echo "yes" >&6; }; have_pic_shared=yes
15132 else
15133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15134 $as_echo "no" >&6; }; have_pic_shared=no
15136 rm -f core conftest.err conftest.$ac_objext \
15137 conftest$ac_exeext conftest.$ac_ext
15138 if test x"$have_pic_shared" != x"yes" -o x"$ac_cv_search_dlopen" = x"no"; then
15139 pluginlibs=
15140 enable_plugin=no
15142 LDFLAGS="$saved_LDFLAGS"
15143 CFLAGS="$saved_CFLAGS"
15145 # If plugin support had been requested but not available, fail.
15146 if test x"$enable_plugin" = x"no" ; then
15147 if test x"$default_plugin" != x"yes"; then
15148 as_fn_error $? "
15149 Building GCC with plugin support requires a host that supports
15150 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
15155 ac_fn_c_check_func "$LINENO" "socketpair" "ac_cv_func_socketpair"
15156 if test "x$ac_cv_func_socketpair" = xyes; then :
15158 else
15159 enable_plugin=no
15162 ac_fn_c_check_func "$LINENO" "select" "ac_cv_func_select"
15163 if test "x$ac_cv_func_select" = xyes; then :
15165 else
15166 enable_plugin=no
15169 ac_fn_c_check_func "$LINENO" "fork" "ac_cv_func_fork"
15170 if test "x$ac_cv_func_fork" = xyes; then :
15172 else
15173 enable_plugin=no
15176 if test $enable_plugin = yes; then
15177 ENABLE_PLUGIN_TRUE=
15178 ENABLE_PLUGIN_FALSE='#'
15179 else
15180 ENABLE_PLUGIN_TRUE='#'
15181 ENABLE_PLUGIN_FALSE=
15185 ac_config_files="$ac_config_files Makefile"
15187 cat >confcache <<\_ACEOF
15188 # This file is a shell script that caches the results of configure
15189 # tests run on this system so they can be shared between configure
15190 # scripts and configure runs, see configure's option --config-cache.
15191 # It is not useful on other systems. If it contains results you don't
15192 # want to keep, you may remove or edit it.
15194 # config.status only pays attention to the cache file if you give it
15195 # the --recheck option to rerun configure.
15197 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15198 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15199 # following values.
15201 _ACEOF
15203 # The following way of writing the cache mishandles newlines in values,
15204 # but we know of no workaround that is simple, portable, and efficient.
15205 # So, we kill variables containing newlines.
15206 # Ultrix sh set writes to stderr and can't be redirected directly,
15207 # and sets the high bit in the cache file unless we assign to the vars.
15209 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15210 eval ac_val=\$$ac_var
15211 case $ac_val in #(
15212 *${as_nl}*)
15213 case $ac_var in #(
15214 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15215 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15216 esac
15217 case $ac_var in #(
15218 _ | IFS | as_nl) ;; #(
15219 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15220 *) { eval $ac_var=; unset $ac_var;} ;;
15221 esac ;;
15222 esac
15223 done
15225 (set) 2>&1 |
15226 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15227 *${as_nl}ac_space=\ *)
15228 # `set' does not quote correctly, so add quotes: double-quote
15229 # substitution turns \\\\ into \\, and sed turns \\ into \.
15230 sed -n \
15231 "s/'/'\\\\''/g;
15232 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15233 ;; #(
15235 # `set' quotes correctly as required by POSIX, so do not add quotes.
15236 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15238 esac |
15239 sort
15241 sed '
15242 /^ac_cv_env_/b end
15243 t clear
15244 :clear
15245 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15246 t end
15247 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15248 :end' >>confcache
15249 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15250 if test -w "$cache_file"; then
15251 if test "x$cache_file" != "x/dev/null"; then
15252 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15253 $as_echo "$as_me: updating cache $cache_file" >&6;}
15254 if test ! -f "$cache_file" || test -h "$cache_file"; then
15255 cat confcache >"$cache_file"
15256 else
15257 case $cache_file in #(
15258 */* | ?:*)
15259 mv -f confcache "$cache_file"$$ &&
15260 mv -f "$cache_file"$$ "$cache_file" ;; #(
15262 mv -f confcache "$cache_file" ;;
15263 esac
15266 else
15267 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15268 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15271 rm -f confcache
15273 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15274 # Let make expand exec_prefix.
15275 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15277 DEFS=-DHAVE_CONFIG_H
15279 ac_libobjs=
15280 ac_ltlibobjs=
15282 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15283 # 1. Remove the extension, and $U if already installed.
15284 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15285 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15286 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15287 # will be set to the directory where LIBOBJS objects are built.
15288 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15289 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15290 done
15291 LIBOBJS=$ac_libobjs
15293 LTLIBOBJS=$ac_ltlibobjs
15296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
15297 $as_echo_n "checking that generated files are newer than configure... " >&6; }
15298 if test -n "$am_sleep_pid"; then
15299 # Hide warnings about reused PIDs.
15300 wait $am_sleep_pid 2>/dev/null
15302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
15303 $as_echo "done" >&6; }
15304 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15305 as_fn_error $? "conditional \"AMDEP\" was never defined.
15306 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15308 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15309 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
15310 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15312 if test -n "$EXEEXT"; then
15313 am__EXEEXT_TRUE=
15314 am__EXEEXT_FALSE='#'
15315 else
15316 am__EXEEXT_TRUE='#'
15317 am__EXEEXT_FALSE=
15320 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15321 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
15322 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15324 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
15325 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
15326 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15328 if test -z "${ENABLE_PLUGIN_TRUE}" && test -z "${ENABLE_PLUGIN_FALSE}"; then
15329 as_fn_error $? "conditional \"ENABLE_PLUGIN\" was never defined.
15330 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15333 : "${CONFIG_STATUS=./config.status}"
15334 ac_write_fail=0
15335 ac_clean_files_save=$ac_clean_files
15336 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15337 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15338 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15339 as_write_fail=0
15340 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15341 #! $SHELL
15342 # Generated by $as_me.
15343 # Run this file to recreate the current configuration.
15344 # Compiler output produced by configure, useful for debugging
15345 # configure, is in config.log if it exists.
15347 debug=false
15348 ac_cs_recheck=false
15349 ac_cs_silent=false
15351 SHELL=\${CONFIG_SHELL-$SHELL}
15352 export SHELL
15353 _ASEOF
15354 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15355 ## -------------------- ##
15356 ## M4sh Initialization. ##
15357 ## -------------------- ##
15359 # Be more Bourne compatible
15360 DUALCASE=1; export DUALCASE # for MKS sh
15361 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15362 emulate sh
15363 NULLCMD=:
15364 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15365 # is contrary to our usage. Disable this feature.
15366 alias -g '${1+"$@"}'='"$@"'
15367 setopt NO_GLOB_SUBST
15368 else
15369 case `(set -o) 2>/dev/null` in #(
15370 *posix*) :
15371 set -o posix ;; #(
15372 *) :
15374 esac
15378 as_nl='
15380 export as_nl
15381 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15382 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15383 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15384 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15385 # Prefer a ksh shell builtin over an external printf program on Solaris,
15386 # but without wasting forks for bash or zsh.
15387 if test -z "$BASH_VERSION$ZSH_VERSION" \
15388 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15389 as_echo='print -r --'
15390 as_echo_n='print -rn --'
15391 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15392 as_echo='printf %s\n'
15393 as_echo_n='printf %s'
15394 else
15395 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15396 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15397 as_echo_n='/usr/ucb/echo -n'
15398 else
15399 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15400 as_echo_n_body='eval
15401 arg=$1;
15402 case $arg in #(
15403 *"$as_nl"*)
15404 expr "X$arg" : "X\\(.*\\)$as_nl";
15405 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15406 esac;
15407 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15409 export as_echo_n_body
15410 as_echo_n='sh -c $as_echo_n_body as_echo'
15412 export as_echo_body
15413 as_echo='sh -c $as_echo_body as_echo'
15416 # The user is always right.
15417 if test "${PATH_SEPARATOR+set}" != set; then
15418 PATH_SEPARATOR=:
15419 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15420 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15421 PATH_SEPARATOR=';'
15426 # IFS
15427 # We need space, tab and new line, in precisely that order. Quoting is
15428 # there to prevent editors from complaining about space-tab.
15429 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15430 # splitting by setting IFS to empty value.)
15431 IFS=" "" $as_nl"
15433 # Find who we are. Look in the path if we contain no directory separator.
15434 as_myself=
15435 case $0 in #((
15436 *[\\/]* ) as_myself=$0 ;;
15437 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15438 for as_dir in $PATH
15440 IFS=$as_save_IFS
15441 test -z "$as_dir" && as_dir=.
15442 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15443 done
15444 IFS=$as_save_IFS
15447 esac
15448 # We did not find ourselves, most probably we were run as `sh COMMAND'
15449 # in which case we are not to be found in the path.
15450 if test "x$as_myself" = x; then
15451 as_myself=$0
15453 if test ! -f "$as_myself"; then
15454 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15455 exit 1
15458 # Unset variables that we do not need and which cause bugs (e.g. in
15459 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15460 # suppresses any "Segmentation fault" message there. '((' could
15461 # trigger a bug in pdksh 5.2.14.
15462 for as_var in BASH_ENV ENV MAIL MAILPATH
15463 do eval test x\${$as_var+set} = xset \
15464 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15465 done
15466 PS1='$ '
15467 PS2='> '
15468 PS4='+ '
15470 # NLS nuisances.
15471 LC_ALL=C
15472 export LC_ALL
15473 LANGUAGE=C
15474 export LANGUAGE
15476 # CDPATH.
15477 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15480 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15481 # ----------------------------------------
15482 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15483 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15484 # script with STATUS, using 1 if that was 0.
15485 as_fn_error ()
15487 as_status=$1; test $as_status -eq 0 && as_status=1
15488 if test "$4"; then
15489 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15490 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15492 $as_echo "$as_me: error: $2" >&2
15493 as_fn_exit $as_status
15494 } # as_fn_error
15497 # as_fn_set_status STATUS
15498 # -----------------------
15499 # Set $? to STATUS, without forking.
15500 as_fn_set_status ()
15502 return $1
15503 } # as_fn_set_status
15505 # as_fn_exit STATUS
15506 # -----------------
15507 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15508 as_fn_exit ()
15510 set +e
15511 as_fn_set_status $1
15512 exit $1
15513 } # as_fn_exit
15515 # as_fn_unset VAR
15516 # ---------------
15517 # Portably unset VAR.
15518 as_fn_unset ()
15520 { eval $1=; unset $1;}
15522 as_unset=as_fn_unset
15523 # as_fn_append VAR VALUE
15524 # ----------------------
15525 # Append the text in VALUE to the end of the definition contained in VAR. Take
15526 # advantage of any shell optimizations that allow amortized linear growth over
15527 # repeated appends, instead of the typical quadratic growth present in naive
15528 # implementations.
15529 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15530 eval 'as_fn_append ()
15532 eval $1+=\$2
15534 else
15535 as_fn_append ()
15537 eval $1=\$$1\$2
15539 fi # as_fn_append
15541 # as_fn_arith ARG...
15542 # ------------------
15543 # Perform arithmetic evaluation on the ARGs, and store the result in the
15544 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15545 # must be portable across $(()) and expr.
15546 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15547 eval 'as_fn_arith ()
15549 as_val=$(( $* ))
15551 else
15552 as_fn_arith ()
15554 as_val=`expr "$@" || test $? -eq 1`
15556 fi # as_fn_arith
15559 if expr a : '\(a\)' >/dev/null 2>&1 &&
15560 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15561 as_expr=expr
15562 else
15563 as_expr=false
15566 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15567 as_basename=basename
15568 else
15569 as_basename=false
15572 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15573 as_dirname=dirname
15574 else
15575 as_dirname=false
15578 as_me=`$as_basename -- "$0" ||
15579 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15580 X"$0" : 'X\(//\)$' \| \
15581 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15582 $as_echo X/"$0" |
15583 sed '/^.*\/\([^/][^/]*\)\/*$/{
15584 s//\1/
15587 /^X\/\(\/\/\)$/{
15588 s//\1/
15591 /^X\/\(\/\).*/{
15592 s//\1/
15595 s/.*/./; q'`
15597 # Avoid depending upon Character Ranges.
15598 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15599 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15600 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15601 as_cr_digits='0123456789'
15602 as_cr_alnum=$as_cr_Letters$as_cr_digits
15604 ECHO_C= ECHO_N= ECHO_T=
15605 case `echo -n x` in #(((((
15606 -n*)
15607 case `echo 'xy\c'` in
15608 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15609 xy) ECHO_C='\c';;
15610 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15611 ECHO_T=' ';;
15612 esac;;
15614 ECHO_N='-n';;
15615 esac
15617 rm -f conf$$ conf$$.exe conf$$.file
15618 if test -d conf$$.dir; then
15619 rm -f conf$$.dir/conf$$.file
15620 else
15621 rm -f conf$$.dir
15622 mkdir conf$$.dir 2>/dev/null
15624 if (echo >conf$$.file) 2>/dev/null; then
15625 if ln -s conf$$.file conf$$ 2>/dev/null; then
15626 as_ln_s='ln -s'
15627 # ... but there are two gotchas:
15628 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15629 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15630 # In both cases, we have to default to `cp -pR'.
15631 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15632 as_ln_s='cp -pR'
15633 elif ln conf$$.file conf$$ 2>/dev/null; then
15634 as_ln_s=ln
15635 else
15636 as_ln_s='cp -pR'
15638 else
15639 as_ln_s='cp -pR'
15641 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15642 rmdir conf$$.dir 2>/dev/null
15645 # as_fn_mkdir_p
15646 # -------------
15647 # Create "$as_dir" as a directory, including parents if necessary.
15648 as_fn_mkdir_p ()
15651 case $as_dir in #(
15652 -*) as_dir=./$as_dir;;
15653 esac
15654 test -d "$as_dir" || eval $as_mkdir_p || {
15655 as_dirs=
15656 while :; do
15657 case $as_dir in #(
15658 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15659 *) as_qdir=$as_dir;;
15660 esac
15661 as_dirs="'$as_qdir' $as_dirs"
15662 as_dir=`$as_dirname -- "$as_dir" ||
15663 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15664 X"$as_dir" : 'X\(//\)[^/]' \| \
15665 X"$as_dir" : 'X\(//\)$' \| \
15666 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15667 $as_echo X"$as_dir" |
15668 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15669 s//\1/
15672 /^X\(\/\/\)[^/].*/{
15673 s//\1/
15676 /^X\(\/\/\)$/{
15677 s//\1/
15680 /^X\(\/\).*/{
15681 s//\1/
15684 s/.*/./; q'`
15685 test -d "$as_dir" && break
15686 done
15687 test -z "$as_dirs" || eval "mkdir $as_dirs"
15688 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15691 } # as_fn_mkdir_p
15692 if mkdir -p . 2>/dev/null; then
15693 as_mkdir_p='mkdir -p "$as_dir"'
15694 else
15695 test -d ./-p && rmdir ./-p
15696 as_mkdir_p=false
15700 # as_fn_executable_p FILE
15701 # -----------------------
15702 # Test if FILE is an executable regular file.
15703 as_fn_executable_p ()
15705 test -f "$1" && test -x "$1"
15706 } # as_fn_executable_p
15707 as_test_x='test -x'
15708 as_executable_p=as_fn_executable_p
15710 # Sed expression to map a string onto a valid CPP name.
15711 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15713 # Sed expression to map a string onto a valid variable name.
15714 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15717 exec 6>&1
15718 ## ----------------------------------- ##
15719 ## Main body of $CONFIG_STATUS script. ##
15720 ## ----------------------------------- ##
15721 _ASEOF
15722 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15724 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15725 # Save the log message, to keep $0 and so on meaningful, and to
15726 # report actual input values of CONFIG_FILES etc. instead of their
15727 # values after options handling.
15728 ac_log="
15729 This file was extended by libcc1 $as_me version-unused, which was
15730 generated by GNU Autoconf 2.69. Invocation command line was
15732 CONFIG_FILES = $CONFIG_FILES
15733 CONFIG_HEADERS = $CONFIG_HEADERS
15734 CONFIG_LINKS = $CONFIG_LINKS
15735 CONFIG_COMMANDS = $CONFIG_COMMANDS
15736 $ $0 $@
15738 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15741 _ACEOF
15743 case $ac_config_files in *"
15744 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15745 esac
15747 case $ac_config_headers in *"
15748 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15749 esac
15752 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15753 # Files that config.status was made for.
15754 config_files="$ac_config_files"
15755 config_headers="$ac_config_headers"
15756 config_commands="$ac_config_commands"
15758 _ACEOF
15760 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15761 ac_cs_usage="\
15762 \`$as_me' instantiates files and other configuration actions
15763 from templates according to the current configuration. Unless the files
15764 and actions are specified as TAGs, all are instantiated by default.
15766 Usage: $0 [OPTION]... [TAG]...
15768 -h, --help print this help, then exit
15769 -V, --version print version number and configuration settings, then exit
15770 --config print configuration, then exit
15771 -q, --quiet, --silent
15772 do not print progress messages
15773 -d, --debug don't remove temporary files
15774 --recheck update $as_me by reconfiguring in the same conditions
15775 --file=FILE[:TEMPLATE]
15776 instantiate the configuration file FILE
15777 --header=FILE[:TEMPLATE]
15778 instantiate the configuration header FILE
15780 Configuration files:
15781 $config_files
15783 Configuration headers:
15784 $config_headers
15786 Configuration commands:
15787 $config_commands
15789 Report bugs to the package provider."
15791 _ACEOF
15792 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15793 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15794 ac_cs_version="\\
15795 libcc1 config.status version-unused
15796 configured by $0, generated by GNU Autoconf 2.69,
15797 with options \\"\$ac_cs_config\\"
15799 Copyright (C) 2012 Free Software Foundation, Inc.
15800 This config.status script is free software; the Free Software Foundation
15801 gives unlimited permission to copy, distribute and modify it."
15803 ac_pwd='$ac_pwd'
15804 srcdir='$srcdir'
15805 INSTALL='$INSTALL'
15806 MKDIR_P='$MKDIR_P'
15807 AWK='$AWK'
15808 test -n "\$AWK" || AWK=awk
15809 _ACEOF
15811 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15812 # The default lists apply if the user does not specify any file.
15813 ac_need_defaults=:
15814 while test $# != 0
15816 case $1 in
15817 --*=?*)
15818 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15819 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15820 ac_shift=:
15822 --*=)
15823 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15824 ac_optarg=
15825 ac_shift=:
15828 ac_option=$1
15829 ac_optarg=$2
15830 ac_shift=shift
15832 esac
15834 case $ac_option in
15835 # Handling of the options.
15836 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15837 ac_cs_recheck=: ;;
15838 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15839 $as_echo "$ac_cs_version"; exit ;;
15840 --config | --confi | --conf | --con | --co | --c )
15841 $as_echo "$ac_cs_config"; exit ;;
15842 --debug | --debu | --deb | --de | --d | -d )
15843 debug=: ;;
15844 --file | --fil | --fi | --f )
15845 $ac_shift
15846 case $ac_optarg in
15847 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15848 '') as_fn_error $? "missing file argument" ;;
15849 esac
15850 as_fn_append CONFIG_FILES " '$ac_optarg'"
15851 ac_need_defaults=false;;
15852 --header | --heade | --head | --hea )
15853 $ac_shift
15854 case $ac_optarg in
15855 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15856 esac
15857 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15858 ac_need_defaults=false;;
15859 --he | --h)
15860 # Conflict between --help and --header
15861 as_fn_error $? "ambiguous option: \`$1'
15862 Try \`$0 --help' for more information.";;
15863 --help | --hel | -h )
15864 $as_echo "$ac_cs_usage"; exit ;;
15865 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15866 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15867 ac_cs_silent=: ;;
15869 # This is an error.
15870 -*) as_fn_error $? "unrecognized option: \`$1'
15871 Try \`$0 --help' for more information." ;;
15873 *) as_fn_append ac_config_targets " $1"
15874 ac_need_defaults=false ;;
15876 esac
15877 shift
15878 done
15880 ac_configure_extra_args=
15882 if $ac_cs_silent; then
15883 exec 6>/dev/null
15884 ac_configure_extra_args="$ac_configure_extra_args --silent"
15887 _ACEOF
15888 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15889 if \$ac_cs_recheck; then
15890 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15891 shift
15892 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15893 CONFIG_SHELL='$SHELL'
15894 export CONFIG_SHELL
15895 exec "\$@"
15898 _ACEOF
15899 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15900 exec 5>>config.log
15902 echo
15903 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15904 ## Running $as_me. ##
15905 _ASBOX
15906 $as_echo "$ac_log"
15907 } >&5
15909 _ACEOF
15910 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15912 # INIT-COMMANDS
15914 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15917 # The HP-UX ksh and POSIX shell print the target directory to stdout
15918 # if CDPATH is set.
15919 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15921 sed_quote_subst='$sed_quote_subst'
15922 double_quote_subst='$double_quote_subst'
15923 delay_variable_subst='$delay_variable_subst'
15924 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15925 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15926 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15927 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15928 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15929 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15930 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15931 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15932 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15933 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15934 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15935 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15936 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15937 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15938 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15939 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15940 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15941 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15942 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15943 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15944 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15945 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15946 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15947 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15948 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15949 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15950 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15951 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15952 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15953 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15954 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15955 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15956 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15957 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15958 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15959 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15960 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15961 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15962 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15963 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15964 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15965 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15966 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15967 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15968 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15969 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15970 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15971 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15972 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"`'
15973 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15974 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15975 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15976 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15977 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15978 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15979 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15980 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15981 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15982 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15983 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15984 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15985 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15986 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15987 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15988 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15989 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15990 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15991 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15992 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15993 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15994 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15995 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15996 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15997 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15998 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15999 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16000 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16001 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16002 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16003 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16004 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
16005 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16006 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16007 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16008 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16009 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16010 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16011 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16012 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16013 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
16014 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16015 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16016 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16017 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16018 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16019 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16020 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16021 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16022 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16023 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16024 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16025 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16026 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16027 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16028 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16029 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16030 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16031 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16032 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16033 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16034 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16035 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16036 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16037 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
16038 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16039 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16040 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16041 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16042 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16043 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16044 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
16045 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
16046 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
16047 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
16048 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
16049 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
16050 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
16051 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
16052 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16053 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16054 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
16055 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
16056 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
16057 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
16058 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
16059 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
16060 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
16061 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
16062 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
16063 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
16064 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
16065 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
16066 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16067 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16068 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16069 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16070 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16071 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16072 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
16073 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
16074 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
16075 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
16076 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
16077 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
16078 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
16079 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
16080 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
16081 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
16082 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
16083 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
16084 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
16085 fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
16086 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
16087 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16088 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
16089 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
16090 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16091 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
16092 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
16093 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
16094 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
16095 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
16096 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
16097 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
16098 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
16100 LTCC='$LTCC'
16101 LTCFLAGS='$LTCFLAGS'
16102 compiler='$compiler_DEFAULT'
16104 # A function that is used when there is no print builtin or printf.
16105 func_fallback_echo ()
16107 eval 'cat <<_LTECHO_EOF
16109 _LTECHO_EOF'
16112 # Quote evaled strings.
16113 for var in SHELL \
16114 ECHO \
16115 SED \
16116 GREP \
16117 EGREP \
16118 FGREP \
16119 LD \
16120 NM \
16121 LN_S \
16122 lt_SP2NL \
16123 lt_NL2SP \
16124 reload_flag \
16125 OBJDUMP \
16126 deplibs_check_method \
16127 file_magic_cmd \
16128 AR \
16129 AR_FLAGS \
16130 STRIP \
16131 RANLIB \
16132 CC \
16133 CFLAGS \
16134 compiler \
16135 lt_cv_sys_global_symbol_pipe \
16136 lt_cv_sys_global_symbol_to_cdecl \
16137 lt_cv_sys_global_symbol_to_c_name_address \
16138 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16139 lt_prog_compiler_no_builtin_flag \
16140 lt_prog_compiler_wl \
16141 lt_prog_compiler_pic \
16142 lt_prog_compiler_static \
16143 lt_cv_prog_compiler_c_o \
16144 need_locks \
16145 DSYMUTIL \
16146 NMEDIT \
16147 LIPO \
16148 OTOOL \
16149 OTOOL64 \
16150 shrext_cmds \
16151 export_dynamic_flag_spec \
16152 whole_archive_flag_spec \
16153 compiler_needs_object \
16154 with_gnu_ld \
16155 allow_undefined_flag \
16156 no_undefined_flag \
16157 hardcode_libdir_flag_spec \
16158 hardcode_libdir_flag_spec_ld \
16159 hardcode_libdir_separator \
16160 fix_srcfile_path \
16161 exclude_expsyms \
16162 include_expsyms \
16163 file_list_spec \
16164 variables_saved_for_relink \
16165 libname_spec \
16166 library_names_spec \
16167 soname_spec \
16168 install_override_mode \
16169 finish_eval \
16170 old_striplib \
16171 striplib \
16172 compiler_lib_search_dirs \
16173 predep_objects \
16174 postdep_objects \
16175 predeps \
16176 postdeps \
16177 compiler_lib_search_path \
16178 LD_CXX \
16179 reload_flag_CXX \
16180 compiler_CXX \
16181 lt_prog_compiler_no_builtin_flag_CXX \
16182 lt_prog_compiler_wl_CXX \
16183 lt_prog_compiler_pic_CXX \
16184 lt_prog_compiler_static_CXX \
16185 lt_cv_prog_compiler_c_o_CXX \
16186 export_dynamic_flag_spec_CXX \
16187 whole_archive_flag_spec_CXX \
16188 compiler_needs_object_CXX \
16189 with_gnu_ld_CXX \
16190 allow_undefined_flag_CXX \
16191 no_undefined_flag_CXX \
16192 hardcode_libdir_flag_spec_CXX \
16193 hardcode_libdir_flag_spec_ld_CXX \
16194 hardcode_libdir_separator_CXX \
16195 fix_srcfile_path_CXX \
16196 exclude_expsyms_CXX \
16197 include_expsyms_CXX \
16198 file_list_spec_CXX \
16199 compiler_lib_search_dirs_CXX \
16200 predep_objects_CXX \
16201 postdep_objects_CXX \
16202 predeps_CXX \
16203 postdeps_CXX \
16204 compiler_lib_search_path_CXX; do
16205 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16206 *[\\\\\\\`\\"\\\$]*)
16207 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16210 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16212 esac
16213 done
16215 # Double-quote double-evaled strings.
16216 for var in reload_cmds \
16217 old_postinstall_cmds \
16218 old_postuninstall_cmds \
16219 old_archive_cmds \
16220 extract_expsyms_cmds \
16221 old_archive_from_new_cmds \
16222 old_archive_from_expsyms_cmds \
16223 archive_cmds \
16224 archive_expsym_cmds \
16225 module_cmds \
16226 module_expsym_cmds \
16227 export_symbols_cmds \
16228 prelink_cmds \
16229 postinstall_cmds \
16230 postuninstall_cmds \
16231 finish_cmds \
16232 sys_lib_search_path_spec \
16233 sys_lib_dlsearch_path_spec \
16234 reload_cmds_CXX \
16235 old_archive_cmds_CXX \
16236 old_archive_from_new_cmds_CXX \
16237 old_archive_from_expsyms_cmds_CXX \
16238 archive_cmds_CXX \
16239 archive_expsym_cmds_CXX \
16240 module_cmds_CXX \
16241 module_expsym_cmds_CXX \
16242 export_symbols_cmds_CXX \
16243 prelink_cmds_CXX; do
16244 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16245 *[\\\\\\\`\\"\\\$]*)
16246 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16249 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16251 esac
16252 done
16254 ac_aux_dir='$ac_aux_dir'
16255 xsi_shell='$xsi_shell'
16256 lt_shell_append='$lt_shell_append'
16258 # See if we are running on zsh, and set the options which allow our
16259 # commands through without removal of \ escapes INIT.
16260 if test -n "\${ZSH_VERSION+set}" ; then
16261 setopt NO_GLOB_SUBST
16265 PACKAGE='$PACKAGE'
16266 VERSION='$VERSION'
16267 TIMESTAMP='$TIMESTAMP'
16268 RM='$RM'
16269 ofile='$ofile'
16276 _ACEOF
16278 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16280 # Handling of arguments.
16281 for ac_config_target in $ac_config_targets
16283 case $ac_config_target in
16284 "cc1plugin-config.h") CONFIG_HEADERS="$CONFIG_HEADERS cc1plugin-config.h" ;;
16285 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16286 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16287 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16289 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16290 esac
16291 done
16294 # If the user did not use the arguments to specify the items to instantiate,
16295 # then the envvar interface is used. Set only those that are not.
16296 # We use the long form for the default assignment because of an extremely
16297 # bizarre bug on SunOS 4.1.3.
16298 if $ac_need_defaults; then
16299 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16300 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16301 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16304 # Have a temporary directory for convenience. Make it in the build tree
16305 # simply because there is no reason against having it here, and in addition,
16306 # creating and moving files from /tmp can sometimes cause problems.
16307 # Hook for its removal unless debugging.
16308 # Note that there is a small window in which the directory will not be cleaned:
16309 # after its creation but before its name has been assigned to `$tmp'.
16310 $debug ||
16312 tmp= ac_tmp=
16313 trap 'exit_status=$?
16314 : "${ac_tmp:=$tmp}"
16315 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16317 trap 'as_fn_exit 1' 1 2 13 15
16319 # Create a (secure) tmp directory for tmp files.
16322 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16323 test -d "$tmp"
16324 } ||
16326 tmp=./conf$$-$RANDOM
16327 (umask 077 && mkdir "$tmp")
16328 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16329 ac_tmp=$tmp
16331 # Set up the scripts for CONFIG_FILES section.
16332 # No need to generate them if there are no CONFIG_FILES.
16333 # This happens for instance with `./config.status config.h'.
16334 if test -n "$CONFIG_FILES"; then
16337 ac_cr=`echo X | tr X '\015'`
16338 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16339 # But we know of no other shell where ac_cr would be empty at this
16340 # point, so we can use a bashism as a fallback.
16341 if test "x$ac_cr" = x; then
16342 eval ac_cr=\$\'\\r\'
16344 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16345 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16346 ac_cs_awk_cr='\\r'
16347 else
16348 ac_cs_awk_cr=$ac_cr
16351 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16352 _ACEOF
16356 echo "cat >conf$$subs.awk <<_ACEOF" &&
16357 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16358 echo "_ACEOF"
16359 } >conf$$subs.sh ||
16360 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16361 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16362 ac_delim='%!_!# '
16363 for ac_last_try in false false false false false :; do
16364 . ./conf$$subs.sh ||
16365 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16367 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16368 if test $ac_delim_n = $ac_delim_num; then
16369 break
16370 elif $ac_last_try; then
16371 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16372 else
16373 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16375 done
16376 rm -f conf$$subs.sh
16378 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16379 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16380 _ACEOF
16381 sed -n '
16383 s/^/S["/; s/!.*/"]=/
16386 s/^[^!]*!//
16387 :repl
16388 t repl
16389 s/'"$ac_delim"'$//
16390 t delim
16393 s/\(.\{148\}\)..*/\1/
16394 t more1
16395 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16398 b repl
16399 :more1
16400 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16403 s/.\{148\}//
16404 t nl
16405 :delim
16407 s/\(.\{148\}\)..*/\1/
16408 t more2
16409 s/["\\]/\\&/g; s/^/"/; s/$/"/
16412 :more2
16413 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16416 s/.\{148\}//
16417 t delim
16418 ' <conf$$subs.awk | sed '
16419 /^[^""]/{
16421 s/\n//
16423 ' >>$CONFIG_STATUS || ac_write_fail=1
16424 rm -f conf$$subs.awk
16425 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16426 _ACAWK
16427 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16428 for (key in S) S_is_set[key] = 1
16429 FS = "\a"
16433 line = $ 0
16434 nfields = split(line, field, "@")
16435 substed = 0
16436 len = length(field[1])
16437 for (i = 2; i < nfields; i++) {
16438 key = field[i]
16439 keylen = length(key)
16440 if (S_is_set[key]) {
16441 value = S[key]
16442 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16443 len += length(value) + length(field[++i])
16444 substed = 1
16445 } else
16446 len += 1 + keylen
16449 print line
16452 _ACAWK
16453 _ACEOF
16454 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16455 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16456 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16457 else
16459 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16460 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16461 _ACEOF
16463 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16464 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16465 # trailing colons and then remove the whole line if VPATH becomes empty
16466 # (actually we leave an empty line to preserve line numbers).
16467 if test "x$srcdir" = x.; then
16468 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16470 s///
16471 s/^/:/
16472 s/[ ]*$/:/
16473 s/:\$(srcdir):/:/g
16474 s/:\${srcdir}:/:/g
16475 s/:@srcdir@:/:/g
16476 s/^:*//
16477 s/:*$//
16479 s/\(=[ ]*\).*/\1/
16481 s/\n//
16482 s/^[^=]*=[ ]*$//
16486 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16487 fi # test -n "$CONFIG_FILES"
16489 # Set up the scripts for CONFIG_HEADERS section.
16490 # No need to generate them if there are no CONFIG_HEADERS.
16491 # This happens for instance with `./config.status Makefile'.
16492 if test -n "$CONFIG_HEADERS"; then
16493 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16494 BEGIN {
16495 _ACEOF
16497 # Transform confdefs.h into an awk script `defines.awk', embedded as
16498 # here-document in config.status, that substitutes the proper values into
16499 # config.h.in to produce config.h.
16501 # Create a delimiter string that does not exist in confdefs.h, to ease
16502 # handling of long lines.
16503 ac_delim='%!_!# '
16504 for ac_last_try in false false :; do
16505 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16506 if test -z "$ac_tt"; then
16507 break
16508 elif $ac_last_try; then
16509 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16510 else
16511 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16513 done
16515 # For the awk script, D is an array of macro values keyed by name,
16516 # likewise P contains macro parameters if any. Preserve backslash
16517 # newline sequences.
16519 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16520 sed -n '
16521 s/.\{148\}/&'"$ac_delim"'/g
16522 t rset
16523 :rset
16524 s/^[ ]*#[ ]*define[ ][ ]*/ /
16525 t def
16527 :def
16528 s/\\$//
16529 t bsnl
16530 s/["\\]/\\&/g
16531 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16532 D["\1"]=" \3"/p
16533 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16535 :bsnl
16536 s/["\\]/\\&/g
16537 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16538 D["\1"]=" \3\\\\\\n"\\/p
16539 t cont
16540 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16541 t cont
16543 :cont
16545 s/.\{148\}/&'"$ac_delim"'/g
16546 t clear
16547 :clear
16548 s/\\$//
16549 t bsnlc
16550 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16552 :bsnlc
16553 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16554 b cont
16555 ' <confdefs.h | sed '
16556 s/'"$ac_delim"'/"\\\
16557 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16559 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16560 for (key in D) D_is_set[key] = 1
16561 FS = "\a"
16563 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16564 line = \$ 0
16565 split(line, arg, " ")
16566 if (arg[1] == "#") {
16567 defundef = arg[2]
16568 mac1 = arg[3]
16569 } else {
16570 defundef = substr(arg[1], 2)
16571 mac1 = arg[2]
16573 split(mac1, mac2, "(") #)
16574 macro = mac2[1]
16575 prefix = substr(line, 1, index(line, defundef) - 1)
16576 if (D_is_set[macro]) {
16577 # Preserve the white space surrounding the "#".
16578 print prefix "define", macro P[macro] D[macro]
16579 next
16580 } else {
16581 # Replace #undef with comments. This is necessary, for example,
16582 # in the case of _POSIX_SOURCE, which is predefined and required
16583 # on some systems where configure will not decide to define it.
16584 if (defundef == "undef") {
16585 print "/*", prefix defundef, macro, "*/"
16586 next
16590 { print }
16591 _ACAWK
16592 _ACEOF
16593 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16594 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16595 fi # test -n "$CONFIG_HEADERS"
16598 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16599 shift
16600 for ac_tag
16602 case $ac_tag in
16603 :[FHLC]) ac_mode=$ac_tag; continue;;
16604 esac
16605 case $ac_mode$ac_tag in
16606 :[FHL]*:*);;
16607 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16608 :[FH]-) ac_tag=-:-;;
16609 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16610 esac
16611 ac_save_IFS=$IFS
16612 IFS=:
16613 set x $ac_tag
16614 IFS=$ac_save_IFS
16615 shift
16616 ac_file=$1
16617 shift
16619 case $ac_mode in
16620 :L) ac_source=$1;;
16621 :[FH])
16622 ac_file_inputs=
16623 for ac_f
16625 case $ac_f in
16626 -) ac_f="$ac_tmp/stdin";;
16627 *) # Look for the file first in the build tree, then in the source tree
16628 # (if the path is not absolute). The absolute path cannot be DOS-style,
16629 # because $ac_f cannot contain `:'.
16630 test -f "$ac_f" ||
16631 case $ac_f in
16632 [\\/$]*) false;;
16633 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16634 esac ||
16635 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16636 esac
16637 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16638 as_fn_append ac_file_inputs " '$ac_f'"
16639 done
16641 # Let's still pretend it is `configure' which instantiates (i.e., don't
16642 # use $as_me), people would be surprised to read:
16643 # /* config.h. Generated by config.status. */
16644 configure_input='Generated from '`
16645 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16646 `' by configure.'
16647 if test x"$ac_file" != x-; then
16648 configure_input="$ac_file. $configure_input"
16649 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16650 $as_echo "$as_me: creating $ac_file" >&6;}
16652 # Neutralize special characters interpreted by sed in replacement strings.
16653 case $configure_input in #(
16654 *\&* | *\|* | *\\* )
16655 ac_sed_conf_input=`$as_echo "$configure_input" |
16656 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16657 *) ac_sed_conf_input=$configure_input;;
16658 esac
16660 case $ac_tag in
16661 *:-:* | *:-) cat >"$ac_tmp/stdin" \
16662 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16663 esac
16665 esac
16667 ac_dir=`$as_dirname -- "$ac_file" ||
16668 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16669 X"$ac_file" : 'X\(//\)[^/]' \| \
16670 X"$ac_file" : 'X\(//\)$' \| \
16671 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16672 $as_echo X"$ac_file" |
16673 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16674 s//\1/
16677 /^X\(\/\/\)[^/].*/{
16678 s//\1/
16681 /^X\(\/\/\)$/{
16682 s//\1/
16685 /^X\(\/\).*/{
16686 s//\1/
16689 s/.*/./; q'`
16690 as_dir="$ac_dir"; as_fn_mkdir_p
16691 ac_builddir=.
16693 case "$ac_dir" in
16694 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16696 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16697 # A ".." for each directory in $ac_dir_suffix.
16698 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16699 case $ac_top_builddir_sub in
16700 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16701 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16702 esac ;;
16703 esac
16704 ac_abs_top_builddir=$ac_pwd
16705 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16706 # for backward compatibility:
16707 ac_top_builddir=$ac_top_build_prefix
16709 case $srcdir in
16710 .) # We are building in place.
16711 ac_srcdir=.
16712 ac_top_srcdir=$ac_top_builddir_sub
16713 ac_abs_top_srcdir=$ac_pwd ;;
16714 [\\/]* | ?:[\\/]* ) # Absolute name.
16715 ac_srcdir=$srcdir$ac_dir_suffix;
16716 ac_top_srcdir=$srcdir
16717 ac_abs_top_srcdir=$srcdir ;;
16718 *) # Relative name.
16719 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16720 ac_top_srcdir=$ac_top_build_prefix$srcdir
16721 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16722 esac
16723 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16726 case $ac_mode in
16729 # CONFIG_FILE
16732 case $INSTALL in
16733 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16734 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16735 esac
16736 ac_MKDIR_P=$MKDIR_P
16737 case $MKDIR_P in
16738 [\\/$]* | ?:[\\/]* ) ;;
16739 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16740 esac
16741 _ACEOF
16743 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16744 # If the template does not know about datarootdir, expand it.
16745 # FIXME: This hack should be removed a few years after 2.60.
16746 ac_datarootdir_hack=; ac_datarootdir_seen=
16747 ac_sed_dataroot='
16748 /datarootdir/ {
16752 /@datadir@/p
16753 /@docdir@/p
16754 /@infodir@/p
16755 /@localedir@/p
16756 /@mandir@/p'
16757 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16758 *datarootdir*) ac_datarootdir_seen=yes;;
16759 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16760 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16761 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16762 _ACEOF
16763 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16764 ac_datarootdir_hack='
16765 s&@datadir@&$datadir&g
16766 s&@docdir@&$docdir&g
16767 s&@infodir@&$infodir&g
16768 s&@localedir@&$localedir&g
16769 s&@mandir@&$mandir&g
16770 s&\\\${datarootdir}&$datarootdir&g' ;;
16771 esac
16772 _ACEOF
16774 # Neutralize VPATH when `$srcdir' = `.'.
16775 # Shell code in configure.ac might set extrasub.
16776 # FIXME: do we really want to maintain this feature?
16777 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16778 ac_sed_extra="$ac_vpsub
16779 $extrasub
16780 _ACEOF
16781 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16783 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16784 s|@configure_input@|$ac_sed_conf_input|;t t
16785 s&@top_builddir@&$ac_top_builddir_sub&;t t
16786 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16787 s&@srcdir@&$ac_srcdir&;t t
16788 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16789 s&@top_srcdir@&$ac_top_srcdir&;t t
16790 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16791 s&@builddir@&$ac_builddir&;t t
16792 s&@abs_builddir@&$ac_abs_builddir&;t t
16793 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16794 s&@INSTALL@&$ac_INSTALL&;t t
16795 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16796 $ac_datarootdir_hack
16798 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16799 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16801 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16802 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16803 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16804 "$ac_tmp/out"`; test -z "$ac_out"; } &&
16805 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16806 which seems to be undefined. Please make sure it is defined" >&5
16807 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16808 which seems to be undefined. Please make sure it is defined" >&2;}
16810 rm -f "$ac_tmp/stdin"
16811 case $ac_file in
16812 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16813 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16814 esac \
16815 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16819 # CONFIG_HEADER
16821 if test x"$ac_file" != x-; then
16823 $as_echo "/* $configure_input */" \
16824 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16825 } >"$ac_tmp/config.h" \
16826 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16827 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16828 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16829 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16830 else
16831 rm -f "$ac_file"
16832 mv "$ac_tmp/config.h" "$ac_file" \
16833 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16835 else
16836 $as_echo "/* $configure_input */" \
16837 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16838 || as_fn_error $? "could not create -" "$LINENO" 5
16840 # Compute "$ac_file"'s index in $config_headers.
16841 _am_arg="$ac_file"
16842 _am_stamp_count=1
16843 for _am_header in $config_headers :; do
16844 case $_am_header in
16845 $_am_arg | $_am_arg:* )
16846 break ;;
16848 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16849 esac
16850 done
16851 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16852 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16853 X"$_am_arg" : 'X\(//\)[^/]' \| \
16854 X"$_am_arg" : 'X\(//\)$' \| \
16855 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16856 $as_echo X"$_am_arg" |
16857 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16858 s//\1/
16861 /^X\(\/\/\)[^/].*/{
16862 s//\1/
16865 /^X\(\/\/\)$/{
16866 s//\1/
16869 /^X\(\/\).*/{
16870 s//\1/
16873 s/.*/./; q'`/stamp-h$_am_stamp_count
16876 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16877 $as_echo "$as_me: executing $ac_file commands" >&6;}
16879 esac
16882 case $ac_file$ac_mode in
16883 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16884 # Older Autoconf quotes --file arguments for eval, but not when files
16885 # are listed without --file. Let's play safe and only enable the eval
16886 # if we detect the quoting.
16887 case $CONFIG_FILES in
16888 *\'*) eval set x "$CONFIG_FILES" ;;
16889 *) set x $CONFIG_FILES ;;
16890 esac
16891 shift
16892 for mf
16894 # Strip MF so we end up with the name of the file.
16895 mf=`echo "$mf" | sed -e 's/:.*$//'`
16896 # Check whether this is an Automake generated Makefile or not.
16897 # We used to match only the files named 'Makefile.in', but
16898 # some people rename them; so instead we look at the file content.
16899 # Grep'ing the first line is not enough: some people post-process
16900 # each Makefile.in and add a new line on top of each file to say so.
16901 # Grep'ing the whole file is not good either: AIX grep has a line
16902 # limit of 2048, but all sed's we know have understand at least 4000.
16903 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16904 dirpart=`$as_dirname -- "$mf" ||
16905 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16906 X"$mf" : 'X\(//\)[^/]' \| \
16907 X"$mf" : 'X\(//\)$' \| \
16908 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16909 $as_echo X"$mf" |
16910 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16911 s//\1/
16914 /^X\(\/\/\)[^/].*/{
16915 s//\1/
16918 /^X\(\/\/\)$/{
16919 s//\1/
16922 /^X\(\/\).*/{
16923 s//\1/
16926 s/.*/./; q'`
16927 else
16928 continue
16930 # Extract the definition of DEPDIR, am__include, and am__quote
16931 # from the Makefile without running 'make'.
16932 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16933 test -z "$DEPDIR" && continue
16934 am__include=`sed -n 's/^am__include = //p' < "$mf"`
16935 test -z "$am__include" && continue
16936 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16937 # Find all dependency output files, they are included files with
16938 # $(DEPDIR) in their names. We invoke sed twice because it is the
16939 # simplest approach to changing $(DEPDIR) to its actual value in the
16940 # expansion.
16941 for file in `sed -n "
16942 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16943 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
16944 # Make sure the directory exists.
16945 test -f "$dirpart/$file" && continue
16946 fdir=`$as_dirname -- "$file" ||
16947 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16948 X"$file" : 'X\(//\)[^/]' \| \
16949 X"$file" : 'X\(//\)$' \| \
16950 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16951 $as_echo X"$file" |
16952 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16953 s//\1/
16956 /^X\(\/\/\)[^/].*/{
16957 s//\1/
16960 /^X\(\/\/\)$/{
16961 s//\1/
16964 /^X\(\/\).*/{
16965 s//\1/
16968 s/.*/./; q'`
16969 as_dir=$dirpart/$fdir; as_fn_mkdir_p
16970 # echo "creating $dirpart/$file"
16971 echo '# dummy' > "$dirpart/$file"
16972 done
16973 done
16976 "libtool":C)
16978 # See if we are running on zsh, and set the options which allow our
16979 # commands through without removal of \ escapes.
16980 if test -n "${ZSH_VERSION+set}" ; then
16981 setopt NO_GLOB_SUBST
16984 cfgfile="${ofile}T"
16985 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16986 $RM "$cfgfile"
16988 cat <<_LT_EOF >> "$cfgfile"
16989 #! $SHELL
16991 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16992 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16993 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16994 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16996 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16997 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
16998 # Written by Gordon Matzigkeit, 1996
17000 # This file is part of GNU Libtool.
17002 # GNU Libtool is free software; you can redistribute it and/or
17003 # modify it under the terms of the GNU General Public License as
17004 # published by the Free Software Foundation; either version 2 of
17005 # the License, or (at your option) any later version.
17007 # As a special exception to the GNU General Public License,
17008 # if you distribute this file as part of a program or library that
17009 # is built using GNU Libtool, you may include this file under the
17010 # same distribution terms that you use for the rest of that program.
17012 # GNU Libtool is distributed in the hope that it will be useful,
17013 # but WITHOUT ANY WARRANTY; without even the implied warranty of
17014 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17015 # GNU General Public License for more details.
17017 # You should have received a copy of the GNU General Public License
17018 # along with GNU Libtool; see the file COPYING. If not, a copy
17019 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
17020 # obtained by writing to the Free Software Foundation, Inc.,
17021 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17024 # The names of the tagged configurations supported by this script.
17025 available_tags="CXX "
17027 # ### BEGIN LIBTOOL CONFIG
17029 # Which release of libtool.m4 was used?
17030 macro_version=$macro_version
17031 macro_revision=$macro_revision
17033 # Whether or not to build static libraries.
17034 build_old_libs=$enable_static
17036 # Whether or not to build shared libraries.
17037 build_libtool_libs=$enable_shared
17039 # What type of objects to build.
17040 pic_mode=$pic_mode
17042 # Whether or not to optimize for fast installation.
17043 fast_install=$enable_fast_install
17045 # Shell to use when invoking shell scripts.
17046 SHELL=$lt_SHELL
17048 # An echo program that protects backslashes.
17049 ECHO=$lt_ECHO
17051 # The host system.
17052 host_alias=$host_alias
17053 host=$host
17054 host_os=$host_os
17056 # The build system.
17057 build_alias=$build_alias
17058 build=$build
17059 build_os=$build_os
17061 # A sed program that does not truncate output.
17062 SED=$lt_SED
17064 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17065 Xsed="\$SED -e 1s/^X//"
17067 # A grep program that handles long lines.
17068 GREP=$lt_GREP
17070 # An ERE matcher.
17071 EGREP=$lt_EGREP
17073 # A literal string matcher.
17074 FGREP=$lt_FGREP
17076 # A BSD- or MS-compatible name lister.
17077 NM=$lt_NM
17079 # Whether we need soft or hard links.
17080 LN_S=$lt_LN_S
17082 # What is the maximum length of a command?
17083 max_cmd_len=$max_cmd_len
17085 # Object file suffix (normally "o").
17086 objext=$ac_objext
17088 # Executable file suffix (normally "").
17089 exeext=$exeext
17091 # whether the shell understands "unset".
17092 lt_unset=$lt_unset
17094 # turn spaces into newlines.
17095 SP2NL=$lt_lt_SP2NL
17097 # turn newlines into spaces.
17098 NL2SP=$lt_lt_NL2SP
17100 # An object symbol dumper.
17101 OBJDUMP=$lt_OBJDUMP
17103 # Method to check whether dependent libraries are shared objects.
17104 deplibs_check_method=$lt_deplibs_check_method
17106 # Command to use when deplibs_check_method == "file_magic".
17107 file_magic_cmd=$lt_file_magic_cmd
17109 # The archiver.
17110 AR=$lt_AR
17111 AR_FLAGS=$lt_AR_FLAGS
17113 # A symbol stripping program.
17114 STRIP=$lt_STRIP
17116 # Commands used to install an old-style archive.
17117 RANLIB=$lt_RANLIB
17118 old_postinstall_cmds=$lt_old_postinstall_cmds
17119 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17121 # Whether to use a lock for old archive extraction.
17122 lock_old_archive_extraction=$lock_old_archive_extraction
17124 # A C compiler.
17125 LTCC=$lt_CC
17127 # LTCC compiler flags.
17128 LTCFLAGS=$lt_CFLAGS
17130 # Take the output of nm and produce a listing of raw symbols and C names.
17131 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17133 # Transform the output of nm in a proper C declaration.
17134 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17136 # Transform the output of nm in a C name address pair.
17137 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17139 # Transform the output of nm in a C name address pair when lib prefix is needed.
17140 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17142 # The name of the directory that contains temporary libtool files.
17143 objdir=$objdir
17145 # Used to examine libraries when file_magic_cmd begins with "file".
17146 MAGIC_CMD=$MAGIC_CMD
17148 # Must we lock files when doing compilation?
17149 need_locks=$lt_need_locks
17151 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17152 DSYMUTIL=$lt_DSYMUTIL
17154 # Tool to change global to local symbols on Mac OS X.
17155 NMEDIT=$lt_NMEDIT
17157 # Tool to manipulate fat objects and archives on Mac OS X.
17158 LIPO=$lt_LIPO
17160 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
17161 OTOOL=$lt_OTOOL
17163 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17164 OTOOL64=$lt_OTOOL64
17166 # Old archive suffix (normally "a").
17167 libext=$libext
17169 # Shared library suffix (normally ".so").
17170 shrext_cmds=$lt_shrext_cmds
17172 # The commands to extract the exported symbol list from a shared archive.
17173 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17175 # Variables whose values should be saved in libtool wrapper scripts and
17176 # restored at link time.
17177 variables_saved_for_relink=$lt_variables_saved_for_relink
17179 # Do we need the "lib" prefix for modules?
17180 need_lib_prefix=$need_lib_prefix
17182 # Do we need a version for libraries?
17183 need_version=$need_version
17185 # Library versioning type.
17186 version_type=$version_type
17188 # Shared library runtime path variable.
17189 runpath_var=$runpath_var
17191 # Shared library path variable.
17192 shlibpath_var=$shlibpath_var
17194 # Is shlibpath searched before the hard-coded library search path?
17195 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17197 # Format of library name prefix.
17198 libname_spec=$lt_libname_spec
17200 # List of archive names. First name is the real one, the rest are links.
17201 # The last name is the one that the linker finds with -lNAME
17202 library_names_spec=$lt_library_names_spec
17204 # The coded name of the library, if different from the real name.
17205 soname_spec=$lt_soname_spec
17207 # Permission mode override for installation of shared libraries.
17208 install_override_mode=$lt_install_override_mode
17210 # Command to use after installation of a shared archive.
17211 postinstall_cmds=$lt_postinstall_cmds
17213 # Command to use after uninstallation of a shared archive.
17214 postuninstall_cmds=$lt_postuninstall_cmds
17216 # Commands used to finish a libtool library installation in a directory.
17217 finish_cmds=$lt_finish_cmds
17219 # As "finish_cmds", except a single script fragment to be evaled but
17220 # not shown.
17221 finish_eval=$lt_finish_eval
17223 # Whether we should hardcode library paths into libraries.
17224 hardcode_into_libs=$hardcode_into_libs
17226 # Compile-time system search path for libraries.
17227 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17229 # Run-time system search path for libraries.
17230 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17232 # Whether dlopen is supported.
17233 dlopen_support=$enable_dlopen
17235 # Whether dlopen of programs is supported.
17236 dlopen_self=$enable_dlopen_self
17238 # Whether dlopen of statically linked programs is supported.
17239 dlopen_self_static=$enable_dlopen_self_static
17241 # Commands to strip libraries.
17242 old_striplib=$lt_old_striplib
17243 striplib=$lt_striplib
17246 # The linker used to build libraries.
17247 LD=$lt_LD
17249 # How to create reloadable object files.
17250 reload_flag=$lt_reload_flag
17251 reload_cmds=$lt_reload_cmds
17253 # Commands used to build an old-style archive.
17254 old_archive_cmds=$lt_old_archive_cmds
17256 # A language specific compiler.
17257 CC=$lt_compiler
17259 # Is the compiler the GNU compiler?
17260 with_gcc=$GCC
17262 # Compiler flag to turn off builtin functions.
17263 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17265 # How to pass a linker flag through the compiler.
17266 wl=$lt_lt_prog_compiler_wl
17268 # Additional compiler flags for building library objects.
17269 pic_flag=$lt_lt_prog_compiler_pic
17271 # Compiler flag to prevent dynamic linking.
17272 link_static_flag=$lt_lt_prog_compiler_static
17274 # Does compiler simultaneously support -c and -o options?
17275 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17277 # Whether or not to add -lc for building shared libraries.
17278 build_libtool_need_lc=$archive_cmds_need_lc
17280 # Whether or not to disallow shared libs when runtime libs are static.
17281 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17283 # Compiler flag to allow reflexive dlopens.
17284 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17286 # Compiler flag to generate shared objects directly from archives.
17287 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17289 # Whether the compiler copes with passing no objects directly.
17290 compiler_needs_object=$lt_compiler_needs_object
17292 # Create an old-style archive from a shared archive.
17293 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17295 # Create a temporary old-style archive to link instead of a shared archive.
17296 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17298 # Commands used to build a shared archive.
17299 archive_cmds=$lt_archive_cmds
17300 archive_expsym_cmds=$lt_archive_expsym_cmds
17302 # Commands used to build a loadable module if different from building
17303 # a shared archive.
17304 module_cmds=$lt_module_cmds
17305 module_expsym_cmds=$lt_module_expsym_cmds
17307 # Whether we are building with GNU ld or not.
17308 with_gnu_ld=$lt_with_gnu_ld
17310 # Flag that allows shared libraries with undefined symbols to be built.
17311 allow_undefined_flag=$lt_allow_undefined_flag
17313 # Flag that enforces no undefined symbols.
17314 no_undefined_flag=$lt_no_undefined_flag
17316 # Flag to hardcode \$libdir into a binary during linking.
17317 # This must work even if \$libdir does not exist
17318 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17320 # If ld is used when linking, flag to hardcode \$libdir into a binary
17321 # during linking. This must work even if \$libdir does not exist.
17322 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17324 # Whether we need a single "-rpath" flag with a separated argument.
17325 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17327 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17328 # DIR into the resulting binary.
17329 hardcode_direct=$hardcode_direct
17331 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17332 # DIR into the resulting binary and the resulting library dependency is
17333 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17334 # library is relocated.
17335 hardcode_direct_absolute=$hardcode_direct_absolute
17337 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17338 # into the resulting binary.
17339 hardcode_minus_L=$hardcode_minus_L
17341 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17342 # into the resulting binary.
17343 hardcode_shlibpath_var=$hardcode_shlibpath_var
17345 # Set to "yes" if building a shared library automatically hardcodes DIR
17346 # into the library and all subsequent libraries and executables linked
17347 # against it.
17348 hardcode_automatic=$hardcode_automatic
17350 # Set to yes if linker adds runtime paths of dependent libraries
17351 # to runtime path list.
17352 inherit_rpath=$inherit_rpath
17354 # Whether libtool must link a program against all its dependency libraries.
17355 link_all_deplibs=$link_all_deplibs
17357 # Fix the shell variable \$srcfile for the compiler.
17358 fix_srcfile_path=$lt_fix_srcfile_path
17360 # Set to "yes" if exported symbols are required.
17361 always_export_symbols=$always_export_symbols
17363 # The commands to list exported symbols.
17364 export_symbols_cmds=$lt_export_symbols_cmds
17366 # Symbols that should not be listed in the preloaded symbols.
17367 exclude_expsyms=$lt_exclude_expsyms
17369 # Symbols that must always be exported.
17370 include_expsyms=$lt_include_expsyms
17372 # Commands necessary for linking programs (against libraries) with templates.
17373 prelink_cmds=$lt_prelink_cmds
17375 # Specify filename containing input files.
17376 file_list_spec=$lt_file_list_spec
17378 # How to hardcode a shared library path into an executable.
17379 hardcode_action=$hardcode_action
17381 # The directories searched by this compiler when creating a shared library.
17382 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
17384 # Dependencies to place before and after the objects being linked to
17385 # create a shared library.
17386 predep_objects=$lt_predep_objects
17387 postdep_objects=$lt_postdep_objects
17388 predeps=$lt_predeps
17389 postdeps=$lt_postdeps
17391 # The library search path used internally by the compiler when linking
17392 # a shared library.
17393 compiler_lib_search_path=$lt_compiler_lib_search_path
17395 # ### END LIBTOOL CONFIG
17397 _LT_EOF
17399 case $host_os in
17400 aix3*)
17401 cat <<\_LT_EOF >> "$cfgfile"
17402 # AIX sometimes has problems with the GCC collect2 program. For some
17403 # reason, if we set the COLLECT_NAMES environment variable, the problems
17404 # vanish in a puff of smoke.
17405 if test "X${COLLECT_NAMES+set}" != Xset; then
17406 COLLECT_NAMES=
17407 export COLLECT_NAMES
17409 _LT_EOF
17411 esac
17414 ltmain="$ac_aux_dir/ltmain.sh"
17417 # We use sed instead of cat because bash on DJGPP gets confused if
17418 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17419 # text mode, it properly converts lines to CR/LF. This bash problem
17420 # is reportedly fixed, but why not run on old versions too?
17421 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
17422 || (rm -f "$cfgfile"; exit 1)
17424 case $xsi_shell in
17425 yes)
17426 cat << \_LT_EOF >> "$cfgfile"
17428 # func_dirname file append nondir_replacement
17429 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
17430 # otherwise set result to NONDIR_REPLACEMENT.
17431 func_dirname ()
17433 case ${1} in
17434 */*) func_dirname_result="${1%/*}${2}" ;;
17435 * ) func_dirname_result="${3}" ;;
17436 esac
17439 # func_basename file
17440 func_basename ()
17442 func_basename_result="${1##*/}"
17445 # func_dirname_and_basename file append nondir_replacement
17446 # perform func_basename and func_dirname in a single function
17447 # call:
17448 # dirname: Compute the dirname of FILE. If nonempty,
17449 # add APPEND to the result, otherwise set result
17450 # to NONDIR_REPLACEMENT.
17451 # value returned in "$func_dirname_result"
17452 # basename: Compute filename of FILE.
17453 # value retuned in "$func_basename_result"
17454 # Implementation must be kept synchronized with func_dirname
17455 # and func_basename. For efficiency, we do not delegate to
17456 # those functions but instead duplicate the functionality here.
17457 func_dirname_and_basename ()
17459 case ${1} in
17460 */*) func_dirname_result="${1%/*}${2}" ;;
17461 * ) func_dirname_result="${3}" ;;
17462 esac
17463 func_basename_result="${1##*/}"
17466 # func_stripname prefix suffix name
17467 # strip PREFIX and SUFFIX off of NAME.
17468 # PREFIX and SUFFIX must not contain globbing or regex special
17469 # characters, hashes, percent signs, but SUFFIX may contain a leading
17470 # dot (in which case that matches only a dot).
17471 func_stripname ()
17473 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
17474 # positional parameters, so assign one to ordinary parameter first.
17475 func_stripname_result=${3}
17476 func_stripname_result=${func_stripname_result#"${1}"}
17477 func_stripname_result=${func_stripname_result%"${2}"}
17480 # func_opt_split
17481 func_opt_split ()
17483 func_opt_split_opt=${1%%=*}
17484 func_opt_split_arg=${1#*=}
17487 # func_lo2o object
17488 func_lo2o ()
17490 case ${1} in
17491 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
17492 *) func_lo2o_result=${1} ;;
17493 esac
17496 # func_xform libobj-or-source
17497 func_xform ()
17499 func_xform_result=${1%.*}.lo
17502 # func_arith arithmetic-term...
17503 func_arith ()
17505 func_arith_result=$(( $* ))
17508 # func_len string
17509 # STRING may not start with a hyphen.
17510 func_len ()
17512 func_len_result=${#1}
17515 _LT_EOF
17517 *) # Bourne compatible functions.
17518 cat << \_LT_EOF >> "$cfgfile"
17520 # func_dirname file append nondir_replacement
17521 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
17522 # otherwise set result to NONDIR_REPLACEMENT.
17523 func_dirname ()
17525 # Extract subdirectory from the argument.
17526 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
17527 if test "X$func_dirname_result" = "X${1}"; then
17528 func_dirname_result="${3}"
17529 else
17530 func_dirname_result="$func_dirname_result${2}"
17534 # func_basename file
17535 func_basename ()
17537 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
17541 # func_stripname prefix suffix name
17542 # strip PREFIX and SUFFIX off of NAME.
17543 # PREFIX and SUFFIX must not contain globbing or regex special
17544 # characters, hashes, percent signs, but SUFFIX may contain a leading
17545 # dot (in which case that matches only a dot).
17546 # func_strip_suffix prefix name
17547 func_stripname ()
17549 case ${2} in
17550 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
17551 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
17552 esac
17555 # sed scripts:
17556 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
17557 my_sed_long_arg='1s/^-[^=]*=//'
17559 # func_opt_split
17560 func_opt_split ()
17562 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
17563 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
17566 # func_lo2o object
17567 func_lo2o ()
17569 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
17572 # func_xform libobj-or-source
17573 func_xform ()
17575 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
17578 # func_arith arithmetic-term...
17579 func_arith ()
17581 func_arith_result=`expr "$@"`
17584 # func_len string
17585 # STRING may not start with a hyphen.
17586 func_len ()
17588 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
17591 _LT_EOF
17592 esac
17594 case $lt_shell_append in
17595 yes)
17596 cat << \_LT_EOF >> "$cfgfile"
17598 # func_append var value
17599 # Append VALUE to the end of shell variable VAR.
17600 func_append ()
17602 eval "$1+=\$2"
17604 _LT_EOF
17607 cat << \_LT_EOF >> "$cfgfile"
17609 # func_append var value
17610 # Append VALUE to the end of shell variable VAR.
17611 func_append ()
17613 eval "$1=\$$1\$2"
17616 _LT_EOF
17618 esac
17621 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
17622 || (rm -f "$cfgfile"; exit 1)
17624 mv -f "$cfgfile" "$ofile" ||
17625 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17626 chmod +x "$ofile"
17629 cat <<_LT_EOF >> "$ofile"
17631 # ### BEGIN LIBTOOL TAG CONFIG: CXX
17633 # The linker used to build libraries.
17634 LD=$lt_LD_CXX
17636 # How to create reloadable object files.
17637 reload_flag=$lt_reload_flag_CXX
17638 reload_cmds=$lt_reload_cmds_CXX
17640 # Commands used to build an old-style archive.
17641 old_archive_cmds=$lt_old_archive_cmds_CXX
17643 # A language specific compiler.
17644 CC=$lt_compiler_CXX
17646 # Is the compiler the GNU compiler?
17647 with_gcc=$GCC_CXX
17649 # Compiler flag to turn off builtin functions.
17650 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
17652 # How to pass a linker flag through the compiler.
17653 wl=$lt_lt_prog_compiler_wl_CXX
17655 # Additional compiler flags for building library objects.
17656 pic_flag=$lt_lt_prog_compiler_pic_CXX
17658 # Compiler flag to prevent dynamic linking.
17659 link_static_flag=$lt_lt_prog_compiler_static_CXX
17661 # Does compiler simultaneously support -c and -o options?
17662 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
17664 # Whether or not to add -lc for building shared libraries.
17665 build_libtool_need_lc=$archive_cmds_need_lc_CXX
17667 # Whether or not to disallow shared libs when runtime libs are static.
17668 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
17670 # Compiler flag to allow reflexive dlopens.
17671 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
17673 # Compiler flag to generate shared objects directly from archives.
17674 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
17676 # Whether the compiler copes with passing no objects directly.
17677 compiler_needs_object=$lt_compiler_needs_object_CXX
17679 # Create an old-style archive from a shared archive.
17680 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
17682 # Create a temporary old-style archive to link instead of a shared archive.
17683 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
17685 # Commands used to build a shared archive.
17686 archive_cmds=$lt_archive_cmds_CXX
17687 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
17689 # Commands used to build a loadable module if different from building
17690 # a shared archive.
17691 module_cmds=$lt_module_cmds_CXX
17692 module_expsym_cmds=$lt_module_expsym_cmds_CXX
17694 # Whether we are building with GNU ld or not.
17695 with_gnu_ld=$lt_with_gnu_ld_CXX
17697 # Flag that allows shared libraries with undefined symbols to be built.
17698 allow_undefined_flag=$lt_allow_undefined_flag_CXX
17700 # Flag that enforces no undefined symbols.
17701 no_undefined_flag=$lt_no_undefined_flag_CXX
17703 # Flag to hardcode \$libdir into a binary during linking.
17704 # This must work even if \$libdir does not exist
17705 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
17707 # If ld is used when linking, flag to hardcode \$libdir into a binary
17708 # during linking. This must work even if \$libdir does not exist.
17709 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
17711 # Whether we need a single "-rpath" flag with a separated argument.
17712 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
17714 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17715 # DIR into the resulting binary.
17716 hardcode_direct=$hardcode_direct_CXX
17718 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17719 # DIR into the resulting binary and the resulting library dependency is
17720 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17721 # library is relocated.
17722 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
17724 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17725 # into the resulting binary.
17726 hardcode_minus_L=$hardcode_minus_L_CXX
17728 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17729 # into the resulting binary.
17730 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
17732 # Set to "yes" if building a shared library automatically hardcodes DIR
17733 # into the library and all subsequent libraries and executables linked
17734 # against it.
17735 hardcode_automatic=$hardcode_automatic_CXX
17737 # Set to yes if linker adds runtime paths of dependent libraries
17738 # to runtime path list.
17739 inherit_rpath=$inherit_rpath_CXX
17741 # Whether libtool must link a program against all its dependency libraries.
17742 link_all_deplibs=$link_all_deplibs_CXX
17744 # Fix the shell variable \$srcfile for the compiler.
17745 fix_srcfile_path=$lt_fix_srcfile_path_CXX
17747 # Set to "yes" if exported symbols are required.
17748 always_export_symbols=$always_export_symbols_CXX
17750 # The commands to list exported symbols.
17751 export_symbols_cmds=$lt_export_symbols_cmds_CXX
17753 # Symbols that should not be listed in the preloaded symbols.
17754 exclude_expsyms=$lt_exclude_expsyms_CXX
17756 # Symbols that must always be exported.
17757 include_expsyms=$lt_include_expsyms_CXX
17759 # Commands necessary for linking programs (against libraries) with templates.
17760 prelink_cmds=$lt_prelink_cmds_CXX
17762 # Specify filename containing input files.
17763 file_list_spec=$lt_file_list_spec_CXX
17765 # How to hardcode a shared library path into an executable.
17766 hardcode_action=$hardcode_action_CXX
17768 # The directories searched by this compiler when creating a shared library.
17769 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
17771 # Dependencies to place before and after the objects being linked to
17772 # create a shared library.
17773 predep_objects=$lt_predep_objects_CXX
17774 postdep_objects=$lt_postdep_objects_CXX
17775 predeps=$lt_predeps_CXX
17776 postdeps=$lt_postdeps_CXX
17778 # The library search path used internally by the compiler when linking
17779 # a shared library.
17780 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
17782 # ### END LIBTOOL TAG CONFIG: CXX
17783 _LT_EOF
17787 esac
17788 done # for ac_tag
17791 as_fn_exit 0
17792 _ACEOF
17793 ac_clean_files=$ac_clean_files_save
17795 test $ac_write_fail = 0 ||
17796 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17799 # configure is writing to config.log, and then calls config.status.
17800 # config.status does its own redirection, appending to config.log.
17801 # Unfortunately, on DOS this fails, as config.log is still kept open
17802 # by configure, so config.status won't be able to write to it; its
17803 # output is simply discarded. So we exec the FD to /dev/null,
17804 # effectively closing config.log, so it can be properly (re)opened and
17805 # appended to by config.status. When coming back to configure, we
17806 # need to make the FD available again.
17807 if test "$no_create" != yes; then
17808 ac_cs_success=:
17809 ac_config_status_args=
17810 test "$silent" = yes &&
17811 ac_config_status_args="$ac_config_status_args --quiet"
17812 exec 5>/dev/null
17813 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17814 exec 5>>config.log
17815 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17816 # would make configure fail if this is the last instruction.
17817 $ac_cs_success || as_fn_exit 1
17819 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17820 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17821 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}