Emit .note.GNU-stack for hard-float linux targets.
[official-gcc.git] / libhsail-rt / configure
blobb03ab72e39aa9d71bafed577e686dd7c68afa473
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for phsa HSAIL runtime library 1.0.
5 # Report bugs to <pekka.jaaskelainen@parmance.com>.
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
32 esac
36 as_nl='
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
91 # Find who we are. Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
102 IFS=$as_save_IFS
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 emulate sh
165 NULLCMD=:
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 setopt NO_GLOB_SUBST
170 else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
176 esac
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
192 else
193 exitcode=1; echo positional parameters were not saved.
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
202 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
203 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 PATH=/empty FPATH=/empty; export PATH FPATH
207 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
208 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
209 test \$(( 1 + 1 )) = 2 || exit 1"
210 if (eval "$as_required") 2>/dev/null; then :
211 as_have_required=yes
212 else
213 as_have_required=no
215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
217 else
218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219 as_found=false
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
222 IFS=$as_save_IFS
223 test -z "$as_dir" && as_dir=.
224 as_found=:
225 case $as_dir in #(
227 for as_base in sh bash ksh sh5; do
228 # Try only shells that exist, to save several forks.
229 as_shell=$as_dir/$as_base
230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 CONFIG_SHELL=$as_shell as_have_required=yes
233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234 break 2
237 done;;
238 esac
239 as_found=false
240 done
241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243 CONFIG_SHELL=$SHELL as_have_required=yes
244 fi; }
245 IFS=$as_save_IFS
248 if test "x$CONFIG_SHELL" != x; then :
249 export CONFIG_SHELL
250 # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
254 BASH_ENV=/dev/null
255 ENV=/dev/null
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257 case $- in # ((((
258 *v*x* | *x*v* ) as_opts=-vx ;;
259 *v* ) as_opts=-v ;;
260 *x* ) as_opts=-x ;;
261 * ) as_opts= ;;
262 esac
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267 exit 255
270 if test x$as_have_required = xno; then :
271 $as_echo "$0: This script requires a shell more modern than all"
272 $as_echo "$0: the shells that I found on your system."
273 if test x${ZSH_VERSION+set} = xset ; then
274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276 else
277 $as_echo "$0: Please tell bug-autoconf@gnu.org and
278 $0: pekka.jaaskelainen@parmance.com about your system,
279 $0: including any error possibly output before this
280 $0: message. Then install a modern shell, or manually run
281 $0: the script under such a shell if you do have one."
283 exit 1
287 SHELL=${CONFIG_SHELL-/bin/sh}
288 export SHELL
289 # Unset more variables known to interfere with behavior of common tools.
290 CLICOLOR_FORCE= GREP_OPTIONS=
291 unset CLICOLOR_FORCE GREP_OPTIONS
293 ## --------------------- ##
294 ## M4sh Shell Functions. ##
295 ## --------------------- ##
296 # as_fn_unset VAR
297 # ---------------
298 # Portably unset VAR.
299 as_fn_unset ()
301 { eval $1=; unset $1;}
303 as_unset=as_fn_unset
305 # as_fn_set_status STATUS
306 # -----------------------
307 # Set $? to STATUS, without forking.
308 as_fn_set_status ()
310 return $1
311 } # as_fn_set_status
313 # as_fn_exit STATUS
314 # -----------------
315 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316 as_fn_exit ()
318 set +e
319 as_fn_set_status $1
320 exit $1
321 } # as_fn_exit
323 # as_fn_mkdir_p
324 # -------------
325 # Create "$as_dir" as a directory, including parents if necessary.
326 as_fn_mkdir_p ()
329 case $as_dir in #(
330 -*) as_dir=./$as_dir;;
331 esac
332 test -d "$as_dir" || eval $as_mkdir_p || {
333 as_dirs=
334 while :; do
335 case $as_dir in #(
336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337 *) as_qdir=$as_dir;;
338 esac
339 as_dirs="'$as_qdir' $as_dirs"
340 as_dir=`$as_dirname -- "$as_dir" ||
341 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342 X"$as_dir" : 'X\(//\)[^/]' \| \
343 X"$as_dir" : 'X\(//\)$' \| \
344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345 $as_echo X"$as_dir" |
346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347 s//\1/
350 /^X\(\/\/\)[^/].*/{
351 s//\1/
354 /^X\(\/\/\)$/{
355 s//\1/
358 /^X\(\/\).*/{
359 s//\1/
362 s/.*/./; q'`
363 test -d "$as_dir" && break
364 done
365 test -z "$as_dirs" || eval "mkdir $as_dirs"
366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
369 } # as_fn_mkdir_p
371 # as_fn_executable_p FILE
372 # -----------------------
373 # Test if FILE is an executable regular file.
374 as_fn_executable_p ()
376 test -f "$1" && test -x "$1"
377 } # as_fn_executable_p
378 # as_fn_append VAR VALUE
379 # ----------------------
380 # Append the text in VALUE to the end of the definition contained in VAR. Take
381 # advantage of any shell optimizations that allow amortized linear growth over
382 # repeated appends, instead of the typical quadratic growth present in naive
383 # implementations.
384 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385 eval 'as_fn_append ()
387 eval $1+=\$2
389 else
390 as_fn_append ()
392 eval $1=\$$1\$2
394 fi # as_fn_append
396 # as_fn_arith ARG...
397 # ------------------
398 # Perform arithmetic evaluation on the ARGs, and store the result in the
399 # global $as_val. Take advantage of shells that can avoid forks. The arguments
400 # must be portable across $(()) and expr.
401 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402 eval 'as_fn_arith ()
404 as_val=$(( $* ))
406 else
407 as_fn_arith ()
409 as_val=`expr "$@" || test $? -eq 1`
411 fi # as_fn_arith
414 # as_fn_error STATUS ERROR [LINENO LOG_FD]
415 # ----------------------------------------
416 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418 # script with STATUS, using 1 if that was 0.
419 as_fn_error ()
421 as_status=$1; test $as_status -eq 0 && as_status=1
422 if test "$4"; then
423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
426 $as_echo "$as_me: error: $2" >&2
427 as_fn_exit $as_status
428 } # as_fn_error
430 if expr a : '\(a\)' >/dev/null 2>&1 &&
431 test "X`expr 00001 : '.*\(...\)'`" = X001; then
432 as_expr=expr
433 else
434 as_expr=false
437 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438 as_basename=basename
439 else
440 as_basename=false
443 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444 as_dirname=dirname
445 else
446 as_dirname=false
449 as_me=`$as_basename -- "$0" ||
450 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451 X"$0" : 'X\(//\)$' \| \
452 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
453 $as_echo X/"$0" |
454 sed '/^.*\/\([^/][^/]*\)\/*$/{
455 s//\1/
458 /^X\/\(\/\/\)$/{
459 s//\1/
462 /^X\/\(\/\).*/{
463 s//\1/
466 s/.*/./; q'`
468 # Avoid depending upon Character Ranges.
469 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472 as_cr_digits='0123456789'
473 as_cr_alnum=$as_cr_Letters$as_cr_digits
476 as_lineno_1=$LINENO as_lineno_1a=$LINENO
477 as_lineno_2=$LINENO as_lineno_2a=$LINENO
478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
481 sed -n '
483 /[$]LINENO/=
484 ' <$as_myself |
485 sed '
486 s/[$]LINENO.*/&-/
487 t lineno
489 :lineno
491 :loop
492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493 t loop
494 s/-\n.*//
495 ' >$as_me.lineno &&
496 chmod +x "$as_me.lineno" ||
497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500 # already done that, so ensure we don't try to do so again and fall
501 # in an infinite loop. This has already happened in practice.
502 _as_can_reexec=no; export _as_can_reexec
503 # Don't try to exec as it changes $[0], causing all sort of problems
504 # (the dirname of $[0] is not the place where we might find the
505 # original and so on. Autoconf is especially sensitive to this).
506 . "./$as_me.lineno"
507 # Exit status is that of the last command.
508 exit
511 ECHO_C= ECHO_N= ECHO_T=
512 case `echo -n x` in #(((((
513 -n*)
514 case `echo 'xy\c'` in
515 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
516 xy) ECHO_C='\c';;
517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
518 ECHO_T=' ';;
519 esac;;
521 ECHO_N='-n';;
522 esac
524 rm -f conf$$ conf$$.exe conf$$.file
525 if test -d conf$$.dir; then
526 rm -f conf$$.dir/conf$$.file
527 else
528 rm -f conf$$.dir
529 mkdir conf$$.dir 2>/dev/null
531 if (echo >conf$$.file) 2>/dev/null; then
532 if ln -s conf$$.file conf$$ 2>/dev/null; then
533 as_ln_s='ln -s'
534 # ... but there are two gotchas:
535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537 # In both cases, we have to default to `cp -pR'.
538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
539 as_ln_s='cp -pR'
540 elif ln conf$$.file conf$$ 2>/dev/null; then
541 as_ln_s=ln
542 else
543 as_ln_s='cp -pR'
545 else
546 as_ln_s='cp -pR'
548 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549 rmdir conf$$.dir 2>/dev/null
551 if mkdir -p . 2>/dev/null; then
552 as_mkdir_p='mkdir -p "$as_dir"'
553 else
554 test -d ./-p && rmdir ./-p
555 as_mkdir_p=false
558 as_test_x='test -x'
559 as_executable_p=as_fn_executable_p
561 # Sed expression to map a string onto a valid CPP name.
562 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
564 # Sed expression to map a string onto a valid variable name.
565 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
567 SHELL=${CONFIG_SHELL-/bin/sh}
570 test -n "$DJDIR" || exec 7<&0 </dev/null
571 exec 6>&1
573 # Name of the host.
574 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575 # so uname gets run too.
576 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
579 # Initializations.
581 ac_default_prefix=/usr/local
582 ac_clean_files=
583 ac_config_libobj_dir=.
584 LIBOBJS=
585 cross_compiling=no
586 subdirs=
587 MFLAGS=
588 MAKEFLAGS=
590 # Identity of this package.
591 PACKAGE_NAME='phsa HSAIL runtime library'
592 PACKAGE_TARNAME='phsa-hsail-runtime-library'
593 PACKAGE_VERSION='1.0'
594 PACKAGE_STRING='phsa HSAIL runtime library 1.0'
595 PACKAGE_BUGREPORT='pekka.jaaskelainen@parmance.com'
596 PACKAGE_URL=''
598 # Factoring default headers for most tests.
599 ac_includes_default="\
600 #include <stdio.h>
601 #ifdef HAVE_SYS_TYPES_H
602 # include <sys/types.h>
603 #endif
604 #ifdef HAVE_SYS_STAT_H
605 # include <sys/stat.h>
606 #endif
607 #ifdef STDC_HEADERS
608 # include <stdlib.h>
609 # include <stddef.h>
610 #else
611 # ifdef HAVE_STDLIB_H
612 # include <stdlib.h>
613 # endif
614 #endif
615 #ifdef HAVE_STRING_H
616 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
617 # include <memory.h>
618 # endif
619 # include <string.h>
620 #endif
621 #ifdef HAVE_STRINGS_H
622 # include <strings.h>
623 #endif
624 #ifdef HAVE_INTTYPES_H
625 # include <inttypes.h>
626 #endif
627 #ifdef HAVE_STDINT_H
628 # include <stdint.h>
629 #endif
630 #ifdef HAVE_UNISTD_H
631 # include <unistd.h>
632 #endif"
634 ac_subst_vars='am__EXEEXT_FALSE
635 am__EXEEXT_TRUE
636 LTLIBOBJS
637 LIBOBJS
638 get_gcc_base_ver
639 toolexeclibdir
640 toolexecdir
641 CXXCPP
643 OTOOL64
644 OTOOL
645 LIPO
646 NMEDIT
647 DSYMUTIL
648 RANLIB
650 OBJDUMP
651 LN_S
653 ac_ct_DUMPBIN
654 DUMPBIN
656 FGREP
657 EGREP
658 GREP
660 LIBTOOL
661 MAC_LINKER_SCRIPT_FALSE
662 MAC_LINKER_SCRIPT_TRUE
663 LINUX_LINKER_SCRIPT_FALSE
664 LINUX_LINKER_SCRIPT_TRUE
665 config_dir
666 am__fastdepCXX_FALSE
667 am__fastdepCXX_TRUE
668 CXXDEPMODE
669 ac_ct_CXX
670 CXXFLAGS
672 am__fastdepCC_FALSE
673 am__fastdepCC_TRUE
674 CCDEPMODE
675 am__nodep
676 AMDEPBACKSLASH
677 AMDEP_FALSE
678 AMDEP_TRUE
679 am__quote
680 am__include
681 DEPDIR
682 OBJEXT
683 EXEEXT
684 ac_ct_CC
685 CPPFLAGS
686 LDFLAGS
687 CFLAGS
689 MAINT
690 MAINTAINER_MODE_FALSE
691 MAINTAINER_MODE_TRUE
692 AM_BACKSLASH
693 AM_DEFAULT_VERBOSITY
694 AM_DEFAULT_V
695 AM_V
696 am__untar
697 am__tar
698 AMTAR
699 am__leading_dot
700 SET_MAKE
702 mkdir_p
703 MKDIR_P
704 INSTALL_STRIP_PROGRAM
705 STRIP
706 install_sh
707 MAKEINFO
708 AUTOHEADER
709 AUTOMAKE
710 AUTOCONF
711 ACLOCAL
712 VERSION
713 PACKAGE
714 CYGPATH_W
715 am__isrc
716 INSTALL_DATA
717 INSTALL_SCRIPT
718 INSTALL_PROGRAM
719 target_os
720 target_vendor
721 target_cpu
722 target
723 host_os
724 host_vendor
725 host_cpu
726 host
727 build_os
728 build_vendor
729 build_cpu
730 build
731 target_alias
732 host_alias
733 build_alias
734 LIBS
735 ECHO_T
736 ECHO_N
737 ECHO_C
738 DEFS
739 mandir
740 localedir
741 libdir
742 psdir
743 pdfdir
744 dvidir
745 htmldir
746 infodir
747 docdir
748 oldincludedir
749 includedir
750 localstatedir
751 sharedstatedir
752 sysconfdir
753 datadir
754 datarootdir
755 libexecdir
756 sbindir
757 bindir
758 program_transform_name
759 prefix
760 exec_prefix
761 PACKAGE_URL
762 PACKAGE_BUGREPORT
763 PACKAGE_STRING
764 PACKAGE_VERSION
765 PACKAGE_TARNAME
766 PACKAGE_NAME
767 PATH_SEPARATOR
768 SHELL'
769 ac_subst_files=''
770 ac_user_opts='
771 enable_option_checking
772 enable_silent_rules
773 enable_maintainer_mode
774 enable_dependency_tracking
775 enable_version_specific_runtime_libs
776 enable_shared
777 enable_static
778 with_pic
779 enable_fast_install
780 with_gnu_ld
781 enable_libtool_lock
782 with_gcc_major_version_only
784 ac_precious_vars='build_alias
785 host_alias
786 target_alias
788 CFLAGS
789 LDFLAGS
790 LIBS
791 CPPFLAGS
793 CXXFLAGS
796 CXXCPP'
799 # Initialize some variables set by options.
800 ac_init_help=
801 ac_init_version=false
802 ac_unrecognized_opts=
803 ac_unrecognized_sep=
804 # The variables have the same names as the options, with
805 # dashes changed to underlines.
806 cache_file=/dev/null
807 exec_prefix=NONE
808 no_create=
809 no_recursion=
810 prefix=NONE
811 program_prefix=NONE
812 program_suffix=NONE
813 program_transform_name=s,x,x,
814 silent=
815 site=
816 srcdir=
817 verbose=
818 x_includes=NONE
819 x_libraries=NONE
821 # Installation directory options.
822 # These are left unexpanded so users can "make install exec_prefix=/foo"
823 # and all the variables that are supposed to be based on exec_prefix
824 # by default will actually change.
825 # Use braces instead of parens because sh, perl, etc. also accept them.
826 # (The list follows the same order as the GNU Coding Standards.)
827 bindir='${exec_prefix}/bin'
828 sbindir='${exec_prefix}/sbin'
829 libexecdir='${exec_prefix}/libexec'
830 datarootdir='${prefix}/share'
831 datadir='${datarootdir}'
832 sysconfdir='${prefix}/etc'
833 sharedstatedir='${prefix}/com'
834 localstatedir='${prefix}/var'
835 includedir='${prefix}/include'
836 oldincludedir='/usr/include'
837 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
838 infodir='${datarootdir}/info'
839 htmldir='${docdir}'
840 dvidir='${docdir}'
841 pdfdir='${docdir}'
842 psdir='${docdir}'
843 libdir='${exec_prefix}/lib'
844 localedir='${datarootdir}/locale'
845 mandir='${datarootdir}/man'
847 ac_prev=
848 ac_dashdash=
849 for ac_option
851 # If the previous option needs an argument, assign it.
852 if test -n "$ac_prev"; then
853 eval $ac_prev=\$ac_option
854 ac_prev=
855 continue
858 case $ac_option in
859 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
860 *=) ac_optarg= ;;
861 *) ac_optarg=yes ;;
862 esac
864 # Accept the important Cygnus configure options, so we can diagnose typos.
866 case $ac_dashdash$ac_option in
868 ac_dashdash=yes ;;
870 -bindir | --bindir | --bindi | --bind | --bin | --bi)
871 ac_prev=bindir ;;
872 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
873 bindir=$ac_optarg ;;
875 -build | --build | --buil | --bui | --bu)
876 ac_prev=build_alias ;;
877 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
878 build_alias=$ac_optarg ;;
880 -cache-file | --cache-file | --cache-fil | --cache-fi \
881 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
882 ac_prev=cache_file ;;
883 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
884 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
885 cache_file=$ac_optarg ;;
887 --config-cache | -C)
888 cache_file=config.cache ;;
890 -datadir | --datadir | --datadi | --datad)
891 ac_prev=datadir ;;
892 -datadir=* | --datadir=* | --datadi=* | --datad=*)
893 datadir=$ac_optarg ;;
895 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
896 | --dataroo | --dataro | --datar)
897 ac_prev=datarootdir ;;
898 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
899 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
900 datarootdir=$ac_optarg ;;
902 -disable-* | --disable-*)
903 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
904 # Reject names that are not valid shell variable names.
905 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
906 as_fn_error $? "invalid feature name: $ac_useropt"
907 ac_useropt_orig=$ac_useropt
908 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
909 case $ac_user_opts in
911 "enable_$ac_useropt"
912 "*) ;;
913 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
914 ac_unrecognized_sep=', ';;
915 esac
916 eval enable_$ac_useropt=no ;;
918 -docdir | --docdir | --docdi | --doc | --do)
919 ac_prev=docdir ;;
920 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
921 docdir=$ac_optarg ;;
923 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
924 ac_prev=dvidir ;;
925 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
926 dvidir=$ac_optarg ;;
928 -enable-* | --enable-*)
929 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
930 # Reject names that are not valid shell variable names.
931 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
932 as_fn_error $? "invalid feature name: $ac_useropt"
933 ac_useropt_orig=$ac_useropt
934 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
935 case $ac_user_opts in
937 "enable_$ac_useropt"
938 "*) ;;
939 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
940 ac_unrecognized_sep=', ';;
941 esac
942 eval enable_$ac_useropt=\$ac_optarg ;;
944 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
945 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
946 | --exec | --exe | --ex)
947 ac_prev=exec_prefix ;;
948 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
949 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
950 | --exec=* | --exe=* | --ex=*)
951 exec_prefix=$ac_optarg ;;
953 -gas | --gas | --ga | --g)
954 # Obsolete; use --with-gas.
955 with_gas=yes ;;
957 -help | --help | --hel | --he | -h)
958 ac_init_help=long ;;
959 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
960 ac_init_help=recursive ;;
961 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
962 ac_init_help=short ;;
964 -host | --host | --hos | --ho)
965 ac_prev=host_alias ;;
966 -host=* | --host=* | --hos=* | --ho=*)
967 host_alias=$ac_optarg ;;
969 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
970 ac_prev=htmldir ;;
971 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
972 | --ht=*)
973 htmldir=$ac_optarg ;;
975 -includedir | --includedir | --includedi | --included | --include \
976 | --includ | --inclu | --incl | --inc)
977 ac_prev=includedir ;;
978 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
979 | --includ=* | --inclu=* | --incl=* | --inc=*)
980 includedir=$ac_optarg ;;
982 -infodir | --infodir | --infodi | --infod | --info | --inf)
983 ac_prev=infodir ;;
984 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
985 infodir=$ac_optarg ;;
987 -libdir | --libdir | --libdi | --libd)
988 ac_prev=libdir ;;
989 -libdir=* | --libdir=* | --libdi=* | --libd=*)
990 libdir=$ac_optarg ;;
992 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
993 | --libexe | --libex | --libe)
994 ac_prev=libexecdir ;;
995 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
996 | --libexe=* | --libex=* | --libe=*)
997 libexecdir=$ac_optarg ;;
999 -localedir | --localedir | --localedi | --localed | --locale)
1000 ac_prev=localedir ;;
1001 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1002 localedir=$ac_optarg ;;
1004 -localstatedir | --localstatedir | --localstatedi | --localstated \
1005 | --localstate | --localstat | --localsta | --localst | --locals)
1006 ac_prev=localstatedir ;;
1007 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1008 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1009 localstatedir=$ac_optarg ;;
1011 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1012 ac_prev=mandir ;;
1013 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1014 mandir=$ac_optarg ;;
1016 -nfp | --nfp | --nf)
1017 # Obsolete; use --without-fp.
1018 with_fp=no ;;
1020 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1021 | --no-cr | --no-c | -n)
1022 no_create=yes ;;
1024 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1025 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1026 no_recursion=yes ;;
1028 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1029 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1030 | --oldin | --oldi | --old | --ol | --o)
1031 ac_prev=oldincludedir ;;
1032 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1033 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1034 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1035 oldincludedir=$ac_optarg ;;
1037 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1038 ac_prev=prefix ;;
1039 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1040 prefix=$ac_optarg ;;
1042 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1043 | --program-pre | --program-pr | --program-p)
1044 ac_prev=program_prefix ;;
1045 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1046 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1047 program_prefix=$ac_optarg ;;
1049 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1050 | --program-suf | --program-su | --program-s)
1051 ac_prev=program_suffix ;;
1052 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1053 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1054 program_suffix=$ac_optarg ;;
1056 -program-transform-name | --program-transform-name \
1057 | --program-transform-nam | --program-transform-na \
1058 | --program-transform-n | --program-transform- \
1059 | --program-transform | --program-transfor \
1060 | --program-transfo | --program-transf \
1061 | --program-trans | --program-tran \
1062 | --progr-tra | --program-tr | --program-t)
1063 ac_prev=program_transform_name ;;
1064 -program-transform-name=* | --program-transform-name=* \
1065 | --program-transform-nam=* | --program-transform-na=* \
1066 | --program-transform-n=* | --program-transform-=* \
1067 | --program-transform=* | --program-transfor=* \
1068 | --program-transfo=* | --program-transf=* \
1069 | --program-trans=* | --program-tran=* \
1070 | --progr-tra=* | --program-tr=* | --program-t=*)
1071 program_transform_name=$ac_optarg ;;
1073 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1074 ac_prev=pdfdir ;;
1075 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1076 pdfdir=$ac_optarg ;;
1078 -psdir | --psdir | --psdi | --psd | --ps)
1079 ac_prev=psdir ;;
1080 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1081 psdir=$ac_optarg ;;
1083 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1084 | -silent | --silent | --silen | --sile | --sil)
1085 silent=yes ;;
1087 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1088 ac_prev=sbindir ;;
1089 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1090 | --sbi=* | --sb=*)
1091 sbindir=$ac_optarg ;;
1093 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1094 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1095 | --sharedst | --shareds | --shared | --share | --shar \
1096 | --sha | --sh)
1097 ac_prev=sharedstatedir ;;
1098 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1099 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1100 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1101 | --sha=* | --sh=*)
1102 sharedstatedir=$ac_optarg ;;
1104 -site | --site | --sit)
1105 ac_prev=site ;;
1106 -site=* | --site=* | --sit=*)
1107 site=$ac_optarg ;;
1109 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1110 ac_prev=srcdir ;;
1111 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1112 srcdir=$ac_optarg ;;
1114 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1115 | --syscon | --sysco | --sysc | --sys | --sy)
1116 ac_prev=sysconfdir ;;
1117 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1118 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1119 sysconfdir=$ac_optarg ;;
1121 -target | --target | --targe | --targ | --tar | --ta | --t)
1122 ac_prev=target_alias ;;
1123 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1124 target_alias=$ac_optarg ;;
1126 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1127 verbose=yes ;;
1129 -version | --version | --versio | --versi | --vers | -V)
1130 ac_init_version=: ;;
1132 -with-* | --with-*)
1133 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1134 # Reject names that are not valid shell variable names.
1135 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1136 as_fn_error $? "invalid package name: $ac_useropt"
1137 ac_useropt_orig=$ac_useropt
1138 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1139 case $ac_user_opts in
1141 "with_$ac_useropt"
1142 "*) ;;
1143 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1144 ac_unrecognized_sep=', ';;
1145 esac
1146 eval with_$ac_useropt=\$ac_optarg ;;
1148 -without-* | --without-*)
1149 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1150 # Reject names that are not valid shell variable names.
1151 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1152 as_fn_error $? "invalid package name: $ac_useropt"
1153 ac_useropt_orig=$ac_useropt
1154 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1155 case $ac_user_opts in
1157 "with_$ac_useropt"
1158 "*) ;;
1159 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1160 ac_unrecognized_sep=', ';;
1161 esac
1162 eval with_$ac_useropt=no ;;
1164 --x)
1165 # Obsolete; use --with-x.
1166 with_x=yes ;;
1168 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1169 | --x-incl | --x-inc | --x-in | --x-i)
1170 ac_prev=x_includes ;;
1171 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1172 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1173 x_includes=$ac_optarg ;;
1175 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1176 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1177 ac_prev=x_libraries ;;
1178 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1179 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1180 x_libraries=$ac_optarg ;;
1182 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1183 Try \`$0 --help' for more information"
1186 *=*)
1187 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1188 # Reject names that are not valid shell variable names.
1189 case $ac_envvar in #(
1190 '' | [0-9]* | *[!_$as_cr_alnum]* )
1191 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1192 esac
1193 eval $ac_envvar=\$ac_optarg
1194 export $ac_envvar ;;
1197 # FIXME: should be removed in autoconf 3.0.
1198 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1199 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1200 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1201 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1204 esac
1205 done
1207 if test -n "$ac_prev"; then
1208 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1209 as_fn_error $? "missing argument to $ac_option"
1212 if test -n "$ac_unrecognized_opts"; then
1213 case $enable_option_checking in
1214 no) ;;
1215 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1216 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1217 esac
1220 # Check all directory arguments for consistency.
1221 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1222 datadir sysconfdir sharedstatedir localstatedir includedir \
1223 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1224 libdir localedir mandir
1226 eval ac_val=\$$ac_var
1227 # Remove trailing slashes.
1228 case $ac_val in
1229 */ )
1230 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1231 eval $ac_var=\$ac_val;;
1232 esac
1233 # Be sure to have absolute directory names.
1234 case $ac_val in
1235 [\\/$]* | ?:[\\/]* ) continue;;
1236 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1237 esac
1238 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1239 done
1241 # There might be people who depend on the old broken behavior: `$host'
1242 # used to hold the argument of --host etc.
1243 # FIXME: To remove some day.
1244 build=$build_alias
1245 host=$host_alias
1246 target=$target_alias
1248 # FIXME: To remove some day.
1249 if test "x$host_alias" != x; then
1250 if test "x$build_alias" = x; then
1251 cross_compiling=maybe
1252 elif test "x$build_alias" != "x$host_alias"; then
1253 cross_compiling=yes
1257 ac_tool_prefix=
1258 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1260 test "$silent" = yes && exec 6>/dev/null
1263 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1264 ac_ls_di=`ls -di .` &&
1265 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1266 as_fn_error $? "working directory cannot be determined"
1267 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1268 as_fn_error $? "pwd does not report name of working directory"
1271 # Find the source files, if location was not specified.
1272 if test -z "$srcdir"; then
1273 ac_srcdir_defaulted=yes
1274 # Try the directory containing this script, then the parent directory.
1275 ac_confdir=`$as_dirname -- "$as_myself" ||
1276 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1277 X"$as_myself" : 'X\(//\)[^/]' \| \
1278 X"$as_myself" : 'X\(//\)$' \| \
1279 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1280 $as_echo X"$as_myself" |
1281 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1282 s//\1/
1285 /^X\(\/\/\)[^/].*/{
1286 s//\1/
1289 /^X\(\/\/\)$/{
1290 s//\1/
1293 /^X\(\/\).*/{
1294 s//\1/
1297 s/.*/./; q'`
1298 srcdir=$ac_confdir
1299 if test ! -r "$srcdir/$ac_unique_file"; then
1300 srcdir=..
1302 else
1303 ac_srcdir_defaulted=no
1305 if test ! -r "$srcdir/$ac_unique_file"; then
1306 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1307 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1309 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1310 ac_abs_confdir=`(
1311 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1312 pwd)`
1313 # When building in place, set srcdir=.
1314 if test "$ac_abs_confdir" = "$ac_pwd"; then
1315 srcdir=.
1317 # Remove unnecessary trailing slashes from srcdir.
1318 # Double slashes in file names in object file debugging info
1319 # mess up M-x gdb in Emacs.
1320 case $srcdir in
1321 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1322 esac
1323 for ac_var in $ac_precious_vars; do
1324 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1325 eval ac_env_${ac_var}_value=\$${ac_var}
1326 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1327 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1328 done
1331 # Report the --help message.
1333 if test "$ac_init_help" = "long"; then
1334 # Omit some internal or obsolete options to make the list less imposing.
1335 # This message is too long to be a string in the A/UX 3.1 sh.
1336 cat <<_ACEOF
1337 \`configure' configures phsa HSAIL runtime library 1.0 to adapt to many kinds of systems.
1339 Usage: $0 [OPTION]... [VAR=VALUE]...
1341 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1342 VAR=VALUE. See below for descriptions of some of the useful variables.
1344 Defaults for the options are specified in brackets.
1346 Configuration:
1347 -h, --help display this help and exit
1348 --help=short display options specific to this package
1349 --help=recursive display the short help of all the included packages
1350 -V, --version display version information and exit
1351 -q, --quiet, --silent do not print \`checking ...' messages
1352 --cache-file=FILE cache test results in FILE [disabled]
1353 -C, --config-cache alias for \`--cache-file=config.cache'
1354 -n, --no-create do not create output files
1355 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1357 Installation directories:
1358 --prefix=PREFIX install architecture-independent files in PREFIX
1359 [$ac_default_prefix]
1360 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1361 [PREFIX]
1363 By default, \`make install' will install all the files in
1364 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1365 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1366 for instance \`--prefix=\$HOME'.
1368 For better control, use the options below.
1370 Fine tuning of the installation directories:
1371 --bindir=DIR user executables [EPREFIX/bin]
1372 --sbindir=DIR system admin executables [EPREFIX/sbin]
1373 --libexecdir=DIR program executables [EPREFIX/libexec]
1374 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1375 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1376 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1377 --libdir=DIR object code libraries [EPREFIX/lib]
1378 --includedir=DIR C header files [PREFIX/include]
1379 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1380 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1381 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1382 --infodir=DIR info documentation [DATAROOTDIR/info]
1383 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1384 --mandir=DIR man documentation [DATAROOTDIR/man]
1385 --docdir=DIR documentation root
1386 [DATAROOTDIR/doc/phsa-hsail-runtime-library]
1387 --htmldir=DIR html documentation [DOCDIR]
1388 --dvidir=DIR dvi documentation [DOCDIR]
1389 --pdfdir=DIR pdf documentation [DOCDIR]
1390 --psdir=DIR ps documentation [DOCDIR]
1391 _ACEOF
1393 cat <<\_ACEOF
1395 Program names:
1396 --program-prefix=PREFIX prepend PREFIX to installed program names
1397 --program-suffix=SUFFIX append SUFFIX to installed program names
1398 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1400 System types:
1401 --build=BUILD configure for building on BUILD [guessed]
1402 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1403 --target=TARGET configure for building compilers for TARGET [HOST]
1404 _ACEOF
1407 if test -n "$ac_init_help"; then
1408 case $ac_init_help in
1409 short | recursive ) echo "Configuration of phsa HSAIL runtime library 1.0:";;
1410 esac
1411 cat <<\_ACEOF
1413 Optional Features:
1414 --disable-option-checking ignore unrecognized --enable/--with options
1415 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1416 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1417 --enable-silent-rules less verbose build output (undo: "make V=1")
1418 --disable-silent-rules verbose build output (undo: "make V=0")
1419 --enable-maintainer-mode
1420 enable make rules and dependencies not useful (and
1421 sometimes confusing) to the casual installer
1422 --enable-dependency-tracking
1423 do not reject slow dependency extractors
1424 --disable-dependency-tracking
1425 speeds up one-time build
1426 --enable-version-specific-runtime-libs
1427 Specify that runtime libraries should be installed
1428 in a compi ler-specific directory
1429 --enable-shared[=PKGS] build shared libraries [default=yes]
1430 --enable-static[=PKGS] build static libraries [default=yes]
1431 --enable-fast-install[=PKGS]
1432 optimize for fast installation [default=yes]
1433 --disable-libtool-lock avoid locking (might break parallel builds)
1435 Optional Packages:
1436 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1437 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1438 --with-pic try to use only PIC/non-PIC objects [default=use
1439 both]
1440 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1441 --with-gcc-major-version-only
1442 use only GCC major number in filesystem paths
1444 Some influential environment variables:
1445 CC C compiler command
1446 CFLAGS C compiler flags
1447 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1448 nonstandard directory <lib dir>
1449 LIBS libraries to pass to the linker, e.g. -l<library>
1450 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1451 you have headers in a nonstandard directory <include dir>
1452 CXX C++ compiler command
1453 CXXFLAGS C++ compiler flags
1454 CPP C preprocessor
1455 CXXCPP C++ preprocessor
1457 Use these variables to override the choices made by `configure' or to help
1458 it to find libraries and programs with nonstandard names/locations.
1460 Report bugs to <pekka.jaaskelainen@parmance.com>.
1461 _ACEOF
1462 ac_status=$?
1465 if test "$ac_init_help" = "recursive"; then
1466 # If there are subdirs, report their specific --help.
1467 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1468 test -d "$ac_dir" ||
1469 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1470 continue
1471 ac_builddir=.
1473 case "$ac_dir" in
1474 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1476 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1477 # A ".." for each directory in $ac_dir_suffix.
1478 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1479 case $ac_top_builddir_sub in
1480 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1481 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1482 esac ;;
1483 esac
1484 ac_abs_top_builddir=$ac_pwd
1485 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1486 # for backward compatibility:
1487 ac_top_builddir=$ac_top_build_prefix
1489 case $srcdir in
1490 .) # We are building in place.
1491 ac_srcdir=.
1492 ac_top_srcdir=$ac_top_builddir_sub
1493 ac_abs_top_srcdir=$ac_pwd ;;
1494 [\\/]* | ?:[\\/]* ) # Absolute name.
1495 ac_srcdir=$srcdir$ac_dir_suffix;
1496 ac_top_srcdir=$srcdir
1497 ac_abs_top_srcdir=$srcdir ;;
1498 *) # Relative name.
1499 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1500 ac_top_srcdir=$ac_top_build_prefix$srcdir
1501 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1502 esac
1503 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1505 cd "$ac_dir" || { ac_status=$?; continue; }
1506 # Check for guested configure.
1507 if test -f "$ac_srcdir/configure.gnu"; then
1508 echo &&
1509 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1510 elif test -f "$ac_srcdir/configure"; then
1511 echo &&
1512 $SHELL "$ac_srcdir/configure" --help=recursive
1513 else
1514 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1515 fi || ac_status=$?
1516 cd "$ac_pwd" || { ac_status=$?; break; }
1517 done
1520 test -n "$ac_init_help" && exit $ac_status
1521 if $ac_init_version; then
1522 cat <<\_ACEOF
1523 phsa HSAIL runtime library configure 1.0
1524 generated by GNU Autoconf 2.69
1526 Copyright (C) 2012 Free Software Foundation, Inc.
1527 This configure script is free software; the Free Software Foundation
1528 gives unlimited permission to copy, distribute and modify it.
1529 _ACEOF
1530 exit
1533 ## ------------------------ ##
1534 ## Autoconf initialization. ##
1535 ## ------------------------ ##
1537 # ac_fn_c_try_compile LINENO
1538 # --------------------------
1539 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1540 ac_fn_c_try_compile ()
1542 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1543 rm -f conftest.$ac_objext
1544 if { { ac_try="$ac_compile"
1545 case "(($ac_try" in
1546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1547 *) ac_try_echo=$ac_try;;
1548 esac
1549 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1550 $as_echo "$ac_try_echo"; } >&5
1551 (eval "$ac_compile") 2>conftest.err
1552 ac_status=$?
1553 if test -s conftest.err; then
1554 grep -v '^ *+' conftest.err >conftest.er1
1555 cat conftest.er1 >&5
1556 mv -f conftest.er1 conftest.err
1558 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1559 test $ac_status = 0; } && {
1560 test -z "$ac_c_werror_flag" ||
1561 test ! -s conftest.err
1562 } && test -s conftest.$ac_objext; then :
1563 ac_retval=0
1564 else
1565 $as_echo "$as_me: failed program was:" >&5
1566 sed 's/^/| /' conftest.$ac_ext >&5
1568 ac_retval=1
1570 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1571 as_fn_set_status $ac_retval
1573 } # ac_fn_c_try_compile
1575 # ac_fn_cxx_try_compile LINENO
1576 # ----------------------------
1577 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1578 ac_fn_cxx_try_compile ()
1580 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1581 rm -f conftest.$ac_objext
1582 if { { ac_try="$ac_compile"
1583 case "(($ac_try" in
1584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1585 *) ac_try_echo=$ac_try;;
1586 esac
1587 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1588 $as_echo "$ac_try_echo"; } >&5
1589 (eval "$ac_compile") 2>conftest.err
1590 ac_status=$?
1591 if test -s conftest.err; then
1592 grep -v '^ *+' conftest.err >conftest.er1
1593 cat conftest.er1 >&5
1594 mv -f conftest.er1 conftest.err
1596 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1597 test $ac_status = 0; } && {
1598 test -z "$ac_cxx_werror_flag" ||
1599 test ! -s conftest.err
1600 } && test -s conftest.$ac_objext; then :
1601 ac_retval=0
1602 else
1603 $as_echo "$as_me: failed program was:" >&5
1604 sed 's/^/| /' conftest.$ac_ext >&5
1606 ac_retval=1
1608 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1609 as_fn_set_status $ac_retval
1611 } # ac_fn_cxx_try_compile
1613 # ac_fn_c_try_link LINENO
1614 # -----------------------
1615 # Try to link conftest.$ac_ext, and return whether this succeeded.
1616 ac_fn_c_try_link ()
1618 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1619 rm -f conftest.$ac_objext conftest$ac_exeext
1620 if { { ac_try="$ac_link"
1621 case "(($ac_try" in
1622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1623 *) ac_try_echo=$ac_try;;
1624 esac
1625 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1626 $as_echo "$ac_try_echo"; } >&5
1627 (eval "$ac_link") 2>conftest.err
1628 ac_status=$?
1629 if test -s conftest.err; then
1630 grep -v '^ *+' conftest.err >conftest.er1
1631 cat conftest.er1 >&5
1632 mv -f conftest.er1 conftest.err
1634 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1635 test $ac_status = 0; } && {
1636 test -z "$ac_c_werror_flag" ||
1637 test ! -s conftest.err
1638 } && test -s conftest$ac_exeext && {
1639 test "$cross_compiling" = yes ||
1640 test -x conftest$ac_exeext
1641 }; then :
1642 ac_retval=0
1643 else
1644 $as_echo "$as_me: failed program was:" >&5
1645 sed 's/^/| /' conftest.$ac_ext >&5
1647 ac_retval=1
1649 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1650 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1651 # interfere with the next link command; also delete a directory that is
1652 # left behind by Apple's compiler. We do this before executing the actions.
1653 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1654 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1655 as_fn_set_status $ac_retval
1657 } # ac_fn_c_try_link
1659 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1660 # -------------------------------------------------------
1661 # Tests whether HEADER exists and can be compiled using the include files in
1662 # INCLUDES, setting the cache variable VAR accordingly.
1663 ac_fn_c_check_header_compile ()
1665 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1667 $as_echo_n "checking for $2... " >&6; }
1668 if eval \${$3+:} false; then :
1669 $as_echo_n "(cached) " >&6
1670 else
1671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1672 /* end confdefs.h. */
1674 #include <$2>
1675 _ACEOF
1676 if ac_fn_c_try_compile "$LINENO"; then :
1677 eval "$3=yes"
1678 else
1679 eval "$3=no"
1681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1683 eval ac_res=\$$3
1684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1685 $as_echo "$ac_res" >&6; }
1686 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1688 } # ac_fn_c_check_header_compile
1690 # ac_fn_c_try_cpp LINENO
1691 # ----------------------
1692 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1693 ac_fn_c_try_cpp ()
1695 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1696 if { { ac_try="$ac_cpp conftest.$ac_ext"
1697 case "(($ac_try" in
1698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1699 *) ac_try_echo=$ac_try;;
1700 esac
1701 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1702 $as_echo "$ac_try_echo"; } >&5
1703 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1704 ac_status=$?
1705 if test -s conftest.err; then
1706 grep -v '^ *+' conftest.err >conftest.er1
1707 cat conftest.er1 >&5
1708 mv -f conftest.er1 conftest.err
1710 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1711 test $ac_status = 0; } > conftest.i && {
1712 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1713 test ! -s conftest.err
1714 }; then :
1715 ac_retval=0
1716 else
1717 $as_echo "$as_me: failed program was:" >&5
1718 sed 's/^/| /' conftest.$ac_ext >&5
1720 ac_retval=1
1722 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1723 as_fn_set_status $ac_retval
1725 } # ac_fn_c_try_cpp
1727 # ac_fn_c_try_run LINENO
1728 # ----------------------
1729 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1730 # that executables *can* be run.
1731 ac_fn_c_try_run ()
1733 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1734 if { { ac_try="$ac_link"
1735 case "(($ac_try" in
1736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1737 *) ac_try_echo=$ac_try;;
1738 esac
1739 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1740 $as_echo "$ac_try_echo"; } >&5
1741 (eval "$ac_link") 2>&5
1742 ac_status=$?
1743 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1744 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1745 { { case "(($ac_try" in
1746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1747 *) ac_try_echo=$ac_try;;
1748 esac
1749 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1750 $as_echo "$ac_try_echo"; } >&5
1751 (eval "$ac_try") 2>&5
1752 ac_status=$?
1753 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1754 test $ac_status = 0; }; }; then :
1755 ac_retval=0
1756 else
1757 $as_echo "$as_me: program exited with status $ac_status" >&5
1758 $as_echo "$as_me: failed program was:" >&5
1759 sed 's/^/| /' conftest.$ac_ext >&5
1761 ac_retval=$ac_status
1763 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1764 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1765 as_fn_set_status $ac_retval
1767 } # ac_fn_c_try_run
1769 # ac_fn_c_check_func LINENO FUNC VAR
1770 # ----------------------------------
1771 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1772 ac_fn_c_check_func ()
1774 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1776 $as_echo_n "checking for $2... " >&6; }
1777 if eval \${$3+:} false; then :
1778 $as_echo_n "(cached) " >&6
1779 else
1780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1781 /* end confdefs.h. */
1782 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1783 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1784 #define $2 innocuous_$2
1786 /* System header to define __stub macros and hopefully few prototypes,
1787 which can conflict with char $2 (); below.
1788 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1789 <limits.h> exists even on freestanding compilers. */
1791 #ifdef __STDC__
1792 # include <limits.h>
1793 #else
1794 # include <assert.h>
1795 #endif
1797 #undef $2
1799 /* Override any GCC internal prototype to avoid an error.
1800 Use char because int might match the return type of a GCC
1801 builtin and then its argument prototype would still apply. */
1802 #ifdef __cplusplus
1803 extern "C"
1804 #endif
1805 char $2 ();
1806 /* The GNU C library defines this for functions which it implements
1807 to always fail with ENOSYS. Some functions are actually named
1808 something starting with __ and the normal name is an alias. */
1809 #if defined __stub_$2 || defined __stub___$2
1810 choke me
1811 #endif
1814 main ()
1816 return $2 ();
1818 return 0;
1820 _ACEOF
1821 if ac_fn_c_try_link "$LINENO"; then :
1822 eval "$3=yes"
1823 else
1824 eval "$3=no"
1826 rm -f core conftest.err conftest.$ac_objext \
1827 conftest$ac_exeext conftest.$ac_ext
1829 eval ac_res=\$$3
1830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1831 $as_echo "$ac_res" >&6; }
1832 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1834 } # ac_fn_c_check_func
1836 # ac_fn_cxx_try_cpp LINENO
1837 # ------------------------
1838 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1839 ac_fn_cxx_try_cpp ()
1841 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1842 if { { ac_try="$ac_cpp conftest.$ac_ext"
1843 case "(($ac_try" in
1844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1845 *) ac_try_echo=$ac_try;;
1846 esac
1847 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1848 $as_echo "$ac_try_echo"; } >&5
1849 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1850 ac_status=$?
1851 if test -s conftest.err; then
1852 grep -v '^ *+' conftest.err >conftest.er1
1853 cat conftest.er1 >&5
1854 mv -f conftest.er1 conftest.err
1856 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1857 test $ac_status = 0; } > conftest.i && {
1858 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1859 test ! -s conftest.err
1860 }; then :
1861 ac_retval=0
1862 else
1863 $as_echo "$as_me: failed program was:" >&5
1864 sed 's/^/| /' conftest.$ac_ext >&5
1866 ac_retval=1
1868 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1869 as_fn_set_status $ac_retval
1871 } # ac_fn_cxx_try_cpp
1873 # ac_fn_cxx_try_link LINENO
1874 # -------------------------
1875 # Try to link conftest.$ac_ext, and return whether this succeeded.
1876 ac_fn_cxx_try_link ()
1878 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1879 rm -f conftest.$ac_objext conftest$ac_exeext
1880 if { { ac_try="$ac_link"
1881 case "(($ac_try" in
1882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1883 *) ac_try_echo=$ac_try;;
1884 esac
1885 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1886 $as_echo "$ac_try_echo"; } >&5
1887 (eval "$ac_link") 2>conftest.err
1888 ac_status=$?
1889 if test -s conftest.err; then
1890 grep -v '^ *+' conftest.err >conftest.er1
1891 cat conftest.er1 >&5
1892 mv -f conftest.er1 conftest.err
1894 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1895 test $ac_status = 0; } && {
1896 test -z "$ac_cxx_werror_flag" ||
1897 test ! -s conftest.err
1898 } && test -s conftest$ac_exeext && {
1899 test "$cross_compiling" = yes ||
1900 test -x conftest$ac_exeext
1901 }; then :
1902 ac_retval=0
1903 else
1904 $as_echo "$as_me: failed program was:" >&5
1905 sed 's/^/| /' conftest.$ac_ext >&5
1907 ac_retval=1
1909 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1910 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1911 # interfere with the next link command; also delete a directory that is
1912 # left behind by Apple's compiler. We do this before executing the actions.
1913 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1914 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1915 as_fn_set_status $ac_retval
1917 } # ac_fn_cxx_try_link
1919 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1920 # --------------------------------------------
1921 # Tries to find the compile-time value of EXPR in a program that includes
1922 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1923 # computed
1924 ac_fn_c_compute_int ()
1926 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1927 if test "$cross_compiling" = yes; then
1928 # Depending upon the size, compute the lo and hi bounds.
1929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1930 /* end confdefs.h. */
1933 main ()
1935 static int test_array [1 - 2 * !(($2) >= 0)];
1936 test_array [0] = 0;
1937 return test_array [0];
1940 return 0;
1942 _ACEOF
1943 if ac_fn_c_try_compile "$LINENO"; then :
1944 ac_lo=0 ac_mid=0
1945 while :; do
1946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1947 /* end confdefs.h. */
1950 main ()
1952 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1953 test_array [0] = 0;
1954 return test_array [0];
1957 return 0;
1959 _ACEOF
1960 if ac_fn_c_try_compile "$LINENO"; then :
1961 ac_hi=$ac_mid; break
1962 else
1963 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1964 if test $ac_lo -le $ac_mid; then
1965 ac_lo= ac_hi=
1966 break
1968 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1971 done
1972 else
1973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1974 /* end confdefs.h. */
1977 main ()
1979 static int test_array [1 - 2 * !(($2) < 0)];
1980 test_array [0] = 0;
1981 return test_array [0];
1984 return 0;
1986 _ACEOF
1987 if ac_fn_c_try_compile "$LINENO"; then :
1988 ac_hi=-1 ac_mid=-1
1989 while :; do
1990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1991 /* end confdefs.h. */
1994 main ()
1996 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1997 test_array [0] = 0;
1998 return test_array [0];
2001 return 0;
2003 _ACEOF
2004 if ac_fn_c_try_compile "$LINENO"; then :
2005 ac_lo=$ac_mid; break
2006 else
2007 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2008 if test $ac_mid -le $ac_hi; then
2009 ac_lo= ac_hi=
2010 break
2012 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2015 done
2016 else
2017 ac_lo= ac_hi=
2019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2022 # Binary search between lo and hi bounds.
2023 while test "x$ac_lo" != "x$ac_hi"; do
2024 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2026 /* end confdefs.h. */
2029 main ()
2031 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2032 test_array [0] = 0;
2033 return test_array [0];
2036 return 0;
2038 _ACEOF
2039 if ac_fn_c_try_compile "$LINENO"; then :
2040 ac_hi=$ac_mid
2041 else
2042 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2045 done
2046 case $ac_lo in #((
2047 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2048 '') ac_retval=1 ;;
2049 esac
2050 else
2051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2052 /* end confdefs.h. */
2054 static long int longval () { return $2; }
2055 static unsigned long int ulongval () { return $2; }
2056 #include <stdio.h>
2057 #include <stdlib.h>
2059 main ()
2062 FILE *f = fopen ("conftest.val", "w");
2063 if (! f)
2064 return 1;
2065 if (($2) < 0)
2067 long int i = longval ();
2068 if (i != ($2))
2069 return 1;
2070 fprintf (f, "%ld", i);
2072 else
2074 unsigned long int i = ulongval ();
2075 if (i != ($2))
2076 return 1;
2077 fprintf (f, "%lu", i);
2079 /* Do not output a trailing newline, as this causes \r\n confusion
2080 on some platforms. */
2081 return ferror (f) || fclose (f) != 0;
2084 return 0;
2086 _ACEOF
2087 if ac_fn_c_try_run "$LINENO"; then :
2088 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2089 else
2090 ac_retval=1
2092 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2093 conftest.$ac_objext conftest.beam conftest.$ac_ext
2094 rm -f conftest.val
2097 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2098 as_fn_set_status $ac_retval
2100 } # ac_fn_c_compute_int
2101 cat >config.log <<_ACEOF
2102 This file contains any messages produced by compilers while
2103 running configure, to aid debugging if configure makes a mistake.
2105 It was created by phsa HSAIL runtime library $as_me 1.0, which was
2106 generated by GNU Autoconf 2.69. Invocation command line was
2108 $ $0 $@
2110 _ACEOF
2111 exec 5>>config.log
2113 cat <<_ASUNAME
2114 ## --------- ##
2115 ## Platform. ##
2116 ## --------- ##
2118 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2119 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2120 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2121 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2122 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2124 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2125 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2127 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2128 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2129 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2130 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2131 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2132 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2133 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2135 _ASUNAME
2137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2138 for as_dir in $PATH
2140 IFS=$as_save_IFS
2141 test -z "$as_dir" && as_dir=.
2142 $as_echo "PATH: $as_dir"
2143 done
2144 IFS=$as_save_IFS
2146 } >&5
2148 cat >&5 <<_ACEOF
2151 ## ----------- ##
2152 ## Core tests. ##
2153 ## ----------- ##
2155 _ACEOF
2158 # Keep a trace of the command line.
2159 # Strip out --no-create and --no-recursion so they do not pile up.
2160 # Strip out --silent because we don't want to record it for future runs.
2161 # Also quote any args containing shell meta-characters.
2162 # Make two passes to allow for proper duplicate-argument suppression.
2163 ac_configure_args=
2164 ac_configure_args0=
2165 ac_configure_args1=
2166 ac_must_keep_next=false
2167 for ac_pass in 1 2
2169 for ac_arg
2171 case $ac_arg in
2172 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2173 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2174 | -silent | --silent | --silen | --sile | --sil)
2175 continue ;;
2176 *\'*)
2177 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2178 esac
2179 case $ac_pass in
2180 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2182 as_fn_append ac_configure_args1 " '$ac_arg'"
2183 if test $ac_must_keep_next = true; then
2184 ac_must_keep_next=false # Got value, back to normal.
2185 else
2186 case $ac_arg in
2187 *=* | --config-cache | -C | -disable-* | --disable-* \
2188 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2189 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2190 | -with-* | --with-* | -without-* | --without-* | --x)
2191 case "$ac_configure_args0 " in
2192 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2193 esac
2195 -* ) ac_must_keep_next=true ;;
2196 esac
2198 as_fn_append ac_configure_args " '$ac_arg'"
2200 esac
2201 done
2202 done
2203 { ac_configure_args0=; unset ac_configure_args0;}
2204 { ac_configure_args1=; unset ac_configure_args1;}
2206 # When interrupted or exit'd, cleanup temporary files, and complete
2207 # config.log. We remove comments because anyway the quotes in there
2208 # would cause problems or look ugly.
2209 # WARNING: Use '\'' to represent an apostrophe within the trap.
2210 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2211 trap 'exit_status=$?
2212 # Save into config.log some information that might help in debugging.
2214 echo
2216 $as_echo "## ---------------- ##
2217 ## Cache variables. ##
2218 ## ---------------- ##"
2219 echo
2220 # The following way of writing the cache mishandles newlines in values,
2222 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2223 eval ac_val=\$$ac_var
2224 case $ac_val in #(
2225 *${as_nl}*)
2226 case $ac_var in #(
2227 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2228 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2229 esac
2230 case $ac_var in #(
2231 _ | IFS | as_nl) ;; #(
2232 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2233 *) { eval $ac_var=; unset $ac_var;} ;;
2234 esac ;;
2235 esac
2236 done
2237 (set) 2>&1 |
2238 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2239 *${as_nl}ac_space=\ *)
2240 sed -n \
2241 "s/'\''/'\''\\\\'\'''\''/g;
2242 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2243 ;; #(
2245 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2247 esac |
2248 sort
2250 echo
2252 $as_echo "## ----------------- ##
2253 ## Output variables. ##
2254 ## ----------------- ##"
2255 echo
2256 for ac_var in $ac_subst_vars
2258 eval ac_val=\$$ac_var
2259 case $ac_val in
2260 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2261 esac
2262 $as_echo "$ac_var='\''$ac_val'\''"
2263 done | sort
2264 echo
2266 if test -n "$ac_subst_files"; then
2267 $as_echo "## ------------------- ##
2268 ## File substitutions. ##
2269 ## ------------------- ##"
2270 echo
2271 for ac_var in $ac_subst_files
2273 eval ac_val=\$$ac_var
2274 case $ac_val in
2275 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2276 esac
2277 $as_echo "$ac_var='\''$ac_val'\''"
2278 done | sort
2279 echo
2282 if test -s confdefs.h; then
2283 $as_echo "## ----------- ##
2284 ## confdefs.h. ##
2285 ## ----------- ##"
2286 echo
2287 cat confdefs.h
2288 echo
2290 test "$ac_signal" != 0 &&
2291 $as_echo "$as_me: caught signal $ac_signal"
2292 $as_echo "$as_me: exit $exit_status"
2293 } >&5
2294 rm -f core *.core core.conftest.* &&
2295 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2296 exit $exit_status
2298 for ac_signal in 1 2 13 15; do
2299 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2300 done
2301 ac_signal=0
2303 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2304 rm -f -r conftest* confdefs.h
2306 $as_echo "/* confdefs.h */" > confdefs.h
2308 # Predefined preprocessor variables.
2310 cat >>confdefs.h <<_ACEOF
2311 #define PACKAGE_NAME "$PACKAGE_NAME"
2312 _ACEOF
2314 cat >>confdefs.h <<_ACEOF
2315 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2316 _ACEOF
2318 cat >>confdefs.h <<_ACEOF
2319 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2320 _ACEOF
2322 cat >>confdefs.h <<_ACEOF
2323 #define PACKAGE_STRING "$PACKAGE_STRING"
2324 _ACEOF
2326 cat >>confdefs.h <<_ACEOF
2327 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2328 _ACEOF
2330 cat >>confdefs.h <<_ACEOF
2331 #define PACKAGE_URL "$PACKAGE_URL"
2332 _ACEOF
2335 # Let the site file select an alternate cache file if it wants to.
2336 # Prefer an explicitly selected file to automatically selected ones.
2337 ac_site_file1=NONE
2338 ac_site_file2=NONE
2339 if test -n "$CONFIG_SITE"; then
2340 # We do not want a PATH search for config.site.
2341 case $CONFIG_SITE in #((
2342 -*) ac_site_file1=./$CONFIG_SITE;;
2343 */*) ac_site_file1=$CONFIG_SITE;;
2344 *) ac_site_file1=./$CONFIG_SITE;;
2345 esac
2346 elif test "x$prefix" != xNONE; then
2347 ac_site_file1=$prefix/share/config.site
2348 ac_site_file2=$prefix/etc/config.site
2349 else
2350 ac_site_file1=$ac_default_prefix/share/config.site
2351 ac_site_file2=$ac_default_prefix/etc/config.site
2353 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2355 test "x$ac_site_file" = xNONE && continue
2356 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2357 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2358 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2359 sed 's/^/| /' "$ac_site_file" >&5
2360 . "$ac_site_file" \
2361 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2362 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2363 as_fn_error $? "failed to load site script $ac_site_file
2364 See \`config.log' for more details" "$LINENO" 5; }
2366 done
2368 if test -r "$cache_file"; then
2369 # Some versions of bash will fail to source /dev/null (special files
2370 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2371 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2372 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2373 $as_echo "$as_me: loading cache $cache_file" >&6;}
2374 case $cache_file in
2375 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2376 *) . "./$cache_file";;
2377 esac
2379 else
2380 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2381 $as_echo "$as_me: creating cache $cache_file" >&6;}
2382 >$cache_file
2385 # Check that the precious variables saved in the cache have kept the same
2386 # value.
2387 ac_cache_corrupted=false
2388 for ac_var in $ac_precious_vars; do
2389 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2390 eval ac_new_set=\$ac_env_${ac_var}_set
2391 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2392 eval ac_new_val=\$ac_env_${ac_var}_value
2393 case $ac_old_set,$ac_new_set in
2394 set,)
2395 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2396 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2397 ac_cache_corrupted=: ;;
2398 ,set)
2399 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2400 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2401 ac_cache_corrupted=: ;;
2402 ,);;
2404 if test "x$ac_old_val" != "x$ac_new_val"; then
2405 # differences in whitespace do not lead to failure.
2406 ac_old_val_w=`echo x $ac_old_val`
2407 ac_new_val_w=`echo x $ac_new_val`
2408 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2409 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2410 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2411 ac_cache_corrupted=:
2412 else
2413 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2414 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2415 eval $ac_var=\$ac_old_val
2417 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2418 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2419 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2420 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2421 fi;;
2422 esac
2423 # Pass precious variables to config.status.
2424 if test "$ac_new_set" = set; then
2425 case $ac_new_val in
2426 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2427 *) ac_arg=$ac_var=$ac_new_val ;;
2428 esac
2429 case " $ac_configure_args " in
2430 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2431 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2432 esac
2434 done
2435 if $ac_cache_corrupted; then
2436 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2437 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2438 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2439 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2440 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2442 ## -------------------- ##
2443 ## Main body of script. ##
2444 ## -------------------- ##
2446 ac_ext=c
2447 ac_cpp='$CPP $CPPFLAGS'
2448 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2449 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2450 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2457 # Needed to define ${target}. Needs to be very early to avoid annoying
2458 # warning about calling AC_ARG_PROGRAM before AC_CANONICAL_SYSTEM
2459 ac_aux_dir=
2460 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2461 if test -f "$ac_dir/install-sh"; then
2462 ac_aux_dir=$ac_dir
2463 ac_install_sh="$ac_aux_dir/install-sh -c"
2464 break
2465 elif test -f "$ac_dir/install.sh"; then
2466 ac_aux_dir=$ac_dir
2467 ac_install_sh="$ac_aux_dir/install.sh -c"
2468 break
2469 elif test -f "$ac_dir/shtool"; then
2470 ac_aux_dir=$ac_dir
2471 ac_install_sh="$ac_aux_dir/shtool install -c"
2472 break
2474 done
2475 if test -z "$ac_aux_dir"; then
2476 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2479 # These three variables are undocumented and unsupported,
2480 # and are intended to be withdrawn in a future Autoconf release.
2481 # They can cause serious problems if a builder's source tree is in a directory
2482 # whose full name contains unusual characters.
2483 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2484 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2485 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2488 # Make sure we can run config.sub.
2489 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2490 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2493 $as_echo_n "checking build system type... " >&6; }
2494 if ${ac_cv_build+:} false; then :
2495 $as_echo_n "(cached) " >&6
2496 else
2497 ac_build_alias=$build_alias
2498 test "x$ac_build_alias" = x &&
2499 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2500 test "x$ac_build_alias" = x &&
2501 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2502 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2503 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2507 $as_echo "$ac_cv_build" >&6; }
2508 case $ac_cv_build in
2509 *-*-*) ;;
2510 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2511 esac
2512 build=$ac_cv_build
2513 ac_save_IFS=$IFS; IFS='-'
2514 set x $ac_cv_build
2515 shift
2516 build_cpu=$1
2517 build_vendor=$2
2518 shift; shift
2519 # Remember, the first character of IFS is used to create $*,
2520 # except with old shells:
2521 build_os=$*
2522 IFS=$ac_save_IFS
2523 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2527 $as_echo_n "checking host system type... " >&6; }
2528 if ${ac_cv_host+:} false; then :
2529 $as_echo_n "(cached) " >&6
2530 else
2531 if test "x$host_alias" = x; then
2532 ac_cv_host=$ac_cv_build
2533 else
2534 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2535 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2540 $as_echo "$ac_cv_host" >&6; }
2541 case $ac_cv_host in
2542 *-*-*) ;;
2543 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2544 esac
2545 host=$ac_cv_host
2546 ac_save_IFS=$IFS; IFS='-'
2547 set x $ac_cv_host
2548 shift
2549 host_cpu=$1
2550 host_vendor=$2
2551 shift; shift
2552 # Remember, the first character of IFS is used to create $*,
2553 # except with old shells:
2554 host_os=$*
2555 IFS=$ac_save_IFS
2556 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2560 $as_echo_n "checking target system type... " >&6; }
2561 if ${ac_cv_target+:} false; then :
2562 $as_echo_n "(cached) " >&6
2563 else
2564 if test "x$target_alias" = x; then
2565 ac_cv_target=$ac_cv_host
2566 else
2567 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2568 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2573 $as_echo "$ac_cv_target" >&6; }
2574 case $ac_cv_target in
2575 *-*-*) ;;
2576 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2577 esac
2578 target=$ac_cv_target
2579 ac_save_IFS=$IFS; IFS='-'
2580 set x $ac_cv_target
2581 shift
2582 target_cpu=$1
2583 target_vendor=$2
2584 shift; shift
2585 # Remember, the first character of IFS is used to create $*,
2586 # except with old shells:
2587 target_os=$*
2588 IFS=$ac_save_IFS
2589 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2592 # The aliases save the names the user supplied, while $host etc.
2593 # will get canonicalized.
2594 test -n "$target_alias" &&
2595 test "$program_prefix$program_suffix$program_transform_name" = \
2596 NONENONEs,x,x, &&
2597 program_prefix=${target_alias}-
2599 target_alias=${target_alias-$host_alias}
2601 am__api_version='1.15'
2603 # Find a good install program. We prefer a C program (faster),
2604 # so one script is as good as another. But avoid the broken or
2605 # incompatible versions:
2606 # SysV /etc/install, /usr/sbin/install
2607 # SunOS /usr/etc/install
2608 # IRIX /sbin/install
2609 # AIX /bin/install
2610 # AmigaOS /C/install, which installs bootblocks on floppy discs
2611 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2612 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2613 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2614 # OS/2's system install, which has a completely different semantic
2615 # ./install, which can be erroneously created by make from ./install.sh.
2616 # Reject install programs that cannot install multiple files.
2617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2618 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2619 if test -z "$INSTALL"; then
2620 if ${ac_cv_path_install+:} false; then :
2621 $as_echo_n "(cached) " >&6
2622 else
2623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2624 for as_dir in $PATH
2626 IFS=$as_save_IFS
2627 test -z "$as_dir" && as_dir=.
2628 # Account for people who put trailing slashes in PATH elements.
2629 case $as_dir/ in #((
2630 ./ | .// | /[cC]/* | \
2631 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2632 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2633 /usr/ucb/* ) ;;
2635 # OSF1 and SCO ODT 3.0 have their own names for install.
2636 # Don't use installbsd from OSF since it installs stuff as root
2637 # by default.
2638 for ac_prog in ginstall scoinst install; do
2639 for ac_exec_ext in '' $ac_executable_extensions; do
2640 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2641 if test $ac_prog = install &&
2642 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2643 # AIX install. It has an incompatible calling convention.
2645 elif test $ac_prog = install &&
2646 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2647 # program-specific install script used by HP pwplus--don't use.
2649 else
2650 rm -rf conftest.one conftest.two conftest.dir
2651 echo one > conftest.one
2652 echo two > conftest.two
2653 mkdir conftest.dir
2654 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2655 test -s conftest.one && test -s conftest.two &&
2656 test -s conftest.dir/conftest.one &&
2657 test -s conftest.dir/conftest.two
2658 then
2659 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2660 break 3
2664 done
2665 done
2667 esac
2669 done
2670 IFS=$as_save_IFS
2672 rm -rf conftest.one conftest.two conftest.dir
2675 if test "${ac_cv_path_install+set}" = set; then
2676 INSTALL=$ac_cv_path_install
2677 else
2678 # As a last resort, use the slow shell script. Don't cache a
2679 # value for INSTALL within a source directory, because that will
2680 # break other packages using the cache if that directory is
2681 # removed, or if the value is a relative name.
2682 INSTALL=$ac_install_sh
2685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2686 $as_echo "$INSTALL" >&6; }
2688 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2689 # It thinks the first close brace ends the variable substitution.
2690 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2692 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2694 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2697 $as_echo_n "checking whether build environment is sane... " >&6; }
2698 # Reject unsafe characters in $srcdir or the absolute working directory
2699 # name. Accept space and tab only in the latter.
2700 am_lf='
2702 case `pwd` in
2703 *[\\\"\#\$\&\'\`$am_lf]*)
2704 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2705 esac
2706 case $srcdir in
2707 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2708 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2709 esac
2711 # Do 'set' in a subshell so we don't clobber the current shell's
2712 # arguments. Must try -L first in case configure is actually a
2713 # symlink; some systems play weird games with the mod time of symlinks
2714 # (eg FreeBSD returns the mod time of the symlink's containing
2715 # directory).
2716 if (
2717 am_has_slept=no
2718 for am_try in 1 2; do
2719 echo "timestamp, slept: $am_has_slept" > conftest.file
2720 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2721 if test "$*" = "X"; then
2722 # -L didn't work.
2723 set X `ls -t "$srcdir/configure" conftest.file`
2725 if test "$*" != "X $srcdir/configure conftest.file" \
2726 && test "$*" != "X conftest.file $srcdir/configure"; then
2728 # If neither matched, then we have a broken ls. This can happen
2729 # if, for instance, CONFIG_SHELL is bash and it inherits a
2730 # broken ls alias from the environment. This has actually
2731 # happened. Such a system could not be considered "sane".
2732 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2733 alias in your environment" "$LINENO" 5
2735 if test "$2" = conftest.file || test $am_try -eq 2; then
2736 break
2738 # Just in case.
2739 sleep 1
2740 am_has_slept=yes
2741 done
2742 test "$2" = conftest.file
2744 then
2745 # Ok.
2747 else
2748 as_fn_error $? "newly created file is older than distributed files!
2749 Check your system clock" "$LINENO" 5
2751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2752 $as_echo "yes" >&6; }
2753 # If we didn't sleep, we still need to ensure time stamps of config.status and
2754 # generated files are strictly newer.
2755 am_sleep_pid=
2756 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2757 ( sleep 1 ) &
2758 am_sleep_pid=$!
2761 rm -f conftest.file
2763 test "$program_prefix" != NONE &&
2764 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2765 # Use a double $ so make ignores it.
2766 test "$program_suffix" != NONE &&
2767 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2768 # Double any \ or $.
2769 # By default was `s,x,x', remove it if useless.
2770 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2771 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2773 # Expand $ac_aux_dir to an absolute path.
2774 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2776 if test x"${MISSING+set}" != xset; then
2777 case $am_aux_dir in
2778 *\ * | *\ *)
2779 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2781 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2782 esac
2784 # Use eval to expand $SHELL
2785 if eval "$MISSING --is-lightweight"; then
2786 am_missing_run="$MISSING "
2787 else
2788 am_missing_run=
2789 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2790 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2793 if test x"${install_sh+set}" != xset; then
2794 case $am_aux_dir in
2795 *\ * | *\ *)
2796 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2798 install_sh="\${SHELL} $am_aux_dir/install-sh"
2799 esac
2802 # Installed binaries are usually stripped using 'strip' when the user
2803 # run "make install-strip". However 'strip' might not be the right
2804 # tool to use in cross-compilation environments, therefore Automake
2805 # will honor the 'STRIP' environment variable to overrule this program.
2806 if test "$cross_compiling" != no; then
2807 if test -n "$ac_tool_prefix"; then
2808 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2809 set dummy ${ac_tool_prefix}strip; ac_word=$2
2810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2811 $as_echo_n "checking for $ac_word... " >&6; }
2812 if ${ac_cv_prog_STRIP+:} false; then :
2813 $as_echo_n "(cached) " >&6
2814 else
2815 if test -n "$STRIP"; then
2816 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2817 else
2818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2819 for as_dir in $PATH
2821 IFS=$as_save_IFS
2822 test -z "$as_dir" && as_dir=.
2823 for ac_exec_ext in '' $ac_executable_extensions; do
2824 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2825 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2826 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2827 break 2
2829 done
2830 done
2831 IFS=$as_save_IFS
2835 STRIP=$ac_cv_prog_STRIP
2836 if test -n "$STRIP"; then
2837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2838 $as_echo "$STRIP" >&6; }
2839 else
2840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2841 $as_echo "no" >&6; }
2846 if test -z "$ac_cv_prog_STRIP"; then
2847 ac_ct_STRIP=$STRIP
2848 # Extract the first word of "strip", so it can be a program name with args.
2849 set dummy strip; ac_word=$2
2850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2851 $as_echo_n "checking for $ac_word... " >&6; }
2852 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2853 $as_echo_n "(cached) " >&6
2854 else
2855 if test -n "$ac_ct_STRIP"; then
2856 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2857 else
2858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2859 for as_dir in $PATH
2861 IFS=$as_save_IFS
2862 test -z "$as_dir" && as_dir=.
2863 for ac_exec_ext in '' $ac_executable_extensions; do
2864 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2865 ac_cv_prog_ac_ct_STRIP="strip"
2866 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2867 break 2
2869 done
2870 done
2871 IFS=$as_save_IFS
2875 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2876 if test -n "$ac_ct_STRIP"; then
2877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2878 $as_echo "$ac_ct_STRIP" >&6; }
2879 else
2880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2881 $as_echo "no" >&6; }
2884 if test "x$ac_ct_STRIP" = x; then
2885 STRIP=":"
2886 else
2887 case $cross_compiling:$ac_tool_warned in
2888 yes:)
2889 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2890 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2891 ac_tool_warned=yes ;;
2892 esac
2893 STRIP=$ac_ct_STRIP
2895 else
2896 STRIP="$ac_cv_prog_STRIP"
2900 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2903 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2904 if test -z "$MKDIR_P"; then
2905 if ${ac_cv_path_mkdir+:} false; then :
2906 $as_echo_n "(cached) " >&6
2907 else
2908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2909 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2911 IFS=$as_save_IFS
2912 test -z "$as_dir" && as_dir=.
2913 for ac_prog in mkdir gmkdir; do
2914 for ac_exec_ext in '' $ac_executable_extensions; do
2915 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2916 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2917 'mkdir (GNU coreutils) '* | \
2918 'mkdir (coreutils) '* | \
2919 'mkdir (fileutils) '4.1*)
2920 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2921 break 3;;
2922 esac
2923 done
2924 done
2925 done
2926 IFS=$as_save_IFS
2930 test -d ./--version && rmdir ./--version
2931 if test "${ac_cv_path_mkdir+set}" = set; then
2932 MKDIR_P="$ac_cv_path_mkdir -p"
2933 else
2934 # As a last resort, use the slow shell script. Don't cache a
2935 # value for MKDIR_P within a source directory, because that will
2936 # break other packages using the cache if that directory is
2937 # removed, or if the value is a relative name.
2938 MKDIR_P="$ac_install_sh -d"
2941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2942 $as_echo "$MKDIR_P" >&6; }
2944 for ac_prog in gawk mawk nawk awk
2946 # Extract the first word of "$ac_prog", so it can be a program name with args.
2947 set dummy $ac_prog; ac_word=$2
2948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2949 $as_echo_n "checking for $ac_word... " >&6; }
2950 if ${ac_cv_prog_AWK+:} false; then :
2951 $as_echo_n "(cached) " >&6
2952 else
2953 if test -n "$AWK"; then
2954 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2955 else
2956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2957 for as_dir in $PATH
2959 IFS=$as_save_IFS
2960 test -z "$as_dir" && as_dir=.
2961 for ac_exec_ext in '' $ac_executable_extensions; do
2962 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2963 ac_cv_prog_AWK="$ac_prog"
2964 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2965 break 2
2967 done
2968 done
2969 IFS=$as_save_IFS
2973 AWK=$ac_cv_prog_AWK
2974 if test -n "$AWK"; then
2975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2976 $as_echo "$AWK" >&6; }
2977 else
2978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2979 $as_echo "no" >&6; }
2983 test -n "$AWK" && break
2984 done
2986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2987 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2988 set x ${MAKE-make}
2989 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2990 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2991 $as_echo_n "(cached) " >&6
2992 else
2993 cat >conftest.make <<\_ACEOF
2994 SHELL = /bin/sh
2995 all:
2996 @echo '@@@%%%=$(MAKE)=@@@%%%'
2997 _ACEOF
2998 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2999 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3000 *@@@%%%=?*=@@@%%%*)
3001 eval ac_cv_prog_make_${ac_make}_set=yes;;
3003 eval ac_cv_prog_make_${ac_make}_set=no;;
3004 esac
3005 rm -f conftest.make
3007 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3009 $as_echo "yes" >&6; }
3010 SET_MAKE=
3011 else
3012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3013 $as_echo "no" >&6; }
3014 SET_MAKE="MAKE=${MAKE-make}"
3017 rm -rf .tst 2>/dev/null
3018 mkdir .tst 2>/dev/null
3019 if test -d .tst; then
3020 am__leading_dot=.
3021 else
3022 am__leading_dot=_
3024 rmdir .tst 2>/dev/null
3026 # Check whether --enable-silent-rules was given.
3027 if test "${enable_silent_rules+set}" = set; then :
3028 enableval=$enable_silent_rules;
3031 case $enable_silent_rules in # (((
3032 yes) AM_DEFAULT_VERBOSITY=0;;
3033 no) AM_DEFAULT_VERBOSITY=1;;
3034 *) AM_DEFAULT_VERBOSITY=1;;
3035 esac
3036 am_make=${MAKE-make}
3037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3038 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3039 if ${am_cv_make_support_nested_variables+:} false; then :
3040 $as_echo_n "(cached) " >&6
3041 else
3042 if $as_echo 'TRUE=$(BAR$(V))
3043 BAR0=false
3044 BAR1=true
3046 am__doit:
3047 @$(TRUE)
3048 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3049 am_cv_make_support_nested_variables=yes
3050 else
3051 am_cv_make_support_nested_variables=no
3054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3055 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3056 if test $am_cv_make_support_nested_variables = yes; then
3057 AM_V='$(V)'
3058 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3059 else
3060 AM_V=$AM_DEFAULT_VERBOSITY
3061 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3063 AM_BACKSLASH='\'
3065 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3066 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3067 # is not polluted with repeated "-I."
3068 am__isrc=' -I$(srcdir)'
3069 # test to see if srcdir already configured
3070 if test -f $srcdir/config.status; then
3071 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3075 # test whether we have cygpath
3076 if test -z "$CYGPATH_W"; then
3077 if (cygpath --version) >/dev/null 2>/dev/null; then
3078 CYGPATH_W='cygpath -w'
3079 else
3080 CYGPATH_W=echo
3085 # Define the identity of the package.
3086 PACKAGE='phsa-hsail-runtime-library'
3087 VERSION='1.0'
3090 cat >>confdefs.h <<_ACEOF
3091 #define PACKAGE "$PACKAGE"
3092 _ACEOF
3095 cat >>confdefs.h <<_ACEOF
3096 #define VERSION "$VERSION"
3097 _ACEOF
3099 # Some tools Automake needs.
3101 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3104 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3107 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3110 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3113 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3115 # For better backward compatibility. To be removed once Automake 1.9.x
3116 # dies out for good. For more background, see:
3117 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3118 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3119 mkdir_p='$(MKDIR_P)'
3121 # We need awk for the "check" target (and possibly the TAP driver). The
3122 # system "awk" is bad on some platforms.
3123 # Always define AMTAR for backward compatibility. Yes, it's still used
3124 # in the wild :-( We should find a proper way to deprecate it ...
3125 AMTAR='$${TAR-tar}'
3128 # We'll loop over all known methods to create a tar archive until one works.
3129 _am_tools='gnutar pax cpio none'
3131 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3138 # POSIX will say in a future version that running "rm -f" with no argument
3139 # is OK; and we want to be able to make that assumption in our Makefile
3140 # recipes. So use an aggressive probe to check that the usage we want is
3141 # actually supported "in the wild" to an acceptable degree.
3142 # See automake bug#10828.
3143 # To make any issue more visible, cause the running configure to be aborted
3144 # by default if the 'rm' program in use doesn't match our expectations; the
3145 # user can still override this though.
3146 if rm -f && rm -fr && rm -rf; then : OK; else
3147 cat >&2 <<'END'
3148 Oops!
3150 Your 'rm' program seems unable to run without file operands specified
3151 on the command line, even when the '-f' option is present. This is contrary
3152 to the behaviour of most rm programs out there, and not conforming with
3153 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3155 Please tell bug-automake@gnu.org about your system, including the value
3156 of your $PATH and any error possibly output before this message. This
3157 can help us improve future automake versions.
3160 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3161 echo 'Configuration will proceed anyway, since you have set the' >&2
3162 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3163 echo >&2
3164 else
3165 cat >&2 <<'END'
3166 Aborting the configuration process, to ensure you take notice of the issue.
3168 You can download and install GNU coreutils to get an 'rm' implementation
3169 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3171 If you want to complete the configuration process using your problematic
3172 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3173 to "yes", and re-run configure.
3176 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3183 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3184 # Check whether --enable-maintainer-mode was given.
3185 if test "${enable_maintainer_mode+set}" = set; then :
3186 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3187 else
3188 USE_MAINTAINER_MODE=no
3191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3192 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3193 if test $USE_MAINTAINER_MODE = yes; then
3194 MAINTAINER_MODE_TRUE=
3195 MAINTAINER_MODE_FALSE='#'
3196 else
3197 MAINTAINER_MODE_TRUE='#'
3198 MAINTAINER_MODE_FALSE=
3201 MAINT=$MAINTAINER_MODE_TRUE
3205 ac_ext=c
3206 ac_cpp='$CPP $CPPFLAGS'
3207 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3208 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3209 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3210 if test -n "$ac_tool_prefix"; then
3211 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3212 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3214 $as_echo_n "checking for $ac_word... " >&6; }
3215 if ${ac_cv_prog_CC+:} false; then :
3216 $as_echo_n "(cached) " >&6
3217 else
3218 if test -n "$CC"; then
3219 ac_cv_prog_CC="$CC" # Let the user override the test.
3220 else
3221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3222 for as_dir in $PATH
3224 IFS=$as_save_IFS
3225 test -z "$as_dir" && as_dir=.
3226 for ac_exec_ext in '' $ac_executable_extensions; do
3227 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3228 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3229 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3230 break 2
3232 done
3233 done
3234 IFS=$as_save_IFS
3238 CC=$ac_cv_prog_CC
3239 if test -n "$CC"; then
3240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3241 $as_echo "$CC" >&6; }
3242 else
3243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3244 $as_echo "no" >&6; }
3249 if test -z "$ac_cv_prog_CC"; then
3250 ac_ct_CC=$CC
3251 # Extract the first word of "gcc", so it can be a program name with args.
3252 set dummy gcc; ac_word=$2
3253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3254 $as_echo_n "checking for $ac_word... " >&6; }
3255 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3256 $as_echo_n "(cached) " >&6
3257 else
3258 if test -n "$ac_ct_CC"; then
3259 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3260 else
3261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3262 for as_dir in $PATH
3264 IFS=$as_save_IFS
3265 test -z "$as_dir" && as_dir=.
3266 for ac_exec_ext in '' $ac_executable_extensions; do
3267 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3268 ac_cv_prog_ac_ct_CC="gcc"
3269 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3270 break 2
3272 done
3273 done
3274 IFS=$as_save_IFS
3278 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3279 if test -n "$ac_ct_CC"; then
3280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3281 $as_echo "$ac_ct_CC" >&6; }
3282 else
3283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3284 $as_echo "no" >&6; }
3287 if test "x$ac_ct_CC" = x; then
3288 CC=""
3289 else
3290 case $cross_compiling:$ac_tool_warned in
3291 yes:)
3292 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3293 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3294 ac_tool_warned=yes ;;
3295 esac
3296 CC=$ac_ct_CC
3298 else
3299 CC="$ac_cv_prog_CC"
3302 if test -z "$CC"; then
3303 if test -n "$ac_tool_prefix"; then
3304 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3305 set dummy ${ac_tool_prefix}cc; ac_word=$2
3306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3307 $as_echo_n "checking for $ac_word... " >&6; }
3308 if ${ac_cv_prog_CC+:} false; then :
3309 $as_echo_n "(cached) " >&6
3310 else
3311 if test -n "$CC"; then
3312 ac_cv_prog_CC="$CC" # Let the user override the test.
3313 else
3314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3315 for as_dir in $PATH
3317 IFS=$as_save_IFS
3318 test -z "$as_dir" && as_dir=.
3319 for ac_exec_ext in '' $ac_executable_extensions; do
3320 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3321 ac_cv_prog_CC="${ac_tool_prefix}cc"
3322 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3323 break 2
3325 done
3326 done
3327 IFS=$as_save_IFS
3331 CC=$ac_cv_prog_CC
3332 if test -n "$CC"; then
3333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3334 $as_echo "$CC" >&6; }
3335 else
3336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3337 $as_echo "no" >&6; }
3343 if test -z "$CC"; then
3344 # Extract the first word of "cc", so it can be a program name with args.
3345 set dummy cc; ac_word=$2
3346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3347 $as_echo_n "checking for $ac_word... " >&6; }
3348 if ${ac_cv_prog_CC+:} false; then :
3349 $as_echo_n "(cached) " >&6
3350 else
3351 if test -n "$CC"; then
3352 ac_cv_prog_CC="$CC" # Let the user override the test.
3353 else
3354 ac_prog_rejected=no
3355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3356 for as_dir in $PATH
3358 IFS=$as_save_IFS
3359 test -z "$as_dir" && as_dir=.
3360 for ac_exec_ext in '' $ac_executable_extensions; do
3361 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3362 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3363 ac_prog_rejected=yes
3364 continue
3366 ac_cv_prog_CC="cc"
3367 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3368 break 2
3370 done
3371 done
3372 IFS=$as_save_IFS
3374 if test $ac_prog_rejected = yes; then
3375 # We found a bogon in the path, so make sure we never use it.
3376 set dummy $ac_cv_prog_CC
3377 shift
3378 if test $# != 0; then
3379 # We chose a different compiler from the bogus one.
3380 # However, it has the same basename, so the bogon will be chosen
3381 # first if we set CC to just the basename; use the full file name.
3382 shift
3383 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3388 CC=$ac_cv_prog_CC
3389 if test -n "$CC"; then
3390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3391 $as_echo "$CC" >&6; }
3392 else
3393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3394 $as_echo "no" >&6; }
3399 if test -z "$CC"; then
3400 if test -n "$ac_tool_prefix"; then
3401 for ac_prog in cl.exe
3403 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3404 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3406 $as_echo_n "checking for $ac_word... " >&6; }
3407 if ${ac_cv_prog_CC+:} false; then :
3408 $as_echo_n "(cached) " >&6
3409 else
3410 if test -n "$CC"; then
3411 ac_cv_prog_CC="$CC" # Let the user override the test.
3412 else
3413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3414 for as_dir in $PATH
3416 IFS=$as_save_IFS
3417 test -z "$as_dir" && as_dir=.
3418 for ac_exec_ext in '' $ac_executable_extensions; do
3419 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3420 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3421 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3422 break 2
3424 done
3425 done
3426 IFS=$as_save_IFS
3430 CC=$ac_cv_prog_CC
3431 if test -n "$CC"; then
3432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3433 $as_echo "$CC" >&6; }
3434 else
3435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3436 $as_echo "no" >&6; }
3440 test -n "$CC" && break
3441 done
3443 if test -z "$CC"; then
3444 ac_ct_CC=$CC
3445 for ac_prog in cl.exe
3447 # Extract the first word of "$ac_prog", so it can be a program name with args.
3448 set dummy $ac_prog; ac_word=$2
3449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3450 $as_echo_n "checking for $ac_word... " >&6; }
3451 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3452 $as_echo_n "(cached) " >&6
3453 else
3454 if test -n "$ac_ct_CC"; then
3455 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3456 else
3457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3458 for as_dir in $PATH
3460 IFS=$as_save_IFS
3461 test -z "$as_dir" && as_dir=.
3462 for ac_exec_ext in '' $ac_executable_extensions; do
3463 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3464 ac_cv_prog_ac_ct_CC="$ac_prog"
3465 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3466 break 2
3468 done
3469 done
3470 IFS=$as_save_IFS
3474 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3475 if test -n "$ac_ct_CC"; then
3476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3477 $as_echo "$ac_ct_CC" >&6; }
3478 else
3479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3480 $as_echo "no" >&6; }
3484 test -n "$ac_ct_CC" && break
3485 done
3487 if test "x$ac_ct_CC" = x; then
3488 CC=""
3489 else
3490 case $cross_compiling:$ac_tool_warned in
3491 yes:)
3492 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3493 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3494 ac_tool_warned=yes ;;
3495 esac
3496 CC=$ac_ct_CC
3503 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3504 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3505 as_fn_error $? "no acceptable C compiler found in \$PATH
3506 See \`config.log' for more details" "$LINENO" 5; }
3508 # Provide some information about the compiler.
3509 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3510 set X $ac_compile
3511 ac_compiler=$2
3512 for ac_option in --version -v -V -qversion; do
3513 { { ac_try="$ac_compiler $ac_option >&5"
3514 case "(($ac_try" in
3515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3516 *) ac_try_echo=$ac_try;;
3517 esac
3518 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3519 $as_echo "$ac_try_echo"; } >&5
3520 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3521 ac_status=$?
3522 if test -s conftest.err; then
3523 sed '10a\
3524 ... rest of stderr output deleted ...
3525 10q' conftest.err >conftest.er1
3526 cat conftest.er1 >&5
3528 rm -f conftest.er1 conftest.err
3529 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3530 test $ac_status = 0; }
3531 done
3533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3534 /* end confdefs.h. */
3537 main ()
3541 return 0;
3543 _ACEOF
3544 ac_clean_files_save=$ac_clean_files
3545 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3546 # Try to create an executable without -o first, disregard a.out.
3547 # It will help us diagnose broken compilers, and finding out an intuition
3548 # of exeext.
3549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3550 $as_echo_n "checking whether the C compiler works... " >&6; }
3551 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3553 # The possible output files:
3554 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3556 ac_rmfiles=
3557 for ac_file in $ac_files
3559 case $ac_file in
3560 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3561 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3562 esac
3563 done
3564 rm -f $ac_rmfiles
3566 if { { ac_try="$ac_link_default"
3567 case "(($ac_try" in
3568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3569 *) ac_try_echo=$ac_try;;
3570 esac
3571 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3572 $as_echo "$ac_try_echo"; } >&5
3573 (eval "$ac_link_default") 2>&5
3574 ac_status=$?
3575 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3576 test $ac_status = 0; }; then :
3577 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3578 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3579 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3580 # so that the user can short-circuit this test for compilers unknown to
3581 # Autoconf.
3582 for ac_file in $ac_files ''
3584 test -f "$ac_file" || continue
3585 case $ac_file in
3586 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3588 [ab].out )
3589 # We found the default executable, but exeext='' is most
3590 # certainly right.
3591 break;;
3592 *.* )
3593 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3594 then :; else
3595 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3597 # We set ac_cv_exeext here because the later test for it is not
3598 # safe: cross compilers may not add the suffix if given an `-o'
3599 # argument, so we may need to know it at that point already.
3600 # Even if this section looks crufty: it has the advantage of
3601 # actually working.
3602 break;;
3604 break;;
3605 esac
3606 done
3607 test "$ac_cv_exeext" = no && ac_cv_exeext=
3609 else
3610 ac_file=''
3612 if test -z "$ac_file"; then :
3613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3614 $as_echo "no" >&6; }
3615 $as_echo "$as_me: failed program was:" >&5
3616 sed 's/^/| /' conftest.$ac_ext >&5
3618 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3619 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3620 as_fn_error 77 "C compiler cannot create executables
3621 See \`config.log' for more details" "$LINENO" 5; }
3622 else
3623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3624 $as_echo "yes" >&6; }
3626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3627 $as_echo_n "checking for C compiler default output file name... " >&6; }
3628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3629 $as_echo "$ac_file" >&6; }
3630 ac_exeext=$ac_cv_exeext
3632 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3633 ac_clean_files=$ac_clean_files_save
3634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3635 $as_echo_n "checking for suffix of executables... " >&6; }
3636 if { { ac_try="$ac_link"
3637 case "(($ac_try" in
3638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3639 *) ac_try_echo=$ac_try;;
3640 esac
3641 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3642 $as_echo "$ac_try_echo"; } >&5
3643 (eval "$ac_link") 2>&5
3644 ac_status=$?
3645 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3646 test $ac_status = 0; }; then :
3647 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3648 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3649 # work properly (i.e., refer to `conftest.exe'), while it won't with
3650 # `rm'.
3651 for ac_file in conftest.exe conftest conftest.*; do
3652 test -f "$ac_file" || continue
3653 case $ac_file in
3654 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3655 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3656 break;;
3657 * ) break;;
3658 esac
3659 done
3660 else
3661 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3662 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3663 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3664 See \`config.log' for more details" "$LINENO" 5; }
3666 rm -f conftest conftest$ac_cv_exeext
3667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3668 $as_echo "$ac_cv_exeext" >&6; }
3670 rm -f conftest.$ac_ext
3671 EXEEXT=$ac_cv_exeext
3672 ac_exeext=$EXEEXT
3673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3674 /* end confdefs.h. */
3675 #include <stdio.h>
3677 main ()
3679 FILE *f = fopen ("conftest.out", "w");
3680 return ferror (f) || fclose (f) != 0;
3683 return 0;
3685 _ACEOF
3686 ac_clean_files="$ac_clean_files conftest.out"
3687 # Check that the compiler produces executables we can run. If not, either
3688 # the compiler is broken, or we cross compile.
3689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3690 $as_echo_n "checking whether we are cross compiling... " >&6; }
3691 if test "$cross_compiling" != yes; then
3692 { { ac_try="$ac_link"
3693 case "(($ac_try" in
3694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3695 *) ac_try_echo=$ac_try;;
3696 esac
3697 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3698 $as_echo "$ac_try_echo"; } >&5
3699 (eval "$ac_link") 2>&5
3700 ac_status=$?
3701 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3702 test $ac_status = 0; }
3703 if { ac_try='./conftest$ac_cv_exeext'
3704 { { case "(($ac_try" in
3705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3706 *) ac_try_echo=$ac_try;;
3707 esac
3708 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3709 $as_echo "$ac_try_echo"; } >&5
3710 (eval "$ac_try") 2>&5
3711 ac_status=$?
3712 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3713 test $ac_status = 0; }; }; then
3714 cross_compiling=no
3715 else
3716 if test "$cross_compiling" = maybe; then
3717 cross_compiling=yes
3718 else
3719 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3720 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3721 as_fn_error $? "cannot run C compiled programs.
3722 If you meant to cross compile, use \`--host'.
3723 See \`config.log' for more details" "$LINENO" 5; }
3727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3728 $as_echo "$cross_compiling" >&6; }
3730 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3731 ac_clean_files=$ac_clean_files_save
3732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3733 $as_echo_n "checking for suffix of object files... " >&6; }
3734 if ${ac_cv_objext+:} false; then :
3735 $as_echo_n "(cached) " >&6
3736 else
3737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3738 /* end confdefs.h. */
3741 main ()
3745 return 0;
3747 _ACEOF
3748 rm -f conftest.o conftest.obj
3749 if { { ac_try="$ac_compile"
3750 case "(($ac_try" in
3751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3752 *) ac_try_echo=$ac_try;;
3753 esac
3754 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3755 $as_echo "$ac_try_echo"; } >&5
3756 (eval "$ac_compile") 2>&5
3757 ac_status=$?
3758 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3759 test $ac_status = 0; }; then :
3760 for ac_file in conftest.o conftest.obj conftest.*; do
3761 test -f "$ac_file" || continue;
3762 case $ac_file in
3763 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3764 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3765 break;;
3766 esac
3767 done
3768 else
3769 $as_echo "$as_me: failed program was:" >&5
3770 sed 's/^/| /' conftest.$ac_ext >&5
3772 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3773 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3774 as_fn_error $? "cannot compute suffix of object files: cannot compile
3775 See \`config.log' for more details" "$LINENO" 5; }
3777 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3780 $as_echo "$ac_cv_objext" >&6; }
3781 OBJEXT=$ac_cv_objext
3782 ac_objext=$OBJEXT
3783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3784 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3785 if ${ac_cv_c_compiler_gnu+:} false; then :
3786 $as_echo_n "(cached) " >&6
3787 else
3788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3789 /* end confdefs.h. */
3792 main ()
3794 #ifndef __GNUC__
3795 choke me
3796 #endif
3799 return 0;
3801 _ACEOF
3802 if ac_fn_c_try_compile "$LINENO"; then :
3803 ac_compiler_gnu=yes
3804 else
3805 ac_compiler_gnu=no
3807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3808 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3812 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3813 if test $ac_compiler_gnu = yes; then
3814 GCC=yes
3815 else
3816 GCC=
3818 ac_test_CFLAGS=${CFLAGS+set}
3819 ac_save_CFLAGS=$CFLAGS
3820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3821 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3822 if ${ac_cv_prog_cc_g+:} false; then :
3823 $as_echo_n "(cached) " >&6
3824 else
3825 ac_save_c_werror_flag=$ac_c_werror_flag
3826 ac_c_werror_flag=yes
3827 ac_cv_prog_cc_g=no
3828 CFLAGS="-g"
3829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3830 /* end confdefs.h. */
3833 main ()
3837 return 0;
3839 _ACEOF
3840 if ac_fn_c_try_compile "$LINENO"; then :
3841 ac_cv_prog_cc_g=yes
3842 else
3843 CFLAGS=""
3844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3845 /* end confdefs.h. */
3848 main ()
3852 return 0;
3854 _ACEOF
3855 if ac_fn_c_try_compile "$LINENO"; then :
3857 else
3858 ac_c_werror_flag=$ac_save_c_werror_flag
3859 CFLAGS="-g"
3860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3861 /* end confdefs.h. */
3864 main ()
3868 return 0;
3870 _ACEOF
3871 if ac_fn_c_try_compile "$LINENO"; then :
3872 ac_cv_prog_cc_g=yes
3874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3878 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3879 ac_c_werror_flag=$ac_save_c_werror_flag
3881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3882 $as_echo "$ac_cv_prog_cc_g" >&6; }
3883 if test "$ac_test_CFLAGS" = set; then
3884 CFLAGS=$ac_save_CFLAGS
3885 elif test $ac_cv_prog_cc_g = yes; then
3886 if test "$GCC" = yes; then
3887 CFLAGS="-g -O2"
3888 else
3889 CFLAGS="-g"
3891 else
3892 if test "$GCC" = yes; then
3893 CFLAGS="-O2"
3894 else
3895 CFLAGS=
3898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3899 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3900 if ${ac_cv_prog_cc_c89+:} false; then :
3901 $as_echo_n "(cached) " >&6
3902 else
3903 ac_cv_prog_cc_c89=no
3904 ac_save_CC=$CC
3905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3906 /* end confdefs.h. */
3907 #include <stdarg.h>
3908 #include <stdio.h>
3909 struct stat;
3910 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3911 struct buf { int x; };
3912 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3913 static char *e (p, i)
3914 char **p;
3915 int i;
3917 return p[i];
3919 static char *f (char * (*g) (char **, int), char **p, ...)
3921 char *s;
3922 va_list v;
3923 va_start (v,p);
3924 s = g (p, va_arg (v,int));
3925 va_end (v);
3926 return s;
3929 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3930 function prototypes and stuff, but not '\xHH' hex character constants.
3931 These don't provoke an error unfortunately, instead are silently treated
3932 as 'x'. The following induces an error, until -std is added to get
3933 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3934 array size at least. It's necessary to write '\x00'==0 to get something
3935 that's true only with -std. */
3936 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3938 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3939 inside strings and character constants. */
3940 #define FOO(x) 'x'
3941 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3943 int test (int i, double x);
3944 struct s1 {int (*f) (int a);};
3945 struct s2 {int (*f) (double a);};
3946 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3947 int argc;
3948 char **argv;
3950 main ()
3952 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3954 return 0;
3956 _ACEOF
3957 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3958 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3960 CC="$ac_save_CC $ac_arg"
3961 if ac_fn_c_try_compile "$LINENO"; then :
3962 ac_cv_prog_cc_c89=$ac_arg
3964 rm -f core conftest.err conftest.$ac_objext
3965 test "x$ac_cv_prog_cc_c89" != "xno" && break
3966 done
3967 rm -f conftest.$ac_ext
3968 CC=$ac_save_CC
3971 # AC_CACHE_VAL
3972 case "x$ac_cv_prog_cc_c89" in
3974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3975 $as_echo "none needed" >&6; } ;;
3976 xno)
3977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3978 $as_echo "unsupported" >&6; } ;;
3980 CC="$CC $ac_cv_prog_cc_c89"
3981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3982 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3983 esac
3984 if test "x$ac_cv_prog_cc_c89" != xno; then :
3988 ac_ext=c
3989 ac_cpp='$CPP $CPPFLAGS'
3990 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3991 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3992 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3994 ac_ext=c
3995 ac_cpp='$CPP $CPPFLAGS'
3996 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3997 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3998 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4000 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4001 if ${am_cv_prog_cc_c_o+:} false; then :
4002 $as_echo_n "(cached) " >&6
4003 else
4004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4005 /* end confdefs.h. */
4008 main ()
4012 return 0;
4014 _ACEOF
4015 # Make sure it works both with $CC and with simple cc.
4016 # Following AC_PROG_CC_C_O, we do the test twice because some
4017 # compilers refuse to overwrite an existing .o file with -o,
4018 # though they will create one.
4019 am_cv_prog_cc_c_o=yes
4020 for am_i in 1 2; do
4021 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4022 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4023 ac_status=$?
4024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4025 (exit $ac_status); } \
4026 && test -f conftest2.$ac_objext; then
4027 : OK
4028 else
4029 am_cv_prog_cc_c_o=no
4030 break
4032 done
4033 rm -f core conftest*
4034 unset am_i
4036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4037 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4038 if test "$am_cv_prog_cc_c_o" != yes; then
4039 # Losing compiler, so override with the script.
4040 # FIXME: It is wrong to rewrite CC.
4041 # But if we don't then we get into trouble of one sort or another.
4042 # A longer-term fix would be to have automake use am__CC in this case,
4043 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4044 CC="$am_aux_dir/compile $CC"
4046 ac_ext=c
4047 ac_cpp='$CPP $CPPFLAGS'
4048 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4049 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4050 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4052 DEPDIR="${am__leading_dot}deps"
4054 ac_config_commands="$ac_config_commands depfiles"
4057 am_make=${MAKE-make}
4058 cat > confinc << 'END'
4059 am__doit:
4060 @echo this is the am__doit target
4061 .PHONY: am__doit
4063 # If we don't find an include directive, just comment out the code.
4064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4065 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4066 am__include="#"
4067 am__quote=
4068 _am_result=none
4069 # First try GNU make style include.
4070 echo "include confinc" > confmf
4071 # Ignore all kinds of additional output from 'make'.
4072 case `$am_make -s -f confmf 2> /dev/null` in #(
4073 *the\ am__doit\ target*)
4074 am__include=include
4075 am__quote=
4076 _am_result=GNU
4078 esac
4079 # Now try BSD make style include.
4080 if test "$am__include" = "#"; then
4081 echo '.include "confinc"' > confmf
4082 case `$am_make -s -f confmf 2> /dev/null` in #(
4083 *the\ am__doit\ target*)
4084 am__include=.include
4085 am__quote="\""
4086 _am_result=BSD
4088 esac
4092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4093 $as_echo "$_am_result" >&6; }
4094 rm -f confinc confmf
4096 # Check whether --enable-dependency-tracking was given.
4097 if test "${enable_dependency_tracking+set}" = set; then :
4098 enableval=$enable_dependency_tracking;
4101 if test "x$enable_dependency_tracking" != xno; then
4102 am_depcomp="$ac_aux_dir/depcomp"
4103 AMDEPBACKSLASH='\'
4104 am__nodep='_no'
4106 if test "x$enable_dependency_tracking" != xno; then
4107 AMDEP_TRUE=
4108 AMDEP_FALSE='#'
4109 else
4110 AMDEP_TRUE='#'
4111 AMDEP_FALSE=
4116 depcc="$CC" am_compiler_list=
4118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4119 $as_echo_n "checking dependency style of $depcc... " >&6; }
4120 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4121 $as_echo_n "(cached) " >&6
4122 else
4123 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4124 # We make a subdir and do the tests there. Otherwise we can end up
4125 # making bogus files that we don't know about and never remove. For
4126 # instance it was reported that on HP-UX the gcc test will end up
4127 # making a dummy file named 'D' -- because '-MD' means "put the output
4128 # in D".
4129 rm -rf conftest.dir
4130 mkdir conftest.dir
4131 # Copy depcomp to subdir because otherwise we won't find it if we're
4132 # using a relative directory.
4133 cp "$am_depcomp" conftest.dir
4134 cd conftest.dir
4135 # We will build objects and dependencies in a subdirectory because
4136 # it helps to detect inapplicable dependency modes. For instance
4137 # both Tru64's cc and ICC support -MD to output dependencies as a
4138 # side effect of compilation, but ICC will put the dependencies in
4139 # the current directory while Tru64 will put them in the object
4140 # directory.
4141 mkdir sub
4143 am_cv_CC_dependencies_compiler_type=none
4144 if test "$am_compiler_list" = ""; then
4145 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4147 am__universal=false
4148 case " $depcc " in #(
4149 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4150 esac
4152 for depmode in $am_compiler_list; do
4153 # Setup a source with many dependencies, because some compilers
4154 # like to wrap large dependency lists on column 80 (with \), and
4155 # we should not choose a depcomp mode which is confused by this.
4157 # We need to recreate these files for each test, as the compiler may
4158 # overwrite some of them when testing with obscure command lines.
4159 # This happens at least with the AIX C compiler.
4160 : > sub/conftest.c
4161 for i in 1 2 3 4 5 6; do
4162 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4163 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4164 # Solaris 10 /bin/sh.
4165 echo '/* dummy */' > sub/conftst$i.h
4166 done
4167 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4169 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4170 # mode. It turns out that the SunPro C++ compiler does not properly
4171 # handle '-M -o', and we need to detect this. Also, some Intel
4172 # versions had trouble with output in subdirs.
4173 am__obj=sub/conftest.${OBJEXT-o}
4174 am__minus_obj="-o $am__obj"
4175 case $depmode in
4176 gcc)
4177 # This depmode causes a compiler race in universal mode.
4178 test "$am__universal" = false || continue
4180 nosideeffect)
4181 # After this tag, mechanisms are not by side-effect, so they'll
4182 # only be used when explicitly requested.
4183 if test "x$enable_dependency_tracking" = xyes; then
4184 continue
4185 else
4186 break
4189 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4190 # This compiler won't grok '-c -o', but also, the minuso test has
4191 # not run yet. These depmodes are late enough in the game, and
4192 # so weak that their functioning should not be impacted.
4193 am__obj=conftest.${OBJEXT-o}
4194 am__minus_obj=
4196 none) break ;;
4197 esac
4198 if depmode=$depmode \
4199 source=sub/conftest.c object=$am__obj \
4200 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4201 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4202 >/dev/null 2>conftest.err &&
4203 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4204 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4205 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4206 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4207 # icc doesn't choke on unknown options, it will just issue warnings
4208 # or remarks (even with -Werror). So we grep stderr for any message
4209 # that says an option was ignored or not supported.
4210 # When given -MP, icc 7.0 and 7.1 complain thusly:
4211 # icc: Command line warning: ignoring option '-M'; no argument required
4212 # The diagnosis changed in icc 8.0:
4213 # icc: Command line remark: option '-MP' not supported
4214 if (grep 'ignoring option' conftest.err ||
4215 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4216 am_cv_CC_dependencies_compiler_type=$depmode
4217 break
4220 done
4222 cd ..
4223 rm -rf conftest.dir
4224 else
4225 am_cv_CC_dependencies_compiler_type=none
4229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4230 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4231 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4234 test "x$enable_dependency_tracking" != xno \
4235 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4236 am__fastdepCC_TRUE=
4237 am__fastdepCC_FALSE='#'
4238 else
4239 am__fastdepCC_TRUE='#'
4240 am__fastdepCC_FALSE=
4244 ac_ext=cpp
4245 ac_cpp='$CXXCPP $CPPFLAGS'
4246 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4247 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4248 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4249 if test -z "$CXX"; then
4250 if test -n "$CCC"; then
4251 CXX=$CCC
4252 else
4253 if test -n "$ac_tool_prefix"; then
4254 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4256 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4257 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4259 $as_echo_n "checking for $ac_word... " >&6; }
4260 if ${ac_cv_prog_CXX+:} false; then :
4261 $as_echo_n "(cached) " >&6
4262 else
4263 if test -n "$CXX"; then
4264 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4265 else
4266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4267 for as_dir in $PATH
4269 IFS=$as_save_IFS
4270 test -z "$as_dir" && as_dir=.
4271 for ac_exec_ext in '' $ac_executable_extensions; do
4272 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4273 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4274 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4275 break 2
4277 done
4278 done
4279 IFS=$as_save_IFS
4283 CXX=$ac_cv_prog_CXX
4284 if test -n "$CXX"; then
4285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4286 $as_echo "$CXX" >&6; }
4287 else
4288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4289 $as_echo "no" >&6; }
4293 test -n "$CXX" && break
4294 done
4296 if test -z "$CXX"; then
4297 ac_ct_CXX=$CXX
4298 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4300 # Extract the first word of "$ac_prog", so it can be a program name with args.
4301 set dummy $ac_prog; ac_word=$2
4302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4303 $as_echo_n "checking for $ac_word... " >&6; }
4304 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4305 $as_echo_n "(cached) " >&6
4306 else
4307 if test -n "$ac_ct_CXX"; then
4308 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4309 else
4310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4311 for as_dir in $PATH
4313 IFS=$as_save_IFS
4314 test -z "$as_dir" && as_dir=.
4315 for ac_exec_ext in '' $ac_executable_extensions; do
4316 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4317 ac_cv_prog_ac_ct_CXX="$ac_prog"
4318 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4319 break 2
4321 done
4322 done
4323 IFS=$as_save_IFS
4327 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4328 if test -n "$ac_ct_CXX"; then
4329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4330 $as_echo "$ac_ct_CXX" >&6; }
4331 else
4332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4333 $as_echo "no" >&6; }
4337 test -n "$ac_ct_CXX" && break
4338 done
4340 if test "x$ac_ct_CXX" = x; then
4341 CXX="g++"
4342 else
4343 case $cross_compiling:$ac_tool_warned in
4344 yes:)
4345 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4346 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4347 ac_tool_warned=yes ;;
4348 esac
4349 CXX=$ac_ct_CXX
4355 # Provide some information about the compiler.
4356 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4357 set X $ac_compile
4358 ac_compiler=$2
4359 for ac_option in --version -v -V -qversion; do
4360 { { ac_try="$ac_compiler $ac_option >&5"
4361 case "(($ac_try" in
4362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4363 *) ac_try_echo=$ac_try;;
4364 esac
4365 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4366 $as_echo "$ac_try_echo"; } >&5
4367 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4368 ac_status=$?
4369 if test -s conftest.err; then
4370 sed '10a\
4371 ... rest of stderr output deleted ...
4372 10q' conftest.err >conftest.er1
4373 cat conftest.er1 >&5
4375 rm -f conftest.er1 conftest.err
4376 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4377 test $ac_status = 0; }
4378 done
4380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4381 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4382 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4383 $as_echo_n "(cached) " >&6
4384 else
4385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4386 /* end confdefs.h. */
4389 main ()
4391 #ifndef __GNUC__
4392 choke me
4393 #endif
4396 return 0;
4398 _ACEOF
4399 if ac_fn_cxx_try_compile "$LINENO"; then :
4400 ac_compiler_gnu=yes
4401 else
4402 ac_compiler_gnu=no
4404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4405 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4409 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4410 if test $ac_compiler_gnu = yes; then
4411 GXX=yes
4412 else
4413 GXX=
4415 ac_test_CXXFLAGS=${CXXFLAGS+set}
4416 ac_save_CXXFLAGS=$CXXFLAGS
4417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4418 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4419 if ${ac_cv_prog_cxx_g+:} false; then :
4420 $as_echo_n "(cached) " >&6
4421 else
4422 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4423 ac_cxx_werror_flag=yes
4424 ac_cv_prog_cxx_g=no
4425 CXXFLAGS="-g"
4426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4427 /* end confdefs.h. */
4430 main ()
4434 return 0;
4436 _ACEOF
4437 if ac_fn_cxx_try_compile "$LINENO"; then :
4438 ac_cv_prog_cxx_g=yes
4439 else
4440 CXXFLAGS=""
4441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4442 /* end confdefs.h. */
4445 main ()
4449 return 0;
4451 _ACEOF
4452 if ac_fn_cxx_try_compile "$LINENO"; then :
4454 else
4455 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4456 CXXFLAGS="-g"
4457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4458 /* end confdefs.h. */
4461 main ()
4465 return 0;
4467 _ACEOF
4468 if ac_fn_cxx_try_compile "$LINENO"; then :
4469 ac_cv_prog_cxx_g=yes
4471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4473 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4476 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4479 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4480 if test "$ac_test_CXXFLAGS" = set; then
4481 CXXFLAGS=$ac_save_CXXFLAGS
4482 elif test $ac_cv_prog_cxx_g = yes; then
4483 if test "$GXX" = yes; then
4484 CXXFLAGS="-g -O2"
4485 else
4486 CXXFLAGS="-g"
4488 else
4489 if test "$GXX" = yes; then
4490 CXXFLAGS="-O2"
4491 else
4492 CXXFLAGS=
4495 ac_ext=c
4496 ac_cpp='$CPP $CPPFLAGS'
4497 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4498 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4499 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4501 depcc="$CXX" am_compiler_list=
4503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4504 $as_echo_n "checking dependency style of $depcc... " >&6; }
4505 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
4506 $as_echo_n "(cached) " >&6
4507 else
4508 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4509 # We make a subdir and do the tests there. Otherwise we can end up
4510 # making bogus files that we don't know about and never remove. For
4511 # instance it was reported that on HP-UX the gcc test will end up
4512 # making a dummy file named 'D' -- because '-MD' means "put the output
4513 # in D".
4514 rm -rf conftest.dir
4515 mkdir conftest.dir
4516 # Copy depcomp to subdir because otherwise we won't find it if we're
4517 # using a relative directory.
4518 cp "$am_depcomp" conftest.dir
4519 cd conftest.dir
4520 # We will build objects and dependencies in a subdirectory because
4521 # it helps to detect inapplicable dependency modes. For instance
4522 # both Tru64's cc and ICC support -MD to output dependencies as a
4523 # side effect of compilation, but ICC will put the dependencies in
4524 # the current directory while Tru64 will put them in the object
4525 # directory.
4526 mkdir sub
4528 am_cv_CXX_dependencies_compiler_type=none
4529 if test "$am_compiler_list" = ""; then
4530 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4532 am__universal=false
4533 case " $depcc " in #(
4534 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4535 esac
4537 for depmode in $am_compiler_list; do
4538 # Setup a source with many dependencies, because some compilers
4539 # like to wrap large dependency lists on column 80 (with \), and
4540 # we should not choose a depcomp mode which is confused by this.
4542 # We need to recreate these files for each test, as the compiler may
4543 # overwrite some of them when testing with obscure command lines.
4544 # This happens at least with the AIX C compiler.
4545 : > sub/conftest.c
4546 for i in 1 2 3 4 5 6; do
4547 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4548 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4549 # Solaris 10 /bin/sh.
4550 echo '/* dummy */' > sub/conftst$i.h
4551 done
4552 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4554 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4555 # mode. It turns out that the SunPro C++ compiler does not properly
4556 # handle '-M -o', and we need to detect this. Also, some Intel
4557 # versions had trouble with output in subdirs.
4558 am__obj=sub/conftest.${OBJEXT-o}
4559 am__minus_obj="-o $am__obj"
4560 case $depmode in
4561 gcc)
4562 # This depmode causes a compiler race in universal mode.
4563 test "$am__universal" = false || continue
4565 nosideeffect)
4566 # After this tag, mechanisms are not by side-effect, so they'll
4567 # only be used when explicitly requested.
4568 if test "x$enable_dependency_tracking" = xyes; then
4569 continue
4570 else
4571 break
4574 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4575 # This compiler won't grok '-c -o', but also, the minuso test has
4576 # not run yet. These depmodes are late enough in the game, and
4577 # so weak that their functioning should not be impacted.
4578 am__obj=conftest.${OBJEXT-o}
4579 am__minus_obj=
4581 none) break ;;
4582 esac
4583 if depmode=$depmode \
4584 source=sub/conftest.c object=$am__obj \
4585 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4586 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4587 >/dev/null 2>conftest.err &&
4588 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4589 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4590 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4591 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4592 # icc doesn't choke on unknown options, it will just issue warnings
4593 # or remarks (even with -Werror). So we grep stderr for any message
4594 # that says an option was ignored or not supported.
4595 # When given -MP, icc 7.0 and 7.1 complain thusly:
4596 # icc: Command line warning: ignoring option '-M'; no argument required
4597 # The diagnosis changed in icc 8.0:
4598 # icc: Command line remark: option '-MP' not supported
4599 if (grep 'ignoring option' conftest.err ||
4600 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4601 am_cv_CXX_dependencies_compiler_type=$depmode
4602 break
4605 done
4607 cd ..
4608 rm -rf conftest.dir
4609 else
4610 am_cv_CXX_dependencies_compiler_type=none
4614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4615 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4616 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4619 test "x$enable_dependency_tracking" != xno \
4620 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4621 am__fastdepCXX_TRUE=
4622 am__fastdepCXX_FALSE='#'
4623 else
4624 am__fastdepCXX_TRUE='#'
4625 am__fastdepCXX_FALSE=
4629 # AC_PROG_LIBTOOL
4630 ac_config_files="$ac_config_files Makefile"
4633 if test "${multilib}" = "yes"; then
4634 multilib_arg="--enable-multilib"
4635 else
4636 multilib_arg=
4639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
4640 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
4641 # Check whether --enable-version-specific-runtime-libs was given.
4642 if test "${enable_version_specific_runtime_libs+set}" = set; then :
4643 enableval=$enable_version_specific_runtime_libs; case "$enableval" in
4644 yes) enable_version_specific_runtime_libs=yes ;;
4645 no) enable_version_specific_runtime_libs=no ;;
4646 *) as_fn_error $? "Unknown argument to enable/disable version-specific libs
4647 " "$LINENO" 5;;
4648 esac
4649 else
4650 enable_version_specific_runtime_libs=no
4653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_version_specific_runtime_libs" >&5
4654 $as_echo "$enable_version_specific_runtime_libs" >&6; }
4656 # Calculate toolexeclibdir
4657 # Also toolexecdir, though it's only used in toolexeclibdir
4658 case ${enable_version_specific_runtime_libs} in
4659 yes)
4660 # Need the gcc compiler version to know where to install libraries
4661 # and header files if --enable-version-specific-runtime-libs option
4662 # is selected.
4663 toolexecdir='$(libdir)/gcc/$(target_alias)'
4664 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
4667 if test -n "$with_cross_host" &&
4668 test x"$with_cross_host" != x"no"; then
4669 # Install a library built with a cross compiler in tooldir, not libdir.
4670 toolexecdir='$(exec_prefix)/$(target_alias)'
4671 toolexeclibdir='$(toolexecdir)/lib'
4672 else
4673 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
4674 toolexeclibdir='$(libdir)'
4676 multi_os_directory=`$CC -print-multi-os-directory`
4677 case $multi_os_directory in
4678 .) ;; # Avoid trailing /.
4679 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
4680 esac
4682 esac
4684 # Set config_dir based on the target. config_dir specifies where to get
4685 # target-specific files. The generic implementation is incomplete, but
4686 # contains information on what's needed
4687 case "${target}" in
4689 x86_64-*-*)
4690 config_dir="x86"
4693 i?86-*-*)
4694 config_dir="x86"
4698 config_dir="generic"
4701 esac
4704 # We have linker scripts for appropriate operating systems
4705 linux_linker_script=no
4706 case "${host}" in
4707 *-*-linux*)
4708 linux_linker_script=yes
4710 esac
4711 if test "$linux_linker_script" = "yes"; then
4712 LINUX_LINKER_SCRIPT_TRUE=
4713 LINUX_LINKER_SCRIPT_FALSE='#'
4714 else
4715 LINUX_LINKER_SCRIPT_TRUE='#'
4716 LINUX_LINKER_SCRIPT_FALSE=
4720 mac_linker_script=no
4721 case "${host}" in
4722 *-*-apple*)
4723 mac_linker_script=yes
4725 esac
4726 if test "$mac_linker_script" = "yes"; then
4727 MAC_LINKER_SCRIPT_TRUE=
4728 MAC_LINKER_SCRIPT_FALSE='#'
4729 else
4730 MAC_LINKER_SCRIPT_TRUE='#'
4731 MAC_LINKER_SCRIPT_FALSE=
4735 enable_dlopen=yes
4739 case `pwd` in
4740 *\ * | *\ *)
4741 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4742 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4743 esac
4747 macro_version='2.2.7a'
4748 macro_revision='1.3134'
4762 ltmain="$ac_aux_dir/ltmain.sh"
4764 # Backslashify metacharacters that are still active within
4765 # double-quoted strings.
4766 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4768 # Same as above, but do not quote variable references.
4769 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4771 # Sed substitution to delay expansion of an escaped shell variable in a
4772 # double_quote_subst'ed string.
4773 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4775 # Sed substitution to delay expansion of an escaped single quote.
4776 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4778 # Sed substitution to avoid accidental globbing in evaled expressions
4779 no_glob_subst='s/\*/\\\*/g'
4781 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4782 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4783 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4786 $as_echo_n "checking how to print strings... " >&6; }
4787 # Test print first, because it will be a builtin if present.
4788 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
4789 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4790 ECHO='print -r --'
4791 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4792 ECHO='printf %s\n'
4793 else
4794 # Use this function as a fallback that always works.
4795 func_fallback_echo ()
4797 eval 'cat <<_LTECHO_EOF
4799 _LTECHO_EOF'
4801 ECHO='func_fallback_echo'
4804 # func_echo_all arg...
4805 # Invoke $ECHO with all args, space-separated.
4806 func_echo_all ()
4808 $ECHO ""
4811 case "$ECHO" in
4812 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4813 $as_echo "printf" >&6; } ;;
4814 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4815 $as_echo "print -r" >&6; } ;;
4816 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4817 $as_echo "cat" >&6; } ;;
4818 esac
4833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4834 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4835 if ${ac_cv_path_SED+:} false; then :
4836 $as_echo_n "(cached) " >&6
4837 else
4838 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4839 for ac_i in 1 2 3 4 5 6 7; do
4840 ac_script="$ac_script$as_nl$ac_script"
4841 done
4842 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4843 { ac_script=; unset ac_script;}
4844 if test -z "$SED"; then
4845 ac_path_SED_found=false
4846 # Loop through the user's path and test for each of PROGNAME-LIST
4847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4848 for as_dir in $PATH
4850 IFS=$as_save_IFS
4851 test -z "$as_dir" && as_dir=.
4852 for ac_prog in sed gsed; do
4853 for ac_exec_ext in '' $ac_executable_extensions; do
4854 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4855 as_fn_executable_p "$ac_path_SED" || continue
4856 # Check for GNU ac_path_SED and select it if it is found.
4857 # Check for GNU $ac_path_SED
4858 case `"$ac_path_SED" --version 2>&1` in
4859 *GNU*)
4860 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4862 ac_count=0
4863 $as_echo_n 0123456789 >"conftest.in"
4864 while :
4866 cat "conftest.in" "conftest.in" >"conftest.tmp"
4867 mv "conftest.tmp" "conftest.in"
4868 cp "conftest.in" "conftest.nl"
4869 $as_echo '' >> "conftest.nl"
4870 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4871 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4872 as_fn_arith $ac_count + 1 && ac_count=$as_val
4873 if test $ac_count -gt ${ac_path_SED_max-0}; then
4874 # Best one so far, save it but keep looking for a better one
4875 ac_cv_path_SED="$ac_path_SED"
4876 ac_path_SED_max=$ac_count
4878 # 10*(2^10) chars as input seems more than enough
4879 test $ac_count -gt 10 && break
4880 done
4881 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4882 esac
4884 $ac_path_SED_found && break 3
4885 done
4886 done
4887 done
4888 IFS=$as_save_IFS
4889 if test -z "$ac_cv_path_SED"; then
4890 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4892 else
4893 ac_cv_path_SED=$SED
4897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4898 $as_echo "$ac_cv_path_SED" >&6; }
4899 SED="$ac_cv_path_SED"
4900 rm -f conftest.sed
4902 test -z "$SED" && SED=sed
4903 Xsed="$SED -e 1s/^X//"
4915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4916 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4917 if ${ac_cv_path_GREP+:} false; then :
4918 $as_echo_n "(cached) " >&6
4919 else
4920 if test -z "$GREP"; then
4921 ac_path_GREP_found=false
4922 # Loop through the user's path and test for each of PROGNAME-LIST
4923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4924 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4926 IFS=$as_save_IFS
4927 test -z "$as_dir" && as_dir=.
4928 for ac_prog in grep ggrep; do
4929 for ac_exec_ext in '' $ac_executable_extensions; do
4930 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4931 as_fn_executable_p "$ac_path_GREP" || continue
4932 # Check for GNU ac_path_GREP and select it if it is found.
4933 # Check for GNU $ac_path_GREP
4934 case `"$ac_path_GREP" --version 2>&1` in
4935 *GNU*)
4936 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4938 ac_count=0
4939 $as_echo_n 0123456789 >"conftest.in"
4940 while :
4942 cat "conftest.in" "conftest.in" >"conftest.tmp"
4943 mv "conftest.tmp" "conftest.in"
4944 cp "conftest.in" "conftest.nl"
4945 $as_echo 'GREP' >> "conftest.nl"
4946 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4947 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4948 as_fn_arith $ac_count + 1 && ac_count=$as_val
4949 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4950 # Best one so far, save it but keep looking for a better one
4951 ac_cv_path_GREP="$ac_path_GREP"
4952 ac_path_GREP_max=$ac_count
4954 # 10*(2^10) chars as input seems more than enough
4955 test $ac_count -gt 10 && break
4956 done
4957 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4958 esac
4960 $ac_path_GREP_found && break 3
4961 done
4962 done
4963 done
4964 IFS=$as_save_IFS
4965 if test -z "$ac_cv_path_GREP"; then
4966 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4968 else
4969 ac_cv_path_GREP=$GREP
4973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4974 $as_echo "$ac_cv_path_GREP" >&6; }
4975 GREP="$ac_cv_path_GREP"
4978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4979 $as_echo_n "checking for egrep... " >&6; }
4980 if ${ac_cv_path_EGREP+:} false; then :
4981 $as_echo_n "(cached) " >&6
4982 else
4983 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4984 then ac_cv_path_EGREP="$GREP -E"
4985 else
4986 if test -z "$EGREP"; then
4987 ac_path_EGREP_found=false
4988 # Loop through the user's path and test for each of PROGNAME-LIST
4989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4990 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4992 IFS=$as_save_IFS
4993 test -z "$as_dir" && as_dir=.
4994 for ac_prog in egrep; do
4995 for ac_exec_ext in '' $ac_executable_extensions; do
4996 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4997 as_fn_executable_p "$ac_path_EGREP" || continue
4998 # Check for GNU ac_path_EGREP and select it if it is found.
4999 # Check for GNU $ac_path_EGREP
5000 case `"$ac_path_EGREP" --version 2>&1` in
5001 *GNU*)
5002 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5004 ac_count=0
5005 $as_echo_n 0123456789 >"conftest.in"
5006 while :
5008 cat "conftest.in" "conftest.in" >"conftest.tmp"
5009 mv "conftest.tmp" "conftest.in"
5010 cp "conftest.in" "conftest.nl"
5011 $as_echo 'EGREP' >> "conftest.nl"
5012 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5013 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5014 as_fn_arith $ac_count + 1 && ac_count=$as_val
5015 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5016 # Best one so far, save it but keep looking for a better one
5017 ac_cv_path_EGREP="$ac_path_EGREP"
5018 ac_path_EGREP_max=$ac_count
5020 # 10*(2^10) chars as input seems more than enough
5021 test $ac_count -gt 10 && break
5022 done
5023 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5024 esac
5026 $ac_path_EGREP_found && break 3
5027 done
5028 done
5029 done
5030 IFS=$as_save_IFS
5031 if test -z "$ac_cv_path_EGREP"; then
5032 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5034 else
5035 ac_cv_path_EGREP=$EGREP
5040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5041 $as_echo "$ac_cv_path_EGREP" >&6; }
5042 EGREP="$ac_cv_path_EGREP"
5045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5046 $as_echo_n "checking for fgrep... " >&6; }
5047 if ${ac_cv_path_FGREP+:} false; then :
5048 $as_echo_n "(cached) " >&6
5049 else
5050 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5051 then ac_cv_path_FGREP="$GREP -F"
5052 else
5053 if test -z "$FGREP"; then
5054 ac_path_FGREP_found=false
5055 # Loop through the user's path and test for each of PROGNAME-LIST
5056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5057 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5059 IFS=$as_save_IFS
5060 test -z "$as_dir" && as_dir=.
5061 for ac_prog in fgrep; do
5062 for ac_exec_ext in '' $ac_executable_extensions; do
5063 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5064 as_fn_executable_p "$ac_path_FGREP" || continue
5065 # Check for GNU ac_path_FGREP and select it if it is found.
5066 # Check for GNU $ac_path_FGREP
5067 case `"$ac_path_FGREP" --version 2>&1` in
5068 *GNU*)
5069 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5071 ac_count=0
5072 $as_echo_n 0123456789 >"conftest.in"
5073 while :
5075 cat "conftest.in" "conftest.in" >"conftest.tmp"
5076 mv "conftest.tmp" "conftest.in"
5077 cp "conftest.in" "conftest.nl"
5078 $as_echo 'FGREP' >> "conftest.nl"
5079 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5080 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5081 as_fn_arith $ac_count + 1 && ac_count=$as_val
5082 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5083 # Best one so far, save it but keep looking for a better one
5084 ac_cv_path_FGREP="$ac_path_FGREP"
5085 ac_path_FGREP_max=$ac_count
5087 # 10*(2^10) chars as input seems more than enough
5088 test $ac_count -gt 10 && break
5089 done
5090 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5091 esac
5093 $ac_path_FGREP_found && break 3
5094 done
5095 done
5096 done
5097 IFS=$as_save_IFS
5098 if test -z "$ac_cv_path_FGREP"; then
5099 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5101 else
5102 ac_cv_path_FGREP=$FGREP
5107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5108 $as_echo "$ac_cv_path_FGREP" >&6; }
5109 FGREP="$ac_cv_path_FGREP"
5112 test -z "$GREP" && GREP=grep
5132 # Check whether --with-gnu-ld was given.
5133 if test "${with_gnu_ld+set}" = set; then :
5134 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5135 else
5136 with_gnu_ld=no
5139 ac_prog=ld
5140 if test "$GCC" = yes; then
5141 # Check if gcc -print-prog-name=ld gives a path.
5142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5143 $as_echo_n "checking for ld used by $CC... " >&6; }
5144 case $host in
5145 *-*-mingw*)
5146 # gcc leaves a trailing carriage return which upsets mingw
5147 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5149 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5150 esac
5151 case $ac_prog in
5152 # Accept absolute paths.
5153 [\\/]* | ?:[\\/]*)
5154 re_direlt='/[^/][^/]*/\.\./'
5155 # Canonicalize the pathname of ld
5156 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5157 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5158 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5159 done
5160 test -z "$LD" && LD="$ac_prog"
5163 # If it fails, then pretend we aren't using GCC.
5164 ac_prog=ld
5167 # If it is relative, then search for the first ld in PATH.
5168 with_gnu_ld=unknown
5170 esac
5171 elif test "$with_gnu_ld" = yes; then
5172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5173 $as_echo_n "checking for GNU ld... " >&6; }
5174 else
5175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5176 $as_echo_n "checking for non-GNU ld... " >&6; }
5178 if ${lt_cv_path_LD+:} false; then :
5179 $as_echo_n "(cached) " >&6
5180 else
5181 if test -z "$LD"; then
5182 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5183 for ac_dir in $PATH; do
5184 IFS="$lt_save_ifs"
5185 test -z "$ac_dir" && ac_dir=.
5186 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5187 lt_cv_path_LD="$ac_dir/$ac_prog"
5188 # Check to see if the program is GNU ld. I'd rather use --version,
5189 # but apparently some variants of GNU ld only accept -v.
5190 # Break only if it was the GNU/non-GNU ld that we prefer.
5191 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5192 *GNU* | *'with BFD'*)
5193 test "$with_gnu_ld" != no && break
5196 test "$with_gnu_ld" != yes && break
5198 esac
5200 done
5201 IFS="$lt_save_ifs"
5202 else
5203 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5207 LD="$lt_cv_path_LD"
5208 if test -n "$LD"; then
5209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5210 $as_echo "$LD" >&6; }
5211 else
5212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5213 $as_echo "no" >&6; }
5215 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5217 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5218 if ${lt_cv_prog_gnu_ld+:} false; then :
5219 $as_echo_n "(cached) " >&6
5220 else
5221 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5222 case `$LD -v 2>&1 </dev/null` in
5223 *GNU* | *'with BFD'*)
5224 lt_cv_prog_gnu_ld=yes
5227 lt_cv_prog_gnu_ld=no
5229 esac
5231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5232 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5233 with_gnu_ld=$lt_cv_prog_gnu_ld
5243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5244 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5245 if ${lt_cv_path_NM+:} false; then :
5246 $as_echo_n "(cached) " >&6
5247 else
5248 if test -n "$NM"; then
5249 # Let the user override the test.
5250 lt_cv_path_NM="$NM"
5251 else
5252 lt_nm_to_check="${ac_tool_prefix}nm"
5253 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5254 lt_nm_to_check="$lt_nm_to_check nm"
5256 for lt_tmp_nm in $lt_nm_to_check; do
5257 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5258 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5259 IFS="$lt_save_ifs"
5260 test -z "$ac_dir" && ac_dir=.
5261 tmp_nm="$ac_dir/$lt_tmp_nm"
5262 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5263 # Check to see if the nm accepts a BSD-compat flag.
5264 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5265 # nm: unknown option "B" ignored
5266 # Tru64's nm complains that /dev/null is an invalid object file
5267 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5268 */dev/null* | *'Invalid file or object type'*)
5269 lt_cv_path_NM="$tmp_nm -B"
5270 break
5273 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5274 */dev/null*)
5275 lt_cv_path_NM="$tmp_nm -p"
5276 break
5279 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5280 continue # so that we can try to find one that supports BSD flags
5282 esac
5284 esac
5286 done
5287 IFS="$lt_save_ifs"
5288 done
5289 : ${lt_cv_path_NM=no}
5292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5293 $as_echo "$lt_cv_path_NM" >&6; }
5294 if test "$lt_cv_path_NM" != "no"; then
5295 NM="$lt_cv_path_NM"
5296 else
5297 # Didn't find any BSD compatible name lister, look for dumpbin.
5298 if test -n "$DUMPBIN"; then :
5299 # Let the user override the test.
5300 else
5301 if test -n "$ac_tool_prefix"; then
5302 for ac_prog in dumpbin "link -dump"
5304 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5305 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5307 $as_echo_n "checking for $ac_word... " >&6; }
5308 if ${ac_cv_prog_DUMPBIN+:} false; then :
5309 $as_echo_n "(cached) " >&6
5310 else
5311 if test -n "$DUMPBIN"; then
5312 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5313 else
5314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5315 for as_dir in $PATH
5317 IFS=$as_save_IFS
5318 test -z "$as_dir" && as_dir=.
5319 for ac_exec_ext in '' $ac_executable_extensions; do
5320 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5321 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5322 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5323 break 2
5325 done
5326 done
5327 IFS=$as_save_IFS
5331 DUMPBIN=$ac_cv_prog_DUMPBIN
5332 if test -n "$DUMPBIN"; then
5333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5334 $as_echo "$DUMPBIN" >&6; }
5335 else
5336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5337 $as_echo "no" >&6; }
5341 test -n "$DUMPBIN" && break
5342 done
5344 if test -z "$DUMPBIN"; then
5345 ac_ct_DUMPBIN=$DUMPBIN
5346 for ac_prog in dumpbin "link -dump"
5348 # Extract the first word of "$ac_prog", so it can be a program name with args.
5349 set dummy $ac_prog; ac_word=$2
5350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5351 $as_echo_n "checking for $ac_word... " >&6; }
5352 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5353 $as_echo_n "(cached) " >&6
5354 else
5355 if test -n "$ac_ct_DUMPBIN"; then
5356 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5357 else
5358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5359 for as_dir in $PATH
5361 IFS=$as_save_IFS
5362 test -z "$as_dir" && as_dir=.
5363 for ac_exec_ext in '' $ac_executable_extensions; do
5364 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5365 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5366 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5367 break 2
5369 done
5370 done
5371 IFS=$as_save_IFS
5375 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5376 if test -n "$ac_ct_DUMPBIN"; then
5377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5378 $as_echo "$ac_ct_DUMPBIN" >&6; }
5379 else
5380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5381 $as_echo "no" >&6; }
5385 test -n "$ac_ct_DUMPBIN" && break
5386 done
5388 if test "x$ac_ct_DUMPBIN" = x; then
5389 DUMPBIN=":"
5390 else
5391 case $cross_compiling:$ac_tool_warned in
5392 yes:)
5393 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5394 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5395 ac_tool_warned=yes ;;
5396 esac
5397 DUMPBIN=$ac_ct_DUMPBIN
5401 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5402 *COFF*)
5403 DUMPBIN="$DUMPBIN -symbols"
5406 DUMPBIN=:
5408 esac
5411 if test "$DUMPBIN" != ":"; then
5412 NM="$DUMPBIN"
5415 test -z "$NM" && NM=nm
5422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5423 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5424 if ${lt_cv_nm_interface+:} false; then :
5425 $as_echo_n "(cached) " >&6
5426 else
5427 lt_cv_nm_interface="BSD nm"
5428 echo "int some_variable = 0;" > conftest.$ac_ext
5429 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5430 (eval "$ac_compile" 2>conftest.err)
5431 cat conftest.err >&5
5432 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5433 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5434 cat conftest.err >&5
5435 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5436 cat conftest.out >&5
5437 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5438 lt_cv_nm_interface="MS dumpbin"
5440 rm -f conftest*
5442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5443 $as_echo "$lt_cv_nm_interface" >&6; }
5445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5446 $as_echo_n "checking whether ln -s works... " >&6; }
5447 LN_S=$as_ln_s
5448 if test "$LN_S" = "ln -s"; then
5449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5450 $as_echo "yes" >&6; }
5451 else
5452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5453 $as_echo "no, using $LN_S" >&6; }
5456 # find the maximum length of command line arguments
5457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5458 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5459 if ${lt_cv_sys_max_cmd_len+:} false; then :
5460 $as_echo_n "(cached) " >&6
5461 else
5463 teststring="ABCD"
5465 case $build_os in
5466 msdosdjgpp*)
5467 # On DJGPP, this test can blow up pretty badly due to problems in libc
5468 # (any single argument exceeding 2000 bytes causes a buffer overrun
5469 # during glob expansion). Even if it were fixed, the result of this
5470 # check would be larger than it should be.
5471 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5474 gnu*)
5475 # Under GNU Hurd, this test is not required because there is
5476 # no limit to the length of command line arguments.
5477 # Libtool will interpret -1 as no limit whatsoever
5478 lt_cv_sys_max_cmd_len=-1;
5481 cygwin* | mingw* | cegcc*)
5482 # On Win9x/ME, this test blows up -- it succeeds, but takes
5483 # about 5 minutes as the teststring grows exponentially.
5484 # Worse, since 9x/ME are not pre-emptively multitasking,
5485 # you end up with a "frozen" computer, even though with patience
5486 # the test eventually succeeds (with a max line length of 256k).
5487 # Instead, let's just punt: use the minimum linelength reported by
5488 # all of the supported platforms: 8192 (on NT/2K/XP).
5489 lt_cv_sys_max_cmd_len=8192;
5492 mint*)
5493 # On MiNT this can take a long time and run out of memory.
5494 lt_cv_sys_max_cmd_len=8192;
5497 amigaos*)
5498 # On AmigaOS with pdksh, this test takes hours, literally.
5499 # So we just punt and use a minimum line length of 8192.
5500 lt_cv_sys_max_cmd_len=8192;
5503 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5504 # This has been around since 386BSD, at least. Likely further.
5505 if test -x /sbin/sysctl; then
5506 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5507 elif test -x /usr/sbin/sysctl; then
5508 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5509 else
5510 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5512 # And add a safety zone
5513 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5514 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5517 interix*)
5518 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5519 lt_cv_sys_max_cmd_len=196608
5522 osf*)
5523 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5524 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5525 # nice to cause kernel panics so lets avoid the loop below.
5526 # First set a reasonable default.
5527 lt_cv_sys_max_cmd_len=16384
5529 if test -x /sbin/sysconfig; then
5530 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5531 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5532 esac
5535 sco3.2v5*)
5536 lt_cv_sys_max_cmd_len=102400
5538 sysv5* | sco5v6* | sysv4.2uw2*)
5539 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5540 if test -n "$kargmax"; then
5541 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5542 else
5543 lt_cv_sys_max_cmd_len=32768
5547 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5548 if test -n "$lt_cv_sys_max_cmd_len"; then
5549 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5550 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5551 else
5552 # Make teststring a little bigger before we do anything with it.
5553 # a 1K string should be a reasonable start.
5554 for i in 1 2 3 4 5 6 7 8 ; do
5555 teststring=$teststring$teststring
5556 done
5557 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5558 # If test is not a shell built-in, we'll probably end up computing a
5559 # maximum length that is only half of the actual maximum length, but
5560 # we can't tell.
5561 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5562 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5563 test $i != 17 # 1/2 MB should be enough
5565 i=`expr $i + 1`
5566 teststring=$teststring$teststring
5567 done
5568 # Only check the string length outside the loop.
5569 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5570 teststring=
5571 # Add a significant safety factor because C++ compilers can tack on
5572 # massive amounts of additional arguments before passing them to the
5573 # linker. It appears as though 1/2 is a usable value.
5574 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5577 esac
5581 if test -n $lt_cv_sys_max_cmd_len ; then
5582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5583 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5584 else
5585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5586 $as_echo "none" >&6; }
5588 max_cmd_len=$lt_cv_sys_max_cmd_len
5595 : ${CP="cp -f"}
5596 : ${MV="mv -f"}
5597 : ${RM="rm -f"}
5599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5600 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5601 # Try some XSI features
5602 xsi_shell=no
5603 ( _lt_dummy="a/b/c"
5604 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5605 = c,a/b,, \
5606 && eval 'test $(( 1 + 1 )) -eq 2 \
5607 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5608 && xsi_shell=yes
5609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5610 $as_echo "$xsi_shell" >&6; }
5613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5614 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5615 lt_shell_append=no
5616 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5617 >/dev/null 2>&1 \
5618 && lt_shell_append=yes
5619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5620 $as_echo "$lt_shell_append" >&6; }
5623 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5624 lt_unset=unset
5625 else
5626 lt_unset=false
5633 # test EBCDIC or ASCII
5634 case `echo X|tr X '\101'` in
5635 A) # ASCII based system
5636 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5637 lt_SP2NL='tr \040 \012'
5638 lt_NL2SP='tr \015\012 \040\040'
5640 *) # EBCDIC based system
5641 lt_SP2NL='tr \100 \n'
5642 lt_NL2SP='tr \r\n \100\100'
5644 esac
5654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5655 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5656 if ${lt_cv_ld_reload_flag+:} false; then :
5657 $as_echo_n "(cached) " >&6
5658 else
5659 lt_cv_ld_reload_flag='-r'
5661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5662 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5663 reload_flag=$lt_cv_ld_reload_flag
5664 case $reload_flag in
5665 "" | " "*) ;;
5666 *) reload_flag=" $reload_flag" ;;
5667 esac
5668 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5669 case $host_os in
5670 darwin*)
5671 if test "$GCC" = yes; then
5672 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5673 else
5674 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5677 esac
5687 if test -n "$ac_tool_prefix"; then
5688 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5689 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5691 $as_echo_n "checking for $ac_word... " >&6; }
5692 if ${ac_cv_prog_OBJDUMP+:} false; then :
5693 $as_echo_n "(cached) " >&6
5694 else
5695 if test -n "$OBJDUMP"; then
5696 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5697 else
5698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5699 for as_dir in $PATH
5701 IFS=$as_save_IFS
5702 test -z "$as_dir" && as_dir=.
5703 for ac_exec_ext in '' $ac_executable_extensions; do
5704 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5705 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5706 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5707 break 2
5709 done
5710 done
5711 IFS=$as_save_IFS
5715 OBJDUMP=$ac_cv_prog_OBJDUMP
5716 if test -n "$OBJDUMP"; then
5717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5718 $as_echo "$OBJDUMP" >&6; }
5719 else
5720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5721 $as_echo "no" >&6; }
5726 if test -z "$ac_cv_prog_OBJDUMP"; then
5727 ac_ct_OBJDUMP=$OBJDUMP
5728 # Extract the first word of "objdump", so it can be a program name with args.
5729 set dummy objdump; ac_word=$2
5730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5731 $as_echo_n "checking for $ac_word... " >&6; }
5732 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5733 $as_echo_n "(cached) " >&6
5734 else
5735 if test -n "$ac_ct_OBJDUMP"; then
5736 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5737 else
5738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5739 for as_dir in $PATH
5741 IFS=$as_save_IFS
5742 test -z "$as_dir" && as_dir=.
5743 for ac_exec_ext in '' $ac_executable_extensions; do
5744 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5745 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5746 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5747 break 2
5749 done
5750 done
5751 IFS=$as_save_IFS
5755 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5756 if test -n "$ac_ct_OBJDUMP"; then
5757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5758 $as_echo "$ac_ct_OBJDUMP" >&6; }
5759 else
5760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5761 $as_echo "no" >&6; }
5764 if test "x$ac_ct_OBJDUMP" = x; then
5765 OBJDUMP="false"
5766 else
5767 case $cross_compiling:$ac_tool_warned in
5768 yes:)
5769 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5770 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5771 ac_tool_warned=yes ;;
5772 esac
5773 OBJDUMP=$ac_ct_OBJDUMP
5775 else
5776 OBJDUMP="$ac_cv_prog_OBJDUMP"
5779 test -z "$OBJDUMP" && OBJDUMP=objdump
5789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5790 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5791 if ${lt_cv_deplibs_check_method+:} false; then :
5792 $as_echo_n "(cached) " >&6
5793 else
5794 lt_cv_file_magic_cmd='$MAGIC_CMD'
5795 lt_cv_file_magic_test_file=
5796 lt_cv_deplibs_check_method='unknown'
5797 # Need to set the preceding variable on all platforms that support
5798 # interlibrary dependencies.
5799 # 'none' -- dependencies not supported.
5800 # `unknown' -- same as none, but documents that we really don't know.
5801 # 'pass_all' -- all dependencies passed with no checks.
5802 # 'test_compile' -- check by making test program.
5803 # 'file_magic [[regex]]' -- check by looking for files in library path
5804 # which responds to the $file_magic_cmd with a given extended regex.
5805 # If you have `file' or equivalent on your system and you're not sure
5806 # whether `pass_all' will *always* work, you probably want this one.
5808 case $host_os in
5809 aix[4-9]*)
5810 lt_cv_deplibs_check_method=pass_all
5813 beos*)
5814 lt_cv_deplibs_check_method=pass_all
5817 bsdi[45]*)
5818 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5819 lt_cv_file_magic_cmd='/usr/bin/file -L'
5820 lt_cv_file_magic_test_file=/shlib/libc.so
5823 cygwin*)
5824 # func_win32_libid is a shell function defined in ltmain.sh
5825 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5826 lt_cv_file_magic_cmd='func_win32_libid'
5829 mingw* | pw32*)
5830 # Base MSYS/MinGW do not provide the 'file' command needed by
5831 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5832 # unless we find 'file', for example because we are cross-compiling.
5833 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5834 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5835 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5836 lt_cv_file_magic_cmd='func_win32_libid'
5837 else
5838 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5839 lt_cv_file_magic_cmd='$OBJDUMP -f'
5843 cegcc*)
5844 # use the weaker test based on 'objdump'. See mingw*.
5845 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5846 lt_cv_file_magic_cmd='$OBJDUMP -f'
5849 darwin* | rhapsody*)
5850 lt_cv_deplibs_check_method=pass_all
5853 freebsd* | dragonfly*)
5854 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5855 case $host_cpu in
5856 i*86 )
5857 # Not sure whether the presence of OpenBSD here was a mistake.
5858 # Let's accept both of them until this is cleared up.
5859 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5860 lt_cv_file_magic_cmd=/usr/bin/file
5861 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5863 esac
5864 else
5865 lt_cv_deplibs_check_method=pass_all
5869 gnu*)
5870 lt_cv_deplibs_check_method=pass_all
5873 haiku*)
5874 lt_cv_deplibs_check_method=pass_all
5877 hpux10.20* | hpux11*)
5878 lt_cv_file_magic_cmd=/usr/bin/file
5879 case $host_cpu in
5880 ia64*)
5881 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5882 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5884 hppa*64*)
5885 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]'
5886 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5889 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5890 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5892 esac
5895 interix[3-9]*)
5896 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5897 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5900 irix5* | irix6* | nonstopux*)
5901 case $LD in
5902 *-32|*"-32 ") libmagic=32-bit;;
5903 *-n32|*"-n32 ") libmagic=N32;;
5904 *-64|*"-64 ") libmagic=64-bit;;
5905 *) libmagic=never-match;;
5906 esac
5907 lt_cv_deplibs_check_method=pass_all
5910 # This must be Linux ELF.
5911 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
5912 lt_cv_deplibs_check_method=pass_all
5915 netbsd*)
5916 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5917 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5918 else
5919 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5923 newos6*)
5924 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5925 lt_cv_file_magic_cmd=/usr/bin/file
5926 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5929 *nto* | *qnx*)
5930 lt_cv_deplibs_check_method=pass_all
5933 openbsd*)
5934 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5935 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5936 else
5937 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5941 osf3* | osf4* | osf5*)
5942 lt_cv_deplibs_check_method=pass_all
5945 rdos*)
5946 lt_cv_deplibs_check_method=pass_all
5949 solaris*)
5950 lt_cv_deplibs_check_method=pass_all
5953 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5954 lt_cv_deplibs_check_method=pass_all
5957 sysv4 | sysv4.3*)
5958 case $host_vendor in
5959 motorola)
5960 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]'
5961 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5963 ncr)
5964 lt_cv_deplibs_check_method=pass_all
5966 sequent)
5967 lt_cv_file_magic_cmd='/bin/file'
5968 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5970 sni)
5971 lt_cv_file_magic_cmd='/bin/file'
5972 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5973 lt_cv_file_magic_test_file=/lib/libc.so
5975 siemens)
5976 lt_cv_deplibs_check_method=pass_all
5979 lt_cv_deplibs_check_method=pass_all
5981 esac
5984 tpf*)
5985 lt_cv_deplibs_check_method=pass_all
5987 esac
5990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5991 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5992 file_magic_cmd=$lt_cv_file_magic_cmd
5993 deplibs_check_method=$lt_cv_deplibs_check_method
5994 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6007 if test -n "$ac_tool_prefix"; then
6008 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6009 set dummy ${ac_tool_prefix}ar; ac_word=$2
6010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6011 $as_echo_n "checking for $ac_word... " >&6; }
6012 if ${ac_cv_prog_AR+:} false; then :
6013 $as_echo_n "(cached) " >&6
6014 else
6015 if test -n "$AR"; then
6016 ac_cv_prog_AR="$AR" # Let the user override the test.
6017 else
6018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6019 for as_dir in $PATH
6021 IFS=$as_save_IFS
6022 test -z "$as_dir" && as_dir=.
6023 for ac_exec_ext in '' $ac_executable_extensions; do
6024 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6025 ac_cv_prog_AR="${ac_tool_prefix}ar"
6026 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6027 break 2
6029 done
6030 done
6031 IFS=$as_save_IFS
6035 AR=$ac_cv_prog_AR
6036 if test -n "$AR"; then
6037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6038 $as_echo "$AR" >&6; }
6039 else
6040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6041 $as_echo "no" >&6; }
6046 if test -z "$ac_cv_prog_AR"; then
6047 ac_ct_AR=$AR
6048 # Extract the first word of "ar", so it can be a program name with args.
6049 set dummy ar; ac_word=$2
6050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6051 $as_echo_n "checking for $ac_word... " >&6; }
6052 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6053 $as_echo_n "(cached) " >&6
6054 else
6055 if test -n "$ac_ct_AR"; then
6056 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6057 else
6058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6059 for as_dir in $PATH
6061 IFS=$as_save_IFS
6062 test -z "$as_dir" && as_dir=.
6063 for ac_exec_ext in '' $ac_executable_extensions; do
6064 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6065 ac_cv_prog_ac_ct_AR="ar"
6066 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6067 break 2
6069 done
6070 done
6071 IFS=$as_save_IFS
6075 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6076 if test -n "$ac_ct_AR"; then
6077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6078 $as_echo "$ac_ct_AR" >&6; }
6079 else
6080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6081 $as_echo "no" >&6; }
6084 if test "x$ac_ct_AR" = x; then
6085 AR="false"
6086 else
6087 case $cross_compiling:$ac_tool_warned in
6088 yes:)
6089 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6090 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6091 ac_tool_warned=yes ;;
6092 esac
6093 AR=$ac_ct_AR
6095 else
6096 AR="$ac_cv_prog_AR"
6099 test -z "$AR" && AR=ar
6100 test -z "$AR_FLAGS" && AR_FLAGS=cru
6112 if test -n "$ac_tool_prefix"; then
6113 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6114 set dummy ${ac_tool_prefix}strip; ac_word=$2
6115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6116 $as_echo_n "checking for $ac_word... " >&6; }
6117 if ${ac_cv_prog_STRIP+:} false; then :
6118 $as_echo_n "(cached) " >&6
6119 else
6120 if test -n "$STRIP"; then
6121 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6122 else
6123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6124 for as_dir in $PATH
6126 IFS=$as_save_IFS
6127 test -z "$as_dir" && as_dir=.
6128 for ac_exec_ext in '' $ac_executable_extensions; do
6129 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6130 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6131 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6132 break 2
6134 done
6135 done
6136 IFS=$as_save_IFS
6140 STRIP=$ac_cv_prog_STRIP
6141 if test -n "$STRIP"; then
6142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6143 $as_echo "$STRIP" >&6; }
6144 else
6145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6146 $as_echo "no" >&6; }
6151 if test -z "$ac_cv_prog_STRIP"; then
6152 ac_ct_STRIP=$STRIP
6153 # Extract the first word of "strip", so it can be a program name with args.
6154 set dummy strip; ac_word=$2
6155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6156 $as_echo_n "checking for $ac_word... " >&6; }
6157 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6158 $as_echo_n "(cached) " >&6
6159 else
6160 if test -n "$ac_ct_STRIP"; then
6161 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6162 else
6163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6164 for as_dir in $PATH
6166 IFS=$as_save_IFS
6167 test -z "$as_dir" && as_dir=.
6168 for ac_exec_ext in '' $ac_executable_extensions; do
6169 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6170 ac_cv_prog_ac_ct_STRIP="strip"
6171 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6172 break 2
6174 done
6175 done
6176 IFS=$as_save_IFS
6180 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6181 if test -n "$ac_ct_STRIP"; then
6182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6183 $as_echo "$ac_ct_STRIP" >&6; }
6184 else
6185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6186 $as_echo "no" >&6; }
6189 if test "x$ac_ct_STRIP" = x; then
6190 STRIP=":"
6191 else
6192 case $cross_compiling:$ac_tool_warned in
6193 yes:)
6194 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6195 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6196 ac_tool_warned=yes ;;
6197 esac
6198 STRIP=$ac_ct_STRIP
6200 else
6201 STRIP="$ac_cv_prog_STRIP"
6204 test -z "$STRIP" && STRIP=:
6211 if test -n "$ac_tool_prefix"; then
6212 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6213 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6215 $as_echo_n "checking for $ac_word... " >&6; }
6216 if ${ac_cv_prog_RANLIB+:} false; then :
6217 $as_echo_n "(cached) " >&6
6218 else
6219 if test -n "$RANLIB"; then
6220 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6221 else
6222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6223 for as_dir in $PATH
6225 IFS=$as_save_IFS
6226 test -z "$as_dir" && as_dir=.
6227 for ac_exec_ext in '' $ac_executable_extensions; do
6228 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6229 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6230 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6231 break 2
6233 done
6234 done
6235 IFS=$as_save_IFS
6239 RANLIB=$ac_cv_prog_RANLIB
6240 if test -n "$RANLIB"; then
6241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6242 $as_echo "$RANLIB" >&6; }
6243 else
6244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6245 $as_echo "no" >&6; }
6250 if test -z "$ac_cv_prog_RANLIB"; then
6251 ac_ct_RANLIB=$RANLIB
6252 # Extract the first word of "ranlib", so it can be a program name with args.
6253 set dummy ranlib; ac_word=$2
6254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6255 $as_echo_n "checking for $ac_word... " >&6; }
6256 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6257 $as_echo_n "(cached) " >&6
6258 else
6259 if test -n "$ac_ct_RANLIB"; then
6260 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6261 else
6262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6263 for as_dir in $PATH
6265 IFS=$as_save_IFS
6266 test -z "$as_dir" && as_dir=.
6267 for ac_exec_ext in '' $ac_executable_extensions; do
6268 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6269 ac_cv_prog_ac_ct_RANLIB="ranlib"
6270 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6271 break 2
6273 done
6274 done
6275 IFS=$as_save_IFS
6279 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6280 if test -n "$ac_ct_RANLIB"; then
6281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6282 $as_echo "$ac_ct_RANLIB" >&6; }
6283 else
6284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6285 $as_echo "no" >&6; }
6288 if test "x$ac_ct_RANLIB" = x; then
6289 RANLIB=":"
6290 else
6291 case $cross_compiling:$ac_tool_warned in
6292 yes:)
6293 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6294 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6295 ac_tool_warned=yes ;;
6296 esac
6297 RANLIB=$ac_ct_RANLIB
6299 else
6300 RANLIB="$ac_cv_prog_RANLIB"
6303 test -z "$RANLIB" && RANLIB=:
6310 # Determine commands to create old-style static archives.
6311 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6312 old_postinstall_cmds='chmod 644 $oldlib'
6313 old_postuninstall_cmds=
6315 if test -n "$RANLIB"; then
6316 case $host_os in
6317 openbsd*)
6318 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6321 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6323 esac
6324 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6327 case $host_os in
6328 darwin*)
6329 lock_old_archive_extraction=yes ;;
6331 lock_old_archive_extraction=no ;;
6332 esac
6372 # If no C compiler was specified, use CC.
6373 LTCC=${LTCC-"$CC"}
6375 # If no C compiler flags were specified, use CFLAGS.
6376 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6378 # Allow CC to be a program name with arguments.
6379 compiler=$CC
6382 # Check for command to grab the raw symbol name followed by C symbol from nm.
6383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6384 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6385 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6386 $as_echo_n "(cached) " >&6
6387 else
6389 # These are sane defaults that work on at least a few old systems.
6390 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6392 # Character class describing NM global symbol codes.
6393 symcode='[BCDEGRST]'
6395 # Regexp to match symbols that can be accessed directly from C.
6396 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6398 # Define system-specific variables.
6399 case $host_os in
6400 aix*)
6401 symcode='[BCDT]'
6403 cygwin* | mingw* | pw32* | cegcc*)
6404 symcode='[ABCDGISTW]'
6406 hpux*)
6407 if test "$host_cpu" = ia64; then
6408 symcode='[ABCDEGRST]'
6411 irix* | nonstopux*)
6412 symcode='[BCDEGRST]'
6414 osf*)
6415 symcode='[BCDEGQRST]'
6417 solaris*)
6418 symcode='[BDRT]'
6420 sco3.2v5*)
6421 symcode='[DT]'
6423 sysv4.2uw2*)
6424 symcode='[DT]'
6426 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6427 symcode='[ABDT]'
6429 sysv4)
6430 symcode='[DFNSTU]'
6432 esac
6434 # If we're using GNU nm, then use its standard symbol codes.
6435 case `$NM -V 2>&1` in
6436 *GNU* | *'with BFD'*)
6437 symcode='[ABCDGIRSTW]' ;;
6438 esac
6440 # Transform an extracted symbol line into a proper C declaration.
6441 # Some systems (esp. on ia64) link data and code symbols differently,
6442 # so use this general approach.
6443 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6445 # Transform an extracted symbol line into symbol name and symbol address
6446 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6447 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'"
6449 # Handle CRLF in mingw tool chain
6450 opt_cr=
6451 case $build_os in
6452 mingw*)
6453 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6455 esac
6457 # Try without a prefix underscore, then with it.
6458 for ac_symprfx in "" "_"; do
6460 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6461 symxfrm="\\1 $ac_symprfx\\2 \\2"
6463 # Write the raw and C identifiers.
6464 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6465 # Fake it for dumpbin and say T for any non-static function
6466 # and D for any global variable.
6467 # Also find C++ and __fastcall symbols from MSVC++,
6468 # which start with @ or ?.
6469 lt_cv_sys_global_symbol_pipe="$AWK '"\
6470 " {last_section=section; section=\$ 3};"\
6471 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6472 " \$ 0!~/External *\|/{next};"\
6473 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6474 " {if(hide[section]) next};"\
6475 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6476 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6477 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6478 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6479 " ' prfx=^$ac_symprfx"
6480 else
6481 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6484 # Check to see that the pipe works correctly.
6485 pipe_works=no
6487 rm -f conftest*
6488 cat > conftest.$ac_ext <<_LT_EOF
6489 #ifdef __cplusplus
6490 extern "C" {
6491 #endif
6492 char nm_test_var;
6493 void nm_test_func(void);
6494 void nm_test_func(void){}
6495 #ifdef __cplusplus
6497 #endif
6498 int main(){nm_test_var='a';nm_test_func();return(0);}
6499 _LT_EOF
6501 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6502 (eval $ac_compile) 2>&5
6503 ac_status=$?
6504 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6505 test $ac_status = 0; }; then
6506 # Now try to grab the symbols.
6507 nlist=conftest.nm
6508 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6509 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6510 ac_status=$?
6511 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6512 test $ac_status = 0; } && test -s "$nlist"; then
6513 # Try sorting and uniquifying the output.
6514 if sort "$nlist" | uniq > "$nlist"T; then
6515 mv -f "$nlist"T "$nlist"
6516 else
6517 rm -f "$nlist"T
6520 # Make sure that we snagged all the symbols we need.
6521 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6522 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6523 cat <<_LT_EOF > conftest.$ac_ext
6524 #ifdef __cplusplus
6525 extern "C" {
6526 #endif
6528 _LT_EOF
6529 # Now generate the symbol file.
6530 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6532 cat <<_LT_EOF >> conftest.$ac_ext
6534 /* The mapping between symbol names and symbols. */
6535 const struct {
6536 const char *name;
6537 void *address;
6539 lt__PROGRAM__LTX_preloaded_symbols[] =
6541 { "@PROGRAM@", (void *) 0 },
6542 _LT_EOF
6543 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6544 cat <<\_LT_EOF >> conftest.$ac_ext
6545 {0, (void *) 0}
6548 /* This works around a problem in FreeBSD linker */
6549 #ifdef FREEBSD_WORKAROUND
6550 static const void *lt_preloaded_setup() {
6551 return lt__PROGRAM__LTX_preloaded_symbols;
6553 #endif
6555 #ifdef __cplusplus
6557 #endif
6558 _LT_EOF
6559 # Now try linking the two files.
6560 mv conftest.$ac_objext conftstm.$ac_objext
6561 lt_save_LIBS="$LIBS"
6562 lt_save_CFLAGS="$CFLAGS"
6563 LIBS="conftstm.$ac_objext"
6564 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6565 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6566 (eval $ac_link) 2>&5
6567 ac_status=$?
6568 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6569 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6570 pipe_works=yes
6572 LIBS="$lt_save_LIBS"
6573 CFLAGS="$lt_save_CFLAGS"
6574 else
6575 echo "cannot find nm_test_func in $nlist" >&5
6577 else
6578 echo "cannot find nm_test_var in $nlist" >&5
6580 else
6581 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6583 else
6584 echo "$progname: failed program was:" >&5
6585 cat conftest.$ac_ext >&5
6587 rm -rf conftest* conftst*
6589 # Do not use the global_symbol_pipe unless it works.
6590 if test "$pipe_works" = yes; then
6591 break
6592 else
6593 lt_cv_sys_global_symbol_pipe=
6595 done
6599 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6600 lt_cv_sys_global_symbol_to_cdecl=
6602 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6604 $as_echo "failed" >&6; }
6605 else
6606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6607 $as_echo "ok" >&6; }
6632 # Check whether --enable-libtool-lock was given.
6633 if test "${enable_libtool_lock+set}" = set; then :
6634 enableval=$enable_libtool_lock;
6637 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6639 # Some flags need to be propagated to the compiler or linker for good
6640 # libtool support.
6641 case $host in
6642 ia64-*-hpux*)
6643 # Find out which ABI we are using.
6644 echo 'int i;' > conftest.$ac_ext
6645 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6646 (eval $ac_compile) 2>&5
6647 ac_status=$?
6648 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6649 test $ac_status = 0; }; then
6650 case `/usr/bin/file conftest.$ac_objext` in
6651 *ELF-32*)
6652 HPUX_IA64_MODE="32"
6654 *ELF-64*)
6655 HPUX_IA64_MODE="64"
6657 esac
6659 rm -rf conftest*
6661 *-*-irix6*)
6662 # Find out which ABI we are using.
6663 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6664 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6665 (eval $ac_compile) 2>&5
6666 ac_status=$?
6667 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6668 test $ac_status = 0; }; then
6669 if test "$lt_cv_prog_gnu_ld" = yes; then
6670 case `/usr/bin/file conftest.$ac_objext` in
6671 *32-bit*)
6672 LD="${LD-ld} -melf32bsmip"
6674 *N32*)
6675 LD="${LD-ld} -melf32bmipn32"
6677 *64-bit*)
6678 LD="${LD-ld} -melf64bmip"
6680 esac
6681 else
6682 case `/usr/bin/file conftest.$ac_objext` in
6683 *32-bit*)
6684 LD="${LD-ld} -32"
6686 *N32*)
6687 LD="${LD-ld} -n32"
6689 *64-bit*)
6690 LD="${LD-ld} -64"
6692 esac
6695 rm -rf conftest*
6698 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6699 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6700 # Find out which ABI we are using.
6701 echo 'int i;' > conftest.$ac_ext
6702 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6703 (eval $ac_compile) 2>&5
6704 ac_status=$?
6705 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6706 test $ac_status = 0; }; then
6707 case `/usr/bin/file conftest.o` in
6708 *32-bit*)
6709 case $host in
6710 x86_64-*kfreebsd*-gnu)
6711 LD="${LD-ld} -m elf_i386_fbsd"
6713 x86_64-*linux*)
6714 case `/usr/bin/file conftest.o` in
6715 *x86-64*)
6716 LD="${LD-ld} -m elf32_x86_64"
6719 LD="${LD-ld} -m elf_i386"
6721 esac
6723 powerpc64le-*linux*)
6724 LD="${LD-ld} -m elf32lppclinux"
6726 powerpc64-*linux*)
6727 LD="${LD-ld} -m elf32ppclinux"
6729 s390x-*linux*)
6730 LD="${LD-ld} -m elf_s390"
6732 sparc64-*linux*)
6733 LD="${LD-ld} -m elf32_sparc"
6735 esac
6737 *64-bit*)
6738 case $host in
6739 x86_64-*kfreebsd*-gnu)
6740 LD="${LD-ld} -m elf_x86_64_fbsd"
6742 x86_64-*linux*)
6743 LD="${LD-ld} -m elf_x86_64"
6745 powerpcle-*linux*)
6746 LD="${LD-ld} -m elf64lppc"
6748 powerpc-*linux*)
6749 LD="${LD-ld} -m elf64ppc"
6751 s390*-*linux*|s390*-*tpf*)
6752 LD="${LD-ld} -m elf64_s390"
6754 sparc*-*linux*)
6755 LD="${LD-ld} -m elf64_sparc"
6757 esac
6759 esac
6761 rm -rf conftest*
6764 *-*-sco3.2v5*)
6765 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6766 SAVE_CFLAGS="$CFLAGS"
6767 CFLAGS="$CFLAGS -belf"
6768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6769 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6770 if ${lt_cv_cc_needs_belf+:} false; then :
6771 $as_echo_n "(cached) " >&6
6772 else
6773 ac_ext=c
6774 ac_cpp='$CPP $CPPFLAGS'
6775 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6776 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6777 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6780 /* end confdefs.h. */
6783 main ()
6787 return 0;
6789 _ACEOF
6790 if ac_fn_c_try_link "$LINENO"; then :
6791 lt_cv_cc_needs_belf=yes
6792 else
6793 lt_cv_cc_needs_belf=no
6795 rm -f core conftest.err conftest.$ac_objext \
6796 conftest$ac_exeext conftest.$ac_ext
6797 ac_ext=c
6798 ac_cpp='$CPP $CPPFLAGS'
6799 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6800 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6801 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6805 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6806 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6807 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6808 CFLAGS="$SAVE_CFLAGS"
6811 sparc*-*solaris*)
6812 # Find out which ABI we are using.
6813 echo 'int i;' > conftest.$ac_ext
6814 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6815 (eval $ac_compile) 2>&5
6816 ac_status=$?
6817 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6818 test $ac_status = 0; }; then
6819 case `/usr/bin/file conftest.o` in
6820 *64-bit*)
6821 case $lt_cv_prog_gnu_ld in
6822 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6824 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6825 LD="${LD-ld} -64"
6828 esac
6830 esac
6832 rm -rf conftest*
6834 esac
6836 need_locks="$enable_libtool_lock"
6839 case $host_os in
6840 rhapsody* | darwin*)
6841 if test -n "$ac_tool_prefix"; then
6842 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6843 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6845 $as_echo_n "checking for $ac_word... " >&6; }
6846 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6847 $as_echo_n "(cached) " >&6
6848 else
6849 if test -n "$DSYMUTIL"; then
6850 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6851 else
6852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6853 for as_dir in $PATH
6855 IFS=$as_save_IFS
6856 test -z "$as_dir" && as_dir=.
6857 for ac_exec_ext in '' $ac_executable_extensions; do
6858 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6859 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6860 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6861 break 2
6863 done
6864 done
6865 IFS=$as_save_IFS
6869 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6870 if test -n "$DSYMUTIL"; then
6871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6872 $as_echo "$DSYMUTIL" >&6; }
6873 else
6874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6875 $as_echo "no" >&6; }
6880 if test -z "$ac_cv_prog_DSYMUTIL"; then
6881 ac_ct_DSYMUTIL=$DSYMUTIL
6882 # Extract the first word of "dsymutil", so it can be a program name with args.
6883 set dummy dsymutil; ac_word=$2
6884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6885 $as_echo_n "checking for $ac_word... " >&6; }
6886 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6887 $as_echo_n "(cached) " >&6
6888 else
6889 if test -n "$ac_ct_DSYMUTIL"; then
6890 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6891 else
6892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6893 for as_dir in $PATH
6895 IFS=$as_save_IFS
6896 test -z "$as_dir" && as_dir=.
6897 for ac_exec_ext in '' $ac_executable_extensions; do
6898 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6899 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6900 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6901 break 2
6903 done
6904 done
6905 IFS=$as_save_IFS
6909 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6910 if test -n "$ac_ct_DSYMUTIL"; then
6911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6912 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6913 else
6914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6915 $as_echo "no" >&6; }
6918 if test "x$ac_ct_DSYMUTIL" = x; then
6919 DSYMUTIL=":"
6920 else
6921 case $cross_compiling:$ac_tool_warned in
6922 yes:)
6923 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6924 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6925 ac_tool_warned=yes ;;
6926 esac
6927 DSYMUTIL=$ac_ct_DSYMUTIL
6929 else
6930 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6933 if test -n "$ac_tool_prefix"; then
6934 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6935 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6937 $as_echo_n "checking for $ac_word... " >&6; }
6938 if ${ac_cv_prog_NMEDIT+:} false; then :
6939 $as_echo_n "(cached) " >&6
6940 else
6941 if test -n "$NMEDIT"; then
6942 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6943 else
6944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6945 for as_dir in $PATH
6947 IFS=$as_save_IFS
6948 test -z "$as_dir" && as_dir=.
6949 for ac_exec_ext in '' $ac_executable_extensions; do
6950 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6951 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6952 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6953 break 2
6955 done
6956 done
6957 IFS=$as_save_IFS
6961 NMEDIT=$ac_cv_prog_NMEDIT
6962 if test -n "$NMEDIT"; then
6963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6964 $as_echo "$NMEDIT" >&6; }
6965 else
6966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6967 $as_echo "no" >&6; }
6972 if test -z "$ac_cv_prog_NMEDIT"; then
6973 ac_ct_NMEDIT=$NMEDIT
6974 # Extract the first word of "nmedit", so it can be a program name with args.
6975 set dummy nmedit; ac_word=$2
6976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6977 $as_echo_n "checking for $ac_word... " >&6; }
6978 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6979 $as_echo_n "(cached) " >&6
6980 else
6981 if test -n "$ac_ct_NMEDIT"; then
6982 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6983 else
6984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6985 for as_dir in $PATH
6987 IFS=$as_save_IFS
6988 test -z "$as_dir" && as_dir=.
6989 for ac_exec_ext in '' $ac_executable_extensions; do
6990 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6991 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6992 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6993 break 2
6995 done
6996 done
6997 IFS=$as_save_IFS
7001 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7002 if test -n "$ac_ct_NMEDIT"; then
7003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7004 $as_echo "$ac_ct_NMEDIT" >&6; }
7005 else
7006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7007 $as_echo "no" >&6; }
7010 if test "x$ac_ct_NMEDIT" = x; then
7011 NMEDIT=":"
7012 else
7013 case $cross_compiling:$ac_tool_warned in
7014 yes:)
7015 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7016 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7017 ac_tool_warned=yes ;;
7018 esac
7019 NMEDIT=$ac_ct_NMEDIT
7021 else
7022 NMEDIT="$ac_cv_prog_NMEDIT"
7025 if test -n "$ac_tool_prefix"; then
7026 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7027 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7029 $as_echo_n "checking for $ac_word... " >&6; }
7030 if ${ac_cv_prog_LIPO+:} false; then :
7031 $as_echo_n "(cached) " >&6
7032 else
7033 if test -n "$LIPO"; then
7034 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7035 else
7036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7037 for as_dir in $PATH
7039 IFS=$as_save_IFS
7040 test -z "$as_dir" && as_dir=.
7041 for ac_exec_ext in '' $ac_executable_extensions; do
7042 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7043 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7044 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7045 break 2
7047 done
7048 done
7049 IFS=$as_save_IFS
7053 LIPO=$ac_cv_prog_LIPO
7054 if test -n "$LIPO"; then
7055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7056 $as_echo "$LIPO" >&6; }
7057 else
7058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7059 $as_echo "no" >&6; }
7064 if test -z "$ac_cv_prog_LIPO"; then
7065 ac_ct_LIPO=$LIPO
7066 # Extract the first word of "lipo", so it can be a program name with args.
7067 set dummy lipo; ac_word=$2
7068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7069 $as_echo_n "checking for $ac_word... " >&6; }
7070 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7071 $as_echo_n "(cached) " >&6
7072 else
7073 if test -n "$ac_ct_LIPO"; then
7074 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7075 else
7076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7077 for as_dir in $PATH
7079 IFS=$as_save_IFS
7080 test -z "$as_dir" && as_dir=.
7081 for ac_exec_ext in '' $ac_executable_extensions; do
7082 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7083 ac_cv_prog_ac_ct_LIPO="lipo"
7084 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7085 break 2
7087 done
7088 done
7089 IFS=$as_save_IFS
7093 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7094 if test -n "$ac_ct_LIPO"; then
7095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7096 $as_echo "$ac_ct_LIPO" >&6; }
7097 else
7098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7099 $as_echo "no" >&6; }
7102 if test "x$ac_ct_LIPO" = x; then
7103 LIPO=":"
7104 else
7105 case $cross_compiling:$ac_tool_warned in
7106 yes:)
7107 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7108 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7109 ac_tool_warned=yes ;;
7110 esac
7111 LIPO=$ac_ct_LIPO
7113 else
7114 LIPO="$ac_cv_prog_LIPO"
7117 if test -n "$ac_tool_prefix"; then
7118 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7119 set dummy ${ac_tool_prefix}otool; ac_word=$2
7120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7121 $as_echo_n "checking for $ac_word... " >&6; }
7122 if ${ac_cv_prog_OTOOL+:} false; then :
7123 $as_echo_n "(cached) " >&6
7124 else
7125 if test -n "$OTOOL"; then
7126 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7127 else
7128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7129 for as_dir in $PATH
7131 IFS=$as_save_IFS
7132 test -z "$as_dir" && as_dir=.
7133 for ac_exec_ext in '' $ac_executable_extensions; do
7134 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7135 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7136 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7137 break 2
7139 done
7140 done
7141 IFS=$as_save_IFS
7145 OTOOL=$ac_cv_prog_OTOOL
7146 if test -n "$OTOOL"; then
7147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7148 $as_echo "$OTOOL" >&6; }
7149 else
7150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7151 $as_echo "no" >&6; }
7156 if test -z "$ac_cv_prog_OTOOL"; then
7157 ac_ct_OTOOL=$OTOOL
7158 # Extract the first word of "otool", so it can be a program name with args.
7159 set dummy otool; ac_word=$2
7160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7161 $as_echo_n "checking for $ac_word... " >&6; }
7162 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7163 $as_echo_n "(cached) " >&6
7164 else
7165 if test -n "$ac_ct_OTOOL"; then
7166 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7167 else
7168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7169 for as_dir in $PATH
7171 IFS=$as_save_IFS
7172 test -z "$as_dir" && as_dir=.
7173 for ac_exec_ext in '' $ac_executable_extensions; do
7174 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7175 ac_cv_prog_ac_ct_OTOOL="otool"
7176 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7177 break 2
7179 done
7180 done
7181 IFS=$as_save_IFS
7185 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7186 if test -n "$ac_ct_OTOOL"; then
7187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7188 $as_echo "$ac_ct_OTOOL" >&6; }
7189 else
7190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7191 $as_echo "no" >&6; }
7194 if test "x$ac_ct_OTOOL" = x; then
7195 OTOOL=":"
7196 else
7197 case $cross_compiling:$ac_tool_warned in
7198 yes:)
7199 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7200 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7201 ac_tool_warned=yes ;;
7202 esac
7203 OTOOL=$ac_ct_OTOOL
7205 else
7206 OTOOL="$ac_cv_prog_OTOOL"
7209 if test -n "$ac_tool_prefix"; then
7210 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7211 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7213 $as_echo_n "checking for $ac_word... " >&6; }
7214 if ${ac_cv_prog_OTOOL64+:} false; then :
7215 $as_echo_n "(cached) " >&6
7216 else
7217 if test -n "$OTOOL64"; then
7218 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7219 else
7220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7221 for as_dir in $PATH
7223 IFS=$as_save_IFS
7224 test -z "$as_dir" && as_dir=.
7225 for ac_exec_ext in '' $ac_executable_extensions; do
7226 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7227 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7228 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7229 break 2
7231 done
7232 done
7233 IFS=$as_save_IFS
7237 OTOOL64=$ac_cv_prog_OTOOL64
7238 if test -n "$OTOOL64"; then
7239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7240 $as_echo "$OTOOL64" >&6; }
7241 else
7242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7243 $as_echo "no" >&6; }
7248 if test -z "$ac_cv_prog_OTOOL64"; then
7249 ac_ct_OTOOL64=$OTOOL64
7250 # Extract the first word of "otool64", so it can be a program name with args.
7251 set dummy otool64; ac_word=$2
7252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7253 $as_echo_n "checking for $ac_word... " >&6; }
7254 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7255 $as_echo_n "(cached) " >&6
7256 else
7257 if test -n "$ac_ct_OTOOL64"; then
7258 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7259 else
7260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7261 for as_dir in $PATH
7263 IFS=$as_save_IFS
7264 test -z "$as_dir" && as_dir=.
7265 for ac_exec_ext in '' $ac_executable_extensions; do
7266 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7267 ac_cv_prog_ac_ct_OTOOL64="otool64"
7268 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7269 break 2
7271 done
7272 done
7273 IFS=$as_save_IFS
7277 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7278 if test -n "$ac_ct_OTOOL64"; then
7279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7280 $as_echo "$ac_ct_OTOOL64" >&6; }
7281 else
7282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7283 $as_echo "no" >&6; }
7286 if test "x$ac_ct_OTOOL64" = x; then
7287 OTOOL64=":"
7288 else
7289 case $cross_compiling:$ac_tool_warned in
7290 yes:)
7291 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7292 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7293 ac_tool_warned=yes ;;
7294 esac
7295 OTOOL64=$ac_ct_OTOOL64
7297 else
7298 OTOOL64="$ac_cv_prog_OTOOL64"
7327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7328 $as_echo_n "checking for -single_module linker flag... " >&6; }
7329 if ${lt_cv_apple_cc_single_mod+:} false; then :
7330 $as_echo_n "(cached) " >&6
7331 else
7332 lt_cv_apple_cc_single_mod=no
7333 if test -z "${LT_MULTI_MODULE}"; then
7334 # By default we will add the -single_module flag. You can override
7335 # by either setting the environment variable LT_MULTI_MODULE
7336 # non-empty at configure time, or by adding -multi_module to the
7337 # link flags.
7338 rm -rf libconftest.dylib*
7339 echo "int foo(void){return 1;}" > conftest.c
7340 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7341 -dynamiclib -Wl,-single_module conftest.c" >&5
7342 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7343 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7344 _lt_result=$?
7345 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7346 lt_cv_apple_cc_single_mod=yes
7347 else
7348 cat conftest.err >&5
7350 rm -rf libconftest.dylib*
7351 rm -f conftest.*
7354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7355 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7357 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7358 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7359 $as_echo_n "(cached) " >&6
7360 else
7361 lt_cv_ld_exported_symbols_list=no
7362 save_LDFLAGS=$LDFLAGS
7363 echo "_main" > conftest.sym
7364 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7366 /* end confdefs.h. */
7369 main ()
7373 return 0;
7375 _ACEOF
7376 if ac_fn_c_try_link "$LINENO"; then :
7377 lt_cv_ld_exported_symbols_list=yes
7378 else
7379 lt_cv_ld_exported_symbols_list=no
7381 rm -f core conftest.err conftest.$ac_objext \
7382 conftest$ac_exeext conftest.$ac_ext
7383 LDFLAGS="$save_LDFLAGS"
7386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7387 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7389 $as_echo_n "checking for -force_load linker flag... " >&6; }
7390 if ${lt_cv_ld_force_load+:} false; then :
7391 $as_echo_n "(cached) " >&6
7392 else
7393 lt_cv_ld_force_load=no
7394 cat > conftest.c << _LT_EOF
7395 int forced_loaded() { return 2;}
7396 _LT_EOF
7397 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7398 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7399 echo "$AR cru libconftest.a conftest.o" >&5
7400 $AR cru libconftest.a conftest.o 2>&5
7401 cat > conftest.c << _LT_EOF
7402 int main() { return 0;}
7403 _LT_EOF
7404 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7405 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7406 _lt_result=$?
7407 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7408 lt_cv_ld_force_load=yes
7409 else
7410 cat conftest.err >&5
7412 rm -f conftest.err libconftest.a conftest conftest.c
7413 rm -rf conftest.dSYM
7416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7417 $as_echo "$lt_cv_ld_force_load" >&6; }
7418 case $host_os in
7419 rhapsody* | darwin1.[012])
7420 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7421 darwin1.*)
7422 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7423 darwin*) # darwin 5.x on
7424 # if running on 10.5 or later, the deployment target defaults
7425 # to the OS version, if on x86, and 10.4, the deployment
7426 # target defaults to 10.4. Don't you love it?
7427 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7428 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7429 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7430 10.[012][,.]*)
7431 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7432 10.*)
7433 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7434 esac
7436 esac
7437 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7438 _lt_dar_single_mod='$single_module'
7440 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7441 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7442 else
7443 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7445 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7446 _lt_dsymutil='~$DSYMUTIL $lib || :'
7447 else
7448 _lt_dsymutil=
7451 esac
7453 ac_ext=c
7454 ac_cpp='$CPP $CPPFLAGS'
7455 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7456 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7457 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7459 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7460 # On Suns, sometimes $CPP names a directory.
7461 if test -n "$CPP" && test -d "$CPP"; then
7462 CPP=
7464 if test -z "$CPP"; then
7465 if ${ac_cv_prog_CPP+:} false; then :
7466 $as_echo_n "(cached) " >&6
7467 else
7468 # Double quotes because CPP needs to be expanded
7469 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7471 ac_preproc_ok=false
7472 for ac_c_preproc_warn_flag in '' yes
7474 # Use a header file that comes with gcc, so configuring glibc
7475 # with a fresh cross-compiler works.
7476 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7477 # <limits.h> exists even on freestanding compilers.
7478 # On the NeXT, cc -E runs the code through the compiler's parser,
7479 # not just through cpp. "Syntax error" is here to catch this case.
7480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7481 /* end confdefs.h. */
7482 #ifdef __STDC__
7483 # include <limits.h>
7484 #else
7485 # include <assert.h>
7486 #endif
7487 Syntax error
7488 _ACEOF
7489 if ac_fn_c_try_cpp "$LINENO"; then :
7491 else
7492 # Broken: fails on valid input.
7493 continue
7495 rm -f conftest.err conftest.i conftest.$ac_ext
7497 # OK, works on sane cases. Now check whether nonexistent headers
7498 # can be detected and how.
7499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7500 /* end confdefs.h. */
7501 #include <ac_nonexistent.h>
7502 _ACEOF
7503 if ac_fn_c_try_cpp "$LINENO"; then :
7504 # Broken: success on invalid input.
7505 continue
7506 else
7507 # Passes both tests.
7508 ac_preproc_ok=:
7509 break
7511 rm -f conftest.err conftest.i conftest.$ac_ext
7513 done
7514 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7515 rm -f conftest.i conftest.err conftest.$ac_ext
7516 if $ac_preproc_ok; then :
7517 break
7520 done
7521 ac_cv_prog_CPP=$CPP
7524 CPP=$ac_cv_prog_CPP
7525 else
7526 ac_cv_prog_CPP=$CPP
7528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7529 $as_echo "$CPP" >&6; }
7530 ac_preproc_ok=false
7531 for ac_c_preproc_warn_flag in '' yes
7533 # Use a header file that comes with gcc, so configuring glibc
7534 # with a fresh cross-compiler works.
7535 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7536 # <limits.h> exists even on freestanding compilers.
7537 # On the NeXT, cc -E runs the code through the compiler's parser,
7538 # not just through cpp. "Syntax error" is here to catch this case.
7539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7540 /* end confdefs.h. */
7541 #ifdef __STDC__
7542 # include <limits.h>
7543 #else
7544 # include <assert.h>
7545 #endif
7546 Syntax error
7547 _ACEOF
7548 if ac_fn_c_try_cpp "$LINENO"; then :
7550 else
7551 # Broken: fails on valid input.
7552 continue
7554 rm -f conftest.err conftest.i conftest.$ac_ext
7556 # OK, works on sane cases. Now check whether nonexistent headers
7557 # can be detected and how.
7558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7559 /* end confdefs.h. */
7560 #include <ac_nonexistent.h>
7561 _ACEOF
7562 if ac_fn_c_try_cpp "$LINENO"; then :
7563 # Broken: success on invalid input.
7564 continue
7565 else
7566 # Passes both tests.
7567 ac_preproc_ok=:
7568 break
7570 rm -f conftest.err conftest.i conftest.$ac_ext
7572 done
7573 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7574 rm -f conftest.i conftest.err conftest.$ac_ext
7575 if $ac_preproc_ok; then :
7577 else
7578 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7579 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7580 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7581 See \`config.log' for more details" "$LINENO" 5; }
7584 ac_ext=c
7585 ac_cpp='$CPP $CPPFLAGS'
7586 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7587 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7588 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7592 $as_echo_n "checking for ANSI C header files... " >&6; }
7593 if ${ac_cv_header_stdc+:} false; then :
7594 $as_echo_n "(cached) " >&6
7595 else
7596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7597 /* end confdefs.h. */
7598 #include <stdlib.h>
7599 #include <stdarg.h>
7600 #include <string.h>
7601 #include <float.h>
7604 main ()
7608 return 0;
7610 _ACEOF
7611 if ac_fn_c_try_compile "$LINENO"; then :
7612 ac_cv_header_stdc=yes
7613 else
7614 ac_cv_header_stdc=no
7616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7618 if test $ac_cv_header_stdc = yes; then
7619 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7621 /* end confdefs.h. */
7622 #include <string.h>
7624 _ACEOF
7625 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7626 $EGREP "memchr" >/dev/null 2>&1; then :
7628 else
7629 ac_cv_header_stdc=no
7631 rm -f conftest*
7635 if test $ac_cv_header_stdc = yes; then
7636 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7638 /* end confdefs.h. */
7639 #include <stdlib.h>
7641 _ACEOF
7642 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7643 $EGREP "free" >/dev/null 2>&1; then :
7645 else
7646 ac_cv_header_stdc=no
7648 rm -f conftest*
7652 if test $ac_cv_header_stdc = yes; then
7653 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7654 if test "$cross_compiling" = yes; then :
7656 else
7657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7658 /* end confdefs.h. */
7659 #include <ctype.h>
7660 #include <stdlib.h>
7661 #if ((' ' & 0x0FF) == 0x020)
7662 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7663 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7664 #else
7665 # define ISLOWER(c) \
7666 (('a' <= (c) && (c) <= 'i') \
7667 || ('j' <= (c) && (c) <= 'r') \
7668 || ('s' <= (c) && (c) <= 'z'))
7669 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7670 #endif
7672 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7674 main ()
7676 int i;
7677 for (i = 0; i < 256; i++)
7678 if (XOR (islower (i), ISLOWER (i))
7679 || toupper (i) != TOUPPER (i))
7680 return 2;
7681 return 0;
7683 _ACEOF
7684 if ac_fn_c_try_run "$LINENO"; then :
7686 else
7687 ac_cv_header_stdc=no
7689 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7690 conftest.$ac_objext conftest.beam conftest.$ac_ext
7695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7696 $as_echo "$ac_cv_header_stdc" >&6; }
7697 if test $ac_cv_header_stdc = yes; then
7699 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7703 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7704 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7705 inttypes.h stdint.h unistd.h
7706 do :
7707 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7708 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7710 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7711 cat >>confdefs.h <<_ACEOF
7712 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7713 _ACEOF
7717 done
7720 for ac_header in dlfcn.h
7721 do :
7722 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7724 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7725 cat >>confdefs.h <<_ACEOF
7726 #define HAVE_DLFCN_H 1
7727 _ACEOF
7731 done
7738 # Set options
7743 enable_win32_dll=no
7746 # Check whether --enable-shared was given.
7747 if test "${enable_shared+set}" = set; then :
7748 enableval=$enable_shared; p=${PACKAGE-default}
7749 case $enableval in
7750 yes) enable_shared=yes ;;
7751 no) enable_shared=no ;;
7753 enable_shared=no
7754 # Look at the argument we got. We use all the common list separators.
7755 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7756 for pkg in $enableval; do
7757 IFS="$lt_save_ifs"
7758 if test "X$pkg" = "X$p"; then
7759 enable_shared=yes
7761 done
7762 IFS="$lt_save_ifs"
7764 esac
7765 else
7766 enable_shared=yes
7777 # Check whether --enable-static was given.
7778 if test "${enable_static+set}" = set; then :
7779 enableval=$enable_static; p=${PACKAGE-default}
7780 case $enableval in
7781 yes) enable_static=yes ;;
7782 no) enable_static=no ;;
7784 enable_static=no
7785 # Look at the argument we got. We use all the common list separators.
7786 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7787 for pkg in $enableval; do
7788 IFS="$lt_save_ifs"
7789 if test "X$pkg" = "X$p"; then
7790 enable_static=yes
7792 done
7793 IFS="$lt_save_ifs"
7795 esac
7796 else
7797 enable_static=yes
7809 # Check whether --with-pic was given.
7810 if test "${with_pic+set}" = set; then :
7811 withval=$with_pic; pic_mode="$withval"
7812 else
7813 pic_mode=default
7817 test -z "$pic_mode" && pic_mode=default
7825 # Check whether --enable-fast-install was given.
7826 if test "${enable_fast_install+set}" = set; then :
7827 enableval=$enable_fast_install; p=${PACKAGE-default}
7828 case $enableval in
7829 yes) enable_fast_install=yes ;;
7830 no) enable_fast_install=no ;;
7832 enable_fast_install=no
7833 # Look at the argument we got. We use all the common list separators.
7834 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7835 for pkg in $enableval; do
7836 IFS="$lt_save_ifs"
7837 if test "X$pkg" = "X$p"; then
7838 enable_fast_install=yes
7840 done
7841 IFS="$lt_save_ifs"
7843 esac
7844 else
7845 enable_fast_install=yes
7858 # This can be used to rebuild libtool when needed
7859 LIBTOOL_DEPS="$ltmain"
7861 # Always use our own libtool.
7862 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7889 test -z "$LN_S" && LN_S="ln -s"
7904 if test -n "${ZSH_VERSION+set}" ; then
7905 setopt NO_GLOB_SUBST
7908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7909 $as_echo_n "checking for objdir... " >&6; }
7910 if ${lt_cv_objdir+:} false; then :
7911 $as_echo_n "(cached) " >&6
7912 else
7913 rm -f .libs 2>/dev/null
7914 mkdir .libs 2>/dev/null
7915 if test -d .libs; then
7916 lt_cv_objdir=.libs
7917 else
7918 # MS-DOS does not allow filenames that begin with a dot.
7919 lt_cv_objdir=_libs
7921 rmdir .libs 2>/dev/null
7923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7924 $as_echo "$lt_cv_objdir" >&6; }
7925 objdir=$lt_cv_objdir
7931 cat >>confdefs.h <<_ACEOF
7932 #define LT_OBJDIR "$lt_cv_objdir/"
7933 _ACEOF
7938 case $host_os in
7939 aix3*)
7940 # AIX sometimes has problems with the GCC collect2 program. For some
7941 # reason, if we set the COLLECT_NAMES environment variable, the problems
7942 # vanish in a puff of smoke.
7943 if test "X${COLLECT_NAMES+set}" != Xset; then
7944 COLLECT_NAMES=
7945 export COLLECT_NAMES
7948 esac
7950 # Global variables:
7951 ofile=libtool
7952 can_build_shared=yes
7954 # All known linkers require a `.a' archive for static linking (except MSVC,
7955 # which needs '.lib').
7956 libext=a
7958 with_gnu_ld="$lt_cv_prog_gnu_ld"
7960 old_CC="$CC"
7961 old_CFLAGS="$CFLAGS"
7963 # Set sane defaults for various variables
7964 test -z "$CC" && CC=cc
7965 test -z "$LTCC" && LTCC=$CC
7966 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7967 test -z "$LD" && LD=ld
7968 test -z "$ac_objext" && ac_objext=o
7970 for cc_temp in $compiler""; do
7971 case $cc_temp in
7972 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7973 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7974 \-*) ;;
7975 *) break;;
7976 esac
7977 done
7978 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7981 # Only perform the check for file, if the check method requires it
7982 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7983 case $deplibs_check_method in
7984 file_magic*)
7985 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7987 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7988 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7989 $as_echo_n "(cached) " >&6
7990 else
7991 case $MAGIC_CMD in
7992 [\\/*] | ?:[\\/]*)
7993 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7996 lt_save_MAGIC_CMD="$MAGIC_CMD"
7997 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7998 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7999 for ac_dir in $ac_dummy; do
8000 IFS="$lt_save_ifs"
8001 test -z "$ac_dir" && ac_dir=.
8002 if test -f $ac_dir/${ac_tool_prefix}file; then
8003 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8004 if test -n "$file_magic_test_file"; then
8005 case $deplibs_check_method in
8006 "file_magic "*)
8007 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8008 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8009 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8010 $EGREP "$file_magic_regex" > /dev/null; then
8012 else
8013 cat <<_LT_EOF 1>&2
8015 *** Warning: the command libtool uses to detect shared libraries,
8016 *** $file_magic_cmd, produces output that libtool cannot recognize.
8017 *** The result is that libtool may fail to recognize shared libraries
8018 *** as such. This will affect the creation of libtool libraries that
8019 *** depend on shared libraries, but programs linked with such libtool
8020 *** libraries will work regardless of this problem. Nevertheless, you
8021 *** may want to report the problem to your system manager and/or to
8022 *** bug-libtool@gnu.org
8024 _LT_EOF
8025 fi ;;
8026 esac
8028 break
8030 done
8031 IFS="$lt_save_ifs"
8032 MAGIC_CMD="$lt_save_MAGIC_CMD"
8034 esac
8037 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8038 if test -n "$MAGIC_CMD"; then
8039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8040 $as_echo "$MAGIC_CMD" >&6; }
8041 else
8042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8043 $as_echo "no" >&6; }
8050 if test -z "$lt_cv_path_MAGIC_CMD"; then
8051 if test -n "$ac_tool_prefix"; then
8052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8053 $as_echo_n "checking for file... " >&6; }
8054 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8055 $as_echo_n "(cached) " >&6
8056 else
8057 case $MAGIC_CMD in
8058 [\\/*] | ?:[\\/]*)
8059 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8062 lt_save_MAGIC_CMD="$MAGIC_CMD"
8063 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8064 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8065 for ac_dir in $ac_dummy; do
8066 IFS="$lt_save_ifs"
8067 test -z "$ac_dir" && ac_dir=.
8068 if test -f $ac_dir/file; then
8069 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8070 if test -n "$file_magic_test_file"; then
8071 case $deplibs_check_method in
8072 "file_magic "*)
8073 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8074 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8075 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8076 $EGREP "$file_magic_regex" > /dev/null; then
8078 else
8079 cat <<_LT_EOF 1>&2
8081 *** Warning: the command libtool uses to detect shared libraries,
8082 *** $file_magic_cmd, produces output that libtool cannot recognize.
8083 *** The result is that libtool may fail to recognize shared libraries
8084 *** as such. This will affect the creation of libtool libraries that
8085 *** depend on shared libraries, but programs linked with such libtool
8086 *** libraries will work regardless of this problem. Nevertheless, you
8087 *** may want to report the problem to your system manager and/or to
8088 *** bug-libtool@gnu.org
8090 _LT_EOF
8091 fi ;;
8092 esac
8094 break
8096 done
8097 IFS="$lt_save_ifs"
8098 MAGIC_CMD="$lt_save_MAGIC_CMD"
8100 esac
8103 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8104 if test -n "$MAGIC_CMD"; then
8105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8106 $as_echo "$MAGIC_CMD" >&6; }
8107 else
8108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8109 $as_echo "no" >&6; }
8113 else
8114 MAGIC_CMD=:
8120 esac
8122 # Use C for the default configuration in the libtool script
8124 lt_save_CC="$CC"
8125 ac_ext=c
8126 ac_cpp='$CPP $CPPFLAGS'
8127 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8128 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8129 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8132 # Source file extension for C test sources.
8133 ac_ext=c
8135 # Object file extension for compiled C test sources.
8136 objext=o
8137 objext=$objext
8139 # Code to be used in simple compile tests
8140 lt_simple_compile_test_code="int some_variable = 0;"
8142 # Code to be used in simple link tests
8143 lt_simple_link_test_code='int main(){return(0);}'
8151 # If no C compiler was specified, use CC.
8152 LTCC=${LTCC-"$CC"}
8154 # If no C compiler flags were specified, use CFLAGS.
8155 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8157 # Allow CC to be a program name with arguments.
8158 compiler=$CC
8160 # Save the default compiler, since it gets overwritten when the other
8161 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8162 compiler_DEFAULT=$CC
8164 # save warnings/boilerplate of simple test code
8165 ac_outfile=conftest.$ac_objext
8166 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8167 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8168 _lt_compiler_boilerplate=`cat conftest.err`
8169 $RM conftest*
8171 ac_outfile=conftest.$ac_objext
8172 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8173 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8174 _lt_linker_boilerplate=`cat conftest.err`
8175 $RM -r conftest*
8178 ## CAVEAT EMPTOR:
8179 ## There is no encapsulation within the following macros, do not change
8180 ## the running order or otherwise move them around unless you know exactly
8181 ## what you are doing...
8182 if test -n "$compiler"; then
8184 lt_prog_compiler_no_builtin_flag=
8186 if test "$GCC" = yes; then
8187 case $cc_basename in
8188 nvcc*)
8189 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8191 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8192 esac
8194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8195 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8196 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8197 $as_echo_n "(cached) " >&6
8198 else
8199 lt_cv_prog_compiler_rtti_exceptions=no
8200 ac_outfile=conftest.$ac_objext
8201 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8202 lt_compiler_flag="-fno-rtti -fno-exceptions"
8203 # Insert the option either (1) after the last *FLAGS variable, or
8204 # (2) before a word containing "conftest.", or (3) at the end.
8205 # Note that $ac_compile itself does not contain backslashes and begins
8206 # with a dollar sign (not a hyphen), so the echo should work correctly.
8207 # The option is referenced via a variable to avoid confusing sed.
8208 lt_compile=`echo "$ac_compile" | $SED \
8209 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8210 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8211 -e 's:$: $lt_compiler_flag:'`
8212 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8213 (eval "$lt_compile" 2>conftest.err)
8214 ac_status=$?
8215 cat conftest.err >&5
8216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8217 if (exit $ac_status) && test -s "$ac_outfile"; then
8218 # The compiler can only warn and ignore the option if not recognized
8219 # So say no if there are warnings other than the usual output.
8220 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8221 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8222 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8223 lt_cv_prog_compiler_rtti_exceptions=yes
8226 $RM conftest*
8229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8230 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8232 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8233 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8234 else
8245 lt_prog_compiler_wl=
8246 lt_prog_compiler_pic=
8247 lt_prog_compiler_static=
8249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8250 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8252 if test "$GCC" = yes; then
8253 lt_prog_compiler_wl='-Wl,'
8254 lt_prog_compiler_static='-static'
8256 case $host_os in
8257 aix*)
8258 # All AIX code is PIC.
8259 if test "$host_cpu" = ia64; then
8260 # AIX 5 now supports IA64 processor
8261 lt_prog_compiler_static='-Bstatic'
8263 lt_prog_compiler_pic='-fPIC'
8266 amigaos*)
8267 case $host_cpu in
8268 powerpc)
8269 # see comment about AmigaOS4 .so support
8270 lt_prog_compiler_pic='-fPIC'
8272 m68k)
8273 # FIXME: we need at least 68020 code to build shared libraries, but
8274 # adding the `-m68020' flag to GCC prevents building anything better,
8275 # like `-m68040'.
8276 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8278 esac
8281 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8282 # PIC is the default for these OSes.
8285 mingw* | cygwin* | pw32* | os2* | cegcc*)
8286 # This hack is so that the source file can tell whether it is being
8287 # built for inclusion in a dll (and should export symbols for example).
8288 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8289 # (--disable-auto-import) libraries
8290 lt_prog_compiler_pic='-DDLL_EXPORT'
8293 darwin* | rhapsody*)
8294 # PIC is the default on this platform
8295 # Common symbols not allowed in MH_DYLIB files
8296 lt_prog_compiler_pic='-fno-common'
8299 haiku*)
8300 # PIC is the default for Haiku.
8301 # The "-static" flag exists, but is broken.
8302 lt_prog_compiler_static=
8305 hpux*)
8306 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8307 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8308 # sets the default TLS model and affects inlining.
8309 case $host_cpu in
8310 hppa*64*)
8311 # +Z the default
8314 lt_prog_compiler_pic='-fPIC'
8316 esac
8319 interix[3-9]*)
8320 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8321 # Instead, we relocate shared libraries at runtime.
8324 msdosdjgpp*)
8325 # Just because we use GCC doesn't mean we suddenly get shared libraries
8326 # on systems that don't support them.
8327 lt_prog_compiler_can_build_shared=no
8328 enable_shared=no
8331 *nto* | *qnx*)
8332 # QNX uses GNU C++, but need to define -shared option too, otherwise
8333 # it will coredump.
8334 lt_prog_compiler_pic='-fPIC -shared'
8337 sysv4*MP*)
8338 if test -d /usr/nec; then
8339 lt_prog_compiler_pic=-Kconform_pic
8344 lt_prog_compiler_pic='-fPIC'
8346 esac
8348 case $cc_basename in
8349 nvcc*) # Cuda Compiler Driver 2.2
8350 lt_prog_compiler_wl='-Xlinker '
8351 lt_prog_compiler_pic='-Xcompiler -fPIC'
8353 esac
8354 else
8355 # PORTME Check for flag to pass linker flags through the system compiler.
8356 case $host_os in
8357 aix*)
8358 lt_prog_compiler_wl='-Wl,'
8359 if test "$host_cpu" = ia64; then
8360 # AIX 5 now supports IA64 processor
8361 lt_prog_compiler_static='-Bstatic'
8362 else
8363 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8367 mingw* | cygwin* | pw32* | os2* | cegcc*)
8368 # This hack is so that the source file can tell whether it is being
8369 # built for inclusion in a dll (and should export symbols for example).
8370 lt_prog_compiler_pic='-DDLL_EXPORT'
8373 hpux9* | hpux10* | hpux11*)
8374 lt_prog_compiler_wl='-Wl,'
8375 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8376 # not for PA HP-UX.
8377 case $host_cpu in
8378 hppa*64*|ia64*)
8379 # +Z the default
8382 lt_prog_compiler_pic='+Z'
8384 esac
8385 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8386 lt_prog_compiler_static='${wl}-a ${wl}archive'
8389 irix5* | irix6* | nonstopux*)
8390 lt_prog_compiler_wl='-Wl,'
8391 # PIC (with -KPIC) is the default.
8392 lt_prog_compiler_static='-non_shared'
8395 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8396 case $cc_basename in
8397 # old Intel for x86_64 which still supported -KPIC.
8398 ecc*)
8399 lt_prog_compiler_wl='-Wl,'
8400 lt_prog_compiler_pic='-KPIC'
8401 lt_prog_compiler_static='-static'
8403 # icc used to be incompatible with GCC.
8404 # ICC 10 doesn't accept -KPIC any more.
8405 icc* | ifort*)
8406 lt_prog_compiler_wl='-Wl,'
8407 lt_prog_compiler_pic='-fPIC'
8408 lt_prog_compiler_static='-static'
8410 # Lahey Fortran 8.1.
8411 lf95*)
8412 lt_prog_compiler_wl='-Wl,'
8413 lt_prog_compiler_pic='--shared'
8414 lt_prog_compiler_static='--static'
8416 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8417 # Portland Group compilers (*not* the Pentium gcc compiler,
8418 # which looks to be a dead project)
8419 lt_prog_compiler_wl='-Wl,'
8420 lt_prog_compiler_pic='-fpic'
8421 lt_prog_compiler_static='-Bstatic'
8423 ccc*)
8424 lt_prog_compiler_wl='-Wl,'
8425 # All Alpha code is PIC.
8426 lt_prog_compiler_static='-non_shared'
8428 xl* | bgxl* | bgf* | mpixl*)
8429 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8430 lt_prog_compiler_wl='-Wl,'
8431 lt_prog_compiler_pic='-qpic'
8432 lt_prog_compiler_static='-qstaticlink'
8435 case `$CC -V 2>&1 | sed 5q` in
8436 *Sun\ F* | *Sun*Fortran*)
8437 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8438 lt_prog_compiler_pic='-KPIC'
8439 lt_prog_compiler_static='-Bstatic'
8440 lt_prog_compiler_wl=''
8442 *Sun\ C*)
8443 # Sun C 5.9
8444 lt_prog_compiler_pic='-KPIC'
8445 lt_prog_compiler_static='-Bstatic'
8446 lt_prog_compiler_wl='-Wl,'
8448 esac
8450 esac
8453 newsos6)
8454 lt_prog_compiler_pic='-KPIC'
8455 lt_prog_compiler_static='-Bstatic'
8458 *nto* | *qnx*)
8459 # QNX uses GNU C++, but need to define -shared option too, otherwise
8460 # it will coredump.
8461 lt_prog_compiler_pic='-fPIC -shared'
8464 osf3* | osf4* | osf5*)
8465 lt_prog_compiler_wl='-Wl,'
8466 # All OSF/1 code is PIC.
8467 lt_prog_compiler_static='-non_shared'
8470 rdos*)
8471 lt_prog_compiler_static='-non_shared'
8474 solaris*)
8475 lt_prog_compiler_pic='-KPIC'
8476 lt_prog_compiler_static='-Bstatic'
8477 case $cc_basename in
8478 f77* | f90* | f95*)
8479 lt_prog_compiler_wl='-Qoption ld ';;
8481 lt_prog_compiler_wl='-Wl,';;
8482 esac
8485 sunos4*)
8486 lt_prog_compiler_wl='-Qoption ld '
8487 lt_prog_compiler_pic='-PIC'
8488 lt_prog_compiler_static='-Bstatic'
8491 sysv4 | sysv4.2uw2* | sysv4.3*)
8492 lt_prog_compiler_wl='-Wl,'
8493 lt_prog_compiler_pic='-KPIC'
8494 lt_prog_compiler_static='-Bstatic'
8497 sysv4*MP*)
8498 if test -d /usr/nec ;then
8499 lt_prog_compiler_pic='-Kconform_pic'
8500 lt_prog_compiler_static='-Bstatic'
8504 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8505 lt_prog_compiler_wl='-Wl,'
8506 lt_prog_compiler_pic='-KPIC'
8507 lt_prog_compiler_static='-Bstatic'
8510 unicos*)
8511 lt_prog_compiler_wl='-Wl,'
8512 lt_prog_compiler_can_build_shared=no
8515 uts4*)
8516 lt_prog_compiler_pic='-pic'
8517 lt_prog_compiler_static='-Bstatic'
8521 lt_prog_compiler_can_build_shared=no
8523 esac
8526 case $host_os in
8527 # For platforms which do not support PIC, -DPIC is meaningless:
8528 *djgpp*)
8529 lt_prog_compiler_pic=
8532 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8534 esac
8535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8536 $as_echo "$lt_prog_compiler_pic" >&6; }
8544 # Check to make sure the PIC flag actually works.
8546 if test -n "$lt_prog_compiler_pic"; then
8547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8548 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8549 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8550 $as_echo_n "(cached) " >&6
8551 else
8552 lt_cv_prog_compiler_pic_works=no
8553 ac_outfile=conftest.$ac_objext
8554 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8555 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8556 # Insert the option either (1) after the last *FLAGS variable, or
8557 # (2) before a word containing "conftest.", or (3) at the end.
8558 # Note that $ac_compile itself does not contain backslashes and begins
8559 # with a dollar sign (not a hyphen), so the echo should work correctly.
8560 # The option is referenced via a variable to avoid confusing sed.
8561 lt_compile=`echo "$ac_compile" | $SED \
8562 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8563 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8564 -e 's:$: $lt_compiler_flag:'`
8565 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8566 (eval "$lt_compile" 2>conftest.err)
8567 ac_status=$?
8568 cat conftest.err >&5
8569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8570 if (exit $ac_status) && test -s "$ac_outfile"; then
8571 # The compiler can only warn and ignore the option if not recognized
8572 # So say no if there are warnings other than the usual output.
8573 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8574 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8575 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8576 lt_cv_prog_compiler_pic_works=yes
8579 $RM conftest*
8582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8583 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8585 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8586 case $lt_prog_compiler_pic in
8587 "" | " "*) ;;
8588 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8589 esac
8590 else
8591 lt_prog_compiler_pic=
8592 lt_prog_compiler_can_build_shared=no
8603 # Check to make sure the static flag actually works.
8605 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8607 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8608 if ${lt_cv_prog_compiler_static_works+:} false; then :
8609 $as_echo_n "(cached) " >&6
8610 else
8611 lt_cv_prog_compiler_static_works=no
8612 save_LDFLAGS="$LDFLAGS"
8613 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8614 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8615 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8616 # The linker can only warn and ignore the option if not recognized
8617 # So say no if there are warnings
8618 if test -s conftest.err; then
8619 # Append any errors to the config.log.
8620 cat conftest.err 1>&5
8621 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8622 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8623 if diff conftest.exp conftest.er2 >/dev/null; then
8624 lt_cv_prog_compiler_static_works=yes
8626 else
8627 lt_cv_prog_compiler_static_works=yes
8630 $RM -r conftest*
8631 LDFLAGS="$save_LDFLAGS"
8634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8635 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8637 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8639 else
8640 lt_prog_compiler_static=
8649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8650 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8651 if ${lt_cv_prog_compiler_c_o+:} false; then :
8652 $as_echo_n "(cached) " >&6
8653 else
8654 lt_cv_prog_compiler_c_o=no
8655 $RM -r conftest 2>/dev/null
8656 mkdir conftest
8657 cd conftest
8658 mkdir out
8659 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8661 lt_compiler_flag="-o out/conftest2.$ac_objext"
8662 # Insert the option either (1) after the last *FLAGS variable, or
8663 # (2) before a word containing "conftest.", or (3) at the end.
8664 # Note that $ac_compile itself does not contain backslashes and begins
8665 # with a dollar sign (not a hyphen), so the echo should work correctly.
8666 lt_compile=`echo "$ac_compile" | $SED \
8667 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8668 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8669 -e 's:$: $lt_compiler_flag:'`
8670 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8671 (eval "$lt_compile" 2>out/conftest.err)
8672 ac_status=$?
8673 cat out/conftest.err >&5
8674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8675 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8676 then
8677 # The compiler can only warn and ignore the option if not recognized
8678 # So say no if there are warnings
8679 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8680 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8681 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8682 lt_cv_prog_compiler_c_o=yes
8685 chmod u+w . 2>&5
8686 $RM conftest*
8687 # SGI C++ compiler will create directory out/ii_files/ for
8688 # template instantiation
8689 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8690 $RM out/* && rmdir out
8691 cd ..
8692 $RM -r conftest
8693 $RM conftest*
8696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8697 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8705 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8706 if ${lt_cv_prog_compiler_c_o+:} false; then :
8707 $as_echo_n "(cached) " >&6
8708 else
8709 lt_cv_prog_compiler_c_o=no
8710 $RM -r conftest 2>/dev/null
8711 mkdir conftest
8712 cd conftest
8713 mkdir out
8714 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8716 lt_compiler_flag="-o out/conftest2.$ac_objext"
8717 # Insert the option either (1) after the last *FLAGS variable, or
8718 # (2) before a word containing "conftest.", or (3) at the end.
8719 # Note that $ac_compile itself does not contain backslashes and begins
8720 # with a dollar sign (not a hyphen), so the echo should work correctly.
8721 lt_compile=`echo "$ac_compile" | $SED \
8722 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8723 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8724 -e 's:$: $lt_compiler_flag:'`
8725 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8726 (eval "$lt_compile" 2>out/conftest.err)
8727 ac_status=$?
8728 cat out/conftest.err >&5
8729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8730 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8731 then
8732 # The compiler can only warn and ignore the option if not recognized
8733 # So say no if there are warnings
8734 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8735 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8736 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8737 lt_cv_prog_compiler_c_o=yes
8740 chmod u+w . 2>&5
8741 $RM conftest*
8742 # SGI C++ compiler will create directory out/ii_files/ for
8743 # template instantiation
8744 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8745 $RM out/* && rmdir out
8746 cd ..
8747 $RM -r conftest
8748 $RM conftest*
8751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8752 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8757 hard_links="nottested"
8758 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8759 # do not overwrite the value of need_locks provided by the user
8760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8761 $as_echo_n "checking if we can lock with hard links... " >&6; }
8762 hard_links=yes
8763 $RM conftest*
8764 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8765 touch conftest.a
8766 ln conftest.a conftest.b 2>&5 || hard_links=no
8767 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8769 $as_echo "$hard_links" >&6; }
8770 if test "$hard_links" = no; then
8771 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8772 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8773 need_locks=warn
8775 else
8776 need_locks=no
8784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8785 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8787 runpath_var=
8788 allow_undefined_flag=
8789 always_export_symbols=no
8790 archive_cmds=
8791 archive_expsym_cmds=
8792 compiler_needs_object=no
8793 enable_shared_with_static_runtimes=no
8794 export_dynamic_flag_spec=
8795 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8796 hardcode_automatic=no
8797 hardcode_direct=no
8798 hardcode_direct_absolute=no
8799 hardcode_libdir_flag_spec=
8800 hardcode_libdir_flag_spec_ld=
8801 hardcode_libdir_separator=
8802 hardcode_minus_L=no
8803 hardcode_shlibpath_var=unsupported
8804 inherit_rpath=no
8805 link_all_deplibs=unknown
8806 module_cmds=
8807 module_expsym_cmds=
8808 old_archive_from_new_cmds=
8809 old_archive_from_expsyms_cmds=
8810 thread_safe_flag_spec=
8811 whole_archive_flag_spec=
8812 # include_expsyms should be a list of space-separated symbols to be *always*
8813 # included in the symbol list
8814 include_expsyms=
8815 # exclude_expsyms can be an extended regexp of symbols to exclude
8816 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8817 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8818 # as well as any symbol that contains `d'.
8819 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8820 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8821 # platforms (ab)use it in PIC code, but their linkers get confused if
8822 # the symbol is explicitly referenced. Since portable code cannot
8823 # rely on this symbol name, it's probably fine to never include it in
8824 # preloaded symbol tables.
8825 # Exclude shared library initialization/finalization symbols.
8826 extract_expsyms_cmds=
8828 case $host_os in
8829 cygwin* | mingw* | pw32* | cegcc*)
8830 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8831 # When not using gcc, we currently assume that we are using
8832 # Microsoft Visual C++.
8833 if test "$GCC" != yes; then
8834 with_gnu_ld=no
8837 interix*)
8838 # we just hope/assume this is gcc and not c89 (= MSVC++)
8839 with_gnu_ld=yes
8841 openbsd*)
8842 with_gnu_ld=no
8844 esac
8846 ld_shlibs=yes
8848 # On some targets, GNU ld is compatible enough with the native linker
8849 # that we're better off using the native interface for both.
8850 lt_use_gnu_ld_interface=no
8851 if test "$with_gnu_ld" = yes; then
8852 case $host_os in
8853 aix*)
8854 # The AIX port of GNU ld has always aspired to compatibility
8855 # with the native linker. However, as the warning in the GNU ld
8856 # block says, versions before 2.19.5* couldn't really create working
8857 # shared libraries, regardless of the interface used.
8858 case `$LD -v 2>&1` in
8859 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8860 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8861 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8863 lt_use_gnu_ld_interface=yes
8865 esac
8868 lt_use_gnu_ld_interface=yes
8870 esac
8873 if test "$lt_use_gnu_ld_interface" = yes; then
8874 # If archive_cmds runs LD, not CC, wlarc should be empty
8875 wlarc='${wl}'
8877 # Set some defaults for GNU ld with shared library support. These
8878 # are reset later if shared libraries are not supported. Putting them
8879 # here allows them to be overridden if necessary.
8880 runpath_var=LD_RUN_PATH
8881 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8882 export_dynamic_flag_spec='${wl}--export-dynamic'
8883 # ancient GNU ld didn't support --whole-archive et. al.
8884 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8885 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8886 else
8887 whole_archive_flag_spec=
8889 supports_anon_versioning=no
8890 case `$LD -v 2>&1` in
8891 *GNU\ gold*) supports_anon_versioning=yes ;;
8892 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8893 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8894 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8895 *\ 2.11.*) ;; # other 2.11 versions
8896 *) supports_anon_versioning=yes ;;
8897 esac
8899 # See if GNU ld supports shared libraries.
8900 case $host_os in
8901 aix[3-9]*)
8902 # On AIX/PPC, the GNU linker is very broken
8903 if test "$host_cpu" != ia64; then
8904 ld_shlibs=no
8905 cat <<_LT_EOF 1>&2
8907 *** Warning: the GNU linker, at least up to release 2.19, is reported
8908 *** to be unable to reliably create shared libraries on AIX.
8909 *** Therefore, libtool is disabling shared libraries support. If you
8910 *** really care for shared libraries, you may want to install binutils
8911 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8912 *** You will then need to restart the configuration process.
8914 _LT_EOF
8918 amigaos*)
8919 case $host_cpu in
8920 powerpc)
8921 # see comment about AmigaOS4 .so support
8922 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8923 archive_expsym_cmds=''
8925 m68k)
8926 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)'
8927 hardcode_libdir_flag_spec='-L$libdir'
8928 hardcode_minus_L=yes
8930 esac
8933 beos*)
8934 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8935 allow_undefined_flag=unsupported
8936 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8937 # support --undefined. This deserves some investigation. FIXME
8938 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8939 else
8940 ld_shlibs=no
8944 cygwin* | mingw* | pw32* | cegcc*)
8945 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8946 # as there is no search path for DLLs.
8947 hardcode_libdir_flag_spec='-L$libdir'
8948 export_dynamic_flag_spec='${wl}--export-all-symbols'
8949 allow_undefined_flag=unsupported
8950 always_export_symbols=no
8951 enable_shared_with_static_runtimes=yes
8952 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8954 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8955 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8956 # If the export-symbols file already is a .def file (1st line
8957 # is EXPORTS), use it as is; otherwise, prepend...
8958 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8959 cp $export_symbols $output_objdir/$soname.def;
8960 else
8961 echo EXPORTS > $output_objdir/$soname.def;
8962 cat $export_symbols >> $output_objdir/$soname.def;
8964 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8965 else
8966 ld_shlibs=no
8970 haiku*)
8971 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8972 link_all_deplibs=yes
8975 interix[3-9]*)
8976 hardcode_direct=no
8977 hardcode_shlibpath_var=no
8978 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8979 export_dynamic_flag_spec='${wl}-E'
8980 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8981 # Instead, shared libraries are loaded at an image base (0x10000000 by
8982 # default) and relocated if they conflict, which is a slow very memory
8983 # consuming and fragmenting process. To avoid this, we pick a random,
8984 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8985 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8986 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8987 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'
8990 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
8991 tmp_diet=no
8992 if test "$host_os" = linux-dietlibc; then
8993 case $cc_basename in
8994 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8995 esac
8997 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8998 && test "$tmp_diet" = no
8999 then
9000 tmp_addflag=' $pic_flag'
9001 tmp_sharedflag='-shared'
9002 case $cc_basename,$host_cpu in
9003 pgcc*) # Portland Group C compiler
9004 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'
9005 tmp_addflag=' $pic_flag'
9007 pgf77* | pgf90* | pgf95* | pgfortran*)
9008 # Portland Group f77 and f90 compilers
9009 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'
9010 tmp_addflag=' $pic_flag -Mnomain' ;;
9011 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9012 tmp_addflag=' -i_dynamic' ;;
9013 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9014 tmp_addflag=' -i_dynamic -nofor_main' ;;
9015 ifc* | ifort*) # Intel Fortran compiler
9016 tmp_addflag=' -nofor_main' ;;
9017 lf95*) # Lahey Fortran 8.1
9018 whole_archive_flag_spec=
9019 tmp_sharedflag='--shared' ;;
9020 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9021 tmp_sharedflag='-qmkshrobj'
9022 tmp_addflag= ;;
9023 nvcc*) # Cuda Compiler Driver 2.2
9024 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'
9025 compiler_needs_object=yes
9027 esac
9028 case `$CC -V 2>&1 | sed 5q` in
9029 *Sun\ C*) # Sun C 5.9
9030 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'
9031 compiler_needs_object=yes
9032 tmp_sharedflag='-G' ;;
9033 *Sun\ F*) # Sun Fortran 8.3
9034 tmp_sharedflag='-G' ;;
9035 esac
9036 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9038 if test "x$supports_anon_versioning" = xyes; then
9039 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9040 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9041 echo "local: *; };" >> $output_objdir/$libname.ver~
9042 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9045 case $cc_basename in
9046 xlf* | bgf* | bgxlf* | mpixlf*)
9047 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9048 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9049 hardcode_libdir_flag_spec=
9050 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9051 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9052 if test "x$supports_anon_versioning" = xyes; then
9053 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9054 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9055 echo "local: *; };" >> $output_objdir/$libname.ver~
9056 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9059 esac
9060 else
9061 ld_shlibs=no
9065 netbsd*)
9066 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9067 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9068 wlarc=
9069 else
9070 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9071 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9075 solaris*)
9076 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9077 ld_shlibs=no
9078 cat <<_LT_EOF 1>&2
9080 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9081 *** create shared libraries on Solaris systems. Therefore, libtool
9082 *** is disabling shared libraries support. We urge you to upgrade GNU
9083 *** binutils to release 2.9.1 or newer. Another option is to modify
9084 *** your PATH or compiler configuration so that the native linker is
9085 *** used, and then restart.
9087 _LT_EOF
9088 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9089 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9090 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9091 else
9092 ld_shlibs=no
9096 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9097 case `$LD -v 2>&1` in
9098 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9099 ld_shlibs=no
9100 cat <<_LT_EOF 1>&2
9102 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9103 *** reliably create shared libraries on SCO systems. Therefore, libtool
9104 *** is disabling shared libraries support. We urge you to upgrade GNU
9105 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9106 *** your PATH or compiler configuration so that the native linker is
9107 *** used, and then restart.
9109 _LT_EOF
9112 # For security reasons, it is highly recommended that you always
9113 # use absolute paths for naming shared libraries, and exclude the
9114 # DT_RUNPATH tag from executables and libraries. But doing so
9115 # requires that you compile everything twice, which is a pain.
9116 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9117 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9118 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9119 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9120 else
9121 ld_shlibs=no
9124 esac
9127 sunos4*)
9128 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9129 wlarc=
9130 hardcode_direct=yes
9131 hardcode_shlibpath_var=no
9135 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9136 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9137 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9138 else
9139 ld_shlibs=no
9142 esac
9144 if test "$ld_shlibs" = no; then
9145 runpath_var=
9146 hardcode_libdir_flag_spec=
9147 export_dynamic_flag_spec=
9148 whole_archive_flag_spec=
9150 else
9151 # PORTME fill in a description of your system's linker (not GNU ld)
9152 case $host_os in
9153 aix3*)
9154 allow_undefined_flag=unsupported
9155 always_export_symbols=yes
9156 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'
9157 # Note: this linker hardcodes the directories in LIBPATH if there
9158 # are no directories specified by -L.
9159 hardcode_minus_L=yes
9160 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9161 # Neither direct hardcoding nor static linking is supported with a
9162 # broken collect2.
9163 hardcode_direct=unsupported
9167 aix[4-9]*)
9168 if test "$host_cpu" = ia64; then
9169 # On IA64, the linker does run time linking by default, so we don't
9170 # have to do anything special.
9171 aix_use_runtimelinking=no
9172 exp_sym_flag='-Bexport'
9173 no_entry_flag=""
9174 else
9175 # If we're using GNU nm, then we don't want the "-C" option.
9176 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9177 # Also, AIX nm treats weak defined symbols like other global
9178 # defined symbols, whereas GNU nm marks them as "W".
9179 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9180 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'
9181 else
9182 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'
9184 aix_use_runtimelinking=no
9186 # Test if we are trying to use run time linking or normal
9187 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9188 # need to do runtime linking.
9189 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9190 for ld_flag in $LDFLAGS; do
9191 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9192 aix_use_runtimelinking=yes
9193 break
9195 done
9197 esac
9199 exp_sym_flag='-bexport'
9200 no_entry_flag='-bnoentry'
9203 # When large executables or shared objects are built, AIX ld can
9204 # have problems creating the table of contents. If linking a library
9205 # or program results in "error TOC overflow" add -mminimal-toc to
9206 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9207 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9209 archive_cmds=''
9210 hardcode_direct=yes
9211 hardcode_direct_absolute=yes
9212 hardcode_libdir_separator=':'
9213 link_all_deplibs=yes
9214 file_list_spec='${wl}-f,'
9216 if test "$GCC" = yes; then
9217 case $host_os in aix4.[012]|aix4.[012].*)
9218 # We only want to do this on AIX 4.2 and lower, the check
9219 # below for broken collect2 doesn't work under 4.3+
9220 collect2name=`${CC} -print-prog-name=collect2`
9221 if test -f "$collect2name" &&
9222 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9223 then
9224 # We have reworked collect2
9226 else
9227 # We have old collect2
9228 hardcode_direct=unsupported
9229 # It fails to find uninstalled libraries when the uninstalled
9230 # path is not listed in the libpath. Setting hardcode_minus_L
9231 # to unsupported forces relinking
9232 hardcode_minus_L=yes
9233 hardcode_libdir_flag_spec='-L$libdir'
9234 hardcode_libdir_separator=
9237 esac
9238 shared_flag='-shared'
9239 if test "$aix_use_runtimelinking" = yes; then
9240 shared_flag="$shared_flag "'${wl}-G'
9242 else
9243 # not using gcc
9244 if test "$host_cpu" = ia64; then
9245 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9246 # chokes on -Wl,-G. The following line is correct:
9247 shared_flag='-G'
9248 else
9249 if test "$aix_use_runtimelinking" = yes; then
9250 shared_flag='${wl}-G'
9251 else
9252 shared_flag='${wl}-bM:SRE'
9257 export_dynamic_flag_spec='${wl}-bexpall'
9258 # It seems that -bexpall does not export symbols beginning with
9259 # underscore (_), so it is better to generate a list of symbols to export.
9260 always_export_symbols=yes
9261 if test "$aix_use_runtimelinking" = yes; then
9262 # Warning - without using the other runtime loading flags (-brtl),
9263 # -berok will link without error, but may produce a broken library.
9264 allow_undefined_flag='-berok'
9265 # Determine the default libpath from the value encoded in an
9266 # empty executable.
9267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9268 /* end confdefs.h. */
9271 main ()
9275 return 0;
9277 _ACEOF
9278 if ac_fn_c_try_link "$LINENO"; then :
9280 lt_aix_libpath_sed='
9281 /Import File Strings/,/^$/ {
9282 /^0/ {
9283 s/^0 *\(.*\)$/\1/
9287 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9288 # Check for a 64-bit object if we didn't find anything.
9289 if test -z "$aix_libpath"; then
9290 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9293 rm -f core conftest.err conftest.$ac_objext \
9294 conftest$ac_exeext conftest.$ac_ext
9295 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9297 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9298 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"
9299 else
9300 if test "$host_cpu" = ia64; then
9301 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9302 allow_undefined_flag="-z nodefs"
9303 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"
9304 else
9305 # Determine the default libpath from the value encoded in an
9306 # empty executable.
9307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9308 /* end confdefs.h. */
9311 main ()
9315 return 0;
9317 _ACEOF
9318 if ac_fn_c_try_link "$LINENO"; then :
9320 lt_aix_libpath_sed='
9321 /Import File Strings/,/^$/ {
9322 /^0/ {
9323 s/^0 *\(.*\)$/\1/
9327 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9328 # Check for a 64-bit object if we didn't find anything.
9329 if test -z "$aix_libpath"; then
9330 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9333 rm -f core conftest.err conftest.$ac_objext \
9334 conftest$ac_exeext conftest.$ac_ext
9335 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9337 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9338 # Warning - without using the other run time loading flags,
9339 # -berok will link without error, but may produce a broken library.
9340 no_undefined_flag=' ${wl}-bernotok'
9341 allow_undefined_flag=' ${wl}-berok'
9342 if test "$with_gnu_ld" = yes; then
9343 # We only use this code for GNU lds that support --whole-archive.
9344 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9345 else
9346 # Exported symbols can be pulled into shared objects from archives
9347 whole_archive_flag_spec='$convenience'
9349 archive_cmds_need_lc=yes
9350 # This is similar to how AIX traditionally builds its shared libraries.
9351 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'
9356 amigaos*)
9357 case $host_cpu in
9358 powerpc)
9359 # see comment about AmigaOS4 .so support
9360 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9361 archive_expsym_cmds=''
9363 m68k)
9364 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)'
9365 hardcode_libdir_flag_spec='-L$libdir'
9366 hardcode_minus_L=yes
9368 esac
9371 bsdi[45]*)
9372 export_dynamic_flag_spec=-rdynamic
9375 cygwin* | mingw* | pw32* | cegcc*)
9376 # When not using gcc, we currently assume that we are using
9377 # Microsoft Visual C++.
9378 # hardcode_libdir_flag_spec is actually meaningless, as there is
9379 # no search path for DLLs.
9380 hardcode_libdir_flag_spec=' '
9381 allow_undefined_flag=unsupported
9382 # Tell ltmain to make .lib files, not .a files.
9383 libext=lib
9384 # Tell ltmain to make .dll files, not .so files.
9385 shrext_cmds=".dll"
9386 # FIXME: Setting linknames here is a bad hack.
9387 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9388 # The linker will automatically build a .lib file if we build a DLL.
9389 old_archive_from_new_cmds='true'
9390 # FIXME: Should let the user specify the lib program.
9391 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9392 fix_srcfile_path='`cygpath -w "$srcfile"`'
9393 enable_shared_with_static_runtimes=yes
9396 darwin* | rhapsody*)
9399 archive_cmds_need_lc=no
9400 hardcode_direct=no
9401 hardcode_automatic=yes
9402 hardcode_shlibpath_var=unsupported
9403 if test "$lt_cv_ld_force_load" = "yes"; then
9404 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\"`'
9405 else
9406 whole_archive_flag_spec=''
9408 link_all_deplibs=yes
9409 allow_undefined_flag="$_lt_dar_allow_undefined"
9410 case $cc_basename in
9411 ifort*) _lt_dar_can_shared=yes ;;
9412 *) _lt_dar_can_shared=$GCC ;;
9413 esac
9414 if test "$_lt_dar_can_shared" = "yes"; then
9415 output_verbose_link_cmd=func_echo_all
9416 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9417 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9418 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}"
9419 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}"
9421 else
9422 ld_shlibs=no
9427 dgux*)
9428 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9429 hardcode_libdir_flag_spec='-L$libdir'
9430 hardcode_shlibpath_var=no
9433 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9434 # support. Future versions do this automatically, but an explicit c++rt0.o
9435 # does not break anything, and helps significantly (at the cost of a little
9436 # extra space).
9437 freebsd2.2*)
9438 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9439 hardcode_libdir_flag_spec='-R$libdir'
9440 hardcode_direct=yes
9441 hardcode_shlibpath_var=no
9444 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9445 freebsd2.*)
9446 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9447 hardcode_direct=yes
9448 hardcode_minus_L=yes
9449 hardcode_shlibpath_var=no
9452 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9453 freebsd* | dragonfly*)
9454 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9455 hardcode_libdir_flag_spec='-R$libdir'
9456 hardcode_direct=yes
9457 hardcode_shlibpath_var=no
9460 hpux9*)
9461 if test "$GCC" = yes; then
9462 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'
9463 else
9464 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'
9466 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9467 hardcode_libdir_separator=:
9468 hardcode_direct=yes
9470 # hardcode_minus_L: Not really in the search PATH,
9471 # but as the default location of the library.
9472 hardcode_minus_L=yes
9473 export_dynamic_flag_spec='${wl}-E'
9476 hpux10*)
9477 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9478 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9479 else
9480 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9482 if test "$with_gnu_ld" = no; then
9483 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9484 hardcode_libdir_flag_spec_ld='+b $libdir'
9485 hardcode_libdir_separator=:
9486 hardcode_direct=yes
9487 hardcode_direct_absolute=yes
9488 export_dynamic_flag_spec='${wl}-E'
9489 # hardcode_minus_L: Not really in the search PATH,
9490 # but as the default location of the library.
9491 hardcode_minus_L=yes
9495 hpux11*)
9496 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9497 case $host_cpu in
9498 hppa*64*)
9499 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9501 ia64*)
9502 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9505 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9507 esac
9508 else
9509 case $host_cpu in
9510 hppa*64*)
9511 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9513 ia64*)
9514 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9518 # Older versions of the 11.00 compiler do not understand -b yet
9519 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9521 $as_echo_n "checking if $CC understands -b... " >&6; }
9522 if ${lt_cv_prog_compiler__b+:} false; then :
9523 $as_echo_n "(cached) " >&6
9524 else
9525 lt_cv_prog_compiler__b=no
9526 save_LDFLAGS="$LDFLAGS"
9527 LDFLAGS="$LDFLAGS -b"
9528 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9529 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9530 # The linker can only warn and ignore the option if not recognized
9531 # So say no if there are warnings
9532 if test -s conftest.err; then
9533 # Append any errors to the config.log.
9534 cat conftest.err 1>&5
9535 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9536 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9537 if diff conftest.exp conftest.er2 >/dev/null; then
9538 lt_cv_prog_compiler__b=yes
9540 else
9541 lt_cv_prog_compiler__b=yes
9544 $RM -r conftest*
9545 LDFLAGS="$save_LDFLAGS"
9548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9549 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9551 if test x"$lt_cv_prog_compiler__b" = xyes; then
9552 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9553 else
9554 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9558 esac
9560 if test "$with_gnu_ld" = no; then
9561 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9562 hardcode_libdir_separator=:
9564 case $host_cpu in
9565 hppa*64*|ia64*)
9566 hardcode_direct=no
9567 hardcode_shlibpath_var=no
9570 hardcode_direct=yes
9571 hardcode_direct_absolute=yes
9572 export_dynamic_flag_spec='${wl}-E'
9574 # hardcode_minus_L: Not really in the search PATH,
9575 # but as the default location of the library.
9576 hardcode_minus_L=yes
9578 esac
9582 irix5* | irix6* | nonstopux*)
9583 if test "$GCC" = yes; then
9584 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'
9585 # Try to use the -exported_symbol ld option, if it does not
9586 # work, assume that -exports_file does not work either and
9587 # implicitly export all symbols.
9588 save_LDFLAGS="$LDFLAGS"
9589 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9591 /* end confdefs.h. */
9592 int foo(void) {}
9593 _ACEOF
9594 if ac_fn_c_try_link "$LINENO"; then :
9595 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'
9598 rm -f core conftest.err conftest.$ac_objext \
9599 conftest$ac_exeext conftest.$ac_ext
9600 LDFLAGS="$save_LDFLAGS"
9601 else
9602 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'
9603 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'
9605 archive_cmds_need_lc='no'
9606 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9607 hardcode_libdir_separator=:
9608 inherit_rpath=yes
9609 link_all_deplibs=yes
9612 netbsd*)
9613 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9614 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9615 else
9616 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9618 hardcode_libdir_flag_spec='-R$libdir'
9619 hardcode_direct=yes
9620 hardcode_shlibpath_var=no
9623 newsos6)
9624 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9625 hardcode_direct=yes
9626 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9627 hardcode_libdir_separator=:
9628 hardcode_shlibpath_var=no
9631 *nto* | *qnx*)
9634 openbsd*)
9635 if test -f /usr/libexec/ld.so; then
9636 hardcode_direct=yes
9637 hardcode_shlibpath_var=no
9638 hardcode_direct_absolute=yes
9639 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9640 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9641 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9642 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9643 export_dynamic_flag_spec='${wl}-E'
9644 else
9645 case $host_os in
9646 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9647 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9648 hardcode_libdir_flag_spec='-R$libdir'
9651 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9652 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9654 esac
9656 else
9657 ld_shlibs=no
9661 os2*)
9662 hardcode_libdir_flag_spec='-L$libdir'
9663 hardcode_minus_L=yes
9664 allow_undefined_flag=unsupported
9665 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'
9666 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9669 osf3*)
9670 if test "$GCC" = yes; then
9671 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9672 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'
9673 else
9674 allow_undefined_flag=' -expect_unresolved \*'
9675 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'
9677 archive_cmds_need_lc='no'
9678 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9679 hardcode_libdir_separator=:
9682 osf4* | osf5*) # as osf3* with the addition of -msym flag
9683 if test "$GCC" = yes; then
9684 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9685 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'
9686 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9687 else
9688 allow_undefined_flag=' -expect_unresolved \*'
9689 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'
9690 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~
9691 $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'
9693 # Both c and cxx compiler support -rpath directly
9694 hardcode_libdir_flag_spec='-rpath $libdir'
9696 archive_cmds_need_lc='no'
9697 hardcode_libdir_separator=:
9700 solaris*)
9701 no_undefined_flag=' -z defs'
9702 if test "$GCC" = yes; then
9703 wlarc='${wl}'
9704 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9705 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9706 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9707 else
9708 case `$CC -V 2>&1` in
9709 *"Compilers 5.0"*)
9710 wlarc=''
9711 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9712 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9713 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9716 wlarc='${wl}'
9717 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9718 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9719 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9721 esac
9723 hardcode_libdir_flag_spec='-R$libdir'
9724 hardcode_shlibpath_var=no
9725 case $host_os in
9726 solaris2.[0-5] | solaris2.[0-5].*) ;;
9728 # The compiler driver will combine and reorder linker options,
9729 # but understands `-z linker_flag'. GCC discards it without `$wl',
9730 # but is careful enough not to reorder.
9731 # Supported since Solaris 2.6 (maybe 2.5.1?)
9732 if test "$GCC" = yes; then
9733 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9734 else
9735 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9738 esac
9739 link_all_deplibs=yes
9742 sunos4*)
9743 if test "x$host_vendor" = xsequent; then
9744 # Use $CC to link under sequent, because it throws in some extra .o
9745 # files that make .init and .fini sections work.
9746 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9747 else
9748 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9750 hardcode_libdir_flag_spec='-L$libdir'
9751 hardcode_direct=yes
9752 hardcode_minus_L=yes
9753 hardcode_shlibpath_var=no
9756 sysv4)
9757 case $host_vendor in
9758 sni)
9759 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9760 hardcode_direct=yes # is this really true???
9762 siemens)
9763 ## LD is ld it makes a PLAMLIB
9764 ## CC just makes a GrossModule.
9765 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9766 reload_cmds='$CC -r -o $output$reload_objs'
9767 hardcode_direct=no
9769 motorola)
9770 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9771 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9773 esac
9774 runpath_var='LD_RUN_PATH'
9775 hardcode_shlibpath_var=no
9778 sysv4.3*)
9779 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9780 hardcode_shlibpath_var=no
9781 export_dynamic_flag_spec='-Bexport'
9784 sysv4*MP*)
9785 if test -d /usr/nec; then
9786 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9787 hardcode_shlibpath_var=no
9788 runpath_var=LD_RUN_PATH
9789 hardcode_runpath_var=yes
9790 ld_shlibs=yes
9794 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9795 no_undefined_flag='${wl}-z,text'
9796 archive_cmds_need_lc=no
9797 hardcode_shlibpath_var=no
9798 runpath_var='LD_RUN_PATH'
9800 if test "$GCC" = yes; then
9801 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9802 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9803 else
9804 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9805 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9809 sysv5* | sco3.2v5* | sco5v6*)
9810 # Note: We can NOT use -z defs as we might desire, because we do not
9811 # link with -lc, and that would cause any symbols used from libc to
9812 # always be unresolved, which means just about no library would
9813 # ever link correctly. If we're not using GNU ld we use -z text
9814 # though, which does catch some bad symbols but isn't as heavy-handed
9815 # as -z defs.
9816 no_undefined_flag='${wl}-z,text'
9817 allow_undefined_flag='${wl}-z,nodefs'
9818 archive_cmds_need_lc=no
9819 hardcode_shlibpath_var=no
9820 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9821 hardcode_libdir_separator=':'
9822 link_all_deplibs=yes
9823 export_dynamic_flag_spec='${wl}-Bexport'
9824 runpath_var='LD_RUN_PATH'
9826 if test "$GCC" = yes; then
9827 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9828 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9829 else
9830 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9831 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9835 uts4*)
9836 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9837 hardcode_libdir_flag_spec='-L$libdir'
9838 hardcode_shlibpath_var=no
9842 ld_shlibs=no
9844 esac
9846 if test x$host_vendor = xsni; then
9847 case $host in
9848 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9849 export_dynamic_flag_spec='${wl}-Blargedynsym'
9851 esac
9855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9856 $as_echo "$ld_shlibs" >&6; }
9857 test "$ld_shlibs" = no && can_build_shared=no
9859 with_gnu_ld=$with_gnu_ld
9876 # Do we need to explicitly link libc?
9878 case "x$archive_cmds_need_lc" in
9879 x|xyes)
9880 # Assume -lc should be added
9881 archive_cmds_need_lc=yes
9883 if test "$enable_shared" = yes && test "$GCC" = yes; then
9884 case $archive_cmds in
9885 *'~'*)
9886 # FIXME: we may have to deal with multi-command sequences.
9888 '$CC '*)
9889 # Test whether the compiler implicitly links with -lc since on some
9890 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9891 # to ld, don't add -lc before -lgcc.
9892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9893 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9894 if ${lt_cv_archive_cmds_need_lc+:} false; then :
9895 $as_echo_n "(cached) " >&6
9896 else
9897 $RM conftest*
9898 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9900 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9901 (eval $ac_compile) 2>&5
9902 ac_status=$?
9903 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9904 test $ac_status = 0; } 2>conftest.err; then
9905 soname=conftest
9906 lib=conftest
9907 libobjs=conftest.$ac_objext
9908 deplibs=
9909 wl=$lt_prog_compiler_wl
9910 pic_flag=$lt_prog_compiler_pic
9911 compiler_flags=-v
9912 linker_flags=-v
9913 verstring=
9914 output_objdir=.
9915 libname=conftest
9916 lt_save_allow_undefined_flag=$allow_undefined_flag
9917 allow_undefined_flag=
9918 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9919 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9920 ac_status=$?
9921 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9922 test $ac_status = 0; }
9923 then
9924 lt_cv_archive_cmds_need_lc=no
9925 else
9926 lt_cv_archive_cmds_need_lc=yes
9928 allow_undefined_flag=$lt_save_allow_undefined_flag
9929 else
9930 cat conftest.err 1>&5
9932 $RM conftest*
9935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9936 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9937 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9939 esac
9942 esac
10100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10101 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10103 if test "$GCC" = yes; then
10104 case $host_os in
10105 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10106 *) lt_awk_arg="/^libraries:/" ;;
10107 esac
10108 case $host_os in
10109 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10110 *) lt_sed_strip_eq="s,=/,/,g" ;;
10111 esac
10112 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10113 case $lt_search_path_spec in
10114 *\;*)
10115 # if the path contains ";" then we assume it to be the separator
10116 # otherwise default to the standard path separator (i.e. ":") - it is
10117 # assumed that no part of a normal pathname contains ";" but that should
10118 # okay in the real world where ";" in dirpaths is itself problematic.
10119 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10122 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10124 esac
10125 # Ok, now we have the path, separated by spaces, we can step through it
10126 # and add multilib dir if necessary.
10127 lt_tmp_lt_search_path_spec=
10128 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10129 for lt_sys_path in $lt_search_path_spec; do
10130 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10131 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10132 else
10133 test -d "$lt_sys_path" && \
10134 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10136 done
10137 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10138 BEGIN {RS=" "; FS="/|\n";} {
10139 lt_foo="";
10140 lt_count=0;
10141 for (lt_i = NF; lt_i > 0; lt_i--) {
10142 if ($lt_i != "" && $lt_i != ".") {
10143 if ($lt_i == "..") {
10144 lt_count++;
10145 } else {
10146 if (lt_count == 0) {
10147 lt_foo="/" $lt_i lt_foo;
10148 } else {
10149 lt_count--;
10154 if (lt_foo != "") { lt_freq[lt_foo]++; }
10155 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10157 # AWK program above erroneously prepends '/' to C:/dos/paths
10158 # for these hosts.
10159 case $host_os in
10160 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10161 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10162 esac
10163 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10164 else
10165 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10167 library_names_spec=
10168 libname_spec='lib$name'
10169 soname_spec=
10170 shrext_cmds=".so"
10171 postinstall_cmds=
10172 postuninstall_cmds=
10173 finish_cmds=
10174 finish_eval=
10175 shlibpath_var=
10176 shlibpath_overrides_runpath=unknown
10177 version_type=none
10178 dynamic_linker="$host_os ld.so"
10179 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10180 need_lib_prefix=unknown
10181 hardcode_into_libs=no
10183 # when you set need_version to no, make sure it does not cause -set_version
10184 # flags to be left without arguments
10185 need_version=unknown
10187 case $host_os in
10188 aix3*)
10189 version_type=linux
10190 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10191 shlibpath_var=LIBPATH
10193 # AIX 3 has no versioning support, so we append a major version to the name.
10194 soname_spec='${libname}${release}${shared_ext}$major'
10197 aix[4-9]*)
10198 version_type=linux
10199 need_lib_prefix=no
10200 need_version=no
10201 hardcode_into_libs=yes
10202 if test "$host_cpu" = ia64; then
10203 # AIX 5 supports IA64
10204 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10205 shlibpath_var=LD_LIBRARY_PATH
10206 else
10207 # With GCC up to 2.95.x, collect2 would create an import file
10208 # for dependence libraries. The import file would start with
10209 # the line `#! .'. This would cause the generated library to
10210 # depend on `.', always an invalid library. This was fixed in
10211 # development snapshots of GCC prior to 3.0.
10212 case $host_os in
10213 aix4 | aix4.[01] | aix4.[01].*)
10214 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10215 echo ' yes '
10216 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10218 else
10219 can_build_shared=no
10222 esac
10223 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10224 # soname into executable. Probably we can add versioning support to
10225 # collect2, so additional links can be useful in future.
10226 if test "$aix_use_runtimelinking" = yes; then
10227 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10228 # instead of lib<name>.a to let people know that these are not
10229 # typical AIX shared libraries.
10230 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10231 else
10232 # We preserve .a as extension for shared libraries through AIX4.2
10233 # and later when we are not doing run time linking.
10234 library_names_spec='${libname}${release}.a $libname.a'
10235 soname_spec='${libname}${release}${shared_ext}$major'
10237 shlibpath_var=LIBPATH
10241 amigaos*)
10242 case $host_cpu in
10243 powerpc)
10244 # Since July 2007 AmigaOS4 officially supports .so libraries.
10245 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10246 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10248 m68k)
10249 library_names_spec='$libname.ixlibrary $libname.a'
10250 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10251 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'
10253 esac
10256 beos*)
10257 library_names_spec='${libname}${shared_ext}'
10258 dynamic_linker="$host_os ld.so"
10259 shlibpath_var=LIBRARY_PATH
10262 bsdi[45]*)
10263 version_type=linux
10264 need_version=no
10265 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10266 soname_spec='${libname}${release}${shared_ext}$major'
10267 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10268 shlibpath_var=LD_LIBRARY_PATH
10269 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10270 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10271 # the default ld.so.conf also contains /usr/contrib/lib and
10272 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10273 # libtool to hard-code these into programs
10276 cygwin* | mingw* | pw32* | cegcc*)
10277 version_type=windows
10278 shrext_cmds=".dll"
10279 need_version=no
10280 need_lib_prefix=no
10282 case $GCC,$host_os in
10283 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10284 library_names_spec='$libname.dll.a'
10285 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10286 postinstall_cmds='base_file=`basename \${file}`~
10287 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10288 dldir=$destdir/`dirname \$dlpath`~
10289 test -d \$dldir || mkdir -p \$dldir~
10290 $install_prog $dir/$dlname \$dldir/$dlname~
10291 chmod a+x \$dldir/$dlname~
10292 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10293 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10295 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10296 dlpath=$dir/\$dldll~
10297 $RM \$dlpath'
10298 shlibpath_overrides_runpath=yes
10300 case $host_os in
10301 cygwin*)
10302 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10303 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10305 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10307 mingw* | cegcc*)
10308 # MinGW DLLs use traditional 'lib' prefix
10309 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10311 pw32*)
10312 # pw32 DLLs use 'pw' prefix rather than 'lib'
10313 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10315 esac
10319 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10321 esac
10322 dynamic_linker='Win32 ld.exe'
10323 # FIXME: first we should search . and the directory the executable is in
10324 shlibpath_var=PATH
10327 darwin* | rhapsody*)
10328 dynamic_linker="$host_os dyld"
10329 version_type=darwin
10330 need_lib_prefix=no
10331 need_version=no
10332 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10333 soname_spec='${libname}${release}${major}$shared_ext'
10334 shlibpath_overrides_runpath=yes
10335 shlibpath_var=DYLD_LIBRARY_PATH
10336 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10338 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10339 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10342 dgux*)
10343 version_type=linux
10344 need_lib_prefix=no
10345 need_version=no
10346 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10347 soname_spec='${libname}${release}${shared_ext}$major'
10348 shlibpath_var=LD_LIBRARY_PATH
10351 freebsd* | dragonfly*)
10352 # DragonFly does not have aout. When/if they implement a new
10353 # versioning mechanism, adjust this.
10354 if test -x /usr/bin/objformat; then
10355 objformat=`/usr/bin/objformat`
10356 else
10357 case $host_os in
10358 freebsd[23].*) objformat=aout ;;
10359 *) objformat=elf ;;
10360 esac
10362 version_type=freebsd-$objformat
10363 case $version_type in
10364 freebsd-elf*)
10365 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10366 need_version=no
10367 need_lib_prefix=no
10369 freebsd-*)
10370 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10371 need_version=yes
10373 esac
10374 shlibpath_var=LD_LIBRARY_PATH
10375 case $host_os in
10376 freebsd2.*)
10377 shlibpath_overrides_runpath=yes
10379 freebsd3.[01]* | freebsdelf3.[01]*)
10380 shlibpath_overrides_runpath=yes
10381 hardcode_into_libs=yes
10383 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10384 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10385 shlibpath_overrides_runpath=no
10386 hardcode_into_libs=yes
10388 *) # from 4.6 on, and DragonFly
10389 shlibpath_overrides_runpath=yes
10390 hardcode_into_libs=yes
10392 esac
10395 gnu*)
10396 version_type=linux
10397 need_lib_prefix=no
10398 need_version=no
10399 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10400 soname_spec='${libname}${release}${shared_ext}$major'
10401 shlibpath_var=LD_LIBRARY_PATH
10402 hardcode_into_libs=yes
10405 haiku*)
10406 version_type=linux
10407 need_lib_prefix=no
10408 need_version=no
10409 dynamic_linker="$host_os runtime_loader"
10410 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10411 soname_spec='${libname}${release}${shared_ext}$major'
10412 shlibpath_var=LIBRARY_PATH
10413 shlibpath_overrides_runpath=yes
10414 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10415 hardcode_into_libs=yes
10418 hpux9* | hpux10* | hpux11*)
10419 # Give a soname corresponding to the major version so that dld.sl refuses to
10420 # link against other versions.
10421 version_type=sunos
10422 need_lib_prefix=no
10423 need_version=no
10424 case $host_cpu in
10425 ia64*)
10426 shrext_cmds='.so'
10427 hardcode_into_libs=yes
10428 dynamic_linker="$host_os dld.so"
10429 shlibpath_var=LD_LIBRARY_PATH
10430 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10431 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10432 soname_spec='${libname}${release}${shared_ext}$major'
10433 if test "X$HPUX_IA64_MODE" = X32; then
10434 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10435 else
10436 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10438 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10440 hppa*64*)
10441 shrext_cmds='.sl'
10442 hardcode_into_libs=yes
10443 dynamic_linker="$host_os dld.sl"
10444 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10445 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10446 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10447 soname_spec='${libname}${release}${shared_ext}$major'
10448 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10449 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10452 shrext_cmds='.sl'
10453 dynamic_linker="$host_os dld.sl"
10454 shlibpath_var=SHLIB_PATH
10455 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10456 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10457 soname_spec='${libname}${release}${shared_ext}$major'
10459 esac
10460 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10461 postinstall_cmds='chmod 555 $lib'
10462 # or fails outright, so override atomically:
10463 install_override_mode=555
10466 interix[3-9]*)
10467 version_type=linux
10468 need_lib_prefix=no
10469 need_version=no
10470 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10471 soname_spec='${libname}${release}${shared_ext}$major'
10472 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10473 shlibpath_var=LD_LIBRARY_PATH
10474 shlibpath_overrides_runpath=no
10475 hardcode_into_libs=yes
10478 irix5* | irix6* | nonstopux*)
10479 case $host_os in
10480 nonstopux*) version_type=nonstopux ;;
10482 if test "$lt_cv_prog_gnu_ld" = yes; then
10483 version_type=linux
10484 else
10485 version_type=irix
10486 fi ;;
10487 esac
10488 need_lib_prefix=no
10489 need_version=no
10490 soname_spec='${libname}${release}${shared_ext}$major'
10491 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10492 case $host_os in
10493 irix5* | nonstopux*)
10494 libsuff= shlibsuff=
10497 case $LD in # libtool.m4 will add one of these switches to LD
10498 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10499 libsuff= shlibsuff= libmagic=32-bit;;
10500 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10501 libsuff=32 shlibsuff=N32 libmagic=N32;;
10502 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10503 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10504 *) libsuff= shlibsuff= libmagic=never-match;;
10505 esac
10507 esac
10508 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10509 shlibpath_overrides_runpath=no
10510 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10511 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10512 hardcode_into_libs=yes
10515 # No shared lib support for Linux oldld, aout, or coff.
10516 linux*oldld* | linux*aout* | linux*coff*)
10517 dynamic_linker=no
10520 # This must be Linux ELF.
10522 # uclinux* changes (here and below) have been submitted to the libtool
10523 # project, but have not yet been accepted: they are GCC-local changes
10524 # for the time being. (See
10525 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
10526 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
10527 version_type=linux
10528 need_lib_prefix=no
10529 need_version=no
10530 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10531 soname_spec='${libname}${release}${shared_ext}$major'
10532 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10533 shlibpath_var=LD_LIBRARY_PATH
10534 shlibpath_overrides_runpath=no
10536 # Some binutils ld are patched to set DT_RUNPATH
10537 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10538 $as_echo_n "(cached) " >&6
10539 else
10540 lt_cv_shlibpath_overrides_runpath=no
10541 save_LDFLAGS=$LDFLAGS
10542 save_libdir=$libdir
10543 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10544 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10546 /* end confdefs.h. */
10549 main ()
10553 return 0;
10555 _ACEOF
10556 if ac_fn_c_try_link "$LINENO"; then :
10557 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10558 lt_cv_shlibpath_overrides_runpath=yes
10561 rm -f core conftest.err conftest.$ac_objext \
10562 conftest$ac_exeext conftest.$ac_ext
10563 LDFLAGS=$save_LDFLAGS
10564 libdir=$save_libdir
10568 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10570 # This implies no fast_install, which is unacceptable.
10571 # Some rework will be needed to allow for fast_install
10572 # before this can be enabled.
10573 hardcode_into_libs=yes
10575 # Append ld.so.conf contents to the search path
10576 if test -f /etc/ld.so.conf; then
10577 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' ' '`
10578 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10581 # We used to test for /lib/ld.so.1 and disable shared libraries on
10582 # powerpc, because MkLinux only supported shared libraries with the
10583 # GNU dynamic linker. Since this was broken with cross compilers,
10584 # most powerpc-linux boxes support dynamic linking these days and
10585 # people can always --disable-shared, the test was removed, and we
10586 # assume the GNU/Linux dynamic linker is in use.
10587 dynamic_linker='GNU/Linux ld.so'
10590 netbsd*)
10591 version_type=sunos
10592 need_lib_prefix=no
10593 need_version=no
10594 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10595 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10596 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10597 dynamic_linker='NetBSD (a.out) ld.so'
10598 else
10599 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10600 soname_spec='${libname}${release}${shared_ext}$major'
10601 dynamic_linker='NetBSD ld.elf_so'
10603 shlibpath_var=LD_LIBRARY_PATH
10604 shlibpath_overrides_runpath=yes
10605 hardcode_into_libs=yes
10608 newsos6)
10609 version_type=linux
10610 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10611 shlibpath_var=LD_LIBRARY_PATH
10612 shlibpath_overrides_runpath=yes
10615 *nto* | *qnx*)
10616 version_type=qnx
10617 need_lib_prefix=no
10618 need_version=no
10619 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10620 soname_spec='${libname}${release}${shared_ext}$major'
10621 shlibpath_var=LD_LIBRARY_PATH
10622 shlibpath_overrides_runpath=no
10623 hardcode_into_libs=yes
10624 dynamic_linker='ldqnx.so'
10627 openbsd*)
10628 version_type=sunos
10629 sys_lib_dlsearch_path_spec="/usr/lib"
10630 need_lib_prefix=no
10631 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10632 case $host_os in
10633 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10634 *) need_version=no ;;
10635 esac
10636 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10637 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10638 shlibpath_var=LD_LIBRARY_PATH
10639 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10640 case $host_os in
10641 openbsd2.[89] | openbsd2.[89].*)
10642 shlibpath_overrides_runpath=no
10645 shlibpath_overrides_runpath=yes
10647 esac
10648 else
10649 shlibpath_overrides_runpath=yes
10653 os2*)
10654 libname_spec='$name'
10655 shrext_cmds=".dll"
10656 need_lib_prefix=no
10657 library_names_spec='$libname${shared_ext} $libname.a'
10658 dynamic_linker='OS/2 ld.exe'
10659 shlibpath_var=LIBPATH
10662 osf3* | osf4* | osf5*)
10663 version_type=osf
10664 need_lib_prefix=no
10665 need_version=no
10666 soname_spec='${libname}${release}${shared_ext}$major'
10667 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10668 shlibpath_var=LD_LIBRARY_PATH
10669 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10670 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10673 rdos*)
10674 dynamic_linker=no
10677 solaris*)
10678 version_type=linux
10679 need_lib_prefix=no
10680 need_version=no
10681 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10682 soname_spec='${libname}${release}${shared_ext}$major'
10683 shlibpath_var=LD_LIBRARY_PATH
10684 shlibpath_overrides_runpath=yes
10685 hardcode_into_libs=yes
10686 # ldd complains unless libraries are executable
10687 postinstall_cmds='chmod +x $lib'
10690 sunos4*)
10691 version_type=sunos
10692 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10693 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10694 shlibpath_var=LD_LIBRARY_PATH
10695 shlibpath_overrides_runpath=yes
10696 if test "$with_gnu_ld" = yes; then
10697 need_lib_prefix=no
10699 need_version=yes
10702 sysv4 | sysv4.3*)
10703 version_type=linux
10704 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10705 soname_spec='${libname}${release}${shared_ext}$major'
10706 shlibpath_var=LD_LIBRARY_PATH
10707 case $host_vendor in
10708 sni)
10709 shlibpath_overrides_runpath=no
10710 need_lib_prefix=no
10711 runpath_var=LD_RUN_PATH
10713 siemens)
10714 need_lib_prefix=no
10716 motorola)
10717 need_lib_prefix=no
10718 need_version=no
10719 shlibpath_overrides_runpath=no
10720 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10722 esac
10725 sysv4*MP*)
10726 if test -d /usr/nec ;then
10727 version_type=linux
10728 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10729 soname_spec='$libname${shared_ext}.$major'
10730 shlibpath_var=LD_LIBRARY_PATH
10734 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10735 version_type=freebsd-elf
10736 need_lib_prefix=no
10737 need_version=no
10738 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10739 soname_spec='${libname}${release}${shared_ext}$major'
10740 shlibpath_var=LD_LIBRARY_PATH
10741 shlibpath_overrides_runpath=yes
10742 hardcode_into_libs=yes
10743 if test "$with_gnu_ld" = yes; then
10744 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10745 else
10746 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10747 case $host_os in
10748 sco3.2v5*)
10749 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10751 esac
10753 sys_lib_dlsearch_path_spec='/usr/lib'
10756 tpf*)
10757 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10758 version_type=linux
10759 need_lib_prefix=no
10760 need_version=no
10761 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10762 shlibpath_var=LD_LIBRARY_PATH
10763 shlibpath_overrides_runpath=no
10764 hardcode_into_libs=yes
10767 uts4*)
10768 version_type=linux
10769 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10770 soname_spec='${libname}${release}${shared_ext}$major'
10771 shlibpath_var=LD_LIBRARY_PATH
10775 dynamic_linker=no
10777 esac
10778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10779 $as_echo "$dynamic_linker" >&6; }
10780 test "$dynamic_linker" = no && can_build_shared=no
10782 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10783 if test "$GCC" = yes; then
10784 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10787 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10788 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10790 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10791 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10886 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10887 hardcode_action=
10888 if test -n "$hardcode_libdir_flag_spec" ||
10889 test -n "$runpath_var" ||
10890 test "X$hardcode_automatic" = "Xyes" ; then
10892 # We can hardcode non-existent directories.
10893 if test "$hardcode_direct" != no &&
10894 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10895 # have to relink, otherwise we might link with an installed library
10896 # when we should be linking with a yet-to-be-installed one
10897 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10898 test "$hardcode_minus_L" != no; then
10899 # Linking always hardcodes the temporary library directory.
10900 hardcode_action=relink
10901 else
10902 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10903 hardcode_action=immediate
10905 else
10906 # We cannot hardcode anything, or else we can only hardcode existing
10907 # directories.
10908 hardcode_action=unsupported
10910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10911 $as_echo "$hardcode_action" >&6; }
10913 if test "$hardcode_action" = relink ||
10914 test "$inherit_rpath" = yes; then
10915 # Fast installation is not supported
10916 enable_fast_install=no
10917 elif test "$shlibpath_overrides_runpath" = yes ||
10918 test "$enable_shared" = no; then
10919 # Fast installation is not necessary
10920 enable_fast_install=needless
10928 if test "x$enable_dlopen" != xyes; then
10929 enable_dlopen=unknown
10930 enable_dlopen_self=unknown
10931 enable_dlopen_self_static=unknown
10932 else
10933 lt_cv_dlopen=no
10934 lt_cv_dlopen_libs=
10936 case $host_os in
10937 beos*)
10938 lt_cv_dlopen="load_add_on"
10939 lt_cv_dlopen_libs=
10940 lt_cv_dlopen_self=yes
10943 mingw* | pw32* | cegcc*)
10944 lt_cv_dlopen="LoadLibrary"
10945 lt_cv_dlopen_libs=
10948 cygwin*)
10949 lt_cv_dlopen="dlopen"
10950 lt_cv_dlopen_libs=
10953 darwin*)
10954 # if libdl is installed we need to link against it
10955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10956 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10957 if ${ac_cv_lib_dl_dlopen+:} false; then :
10958 $as_echo_n "(cached) " >&6
10959 else
10960 ac_check_lib_save_LIBS=$LIBS
10961 LIBS="-ldl $LIBS"
10962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10963 /* end confdefs.h. */
10965 /* Override any GCC internal prototype to avoid an error.
10966 Use char because int might match the return type of a GCC
10967 builtin and then its argument prototype would still apply. */
10968 #ifdef __cplusplus
10969 extern "C"
10970 #endif
10971 char dlopen ();
10973 main ()
10975 return dlopen ();
10977 return 0;
10979 _ACEOF
10980 if ac_fn_c_try_link "$LINENO"; then :
10981 ac_cv_lib_dl_dlopen=yes
10982 else
10983 ac_cv_lib_dl_dlopen=no
10985 rm -f core conftest.err conftest.$ac_objext \
10986 conftest$ac_exeext conftest.$ac_ext
10987 LIBS=$ac_check_lib_save_LIBS
10989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10990 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10991 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10992 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10993 else
10995 lt_cv_dlopen="dyld"
10996 lt_cv_dlopen_libs=
10997 lt_cv_dlopen_self=yes
11004 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11005 if test "x$ac_cv_func_shl_load" = xyes; then :
11006 lt_cv_dlopen="shl_load"
11007 else
11008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11009 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11010 if ${ac_cv_lib_dld_shl_load+:} false; then :
11011 $as_echo_n "(cached) " >&6
11012 else
11013 ac_check_lib_save_LIBS=$LIBS
11014 LIBS="-ldld $LIBS"
11015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11016 /* end confdefs.h. */
11018 /* Override any GCC internal prototype to avoid an error.
11019 Use char because int might match the return type of a GCC
11020 builtin and then its argument prototype would still apply. */
11021 #ifdef __cplusplus
11022 extern "C"
11023 #endif
11024 char shl_load ();
11026 main ()
11028 return shl_load ();
11030 return 0;
11032 _ACEOF
11033 if ac_fn_c_try_link "$LINENO"; then :
11034 ac_cv_lib_dld_shl_load=yes
11035 else
11036 ac_cv_lib_dld_shl_load=no
11038 rm -f core conftest.err conftest.$ac_objext \
11039 conftest$ac_exeext conftest.$ac_ext
11040 LIBS=$ac_check_lib_save_LIBS
11042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11043 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11044 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11045 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11046 else
11047 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11048 if test "x$ac_cv_func_dlopen" = xyes; then :
11049 lt_cv_dlopen="dlopen"
11050 else
11051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11052 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11053 if ${ac_cv_lib_dl_dlopen+:} false; then :
11054 $as_echo_n "(cached) " >&6
11055 else
11056 ac_check_lib_save_LIBS=$LIBS
11057 LIBS="-ldl $LIBS"
11058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11059 /* end confdefs.h. */
11061 /* Override any GCC internal prototype to avoid an error.
11062 Use char because int might match the return type of a GCC
11063 builtin and then its argument prototype would still apply. */
11064 #ifdef __cplusplus
11065 extern "C"
11066 #endif
11067 char dlopen ();
11069 main ()
11071 return dlopen ();
11073 return 0;
11075 _ACEOF
11076 if ac_fn_c_try_link "$LINENO"; then :
11077 ac_cv_lib_dl_dlopen=yes
11078 else
11079 ac_cv_lib_dl_dlopen=no
11081 rm -f core conftest.err conftest.$ac_objext \
11082 conftest$ac_exeext conftest.$ac_ext
11083 LIBS=$ac_check_lib_save_LIBS
11085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11086 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11087 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11088 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11089 else
11090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11091 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11092 if ${ac_cv_lib_svld_dlopen+:} false; then :
11093 $as_echo_n "(cached) " >&6
11094 else
11095 ac_check_lib_save_LIBS=$LIBS
11096 LIBS="-lsvld $LIBS"
11097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11098 /* end confdefs.h. */
11100 /* Override any GCC internal prototype to avoid an error.
11101 Use char because int might match the return type of a GCC
11102 builtin and then its argument prototype would still apply. */
11103 #ifdef __cplusplus
11104 extern "C"
11105 #endif
11106 char dlopen ();
11108 main ()
11110 return dlopen ();
11112 return 0;
11114 _ACEOF
11115 if ac_fn_c_try_link "$LINENO"; then :
11116 ac_cv_lib_svld_dlopen=yes
11117 else
11118 ac_cv_lib_svld_dlopen=no
11120 rm -f core conftest.err conftest.$ac_objext \
11121 conftest$ac_exeext conftest.$ac_ext
11122 LIBS=$ac_check_lib_save_LIBS
11124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11125 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11126 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11127 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11128 else
11129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11130 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11131 if ${ac_cv_lib_dld_dld_link+:} false; then :
11132 $as_echo_n "(cached) " >&6
11133 else
11134 ac_check_lib_save_LIBS=$LIBS
11135 LIBS="-ldld $LIBS"
11136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11137 /* end confdefs.h. */
11139 /* Override any GCC internal prototype to avoid an error.
11140 Use char because int might match the return type of a GCC
11141 builtin and then its argument prototype would still apply. */
11142 #ifdef __cplusplus
11143 extern "C"
11144 #endif
11145 char dld_link ();
11147 main ()
11149 return dld_link ();
11151 return 0;
11153 _ACEOF
11154 if ac_fn_c_try_link "$LINENO"; then :
11155 ac_cv_lib_dld_dld_link=yes
11156 else
11157 ac_cv_lib_dld_dld_link=no
11159 rm -f core conftest.err conftest.$ac_objext \
11160 conftest$ac_exeext conftest.$ac_ext
11161 LIBS=$ac_check_lib_save_LIBS
11163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11164 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11165 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11166 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11185 esac
11187 if test "x$lt_cv_dlopen" != xno; then
11188 enable_dlopen=yes
11189 else
11190 enable_dlopen=no
11193 case $lt_cv_dlopen in
11194 dlopen)
11195 save_CPPFLAGS="$CPPFLAGS"
11196 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11198 save_LDFLAGS="$LDFLAGS"
11199 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11201 save_LIBS="$LIBS"
11202 LIBS="$lt_cv_dlopen_libs $LIBS"
11204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11205 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11206 if ${lt_cv_dlopen_self+:} false; then :
11207 $as_echo_n "(cached) " >&6
11208 else
11209 if test "$cross_compiling" = yes; then :
11210 lt_cv_dlopen_self=cross
11211 else
11212 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11213 lt_status=$lt_dlunknown
11214 cat > conftest.$ac_ext <<_LT_EOF
11215 #line 11215 "configure"
11216 #include "confdefs.h"
11218 #if HAVE_DLFCN_H
11219 #include <dlfcn.h>
11220 #endif
11222 #include <stdio.h>
11224 #ifdef RTLD_GLOBAL
11225 # define LT_DLGLOBAL RTLD_GLOBAL
11226 #else
11227 # ifdef DL_GLOBAL
11228 # define LT_DLGLOBAL DL_GLOBAL
11229 # else
11230 # define LT_DLGLOBAL 0
11231 # endif
11232 #endif
11234 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11235 find out it does not work in some platform. */
11236 #ifndef LT_DLLAZY_OR_NOW
11237 # ifdef RTLD_LAZY
11238 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11239 # else
11240 # ifdef DL_LAZY
11241 # define LT_DLLAZY_OR_NOW DL_LAZY
11242 # else
11243 # ifdef RTLD_NOW
11244 # define LT_DLLAZY_OR_NOW RTLD_NOW
11245 # else
11246 # ifdef DL_NOW
11247 # define LT_DLLAZY_OR_NOW DL_NOW
11248 # else
11249 # define LT_DLLAZY_OR_NOW 0
11250 # endif
11251 # endif
11252 # endif
11253 # endif
11254 #endif
11256 /* When -fvisbility=hidden is used, assume the code has been annotated
11257 correspondingly for the symbols needed. */
11258 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11259 void fnord () __attribute__((visibility("default")));
11260 #endif
11262 void fnord () { int i=42; }
11263 int main ()
11265 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11266 int status = $lt_dlunknown;
11268 if (self)
11270 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11271 else
11273 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11274 else puts (dlerror ());
11276 /* dlclose (self); */
11278 else
11279 puts (dlerror ());
11281 return status;
11283 _LT_EOF
11284 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11285 (eval $ac_link) 2>&5
11286 ac_status=$?
11287 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11288 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11289 (./conftest; exit; ) >&5 2>/dev/null
11290 lt_status=$?
11291 case x$lt_status in
11292 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11293 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11294 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11295 esac
11296 else :
11297 # compilation failed
11298 lt_cv_dlopen_self=no
11301 rm -fr conftest*
11305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11306 $as_echo "$lt_cv_dlopen_self" >&6; }
11308 if test "x$lt_cv_dlopen_self" = xyes; then
11309 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11311 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11312 if ${lt_cv_dlopen_self_static+:} false; then :
11313 $as_echo_n "(cached) " >&6
11314 else
11315 if test "$cross_compiling" = yes; then :
11316 lt_cv_dlopen_self_static=cross
11317 else
11318 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11319 lt_status=$lt_dlunknown
11320 cat > conftest.$ac_ext <<_LT_EOF
11321 #line 11321 "configure"
11322 #include "confdefs.h"
11324 #if HAVE_DLFCN_H
11325 #include <dlfcn.h>
11326 #endif
11328 #include <stdio.h>
11330 #ifdef RTLD_GLOBAL
11331 # define LT_DLGLOBAL RTLD_GLOBAL
11332 #else
11333 # ifdef DL_GLOBAL
11334 # define LT_DLGLOBAL DL_GLOBAL
11335 # else
11336 # define LT_DLGLOBAL 0
11337 # endif
11338 #endif
11340 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11341 find out it does not work in some platform. */
11342 #ifndef LT_DLLAZY_OR_NOW
11343 # ifdef RTLD_LAZY
11344 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11345 # else
11346 # ifdef DL_LAZY
11347 # define LT_DLLAZY_OR_NOW DL_LAZY
11348 # else
11349 # ifdef RTLD_NOW
11350 # define LT_DLLAZY_OR_NOW RTLD_NOW
11351 # else
11352 # ifdef DL_NOW
11353 # define LT_DLLAZY_OR_NOW DL_NOW
11354 # else
11355 # define LT_DLLAZY_OR_NOW 0
11356 # endif
11357 # endif
11358 # endif
11359 # endif
11360 #endif
11362 /* When -fvisbility=hidden is used, assume the code has been annotated
11363 correspondingly for the symbols needed. */
11364 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11365 void fnord () __attribute__((visibility("default")));
11366 #endif
11368 void fnord () { int i=42; }
11369 int main ()
11371 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11372 int status = $lt_dlunknown;
11374 if (self)
11376 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11377 else
11379 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11380 else puts (dlerror ());
11382 /* dlclose (self); */
11384 else
11385 puts (dlerror ());
11387 return status;
11389 _LT_EOF
11390 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11391 (eval $ac_link) 2>&5
11392 ac_status=$?
11393 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11394 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11395 (./conftest; exit; ) >&5 2>/dev/null
11396 lt_status=$?
11397 case x$lt_status in
11398 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11399 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11400 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11401 esac
11402 else :
11403 # compilation failed
11404 lt_cv_dlopen_self_static=no
11407 rm -fr conftest*
11411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11412 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11415 CPPFLAGS="$save_CPPFLAGS"
11416 LDFLAGS="$save_LDFLAGS"
11417 LIBS="$save_LIBS"
11419 esac
11421 case $lt_cv_dlopen_self in
11422 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11423 *) enable_dlopen_self=unknown ;;
11424 esac
11426 case $lt_cv_dlopen_self_static in
11427 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11428 *) enable_dlopen_self_static=unknown ;;
11429 esac
11448 striplib=
11449 old_striplib=
11450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11451 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11452 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11453 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11454 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11456 $as_echo "yes" >&6; }
11457 else
11458 # FIXME - insert some real tests, host_os isn't really good enough
11459 case $host_os in
11460 darwin*)
11461 if test -n "$STRIP" ; then
11462 striplib="$STRIP -x"
11463 old_striplib="$STRIP -S"
11464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11465 $as_echo "yes" >&6; }
11466 else
11467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11468 $as_echo "no" >&6; }
11472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11473 $as_echo "no" >&6; }
11475 esac
11489 # Report which library types will actually be built
11490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11491 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11493 $as_echo "$can_build_shared" >&6; }
11495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11496 $as_echo_n "checking whether to build shared libraries... " >&6; }
11497 test "$can_build_shared" = "no" && enable_shared=no
11499 # On AIX, shared libraries and static libraries use the same namespace, and
11500 # are all built from PIC.
11501 case $host_os in
11502 aix3*)
11503 test "$enable_shared" = yes && enable_static=no
11504 if test -n "$RANLIB"; then
11505 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11506 postinstall_cmds='$RANLIB $lib'
11510 aix[4-9]*)
11511 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11512 test "$enable_shared" = yes && enable_static=no
11515 esac
11516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11517 $as_echo "$enable_shared" >&6; }
11519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11520 $as_echo_n "checking whether to build static libraries... " >&6; }
11521 # Make sure either enable_shared or enable_static is yes.
11522 test "$enable_shared" = yes || enable_static=yes
11523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11524 $as_echo "$enable_static" >&6; }
11530 ac_ext=c
11531 ac_cpp='$CPP $CPPFLAGS'
11532 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11533 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11534 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11536 CC="$lt_save_CC"
11538 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11539 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11540 (test "X$CXX" != "Xg++"))) ; then
11541 ac_ext=cpp
11542 ac_cpp='$CXXCPP $CPPFLAGS'
11543 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11544 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11545 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
11547 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
11548 if test -z "$CXXCPP"; then
11549 if ${ac_cv_prog_CXXCPP+:} false; then :
11550 $as_echo_n "(cached) " >&6
11551 else
11552 # Double quotes because CXXCPP needs to be expanded
11553 for CXXCPP in "$CXX -E" "/lib/cpp"
11555 ac_preproc_ok=false
11556 for ac_cxx_preproc_warn_flag in '' yes
11558 # Use a header file that comes with gcc, so configuring glibc
11559 # with a fresh cross-compiler works.
11560 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11561 # <limits.h> exists even on freestanding compilers.
11562 # On the NeXT, cc -E runs the code through the compiler's parser,
11563 # not just through cpp. "Syntax error" is here to catch this case.
11564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11565 /* end confdefs.h. */
11566 #ifdef __STDC__
11567 # include <limits.h>
11568 #else
11569 # include <assert.h>
11570 #endif
11571 Syntax error
11572 _ACEOF
11573 if ac_fn_cxx_try_cpp "$LINENO"; then :
11575 else
11576 # Broken: fails on valid input.
11577 continue
11579 rm -f conftest.err conftest.i conftest.$ac_ext
11581 # OK, works on sane cases. Now check whether nonexistent headers
11582 # can be detected and how.
11583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11584 /* end confdefs.h. */
11585 #include <ac_nonexistent.h>
11586 _ACEOF
11587 if ac_fn_cxx_try_cpp "$LINENO"; then :
11588 # Broken: success on invalid input.
11589 continue
11590 else
11591 # Passes both tests.
11592 ac_preproc_ok=:
11593 break
11595 rm -f conftest.err conftest.i conftest.$ac_ext
11597 done
11598 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11599 rm -f conftest.i conftest.err conftest.$ac_ext
11600 if $ac_preproc_ok; then :
11601 break
11604 done
11605 ac_cv_prog_CXXCPP=$CXXCPP
11608 CXXCPP=$ac_cv_prog_CXXCPP
11609 else
11610 ac_cv_prog_CXXCPP=$CXXCPP
11612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
11613 $as_echo "$CXXCPP" >&6; }
11614 ac_preproc_ok=false
11615 for ac_cxx_preproc_warn_flag in '' yes
11617 # Use a header file that comes with gcc, so configuring glibc
11618 # with a fresh cross-compiler works.
11619 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11620 # <limits.h> exists even on freestanding compilers.
11621 # On the NeXT, cc -E runs the code through the compiler's parser,
11622 # not just through cpp. "Syntax error" is here to catch this case.
11623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11624 /* end confdefs.h. */
11625 #ifdef __STDC__
11626 # include <limits.h>
11627 #else
11628 # include <assert.h>
11629 #endif
11630 Syntax error
11631 _ACEOF
11632 if ac_fn_cxx_try_cpp "$LINENO"; then :
11634 else
11635 # Broken: fails on valid input.
11636 continue
11638 rm -f conftest.err conftest.i conftest.$ac_ext
11640 # OK, works on sane cases. Now check whether nonexistent headers
11641 # can be detected and how.
11642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11643 /* end confdefs.h. */
11644 #include <ac_nonexistent.h>
11645 _ACEOF
11646 if ac_fn_cxx_try_cpp "$LINENO"; then :
11647 # Broken: success on invalid input.
11648 continue
11649 else
11650 # Passes both tests.
11651 ac_preproc_ok=:
11652 break
11654 rm -f conftest.err conftest.i conftest.$ac_ext
11656 done
11657 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11658 rm -f conftest.i conftest.err conftest.$ac_ext
11659 if $ac_preproc_ok; then :
11661 else
11662 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11663 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11664 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
11665 See \`config.log' for more details" "$LINENO" 5; }
11668 ac_ext=c
11669 ac_cpp='$CPP $CPPFLAGS'
11670 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11671 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11672 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11674 else
11675 _lt_caught_CXX_error=yes
11678 ac_ext=cpp
11679 ac_cpp='$CXXCPP $CPPFLAGS'
11680 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11681 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11682 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11684 archive_cmds_need_lc_CXX=no
11685 allow_undefined_flag_CXX=
11686 always_export_symbols_CXX=no
11687 archive_expsym_cmds_CXX=
11688 compiler_needs_object_CXX=no
11689 export_dynamic_flag_spec_CXX=
11690 hardcode_direct_CXX=no
11691 hardcode_direct_absolute_CXX=no
11692 hardcode_libdir_flag_spec_CXX=
11693 hardcode_libdir_flag_spec_ld_CXX=
11694 hardcode_libdir_separator_CXX=
11695 hardcode_minus_L_CXX=no
11696 hardcode_shlibpath_var_CXX=unsupported
11697 hardcode_automatic_CXX=no
11698 inherit_rpath_CXX=no
11699 module_cmds_CXX=
11700 module_expsym_cmds_CXX=
11701 link_all_deplibs_CXX=unknown
11702 old_archive_cmds_CXX=$old_archive_cmds
11703 reload_flag_CXX=$reload_flag
11704 reload_cmds_CXX=$reload_cmds
11705 no_undefined_flag_CXX=
11706 whole_archive_flag_spec_CXX=
11707 enable_shared_with_static_runtimes_CXX=no
11709 # Source file extension for C++ test sources.
11710 ac_ext=cpp
11712 # Object file extension for compiled C++ test sources.
11713 objext=o
11714 objext_CXX=$objext
11716 # No sense in running all these tests if we already determined that
11717 # the CXX compiler isn't working. Some variables (like enable_shared)
11718 # are currently assumed to apply to all compilers on this platform,
11719 # and will be corrupted by setting them based on a non-working compiler.
11720 if test "$_lt_caught_CXX_error" != yes; then
11721 # Code to be used in simple compile tests
11722 lt_simple_compile_test_code="int some_variable = 0;"
11724 # Code to be used in simple link tests
11725 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11727 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11734 # If no C compiler was specified, use CC.
11735 LTCC=${LTCC-"$CC"}
11737 # If no C compiler flags were specified, use CFLAGS.
11738 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11740 # Allow CC to be a program name with arguments.
11741 compiler=$CC
11744 # save warnings/boilerplate of simple test code
11745 ac_outfile=conftest.$ac_objext
11746 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11747 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11748 _lt_compiler_boilerplate=`cat conftest.err`
11749 $RM conftest*
11751 ac_outfile=conftest.$ac_objext
11752 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11753 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11754 _lt_linker_boilerplate=`cat conftest.err`
11755 $RM -r conftest*
11758 # Allow CC to be a program name with arguments.
11759 lt_save_CC=$CC
11760 lt_save_LD=$LD
11761 lt_save_GCC=$GCC
11762 GCC=$GXX
11763 lt_save_with_gnu_ld=$with_gnu_ld
11764 lt_save_path_LD=$lt_cv_path_LD
11765 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11766 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11767 else
11768 $as_unset lt_cv_prog_gnu_ld
11770 if test -n "${lt_cv_path_LDCXX+set}"; then
11771 lt_cv_path_LD=$lt_cv_path_LDCXX
11772 else
11773 $as_unset lt_cv_path_LD
11775 test -z "${LDCXX+set}" || LD=$LDCXX
11776 CC=${CXX-"c++"}
11777 compiler=$CC
11778 compiler_CXX=$CC
11779 for cc_temp in $compiler""; do
11780 case $cc_temp in
11781 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11782 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11783 \-*) ;;
11784 *) break;;
11785 esac
11786 done
11787 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
11790 if test -n "$compiler"; then
11791 # We don't want -fno-exception when compiling C++ code, so set the
11792 # no_builtin_flag separately
11793 if test "$GXX" = yes; then
11794 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11795 else
11796 lt_prog_compiler_no_builtin_flag_CXX=
11799 if test "$GXX" = yes; then
11800 # Set up default GNU C++ configuration
11804 # Check whether --with-gnu-ld was given.
11805 if test "${with_gnu_ld+set}" = set; then :
11806 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11807 else
11808 with_gnu_ld=no
11811 ac_prog=ld
11812 if test "$GCC" = yes; then
11813 # Check if gcc -print-prog-name=ld gives a path.
11814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
11815 $as_echo_n "checking for ld used by $CC... " >&6; }
11816 case $host in
11817 *-*-mingw*)
11818 # gcc leaves a trailing carriage return which upsets mingw
11819 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11821 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11822 esac
11823 case $ac_prog in
11824 # Accept absolute paths.
11825 [\\/]* | ?:[\\/]*)
11826 re_direlt='/[^/][^/]*/\.\./'
11827 # Canonicalize the pathname of ld
11828 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
11829 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
11830 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
11831 done
11832 test -z "$LD" && LD="$ac_prog"
11835 # If it fails, then pretend we aren't using GCC.
11836 ac_prog=ld
11839 # If it is relative, then search for the first ld in PATH.
11840 with_gnu_ld=unknown
11842 esac
11843 elif test "$with_gnu_ld" = yes; then
11844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11845 $as_echo_n "checking for GNU ld... " >&6; }
11846 else
11847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11848 $as_echo_n "checking for non-GNU ld... " >&6; }
11850 if ${lt_cv_path_LD+:} false; then :
11851 $as_echo_n "(cached) " >&6
11852 else
11853 if test -z "$LD"; then
11854 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11855 for ac_dir in $PATH; do
11856 IFS="$lt_save_ifs"
11857 test -z "$ac_dir" && ac_dir=.
11858 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11859 lt_cv_path_LD="$ac_dir/$ac_prog"
11860 # Check to see if the program is GNU ld. I'd rather use --version,
11861 # but apparently some variants of GNU ld only accept -v.
11862 # Break only if it was the GNU/non-GNU ld that we prefer.
11863 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11864 *GNU* | *'with BFD'*)
11865 test "$with_gnu_ld" != no && break
11868 test "$with_gnu_ld" != yes && break
11870 esac
11872 done
11873 IFS="$lt_save_ifs"
11874 else
11875 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11879 LD="$lt_cv_path_LD"
11880 if test -n "$LD"; then
11881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11882 $as_echo "$LD" >&6; }
11883 else
11884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11885 $as_echo "no" >&6; }
11887 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
11888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11889 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11890 if ${lt_cv_prog_gnu_ld+:} false; then :
11891 $as_echo_n "(cached) " >&6
11892 else
11893 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11894 case `$LD -v 2>&1 </dev/null` in
11895 *GNU* | *'with BFD'*)
11896 lt_cv_prog_gnu_ld=yes
11899 lt_cv_prog_gnu_ld=no
11901 esac
11903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
11904 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
11905 with_gnu_ld=$lt_cv_prog_gnu_ld
11913 # Check if GNU C++ uses GNU ld as the underlying linker, since the
11914 # archiving commands below assume that GNU ld is being used.
11915 if test "$with_gnu_ld" = yes; then
11916 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11917 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'
11919 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11920 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11922 # If archive_cmds runs LD, not CC, wlarc should be empty
11923 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11924 # investigate it a little bit more. (MM)
11925 wlarc='${wl}'
11927 # ancient GNU ld didn't support --whole-archive et. al.
11928 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
11929 $GREP 'no-whole-archive' > /dev/null; then
11930 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11931 else
11932 whole_archive_flag_spec_CXX=
11934 else
11935 with_gnu_ld=no
11936 wlarc=
11938 # A generic and very simple default shared library creation
11939 # command for GNU C++ for the case where it uses the native
11940 # linker, instead of GNU ld. If possible, this setting should
11941 # overridden to take advantage of the native linker features on
11942 # the platform it is being used on.
11943 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11946 # Commands to make compiler produce verbose output that lists
11947 # what "hidden" libraries, object files and flags are used when
11948 # linking a shared library.
11949 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
11951 else
11952 GXX=no
11953 with_gnu_ld=no
11954 wlarc=
11957 # PORTME: fill in a description of your system's C++ link characteristics
11958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11959 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11960 ld_shlibs_CXX=yes
11961 case $host_os in
11962 aix3*)
11963 # FIXME: insert proper C++ library support
11964 ld_shlibs_CXX=no
11966 aix[4-9]*)
11967 if test "$host_cpu" = ia64; then
11968 # On IA64, the linker does run time linking by default, so we don't
11969 # have to do anything special.
11970 aix_use_runtimelinking=no
11971 exp_sym_flag='-Bexport'
11972 no_entry_flag=""
11973 else
11974 aix_use_runtimelinking=no
11976 # Test if we are trying to use run time linking or normal
11977 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11978 # need to do runtime linking.
11979 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11980 for ld_flag in $LDFLAGS; do
11981 case $ld_flag in
11982 *-brtl*)
11983 aix_use_runtimelinking=yes
11984 break
11986 esac
11987 done
11989 esac
11991 exp_sym_flag='-bexport'
11992 no_entry_flag='-bnoentry'
11995 # When large executables or shared objects are built, AIX ld can
11996 # have problems creating the table of contents. If linking a library
11997 # or program results in "error TOC overflow" add -mminimal-toc to
11998 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11999 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12001 archive_cmds_CXX=''
12002 hardcode_direct_CXX=yes
12003 hardcode_direct_absolute_CXX=yes
12004 hardcode_libdir_separator_CXX=':'
12005 link_all_deplibs_CXX=yes
12006 file_list_spec_CXX='${wl}-f,'
12008 if test "$GXX" = yes; then
12009 case $host_os in aix4.[012]|aix4.[012].*)
12010 # We only want to do this on AIX 4.2 and lower, the check
12011 # below for broken collect2 doesn't work under 4.3+
12012 collect2name=`${CC} -print-prog-name=collect2`
12013 if test -f "$collect2name" &&
12014 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12015 then
12016 # We have reworked collect2
12018 else
12019 # We have old collect2
12020 hardcode_direct_CXX=unsupported
12021 # It fails to find uninstalled libraries when the uninstalled
12022 # path is not listed in the libpath. Setting hardcode_minus_L
12023 # to unsupported forces relinking
12024 hardcode_minus_L_CXX=yes
12025 hardcode_libdir_flag_spec_CXX='-L$libdir'
12026 hardcode_libdir_separator_CXX=
12028 esac
12029 shared_flag='-shared'
12030 if test "$aix_use_runtimelinking" = yes; then
12031 shared_flag="$shared_flag "'${wl}-G'
12033 else
12034 # not using gcc
12035 if test "$host_cpu" = ia64; then
12036 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12037 # chokes on -Wl,-G. The following line is correct:
12038 shared_flag='-G'
12039 else
12040 if test "$aix_use_runtimelinking" = yes; then
12041 shared_flag='${wl}-G'
12042 else
12043 shared_flag='${wl}-bM:SRE'
12048 export_dynamic_flag_spec_CXX='${wl}-bexpall'
12049 # It seems that -bexpall does not export symbols beginning with
12050 # underscore (_), so it is better to generate a list of symbols to
12051 # export.
12052 always_export_symbols_CXX=yes
12053 if test "$aix_use_runtimelinking" = yes; then
12054 # Warning - without using the other runtime loading flags (-brtl),
12055 # -berok will link without error, but may produce a broken library.
12056 allow_undefined_flag_CXX='-berok'
12057 # Determine the default libpath from the value encoded in an empty
12058 # executable.
12059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12060 /* end confdefs.h. */
12063 main ()
12067 return 0;
12069 _ACEOF
12070 if ac_fn_cxx_try_link "$LINENO"; then :
12072 lt_aix_libpath_sed='
12073 /Import File Strings/,/^$/ {
12074 /^0/ {
12075 s/^0 *\(.*\)$/\1/
12079 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12080 # Check for a 64-bit object if we didn't find anything.
12081 if test -z "$aix_libpath"; then
12082 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12085 rm -f core conftest.err conftest.$ac_objext \
12086 conftest$ac_exeext conftest.$ac_ext
12087 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12089 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12091 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"
12092 else
12093 if test "$host_cpu" = ia64; then
12094 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12095 allow_undefined_flag_CXX="-z nodefs"
12096 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"
12097 else
12098 # Determine the default libpath from the value encoded in an
12099 # empty executable.
12100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12101 /* end confdefs.h. */
12104 main ()
12108 return 0;
12110 _ACEOF
12111 if ac_fn_cxx_try_link "$LINENO"; then :
12113 lt_aix_libpath_sed='
12114 /Import File Strings/,/^$/ {
12115 /^0/ {
12116 s/^0 *\(.*\)$/\1/
12120 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12121 # Check for a 64-bit object if we didn't find anything.
12122 if test -z "$aix_libpath"; then
12123 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12126 rm -f core conftest.err conftest.$ac_objext \
12127 conftest$ac_exeext conftest.$ac_ext
12128 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12130 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12131 # Warning - without using the other run time loading flags,
12132 # -berok will link without error, but may produce a broken library.
12133 no_undefined_flag_CXX=' ${wl}-bernotok'
12134 allow_undefined_flag_CXX=' ${wl}-berok'
12135 if test "$with_gnu_ld" = yes; then
12136 # We only use this code for GNU lds that support --whole-archive.
12137 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12138 else
12139 # Exported symbols can be pulled into shared objects from archives
12140 whole_archive_flag_spec_CXX='$convenience'
12142 archive_cmds_need_lc_CXX=yes
12143 # This is similar to how AIX traditionally builds its shared
12144 # libraries.
12145 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'
12150 beos*)
12151 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12152 allow_undefined_flag_CXX=unsupported
12153 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12154 # support --undefined. This deserves some investigation. FIXME
12155 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12156 else
12157 ld_shlibs_CXX=no
12161 chorus*)
12162 case $cc_basename in
12164 # FIXME: insert proper C++ library support
12165 ld_shlibs_CXX=no
12167 esac
12170 cygwin* | mingw* | pw32* | cegcc*)
12171 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12172 # as there is no search path for DLLs.
12173 hardcode_libdir_flag_spec_CXX='-L$libdir'
12174 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
12175 allow_undefined_flag_CXX=unsupported
12176 always_export_symbols_CXX=no
12177 enable_shared_with_static_runtimes_CXX=yes
12179 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12180 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'
12181 # If the export-symbols file already is a .def file (1st line
12182 # is EXPORTS), use it as is; otherwise, prepend...
12183 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12184 cp $export_symbols $output_objdir/$soname.def;
12185 else
12186 echo EXPORTS > $output_objdir/$soname.def;
12187 cat $export_symbols >> $output_objdir/$soname.def;
12189 $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'
12190 else
12191 ld_shlibs_CXX=no
12194 darwin* | rhapsody*)
12197 archive_cmds_need_lc_CXX=no
12198 hardcode_direct_CXX=no
12199 hardcode_automatic_CXX=yes
12200 hardcode_shlibpath_var_CXX=unsupported
12201 if test "$lt_cv_ld_force_load" = "yes"; then
12202 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\"`'
12203 else
12204 whole_archive_flag_spec_CXX=''
12206 link_all_deplibs_CXX=yes
12207 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12208 case $cc_basename in
12209 ifort*) _lt_dar_can_shared=yes ;;
12210 *) _lt_dar_can_shared=$GCC ;;
12211 esac
12212 if test "$_lt_dar_can_shared" = "yes"; then
12213 output_verbose_link_cmd=func_echo_all
12214 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}"
12215 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12216 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}"
12217 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}"
12218 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12219 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}"
12220 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}"
12223 else
12224 ld_shlibs_CXX=no
12229 dgux*)
12230 case $cc_basename in
12231 ec++*)
12232 # FIXME: insert proper C++ library support
12233 ld_shlibs_CXX=no
12235 ghcx*)
12236 # Green Hills C++ Compiler
12237 # FIXME: insert proper C++ library support
12238 ld_shlibs_CXX=no
12241 # FIXME: insert proper C++ library support
12242 ld_shlibs_CXX=no
12244 esac
12247 freebsd2.*)
12248 # C++ shared libraries reported to be fairly broken before
12249 # switch to ELF
12250 ld_shlibs_CXX=no
12253 freebsd-elf*)
12254 archive_cmds_need_lc_CXX=no
12257 freebsd* | dragonfly*)
12258 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12259 # conventions
12260 ld_shlibs_CXX=yes
12263 gnu*)
12266 haiku*)
12267 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12268 link_all_deplibs_CXX=yes
12271 hpux9*)
12272 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12273 hardcode_libdir_separator_CXX=:
12274 export_dynamic_flag_spec_CXX='${wl}-E'
12275 hardcode_direct_CXX=yes
12276 hardcode_minus_L_CXX=yes # Not in the search PATH,
12277 # but as the default
12278 # location of the library.
12280 case $cc_basename in
12281 CC*)
12282 # FIXME: insert proper C++ library support
12283 ld_shlibs_CXX=no
12285 aCC*)
12286 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'
12287 # Commands to make compiler produce verbose output that lists
12288 # what "hidden" libraries, object files and flags are used when
12289 # linking a shared library.
12291 # There doesn't appear to be a way to prevent this compiler from
12292 # explicitly linking system object files so we need to strip them
12293 # from the output so that they don't get included in the library
12294 # dependencies.
12295 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"'
12298 if test "$GXX" = yes; then
12299 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'
12300 else
12301 # FIXME: insert proper C++ library support
12302 ld_shlibs_CXX=no
12305 esac
12308 hpux10*|hpux11*)
12309 if test $with_gnu_ld = no; then
12310 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12311 hardcode_libdir_separator_CXX=:
12313 case $host_cpu in
12314 hppa*64*|ia64*)
12317 export_dynamic_flag_spec_CXX='${wl}-E'
12319 esac
12321 case $host_cpu in
12322 hppa*64*|ia64*)
12323 hardcode_direct_CXX=no
12324 hardcode_shlibpath_var_CXX=no
12327 hardcode_direct_CXX=yes
12328 hardcode_direct_absolute_CXX=yes
12329 hardcode_minus_L_CXX=yes # Not in the search PATH,
12330 # but as the default
12331 # location of the library.
12333 esac
12335 case $cc_basename in
12336 CC*)
12337 # FIXME: insert proper C++ library support
12338 ld_shlibs_CXX=no
12340 aCC*)
12341 case $host_cpu in
12342 hppa*64*)
12343 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12345 ia64*)
12346 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12349 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12351 esac
12352 # Commands to make compiler produce verbose output that lists
12353 # what "hidden" libraries, object files and flags are used when
12354 # linking a shared library.
12356 # There doesn't appear to be a way to prevent this compiler from
12357 # explicitly linking system object files so we need to strip them
12358 # from the output so that they don't get included in the library
12359 # dependencies.
12360 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"'
12363 if test "$GXX" = yes; then
12364 if test $with_gnu_ld = no; then
12365 case $host_cpu in
12366 hppa*64*)
12367 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12369 ia64*)
12370 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12373 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'
12375 esac
12377 else
12378 # FIXME: insert proper C++ library support
12379 ld_shlibs_CXX=no
12382 esac
12385 interix[3-9]*)
12386 hardcode_direct_CXX=no
12387 hardcode_shlibpath_var_CXX=no
12388 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12389 export_dynamic_flag_spec_CXX='${wl}-E'
12390 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12391 # Instead, shared libraries are loaded at an image base (0x10000000 by
12392 # default) and relocated if they conflict, which is a slow very memory
12393 # consuming and fragmenting process. To avoid this, we pick a random,
12394 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12395 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12396 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'
12397 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'
12399 irix5* | irix6*)
12400 case $cc_basename in
12401 CC*)
12402 # SGI C++
12403 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'
12405 # Archives containing C++ object files must be created using
12406 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12407 # necessary to make sure instantiated templates are included
12408 # in the archive.
12409 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12412 if test "$GXX" = yes; then
12413 if test "$with_gnu_ld" = no; then
12414 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'
12415 else
12416 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'
12419 link_all_deplibs_CXX=yes
12421 esac
12422 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12423 hardcode_libdir_separator_CXX=:
12424 inherit_rpath_CXX=yes
12427 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12428 case $cc_basename in
12429 KCC*)
12430 # Kuck and Associates, Inc. (KAI) C++ Compiler
12432 # KCC will only create a shared library if the output file
12433 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12434 # to its proper name (with version) after linking.
12435 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'
12436 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'
12437 # Commands to make compiler produce verbose output that lists
12438 # what "hidden" libraries, object files and flags are used when
12439 # linking a shared library.
12441 # There doesn't appear to be a way to prevent this compiler from
12442 # explicitly linking system object files so we need to strip them
12443 # from the output so that they don't get included in the library
12444 # dependencies.
12445 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"'
12447 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12448 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12450 # Archives containing C++ object files must be created using
12451 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12452 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12454 icpc* | ecpc* )
12455 # Intel C++
12456 with_gnu_ld=yes
12457 # version 8.0 and above of icpc choke on multiply defined symbols
12458 # if we add $predep_objects and $postdep_objects, however 7.1 and
12459 # earlier do not add the objects themselves.
12460 case `$CC -V 2>&1` in
12461 *"Version 7."*)
12462 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12463 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'
12465 *) # Version 8.0 or newer
12466 tmp_idyn=
12467 case $host_cpu in
12468 ia64*) tmp_idyn=' -i_dynamic';;
12469 esac
12470 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12471 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'
12473 esac
12474 archive_cmds_need_lc_CXX=no
12475 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12476 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12477 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12479 pgCC* | pgcpp*)
12480 # Portland Group C++ compiler
12481 case `$CC -V` in
12482 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
12483 prelink_cmds_CXX='tpldir=Template.dir~
12484 rm -rf $tpldir~
12485 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
12486 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
12487 old_archive_cmds_CXX='tpldir=Template.dir~
12488 rm -rf $tpldir~
12489 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
12490 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
12491 $RANLIB $oldlib'
12492 archive_cmds_CXX='tpldir=Template.dir~
12493 rm -rf $tpldir~
12494 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12495 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12496 archive_expsym_cmds_CXX='tpldir=Template.dir~
12497 rm -rf $tpldir~
12498 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12499 $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'
12501 *) # Version 6 and above use weak symbols
12502 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12503 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'
12505 esac
12507 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12508 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12509 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'
12511 cxx*)
12512 # Compaq C++
12513 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12514 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'
12516 runpath_var=LD_RUN_PATH
12517 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12518 hardcode_libdir_separator_CXX=:
12520 # Commands to make compiler produce verbose output that lists
12521 # what "hidden" libraries, object files and flags are used when
12522 # linking a shared library.
12524 # There doesn't appear to be a way to prevent this compiler from
12525 # explicitly linking system object files so we need to strip them
12526 # from the output so that they don't get included in the library
12527 # dependencies.
12528 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'
12530 xl* | mpixl* | bgxl*)
12531 # IBM XL 8.0 on PPC, with GNU ld
12532 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12533 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12534 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12535 if test "x$supports_anon_versioning" = xyes; then
12536 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
12537 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12538 echo "local: *; };" >> $output_objdir/$libname.ver~
12539 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12543 case `$CC -V 2>&1 | sed 5q` in
12544 *Sun\ C*)
12545 # Sun C++ 5.9
12546 no_undefined_flag_CXX=' -zdefs'
12547 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12548 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'
12549 hardcode_libdir_flag_spec_CXX='-R$libdir'
12550 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'
12551 compiler_needs_object_CXX=yes
12553 # Not sure whether something based on
12554 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12555 # would be better.
12556 output_verbose_link_cmd='func_echo_all'
12558 # Archives containing C++ object files must be created using
12559 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12560 # necessary to make sure instantiated templates are included
12561 # in the archive.
12562 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12564 esac
12566 esac
12569 lynxos*)
12570 # FIXME: insert proper C++ library support
12571 ld_shlibs_CXX=no
12574 m88k*)
12575 # FIXME: insert proper C++ library support
12576 ld_shlibs_CXX=no
12579 mvs*)
12580 case $cc_basename in
12581 cxx*)
12582 # FIXME: insert proper C++ library support
12583 ld_shlibs_CXX=no
12586 # FIXME: insert proper C++ library support
12587 ld_shlibs_CXX=no
12589 esac
12592 netbsd*)
12593 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12594 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12595 wlarc=
12596 hardcode_libdir_flag_spec_CXX='-R$libdir'
12597 hardcode_direct_CXX=yes
12598 hardcode_shlibpath_var_CXX=no
12600 # Workaround some broken pre-1.5 toolchains
12601 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12604 *nto* | *qnx*)
12605 ld_shlibs_CXX=yes
12608 openbsd2*)
12609 # C++ shared libraries are fairly broken
12610 ld_shlibs_CXX=no
12613 openbsd*)
12614 if test -f /usr/libexec/ld.so; then
12615 hardcode_direct_CXX=yes
12616 hardcode_shlibpath_var_CXX=no
12617 hardcode_direct_absolute_CXX=yes
12618 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12619 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12620 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12621 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12622 export_dynamic_flag_spec_CXX='${wl}-E'
12623 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12625 output_verbose_link_cmd=func_echo_all
12626 else
12627 ld_shlibs_CXX=no
12631 osf3* | osf4* | osf5*)
12632 case $cc_basename in
12633 KCC*)
12634 # Kuck and Associates, Inc. (KAI) C++ Compiler
12636 # KCC will only create a shared library if the output file
12637 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12638 # to its proper name (with version) after linking.
12639 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'
12641 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12642 hardcode_libdir_separator_CXX=:
12644 # Archives containing C++ object files must be created using
12645 # the KAI C++ compiler.
12646 case $host in
12647 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
12648 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
12649 esac
12651 RCC*)
12652 # Rational C++ 2.4.1
12653 # FIXME: insert proper C++ library support
12654 ld_shlibs_CXX=no
12656 cxx*)
12657 case $host in
12658 osf3*)
12659 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12660 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'
12661 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12664 allow_undefined_flag_CXX=' -expect_unresolved \*'
12665 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'
12666 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12667 echo "-hidden">> $lib.exp~
12668 $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~
12669 $RM $lib.exp'
12670 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12672 esac
12674 hardcode_libdir_separator_CXX=:
12676 # Commands to make compiler produce verbose output that lists
12677 # what "hidden" libraries, object files and flags are used when
12678 # linking a shared library.
12680 # There doesn't appear to be a way to prevent this compiler from
12681 # explicitly linking system object files so we need to strip them
12682 # from the output so that they don't get included in the library
12683 # dependencies.
12684 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"'
12687 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12688 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12689 case $host in
12690 osf3*)
12691 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'
12694 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'
12696 esac
12698 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12699 hardcode_libdir_separator_CXX=:
12701 # Commands to make compiler produce verbose output that lists
12702 # what "hidden" libraries, object files and flags are used when
12703 # linking a shared library.
12704 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12706 else
12707 # FIXME: insert proper C++ library support
12708 ld_shlibs_CXX=no
12711 esac
12714 psos*)
12715 # FIXME: insert proper C++ library support
12716 ld_shlibs_CXX=no
12719 sunos4*)
12720 case $cc_basename in
12721 CC*)
12722 # Sun C++ 4.x
12723 # FIXME: insert proper C++ library support
12724 ld_shlibs_CXX=no
12726 lcc*)
12727 # Lucid
12728 # FIXME: insert proper C++ library support
12729 ld_shlibs_CXX=no
12732 # FIXME: insert proper C++ library support
12733 ld_shlibs_CXX=no
12735 esac
12738 solaris*)
12739 case $cc_basename in
12740 CC*)
12741 # Sun C++ 4.2, 5.x and Centerline C++
12742 archive_cmds_need_lc_CXX=yes
12743 no_undefined_flag_CXX=' -zdefs'
12744 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12745 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12746 $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'
12748 hardcode_libdir_flag_spec_CXX='-R$libdir'
12749 hardcode_shlibpath_var_CXX=no
12750 case $host_os in
12751 solaris2.[0-5] | solaris2.[0-5].*) ;;
12753 # The compiler driver will combine and reorder linker options,
12754 # but understands `-z linker_flag'.
12755 # Supported since Solaris 2.6 (maybe 2.5.1?)
12756 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12758 esac
12759 link_all_deplibs_CXX=yes
12761 output_verbose_link_cmd='func_echo_all'
12763 # Archives containing C++ object files must be created using
12764 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12765 # necessary to make sure instantiated templates are included
12766 # in the archive.
12767 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12769 gcx*)
12770 # Green Hills C++ Compiler
12771 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12773 # The C++ compiler must be used to create the archive.
12774 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12777 # GNU C++ compiler with Solaris linker
12778 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12779 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12780 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
12781 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12782 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12783 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
12785 # Commands to make compiler produce verbose output that lists
12786 # what "hidden" libraries, object files and flags are used when
12787 # linking a shared library.
12788 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12789 else
12790 # g++ 2.7 appears to require `-G' NOT `-shared' on this
12791 # platform.
12792 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12793 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12794 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
12796 # Commands to make compiler produce verbose output that lists
12797 # what "hidden" libraries, object files and flags are used when
12798 # linking a shared library.
12799 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12802 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12803 case $host_os in
12804 solaris2.[0-5] | solaris2.[0-5].*) ;;
12806 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12808 esac
12811 esac
12814 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12815 no_undefined_flag_CXX='${wl}-z,text'
12816 archive_cmds_need_lc_CXX=no
12817 hardcode_shlibpath_var_CXX=no
12818 runpath_var='LD_RUN_PATH'
12820 case $cc_basename in
12821 CC*)
12822 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12823 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12826 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12827 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12829 esac
12832 sysv5* | sco3.2v5* | sco5v6*)
12833 # Note: We can NOT use -z defs as we might desire, because we do not
12834 # link with -lc, and that would cause any symbols used from libc to
12835 # always be unresolved, which means just about no library would
12836 # ever link correctly. If we're not using GNU ld we use -z text
12837 # though, which does catch some bad symbols but isn't as heavy-handed
12838 # as -z defs.
12839 no_undefined_flag_CXX='${wl}-z,text'
12840 allow_undefined_flag_CXX='${wl}-z,nodefs'
12841 archive_cmds_need_lc_CXX=no
12842 hardcode_shlibpath_var_CXX=no
12843 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
12844 hardcode_libdir_separator_CXX=':'
12845 link_all_deplibs_CXX=yes
12846 export_dynamic_flag_spec_CXX='${wl}-Bexport'
12847 runpath_var='LD_RUN_PATH'
12849 case $cc_basename in
12850 CC*)
12851 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12852 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12853 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
12854 '"$old_archive_cmds_CXX"
12855 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
12856 '"$reload_cmds_CXX"
12859 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12860 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12862 esac
12865 tandem*)
12866 case $cc_basename in
12867 NCC*)
12868 # NonStop-UX NCC 3.20
12869 # FIXME: insert proper C++ library support
12870 ld_shlibs_CXX=no
12873 # FIXME: insert proper C++ library support
12874 ld_shlibs_CXX=no
12876 esac
12879 vxworks*)
12880 # FIXME: insert proper C++ library support
12881 ld_shlibs_CXX=no
12885 # FIXME: insert proper C++ library support
12886 ld_shlibs_CXX=no
12888 esac
12890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
12891 $as_echo "$ld_shlibs_CXX" >&6; }
12892 test "$ld_shlibs_CXX" = no && can_build_shared=no
12894 GCC_CXX="$GXX"
12895 LD_CXX="$LD"
12897 ## CAVEAT EMPTOR:
12898 ## There is no encapsulation within the following macros, do not change
12899 ## the running order or otherwise move them around unless you know exactly
12900 ## what you are doing...
12901 # Dependencies to place before and after the object being linked:
12902 predep_objects_CXX=
12903 postdep_objects_CXX=
12904 predeps_CXX=
12905 postdeps_CXX=
12906 compiler_lib_search_path_CXX=
12908 cat > conftest.$ac_ext <<_LT_EOF
12909 class Foo
12911 public:
12912 Foo (void) { a = 0; }
12913 private:
12914 int a;
12916 _LT_EOF
12918 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12919 (eval $ac_compile) 2>&5
12920 ac_status=$?
12921 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12922 test $ac_status = 0; }; then
12923 # Parse the compiler output and extract the necessary
12924 # objects, libraries and library flags.
12926 # Sentinel used to keep track of whether or not we are before
12927 # the conftest object file.
12928 pre_test_object_deps_done=no
12930 for p in `eval "$output_verbose_link_cmd"`; do
12931 case $p in
12933 -L* | -R* | -l*)
12934 # Some compilers place space between "-{L,R}" and the path.
12935 # Remove the space.
12936 if test $p = "-L" ||
12937 test $p = "-R"; then
12938 prev=$p
12939 continue
12940 else
12941 prev=
12944 if test "$pre_test_object_deps_done" = no; then
12945 case $p in
12946 -L* | -R*)
12947 # Internal compiler library paths should come after those
12948 # provided the user. The postdeps already come after the
12949 # user supplied libs so there is no need to process them.
12950 if test -z "$compiler_lib_search_path_CXX"; then
12951 compiler_lib_search_path_CXX="${prev}${p}"
12952 else
12953 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12956 # The "-l" case would never come before the object being
12957 # linked, so don't bother handling this case.
12958 esac
12959 else
12960 if test -z "$postdeps_CXX"; then
12961 postdeps_CXX="${prev}${p}"
12962 else
12963 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12968 *.$objext)
12969 # This assumes that the test object file only shows up
12970 # once in the compiler output.
12971 if test "$p" = "conftest.$objext"; then
12972 pre_test_object_deps_done=yes
12973 continue
12976 if test "$pre_test_object_deps_done" = no; then
12977 if test -z "$predep_objects_CXX"; then
12978 predep_objects_CXX="$p"
12979 else
12980 predep_objects_CXX="$predep_objects_CXX $p"
12982 else
12983 if test -z "$postdep_objects_CXX"; then
12984 postdep_objects_CXX="$p"
12985 else
12986 postdep_objects_CXX="$postdep_objects_CXX $p"
12991 *) ;; # Ignore the rest.
12993 esac
12994 done
12996 # Clean up.
12997 rm -f a.out a.exe
12998 else
12999 echo "libtool.m4: error: problem compiling CXX test program"
13002 $RM -f confest.$objext
13004 # PORTME: override above test on systems where it is broken
13005 case $host_os in
13006 interix[3-9]*)
13007 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13008 # hack all around it, let's just trust "g++" to DTRT.
13009 predep_objects_CXX=
13010 postdep_objects_CXX=
13011 postdeps_CXX=
13014 linux*)
13015 case `$CC -V 2>&1 | sed 5q` in
13016 *Sun\ C*)
13017 # Sun C++ 5.9
13019 # The more standards-conforming stlport4 library is
13020 # incompatible with the Cstd library. Avoid specifying
13021 # it if it's in CXXFLAGS. Ignore libCrun as
13022 # -library=stlport4 depends on it.
13023 case " $CXX $CXXFLAGS " in
13024 *" -library=stlport4 "*)
13025 solaris_use_stlport4=yes
13027 esac
13029 if test "$solaris_use_stlport4" != yes; then
13030 postdeps_CXX='-library=Cstd -library=Crun'
13033 esac
13036 solaris*)
13037 case $cc_basename in
13038 CC*)
13039 # The more standards-conforming stlport4 library is
13040 # incompatible with the Cstd library. Avoid specifying
13041 # it if it's in CXXFLAGS. Ignore libCrun as
13042 # -library=stlport4 depends on it.
13043 case " $CXX $CXXFLAGS " in
13044 *" -library=stlport4 "*)
13045 solaris_use_stlport4=yes
13047 esac
13049 # Adding this requires a known-good setup of shared libraries for
13050 # Sun compiler versions before 5.6, else PIC objects from an old
13051 # archive will be linked into the output, leading to subtle bugs.
13052 if test "$solaris_use_stlport4" != yes; then
13053 postdeps_CXX='-library=Cstd -library=Crun'
13056 esac
13058 esac
13061 case " $postdeps_CXX " in
13062 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13063 esac
13064 compiler_lib_search_dirs_CXX=
13065 if test -n "${compiler_lib_search_path_CXX}"; then
13066 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13099 lt_prog_compiler_wl_CXX=
13100 lt_prog_compiler_pic_CXX=
13101 lt_prog_compiler_static_CXX=
13103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13104 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13106 # C++ specific cases for pic, static, wl, etc.
13107 if test "$GXX" = yes; then
13108 lt_prog_compiler_wl_CXX='-Wl,'
13109 lt_prog_compiler_static_CXX='-static'
13111 case $host_os in
13112 aix*)
13113 # All AIX code is PIC.
13114 if test "$host_cpu" = ia64; then
13115 # AIX 5 now supports IA64 processor
13116 lt_prog_compiler_static_CXX='-Bstatic'
13118 lt_prog_compiler_pic_CXX='-fPIC'
13121 amigaos*)
13122 case $host_cpu in
13123 powerpc)
13124 # see comment about AmigaOS4 .so support
13125 lt_prog_compiler_pic_CXX='-fPIC'
13127 m68k)
13128 # FIXME: we need at least 68020 code to build shared libraries, but
13129 # adding the `-m68020' flag to GCC prevents building anything better,
13130 # like `-m68040'.
13131 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13133 esac
13136 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13137 # PIC is the default for these OSes.
13139 mingw* | cygwin* | os2* | pw32* | cegcc*)
13140 # This hack is so that the source file can tell whether it is being
13141 # built for inclusion in a dll (and should export symbols for example).
13142 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13143 # (--disable-auto-import) libraries
13144 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13146 darwin* | rhapsody*)
13147 # PIC is the default on this platform
13148 # Common symbols not allowed in MH_DYLIB files
13149 lt_prog_compiler_pic_CXX='-fno-common'
13151 *djgpp*)
13152 # DJGPP does not support shared libraries at all
13153 lt_prog_compiler_pic_CXX=
13155 haiku*)
13156 # PIC is the default for Haiku.
13157 # The "-static" flag exists, but is broken.
13158 lt_prog_compiler_static_CXX=
13160 interix[3-9]*)
13161 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13162 # Instead, we relocate shared libraries at runtime.
13164 sysv4*MP*)
13165 if test -d /usr/nec; then
13166 lt_prog_compiler_pic_CXX=-Kconform_pic
13169 hpux*)
13170 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13171 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13172 # sets the default TLS model and affects inlining.
13173 case $host_cpu in
13174 hppa*64*)
13177 lt_prog_compiler_pic_CXX='-fPIC'
13179 esac
13181 *qnx* | *nto*)
13182 # QNX uses GNU C++, but need to define -shared option too, otherwise
13183 # it will coredump.
13184 lt_prog_compiler_pic_CXX='-fPIC -shared'
13187 lt_prog_compiler_pic_CXX='-fPIC'
13189 esac
13190 else
13191 case $host_os in
13192 aix[4-9]*)
13193 # All AIX code is PIC.
13194 if test "$host_cpu" = ia64; then
13195 # AIX 5 now supports IA64 processor
13196 lt_prog_compiler_static_CXX='-Bstatic'
13197 else
13198 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13201 chorus*)
13202 case $cc_basename in
13203 cxch68*)
13204 # Green Hills C++ Compiler
13205 # _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"
13207 esac
13209 dgux*)
13210 case $cc_basename in
13211 ec++*)
13212 lt_prog_compiler_pic_CXX='-KPIC'
13214 ghcx*)
13215 # Green Hills C++ Compiler
13216 lt_prog_compiler_pic_CXX='-pic'
13220 esac
13222 freebsd* | dragonfly*)
13223 # FreeBSD uses GNU C++
13225 hpux9* | hpux10* | hpux11*)
13226 case $cc_basename in
13227 CC*)
13228 lt_prog_compiler_wl_CXX='-Wl,'
13229 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13230 if test "$host_cpu" != ia64; then
13231 lt_prog_compiler_pic_CXX='+Z'
13234 aCC*)
13235 lt_prog_compiler_wl_CXX='-Wl,'
13236 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13237 case $host_cpu in
13238 hppa*64*|ia64*)
13239 # +Z the default
13242 lt_prog_compiler_pic_CXX='+Z'
13244 esac
13248 esac
13250 interix*)
13251 # This is c89, which is MS Visual C++ (no shared libs)
13252 # Anyone wants to do a port?
13254 irix5* | irix6* | nonstopux*)
13255 case $cc_basename in
13256 CC*)
13257 lt_prog_compiler_wl_CXX='-Wl,'
13258 lt_prog_compiler_static_CXX='-non_shared'
13259 # CC pic flag -KPIC is the default.
13263 esac
13265 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13266 case $cc_basename in
13267 KCC*)
13268 # KAI C++ Compiler
13269 lt_prog_compiler_wl_CXX='--backend -Wl,'
13270 lt_prog_compiler_pic_CXX='-fPIC'
13272 ecpc* )
13273 # old Intel C++ for x86_64 which still supported -KPIC.
13274 lt_prog_compiler_wl_CXX='-Wl,'
13275 lt_prog_compiler_pic_CXX='-KPIC'
13276 lt_prog_compiler_static_CXX='-static'
13278 icpc* )
13279 # Intel C++, used to be incompatible with GCC.
13280 # ICC 10 doesn't accept -KPIC any more.
13281 lt_prog_compiler_wl_CXX='-Wl,'
13282 lt_prog_compiler_pic_CXX='-fPIC'
13283 lt_prog_compiler_static_CXX='-static'
13285 pgCC* | pgcpp*)
13286 # Portland Group C++ compiler
13287 lt_prog_compiler_wl_CXX='-Wl,'
13288 lt_prog_compiler_pic_CXX='-fpic'
13289 lt_prog_compiler_static_CXX='-Bstatic'
13291 cxx*)
13292 # Compaq C++
13293 # Make sure the PIC flag is empty. It appears that all Alpha
13294 # Linux and Compaq Tru64 Unix objects are PIC.
13295 lt_prog_compiler_pic_CXX=
13296 lt_prog_compiler_static_CXX='-non_shared'
13298 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
13299 # IBM XL 8.0, 9.0 on PPC and BlueGene
13300 lt_prog_compiler_wl_CXX='-Wl,'
13301 lt_prog_compiler_pic_CXX='-qpic'
13302 lt_prog_compiler_static_CXX='-qstaticlink'
13305 case `$CC -V 2>&1 | sed 5q` in
13306 *Sun\ C*)
13307 # Sun C++ 5.9
13308 lt_prog_compiler_pic_CXX='-KPIC'
13309 lt_prog_compiler_static_CXX='-Bstatic'
13310 lt_prog_compiler_wl_CXX='-Qoption ld '
13312 esac
13314 esac
13316 lynxos*)
13318 m88k*)
13320 mvs*)
13321 case $cc_basename in
13322 cxx*)
13323 lt_prog_compiler_pic_CXX='-W c,exportall'
13327 esac
13329 netbsd*)
13331 *qnx* | *nto*)
13332 # QNX uses GNU C++, but need to define -shared option too, otherwise
13333 # it will coredump.
13334 lt_prog_compiler_pic_CXX='-fPIC -shared'
13336 osf3* | osf4* | osf5*)
13337 case $cc_basename in
13338 KCC*)
13339 lt_prog_compiler_wl_CXX='--backend -Wl,'
13341 RCC*)
13342 # Rational C++ 2.4.1
13343 lt_prog_compiler_pic_CXX='-pic'
13345 cxx*)
13346 # Digital/Compaq C++
13347 lt_prog_compiler_wl_CXX='-Wl,'
13348 # Make sure the PIC flag is empty. It appears that all Alpha
13349 # Linux and Compaq Tru64 Unix objects are PIC.
13350 lt_prog_compiler_pic_CXX=
13351 lt_prog_compiler_static_CXX='-non_shared'
13355 esac
13357 psos*)
13359 solaris*)
13360 case $cc_basename in
13361 CC*)
13362 # Sun C++ 4.2, 5.x and Centerline C++
13363 lt_prog_compiler_pic_CXX='-KPIC'
13364 lt_prog_compiler_static_CXX='-Bstatic'
13365 lt_prog_compiler_wl_CXX='-Qoption ld '
13367 gcx*)
13368 # Green Hills C++ Compiler
13369 lt_prog_compiler_pic_CXX='-PIC'
13373 esac
13375 sunos4*)
13376 case $cc_basename in
13377 CC*)
13378 # Sun C++ 4.x
13379 lt_prog_compiler_pic_CXX='-pic'
13380 lt_prog_compiler_static_CXX='-Bstatic'
13382 lcc*)
13383 # Lucid
13384 lt_prog_compiler_pic_CXX='-pic'
13388 esac
13390 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13391 case $cc_basename in
13392 CC*)
13393 lt_prog_compiler_wl_CXX='-Wl,'
13394 lt_prog_compiler_pic_CXX='-KPIC'
13395 lt_prog_compiler_static_CXX='-Bstatic'
13397 esac
13399 tandem*)
13400 case $cc_basename in
13401 NCC*)
13402 # NonStop-UX NCC 3.20
13403 lt_prog_compiler_pic_CXX='-KPIC'
13407 esac
13409 vxworks*)
13412 lt_prog_compiler_can_build_shared_CXX=no
13414 esac
13417 case $host_os in
13418 # For platforms which do not support PIC, -DPIC is meaningless:
13419 *djgpp*)
13420 lt_prog_compiler_pic_CXX=
13423 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13425 esac
13426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
13427 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
13432 # Check to make sure the PIC flag actually works.
13434 if test -n "$lt_prog_compiler_pic_CXX"; then
13435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13436 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
13437 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
13438 $as_echo_n "(cached) " >&6
13439 else
13440 lt_cv_prog_compiler_pic_works_CXX=no
13441 ac_outfile=conftest.$ac_objext
13442 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13443 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13444 # Insert the option either (1) after the last *FLAGS variable, or
13445 # (2) before a word containing "conftest.", or (3) at the end.
13446 # Note that $ac_compile itself does not contain backslashes and begins
13447 # with a dollar sign (not a hyphen), so the echo should work correctly.
13448 # The option is referenced via a variable to avoid confusing sed.
13449 lt_compile=`echo "$ac_compile" | $SED \
13450 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13451 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13452 -e 's:$: $lt_compiler_flag:'`
13453 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13454 (eval "$lt_compile" 2>conftest.err)
13455 ac_status=$?
13456 cat conftest.err >&5
13457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13458 if (exit $ac_status) && test -s "$ac_outfile"; then
13459 # The compiler can only warn and ignore the option if not recognized
13460 # So say no if there are warnings other than the usual output.
13461 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13462 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13463 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13464 lt_cv_prog_compiler_pic_works_CXX=yes
13467 $RM conftest*
13470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13471 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
13473 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
13474 case $lt_prog_compiler_pic_CXX in
13475 "" | " "*) ;;
13476 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13477 esac
13478 else
13479 lt_prog_compiler_pic_CXX=
13480 lt_prog_compiler_can_build_shared_CXX=no
13488 # Check to make sure the static flag actually works.
13490 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13492 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13493 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
13494 $as_echo_n "(cached) " >&6
13495 else
13496 lt_cv_prog_compiler_static_works_CXX=no
13497 save_LDFLAGS="$LDFLAGS"
13498 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13499 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13500 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13501 # The linker can only warn and ignore the option if not recognized
13502 # So say no if there are warnings
13503 if test -s conftest.err; then
13504 # Append any errors to the config.log.
13505 cat conftest.err 1>&5
13506 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13507 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13508 if diff conftest.exp conftest.er2 >/dev/null; then
13509 lt_cv_prog_compiler_static_works_CXX=yes
13511 else
13512 lt_cv_prog_compiler_static_works_CXX=yes
13515 $RM -r conftest*
13516 LDFLAGS="$save_LDFLAGS"
13519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13520 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
13522 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
13524 else
13525 lt_prog_compiler_static_CXX=
13531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13532 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13533 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
13534 $as_echo_n "(cached) " >&6
13535 else
13536 lt_cv_prog_compiler_c_o_CXX=no
13537 $RM -r conftest 2>/dev/null
13538 mkdir conftest
13539 cd conftest
13540 mkdir out
13541 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13543 lt_compiler_flag="-o out/conftest2.$ac_objext"
13544 # Insert the option either (1) after the last *FLAGS variable, or
13545 # (2) before a word containing "conftest.", or (3) at the end.
13546 # Note that $ac_compile itself does not contain backslashes and begins
13547 # with a dollar sign (not a hyphen), so the echo should work correctly.
13548 lt_compile=`echo "$ac_compile" | $SED \
13549 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13550 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13551 -e 's:$: $lt_compiler_flag:'`
13552 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13553 (eval "$lt_compile" 2>out/conftest.err)
13554 ac_status=$?
13555 cat out/conftest.err >&5
13556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13557 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13558 then
13559 # The compiler can only warn and ignore the option if not recognized
13560 # So say no if there are warnings
13561 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13562 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13563 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13564 lt_cv_prog_compiler_c_o_CXX=yes
13567 chmod u+w . 2>&5
13568 $RM conftest*
13569 # SGI C++ compiler will create directory out/ii_files/ for
13570 # template instantiation
13571 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13572 $RM out/* && rmdir out
13573 cd ..
13574 $RM -r conftest
13575 $RM conftest*
13578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13579 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13584 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13585 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
13586 $as_echo_n "(cached) " >&6
13587 else
13588 lt_cv_prog_compiler_c_o_CXX=no
13589 $RM -r conftest 2>/dev/null
13590 mkdir conftest
13591 cd conftest
13592 mkdir out
13593 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13595 lt_compiler_flag="-o out/conftest2.$ac_objext"
13596 # Insert the option either (1) after the last *FLAGS variable, or
13597 # (2) before a word containing "conftest.", or (3) at the end.
13598 # Note that $ac_compile itself does not contain backslashes and begins
13599 # with a dollar sign (not a hyphen), so the echo should work correctly.
13600 lt_compile=`echo "$ac_compile" | $SED \
13601 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13602 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13603 -e 's:$: $lt_compiler_flag:'`
13604 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13605 (eval "$lt_compile" 2>out/conftest.err)
13606 ac_status=$?
13607 cat out/conftest.err >&5
13608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13609 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13610 then
13611 # The compiler can only warn and ignore the option if not recognized
13612 # So say no if there are warnings
13613 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13614 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13615 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13616 lt_cv_prog_compiler_c_o_CXX=yes
13619 chmod u+w . 2>&5
13620 $RM conftest*
13621 # SGI C++ compiler will create directory out/ii_files/ for
13622 # template instantiation
13623 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13624 $RM out/* && rmdir out
13625 cd ..
13626 $RM -r conftest
13627 $RM conftest*
13630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13631 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13636 hard_links="nottested"
13637 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13638 # do not overwrite the value of need_locks provided by the user
13639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13640 $as_echo_n "checking if we can lock with hard links... " >&6; }
13641 hard_links=yes
13642 $RM conftest*
13643 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13644 touch conftest.a
13645 ln conftest.a conftest.b 2>&5 || hard_links=no
13646 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13648 $as_echo "$hard_links" >&6; }
13649 if test "$hard_links" = no; then
13650 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13651 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13652 need_locks=warn
13654 else
13655 need_locks=no
13660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13661 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13663 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13664 case $host_os in
13665 aix[4-9]*)
13666 # If we're using GNU nm, then we don't want the "-C" option.
13667 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13668 # Also, AIX nm treats weak defined symbols like other global defined
13669 # symbols, whereas GNU nm marks them as "W".
13670 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
13671 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'
13672 else
13673 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'
13676 pw32*)
13677 export_symbols_cmds_CXX="$ltdll_cmds"
13679 cygwin* | mingw* | cegcc*)
13680 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'
13683 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13685 esac
13686 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13689 $as_echo "$ld_shlibs_CXX" >&6; }
13690 test "$ld_shlibs_CXX" = no && can_build_shared=no
13692 with_gnu_ld_CXX=$with_gnu_ld
13700 # Do we need to explicitly link libc?
13702 case "x$archive_cmds_need_lc_CXX" in
13703 x|xyes)
13704 # Assume -lc should be added
13705 archive_cmds_need_lc_CXX=yes
13707 if test "$enable_shared" = yes && test "$GCC" = yes; then
13708 case $archive_cmds_CXX in
13709 *'~'*)
13710 # FIXME: we may have to deal with multi-command sequences.
13712 '$CC '*)
13713 # Test whether the compiler implicitly links with -lc since on some
13714 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13715 # to ld, don't add -lc before -lgcc.
13716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13717 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13718 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
13719 $as_echo_n "(cached) " >&6
13720 else
13721 $RM conftest*
13722 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13724 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13725 (eval $ac_compile) 2>&5
13726 ac_status=$?
13727 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13728 test $ac_status = 0; } 2>conftest.err; then
13729 soname=conftest
13730 lib=conftest
13731 libobjs=conftest.$ac_objext
13732 deplibs=
13733 wl=$lt_prog_compiler_wl_CXX
13734 pic_flag=$lt_prog_compiler_pic_CXX
13735 compiler_flags=-v
13736 linker_flags=-v
13737 verstring=
13738 output_objdir=.
13739 libname=conftest
13740 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13741 allow_undefined_flag_CXX=
13742 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13743 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13744 ac_status=$?
13745 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13746 test $ac_status = 0; }
13747 then
13748 lt_cv_archive_cmds_need_lc_CXX=no
13749 else
13750 lt_cv_archive_cmds_need_lc_CXX=yes
13752 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13753 else
13754 cat conftest.err 1>&5
13756 $RM conftest*
13759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
13760 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
13761 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
13763 esac
13766 esac
13831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
13832 $as_echo_n "checking dynamic linker characteristics... " >&6; }
13834 library_names_spec=
13835 libname_spec='lib$name'
13836 soname_spec=
13837 shrext_cmds=".so"
13838 postinstall_cmds=
13839 postuninstall_cmds=
13840 finish_cmds=
13841 finish_eval=
13842 shlibpath_var=
13843 shlibpath_overrides_runpath=unknown
13844 version_type=none
13845 dynamic_linker="$host_os ld.so"
13846 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13847 need_lib_prefix=unknown
13848 hardcode_into_libs=no
13850 # when you set need_version to no, make sure it does not cause -set_version
13851 # flags to be left without arguments
13852 need_version=unknown
13854 case $host_os in
13855 aix3*)
13856 version_type=linux
13857 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13858 shlibpath_var=LIBPATH
13860 # AIX 3 has no versioning support, so we append a major version to the name.
13861 soname_spec='${libname}${release}${shared_ext}$major'
13864 aix[4-9]*)
13865 version_type=linux
13866 need_lib_prefix=no
13867 need_version=no
13868 hardcode_into_libs=yes
13869 if test "$host_cpu" = ia64; then
13870 # AIX 5 supports IA64
13871 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13872 shlibpath_var=LD_LIBRARY_PATH
13873 else
13874 # With GCC up to 2.95.x, collect2 would create an import file
13875 # for dependence libraries. The import file would start with
13876 # the line `#! .'. This would cause the generated library to
13877 # depend on `.', always an invalid library. This was fixed in
13878 # development snapshots of GCC prior to 3.0.
13879 case $host_os in
13880 aix4 | aix4.[01] | aix4.[01].*)
13881 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13882 echo ' yes '
13883 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
13885 else
13886 can_build_shared=no
13889 esac
13890 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13891 # soname into executable. Probably we can add versioning support to
13892 # collect2, so additional links can be useful in future.
13893 if test "$aix_use_runtimelinking" = yes; then
13894 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13895 # instead of lib<name>.a to let people know that these are not
13896 # typical AIX shared libraries.
13897 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13898 else
13899 # We preserve .a as extension for shared libraries through AIX4.2
13900 # and later when we are not doing run time linking.
13901 library_names_spec='${libname}${release}.a $libname.a'
13902 soname_spec='${libname}${release}${shared_ext}$major'
13904 shlibpath_var=LIBPATH
13908 amigaos*)
13909 case $host_cpu in
13910 powerpc)
13911 # Since July 2007 AmigaOS4 officially supports .so libraries.
13912 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
13913 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13915 m68k)
13916 library_names_spec='$libname.ixlibrary $libname.a'
13917 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13918 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'
13920 esac
13923 beos*)
13924 library_names_spec='${libname}${shared_ext}'
13925 dynamic_linker="$host_os ld.so"
13926 shlibpath_var=LIBRARY_PATH
13929 bsdi[45]*)
13930 version_type=linux
13931 need_version=no
13932 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13933 soname_spec='${libname}${release}${shared_ext}$major'
13934 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13935 shlibpath_var=LD_LIBRARY_PATH
13936 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13937 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13938 # the default ld.so.conf also contains /usr/contrib/lib and
13939 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13940 # libtool to hard-code these into programs
13943 cygwin* | mingw* | pw32* | cegcc*)
13944 version_type=windows
13945 shrext_cmds=".dll"
13946 need_version=no
13947 need_lib_prefix=no
13949 case $GCC,$host_os in
13950 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
13951 library_names_spec='$libname.dll.a'
13952 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13953 postinstall_cmds='base_file=`basename \${file}`~
13954 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
13955 dldir=$destdir/`dirname \$dlpath`~
13956 test -d \$dldir || mkdir -p \$dldir~
13957 $install_prog $dir/$dlname \$dldir/$dlname~
13958 chmod a+x \$dldir/$dlname~
13959 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13960 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13962 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13963 dlpath=$dir/\$dldll~
13964 $RM \$dlpath'
13965 shlibpath_overrides_runpath=yes
13967 case $host_os in
13968 cygwin*)
13969 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13970 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13973 mingw* | cegcc*)
13974 # MinGW DLLs use traditional 'lib' prefix
13975 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13977 pw32*)
13978 # pw32 DLLs use 'pw' prefix rather than 'lib'
13979 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13981 esac
13985 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13987 esac
13988 dynamic_linker='Win32 ld.exe'
13989 # FIXME: first we should search . and the directory the executable is in
13990 shlibpath_var=PATH
13993 darwin* | rhapsody*)
13994 dynamic_linker="$host_os dyld"
13995 version_type=darwin
13996 need_lib_prefix=no
13997 need_version=no
13998 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13999 soname_spec='${libname}${release}${major}$shared_ext'
14000 shlibpath_overrides_runpath=yes
14001 shlibpath_var=DYLD_LIBRARY_PATH
14002 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14004 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14007 dgux*)
14008 version_type=linux
14009 need_lib_prefix=no
14010 need_version=no
14011 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14012 soname_spec='${libname}${release}${shared_ext}$major'
14013 shlibpath_var=LD_LIBRARY_PATH
14016 freebsd* | dragonfly*)
14017 # DragonFly does not have aout. When/if they implement a new
14018 # versioning mechanism, adjust this.
14019 if test -x /usr/bin/objformat; then
14020 objformat=`/usr/bin/objformat`
14021 else
14022 case $host_os in
14023 freebsd[23].*) objformat=aout ;;
14024 *) objformat=elf ;;
14025 esac
14027 version_type=freebsd-$objformat
14028 case $version_type in
14029 freebsd-elf*)
14030 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14031 need_version=no
14032 need_lib_prefix=no
14034 freebsd-*)
14035 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14036 need_version=yes
14038 esac
14039 shlibpath_var=LD_LIBRARY_PATH
14040 case $host_os in
14041 freebsd2.*)
14042 shlibpath_overrides_runpath=yes
14044 freebsd3.[01]* | freebsdelf3.[01]*)
14045 shlibpath_overrides_runpath=yes
14046 hardcode_into_libs=yes
14048 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14049 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14050 shlibpath_overrides_runpath=no
14051 hardcode_into_libs=yes
14053 *) # from 4.6 on, and DragonFly
14054 shlibpath_overrides_runpath=yes
14055 hardcode_into_libs=yes
14057 esac
14060 gnu*)
14061 version_type=linux
14062 need_lib_prefix=no
14063 need_version=no
14064 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14065 soname_spec='${libname}${release}${shared_ext}$major'
14066 shlibpath_var=LD_LIBRARY_PATH
14067 hardcode_into_libs=yes
14070 haiku*)
14071 version_type=linux
14072 need_lib_prefix=no
14073 need_version=no
14074 dynamic_linker="$host_os runtime_loader"
14075 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14076 soname_spec='${libname}${release}${shared_ext}$major'
14077 shlibpath_var=LIBRARY_PATH
14078 shlibpath_overrides_runpath=yes
14079 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
14080 hardcode_into_libs=yes
14083 hpux9* | hpux10* | hpux11*)
14084 # Give a soname corresponding to the major version so that dld.sl refuses to
14085 # link against other versions.
14086 version_type=sunos
14087 need_lib_prefix=no
14088 need_version=no
14089 case $host_cpu in
14090 ia64*)
14091 shrext_cmds='.so'
14092 hardcode_into_libs=yes
14093 dynamic_linker="$host_os dld.so"
14094 shlibpath_var=LD_LIBRARY_PATH
14095 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14096 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14097 soname_spec='${libname}${release}${shared_ext}$major'
14098 if test "X$HPUX_IA64_MODE" = X32; then
14099 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14100 else
14101 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14103 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14105 hppa*64*)
14106 shrext_cmds='.sl'
14107 hardcode_into_libs=yes
14108 dynamic_linker="$host_os dld.sl"
14109 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14110 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14111 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14112 soname_spec='${libname}${release}${shared_ext}$major'
14113 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14114 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14117 shrext_cmds='.sl'
14118 dynamic_linker="$host_os dld.sl"
14119 shlibpath_var=SHLIB_PATH
14120 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14121 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14122 soname_spec='${libname}${release}${shared_ext}$major'
14124 esac
14125 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14126 postinstall_cmds='chmod 555 $lib'
14127 # or fails outright, so override atomically:
14128 install_override_mode=555
14131 interix[3-9]*)
14132 version_type=linux
14133 need_lib_prefix=no
14134 need_version=no
14135 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14136 soname_spec='${libname}${release}${shared_ext}$major'
14137 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14138 shlibpath_var=LD_LIBRARY_PATH
14139 shlibpath_overrides_runpath=no
14140 hardcode_into_libs=yes
14143 irix5* | irix6* | nonstopux*)
14144 case $host_os in
14145 nonstopux*) version_type=nonstopux ;;
14147 if test "$lt_cv_prog_gnu_ld" = yes; then
14148 version_type=linux
14149 else
14150 version_type=irix
14151 fi ;;
14152 esac
14153 need_lib_prefix=no
14154 need_version=no
14155 soname_spec='${libname}${release}${shared_ext}$major'
14156 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14157 case $host_os in
14158 irix5* | nonstopux*)
14159 libsuff= shlibsuff=
14162 case $LD in # libtool.m4 will add one of these switches to LD
14163 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14164 libsuff= shlibsuff= libmagic=32-bit;;
14165 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14166 libsuff=32 shlibsuff=N32 libmagic=N32;;
14167 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14168 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14169 *) libsuff= shlibsuff= libmagic=never-match;;
14170 esac
14172 esac
14173 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14174 shlibpath_overrides_runpath=no
14175 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14176 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14177 hardcode_into_libs=yes
14180 # No shared lib support for Linux oldld, aout, or coff.
14181 linux*oldld* | linux*aout* | linux*coff*)
14182 dynamic_linker=no
14185 # This must be Linux ELF.
14187 # uclinux* changes (here and below) have been submitted to the libtool
14188 # project, but have not yet been accepted: they are GCC-local changes
14189 # for the time being. (See
14190 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
14191 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
14192 version_type=linux
14193 need_lib_prefix=no
14194 need_version=no
14195 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14196 soname_spec='${libname}${release}${shared_ext}$major'
14197 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14198 shlibpath_var=LD_LIBRARY_PATH
14199 shlibpath_overrides_runpath=no
14201 # Some binutils ld are patched to set DT_RUNPATH
14202 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
14203 $as_echo_n "(cached) " >&6
14204 else
14205 lt_cv_shlibpath_overrides_runpath=no
14206 save_LDFLAGS=$LDFLAGS
14207 save_libdir=$libdir
14208 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14209 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14211 /* end confdefs.h. */
14214 main ()
14218 return 0;
14220 _ACEOF
14221 if ac_fn_cxx_try_link "$LINENO"; then :
14222 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14223 lt_cv_shlibpath_overrides_runpath=yes
14226 rm -f core conftest.err conftest.$ac_objext \
14227 conftest$ac_exeext conftest.$ac_ext
14228 LDFLAGS=$save_LDFLAGS
14229 libdir=$save_libdir
14233 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14235 # This implies no fast_install, which is unacceptable.
14236 # Some rework will be needed to allow for fast_install
14237 # before this can be enabled.
14238 hardcode_into_libs=yes
14240 # Append ld.so.conf contents to the search path
14241 if test -f /etc/ld.so.conf; then
14242 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' ' '`
14243 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14246 # We used to test for /lib/ld.so.1 and disable shared libraries on
14247 # powerpc, because MkLinux only supported shared libraries with the
14248 # GNU dynamic linker. Since this was broken with cross compilers,
14249 # most powerpc-linux boxes support dynamic linking these days and
14250 # people can always --disable-shared, the test was removed, and we
14251 # assume the GNU/Linux dynamic linker is in use.
14252 dynamic_linker='GNU/Linux ld.so'
14255 netbsd*)
14256 version_type=sunos
14257 need_lib_prefix=no
14258 need_version=no
14259 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14260 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14261 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14262 dynamic_linker='NetBSD (a.out) ld.so'
14263 else
14264 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14265 soname_spec='${libname}${release}${shared_ext}$major'
14266 dynamic_linker='NetBSD ld.elf_so'
14268 shlibpath_var=LD_LIBRARY_PATH
14269 shlibpath_overrides_runpath=yes
14270 hardcode_into_libs=yes
14273 newsos6)
14274 version_type=linux
14275 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14276 shlibpath_var=LD_LIBRARY_PATH
14277 shlibpath_overrides_runpath=yes
14280 *nto* | *qnx*)
14281 version_type=qnx
14282 need_lib_prefix=no
14283 need_version=no
14284 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14285 soname_spec='${libname}${release}${shared_ext}$major'
14286 shlibpath_var=LD_LIBRARY_PATH
14287 shlibpath_overrides_runpath=no
14288 hardcode_into_libs=yes
14289 dynamic_linker='ldqnx.so'
14292 openbsd*)
14293 version_type=sunos
14294 sys_lib_dlsearch_path_spec="/usr/lib"
14295 need_lib_prefix=no
14296 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14297 case $host_os in
14298 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14299 *) need_version=no ;;
14300 esac
14301 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14302 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14303 shlibpath_var=LD_LIBRARY_PATH
14304 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14305 case $host_os in
14306 openbsd2.[89] | openbsd2.[89].*)
14307 shlibpath_overrides_runpath=no
14310 shlibpath_overrides_runpath=yes
14312 esac
14313 else
14314 shlibpath_overrides_runpath=yes
14318 os2*)
14319 libname_spec='$name'
14320 shrext_cmds=".dll"
14321 need_lib_prefix=no
14322 library_names_spec='$libname${shared_ext} $libname.a'
14323 dynamic_linker='OS/2 ld.exe'
14324 shlibpath_var=LIBPATH
14327 osf3* | osf4* | osf5*)
14328 version_type=osf
14329 need_lib_prefix=no
14330 need_version=no
14331 soname_spec='${libname}${release}${shared_ext}$major'
14332 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14333 shlibpath_var=LD_LIBRARY_PATH
14334 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14335 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14338 rdos*)
14339 dynamic_linker=no
14342 solaris*)
14343 version_type=linux
14344 need_lib_prefix=no
14345 need_version=no
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 shlibpath_overrides_runpath=yes
14350 hardcode_into_libs=yes
14351 # ldd complains unless libraries are executable
14352 postinstall_cmds='chmod +x $lib'
14355 sunos4*)
14356 version_type=sunos
14357 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14358 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14359 shlibpath_var=LD_LIBRARY_PATH
14360 shlibpath_overrides_runpath=yes
14361 if test "$with_gnu_ld" = yes; then
14362 need_lib_prefix=no
14364 need_version=yes
14367 sysv4 | sysv4.3*)
14368 version_type=linux
14369 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14370 soname_spec='${libname}${release}${shared_ext}$major'
14371 shlibpath_var=LD_LIBRARY_PATH
14372 case $host_vendor in
14373 sni)
14374 shlibpath_overrides_runpath=no
14375 need_lib_prefix=no
14376 runpath_var=LD_RUN_PATH
14378 siemens)
14379 need_lib_prefix=no
14381 motorola)
14382 need_lib_prefix=no
14383 need_version=no
14384 shlibpath_overrides_runpath=no
14385 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14387 esac
14390 sysv4*MP*)
14391 if test -d /usr/nec ;then
14392 version_type=linux
14393 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14394 soname_spec='$libname${shared_ext}.$major'
14395 shlibpath_var=LD_LIBRARY_PATH
14399 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14400 version_type=freebsd-elf
14401 need_lib_prefix=no
14402 need_version=no
14403 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14404 soname_spec='${libname}${release}${shared_ext}$major'
14405 shlibpath_var=LD_LIBRARY_PATH
14406 shlibpath_overrides_runpath=yes
14407 hardcode_into_libs=yes
14408 if test "$with_gnu_ld" = yes; then
14409 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14410 else
14411 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14412 case $host_os in
14413 sco3.2v5*)
14414 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14416 esac
14418 sys_lib_dlsearch_path_spec='/usr/lib'
14421 tpf*)
14422 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14423 version_type=linux
14424 need_lib_prefix=no
14425 need_version=no
14426 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14427 shlibpath_var=LD_LIBRARY_PATH
14428 shlibpath_overrides_runpath=no
14429 hardcode_into_libs=yes
14432 uts4*)
14433 version_type=linux
14434 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14435 soname_spec='${libname}${release}${shared_ext}$major'
14436 shlibpath_var=LD_LIBRARY_PATH
14440 dynamic_linker=no
14442 esac
14443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14444 $as_echo "$dynamic_linker" >&6; }
14445 test "$dynamic_linker" = no && can_build_shared=no
14447 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14448 if test "$GCC" = yes; then
14449 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14452 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14453 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14455 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14456 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14497 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14498 hardcode_action_CXX=
14499 if test -n "$hardcode_libdir_flag_spec_CXX" ||
14500 test -n "$runpath_var_CXX" ||
14501 test "X$hardcode_automatic_CXX" = "Xyes" ; then
14503 # We can hardcode non-existent directories.
14504 if test "$hardcode_direct_CXX" != no &&
14505 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14506 # have to relink, otherwise we might link with an installed library
14507 # when we should be linking with a yet-to-be-installed one
14508 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14509 test "$hardcode_minus_L_CXX" != no; then
14510 # Linking always hardcodes the temporary library directory.
14511 hardcode_action_CXX=relink
14512 else
14513 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14514 hardcode_action_CXX=immediate
14516 else
14517 # We cannot hardcode anything, or else we can only hardcode existing
14518 # directories.
14519 hardcode_action_CXX=unsupported
14521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
14522 $as_echo "$hardcode_action_CXX" >&6; }
14524 if test "$hardcode_action_CXX" = relink ||
14525 test "$inherit_rpath_CXX" = yes; then
14526 # Fast installation is not supported
14527 enable_fast_install=no
14528 elif test "$shlibpath_overrides_runpath" = yes ||
14529 test "$enable_shared" = no; then
14530 # Fast installation is not necessary
14531 enable_fast_install=needless
14540 fi # test -n "$compiler"
14542 CC=$lt_save_CC
14543 LDCXX=$LD
14544 LD=$lt_save_LD
14545 GCC=$lt_save_GCC
14546 with_gnu_ld=$lt_save_with_gnu_ld
14547 lt_cv_path_LDCXX=$lt_cv_path_LD
14548 lt_cv_path_LD=$lt_save_path_LD
14549 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14550 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14551 fi # test "$_lt_caught_CXX_error" != yes
14553 ac_ext=c
14554 ac_cpp='$CPP $CPPFLAGS'
14555 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14556 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14557 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14571 ac_config_commands="$ac_config_commands libtool"
14576 # Only expand once:
14582 ac_config_headers="$ac_config_headers target-config.h"
14585 # The cast to long int works around a bug in the HP C Compiler
14586 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14587 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14588 # This bug is HP SR number 8606223364.
14589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
14590 $as_echo_n "checking size of int... " >&6; }
14591 if ${ac_cv_sizeof_int+:} false; then :
14592 $as_echo_n "(cached) " >&6
14593 else
14594 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
14596 else
14597 if test "$ac_cv_type_int" = yes; then
14598 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14599 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14600 as_fn_error 77 "cannot compute sizeof (int)
14601 See \`config.log' for more details" "$LINENO" 5; }
14602 else
14603 ac_cv_sizeof_int=0
14608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
14609 $as_echo "$ac_cv_sizeof_int" >&6; }
14613 cat >>confdefs.h <<_ACEOF
14614 #define SIZEOF_INT $ac_cv_sizeof_int
14615 _ACEOF
14618 # The cast to long int works around a bug in the HP C Compiler
14619 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14620 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14621 # This bug is HP SR number 8606223364.
14622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void*" >&5
14623 $as_echo_n "checking size of void*... " >&6; }
14624 if ${ac_cv_sizeof_voidp+:} false; then :
14625 $as_echo_n "(cached) " >&6
14626 else
14627 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void*))" "ac_cv_sizeof_voidp" "$ac_includes_default"; then :
14629 else
14630 if test "$ac_cv_type_voidp" = yes; then
14631 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14632 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14633 as_fn_error 77 "cannot compute sizeof (void*)
14634 See \`config.log' for more details" "$LINENO" 5; }
14635 else
14636 ac_cv_sizeof_voidp=0
14641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_voidp" >&5
14642 $as_echo "$ac_cv_sizeof_voidp" >&6; }
14646 cat >>confdefs.h <<_ACEOF
14647 #define SIZEOF_VOIDP $ac_cv_sizeof_voidp
14648 _ACEOF
14652 # Determine what GCC version number to use in filesystem paths.
14654 get_gcc_base_ver="cat"
14656 # Check whether --with-gcc-major-version-only was given.
14657 if test "${with_gcc_major_version_only+set}" = set; then :
14658 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
14659 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
14667 # Must be last
14668 cat >confcache <<\_ACEOF
14669 # This file is a shell script that caches the results of configure
14670 # tests run on this system so they can be shared between configure
14671 # scripts and configure runs, see configure's option --config-cache.
14672 # It is not useful on other systems. If it contains results you don't
14673 # want to keep, you may remove or edit it.
14675 # config.status only pays attention to the cache file if you give it
14676 # the --recheck option to rerun configure.
14678 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14679 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14680 # following values.
14682 _ACEOF
14684 # The following way of writing the cache mishandles newlines in values,
14685 # but we know of no workaround that is simple, portable, and efficient.
14686 # So, we kill variables containing newlines.
14687 # Ultrix sh set writes to stderr and can't be redirected directly,
14688 # and sets the high bit in the cache file unless we assign to the vars.
14690 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14691 eval ac_val=\$$ac_var
14692 case $ac_val in #(
14693 *${as_nl}*)
14694 case $ac_var in #(
14695 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14696 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14697 esac
14698 case $ac_var in #(
14699 _ | IFS | as_nl) ;; #(
14700 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14701 *) { eval $ac_var=; unset $ac_var;} ;;
14702 esac ;;
14703 esac
14704 done
14706 (set) 2>&1 |
14707 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14708 *${as_nl}ac_space=\ *)
14709 # `set' does not quote correctly, so add quotes: double-quote
14710 # substitution turns \\\\ into \\, and sed turns \\ into \.
14711 sed -n \
14712 "s/'/'\\\\''/g;
14713 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14714 ;; #(
14716 # `set' quotes correctly as required by POSIX, so do not add quotes.
14717 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14719 esac |
14720 sort
14722 sed '
14723 /^ac_cv_env_/b end
14724 t clear
14725 :clear
14726 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14727 t end
14728 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14729 :end' >>confcache
14730 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14731 if test -w "$cache_file"; then
14732 if test "x$cache_file" != "x/dev/null"; then
14733 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14734 $as_echo "$as_me: updating cache $cache_file" >&6;}
14735 if test ! -f "$cache_file" || test -h "$cache_file"; then
14736 cat confcache >"$cache_file"
14737 else
14738 case $cache_file in #(
14739 */* | ?:*)
14740 mv -f confcache "$cache_file"$$ &&
14741 mv -f "$cache_file"$$ "$cache_file" ;; #(
14743 mv -f confcache "$cache_file" ;;
14744 esac
14747 else
14748 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14749 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14752 rm -f confcache
14754 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14755 # Let make expand exec_prefix.
14756 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14758 DEFS=-DHAVE_CONFIG_H
14760 ac_libobjs=
14761 ac_ltlibobjs=
14763 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14764 # 1. Remove the extension, and $U if already installed.
14765 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14766 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14767 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14768 # will be set to the directory where LIBOBJS objects are built.
14769 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14770 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14771 done
14772 LIBOBJS=$ac_libobjs
14774 LTLIBOBJS=$ac_ltlibobjs
14777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
14778 $as_echo_n "checking that generated files are newer than configure... " >&6; }
14779 if test -n "$am_sleep_pid"; then
14780 # Hide warnings about reused PIDs.
14781 wait $am_sleep_pid 2>/dev/null
14783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
14784 $as_echo "done" >&6; }
14785 if test -n "$EXEEXT"; then
14786 am__EXEEXT_TRUE=
14787 am__EXEEXT_FALSE='#'
14788 else
14789 am__EXEEXT_TRUE='#'
14790 am__EXEEXT_FALSE=
14793 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
14794 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
14795 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14797 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14798 as_fn_error $? "conditional \"AMDEP\" was never defined.
14799 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14801 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14802 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
14803 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14805 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
14806 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
14807 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14809 if test -z "${LINUX_LINKER_SCRIPT_TRUE}" && test -z "${LINUX_LINKER_SCRIPT_FALSE}"; then
14810 as_fn_error $? "conditional \"LINUX_LINKER_SCRIPT\" was never defined.
14811 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14813 if test -z "${MAC_LINKER_SCRIPT_TRUE}" && test -z "${MAC_LINKER_SCRIPT_FALSE}"; then
14814 as_fn_error $? "conditional \"MAC_LINKER_SCRIPT\" was never defined.
14815 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14818 : "${CONFIG_STATUS=./config.status}"
14819 ac_write_fail=0
14820 ac_clean_files_save=$ac_clean_files
14821 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14822 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14823 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14824 as_write_fail=0
14825 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14826 #! $SHELL
14827 # Generated by $as_me.
14828 # Run this file to recreate the current configuration.
14829 # Compiler output produced by configure, useful for debugging
14830 # configure, is in config.log if it exists.
14832 debug=false
14833 ac_cs_recheck=false
14834 ac_cs_silent=false
14836 SHELL=\${CONFIG_SHELL-$SHELL}
14837 export SHELL
14838 _ASEOF
14839 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14840 ## -------------------- ##
14841 ## M4sh Initialization. ##
14842 ## -------------------- ##
14844 # Be more Bourne compatible
14845 DUALCASE=1; export DUALCASE # for MKS sh
14846 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14847 emulate sh
14848 NULLCMD=:
14849 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14850 # is contrary to our usage. Disable this feature.
14851 alias -g '${1+"$@"}'='"$@"'
14852 setopt NO_GLOB_SUBST
14853 else
14854 case `(set -o) 2>/dev/null` in #(
14855 *posix*) :
14856 set -o posix ;; #(
14857 *) :
14859 esac
14863 as_nl='
14865 export as_nl
14866 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14867 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14868 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14869 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14870 # Prefer a ksh shell builtin over an external printf program on Solaris,
14871 # but without wasting forks for bash or zsh.
14872 if test -z "$BASH_VERSION$ZSH_VERSION" \
14873 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14874 as_echo='print -r --'
14875 as_echo_n='print -rn --'
14876 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14877 as_echo='printf %s\n'
14878 as_echo_n='printf %s'
14879 else
14880 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14881 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14882 as_echo_n='/usr/ucb/echo -n'
14883 else
14884 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14885 as_echo_n_body='eval
14886 arg=$1;
14887 case $arg in #(
14888 *"$as_nl"*)
14889 expr "X$arg" : "X\\(.*\\)$as_nl";
14890 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14891 esac;
14892 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14894 export as_echo_n_body
14895 as_echo_n='sh -c $as_echo_n_body as_echo'
14897 export as_echo_body
14898 as_echo='sh -c $as_echo_body as_echo'
14901 # The user is always right.
14902 if test "${PATH_SEPARATOR+set}" != set; then
14903 PATH_SEPARATOR=:
14904 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14905 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14906 PATH_SEPARATOR=';'
14911 # IFS
14912 # We need space, tab and new line, in precisely that order. Quoting is
14913 # there to prevent editors from complaining about space-tab.
14914 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14915 # splitting by setting IFS to empty value.)
14916 IFS=" "" $as_nl"
14918 # Find who we are. Look in the path if we contain no directory separator.
14919 as_myself=
14920 case $0 in #((
14921 *[\\/]* ) as_myself=$0 ;;
14922 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14923 for as_dir in $PATH
14925 IFS=$as_save_IFS
14926 test -z "$as_dir" && as_dir=.
14927 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14928 done
14929 IFS=$as_save_IFS
14932 esac
14933 # We did not find ourselves, most probably we were run as `sh COMMAND'
14934 # in which case we are not to be found in the path.
14935 if test "x$as_myself" = x; then
14936 as_myself=$0
14938 if test ! -f "$as_myself"; then
14939 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14940 exit 1
14943 # Unset variables that we do not need and which cause bugs (e.g. in
14944 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14945 # suppresses any "Segmentation fault" message there. '((' could
14946 # trigger a bug in pdksh 5.2.14.
14947 for as_var in BASH_ENV ENV MAIL MAILPATH
14948 do eval test x\${$as_var+set} = xset \
14949 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14950 done
14951 PS1='$ '
14952 PS2='> '
14953 PS4='+ '
14955 # NLS nuisances.
14956 LC_ALL=C
14957 export LC_ALL
14958 LANGUAGE=C
14959 export LANGUAGE
14961 # CDPATH.
14962 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14965 # as_fn_error STATUS ERROR [LINENO LOG_FD]
14966 # ----------------------------------------
14967 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14968 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14969 # script with STATUS, using 1 if that was 0.
14970 as_fn_error ()
14972 as_status=$1; test $as_status -eq 0 && as_status=1
14973 if test "$4"; then
14974 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14975 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
14977 $as_echo "$as_me: error: $2" >&2
14978 as_fn_exit $as_status
14979 } # as_fn_error
14982 # as_fn_set_status STATUS
14983 # -----------------------
14984 # Set $? to STATUS, without forking.
14985 as_fn_set_status ()
14987 return $1
14988 } # as_fn_set_status
14990 # as_fn_exit STATUS
14991 # -----------------
14992 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14993 as_fn_exit ()
14995 set +e
14996 as_fn_set_status $1
14997 exit $1
14998 } # as_fn_exit
15000 # as_fn_unset VAR
15001 # ---------------
15002 # Portably unset VAR.
15003 as_fn_unset ()
15005 { eval $1=; unset $1;}
15007 as_unset=as_fn_unset
15008 # as_fn_append VAR VALUE
15009 # ----------------------
15010 # Append the text in VALUE to the end of the definition contained in VAR. Take
15011 # advantage of any shell optimizations that allow amortized linear growth over
15012 # repeated appends, instead of the typical quadratic growth present in naive
15013 # implementations.
15014 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15015 eval 'as_fn_append ()
15017 eval $1+=\$2
15019 else
15020 as_fn_append ()
15022 eval $1=\$$1\$2
15024 fi # as_fn_append
15026 # as_fn_arith ARG...
15027 # ------------------
15028 # Perform arithmetic evaluation on the ARGs, and store the result in the
15029 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15030 # must be portable across $(()) and expr.
15031 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15032 eval 'as_fn_arith ()
15034 as_val=$(( $* ))
15036 else
15037 as_fn_arith ()
15039 as_val=`expr "$@" || test $? -eq 1`
15041 fi # as_fn_arith
15044 if expr a : '\(a\)' >/dev/null 2>&1 &&
15045 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15046 as_expr=expr
15047 else
15048 as_expr=false
15051 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15052 as_basename=basename
15053 else
15054 as_basename=false
15057 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15058 as_dirname=dirname
15059 else
15060 as_dirname=false
15063 as_me=`$as_basename -- "$0" ||
15064 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15065 X"$0" : 'X\(//\)$' \| \
15066 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15067 $as_echo X/"$0" |
15068 sed '/^.*\/\([^/][^/]*\)\/*$/{
15069 s//\1/
15072 /^X\/\(\/\/\)$/{
15073 s//\1/
15076 /^X\/\(\/\).*/{
15077 s//\1/
15080 s/.*/./; q'`
15082 # Avoid depending upon Character Ranges.
15083 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15084 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15085 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15086 as_cr_digits='0123456789'
15087 as_cr_alnum=$as_cr_Letters$as_cr_digits
15089 ECHO_C= ECHO_N= ECHO_T=
15090 case `echo -n x` in #(((((
15091 -n*)
15092 case `echo 'xy\c'` in
15093 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15094 xy) ECHO_C='\c';;
15095 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15096 ECHO_T=' ';;
15097 esac;;
15099 ECHO_N='-n';;
15100 esac
15102 rm -f conf$$ conf$$.exe conf$$.file
15103 if test -d conf$$.dir; then
15104 rm -f conf$$.dir/conf$$.file
15105 else
15106 rm -f conf$$.dir
15107 mkdir conf$$.dir 2>/dev/null
15109 if (echo >conf$$.file) 2>/dev/null; then
15110 if ln -s conf$$.file conf$$ 2>/dev/null; then
15111 as_ln_s='ln -s'
15112 # ... but there are two gotchas:
15113 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15114 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15115 # In both cases, we have to default to `cp -pR'.
15116 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15117 as_ln_s='cp -pR'
15118 elif ln conf$$.file conf$$ 2>/dev/null; then
15119 as_ln_s=ln
15120 else
15121 as_ln_s='cp -pR'
15123 else
15124 as_ln_s='cp -pR'
15126 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15127 rmdir conf$$.dir 2>/dev/null
15130 # as_fn_mkdir_p
15131 # -------------
15132 # Create "$as_dir" as a directory, including parents if necessary.
15133 as_fn_mkdir_p ()
15136 case $as_dir in #(
15137 -*) as_dir=./$as_dir;;
15138 esac
15139 test -d "$as_dir" || eval $as_mkdir_p || {
15140 as_dirs=
15141 while :; do
15142 case $as_dir in #(
15143 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15144 *) as_qdir=$as_dir;;
15145 esac
15146 as_dirs="'$as_qdir' $as_dirs"
15147 as_dir=`$as_dirname -- "$as_dir" ||
15148 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15149 X"$as_dir" : 'X\(//\)[^/]' \| \
15150 X"$as_dir" : 'X\(//\)$' \| \
15151 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15152 $as_echo X"$as_dir" |
15153 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15154 s//\1/
15157 /^X\(\/\/\)[^/].*/{
15158 s//\1/
15161 /^X\(\/\/\)$/{
15162 s//\1/
15165 /^X\(\/\).*/{
15166 s//\1/
15169 s/.*/./; q'`
15170 test -d "$as_dir" && break
15171 done
15172 test -z "$as_dirs" || eval "mkdir $as_dirs"
15173 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15176 } # as_fn_mkdir_p
15177 if mkdir -p . 2>/dev/null; then
15178 as_mkdir_p='mkdir -p "$as_dir"'
15179 else
15180 test -d ./-p && rmdir ./-p
15181 as_mkdir_p=false
15185 # as_fn_executable_p FILE
15186 # -----------------------
15187 # Test if FILE is an executable regular file.
15188 as_fn_executable_p ()
15190 test -f "$1" && test -x "$1"
15191 } # as_fn_executable_p
15192 as_test_x='test -x'
15193 as_executable_p=as_fn_executable_p
15195 # Sed expression to map a string onto a valid CPP name.
15196 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15198 # Sed expression to map a string onto a valid variable name.
15199 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15202 exec 6>&1
15203 ## ----------------------------------- ##
15204 ## Main body of $CONFIG_STATUS script. ##
15205 ## ----------------------------------- ##
15206 _ASEOF
15207 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15209 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15210 # Save the log message, to keep $0 and so on meaningful, and to
15211 # report actual input values of CONFIG_FILES etc. instead of their
15212 # values after options handling.
15213 ac_log="
15214 This file was extended by phsa HSAIL runtime library $as_me 1.0, which was
15215 generated by GNU Autoconf 2.69. Invocation command line was
15217 CONFIG_FILES = $CONFIG_FILES
15218 CONFIG_HEADERS = $CONFIG_HEADERS
15219 CONFIG_LINKS = $CONFIG_LINKS
15220 CONFIG_COMMANDS = $CONFIG_COMMANDS
15221 $ $0 $@
15223 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15226 _ACEOF
15228 case $ac_config_files in *"
15229 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15230 esac
15232 case $ac_config_headers in *"
15233 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15234 esac
15237 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15238 # Files that config.status was made for.
15239 config_files="$ac_config_files"
15240 config_headers="$ac_config_headers"
15241 config_commands="$ac_config_commands"
15243 _ACEOF
15245 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15246 ac_cs_usage="\
15247 \`$as_me' instantiates files and other configuration actions
15248 from templates according to the current configuration. Unless the files
15249 and actions are specified as TAGs, all are instantiated by default.
15251 Usage: $0 [OPTION]... [TAG]...
15253 -h, --help print this help, then exit
15254 -V, --version print version number and configuration settings, then exit
15255 --config print configuration, then exit
15256 -q, --quiet, --silent
15257 do not print progress messages
15258 -d, --debug don't remove temporary files
15259 --recheck update $as_me by reconfiguring in the same conditions
15260 --file=FILE[:TEMPLATE]
15261 instantiate the configuration file FILE
15262 --header=FILE[:TEMPLATE]
15263 instantiate the configuration header FILE
15265 Configuration files:
15266 $config_files
15268 Configuration headers:
15269 $config_headers
15271 Configuration commands:
15272 $config_commands
15274 Report bugs to <pekka.jaaskelainen@parmance.com>."
15276 _ACEOF
15277 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15278 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15279 ac_cs_version="\\
15280 phsa HSAIL runtime library config.status 1.0
15281 configured by $0, generated by GNU Autoconf 2.69,
15282 with options \\"\$ac_cs_config\\"
15284 Copyright (C) 2012 Free Software Foundation, Inc.
15285 This config.status script is free software; the Free Software Foundation
15286 gives unlimited permission to copy, distribute and modify it."
15288 ac_pwd='$ac_pwd'
15289 srcdir='$srcdir'
15290 INSTALL='$INSTALL'
15291 MKDIR_P='$MKDIR_P'
15292 AWK='$AWK'
15293 test -n "\$AWK" || AWK=awk
15294 _ACEOF
15296 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15297 # The default lists apply if the user does not specify any file.
15298 ac_need_defaults=:
15299 while test $# != 0
15301 case $1 in
15302 --*=?*)
15303 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15304 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15305 ac_shift=:
15307 --*=)
15308 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15309 ac_optarg=
15310 ac_shift=:
15313 ac_option=$1
15314 ac_optarg=$2
15315 ac_shift=shift
15317 esac
15319 case $ac_option in
15320 # Handling of the options.
15321 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15322 ac_cs_recheck=: ;;
15323 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15324 $as_echo "$ac_cs_version"; exit ;;
15325 --config | --confi | --conf | --con | --co | --c )
15326 $as_echo "$ac_cs_config"; exit ;;
15327 --debug | --debu | --deb | --de | --d | -d )
15328 debug=: ;;
15329 --file | --fil | --fi | --f )
15330 $ac_shift
15331 case $ac_optarg in
15332 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15333 '') as_fn_error $? "missing file argument" ;;
15334 esac
15335 as_fn_append CONFIG_FILES " '$ac_optarg'"
15336 ac_need_defaults=false;;
15337 --header | --heade | --head | --hea )
15338 $ac_shift
15339 case $ac_optarg in
15340 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15341 esac
15342 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15343 ac_need_defaults=false;;
15344 --he | --h)
15345 # Conflict between --help and --header
15346 as_fn_error $? "ambiguous option: \`$1'
15347 Try \`$0 --help' for more information.";;
15348 --help | --hel | -h )
15349 $as_echo "$ac_cs_usage"; exit ;;
15350 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15351 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15352 ac_cs_silent=: ;;
15354 # This is an error.
15355 -*) as_fn_error $? "unrecognized option: \`$1'
15356 Try \`$0 --help' for more information." ;;
15358 *) as_fn_append ac_config_targets " $1"
15359 ac_need_defaults=false ;;
15361 esac
15362 shift
15363 done
15365 ac_configure_extra_args=
15367 if $ac_cs_silent; then
15368 exec 6>/dev/null
15369 ac_configure_extra_args="$ac_configure_extra_args --silent"
15372 _ACEOF
15373 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15374 if \$ac_cs_recheck; then
15375 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15376 shift
15377 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15378 CONFIG_SHELL='$SHELL'
15379 export CONFIG_SHELL
15380 exec "\$@"
15383 _ACEOF
15384 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15385 exec 5>>config.log
15387 echo
15388 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15389 ## Running $as_me. ##
15390 _ASBOX
15391 $as_echo "$ac_log"
15392 } >&5
15394 _ACEOF
15395 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15397 # INIT-COMMANDS
15399 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15402 # The HP-UX ksh and POSIX shell print the target directory to stdout
15403 # if CDPATH is set.
15404 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15406 sed_quote_subst='$sed_quote_subst'
15407 double_quote_subst='$double_quote_subst'
15408 delay_variable_subst='$delay_variable_subst'
15409 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15410 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15411 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15412 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15413 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15414 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15415 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15416 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15417 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15418 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15419 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15420 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15421 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15422 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15423 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15424 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15425 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15426 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15427 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15428 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15429 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15430 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15431 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15432 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15433 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15434 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15435 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15436 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15437 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15438 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15439 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15440 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15441 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15442 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15443 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15444 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15445 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15446 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15447 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15448 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15449 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15450 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15451 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15452 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15453 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15454 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15455 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15456 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15457 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"`'
15458 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15459 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15460 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15461 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15462 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15463 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15464 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15465 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15466 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15467 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15468 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15469 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15470 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15471 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15472 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15473 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15474 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15475 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15476 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15477 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15478 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15479 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15480 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15481 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15482 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15483 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15484 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15485 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15486 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15487 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15488 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15489 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
15490 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15491 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15492 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15493 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15494 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15495 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15496 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15497 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15498 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
15499 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15500 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15501 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15502 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15503 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15504 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15505 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15506 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15507 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15508 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15509 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15510 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15511 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15512 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15513 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15514 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15515 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15516 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15517 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15518 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15519 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15520 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15521 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15522 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
15523 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15524 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15525 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15526 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15527 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15528 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15529 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
15530 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
15531 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
15532 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
15533 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
15534 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
15535 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
15536 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
15537 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15538 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15539 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
15540 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
15541 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
15542 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
15543 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
15544 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
15545 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
15546 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
15547 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
15548 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
15549 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
15550 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
15551 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15552 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15553 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15554 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15555 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15556 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15557 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
15558 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
15559 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
15560 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
15561 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
15562 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
15563 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
15564 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
15565 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
15566 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
15567 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
15568 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
15569 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
15570 fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
15571 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
15572 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15573 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
15574 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
15575 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15576 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
15577 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
15578 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
15579 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
15580 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
15581 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
15582 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
15583 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
15585 LTCC='$LTCC'
15586 LTCFLAGS='$LTCFLAGS'
15587 compiler='$compiler_DEFAULT'
15589 # A function that is used when there is no print builtin or printf.
15590 func_fallback_echo ()
15592 eval 'cat <<_LTECHO_EOF
15594 _LTECHO_EOF'
15597 # Quote evaled strings.
15598 for var in SHELL \
15599 ECHO \
15600 SED \
15601 GREP \
15602 EGREP \
15603 FGREP \
15604 LD \
15605 NM \
15606 LN_S \
15607 lt_SP2NL \
15608 lt_NL2SP \
15609 reload_flag \
15610 OBJDUMP \
15611 deplibs_check_method \
15612 file_magic_cmd \
15613 AR \
15614 AR_FLAGS \
15615 STRIP \
15616 RANLIB \
15617 CC \
15618 CFLAGS \
15619 compiler \
15620 lt_cv_sys_global_symbol_pipe \
15621 lt_cv_sys_global_symbol_to_cdecl \
15622 lt_cv_sys_global_symbol_to_c_name_address \
15623 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15624 lt_prog_compiler_no_builtin_flag \
15625 lt_prog_compiler_wl \
15626 lt_prog_compiler_pic \
15627 lt_prog_compiler_static \
15628 lt_cv_prog_compiler_c_o \
15629 need_locks \
15630 DSYMUTIL \
15631 NMEDIT \
15632 LIPO \
15633 OTOOL \
15634 OTOOL64 \
15635 shrext_cmds \
15636 export_dynamic_flag_spec \
15637 whole_archive_flag_spec \
15638 compiler_needs_object \
15639 with_gnu_ld \
15640 allow_undefined_flag \
15641 no_undefined_flag \
15642 hardcode_libdir_flag_spec \
15643 hardcode_libdir_flag_spec_ld \
15644 hardcode_libdir_separator \
15645 fix_srcfile_path \
15646 exclude_expsyms \
15647 include_expsyms \
15648 file_list_spec \
15649 variables_saved_for_relink \
15650 libname_spec \
15651 library_names_spec \
15652 soname_spec \
15653 install_override_mode \
15654 finish_eval \
15655 old_striplib \
15656 striplib \
15657 compiler_lib_search_dirs \
15658 predep_objects \
15659 postdep_objects \
15660 predeps \
15661 postdeps \
15662 compiler_lib_search_path \
15663 LD_CXX \
15664 reload_flag_CXX \
15665 compiler_CXX \
15666 lt_prog_compiler_no_builtin_flag_CXX \
15667 lt_prog_compiler_wl_CXX \
15668 lt_prog_compiler_pic_CXX \
15669 lt_prog_compiler_static_CXX \
15670 lt_cv_prog_compiler_c_o_CXX \
15671 export_dynamic_flag_spec_CXX \
15672 whole_archive_flag_spec_CXX \
15673 compiler_needs_object_CXX \
15674 with_gnu_ld_CXX \
15675 allow_undefined_flag_CXX \
15676 no_undefined_flag_CXX \
15677 hardcode_libdir_flag_spec_CXX \
15678 hardcode_libdir_flag_spec_ld_CXX \
15679 hardcode_libdir_separator_CXX \
15680 fix_srcfile_path_CXX \
15681 exclude_expsyms_CXX \
15682 include_expsyms_CXX \
15683 file_list_spec_CXX \
15684 compiler_lib_search_dirs_CXX \
15685 predep_objects_CXX \
15686 postdep_objects_CXX \
15687 predeps_CXX \
15688 postdeps_CXX \
15689 compiler_lib_search_path_CXX; do
15690 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15691 *[\\\\\\\`\\"\\\$]*)
15692 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15695 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15697 esac
15698 done
15700 # Double-quote double-evaled strings.
15701 for var in reload_cmds \
15702 old_postinstall_cmds \
15703 old_postuninstall_cmds \
15704 old_archive_cmds \
15705 extract_expsyms_cmds \
15706 old_archive_from_new_cmds \
15707 old_archive_from_expsyms_cmds \
15708 archive_cmds \
15709 archive_expsym_cmds \
15710 module_cmds \
15711 module_expsym_cmds \
15712 export_symbols_cmds \
15713 prelink_cmds \
15714 postinstall_cmds \
15715 postuninstall_cmds \
15716 finish_cmds \
15717 sys_lib_search_path_spec \
15718 sys_lib_dlsearch_path_spec \
15719 reload_cmds_CXX \
15720 old_archive_cmds_CXX \
15721 old_archive_from_new_cmds_CXX \
15722 old_archive_from_expsyms_cmds_CXX \
15723 archive_cmds_CXX \
15724 archive_expsym_cmds_CXX \
15725 module_cmds_CXX \
15726 module_expsym_cmds_CXX \
15727 export_symbols_cmds_CXX \
15728 prelink_cmds_CXX; do
15729 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15730 *[\\\\\\\`\\"\\\$]*)
15731 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
15734 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15736 esac
15737 done
15739 ac_aux_dir='$ac_aux_dir'
15740 xsi_shell='$xsi_shell'
15741 lt_shell_append='$lt_shell_append'
15743 # See if we are running on zsh, and set the options which allow our
15744 # commands through without removal of \ escapes INIT.
15745 if test -n "\${ZSH_VERSION+set}" ; then
15746 setopt NO_GLOB_SUBST
15750 PACKAGE='$PACKAGE'
15751 VERSION='$VERSION'
15752 TIMESTAMP='$TIMESTAMP'
15753 RM='$RM'
15754 ofile='$ofile'
15761 _ACEOF
15763 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15765 # Handling of arguments.
15766 for ac_config_target in $ac_config_targets
15768 case $ac_config_target in
15769 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15770 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15771 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15772 "target-config.h") CONFIG_HEADERS="$CONFIG_HEADERS target-config.h" ;;
15774 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15775 esac
15776 done
15779 # If the user did not use the arguments to specify the items to instantiate,
15780 # then the envvar interface is used. Set only those that are not.
15781 # We use the long form for the default assignment because of an extremely
15782 # bizarre bug on SunOS 4.1.3.
15783 if $ac_need_defaults; then
15784 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15785 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15786 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15789 # Have a temporary directory for convenience. Make it in the build tree
15790 # simply because there is no reason against having it here, and in addition,
15791 # creating and moving files from /tmp can sometimes cause problems.
15792 # Hook for its removal unless debugging.
15793 # Note that there is a small window in which the directory will not be cleaned:
15794 # after its creation but before its name has been assigned to `$tmp'.
15795 $debug ||
15797 tmp= ac_tmp=
15798 trap 'exit_status=$?
15799 : "${ac_tmp:=$tmp}"
15800 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15802 trap 'as_fn_exit 1' 1 2 13 15
15804 # Create a (secure) tmp directory for tmp files.
15807 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15808 test -d "$tmp"
15809 } ||
15811 tmp=./conf$$-$RANDOM
15812 (umask 077 && mkdir "$tmp")
15813 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15814 ac_tmp=$tmp
15816 # Set up the scripts for CONFIG_FILES section.
15817 # No need to generate them if there are no CONFIG_FILES.
15818 # This happens for instance with `./config.status config.h'.
15819 if test -n "$CONFIG_FILES"; then
15822 ac_cr=`echo X | tr X '\015'`
15823 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15824 # But we know of no other shell where ac_cr would be empty at this
15825 # point, so we can use a bashism as a fallback.
15826 if test "x$ac_cr" = x; then
15827 eval ac_cr=\$\'\\r\'
15829 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15830 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15831 ac_cs_awk_cr='\\r'
15832 else
15833 ac_cs_awk_cr=$ac_cr
15836 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
15837 _ACEOF
15841 echo "cat >conf$$subs.awk <<_ACEOF" &&
15842 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15843 echo "_ACEOF"
15844 } >conf$$subs.sh ||
15845 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15846 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15847 ac_delim='%!_!# '
15848 for ac_last_try in false false false false false :; do
15849 . ./conf$$subs.sh ||
15850 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15852 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15853 if test $ac_delim_n = $ac_delim_num; then
15854 break
15855 elif $ac_last_try; then
15856 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15857 else
15858 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15860 done
15861 rm -f conf$$subs.sh
15863 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15864 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
15865 _ACEOF
15866 sed -n '
15868 s/^/S["/; s/!.*/"]=/
15871 s/^[^!]*!//
15872 :repl
15873 t repl
15874 s/'"$ac_delim"'$//
15875 t delim
15878 s/\(.\{148\}\)..*/\1/
15879 t more1
15880 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15883 b repl
15884 :more1
15885 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15888 s/.\{148\}//
15889 t nl
15890 :delim
15892 s/\(.\{148\}\)..*/\1/
15893 t more2
15894 s/["\\]/\\&/g; s/^/"/; s/$/"/
15897 :more2
15898 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15901 s/.\{148\}//
15902 t delim
15903 ' <conf$$subs.awk | sed '
15904 /^[^""]/{
15906 s/\n//
15908 ' >>$CONFIG_STATUS || ac_write_fail=1
15909 rm -f conf$$subs.awk
15910 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15911 _ACAWK
15912 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
15913 for (key in S) S_is_set[key] = 1
15914 FS = "\a"
15918 line = $ 0
15919 nfields = split(line, field, "@")
15920 substed = 0
15921 len = length(field[1])
15922 for (i = 2; i < nfields; i++) {
15923 key = field[i]
15924 keylen = length(key)
15925 if (S_is_set[key]) {
15926 value = S[key]
15927 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15928 len += length(value) + length(field[++i])
15929 substed = 1
15930 } else
15931 len += 1 + keylen
15934 print line
15937 _ACAWK
15938 _ACEOF
15939 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15940 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15941 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15942 else
15944 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
15945 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
15946 _ACEOF
15948 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15949 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
15950 # trailing colons and then remove the whole line if VPATH becomes empty
15951 # (actually we leave an empty line to preserve line numbers).
15952 if test "x$srcdir" = x.; then
15953 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
15955 s///
15956 s/^/:/
15957 s/[ ]*$/:/
15958 s/:\$(srcdir):/:/g
15959 s/:\${srcdir}:/:/g
15960 s/:@srcdir@:/:/g
15961 s/^:*//
15962 s/:*$//
15964 s/\(=[ ]*\).*/\1/
15966 s/\n//
15967 s/^[^=]*=[ ]*$//
15971 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15972 fi # test -n "$CONFIG_FILES"
15974 # Set up the scripts for CONFIG_HEADERS section.
15975 # No need to generate them if there are no CONFIG_HEADERS.
15976 # This happens for instance with `./config.status Makefile'.
15977 if test -n "$CONFIG_HEADERS"; then
15978 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
15979 BEGIN {
15980 _ACEOF
15982 # Transform confdefs.h into an awk script `defines.awk', embedded as
15983 # here-document in config.status, that substitutes the proper values into
15984 # config.h.in to produce config.h.
15986 # Create a delimiter string that does not exist in confdefs.h, to ease
15987 # handling of long lines.
15988 ac_delim='%!_!# '
15989 for ac_last_try in false false :; do
15990 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
15991 if test -z "$ac_tt"; then
15992 break
15993 elif $ac_last_try; then
15994 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
15995 else
15996 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15998 done
16000 # For the awk script, D is an array of macro values keyed by name,
16001 # likewise P contains macro parameters if any. Preserve backslash
16002 # newline sequences.
16004 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16005 sed -n '
16006 s/.\{148\}/&'"$ac_delim"'/g
16007 t rset
16008 :rset
16009 s/^[ ]*#[ ]*define[ ][ ]*/ /
16010 t def
16012 :def
16013 s/\\$//
16014 t bsnl
16015 s/["\\]/\\&/g
16016 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16017 D["\1"]=" \3"/p
16018 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16020 :bsnl
16021 s/["\\]/\\&/g
16022 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16023 D["\1"]=" \3\\\\\\n"\\/p
16024 t cont
16025 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16026 t cont
16028 :cont
16030 s/.\{148\}/&'"$ac_delim"'/g
16031 t clear
16032 :clear
16033 s/\\$//
16034 t bsnlc
16035 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16037 :bsnlc
16038 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16039 b cont
16040 ' <confdefs.h | sed '
16041 s/'"$ac_delim"'/"\\\
16042 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16044 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16045 for (key in D) D_is_set[key] = 1
16046 FS = "\a"
16048 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16049 line = \$ 0
16050 split(line, arg, " ")
16051 if (arg[1] == "#") {
16052 defundef = arg[2]
16053 mac1 = arg[3]
16054 } else {
16055 defundef = substr(arg[1], 2)
16056 mac1 = arg[2]
16058 split(mac1, mac2, "(") #)
16059 macro = mac2[1]
16060 prefix = substr(line, 1, index(line, defundef) - 1)
16061 if (D_is_set[macro]) {
16062 # Preserve the white space surrounding the "#".
16063 print prefix "define", macro P[macro] D[macro]
16064 next
16065 } else {
16066 # Replace #undef with comments. This is necessary, for example,
16067 # in the case of _POSIX_SOURCE, which is predefined and required
16068 # on some systems where configure will not decide to define it.
16069 if (defundef == "undef") {
16070 print "/*", prefix defundef, macro, "*/"
16071 next
16075 { print }
16076 _ACAWK
16077 _ACEOF
16078 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16079 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16080 fi # test -n "$CONFIG_HEADERS"
16083 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16084 shift
16085 for ac_tag
16087 case $ac_tag in
16088 :[FHLC]) ac_mode=$ac_tag; continue;;
16089 esac
16090 case $ac_mode$ac_tag in
16091 :[FHL]*:*);;
16092 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16093 :[FH]-) ac_tag=-:-;;
16094 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16095 esac
16096 ac_save_IFS=$IFS
16097 IFS=:
16098 set x $ac_tag
16099 IFS=$ac_save_IFS
16100 shift
16101 ac_file=$1
16102 shift
16104 case $ac_mode in
16105 :L) ac_source=$1;;
16106 :[FH])
16107 ac_file_inputs=
16108 for ac_f
16110 case $ac_f in
16111 -) ac_f="$ac_tmp/stdin";;
16112 *) # Look for the file first in the build tree, then in the source tree
16113 # (if the path is not absolute). The absolute path cannot be DOS-style,
16114 # because $ac_f cannot contain `:'.
16115 test -f "$ac_f" ||
16116 case $ac_f in
16117 [\\/$]*) false;;
16118 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16119 esac ||
16120 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16121 esac
16122 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16123 as_fn_append ac_file_inputs " '$ac_f'"
16124 done
16126 # Let's still pretend it is `configure' which instantiates (i.e., don't
16127 # use $as_me), people would be surprised to read:
16128 # /* config.h. Generated by config.status. */
16129 configure_input='Generated from '`
16130 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16131 `' by configure.'
16132 if test x"$ac_file" != x-; then
16133 configure_input="$ac_file. $configure_input"
16134 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16135 $as_echo "$as_me: creating $ac_file" >&6;}
16137 # Neutralize special characters interpreted by sed in replacement strings.
16138 case $configure_input in #(
16139 *\&* | *\|* | *\\* )
16140 ac_sed_conf_input=`$as_echo "$configure_input" |
16141 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16142 *) ac_sed_conf_input=$configure_input;;
16143 esac
16145 case $ac_tag in
16146 *:-:* | *:-) cat >"$ac_tmp/stdin" \
16147 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16148 esac
16150 esac
16152 ac_dir=`$as_dirname -- "$ac_file" ||
16153 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16154 X"$ac_file" : 'X\(//\)[^/]' \| \
16155 X"$ac_file" : 'X\(//\)$' \| \
16156 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16157 $as_echo X"$ac_file" |
16158 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16159 s//\1/
16162 /^X\(\/\/\)[^/].*/{
16163 s//\1/
16166 /^X\(\/\/\)$/{
16167 s//\1/
16170 /^X\(\/\).*/{
16171 s//\1/
16174 s/.*/./; q'`
16175 as_dir="$ac_dir"; as_fn_mkdir_p
16176 ac_builddir=.
16178 case "$ac_dir" in
16179 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16181 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16182 # A ".." for each directory in $ac_dir_suffix.
16183 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16184 case $ac_top_builddir_sub in
16185 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16186 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16187 esac ;;
16188 esac
16189 ac_abs_top_builddir=$ac_pwd
16190 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16191 # for backward compatibility:
16192 ac_top_builddir=$ac_top_build_prefix
16194 case $srcdir in
16195 .) # We are building in place.
16196 ac_srcdir=.
16197 ac_top_srcdir=$ac_top_builddir_sub
16198 ac_abs_top_srcdir=$ac_pwd ;;
16199 [\\/]* | ?:[\\/]* ) # Absolute name.
16200 ac_srcdir=$srcdir$ac_dir_suffix;
16201 ac_top_srcdir=$srcdir
16202 ac_abs_top_srcdir=$srcdir ;;
16203 *) # Relative name.
16204 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16205 ac_top_srcdir=$ac_top_build_prefix$srcdir
16206 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16207 esac
16208 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16211 case $ac_mode in
16214 # CONFIG_FILE
16217 case $INSTALL in
16218 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16219 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16220 esac
16221 ac_MKDIR_P=$MKDIR_P
16222 case $MKDIR_P in
16223 [\\/$]* | ?:[\\/]* ) ;;
16224 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16225 esac
16226 _ACEOF
16228 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16229 # If the template does not know about datarootdir, expand it.
16230 # FIXME: This hack should be removed a few years after 2.60.
16231 ac_datarootdir_hack=; ac_datarootdir_seen=
16232 ac_sed_dataroot='
16233 /datarootdir/ {
16237 /@datadir@/p
16238 /@docdir@/p
16239 /@infodir@/p
16240 /@localedir@/p
16241 /@mandir@/p'
16242 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16243 *datarootdir*) ac_datarootdir_seen=yes;;
16244 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16245 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16246 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16247 _ACEOF
16248 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16249 ac_datarootdir_hack='
16250 s&@datadir@&$datadir&g
16251 s&@docdir@&$docdir&g
16252 s&@infodir@&$infodir&g
16253 s&@localedir@&$localedir&g
16254 s&@mandir@&$mandir&g
16255 s&\\\${datarootdir}&$datarootdir&g' ;;
16256 esac
16257 _ACEOF
16259 # Neutralize VPATH when `$srcdir' = `.'.
16260 # Shell code in configure.ac might set extrasub.
16261 # FIXME: do we really want to maintain this feature?
16262 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16263 ac_sed_extra="$ac_vpsub
16264 $extrasub
16265 _ACEOF
16266 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16268 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16269 s|@configure_input@|$ac_sed_conf_input|;t t
16270 s&@top_builddir@&$ac_top_builddir_sub&;t t
16271 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16272 s&@srcdir@&$ac_srcdir&;t t
16273 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16274 s&@top_srcdir@&$ac_top_srcdir&;t t
16275 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16276 s&@builddir@&$ac_builddir&;t t
16277 s&@abs_builddir@&$ac_abs_builddir&;t t
16278 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16279 s&@INSTALL@&$ac_INSTALL&;t t
16280 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16281 $ac_datarootdir_hack
16283 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16284 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16286 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16287 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16288 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16289 "$ac_tmp/out"`; test -z "$ac_out"; } &&
16290 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16291 which seems to be undefined. Please make sure it is defined" >&5
16292 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16293 which seems to be undefined. Please make sure it is defined" >&2;}
16295 rm -f "$ac_tmp/stdin"
16296 case $ac_file in
16297 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16298 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16299 esac \
16300 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16304 # CONFIG_HEADER
16306 if test x"$ac_file" != x-; then
16308 $as_echo "/* $configure_input */" \
16309 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16310 } >"$ac_tmp/config.h" \
16311 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16312 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16313 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16314 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16315 else
16316 rm -f "$ac_file"
16317 mv "$ac_tmp/config.h" "$ac_file" \
16318 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16320 else
16321 $as_echo "/* $configure_input */" \
16322 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16323 || as_fn_error $? "could not create -" "$LINENO" 5
16325 # Compute "$ac_file"'s index in $config_headers.
16326 _am_arg="$ac_file"
16327 _am_stamp_count=1
16328 for _am_header in $config_headers :; do
16329 case $_am_header in
16330 $_am_arg | $_am_arg:* )
16331 break ;;
16333 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16334 esac
16335 done
16336 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16337 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16338 X"$_am_arg" : 'X\(//\)[^/]' \| \
16339 X"$_am_arg" : 'X\(//\)$' \| \
16340 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16341 $as_echo X"$_am_arg" |
16342 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16343 s//\1/
16346 /^X\(\/\/\)[^/].*/{
16347 s//\1/
16350 /^X\(\/\/\)$/{
16351 s//\1/
16354 /^X\(\/\).*/{
16355 s//\1/
16358 s/.*/./; q'`/stamp-h$_am_stamp_count
16361 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16362 $as_echo "$as_me: executing $ac_file commands" >&6;}
16364 esac
16367 case $ac_file$ac_mode in
16368 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16369 # Older Autoconf quotes --file arguments for eval, but not when files
16370 # are listed without --file. Let's play safe and only enable the eval
16371 # if we detect the quoting.
16372 case $CONFIG_FILES in
16373 *\'*) eval set x "$CONFIG_FILES" ;;
16374 *) set x $CONFIG_FILES ;;
16375 esac
16376 shift
16377 for mf
16379 # Strip MF so we end up with the name of the file.
16380 mf=`echo "$mf" | sed -e 's/:.*$//'`
16381 # Check whether this is an Automake generated Makefile or not.
16382 # We used to match only the files named 'Makefile.in', but
16383 # some people rename them; so instead we look at the file content.
16384 # Grep'ing the first line is not enough: some people post-process
16385 # each Makefile.in and add a new line on top of each file to say so.
16386 # Grep'ing the whole file is not good either: AIX grep has a line
16387 # limit of 2048, but all sed's we know have understand at least 4000.
16388 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16389 dirpart=`$as_dirname -- "$mf" ||
16390 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16391 X"$mf" : 'X\(//\)[^/]' \| \
16392 X"$mf" : 'X\(//\)$' \| \
16393 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16394 $as_echo X"$mf" |
16395 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16396 s//\1/
16399 /^X\(\/\/\)[^/].*/{
16400 s//\1/
16403 /^X\(\/\/\)$/{
16404 s//\1/
16407 /^X\(\/\).*/{
16408 s//\1/
16411 s/.*/./; q'`
16412 else
16413 continue
16415 # Extract the definition of DEPDIR, am__include, and am__quote
16416 # from the Makefile without running 'make'.
16417 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16418 test -z "$DEPDIR" && continue
16419 am__include=`sed -n 's/^am__include = //p' < "$mf"`
16420 test -z "$am__include" && continue
16421 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16422 # Find all dependency output files, they are included files with
16423 # $(DEPDIR) in their names. We invoke sed twice because it is the
16424 # simplest approach to changing $(DEPDIR) to its actual value in the
16425 # expansion.
16426 for file in `sed -n "
16427 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16428 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
16429 # Make sure the directory exists.
16430 test -f "$dirpart/$file" && continue
16431 fdir=`$as_dirname -- "$file" ||
16432 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16433 X"$file" : 'X\(//\)[^/]' \| \
16434 X"$file" : 'X\(//\)$' \| \
16435 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16436 $as_echo X"$file" |
16437 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16438 s//\1/
16441 /^X\(\/\/\)[^/].*/{
16442 s//\1/
16445 /^X\(\/\/\)$/{
16446 s//\1/
16449 /^X\(\/\).*/{
16450 s//\1/
16453 s/.*/./; q'`
16454 as_dir=$dirpart/$fdir; as_fn_mkdir_p
16455 # echo "creating $dirpart/$file"
16456 echo '# dummy' > "$dirpart/$file"
16457 done
16458 done
16461 "libtool":C)
16463 # See if we are running on zsh, and set the options which allow our
16464 # commands through without removal of \ escapes.
16465 if test -n "${ZSH_VERSION+set}" ; then
16466 setopt NO_GLOB_SUBST
16469 cfgfile="${ofile}T"
16470 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16471 $RM "$cfgfile"
16473 cat <<_LT_EOF >> "$cfgfile"
16474 #! $SHELL
16476 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16477 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16478 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16479 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16481 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16482 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
16483 # Written by Gordon Matzigkeit, 1996
16485 # This file is part of GNU Libtool.
16487 # GNU Libtool is free software; you can redistribute it and/or
16488 # modify it under the terms of the GNU General Public License as
16489 # published by the Free Software Foundation; either version 2 of
16490 # the License, or (at your option) any later version.
16492 # As a special exception to the GNU General Public License,
16493 # if you distribute this file as part of a program or library that
16494 # is built using GNU Libtool, you may include this file under the
16495 # same distribution terms that you use for the rest of that program.
16497 # GNU Libtool is distributed in the hope that it will be useful,
16498 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16499 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16500 # GNU General Public License for more details.
16502 # You should have received a copy of the GNU General Public License
16503 # along with GNU Libtool; see the file COPYING. If not, a copy
16504 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16505 # obtained by writing to the Free Software Foundation, Inc.,
16506 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16509 # The names of the tagged configurations supported by this script.
16510 available_tags="CXX "
16512 # ### BEGIN LIBTOOL CONFIG
16514 # Which release of libtool.m4 was used?
16515 macro_version=$macro_version
16516 macro_revision=$macro_revision
16518 # Whether or not to build shared libraries.
16519 build_libtool_libs=$enable_shared
16521 # Whether or not to build static libraries.
16522 build_old_libs=$enable_static
16524 # What type of objects to build.
16525 pic_mode=$pic_mode
16527 # Whether or not to optimize for fast installation.
16528 fast_install=$enable_fast_install
16530 # Shell to use when invoking shell scripts.
16531 SHELL=$lt_SHELL
16533 # An echo program that protects backslashes.
16534 ECHO=$lt_ECHO
16536 # The host system.
16537 host_alias=$host_alias
16538 host=$host
16539 host_os=$host_os
16541 # The build system.
16542 build_alias=$build_alias
16543 build=$build
16544 build_os=$build_os
16546 # A sed program that does not truncate output.
16547 SED=$lt_SED
16549 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16550 Xsed="\$SED -e 1s/^X//"
16552 # A grep program that handles long lines.
16553 GREP=$lt_GREP
16555 # An ERE matcher.
16556 EGREP=$lt_EGREP
16558 # A literal string matcher.
16559 FGREP=$lt_FGREP
16561 # A BSD- or MS-compatible name lister.
16562 NM=$lt_NM
16564 # Whether we need soft or hard links.
16565 LN_S=$lt_LN_S
16567 # What is the maximum length of a command?
16568 max_cmd_len=$max_cmd_len
16570 # Object file suffix (normally "o").
16571 objext=$ac_objext
16573 # Executable file suffix (normally "").
16574 exeext=$exeext
16576 # whether the shell understands "unset".
16577 lt_unset=$lt_unset
16579 # turn spaces into newlines.
16580 SP2NL=$lt_lt_SP2NL
16582 # turn newlines into spaces.
16583 NL2SP=$lt_lt_NL2SP
16585 # An object symbol dumper.
16586 OBJDUMP=$lt_OBJDUMP
16588 # Method to check whether dependent libraries are shared objects.
16589 deplibs_check_method=$lt_deplibs_check_method
16591 # Command to use when deplibs_check_method == "file_magic".
16592 file_magic_cmd=$lt_file_magic_cmd
16594 # The archiver.
16595 AR=$lt_AR
16596 AR_FLAGS=$lt_AR_FLAGS
16598 # A symbol stripping program.
16599 STRIP=$lt_STRIP
16601 # Commands used to install an old-style archive.
16602 RANLIB=$lt_RANLIB
16603 old_postinstall_cmds=$lt_old_postinstall_cmds
16604 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16606 # Whether to use a lock for old archive extraction.
16607 lock_old_archive_extraction=$lock_old_archive_extraction
16609 # A C compiler.
16610 LTCC=$lt_CC
16612 # LTCC compiler flags.
16613 LTCFLAGS=$lt_CFLAGS
16615 # Take the output of nm and produce a listing of raw symbols and C names.
16616 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16618 # Transform the output of nm in a proper C declaration.
16619 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16621 # Transform the output of nm in a C name address pair.
16622 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16624 # Transform the output of nm in a C name address pair when lib prefix is needed.
16625 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16627 # The name of the directory that contains temporary libtool files.
16628 objdir=$objdir
16630 # Used to examine libraries when file_magic_cmd begins with "file".
16631 MAGIC_CMD=$MAGIC_CMD
16633 # Must we lock files when doing compilation?
16634 need_locks=$lt_need_locks
16636 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16637 DSYMUTIL=$lt_DSYMUTIL
16639 # Tool to change global to local symbols on Mac OS X.
16640 NMEDIT=$lt_NMEDIT
16642 # Tool to manipulate fat objects and archives on Mac OS X.
16643 LIPO=$lt_LIPO
16645 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
16646 OTOOL=$lt_OTOOL
16648 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16649 OTOOL64=$lt_OTOOL64
16651 # Old archive suffix (normally "a").
16652 libext=$libext
16654 # Shared library suffix (normally ".so").
16655 shrext_cmds=$lt_shrext_cmds
16657 # The commands to extract the exported symbol list from a shared archive.
16658 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16660 # Variables whose values should be saved in libtool wrapper scripts and
16661 # restored at link time.
16662 variables_saved_for_relink=$lt_variables_saved_for_relink
16664 # Do we need the "lib" prefix for modules?
16665 need_lib_prefix=$need_lib_prefix
16667 # Do we need a version for libraries?
16668 need_version=$need_version
16670 # Library versioning type.
16671 version_type=$version_type
16673 # Shared library runtime path variable.
16674 runpath_var=$runpath_var
16676 # Shared library path variable.
16677 shlibpath_var=$shlibpath_var
16679 # Is shlibpath searched before the hard-coded library search path?
16680 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16682 # Format of library name prefix.
16683 libname_spec=$lt_libname_spec
16685 # List of archive names. First name is the real one, the rest are links.
16686 # The last name is the one that the linker finds with -lNAME
16687 library_names_spec=$lt_library_names_spec
16689 # The coded name of the library, if different from the real name.
16690 soname_spec=$lt_soname_spec
16692 # Permission mode override for installation of shared libraries.
16693 install_override_mode=$lt_install_override_mode
16695 # Command to use after installation of a shared archive.
16696 postinstall_cmds=$lt_postinstall_cmds
16698 # Command to use after uninstallation of a shared archive.
16699 postuninstall_cmds=$lt_postuninstall_cmds
16701 # Commands used to finish a libtool library installation in a directory.
16702 finish_cmds=$lt_finish_cmds
16704 # As "finish_cmds", except a single script fragment to be evaled but
16705 # not shown.
16706 finish_eval=$lt_finish_eval
16708 # Whether we should hardcode library paths into libraries.
16709 hardcode_into_libs=$hardcode_into_libs
16711 # Compile-time system search path for libraries.
16712 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16714 # Run-time system search path for libraries.
16715 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16717 # Whether dlopen is supported.
16718 dlopen_support=$enable_dlopen
16720 # Whether dlopen of programs is supported.
16721 dlopen_self=$enable_dlopen_self
16723 # Whether dlopen of statically linked programs is supported.
16724 dlopen_self_static=$enable_dlopen_self_static
16726 # Commands to strip libraries.
16727 old_striplib=$lt_old_striplib
16728 striplib=$lt_striplib
16731 # The linker used to build libraries.
16732 LD=$lt_LD
16734 # How to create reloadable object files.
16735 reload_flag=$lt_reload_flag
16736 reload_cmds=$lt_reload_cmds
16738 # Commands used to build an old-style archive.
16739 old_archive_cmds=$lt_old_archive_cmds
16741 # A language specific compiler.
16742 CC=$lt_compiler
16744 # Is the compiler the GNU compiler?
16745 with_gcc=$GCC
16747 # Compiler flag to turn off builtin functions.
16748 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16750 # How to pass a linker flag through the compiler.
16751 wl=$lt_lt_prog_compiler_wl
16753 # Additional compiler flags for building library objects.
16754 pic_flag=$lt_lt_prog_compiler_pic
16756 # Compiler flag to prevent dynamic linking.
16757 link_static_flag=$lt_lt_prog_compiler_static
16759 # Does compiler simultaneously support -c and -o options?
16760 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16762 # Whether or not to add -lc for building shared libraries.
16763 build_libtool_need_lc=$archive_cmds_need_lc
16765 # Whether or not to disallow shared libs when runtime libs are static.
16766 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16768 # Compiler flag to allow reflexive dlopens.
16769 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16771 # Compiler flag to generate shared objects directly from archives.
16772 whole_archive_flag_spec=$lt_whole_archive_flag_spec
16774 # Whether the compiler copes with passing no objects directly.
16775 compiler_needs_object=$lt_compiler_needs_object
16777 # Create an old-style archive from a shared archive.
16778 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16780 # Create a temporary old-style archive to link instead of a shared archive.
16781 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16783 # Commands used to build a shared archive.
16784 archive_cmds=$lt_archive_cmds
16785 archive_expsym_cmds=$lt_archive_expsym_cmds
16787 # Commands used to build a loadable module if different from building
16788 # a shared archive.
16789 module_cmds=$lt_module_cmds
16790 module_expsym_cmds=$lt_module_expsym_cmds
16792 # Whether we are building with GNU ld or not.
16793 with_gnu_ld=$lt_with_gnu_ld
16795 # Flag that allows shared libraries with undefined symbols to be built.
16796 allow_undefined_flag=$lt_allow_undefined_flag
16798 # Flag that enforces no undefined symbols.
16799 no_undefined_flag=$lt_no_undefined_flag
16801 # Flag to hardcode \$libdir into a binary during linking.
16802 # This must work even if \$libdir does not exist
16803 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16805 # If ld is used when linking, flag to hardcode \$libdir into a binary
16806 # during linking. This must work even if \$libdir does not exist.
16807 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
16809 # Whether we need a single "-rpath" flag with a separated argument.
16810 hardcode_libdir_separator=$lt_hardcode_libdir_separator
16812 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16813 # DIR into the resulting binary.
16814 hardcode_direct=$hardcode_direct
16816 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16817 # DIR into the resulting binary and the resulting library dependency is
16818 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16819 # library is relocated.
16820 hardcode_direct_absolute=$hardcode_direct_absolute
16822 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16823 # into the resulting binary.
16824 hardcode_minus_L=$hardcode_minus_L
16826 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16827 # into the resulting binary.
16828 hardcode_shlibpath_var=$hardcode_shlibpath_var
16830 # Set to "yes" if building a shared library automatically hardcodes DIR
16831 # into the library and all subsequent libraries and executables linked
16832 # against it.
16833 hardcode_automatic=$hardcode_automatic
16835 # Set to yes if linker adds runtime paths of dependent libraries
16836 # to runtime path list.
16837 inherit_rpath=$inherit_rpath
16839 # Whether libtool must link a program against all its dependency libraries.
16840 link_all_deplibs=$link_all_deplibs
16842 # Fix the shell variable \$srcfile for the compiler.
16843 fix_srcfile_path=$lt_fix_srcfile_path
16845 # Set to "yes" if exported symbols are required.
16846 always_export_symbols=$always_export_symbols
16848 # The commands to list exported symbols.
16849 export_symbols_cmds=$lt_export_symbols_cmds
16851 # Symbols that should not be listed in the preloaded symbols.
16852 exclude_expsyms=$lt_exclude_expsyms
16854 # Symbols that must always be exported.
16855 include_expsyms=$lt_include_expsyms
16857 # Commands necessary for linking programs (against libraries) with templates.
16858 prelink_cmds=$lt_prelink_cmds
16860 # Specify filename containing input files.
16861 file_list_spec=$lt_file_list_spec
16863 # How to hardcode a shared library path into an executable.
16864 hardcode_action=$hardcode_action
16866 # The directories searched by this compiler when creating a shared library.
16867 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
16869 # Dependencies to place before and after the objects being linked to
16870 # create a shared library.
16871 predep_objects=$lt_predep_objects
16872 postdep_objects=$lt_postdep_objects
16873 predeps=$lt_predeps
16874 postdeps=$lt_postdeps
16876 # The library search path used internally by the compiler when linking
16877 # a shared library.
16878 compiler_lib_search_path=$lt_compiler_lib_search_path
16880 # ### END LIBTOOL CONFIG
16882 _LT_EOF
16884 case $host_os in
16885 aix3*)
16886 cat <<\_LT_EOF >> "$cfgfile"
16887 # AIX sometimes has problems with the GCC collect2 program. For some
16888 # reason, if we set the COLLECT_NAMES environment variable, the problems
16889 # vanish in a puff of smoke.
16890 if test "X${COLLECT_NAMES+set}" != Xset; then
16891 COLLECT_NAMES=
16892 export COLLECT_NAMES
16894 _LT_EOF
16896 esac
16899 ltmain="$ac_aux_dir/ltmain.sh"
16902 # We use sed instead of cat because bash on DJGPP gets confused if
16903 # if finds mixed CR/LF and LF-only lines. Since sed operates in
16904 # text mode, it properly converts lines to CR/LF. This bash problem
16905 # is reportedly fixed, but why not run on old versions too?
16906 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
16907 || (rm -f "$cfgfile"; exit 1)
16909 case $xsi_shell in
16910 yes)
16911 cat << \_LT_EOF >> "$cfgfile"
16913 # func_dirname file append nondir_replacement
16914 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
16915 # otherwise set result to NONDIR_REPLACEMENT.
16916 func_dirname ()
16918 case ${1} in
16919 */*) func_dirname_result="${1%/*}${2}" ;;
16920 * ) func_dirname_result="${3}" ;;
16921 esac
16924 # func_basename file
16925 func_basename ()
16927 func_basename_result="${1##*/}"
16930 # func_dirname_and_basename file append nondir_replacement
16931 # perform func_basename and func_dirname in a single function
16932 # call:
16933 # dirname: Compute the dirname of FILE. If nonempty,
16934 # add APPEND to the result, otherwise set result
16935 # to NONDIR_REPLACEMENT.
16936 # value returned in "$func_dirname_result"
16937 # basename: Compute filename of FILE.
16938 # value retuned in "$func_basename_result"
16939 # Implementation must be kept synchronized with func_dirname
16940 # and func_basename. For efficiency, we do not delegate to
16941 # those functions but instead duplicate the functionality here.
16942 func_dirname_and_basename ()
16944 case ${1} in
16945 */*) func_dirname_result="${1%/*}${2}" ;;
16946 * ) func_dirname_result="${3}" ;;
16947 esac
16948 func_basename_result="${1##*/}"
16951 # func_stripname prefix suffix name
16952 # strip PREFIX and SUFFIX off of NAME.
16953 # PREFIX and SUFFIX must not contain globbing or regex special
16954 # characters, hashes, percent signs, but SUFFIX may contain a leading
16955 # dot (in which case that matches only a dot).
16956 func_stripname ()
16958 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
16959 # positional parameters, so assign one to ordinary parameter first.
16960 func_stripname_result=${3}
16961 func_stripname_result=${func_stripname_result#"${1}"}
16962 func_stripname_result=${func_stripname_result%"${2}"}
16965 # func_opt_split
16966 func_opt_split ()
16968 func_opt_split_opt=${1%%=*}
16969 func_opt_split_arg=${1#*=}
16972 # func_lo2o object
16973 func_lo2o ()
16975 case ${1} in
16976 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
16977 *) func_lo2o_result=${1} ;;
16978 esac
16981 # func_xform libobj-or-source
16982 func_xform ()
16984 func_xform_result=${1%.*}.lo
16987 # func_arith arithmetic-term...
16988 func_arith ()
16990 func_arith_result=$(( $* ))
16993 # func_len string
16994 # STRING may not start with a hyphen.
16995 func_len ()
16997 func_len_result=${#1}
17000 _LT_EOF
17002 *) # Bourne compatible functions.
17003 cat << \_LT_EOF >> "$cfgfile"
17005 # func_dirname file append nondir_replacement
17006 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
17007 # otherwise set result to NONDIR_REPLACEMENT.
17008 func_dirname ()
17010 # Extract subdirectory from the argument.
17011 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
17012 if test "X$func_dirname_result" = "X${1}"; then
17013 func_dirname_result="${3}"
17014 else
17015 func_dirname_result="$func_dirname_result${2}"
17019 # func_basename file
17020 func_basename ()
17022 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
17026 # func_stripname prefix suffix name
17027 # strip PREFIX and SUFFIX off of NAME.
17028 # PREFIX and SUFFIX must not contain globbing or regex special
17029 # characters, hashes, percent signs, but SUFFIX may contain a leading
17030 # dot (in which case that matches only a dot).
17031 # func_strip_suffix prefix name
17032 func_stripname ()
17034 case ${2} in
17035 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
17036 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
17037 esac
17040 # sed scripts:
17041 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
17042 my_sed_long_arg='1s/^-[^=]*=//'
17044 # func_opt_split
17045 func_opt_split ()
17047 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
17048 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
17051 # func_lo2o object
17052 func_lo2o ()
17054 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
17057 # func_xform libobj-or-source
17058 func_xform ()
17060 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
17063 # func_arith arithmetic-term...
17064 func_arith ()
17066 func_arith_result=`expr "$@"`
17069 # func_len string
17070 # STRING may not start with a hyphen.
17071 func_len ()
17073 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
17076 _LT_EOF
17077 esac
17079 case $lt_shell_append in
17080 yes)
17081 cat << \_LT_EOF >> "$cfgfile"
17083 # func_append var value
17084 # Append VALUE to the end of shell variable VAR.
17085 func_append ()
17087 eval "$1+=\$2"
17089 _LT_EOF
17092 cat << \_LT_EOF >> "$cfgfile"
17094 # func_append var value
17095 # Append VALUE to the end of shell variable VAR.
17096 func_append ()
17098 eval "$1=\$$1\$2"
17101 _LT_EOF
17103 esac
17106 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
17107 || (rm -f "$cfgfile"; exit 1)
17109 mv -f "$cfgfile" "$ofile" ||
17110 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17111 chmod +x "$ofile"
17114 cat <<_LT_EOF >> "$ofile"
17116 # ### BEGIN LIBTOOL TAG CONFIG: CXX
17118 # The linker used to build libraries.
17119 LD=$lt_LD_CXX
17121 # How to create reloadable object files.
17122 reload_flag=$lt_reload_flag_CXX
17123 reload_cmds=$lt_reload_cmds_CXX
17125 # Commands used to build an old-style archive.
17126 old_archive_cmds=$lt_old_archive_cmds_CXX
17128 # A language specific compiler.
17129 CC=$lt_compiler_CXX
17131 # Is the compiler the GNU compiler?
17132 with_gcc=$GCC_CXX
17134 # Compiler flag to turn off builtin functions.
17135 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
17137 # How to pass a linker flag through the compiler.
17138 wl=$lt_lt_prog_compiler_wl_CXX
17140 # Additional compiler flags for building library objects.
17141 pic_flag=$lt_lt_prog_compiler_pic_CXX
17143 # Compiler flag to prevent dynamic linking.
17144 link_static_flag=$lt_lt_prog_compiler_static_CXX
17146 # Does compiler simultaneously support -c and -o options?
17147 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
17149 # Whether or not to add -lc for building shared libraries.
17150 build_libtool_need_lc=$archive_cmds_need_lc_CXX
17152 # Whether or not to disallow shared libs when runtime libs are static.
17153 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
17155 # Compiler flag to allow reflexive dlopens.
17156 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
17158 # Compiler flag to generate shared objects directly from archives.
17159 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
17161 # Whether the compiler copes with passing no objects directly.
17162 compiler_needs_object=$lt_compiler_needs_object_CXX
17164 # Create an old-style archive from a shared archive.
17165 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
17167 # Create a temporary old-style archive to link instead of a shared archive.
17168 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
17170 # Commands used to build a shared archive.
17171 archive_cmds=$lt_archive_cmds_CXX
17172 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
17174 # Commands used to build a loadable module if different from building
17175 # a shared archive.
17176 module_cmds=$lt_module_cmds_CXX
17177 module_expsym_cmds=$lt_module_expsym_cmds_CXX
17179 # Whether we are building with GNU ld or not.
17180 with_gnu_ld=$lt_with_gnu_ld_CXX
17182 # Flag that allows shared libraries with undefined symbols to be built.
17183 allow_undefined_flag=$lt_allow_undefined_flag_CXX
17185 # Flag that enforces no undefined symbols.
17186 no_undefined_flag=$lt_no_undefined_flag_CXX
17188 # Flag to hardcode \$libdir into a binary during linking.
17189 # This must work even if \$libdir does not exist
17190 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
17192 # If ld is used when linking, flag to hardcode \$libdir into a binary
17193 # during linking. This must work even if \$libdir does not exist.
17194 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
17196 # Whether we need a single "-rpath" flag with a separated argument.
17197 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
17199 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17200 # DIR into the resulting binary.
17201 hardcode_direct=$hardcode_direct_CXX
17203 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17204 # DIR into the resulting binary and the resulting library dependency is
17205 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17206 # library is relocated.
17207 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
17209 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17210 # into the resulting binary.
17211 hardcode_minus_L=$hardcode_minus_L_CXX
17213 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17214 # into the resulting binary.
17215 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
17217 # Set to "yes" if building a shared library automatically hardcodes DIR
17218 # into the library and all subsequent libraries and executables linked
17219 # against it.
17220 hardcode_automatic=$hardcode_automatic_CXX
17222 # Set to yes if linker adds runtime paths of dependent libraries
17223 # to runtime path list.
17224 inherit_rpath=$inherit_rpath_CXX
17226 # Whether libtool must link a program against all its dependency libraries.
17227 link_all_deplibs=$link_all_deplibs_CXX
17229 # Fix the shell variable \$srcfile for the compiler.
17230 fix_srcfile_path=$lt_fix_srcfile_path_CXX
17232 # Set to "yes" if exported symbols are required.
17233 always_export_symbols=$always_export_symbols_CXX
17235 # The commands to list exported symbols.
17236 export_symbols_cmds=$lt_export_symbols_cmds_CXX
17238 # Symbols that should not be listed in the preloaded symbols.
17239 exclude_expsyms=$lt_exclude_expsyms_CXX
17241 # Symbols that must always be exported.
17242 include_expsyms=$lt_include_expsyms_CXX
17244 # Commands necessary for linking programs (against libraries) with templates.
17245 prelink_cmds=$lt_prelink_cmds_CXX
17247 # Specify filename containing input files.
17248 file_list_spec=$lt_file_list_spec_CXX
17250 # How to hardcode a shared library path into an executable.
17251 hardcode_action=$hardcode_action_CXX
17253 # The directories searched by this compiler when creating a shared library.
17254 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
17256 # Dependencies to place before and after the objects being linked to
17257 # create a shared library.
17258 predep_objects=$lt_predep_objects_CXX
17259 postdep_objects=$lt_postdep_objects_CXX
17260 predeps=$lt_predeps_CXX
17261 postdeps=$lt_postdeps_CXX
17263 # The library search path used internally by the compiler when linking
17264 # a shared library.
17265 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
17267 # ### END LIBTOOL TAG CONFIG: CXX
17268 _LT_EOF
17272 esac
17273 done # for ac_tag
17276 as_fn_exit 0
17277 _ACEOF
17278 ac_clean_files=$ac_clean_files_save
17280 test $ac_write_fail = 0 ||
17281 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17284 # configure is writing to config.log, and then calls config.status.
17285 # config.status does its own redirection, appending to config.log.
17286 # Unfortunately, on DOS this fails, as config.log is still kept open
17287 # by configure, so config.status won't be able to write to it; its
17288 # output is simply discarded. So we exec the FD to /dev/null,
17289 # effectively closing config.log, so it can be properly (re)opened and
17290 # appended to by config.status. When coming back to configure, we
17291 # need to make the FD available again.
17292 if test "$no_create" != yes; then
17293 ac_cs_success=:
17294 ac_config_status_args=
17295 test "$silent" = yes &&
17296 ac_config_status_args="$ac_config_status_args --quiet"
17297 exec 5>/dev/null
17298 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17299 exec 5>>config.log
17300 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17301 # would make configure fail if this is the last instruction.
17302 $ac_cs_success || as_fn_exit 1
17304 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17305 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17306 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}