rust: Implement TARGET_RUST_OS_INFO for *-*-darwin*
[official-gcc.git] / libitm / configure
blob02e8de7896b550eee77a765290f63e8170b50692
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for GNU TM Runtime Library 1.0.
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
30 esac
34 as_nl='
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
89 # Find who we are. Look in the path if we contain no directory separator.
90 as_myself=
91 case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100 IFS=$as_save_IFS
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107 as_myself=$0
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151 esac
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156 as_fn_exit 255
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168 else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
174 esac
177 as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
183 exitcode=0
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
190 else
191 exitcode=1; echo positional parameters were not saved.
193 test x\$exitcode = x0 || exit 1
194 test -x / || exit 1"
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
200 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
201 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
202 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204 PATH=/empty FPATH=/empty; export PATH FPATH
205 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
206 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
207 test \$(( 1 + 1 )) = 2 || exit 1"
208 if (eval "$as_required") 2>/dev/null; then :
209 as_have_required=yes
210 else
211 as_have_required=no
213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
215 else
216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
217 as_found=false
218 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
220 IFS=$as_save_IFS
221 test -z "$as_dir" && as_dir=.
222 as_found=:
223 case $as_dir in #(
225 for as_base in sh bash ksh sh5; do
226 # Try only shells that exist, to save several forks.
227 as_shell=$as_dir/$as_base
228 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230 CONFIG_SHELL=$as_shell as_have_required=yes
231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 break 2
235 done;;
236 esac
237 as_found=false
238 done
239 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241 CONFIG_SHELL=$SHELL as_have_required=yes
242 fi; }
243 IFS=$as_save_IFS
246 if test "x$CONFIG_SHELL" != x; then :
247 export CONFIG_SHELL
248 # We cannot yet assume a decent shell, so we have to provide a
249 # neutralization value for shells without unset; and this also
250 # works around shells that cannot unset nonexistent variables.
251 # Preserve -v and -x to the replacement shell.
252 BASH_ENV=/dev/null
253 ENV=/dev/null
254 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
255 case $- in # ((((
256 *v*x* | *x*v* ) as_opts=-vx ;;
257 *v* ) as_opts=-v ;;
258 *x* ) as_opts=-x ;;
259 * ) as_opts= ;;
260 esac
261 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262 # Admittedly, this is quite paranoid, since all the known shells bail
263 # out after a failed `exec'.
264 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
265 exit 255
268 if test x$as_have_required = xno; then :
269 $as_echo "$0: This script requires a shell more modern than all"
270 $as_echo "$0: the shells that I found on your system."
271 if test x${ZSH_VERSION+set} = xset ; then
272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
274 else
275 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
276 $0: including any error possibly output before this
277 $0: message. Then install a modern shell, or manually run
278 $0: the script under such a shell if you do have one."
280 exit 1
284 SHELL=${CONFIG_SHELL-/bin/sh}
285 export SHELL
286 # Unset more variables known to interfere with behavior of common tools.
287 CLICOLOR_FORCE= GREP_OPTIONS=
288 unset CLICOLOR_FORCE GREP_OPTIONS
290 ## --------------------- ##
291 ## M4sh Shell Functions. ##
292 ## --------------------- ##
293 # as_fn_unset VAR
294 # ---------------
295 # Portably unset VAR.
296 as_fn_unset ()
298 { eval $1=; unset $1;}
300 as_unset=as_fn_unset
302 # as_fn_set_status STATUS
303 # -----------------------
304 # Set $? to STATUS, without forking.
305 as_fn_set_status ()
307 return $1
308 } # as_fn_set_status
310 # as_fn_exit STATUS
311 # -----------------
312 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
313 as_fn_exit ()
315 set +e
316 as_fn_set_status $1
317 exit $1
318 } # as_fn_exit
320 # as_fn_mkdir_p
321 # -------------
322 # Create "$as_dir" as a directory, including parents if necessary.
323 as_fn_mkdir_p ()
326 case $as_dir in #(
327 -*) as_dir=./$as_dir;;
328 esac
329 test -d "$as_dir" || eval $as_mkdir_p || {
330 as_dirs=
331 while :; do
332 case $as_dir in #(
333 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
334 *) as_qdir=$as_dir;;
335 esac
336 as_dirs="'$as_qdir' $as_dirs"
337 as_dir=`$as_dirname -- "$as_dir" ||
338 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339 X"$as_dir" : 'X\(//\)[^/]' \| \
340 X"$as_dir" : 'X\(//\)$' \| \
341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342 $as_echo X"$as_dir" |
343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
344 s//\1/
347 /^X\(\/\/\)[^/].*/{
348 s//\1/
351 /^X\(\/\/\)$/{
352 s//\1/
355 /^X\(\/\).*/{
356 s//\1/
359 s/.*/./; q'`
360 test -d "$as_dir" && break
361 done
362 test -z "$as_dirs" || eval "mkdir $as_dirs"
363 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
366 } # as_fn_mkdir_p
368 # as_fn_executable_p FILE
369 # -----------------------
370 # Test if FILE is an executable regular file.
371 as_fn_executable_p ()
373 test -f "$1" && test -x "$1"
374 } # as_fn_executable_p
375 # as_fn_append VAR VALUE
376 # ----------------------
377 # Append the text in VALUE to the end of the definition contained in VAR. Take
378 # advantage of any shell optimizations that allow amortized linear growth over
379 # repeated appends, instead of the typical quadratic growth present in naive
380 # implementations.
381 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382 eval 'as_fn_append ()
384 eval $1+=\$2
386 else
387 as_fn_append ()
389 eval $1=\$$1\$2
391 fi # as_fn_append
393 # as_fn_arith ARG...
394 # ------------------
395 # Perform arithmetic evaluation on the ARGs, and store the result in the
396 # global $as_val. Take advantage of shells that can avoid forks. The arguments
397 # must be portable across $(()) and expr.
398 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
399 eval 'as_fn_arith ()
401 as_val=$(( $* ))
403 else
404 as_fn_arith ()
406 as_val=`expr "$@" || test $? -eq 1`
408 fi # as_fn_arith
411 # as_fn_error STATUS ERROR [LINENO LOG_FD]
412 # ----------------------------------------
413 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415 # script with STATUS, using 1 if that was 0.
416 as_fn_error ()
418 as_status=$1; test $as_status -eq 0 && as_status=1
419 if test "$4"; then
420 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
423 $as_echo "$as_me: error: $2" >&2
424 as_fn_exit $as_status
425 } # as_fn_error
427 if expr a : '\(a\)' >/dev/null 2>&1 &&
428 test "X`expr 00001 : '.*\(...\)'`" = X001; then
429 as_expr=expr
430 else
431 as_expr=false
434 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435 as_basename=basename
436 else
437 as_basename=false
440 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441 as_dirname=dirname
442 else
443 as_dirname=false
446 as_me=`$as_basename -- "$0" ||
447 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448 X"$0" : 'X\(//\)$' \| \
449 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
450 $as_echo X/"$0" |
451 sed '/^.*\/\([^/][^/]*\)\/*$/{
452 s//\1/
455 /^X\/\(\/\/\)$/{
456 s//\1/
459 /^X\/\(\/\).*/{
460 s//\1/
463 s/.*/./; q'`
465 # Avoid depending upon Character Ranges.
466 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469 as_cr_digits='0123456789'
470 as_cr_alnum=$as_cr_Letters$as_cr_digits
473 as_lineno_1=$LINENO as_lineno_1a=$LINENO
474 as_lineno_2=$LINENO as_lineno_2a=$LINENO
475 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
478 sed -n '
480 /[$]LINENO/=
481 ' <$as_myself |
482 sed '
483 s/[$]LINENO.*/&-/
484 t lineno
486 :lineno
488 :loop
489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
490 t loop
491 s/-\n.*//
492 ' >$as_me.lineno &&
493 chmod +x "$as_me.lineno" ||
494 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
496 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497 # already done that, so ensure we don't try to do so again and fall
498 # in an infinite loop. This has already happened in practice.
499 _as_can_reexec=no; export _as_can_reexec
500 # Don't try to exec as it changes $[0], causing all sort of problems
501 # (the dirname of $[0] is not the place where we might find the
502 # original and so on. Autoconf is especially sensitive to this).
503 . "./$as_me.lineno"
504 # Exit status is that of the last command.
505 exit
508 ECHO_C= ECHO_N= ECHO_T=
509 case `echo -n x` in #(((((
510 -n*)
511 case `echo 'xy\c'` in
512 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
513 xy) ECHO_C='\c';;
514 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
515 ECHO_T=' ';;
516 esac;;
518 ECHO_N='-n';;
519 esac
521 rm -f conf$$ conf$$.exe conf$$.file
522 if test -d conf$$.dir; then
523 rm -f conf$$.dir/conf$$.file
524 else
525 rm -f conf$$.dir
526 mkdir conf$$.dir 2>/dev/null
528 if (echo >conf$$.file) 2>/dev/null; then
529 if ln -s conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s='ln -s'
531 # ... but there are two gotchas:
532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
534 # In both cases, we have to default to `cp -pR'.
535 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
536 as_ln_s='cp -pR'
537 elif ln conf$$.file conf$$ 2>/dev/null; then
538 as_ln_s=ln
539 else
540 as_ln_s='cp -pR'
542 else
543 as_ln_s='cp -pR'
545 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546 rmdir conf$$.dir 2>/dev/null
548 if mkdir -p . 2>/dev/null; then
549 as_mkdir_p='mkdir -p "$as_dir"'
550 else
551 test -d ./-p && rmdir ./-p
552 as_mkdir_p=false
555 as_test_x='test -x'
556 as_executable_p=as_fn_executable_p
558 # Sed expression to map a string onto a valid CPP name.
559 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
561 # Sed expression to map a string onto a valid variable name.
562 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
564 SHELL=${CONFIG_SHELL-/bin/sh}
567 test -n "$DJDIR" || exec 7<&0 </dev/null
568 exec 6>&1
570 # Name of the host.
571 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
572 # so uname gets run too.
573 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
576 # Initializations.
578 ac_default_prefix=/usr/local
579 ac_clean_files=
580 ac_config_libobj_dir=.
581 LIBOBJS=
582 cross_compiling=no
583 subdirs=
584 MFLAGS=
585 MAKEFLAGS=
587 # Identity of this package.
588 PACKAGE_NAME='GNU TM Runtime Library'
589 PACKAGE_TARNAME='libitm'
590 PACKAGE_VERSION='1.0'
591 PACKAGE_STRING='GNU TM Runtime Library 1.0'
592 PACKAGE_BUGREPORT=''
593 PACKAGE_URL='http://www.gnu.org/software/libitm/'
595 # Factoring default headers for most tests.
596 ac_includes_default="\
597 #include <stdio.h>
598 #ifdef HAVE_SYS_TYPES_H
599 # include <sys/types.h>
600 #endif
601 #ifdef HAVE_SYS_STAT_H
602 # include <sys/stat.h>
603 #endif
604 #ifdef STDC_HEADERS
605 # include <stdlib.h>
606 # include <stddef.h>
607 #else
608 # ifdef HAVE_STDLIB_H
609 # include <stdlib.h>
610 # endif
611 #endif
612 #ifdef HAVE_STRING_H
613 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
614 # include <memory.h>
615 # endif
616 # include <string.h>
617 #endif
618 #ifdef HAVE_STRINGS_H
619 # include <strings.h>
620 #endif
621 #ifdef HAVE_INTTYPES_H
622 # include <inttypes.h>
623 #endif
624 #ifdef HAVE_STDINT_H
625 # include <stdint.h>
626 #endif
627 #ifdef HAVE_UNISTD_H
628 # include <unistd.h>
629 #endif"
631 ac_subst_vars='am__EXEEXT_FALSE
632 am__EXEEXT_TRUE
633 LTLIBOBJS
634 LIBOBJS
635 get_gcc_base_ver
636 ARCH_FUTEX_FALSE
637 ARCH_FUTEX_TRUE
638 ARCH_X86_AVX_FALSE
639 ARCH_X86_AVX_TRUE
640 ARCH_X86_FALSE
641 ARCH_X86_TRUE
642 ARCH_ARM_FALSE
643 ARCH_ARM_TRUE
644 link_itm
645 XLDFLAGS
646 XCFLAGS
647 config_path
648 LIBITM_BUILD_VERSIONED_SHLIB_SUN_FALSE
649 LIBITM_BUILD_VERSIONED_SHLIB_SUN_TRUE
650 LIBITM_BUILD_VERSIONED_SHLIB_GNU_FALSE
651 LIBITM_BUILD_VERSIONED_SHLIB_GNU_TRUE
652 LIBITM_BUILD_VERSIONED_SHLIB_FALSE
653 LIBITM_BUILD_VERSIONED_SHLIB_TRUE
654 OPT_LDFLAGS
655 SECTION_LDFLAGS
656 HAVE_HWCAP_FALSE
657 HAVE_HWCAP_TRUE
658 HWCAP_LDFLAGS
659 libtool_VERSION
660 MAINT
661 MAINTAINER_MODE_FALSE
662 MAINTAINER_MODE_TRUE
663 enable_static
664 enable_shared
665 CXXCPP
667 OTOOL64
668 OTOOL
669 LIPO
670 NMEDIT
671 DSYMUTIL
672 OBJDUMP
673 LN_S
674 ac_ct_DUMPBIN
675 DUMPBIN
677 FGREP
678 EGREP
679 GREP
681 LIBTOOL
682 BUILD_INFO_FALSE
683 BUILD_INFO_TRUE
684 RANLIB
687 am__fastdepCCAS_FALSE
688 am__fastdepCCAS_TRUE
689 CCASDEPMODE
690 CCASFLAGS
691 CCAS
692 am__fastdepCXX_FALSE
693 am__fastdepCXX_TRUE
694 CXXDEPMODE
695 ac_ct_CXX
696 CXXFLAGS
698 am__fastdepCC_FALSE
699 am__fastdepCC_TRUE
700 CCDEPMODE
701 am__nodep
702 AMDEPBACKSLASH
703 AMDEP_FALSE
704 AMDEP_TRUE
705 am__quote
706 am__include
707 DEPDIR
708 OBJEXT
709 EXEEXT
710 ac_ct_CC
711 CPPFLAGS
712 LDFLAGS
713 CFLAGS
715 toolexeclibdir
716 toolexecdir
717 multi_basedir
718 AM_BACKSLASH
719 AM_DEFAULT_VERBOSITY
720 AM_DEFAULT_V
721 AM_V
722 am__untar
723 am__tar
724 AMTAR
725 am__leading_dot
726 SET_MAKE
728 mkdir_p
729 MKDIR_P
730 INSTALL_STRIP_PROGRAM
731 STRIP
732 install_sh
733 MAKEINFO
734 AUTOHEADER
735 AUTOMAKE
736 AUTOCONF
737 ACLOCAL
738 VERSION
739 PACKAGE
740 CYGPATH_W
741 am__isrc
742 INSTALL_DATA
743 INSTALL_SCRIPT
744 INSTALL_PROGRAM
745 target_os
746 target_vendor
747 target_cpu
748 target
749 host_os
750 host_vendor
751 host_cpu
752 host
753 build_os
754 build_vendor
755 build_cpu
756 build
757 GENINSRC_FALSE
758 GENINSRC_TRUE
759 target_alias
760 host_alias
761 build_alias
762 LIBS
763 ECHO_T
764 ECHO_N
765 ECHO_C
766 DEFS
767 mandir
768 localedir
769 libdir
770 psdir
771 pdfdir
772 dvidir
773 htmldir
774 infodir
775 docdir
776 oldincludedir
777 includedir
778 localstatedir
779 sharedstatedir
780 sysconfdir
781 datadir
782 datarootdir
783 libexecdir
784 sbindir
785 bindir
786 program_transform_name
787 prefix
788 exec_prefix
789 PACKAGE_URL
790 PACKAGE_BUGREPORT
791 PACKAGE_STRING
792 PACKAGE_VERSION
793 PACKAGE_TARNAME
794 PACKAGE_NAME
795 PATH_SEPARATOR
796 SHELL'
797 ac_subst_files=''
798 ac_user_opts='
799 enable_option_checking
800 enable_version_specific_runtime_libs
801 enable_generated_files_in_srcdir
802 enable_silent_rules
803 enable_multilib
804 with_toolexeclibdir
805 enable_dependency_tracking
806 enable_shared
807 enable_static
808 with_pic
809 enable_fast_install
810 with_gnu_ld
811 enable_libtool_lock
812 enable_maintainer_mode
813 enable_linux_futex
814 enable_tls
815 enable_symvers
816 enable_werror
817 enable_cet
818 with_gcc_major_version_only
820 ac_precious_vars='build_alias
821 host_alias
822 target_alias
824 CPPFLAGS
825 CXXCPP'
828 # Initialize some variables set by options.
829 ac_init_help=
830 ac_init_version=false
831 ac_unrecognized_opts=
832 ac_unrecognized_sep=
833 # The variables have the same names as the options, with
834 # dashes changed to underlines.
835 cache_file=/dev/null
836 exec_prefix=NONE
837 no_create=
838 no_recursion=
839 prefix=NONE
840 program_prefix=NONE
841 program_suffix=NONE
842 program_transform_name=s,x,x,
843 silent=
844 site=
845 srcdir=
846 verbose=
847 x_includes=NONE
848 x_libraries=NONE
850 # Installation directory options.
851 # These are left unexpanded so users can "make install exec_prefix=/foo"
852 # and all the variables that are supposed to be based on exec_prefix
853 # by default will actually change.
854 # Use braces instead of parens because sh, perl, etc. also accept them.
855 # (The list follows the same order as the GNU Coding Standards.)
856 bindir='${exec_prefix}/bin'
857 sbindir='${exec_prefix}/sbin'
858 libexecdir='${exec_prefix}/libexec'
859 datarootdir='${prefix}/share'
860 datadir='${datarootdir}'
861 sysconfdir='${prefix}/etc'
862 sharedstatedir='${prefix}/com'
863 localstatedir='${prefix}/var'
864 includedir='${prefix}/include'
865 oldincludedir='/usr/include'
866 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
867 infodir='${datarootdir}/info'
868 htmldir='${docdir}'
869 dvidir='${docdir}'
870 pdfdir='${docdir}'
871 psdir='${docdir}'
872 libdir='${exec_prefix}/lib'
873 localedir='${datarootdir}/locale'
874 mandir='${datarootdir}/man'
876 ac_prev=
877 ac_dashdash=
878 for ac_option
880 # If the previous option needs an argument, assign it.
881 if test -n "$ac_prev"; then
882 eval $ac_prev=\$ac_option
883 ac_prev=
884 continue
887 case $ac_option in
888 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
889 *=) ac_optarg= ;;
890 *) ac_optarg=yes ;;
891 esac
893 # Accept the important Cygnus configure options, so we can diagnose typos.
895 case $ac_dashdash$ac_option in
897 ac_dashdash=yes ;;
899 -bindir | --bindir | --bindi | --bind | --bin | --bi)
900 ac_prev=bindir ;;
901 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
902 bindir=$ac_optarg ;;
904 -build | --build | --buil | --bui | --bu)
905 ac_prev=build_alias ;;
906 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
907 build_alias=$ac_optarg ;;
909 -cache-file | --cache-file | --cache-fil | --cache-fi \
910 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
911 ac_prev=cache_file ;;
912 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
913 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
914 cache_file=$ac_optarg ;;
916 --config-cache | -C)
917 cache_file=config.cache ;;
919 -datadir | --datadir | --datadi | --datad)
920 ac_prev=datadir ;;
921 -datadir=* | --datadir=* | --datadi=* | --datad=*)
922 datadir=$ac_optarg ;;
924 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
925 | --dataroo | --dataro | --datar)
926 ac_prev=datarootdir ;;
927 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
928 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
929 datarootdir=$ac_optarg ;;
931 -disable-* | --disable-*)
932 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
933 # Reject names that are not valid shell variable names.
934 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
935 as_fn_error $? "invalid feature name: $ac_useropt"
936 ac_useropt_orig=$ac_useropt
937 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
938 case $ac_user_opts in
940 "enable_$ac_useropt"
941 "*) ;;
942 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
943 ac_unrecognized_sep=', ';;
944 esac
945 eval enable_$ac_useropt=no ;;
947 -docdir | --docdir | --docdi | --doc | --do)
948 ac_prev=docdir ;;
949 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
950 docdir=$ac_optarg ;;
952 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
953 ac_prev=dvidir ;;
954 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
955 dvidir=$ac_optarg ;;
957 -enable-* | --enable-*)
958 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
959 # Reject names that are not valid shell variable names.
960 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
961 as_fn_error $? "invalid feature name: $ac_useropt"
962 ac_useropt_orig=$ac_useropt
963 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
964 case $ac_user_opts in
966 "enable_$ac_useropt"
967 "*) ;;
968 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
969 ac_unrecognized_sep=', ';;
970 esac
971 eval enable_$ac_useropt=\$ac_optarg ;;
973 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
974 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
975 | --exec | --exe | --ex)
976 ac_prev=exec_prefix ;;
977 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
978 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
979 | --exec=* | --exe=* | --ex=*)
980 exec_prefix=$ac_optarg ;;
982 -gas | --gas | --ga | --g)
983 # Obsolete; use --with-gas.
984 with_gas=yes ;;
986 -help | --help | --hel | --he | -h)
987 ac_init_help=long ;;
988 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
989 ac_init_help=recursive ;;
990 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
991 ac_init_help=short ;;
993 -host | --host | --hos | --ho)
994 ac_prev=host_alias ;;
995 -host=* | --host=* | --hos=* | --ho=*)
996 host_alias=$ac_optarg ;;
998 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
999 ac_prev=htmldir ;;
1000 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1001 | --ht=*)
1002 htmldir=$ac_optarg ;;
1004 -includedir | --includedir | --includedi | --included | --include \
1005 | --includ | --inclu | --incl | --inc)
1006 ac_prev=includedir ;;
1007 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1008 | --includ=* | --inclu=* | --incl=* | --inc=*)
1009 includedir=$ac_optarg ;;
1011 -infodir | --infodir | --infodi | --infod | --info | --inf)
1012 ac_prev=infodir ;;
1013 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1014 infodir=$ac_optarg ;;
1016 -libdir | --libdir | --libdi | --libd)
1017 ac_prev=libdir ;;
1018 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1019 libdir=$ac_optarg ;;
1021 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1022 | --libexe | --libex | --libe)
1023 ac_prev=libexecdir ;;
1024 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1025 | --libexe=* | --libex=* | --libe=*)
1026 libexecdir=$ac_optarg ;;
1028 -localedir | --localedir | --localedi | --localed | --locale)
1029 ac_prev=localedir ;;
1030 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1031 localedir=$ac_optarg ;;
1033 -localstatedir | --localstatedir | --localstatedi | --localstated \
1034 | --localstate | --localstat | --localsta | --localst | --locals)
1035 ac_prev=localstatedir ;;
1036 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1037 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1038 localstatedir=$ac_optarg ;;
1040 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1041 ac_prev=mandir ;;
1042 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1043 mandir=$ac_optarg ;;
1045 -nfp | --nfp | --nf)
1046 # Obsolete; use --without-fp.
1047 with_fp=no ;;
1049 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1050 | --no-cr | --no-c | -n)
1051 no_create=yes ;;
1053 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1054 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1055 no_recursion=yes ;;
1057 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1058 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1059 | --oldin | --oldi | --old | --ol | --o)
1060 ac_prev=oldincludedir ;;
1061 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1062 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1063 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1064 oldincludedir=$ac_optarg ;;
1066 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1067 ac_prev=prefix ;;
1068 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1069 prefix=$ac_optarg ;;
1071 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1072 | --program-pre | --program-pr | --program-p)
1073 ac_prev=program_prefix ;;
1074 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1075 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1076 program_prefix=$ac_optarg ;;
1078 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1079 | --program-suf | --program-su | --program-s)
1080 ac_prev=program_suffix ;;
1081 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1082 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1083 program_suffix=$ac_optarg ;;
1085 -program-transform-name | --program-transform-name \
1086 | --program-transform-nam | --program-transform-na \
1087 | --program-transform-n | --program-transform- \
1088 | --program-transform | --program-transfor \
1089 | --program-transfo | --program-transf \
1090 | --program-trans | --program-tran \
1091 | --progr-tra | --program-tr | --program-t)
1092 ac_prev=program_transform_name ;;
1093 -program-transform-name=* | --program-transform-name=* \
1094 | --program-transform-nam=* | --program-transform-na=* \
1095 | --program-transform-n=* | --program-transform-=* \
1096 | --program-transform=* | --program-transfor=* \
1097 | --program-transfo=* | --program-transf=* \
1098 | --program-trans=* | --program-tran=* \
1099 | --progr-tra=* | --program-tr=* | --program-t=*)
1100 program_transform_name=$ac_optarg ;;
1102 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1103 ac_prev=pdfdir ;;
1104 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1105 pdfdir=$ac_optarg ;;
1107 -psdir | --psdir | --psdi | --psd | --ps)
1108 ac_prev=psdir ;;
1109 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1110 psdir=$ac_optarg ;;
1112 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1113 | -silent | --silent | --silen | --sile | --sil)
1114 silent=yes ;;
1116 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1117 ac_prev=sbindir ;;
1118 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1119 | --sbi=* | --sb=*)
1120 sbindir=$ac_optarg ;;
1122 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1123 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1124 | --sharedst | --shareds | --shared | --share | --shar \
1125 | --sha | --sh)
1126 ac_prev=sharedstatedir ;;
1127 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1128 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1129 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1130 | --sha=* | --sh=*)
1131 sharedstatedir=$ac_optarg ;;
1133 -site | --site | --sit)
1134 ac_prev=site ;;
1135 -site=* | --site=* | --sit=*)
1136 site=$ac_optarg ;;
1138 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1139 ac_prev=srcdir ;;
1140 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1141 srcdir=$ac_optarg ;;
1143 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1144 | --syscon | --sysco | --sysc | --sys | --sy)
1145 ac_prev=sysconfdir ;;
1146 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1147 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1148 sysconfdir=$ac_optarg ;;
1150 -target | --target | --targe | --targ | --tar | --ta | --t)
1151 ac_prev=target_alias ;;
1152 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1153 target_alias=$ac_optarg ;;
1155 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1156 verbose=yes ;;
1158 -version | --version | --versio | --versi | --vers | -V)
1159 ac_init_version=: ;;
1161 -with-* | --with-*)
1162 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1163 # Reject names that are not valid shell variable names.
1164 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1165 as_fn_error $? "invalid package name: $ac_useropt"
1166 ac_useropt_orig=$ac_useropt
1167 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1168 case $ac_user_opts in
1170 "with_$ac_useropt"
1171 "*) ;;
1172 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1173 ac_unrecognized_sep=', ';;
1174 esac
1175 eval with_$ac_useropt=\$ac_optarg ;;
1177 -without-* | --without-*)
1178 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1179 # Reject names that are not valid shell variable names.
1180 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1181 as_fn_error $? "invalid package name: $ac_useropt"
1182 ac_useropt_orig=$ac_useropt
1183 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1184 case $ac_user_opts in
1186 "with_$ac_useropt"
1187 "*) ;;
1188 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1189 ac_unrecognized_sep=', ';;
1190 esac
1191 eval with_$ac_useropt=no ;;
1193 --x)
1194 # Obsolete; use --with-x.
1195 with_x=yes ;;
1197 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1198 | --x-incl | --x-inc | --x-in | --x-i)
1199 ac_prev=x_includes ;;
1200 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1201 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1202 x_includes=$ac_optarg ;;
1204 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1205 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1206 ac_prev=x_libraries ;;
1207 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1208 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1209 x_libraries=$ac_optarg ;;
1211 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1212 Try \`$0 --help' for more information"
1215 *=*)
1216 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1217 # Reject names that are not valid shell variable names.
1218 case $ac_envvar in #(
1219 '' | [0-9]* | *[!_$as_cr_alnum]* )
1220 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1221 esac
1222 eval $ac_envvar=\$ac_optarg
1223 export $ac_envvar ;;
1226 # FIXME: should be removed in autoconf 3.0.
1227 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1228 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1229 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1230 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1233 esac
1234 done
1236 if test -n "$ac_prev"; then
1237 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1238 as_fn_error $? "missing argument to $ac_option"
1241 if test -n "$ac_unrecognized_opts"; then
1242 case $enable_option_checking in
1243 no) ;;
1244 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1245 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1246 esac
1249 # Check all directory arguments for consistency.
1250 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1251 datadir sysconfdir sharedstatedir localstatedir includedir \
1252 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1253 libdir localedir mandir
1255 eval ac_val=\$$ac_var
1256 # Remove trailing slashes.
1257 case $ac_val in
1258 */ )
1259 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1260 eval $ac_var=\$ac_val;;
1261 esac
1262 # Be sure to have absolute directory names.
1263 case $ac_val in
1264 [\\/$]* | ?:[\\/]* ) continue;;
1265 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1266 esac
1267 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1268 done
1270 # There might be people who depend on the old broken behavior: `$host'
1271 # used to hold the argument of --host etc.
1272 # FIXME: To remove some day.
1273 build=$build_alias
1274 host=$host_alias
1275 target=$target_alias
1277 # FIXME: To remove some day.
1278 if test "x$host_alias" != x; then
1279 if test "x$build_alias" = x; then
1280 cross_compiling=maybe
1281 elif test "x$build_alias" != "x$host_alias"; then
1282 cross_compiling=yes
1286 ac_tool_prefix=
1287 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1289 test "$silent" = yes && exec 6>/dev/null
1292 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1293 ac_ls_di=`ls -di .` &&
1294 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1295 as_fn_error $? "working directory cannot be determined"
1296 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1297 as_fn_error $? "pwd does not report name of working directory"
1300 # Find the source files, if location was not specified.
1301 if test -z "$srcdir"; then
1302 ac_srcdir_defaulted=yes
1303 # Try the directory containing this script, then the parent directory.
1304 ac_confdir=`$as_dirname -- "$as_myself" ||
1305 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1306 X"$as_myself" : 'X\(//\)[^/]' \| \
1307 X"$as_myself" : 'X\(//\)$' \| \
1308 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1309 $as_echo X"$as_myself" |
1310 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1311 s//\1/
1314 /^X\(\/\/\)[^/].*/{
1315 s//\1/
1318 /^X\(\/\/\)$/{
1319 s//\1/
1322 /^X\(\/\).*/{
1323 s//\1/
1326 s/.*/./; q'`
1327 srcdir=$ac_confdir
1328 if test ! -r "$srcdir/$ac_unique_file"; then
1329 srcdir=..
1331 else
1332 ac_srcdir_defaulted=no
1334 if test ! -r "$srcdir/$ac_unique_file"; then
1335 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1336 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1338 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1339 ac_abs_confdir=`(
1340 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1341 pwd)`
1342 # When building in place, set srcdir=.
1343 if test "$ac_abs_confdir" = "$ac_pwd"; then
1344 srcdir=.
1346 # Remove unnecessary trailing slashes from srcdir.
1347 # Double slashes in file names in object file debugging info
1348 # mess up M-x gdb in Emacs.
1349 case $srcdir in
1350 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1351 esac
1352 for ac_var in $ac_precious_vars; do
1353 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1354 eval ac_env_${ac_var}_value=\$${ac_var}
1355 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1356 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1357 done
1360 # Report the --help message.
1362 if test "$ac_init_help" = "long"; then
1363 # Omit some internal or obsolete options to make the list less imposing.
1364 # This message is too long to be a string in the A/UX 3.1 sh.
1365 cat <<_ACEOF
1366 \`configure' configures GNU TM Runtime Library 1.0 to adapt to many kinds of systems.
1368 Usage: $0 [OPTION]... [VAR=VALUE]...
1370 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1371 VAR=VALUE. See below for descriptions of some of the useful variables.
1373 Defaults for the options are specified in brackets.
1375 Configuration:
1376 -h, --help display this help and exit
1377 --help=short display options specific to this package
1378 --help=recursive display the short help of all the included packages
1379 -V, --version display version information and exit
1380 -q, --quiet, --silent do not print \`checking ...' messages
1381 --cache-file=FILE cache test results in FILE [disabled]
1382 -C, --config-cache alias for \`--cache-file=config.cache'
1383 -n, --no-create do not create output files
1384 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1386 Installation directories:
1387 --prefix=PREFIX install architecture-independent files in PREFIX
1388 [$ac_default_prefix]
1389 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1390 [PREFIX]
1392 By default, \`make install' will install all the files in
1393 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1394 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1395 for instance \`--prefix=\$HOME'.
1397 For better control, use the options below.
1399 Fine tuning of the installation directories:
1400 --bindir=DIR user executables [EPREFIX/bin]
1401 --sbindir=DIR system admin executables [EPREFIX/sbin]
1402 --libexecdir=DIR program executables [EPREFIX/libexec]
1403 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1404 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1405 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1406 --libdir=DIR object code libraries [EPREFIX/lib]
1407 --includedir=DIR C header files [PREFIX/include]
1408 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1409 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1410 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1411 --infodir=DIR info documentation [DATAROOTDIR/info]
1412 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1413 --mandir=DIR man documentation [DATAROOTDIR/man]
1414 --docdir=DIR documentation root [DATAROOTDIR/doc/libitm]
1415 --htmldir=DIR html documentation [DOCDIR]
1416 --dvidir=DIR dvi documentation [DOCDIR]
1417 --pdfdir=DIR pdf documentation [DOCDIR]
1418 --psdir=DIR ps documentation [DOCDIR]
1419 _ACEOF
1421 cat <<\_ACEOF
1423 Program names:
1424 --program-prefix=PREFIX prepend PREFIX to installed program names
1425 --program-suffix=SUFFIX append SUFFIX to installed program names
1426 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1428 System types:
1429 --build=BUILD configure for building on BUILD [guessed]
1430 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1431 --target=TARGET configure for building compilers for TARGET [HOST]
1432 _ACEOF
1435 if test -n "$ac_init_help"; then
1436 case $ac_init_help in
1437 short | recursive ) echo "Configuration of GNU TM Runtime Library 1.0:";;
1438 esac
1439 cat <<\_ACEOF
1441 Optional Features:
1442 --disable-option-checking ignore unrecognized --enable/--with options
1443 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1444 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1445 --enable-version-specific-runtime-libs
1446 Specify that runtime libraries should be installed
1447 in a compiler-specific directory [default=no]
1448 --enable-generated-files-in-srcdir
1449 put copies of generated files in source dir intended
1450 for creating source tarballs for users without
1451 texinfo bison or flex. [default=no]
1452 --enable-silent-rules less verbose build output (undo: "make V=1")
1453 --disable-silent-rules verbose build output (undo: "make V=0")
1454 --enable-multilib build many library versions (default)
1455 --enable-dependency-tracking
1456 do not reject slow dependency extractors
1457 --disable-dependency-tracking
1458 speeds up one-time build
1459 --enable-shared[=PKGS] build shared libraries [default=yes]
1460 --enable-static[=PKGS] build static libraries [default=yes]
1461 --enable-fast-install[=PKGS]
1462 optimize for fast installation [default=yes]
1463 --disable-libtool-lock avoid locking (might break parallel builds)
1464 --enable-maintainer-mode
1465 enable make rules and dependencies not useful (and
1466 sometimes confusing) to the casual installer
1467 --enable-linux-futex use the Linux futex system call [default=default]
1468 --enable-tls Use thread-local storage [default=yes]
1469 --enable-symvers=STYLE enables symbol versioning of the shared library
1470 [default=yes]
1471 --disable-werror disable building with -Werror
1472 --enable-cet enable Intel CET in target libraries [default=auto]
1474 Optional Packages:
1475 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1476 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1477 --with-toolexeclibdir=DIR
1478 install libraries built with a cross compiler within
1480 --with-pic try to use only PIC/non-PIC objects [default=use
1481 both]
1482 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1483 --with-gcc-major-version-only
1484 use only GCC major number in filesystem paths
1486 Some influential environment variables:
1487 CC C compiler command
1488 CFLAGS C compiler flags
1489 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1490 nonstandard directory <lib dir>
1491 LIBS libraries to pass to the linker, e.g. -l<library>
1492 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1493 you have headers in a nonstandard directory <include dir>
1494 CXX C++ compiler command
1495 CXXFLAGS C++ compiler flags
1496 CCAS assembler compiler command (defaults to CC)
1497 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1498 CPP C preprocessor
1499 CXXCPP C++ preprocessor
1501 Use these variables to override the choices made by `configure' or to help
1502 it to find libraries and programs with nonstandard names/locations.
1504 Report bugs to the package provider.
1505 GNU TM Runtime Library home page: <http://www.gnu.org/software/libitm/>.
1506 General help using GNU software: <http://www.gnu.org/gethelp/>.
1507 _ACEOF
1508 ac_status=$?
1511 if test "$ac_init_help" = "recursive"; then
1512 # If there are subdirs, report their specific --help.
1513 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1514 test -d "$ac_dir" ||
1515 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1516 continue
1517 ac_builddir=.
1519 case "$ac_dir" in
1520 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1522 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1523 # A ".." for each directory in $ac_dir_suffix.
1524 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1525 case $ac_top_builddir_sub in
1526 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1527 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1528 esac ;;
1529 esac
1530 ac_abs_top_builddir=$ac_pwd
1531 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1532 # for backward compatibility:
1533 ac_top_builddir=$ac_top_build_prefix
1535 case $srcdir in
1536 .) # We are building in place.
1537 ac_srcdir=.
1538 ac_top_srcdir=$ac_top_builddir_sub
1539 ac_abs_top_srcdir=$ac_pwd ;;
1540 [\\/]* | ?:[\\/]* ) # Absolute name.
1541 ac_srcdir=$srcdir$ac_dir_suffix;
1542 ac_top_srcdir=$srcdir
1543 ac_abs_top_srcdir=$srcdir ;;
1544 *) # Relative name.
1545 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1546 ac_top_srcdir=$ac_top_build_prefix$srcdir
1547 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1548 esac
1549 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1551 cd "$ac_dir" || { ac_status=$?; continue; }
1552 # Check for guested configure.
1553 if test -f "$ac_srcdir/configure.gnu"; then
1554 echo &&
1555 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1556 elif test -f "$ac_srcdir/configure"; then
1557 echo &&
1558 $SHELL "$ac_srcdir/configure" --help=recursive
1559 else
1560 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1561 fi || ac_status=$?
1562 cd "$ac_pwd" || { ac_status=$?; break; }
1563 done
1566 test -n "$ac_init_help" && exit $ac_status
1567 if $ac_init_version; then
1568 cat <<\_ACEOF
1569 GNU TM Runtime Library configure 1.0
1570 generated by GNU Autoconf 2.69
1572 Copyright (C) 2012 Free Software Foundation, Inc.
1573 This configure script is free software; the Free Software Foundation
1574 gives unlimited permission to copy, distribute and modify it.
1575 _ACEOF
1576 exit
1579 ## ------------------------ ##
1580 ## Autoconf initialization. ##
1581 ## ------------------------ ##
1583 # ac_fn_c_try_compile LINENO
1584 # --------------------------
1585 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1586 ac_fn_c_try_compile ()
1588 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1589 rm -f conftest.$ac_objext
1590 if { { ac_try="$ac_compile"
1591 case "(($ac_try" in
1592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1593 *) ac_try_echo=$ac_try;;
1594 esac
1595 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1596 $as_echo "$ac_try_echo"; } >&5
1597 (eval "$ac_compile") 2>conftest.err
1598 ac_status=$?
1599 if test -s conftest.err; then
1600 grep -v '^ *+' conftest.err >conftest.er1
1601 cat conftest.er1 >&5
1602 mv -f conftest.er1 conftest.err
1604 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1605 test $ac_status = 0; } && {
1606 test -z "$ac_c_werror_flag" ||
1607 test ! -s conftest.err
1608 } && test -s conftest.$ac_objext; then :
1609 ac_retval=0
1610 else
1611 $as_echo "$as_me: failed program was:" >&5
1612 sed 's/^/| /' conftest.$ac_ext >&5
1614 ac_retval=1
1616 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1617 as_fn_set_status $ac_retval
1619 } # ac_fn_c_try_compile
1621 # ac_fn_cxx_try_compile LINENO
1622 # ----------------------------
1623 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1624 ac_fn_cxx_try_compile ()
1626 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1627 rm -f conftest.$ac_objext
1628 if { { ac_try="$ac_compile"
1629 case "(($ac_try" in
1630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1631 *) ac_try_echo=$ac_try;;
1632 esac
1633 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1634 $as_echo "$ac_try_echo"; } >&5
1635 (eval "$ac_compile") 2>conftest.err
1636 ac_status=$?
1637 if test -s conftest.err; then
1638 grep -v '^ *+' conftest.err >conftest.er1
1639 cat conftest.er1 >&5
1640 mv -f conftest.er1 conftest.err
1642 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1643 test $ac_status = 0; } && {
1644 test -z "$ac_cxx_werror_flag" ||
1645 test ! -s conftest.err
1646 } && test -s conftest.$ac_objext; then :
1647 ac_retval=0
1648 else
1649 $as_echo "$as_me: failed program was:" >&5
1650 sed 's/^/| /' conftest.$ac_ext >&5
1652 ac_retval=1
1654 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1655 as_fn_set_status $ac_retval
1657 } # ac_fn_cxx_try_compile
1659 # ac_fn_c_try_link LINENO
1660 # -----------------------
1661 # Try to link conftest.$ac_ext, and return whether this succeeded.
1662 ac_fn_c_try_link ()
1664 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1665 rm -f conftest.$ac_objext conftest$ac_exeext
1666 if { { ac_try="$ac_link"
1667 case "(($ac_try" in
1668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1669 *) ac_try_echo=$ac_try;;
1670 esac
1671 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1672 $as_echo "$ac_try_echo"; } >&5
1673 (eval "$ac_link") 2>conftest.err
1674 ac_status=$?
1675 if test -s conftest.err; then
1676 grep -v '^ *+' conftest.err >conftest.er1
1677 cat conftest.er1 >&5
1678 mv -f conftest.er1 conftest.err
1680 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1681 test $ac_status = 0; } && {
1682 test -z "$ac_c_werror_flag" ||
1683 test ! -s conftest.err
1684 } && test -s conftest$ac_exeext && {
1685 test "$cross_compiling" = yes ||
1686 test -x conftest$ac_exeext
1687 }; then :
1688 ac_retval=0
1689 else
1690 $as_echo "$as_me: failed program was:" >&5
1691 sed 's/^/| /' conftest.$ac_ext >&5
1693 ac_retval=1
1695 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1696 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1697 # interfere with the next link command; also delete a directory that is
1698 # left behind by Apple's compiler. We do this before executing the actions.
1699 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1700 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1701 as_fn_set_status $ac_retval
1703 } # ac_fn_c_try_link
1705 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1706 # -------------------------------------------------------
1707 # Tests whether HEADER exists and can be compiled using the include files in
1708 # INCLUDES, setting the cache variable VAR accordingly.
1709 ac_fn_c_check_header_compile ()
1711 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1713 $as_echo_n "checking for $2... " >&6; }
1714 if eval \${$3+:} false; then :
1715 $as_echo_n "(cached) " >&6
1716 else
1717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1718 /* end confdefs.h. */
1720 #include <$2>
1721 _ACEOF
1722 if ac_fn_c_try_compile "$LINENO"; then :
1723 eval "$3=yes"
1724 else
1725 eval "$3=no"
1727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1729 eval ac_res=\$$3
1730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1731 $as_echo "$ac_res" >&6; }
1732 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1734 } # ac_fn_c_check_header_compile
1736 # ac_fn_c_try_cpp LINENO
1737 # ----------------------
1738 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1739 ac_fn_c_try_cpp ()
1741 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1742 if { { ac_try="$ac_cpp conftest.$ac_ext"
1743 case "(($ac_try" in
1744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1745 *) ac_try_echo=$ac_try;;
1746 esac
1747 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1748 $as_echo "$ac_try_echo"; } >&5
1749 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1750 ac_status=$?
1751 if test -s conftest.err; then
1752 grep -v '^ *+' conftest.err >conftest.er1
1753 cat conftest.er1 >&5
1754 mv -f conftest.er1 conftest.err
1756 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1757 test $ac_status = 0; } > conftest.i && {
1758 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1759 test ! -s conftest.err
1760 }; then :
1761 ac_retval=0
1762 else
1763 $as_echo "$as_me: failed program was:" >&5
1764 sed 's/^/| /' conftest.$ac_ext >&5
1766 ac_retval=1
1768 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1769 as_fn_set_status $ac_retval
1771 } # ac_fn_c_try_cpp
1773 # ac_fn_c_try_run LINENO
1774 # ----------------------
1775 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1776 # that executables *can* be run.
1777 ac_fn_c_try_run ()
1779 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1780 if { { ac_try="$ac_link"
1781 case "(($ac_try" in
1782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1783 *) ac_try_echo=$ac_try;;
1784 esac
1785 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1786 $as_echo "$ac_try_echo"; } >&5
1787 (eval "$ac_link") 2>&5
1788 ac_status=$?
1789 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1790 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1791 { { case "(($ac_try" in
1792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1793 *) ac_try_echo=$ac_try;;
1794 esac
1795 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1796 $as_echo "$ac_try_echo"; } >&5
1797 (eval "$ac_try") 2>&5
1798 ac_status=$?
1799 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1800 test $ac_status = 0; }; }; then :
1801 ac_retval=0
1802 else
1803 $as_echo "$as_me: program exited with status $ac_status" >&5
1804 $as_echo "$as_me: failed program was:" >&5
1805 sed 's/^/| /' conftest.$ac_ext >&5
1807 ac_retval=$ac_status
1809 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1810 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1811 as_fn_set_status $ac_retval
1813 } # ac_fn_c_try_run
1815 # ac_fn_c_check_func LINENO FUNC VAR
1816 # ----------------------------------
1817 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1818 ac_fn_c_check_func ()
1820 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1822 $as_echo_n "checking for $2... " >&6; }
1823 if eval \${$3+:} false; then :
1824 $as_echo_n "(cached) " >&6
1825 else
1826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1827 /* end confdefs.h. */
1828 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1829 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1830 #define $2 innocuous_$2
1832 /* System header to define __stub macros and hopefully few prototypes,
1833 which can conflict with char $2 (); below.
1834 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1835 <limits.h> exists even on freestanding compilers. */
1837 #ifdef __STDC__
1838 # include <limits.h>
1839 #else
1840 # include <assert.h>
1841 #endif
1843 #undef $2
1845 /* Override any GCC internal prototype to avoid an error.
1846 Use char because int might match the return type of a GCC
1847 builtin and then its argument prototype would still apply. */
1848 #ifdef __cplusplus
1849 extern "C"
1850 #endif
1851 char $2 ();
1852 /* The GNU C library defines this for functions which it implements
1853 to always fail with ENOSYS. Some functions are actually named
1854 something starting with __ and the normal name is an alias. */
1855 #if defined __stub_$2 || defined __stub___$2
1856 choke me
1857 #endif
1860 main ()
1862 return $2 ();
1864 return 0;
1866 _ACEOF
1867 if ac_fn_c_try_link "$LINENO"; then :
1868 eval "$3=yes"
1869 else
1870 eval "$3=no"
1872 rm -f core conftest.err conftest.$ac_objext \
1873 conftest$ac_exeext conftest.$ac_ext
1875 eval ac_res=\$$3
1876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1877 $as_echo "$ac_res" >&6; }
1878 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1880 } # ac_fn_c_check_func
1882 # ac_fn_cxx_try_cpp LINENO
1883 # ------------------------
1884 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1885 ac_fn_cxx_try_cpp ()
1887 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1888 if { { ac_try="$ac_cpp conftest.$ac_ext"
1889 case "(($ac_try" in
1890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1891 *) ac_try_echo=$ac_try;;
1892 esac
1893 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1894 $as_echo "$ac_try_echo"; } >&5
1895 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1896 ac_status=$?
1897 if test -s conftest.err; then
1898 grep -v '^ *+' conftest.err >conftest.er1
1899 cat conftest.er1 >&5
1900 mv -f conftest.er1 conftest.err
1902 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1903 test $ac_status = 0; } > conftest.i && {
1904 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1905 test ! -s conftest.err
1906 }; then :
1907 ac_retval=0
1908 else
1909 $as_echo "$as_me: failed program was:" >&5
1910 sed 's/^/| /' conftest.$ac_ext >&5
1912 ac_retval=1
1914 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1915 as_fn_set_status $ac_retval
1917 } # ac_fn_cxx_try_cpp
1919 # ac_fn_cxx_try_link LINENO
1920 # -------------------------
1921 # Try to link conftest.$ac_ext, and return whether this succeeded.
1922 ac_fn_cxx_try_link ()
1924 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1925 rm -f conftest.$ac_objext conftest$ac_exeext
1926 if { { ac_try="$ac_link"
1927 case "(($ac_try" in
1928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1929 *) ac_try_echo=$ac_try;;
1930 esac
1931 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1932 $as_echo "$ac_try_echo"; } >&5
1933 (eval "$ac_link") 2>conftest.err
1934 ac_status=$?
1935 if test -s conftest.err; then
1936 grep -v '^ *+' conftest.err >conftest.er1
1937 cat conftest.er1 >&5
1938 mv -f conftest.er1 conftest.err
1940 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1941 test $ac_status = 0; } && {
1942 test -z "$ac_cxx_werror_flag" ||
1943 test ! -s conftest.err
1944 } && test -s conftest$ac_exeext && {
1945 test "$cross_compiling" = yes ||
1946 test -x conftest$ac_exeext
1947 }; then :
1948 ac_retval=0
1949 else
1950 $as_echo "$as_me: failed program was:" >&5
1951 sed 's/^/| /' conftest.$ac_ext >&5
1953 ac_retval=1
1955 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1956 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1957 # interfere with the next link command; also delete a directory that is
1958 # left behind by Apple's compiler. We do this before executing the actions.
1959 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1960 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1961 as_fn_set_status $ac_retval
1963 } # ac_fn_cxx_try_link
1965 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1966 # -------------------------------------------------------
1967 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1968 # the include files in INCLUDES and setting the cache variable VAR
1969 # accordingly.
1970 ac_fn_c_check_header_mongrel ()
1972 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1973 if eval \${$3+:} false; then :
1974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1975 $as_echo_n "checking for $2... " >&6; }
1976 if eval \${$3+:} false; then :
1977 $as_echo_n "(cached) " >&6
1979 eval ac_res=\$$3
1980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1981 $as_echo "$ac_res" >&6; }
1982 else
1983 # Is the header compilable?
1984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1985 $as_echo_n "checking $2 usability... " >&6; }
1986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1987 /* end confdefs.h. */
1989 #include <$2>
1990 _ACEOF
1991 if ac_fn_c_try_compile "$LINENO"; then :
1992 ac_header_compiler=yes
1993 else
1994 ac_header_compiler=no
1996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1998 $as_echo "$ac_header_compiler" >&6; }
2000 # Is the header present?
2001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2002 $as_echo_n "checking $2 presence... " >&6; }
2003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2004 /* end confdefs.h. */
2005 #include <$2>
2006 _ACEOF
2007 if ac_fn_c_try_cpp "$LINENO"; then :
2008 ac_header_preproc=yes
2009 else
2010 ac_header_preproc=no
2012 rm -f conftest.err conftest.i conftest.$ac_ext
2013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2014 $as_echo "$ac_header_preproc" >&6; }
2016 # So? What about this header?
2017 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2018 yes:no: )
2019 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2020 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2021 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2022 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2024 no:yes:* )
2025 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2026 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2027 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2028 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2029 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2030 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2031 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2032 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2033 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2034 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2036 esac
2037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2038 $as_echo_n "checking for $2... " >&6; }
2039 if eval \${$3+:} false; then :
2040 $as_echo_n "(cached) " >&6
2041 else
2042 eval "$3=\$ac_header_compiler"
2044 eval ac_res=\$$3
2045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2046 $as_echo "$ac_res" >&6; }
2048 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2050 } # ac_fn_c_check_header_mongrel
2052 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2053 # -------------------------------------------
2054 # Tests whether TYPE exists after having included INCLUDES, setting cache
2055 # variable VAR accordingly.
2056 ac_fn_c_check_type ()
2058 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2060 $as_echo_n "checking for $2... " >&6; }
2061 if eval \${$3+:} false; then :
2062 $as_echo_n "(cached) " >&6
2063 else
2064 eval "$3=no"
2065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2066 /* end confdefs.h. */
2069 main ()
2071 if (sizeof ($2))
2072 return 0;
2074 return 0;
2076 _ACEOF
2077 if ac_fn_c_try_compile "$LINENO"; then :
2078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2079 /* end confdefs.h. */
2082 main ()
2084 if (sizeof (($2)))
2085 return 0;
2087 return 0;
2089 _ACEOF
2090 if ac_fn_c_try_compile "$LINENO"; then :
2092 else
2093 eval "$3=yes"
2095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2099 eval ac_res=\$$3
2100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2101 $as_echo "$ac_res" >&6; }
2102 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2104 } # ac_fn_c_check_type
2106 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2107 # --------------------------------------------
2108 # Tries to find the compile-time value of EXPR in a program that includes
2109 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2110 # computed
2111 ac_fn_c_compute_int ()
2113 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2114 if test "$cross_compiling" = yes; then
2115 # Depending upon the size, compute the lo and hi bounds.
2116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2117 /* end confdefs.h. */
2120 main ()
2122 static int test_array [1 - 2 * !(($2) >= 0)];
2123 test_array [0] = 0;
2124 return test_array [0];
2127 return 0;
2129 _ACEOF
2130 if ac_fn_c_try_compile "$LINENO"; then :
2131 ac_lo=0 ac_mid=0
2132 while :; do
2133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2134 /* end confdefs.h. */
2137 main ()
2139 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2140 test_array [0] = 0;
2141 return test_array [0];
2144 return 0;
2146 _ACEOF
2147 if ac_fn_c_try_compile "$LINENO"; then :
2148 ac_hi=$ac_mid; break
2149 else
2150 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2151 if test $ac_lo -le $ac_mid; then
2152 ac_lo= ac_hi=
2153 break
2155 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2158 done
2159 else
2160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2161 /* end confdefs.h. */
2164 main ()
2166 static int test_array [1 - 2 * !(($2) < 0)];
2167 test_array [0] = 0;
2168 return test_array [0];
2171 return 0;
2173 _ACEOF
2174 if ac_fn_c_try_compile "$LINENO"; then :
2175 ac_hi=-1 ac_mid=-1
2176 while :; do
2177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2178 /* end confdefs.h. */
2181 main ()
2183 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2184 test_array [0] = 0;
2185 return test_array [0];
2188 return 0;
2190 _ACEOF
2191 if ac_fn_c_try_compile "$LINENO"; then :
2192 ac_lo=$ac_mid; break
2193 else
2194 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2195 if test $ac_mid -le $ac_hi; then
2196 ac_lo= ac_hi=
2197 break
2199 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2202 done
2203 else
2204 ac_lo= ac_hi=
2206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2209 # Binary search between lo and hi bounds.
2210 while test "x$ac_lo" != "x$ac_hi"; do
2211 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2213 /* end confdefs.h. */
2216 main ()
2218 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2219 test_array [0] = 0;
2220 return test_array [0];
2223 return 0;
2225 _ACEOF
2226 if ac_fn_c_try_compile "$LINENO"; then :
2227 ac_hi=$ac_mid
2228 else
2229 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2232 done
2233 case $ac_lo in #((
2234 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2235 '') ac_retval=1 ;;
2236 esac
2237 else
2238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2239 /* end confdefs.h. */
2241 static long int longval () { return $2; }
2242 static unsigned long int ulongval () { return $2; }
2243 #include <stdio.h>
2244 #include <stdlib.h>
2246 main ()
2249 FILE *f = fopen ("conftest.val", "w");
2250 if (! f)
2251 return 1;
2252 if (($2) < 0)
2254 long int i = longval ();
2255 if (i != ($2))
2256 return 1;
2257 fprintf (f, "%ld", i);
2259 else
2261 unsigned long int i = ulongval ();
2262 if (i != ($2))
2263 return 1;
2264 fprintf (f, "%lu", i);
2266 /* Do not output a trailing newline, as this causes \r\n confusion
2267 on some platforms. */
2268 return ferror (f) || fclose (f) != 0;
2271 return 0;
2273 _ACEOF
2274 if ac_fn_c_try_run "$LINENO"; then :
2275 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2276 else
2277 ac_retval=1
2279 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2280 conftest.$ac_objext conftest.beam conftest.$ac_ext
2281 rm -f conftest.val
2284 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2285 as_fn_set_status $ac_retval
2287 } # ac_fn_c_compute_int
2289 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2290 # ---------------------------------------------
2291 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2292 # accordingly.
2293 ac_fn_c_check_decl ()
2295 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2296 as_decl_name=`echo $2|sed 's/ *(.*//'`
2297 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2299 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2300 if eval \${$3+:} false; then :
2301 $as_echo_n "(cached) " >&6
2302 else
2303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2304 /* end confdefs.h. */
2307 main ()
2309 #ifndef $as_decl_name
2310 #ifdef __cplusplus
2311 (void) $as_decl_use;
2312 #else
2313 (void) $as_decl_name;
2314 #endif
2315 #endif
2318 return 0;
2320 _ACEOF
2321 if ac_fn_c_try_compile "$LINENO"; then :
2322 eval "$3=yes"
2323 else
2324 eval "$3=no"
2326 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2328 eval ac_res=\$$3
2329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2330 $as_echo "$ac_res" >&6; }
2331 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2333 } # ac_fn_c_check_decl
2334 cat >config.log <<_ACEOF
2335 This file contains any messages produced by compilers while
2336 running configure, to aid debugging if configure makes a mistake.
2338 It was created by GNU TM Runtime Library $as_me 1.0, which was
2339 generated by GNU Autoconf 2.69. Invocation command line was
2341 $ $0 $@
2343 _ACEOF
2344 exec 5>>config.log
2346 cat <<_ASUNAME
2347 ## --------- ##
2348 ## Platform. ##
2349 ## --------- ##
2351 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2352 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2353 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2354 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2355 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2357 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2358 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2360 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2361 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2362 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2363 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2364 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2365 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2366 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2368 _ASUNAME
2370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2371 for as_dir in $PATH
2373 IFS=$as_save_IFS
2374 test -z "$as_dir" && as_dir=.
2375 $as_echo "PATH: $as_dir"
2376 done
2377 IFS=$as_save_IFS
2379 } >&5
2381 cat >&5 <<_ACEOF
2384 ## ----------- ##
2385 ## Core tests. ##
2386 ## ----------- ##
2388 _ACEOF
2391 # Keep a trace of the command line.
2392 # Strip out --no-create and --no-recursion so they do not pile up.
2393 # Strip out --silent because we don't want to record it for future runs.
2394 # Also quote any args containing shell meta-characters.
2395 # Make two passes to allow for proper duplicate-argument suppression.
2396 ac_configure_args=
2397 ac_configure_args0=
2398 ac_configure_args1=
2399 ac_must_keep_next=false
2400 for ac_pass in 1 2
2402 for ac_arg
2404 case $ac_arg in
2405 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2406 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2407 | -silent | --silent | --silen | --sile | --sil)
2408 continue ;;
2409 *\'*)
2410 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2411 esac
2412 case $ac_pass in
2413 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2415 as_fn_append ac_configure_args1 " '$ac_arg'"
2416 if test $ac_must_keep_next = true; then
2417 ac_must_keep_next=false # Got value, back to normal.
2418 else
2419 case $ac_arg in
2420 *=* | --config-cache | -C | -disable-* | --disable-* \
2421 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2422 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2423 | -with-* | --with-* | -without-* | --without-* | --x)
2424 case "$ac_configure_args0 " in
2425 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2426 esac
2428 -* ) ac_must_keep_next=true ;;
2429 esac
2431 as_fn_append ac_configure_args " '$ac_arg'"
2433 esac
2434 done
2435 done
2436 { ac_configure_args0=; unset ac_configure_args0;}
2437 { ac_configure_args1=; unset ac_configure_args1;}
2439 # When interrupted or exit'd, cleanup temporary files, and complete
2440 # config.log. We remove comments because anyway the quotes in there
2441 # would cause problems or look ugly.
2442 # WARNING: Use '\'' to represent an apostrophe within the trap.
2443 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2444 trap 'exit_status=$?
2445 # Save into config.log some information that might help in debugging.
2447 echo
2449 $as_echo "## ---------------- ##
2450 ## Cache variables. ##
2451 ## ---------------- ##"
2452 echo
2453 # The following way of writing the cache mishandles newlines in values,
2455 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2456 eval ac_val=\$$ac_var
2457 case $ac_val in #(
2458 *${as_nl}*)
2459 case $ac_var in #(
2460 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2461 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2462 esac
2463 case $ac_var in #(
2464 _ | IFS | as_nl) ;; #(
2465 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2466 *) { eval $ac_var=; unset $ac_var;} ;;
2467 esac ;;
2468 esac
2469 done
2470 (set) 2>&1 |
2471 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2472 *${as_nl}ac_space=\ *)
2473 sed -n \
2474 "s/'\''/'\''\\\\'\'''\''/g;
2475 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2476 ;; #(
2478 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2480 esac |
2481 sort
2483 echo
2485 $as_echo "## ----------------- ##
2486 ## Output variables. ##
2487 ## ----------------- ##"
2488 echo
2489 for ac_var in $ac_subst_vars
2491 eval ac_val=\$$ac_var
2492 case $ac_val in
2493 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2494 esac
2495 $as_echo "$ac_var='\''$ac_val'\''"
2496 done | sort
2497 echo
2499 if test -n "$ac_subst_files"; then
2500 $as_echo "## ------------------- ##
2501 ## File substitutions. ##
2502 ## ------------------- ##"
2503 echo
2504 for ac_var in $ac_subst_files
2506 eval ac_val=\$$ac_var
2507 case $ac_val in
2508 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2509 esac
2510 $as_echo "$ac_var='\''$ac_val'\''"
2511 done | sort
2512 echo
2515 if test -s confdefs.h; then
2516 $as_echo "## ----------- ##
2517 ## confdefs.h. ##
2518 ## ----------- ##"
2519 echo
2520 cat confdefs.h
2521 echo
2523 test "$ac_signal" != 0 &&
2524 $as_echo "$as_me: caught signal $ac_signal"
2525 $as_echo "$as_me: exit $exit_status"
2526 } >&5
2527 rm -f core *.core core.conftest.* &&
2528 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2529 exit $exit_status
2531 for ac_signal in 1 2 13 15; do
2532 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2533 done
2534 ac_signal=0
2536 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2537 rm -f -r conftest* confdefs.h
2539 $as_echo "/* confdefs.h */" > confdefs.h
2541 # Predefined preprocessor variables.
2543 cat >>confdefs.h <<_ACEOF
2544 #define PACKAGE_NAME "$PACKAGE_NAME"
2545 _ACEOF
2547 cat >>confdefs.h <<_ACEOF
2548 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2549 _ACEOF
2551 cat >>confdefs.h <<_ACEOF
2552 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2553 _ACEOF
2555 cat >>confdefs.h <<_ACEOF
2556 #define PACKAGE_STRING "$PACKAGE_STRING"
2557 _ACEOF
2559 cat >>confdefs.h <<_ACEOF
2560 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2561 _ACEOF
2563 cat >>confdefs.h <<_ACEOF
2564 #define PACKAGE_URL "$PACKAGE_URL"
2565 _ACEOF
2568 # Let the site file select an alternate cache file if it wants to.
2569 # Prefer an explicitly selected file to automatically selected ones.
2570 ac_site_file1=NONE
2571 ac_site_file2=NONE
2572 if test -n "$CONFIG_SITE"; then
2573 # We do not want a PATH search for config.site.
2574 case $CONFIG_SITE in #((
2575 -*) ac_site_file1=./$CONFIG_SITE;;
2576 */*) ac_site_file1=$CONFIG_SITE;;
2577 *) ac_site_file1=./$CONFIG_SITE;;
2578 esac
2579 elif test "x$prefix" != xNONE; then
2580 ac_site_file1=$prefix/share/config.site
2581 ac_site_file2=$prefix/etc/config.site
2582 else
2583 ac_site_file1=$ac_default_prefix/share/config.site
2584 ac_site_file2=$ac_default_prefix/etc/config.site
2586 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2588 test "x$ac_site_file" = xNONE && continue
2589 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2590 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2591 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2592 sed 's/^/| /' "$ac_site_file" >&5
2593 . "$ac_site_file" \
2594 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2595 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2596 as_fn_error $? "failed to load site script $ac_site_file
2597 See \`config.log' for more details" "$LINENO" 5; }
2599 done
2601 if test -r "$cache_file"; then
2602 # Some versions of bash will fail to source /dev/null (special files
2603 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2604 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2605 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2606 $as_echo "$as_me: loading cache $cache_file" >&6;}
2607 case $cache_file in
2608 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2609 *) . "./$cache_file";;
2610 esac
2612 else
2613 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2614 $as_echo "$as_me: creating cache $cache_file" >&6;}
2615 >$cache_file
2618 # Check that the precious variables saved in the cache have kept the same
2619 # value.
2620 ac_cache_corrupted=false
2621 for ac_var in $ac_precious_vars; do
2622 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2623 eval ac_new_set=\$ac_env_${ac_var}_set
2624 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2625 eval ac_new_val=\$ac_env_${ac_var}_value
2626 case $ac_old_set,$ac_new_set in
2627 set,)
2628 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2629 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2630 ac_cache_corrupted=: ;;
2631 ,set)
2632 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2633 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2634 ac_cache_corrupted=: ;;
2635 ,);;
2637 if test "x$ac_old_val" != "x$ac_new_val"; then
2638 # differences in whitespace do not lead to failure.
2639 ac_old_val_w=`echo x $ac_old_val`
2640 ac_new_val_w=`echo x $ac_new_val`
2641 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2642 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2643 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2644 ac_cache_corrupted=:
2645 else
2646 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2647 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2648 eval $ac_var=\$ac_old_val
2650 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2651 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2652 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2653 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2654 fi;;
2655 esac
2656 # Pass precious variables to config.status.
2657 if test "$ac_new_set" = set; then
2658 case $ac_new_val in
2659 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2660 *) ac_arg=$ac_var=$ac_new_val ;;
2661 esac
2662 case " $ac_configure_args " in
2663 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2664 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2665 esac
2667 done
2668 if $ac_cache_corrupted; then
2669 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2670 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2671 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2672 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2673 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2675 ## -------------------- ##
2676 ## Main body of script. ##
2677 ## -------------------- ##
2679 ac_ext=c
2680 ac_cpp='$CPP $CPPFLAGS'
2681 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2682 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2683 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2689 ac_config_headers="$ac_config_headers config.h"
2692 # -------
2693 # Options
2694 # -------
2696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
2697 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
2698 # Check whether --enable-version-specific-runtime-libs was given.
2699 if test "${enable_version_specific_runtime_libs+set}" = set; then :
2700 enableval=$enable_version_specific_runtime_libs;
2701 case "$enableval" in
2702 yes|no) ;;
2703 *) as_fn_error $? "Unknown argument to enable/disable version-specific-runtime-libs" "$LINENO" 5 ;;
2704 esac
2706 else
2707 enable_version_specific_runtime_libs=no
2711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_version_specific_runtime_libs" >&5
2712 $as_echo "$enable_version_specific_runtime_libs" >&6; }
2714 # We would like our source tree to be readonly. However when releases or
2715 # pre-releases are generated, the flex/bison generated files as well as the
2716 # various formats of manuals need to be included along with the rest of the
2717 # sources. Therefore we have --enable-generated-files-in-srcdir to do
2718 # just that.
2719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-generated-files-in-srcdir" >&5
2720 $as_echo_n "checking for --enable-generated-files-in-srcdir... " >&6; }
2721 # Check whether --enable-generated-files-in-srcdir was given.
2722 if test "${enable_generated_files_in_srcdir+set}" = set; then :
2723 enableval=$enable_generated_files_in_srcdir;
2724 case "$enableval" in
2725 yes|no) ;;
2726 *) as_fn_error $? "Unknown argument to enable/disable generated-files-in-srcdir" "$LINENO" 5 ;;
2727 esac
2729 else
2730 enable_generated_files_in_srcdir=no
2734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_generated_files_in_srcdir" >&5
2735 $as_echo "$enable_generated_files_in_srcdir" >&6; }
2736 if test "$enable_generated_files_in_srcdir" = yes; then
2737 GENINSRC_TRUE=
2738 GENINSRC_FALSE='#'
2739 else
2740 GENINSRC_TRUE='#'
2741 GENINSRC_FALSE=
2746 # -------
2747 # -------
2749 # Gets build, host, target, *_vendor, *_cpu, *_os, etc.
2751 # You will slowly go insane if you do not grok the following fact: when
2752 # building this library, the top-level /target/ becomes the library's /host/.
2754 # configure then causes --target to default to --host, exactly like any
2755 # other package using autoconf. Therefore, 'target' and 'host' will
2756 # always be the same. This makes sense both for native and cross compilers
2757 # just think about it for a little while. :-)
2759 # Also, if this library is being configured as part of a cross compiler, the
2760 # top-level configure script will pass the "real" host as $with_cross_host.
2762 # Do not delete or change the following two lines. For why, see
2763 # http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
2764 ac_aux_dir=
2765 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2766 if test -f "$ac_dir/install-sh"; then
2767 ac_aux_dir=$ac_dir
2768 ac_install_sh="$ac_aux_dir/install-sh -c"
2769 break
2770 elif test -f "$ac_dir/install.sh"; then
2771 ac_aux_dir=$ac_dir
2772 ac_install_sh="$ac_aux_dir/install.sh -c"
2773 break
2774 elif test -f "$ac_dir/shtool"; then
2775 ac_aux_dir=$ac_dir
2776 ac_install_sh="$ac_aux_dir/shtool install -c"
2777 break
2779 done
2780 if test -z "$ac_aux_dir"; then
2781 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2784 # These three variables are undocumented and unsupported,
2785 # and are intended to be withdrawn in a future Autoconf release.
2786 # They can cause serious problems if a builder's source tree is in a directory
2787 # whose full name contains unusual characters.
2788 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2789 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2790 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2793 # Make sure we can run config.sub.
2794 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2795 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2798 $as_echo_n "checking build system type... " >&6; }
2799 if ${ac_cv_build+:} false; then :
2800 $as_echo_n "(cached) " >&6
2801 else
2802 ac_build_alias=$build_alias
2803 test "x$ac_build_alias" = x &&
2804 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2805 test "x$ac_build_alias" = x &&
2806 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2807 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2808 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2812 $as_echo "$ac_cv_build" >&6; }
2813 case $ac_cv_build in
2814 *-*-*) ;;
2815 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2816 esac
2817 build=$ac_cv_build
2818 ac_save_IFS=$IFS; IFS='-'
2819 set x $ac_cv_build
2820 shift
2821 build_cpu=$1
2822 build_vendor=$2
2823 shift; shift
2824 # Remember, the first character of IFS is used to create $*,
2825 # except with old shells:
2826 build_os=$*
2827 IFS=$ac_save_IFS
2828 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2832 $as_echo_n "checking host system type... " >&6; }
2833 if ${ac_cv_host+:} false; then :
2834 $as_echo_n "(cached) " >&6
2835 else
2836 if test "x$host_alias" = x; then
2837 ac_cv_host=$ac_cv_build
2838 else
2839 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2840 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2845 $as_echo "$ac_cv_host" >&6; }
2846 case $ac_cv_host in
2847 *-*-*) ;;
2848 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2849 esac
2850 host=$ac_cv_host
2851 ac_save_IFS=$IFS; IFS='-'
2852 set x $ac_cv_host
2853 shift
2854 host_cpu=$1
2855 host_vendor=$2
2856 shift; shift
2857 # Remember, the first character of IFS is used to create $*,
2858 # except with old shells:
2859 host_os=$*
2860 IFS=$ac_save_IFS
2861 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2865 $as_echo_n "checking target system type... " >&6; }
2866 if ${ac_cv_target+:} false; then :
2867 $as_echo_n "(cached) " >&6
2868 else
2869 if test "x$target_alias" = x; then
2870 ac_cv_target=$ac_cv_host
2871 else
2872 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2873 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2878 $as_echo "$ac_cv_target" >&6; }
2879 case $ac_cv_target in
2880 *-*-*) ;;
2881 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2882 esac
2883 target=$ac_cv_target
2884 ac_save_IFS=$IFS; IFS='-'
2885 set x $ac_cv_target
2886 shift
2887 target_cpu=$1
2888 target_vendor=$2
2889 shift; shift
2890 # Remember, the first character of IFS is used to create $*,
2891 # except with old shells:
2892 target_os=$*
2893 IFS=$ac_save_IFS
2894 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2897 # The aliases save the names the user supplied, while $host etc.
2898 # will get canonicalized.
2899 test -n "$target_alias" &&
2900 test "$program_prefix$program_suffix$program_transform_name" = \
2901 NONENONEs,x,x, &&
2902 program_prefix=${target_alias}-
2904 target_alias=${target_alias-$host_alias}
2906 # Sets up automake. Must come after AC_CANONICAL_SYSTEM. Each of the
2907 # following is magically included in AUTOMAKE_OPTIONS in each Makefile.am.
2908 # 1.9.0: minimum required version
2909 # no-define: PACKAGE and VERSION will not be #define'd in config.h (a bunch
2910 # of other PACKAGE_* variables will, however, and there's nothing
2911 # we can do about that; they come from AC_INIT).
2912 # no-dist: we don't want 'dist' and related rules.
2913 # foreign: we don't follow the normal rules for GNU packages (no COPYING
2914 # file in the top srcdir, etc, etc), so stop complaining.
2915 # -Wall: turns on all automake warnings...
2916 # -Wno-portability: ...except this one, since GNU make is required.
2917 # -Wno-override: ... and this one, since we do want this in testsuite.
2918 am__api_version='1.15'
2920 # Find a good install program. We prefer a C program (faster),
2921 # so one script is as good as another. But avoid the broken or
2922 # incompatible versions:
2923 # SysV /etc/install, /usr/sbin/install
2924 # SunOS /usr/etc/install
2925 # IRIX /sbin/install
2926 # AIX /bin/install
2927 # AmigaOS /C/install, which installs bootblocks on floppy discs
2928 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2929 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2930 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2931 # OS/2's system install, which has a completely different semantic
2932 # ./install, which can be erroneously created by make from ./install.sh.
2933 # Reject install programs that cannot install multiple files.
2934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2935 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2936 if test -z "$INSTALL"; then
2937 if ${ac_cv_path_install+:} false; then :
2938 $as_echo_n "(cached) " >&6
2939 else
2940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2941 for as_dir in $PATH
2943 IFS=$as_save_IFS
2944 test -z "$as_dir" && as_dir=.
2945 # Account for people who put trailing slashes in PATH elements.
2946 case $as_dir/ in #((
2947 ./ | .// | /[cC]/* | \
2948 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2949 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2950 /usr/ucb/* ) ;;
2952 # OSF1 and SCO ODT 3.0 have their own names for install.
2953 # Don't use installbsd from OSF since it installs stuff as root
2954 # by default.
2955 for ac_prog in ginstall scoinst install; do
2956 for ac_exec_ext in '' $ac_executable_extensions; do
2957 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2958 if test $ac_prog = install &&
2959 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2960 # AIX install. It has an incompatible calling convention.
2962 elif test $ac_prog = install &&
2963 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2964 # program-specific install script used by HP pwplus--don't use.
2966 else
2967 rm -rf conftest.one conftest.two conftest.dir
2968 echo one > conftest.one
2969 echo two > conftest.two
2970 mkdir conftest.dir
2971 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2972 test -s conftest.one && test -s conftest.two &&
2973 test -s conftest.dir/conftest.one &&
2974 test -s conftest.dir/conftest.two
2975 then
2976 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2977 break 3
2981 done
2982 done
2984 esac
2986 done
2987 IFS=$as_save_IFS
2989 rm -rf conftest.one conftest.two conftest.dir
2992 if test "${ac_cv_path_install+set}" = set; then
2993 INSTALL=$ac_cv_path_install
2994 else
2995 # As a last resort, use the slow shell script. Don't cache a
2996 # value for INSTALL within a source directory, because that will
2997 # break other packages using the cache if that directory is
2998 # removed, or if the value is a relative name.
2999 INSTALL=$ac_install_sh
3002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3003 $as_echo "$INSTALL" >&6; }
3005 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3006 # It thinks the first close brace ends the variable substitution.
3007 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3009 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3011 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3014 $as_echo_n "checking whether build environment is sane... " >&6; }
3015 # Reject unsafe characters in $srcdir or the absolute working directory
3016 # name. Accept space and tab only in the latter.
3017 am_lf='
3019 case `pwd` in
3020 *[\\\"\#\$\&\'\`$am_lf]*)
3021 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3022 esac
3023 case $srcdir in
3024 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3025 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3026 esac
3028 # Do 'set' in a subshell so we don't clobber the current shell's
3029 # arguments. Must try -L first in case configure is actually a
3030 # symlink; some systems play weird games with the mod time of symlinks
3031 # (eg FreeBSD returns the mod time of the symlink's containing
3032 # directory).
3033 if (
3034 am_has_slept=no
3035 for am_try in 1 2; do
3036 echo "timestamp, slept: $am_has_slept" > conftest.file
3037 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3038 if test "$*" = "X"; then
3039 # -L didn't work.
3040 set X `ls -t "$srcdir/configure" conftest.file`
3042 if test "$*" != "X $srcdir/configure conftest.file" \
3043 && test "$*" != "X conftest.file $srcdir/configure"; then
3045 # If neither matched, then we have a broken ls. This can happen
3046 # if, for instance, CONFIG_SHELL is bash and it inherits a
3047 # broken ls alias from the environment. This has actually
3048 # happened. Such a system could not be considered "sane".
3049 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3050 alias in your environment" "$LINENO" 5
3052 if test "$2" = conftest.file || test $am_try -eq 2; then
3053 break
3055 # Just in case.
3056 sleep 1
3057 am_has_slept=yes
3058 done
3059 test "$2" = conftest.file
3061 then
3062 # Ok.
3064 else
3065 as_fn_error $? "newly created file is older than distributed files!
3066 Check your system clock" "$LINENO" 5
3068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3069 $as_echo "yes" >&6; }
3070 # If we didn't sleep, we still need to ensure time stamps of config.status and
3071 # generated files are strictly newer.
3072 am_sleep_pid=
3073 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3074 ( sleep 1 ) &
3075 am_sleep_pid=$!
3078 rm -f conftest.file
3080 test "$program_prefix" != NONE &&
3081 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3082 # Use a double $ so make ignores it.
3083 test "$program_suffix" != NONE &&
3084 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3085 # Double any \ or $.
3086 # By default was `s,x,x', remove it if useless.
3087 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3088 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3090 # Expand $ac_aux_dir to an absolute path.
3091 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3093 if test x"${MISSING+set}" != xset; then
3094 case $am_aux_dir in
3095 *\ * | *\ *)
3096 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3098 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3099 esac
3101 # Use eval to expand $SHELL
3102 if eval "$MISSING --is-lightweight"; then
3103 am_missing_run="$MISSING "
3104 else
3105 am_missing_run=
3106 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3107 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3110 if test x"${install_sh+set}" != xset; then
3111 case $am_aux_dir in
3112 *\ * | *\ *)
3113 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3115 install_sh="\${SHELL} $am_aux_dir/install-sh"
3116 esac
3119 # Installed binaries are usually stripped using 'strip' when the user
3120 # run "make install-strip". However 'strip' might not be the right
3121 # tool to use in cross-compilation environments, therefore Automake
3122 # will honor the 'STRIP' environment variable to overrule this program.
3123 if test "$cross_compiling" != no; then
3124 if test -n "$ac_tool_prefix"; then
3125 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3126 set dummy ${ac_tool_prefix}strip; ac_word=$2
3127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3128 $as_echo_n "checking for $ac_word... " >&6; }
3129 if ${ac_cv_prog_STRIP+:} false; then :
3130 $as_echo_n "(cached) " >&6
3131 else
3132 if test -n "$STRIP"; then
3133 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3134 else
3135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3136 for as_dir in $PATH
3138 IFS=$as_save_IFS
3139 test -z "$as_dir" && as_dir=.
3140 for ac_exec_ext in '' $ac_executable_extensions; do
3141 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3142 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3143 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3144 break 2
3146 done
3147 done
3148 IFS=$as_save_IFS
3152 STRIP=$ac_cv_prog_STRIP
3153 if test -n "$STRIP"; then
3154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3155 $as_echo "$STRIP" >&6; }
3156 else
3157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3158 $as_echo "no" >&6; }
3163 if test -z "$ac_cv_prog_STRIP"; then
3164 ac_ct_STRIP=$STRIP
3165 # Extract the first word of "strip", so it can be a program name with args.
3166 set dummy strip; ac_word=$2
3167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3168 $as_echo_n "checking for $ac_word... " >&6; }
3169 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3170 $as_echo_n "(cached) " >&6
3171 else
3172 if test -n "$ac_ct_STRIP"; then
3173 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3174 else
3175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3176 for as_dir in $PATH
3178 IFS=$as_save_IFS
3179 test -z "$as_dir" && as_dir=.
3180 for ac_exec_ext in '' $ac_executable_extensions; do
3181 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3182 ac_cv_prog_ac_ct_STRIP="strip"
3183 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3184 break 2
3186 done
3187 done
3188 IFS=$as_save_IFS
3192 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3193 if test -n "$ac_ct_STRIP"; then
3194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3195 $as_echo "$ac_ct_STRIP" >&6; }
3196 else
3197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3198 $as_echo "no" >&6; }
3201 if test "x$ac_ct_STRIP" = x; then
3202 STRIP=":"
3203 else
3204 case $cross_compiling:$ac_tool_warned in
3205 yes:)
3206 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3207 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3208 ac_tool_warned=yes ;;
3209 esac
3210 STRIP=$ac_ct_STRIP
3212 else
3213 STRIP="$ac_cv_prog_STRIP"
3217 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3220 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3221 if test -z "$MKDIR_P"; then
3222 if ${ac_cv_path_mkdir+:} false; then :
3223 $as_echo_n "(cached) " >&6
3224 else
3225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3226 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3228 IFS=$as_save_IFS
3229 test -z "$as_dir" && as_dir=.
3230 for ac_prog in mkdir gmkdir; do
3231 for ac_exec_ext in '' $ac_executable_extensions; do
3232 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3233 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3234 'mkdir (GNU coreutils) '* | \
3235 'mkdir (coreutils) '* | \
3236 'mkdir (fileutils) '4.1*)
3237 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3238 break 3;;
3239 esac
3240 done
3241 done
3242 done
3243 IFS=$as_save_IFS
3247 test -d ./--version && rmdir ./--version
3248 if test "${ac_cv_path_mkdir+set}" = set; then
3249 MKDIR_P="$ac_cv_path_mkdir -p"
3250 else
3251 # As a last resort, use the slow shell script. Don't cache a
3252 # value for MKDIR_P within a source directory, because that will
3253 # break other packages using the cache if that directory is
3254 # removed, or if the value is a relative name.
3255 MKDIR_P="$ac_install_sh -d"
3258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3259 $as_echo "$MKDIR_P" >&6; }
3261 for ac_prog in gawk mawk nawk awk
3263 # Extract the first word of "$ac_prog", so it can be a program name with args.
3264 set dummy $ac_prog; ac_word=$2
3265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3266 $as_echo_n "checking for $ac_word... " >&6; }
3267 if ${ac_cv_prog_AWK+:} false; then :
3268 $as_echo_n "(cached) " >&6
3269 else
3270 if test -n "$AWK"; then
3271 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3272 else
3273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3274 for as_dir in $PATH
3276 IFS=$as_save_IFS
3277 test -z "$as_dir" && as_dir=.
3278 for ac_exec_ext in '' $ac_executable_extensions; do
3279 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3280 ac_cv_prog_AWK="$ac_prog"
3281 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3282 break 2
3284 done
3285 done
3286 IFS=$as_save_IFS
3290 AWK=$ac_cv_prog_AWK
3291 if test -n "$AWK"; then
3292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3293 $as_echo "$AWK" >&6; }
3294 else
3295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3296 $as_echo "no" >&6; }
3300 test -n "$AWK" && break
3301 done
3303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3304 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3305 set x ${MAKE-make}
3306 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3307 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3308 $as_echo_n "(cached) " >&6
3309 else
3310 cat >conftest.make <<\_ACEOF
3311 SHELL = /bin/sh
3312 all:
3313 @echo '@@@%%%=$(MAKE)=@@@%%%'
3314 _ACEOF
3315 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3316 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3317 *@@@%%%=?*=@@@%%%*)
3318 eval ac_cv_prog_make_${ac_make}_set=yes;;
3320 eval ac_cv_prog_make_${ac_make}_set=no;;
3321 esac
3322 rm -f conftest.make
3324 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3326 $as_echo "yes" >&6; }
3327 SET_MAKE=
3328 else
3329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3330 $as_echo "no" >&6; }
3331 SET_MAKE="MAKE=${MAKE-make}"
3334 rm -rf .tst 2>/dev/null
3335 mkdir .tst 2>/dev/null
3336 if test -d .tst; then
3337 am__leading_dot=.
3338 else
3339 am__leading_dot=_
3341 rmdir .tst 2>/dev/null
3343 # Check whether --enable-silent-rules was given.
3344 if test "${enable_silent_rules+set}" = set; then :
3345 enableval=$enable_silent_rules;
3348 case $enable_silent_rules in # (((
3349 yes) AM_DEFAULT_VERBOSITY=0;;
3350 no) AM_DEFAULT_VERBOSITY=1;;
3351 *) AM_DEFAULT_VERBOSITY=1;;
3352 esac
3353 am_make=${MAKE-make}
3354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3355 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3356 if ${am_cv_make_support_nested_variables+:} false; then :
3357 $as_echo_n "(cached) " >&6
3358 else
3359 if $as_echo 'TRUE=$(BAR$(V))
3360 BAR0=false
3361 BAR1=true
3363 am__doit:
3364 @$(TRUE)
3365 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3366 am_cv_make_support_nested_variables=yes
3367 else
3368 am_cv_make_support_nested_variables=no
3371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3372 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3373 if test $am_cv_make_support_nested_variables = yes; then
3374 AM_V='$(V)'
3375 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3376 else
3377 AM_V=$AM_DEFAULT_VERBOSITY
3378 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3380 AM_BACKSLASH='\'
3382 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3383 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3384 # is not polluted with repeated "-I."
3385 am__isrc=' -I$(srcdir)'
3386 # test to see if srcdir already configured
3387 if test -f $srcdir/config.status; then
3388 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3392 # test whether we have cygpath
3393 if test -z "$CYGPATH_W"; then
3394 if (cygpath --version) >/dev/null 2>/dev/null; then
3395 CYGPATH_W='cygpath -w'
3396 else
3397 CYGPATH_W=echo
3402 # Define the identity of the package.
3403 PACKAGE='libitm'
3404 VERSION='1.0'
3407 cat >>confdefs.h <<_ACEOF
3408 #define PACKAGE "$PACKAGE"
3409 _ACEOF
3412 cat >>confdefs.h <<_ACEOF
3413 #define VERSION "$VERSION"
3414 _ACEOF
3416 # Some tools Automake needs.
3418 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3421 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3424 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3427 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3430 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3432 # For better backward compatibility. To be removed once Automake 1.9.x
3433 # dies out for good. For more background, see:
3434 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3435 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3436 mkdir_p='$(MKDIR_P)'
3438 # We need awk for the "check" target (and possibly the TAP driver). The
3439 # system "awk" is bad on some platforms.
3440 # Always define AMTAR for backward compatibility. Yes, it's still used
3441 # in the wild :-( We should find a proper way to deprecate it ...
3442 AMTAR='$${TAR-tar}'
3445 # We'll loop over all known methods to create a tar archive until one works.
3446 _am_tools='gnutar pax cpio none'
3448 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3455 # POSIX will say in a future version that running "rm -f" with no argument
3456 # is OK; and we want to be able to make that assumption in our Makefile
3457 # recipes. So use an aggressive probe to check that the usage we want is
3458 # actually supported "in the wild" to an acceptable degree.
3459 # See automake bug#10828.
3460 # To make any issue more visible, cause the running configure to be aborted
3461 # by default if the 'rm' program in use doesn't match our expectations; the
3462 # user can still override this though.
3463 if rm -f && rm -fr && rm -rf; then : OK; else
3464 cat >&2 <<'END'
3465 Oops!
3467 Your 'rm' program seems unable to run without file operands specified
3468 on the command line, even when the '-f' option is present. This is contrary
3469 to the behaviour of most rm programs out there, and not conforming with
3470 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3472 Please tell bug-automake@gnu.org about your system, including the value
3473 of your $PATH and any error possibly output before this message. This
3474 can help us improve future automake versions.
3477 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3478 echo 'Configuration will proceed anyway, since you have set the' >&2
3479 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3480 echo >&2
3481 else
3482 cat >&2 <<'END'
3483 Aborting the configuration process, to ensure you take notice of the issue.
3485 You can download and install GNU coreutils to get an 'rm' implementation
3486 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3488 If you want to complete the configuration process using your problematic
3489 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3490 to "yes", and re-run configure.
3493 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3497 # Default to --enable-multilib
3498 # Check whether --enable-multilib was given.
3499 if test "${enable_multilib+set}" = set; then :
3500 enableval=$enable_multilib; case "$enableval" in
3501 yes) multilib=yes ;;
3502 no) multilib=no ;;
3503 *) as_fn_error $? "bad value $enableval for multilib option" "$LINENO" 5 ;;
3504 esac
3505 else
3506 multilib=yes
3510 # We may get other options which we leave undocumented:
3511 # --with-target-subdir, --with-multisrctop, --with-multisubdir
3512 # See config-ml.in if you want the gory details.
3514 if test "$srcdir" = "."; then
3515 if test "$with_target_subdir" != "."; then
3516 multi_basedir="$srcdir/$with_multisrctop../.."
3517 else
3518 multi_basedir="$srcdir/$with_multisrctop.."
3520 else
3521 multi_basedir="$srcdir/.."
3525 # Even if the default multilib is not a cross compilation,
3526 # it may be that some of the other multilibs are.
3527 if test $cross_compiling = no && test $multilib = yes \
3528 && test "x${with_multisubdir}" != x ; then
3529 cross_compiling=maybe
3532 ac_config_commands="$ac_config_commands default-1"
3536 # Check whether --with-toolexeclibdir was given.
3537 if test "${with_toolexeclibdir+set}" = set; then :
3538 withval=$with_toolexeclibdir; case ${with_toolexeclibdir} in
3542 with_toolexeclibdir=`echo $with_toolexeclibdir | sed 's,/$,,'`
3544 esac
3545 else
3546 with_toolexeclibdir=no
3551 # Calculate toolexeclibdir
3552 # Also toolexecdir, though it's only used in toolexeclibdir
3553 case ${enable_version_specific_runtime_libs} in
3554 yes)
3555 # Need the gcc compiler version to know where to install libraries
3556 # and header files if --enable-version-specific-runtime-libs option
3557 # is selected.
3558 toolexecdir='$(libdir)/gcc/$(target_alias)'
3559 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
3562 if test -n "$with_cross_host" &&
3563 test x"$with_cross_host" != x"no"; then
3564 # Install a library built with a cross compiler in tooldir, not libdir.
3565 toolexecdir='$(exec_prefix)/$(target_alias)'
3566 case ${with_toolexeclibdir} in
3568 toolexeclibdir='$(toolexecdir)/lib'
3571 toolexeclibdir=${with_toolexeclibdir}
3573 esac
3574 else
3575 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
3576 toolexeclibdir='$(libdir)'
3578 multi_os_directory=`$CC -print-multi-os-directory`
3579 case $multi_os_directory in
3580 .) ;; # Avoid trailing /.
3581 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
3582 esac
3584 esac
3588 # Check the compiler.
3589 # The same as in boehm-gc and libstdc++. Have to borrow it from there.
3590 # We must force CC to /not/ be precious variables; otherwise
3591 # the wrong, non-multilib-adjusted value will be used in multilibs.
3592 # As a side effect, we have to subst CFLAGS ourselves.
3596 ac_ext=c
3597 ac_cpp='$CPP $CPPFLAGS'
3598 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3599 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3600 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3601 if test -n "$ac_tool_prefix"; then
3602 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3603 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3605 $as_echo_n "checking for $ac_word... " >&6; }
3606 if ${ac_cv_prog_CC+:} false; then :
3607 $as_echo_n "(cached) " >&6
3608 else
3609 if test -n "$CC"; then
3610 ac_cv_prog_CC="$CC" # Let the user override the test.
3611 else
3612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3613 for as_dir in $PATH
3615 IFS=$as_save_IFS
3616 test -z "$as_dir" && as_dir=.
3617 for ac_exec_ext in '' $ac_executable_extensions; do
3618 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3619 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3620 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3621 break 2
3623 done
3624 done
3625 IFS=$as_save_IFS
3629 CC=$ac_cv_prog_CC
3630 if test -n "$CC"; then
3631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3632 $as_echo "$CC" >&6; }
3633 else
3634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3635 $as_echo "no" >&6; }
3640 if test -z "$ac_cv_prog_CC"; then
3641 ac_ct_CC=$CC
3642 # Extract the first word of "gcc", so it can be a program name with args.
3643 set dummy gcc; ac_word=$2
3644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3645 $as_echo_n "checking for $ac_word... " >&6; }
3646 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3647 $as_echo_n "(cached) " >&6
3648 else
3649 if test -n "$ac_ct_CC"; then
3650 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3651 else
3652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3653 for as_dir in $PATH
3655 IFS=$as_save_IFS
3656 test -z "$as_dir" && as_dir=.
3657 for ac_exec_ext in '' $ac_executable_extensions; do
3658 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3659 ac_cv_prog_ac_ct_CC="gcc"
3660 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3661 break 2
3663 done
3664 done
3665 IFS=$as_save_IFS
3669 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3670 if test -n "$ac_ct_CC"; then
3671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3672 $as_echo "$ac_ct_CC" >&6; }
3673 else
3674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3675 $as_echo "no" >&6; }
3678 if test "x$ac_ct_CC" = x; then
3679 CC=""
3680 else
3681 case $cross_compiling:$ac_tool_warned in
3682 yes:)
3683 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3684 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3685 ac_tool_warned=yes ;;
3686 esac
3687 CC=$ac_ct_CC
3689 else
3690 CC="$ac_cv_prog_CC"
3693 if test -z "$CC"; then
3694 if test -n "$ac_tool_prefix"; then
3695 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3696 set dummy ${ac_tool_prefix}cc; ac_word=$2
3697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3698 $as_echo_n "checking for $ac_word... " >&6; }
3699 if ${ac_cv_prog_CC+:} false; then :
3700 $as_echo_n "(cached) " >&6
3701 else
3702 if test -n "$CC"; then
3703 ac_cv_prog_CC="$CC" # Let the user override the test.
3704 else
3705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3706 for as_dir in $PATH
3708 IFS=$as_save_IFS
3709 test -z "$as_dir" && as_dir=.
3710 for ac_exec_ext in '' $ac_executable_extensions; do
3711 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3712 ac_cv_prog_CC="${ac_tool_prefix}cc"
3713 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3714 break 2
3716 done
3717 done
3718 IFS=$as_save_IFS
3722 CC=$ac_cv_prog_CC
3723 if test -n "$CC"; then
3724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3725 $as_echo "$CC" >&6; }
3726 else
3727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3728 $as_echo "no" >&6; }
3734 if test -z "$CC"; then
3735 # Extract the first word of "cc", so it can be a program name with args.
3736 set dummy cc; ac_word=$2
3737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3738 $as_echo_n "checking for $ac_word... " >&6; }
3739 if ${ac_cv_prog_CC+:} false; then :
3740 $as_echo_n "(cached) " >&6
3741 else
3742 if test -n "$CC"; then
3743 ac_cv_prog_CC="$CC" # Let the user override the test.
3744 else
3745 ac_prog_rejected=no
3746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3747 for as_dir in $PATH
3749 IFS=$as_save_IFS
3750 test -z "$as_dir" && as_dir=.
3751 for ac_exec_ext in '' $ac_executable_extensions; do
3752 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3753 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3754 ac_prog_rejected=yes
3755 continue
3757 ac_cv_prog_CC="cc"
3758 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3759 break 2
3761 done
3762 done
3763 IFS=$as_save_IFS
3765 if test $ac_prog_rejected = yes; then
3766 # We found a bogon in the path, so make sure we never use it.
3767 set dummy $ac_cv_prog_CC
3768 shift
3769 if test $# != 0; then
3770 # We chose a different compiler from the bogus one.
3771 # However, it has the same basename, so the bogon will be chosen
3772 # first if we set CC to just the basename; use the full file name.
3773 shift
3774 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3779 CC=$ac_cv_prog_CC
3780 if test -n "$CC"; then
3781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3782 $as_echo "$CC" >&6; }
3783 else
3784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3785 $as_echo "no" >&6; }
3790 if test -z "$CC"; then
3791 if test -n "$ac_tool_prefix"; then
3792 for ac_prog in cl.exe
3794 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3795 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3797 $as_echo_n "checking for $ac_word... " >&6; }
3798 if ${ac_cv_prog_CC+:} false; then :
3799 $as_echo_n "(cached) " >&6
3800 else
3801 if test -n "$CC"; then
3802 ac_cv_prog_CC="$CC" # Let the user override the test.
3803 else
3804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3805 for as_dir in $PATH
3807 IFS=$as_save_IFS
3808 test -z "$as_dir" && as_dir=.
3809 for ac_exec_ext in '' $ac_executable_extensions; do
3810 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3811 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3812 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3813 break 2
3815 done
3816 done
3817 IFS=$as_save_IFS
3821 CC=$ac_cv_prog_CC
3822 if test -n "$CC"; then
3823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3824 $as_echo "$CC" >&6; }
3825 else
3826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3827 $as_echo "no" >&6; }
3831 test -n "$CC" && break
3832 done
3834 if test -z "$CC"; then
3835 ac_ct_CC=$CC
3836 for ac_prog in cl.exe
3838 # Extract the first word of "$ac_prog", so it can be a program name with args.
3839 set dummy $ac_prog; ac_word=$2
3840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3841 $as_echo_n "checking for $ac_word... " >&6; }
3842 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3843 $as_echo_n "(cached) " >&6
3844 else
3845 if test -n "$ac_ct_CC"; then
3846 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3847 else
3848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3849 for as_dir in $PATH
3851 IFS=$as_save_IFS
3852 test -z "$as_dir" && as_dir=.
3853 for ac_exec_ext in '' $ac_executable_extensions; do
3854 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3855 ac_cv_prog_ac_ct_CC="$ac_prog"
3856 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3857 break 2
3859 done
3860 done
3861 IFS=$as_save_IFS
3865 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3866 if test -n "$ac_ct_CC"; then
3867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3868 $as_echo "$ac_ct_CC" >&6; }
3869 else
3870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3871 $as_echo "no" >&6; }
3875 test -n "$ac_ct_CC" && break
3876 done
3878 if test "x$ac_ct_CC" = x; then
3879 CC=""
3880 else
3881 case $cross_compiling:$ac_tool_warned in
3882 yes:)
3883 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3884 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3885 ac_tool_warned=yes ;;
3886 esac
3887 CC=$ac_ct_CC
3894 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3895 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3896 as_fn_error $? "no acceptable C compiler found in \$PATH
3897 See \`config.log' for more details" "$LINENO" 5; }
3899 # Provide some information about the compiler.
3900 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3901 set X $ac_compile
3902 ac_compiler=$2
3903 for ac_option in --version -v -V -qversion; do
3904 { { ac_try="$ac_compiler $ac_option >&5"
3905 case "(($ac_try" in
3906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3907 *) ac_try_echo=$ac_try;;
3908 esac
3909 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3910 $as_echo "$ac_try_echo"; } >&5
3911 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3912 ac_status=$?
3913 if test -s conftest.err; then
3914 sed '10a\
3915 ... rest of stderr output deleted ...
3916 10q' conftest.err >conftest.er1
3917 cat conftest.er1 >&5
3919 rm -f conftest.er1 conftest.err
3920 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3921 test $ac_status = 0; }
3922 done
3924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3925 /* end confdefs.h. */
3928 main ()
3932 return 0;
3934 _ACEOF
3935 ac_clean_files_save=$ac_clean_files
3936 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3937 # Try to create an executable without -o first, disregard a.out.
3938 # It will help us diagnose broken compilers, and finding out an intuition
3939 # of exeext.
3940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3941 $as_echo_n "checking whether the C compiler works... " >&6; }
3942 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3944 # The possible output files:
3945 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3947 ac_rmfiles=
3948 for ac_file in $ac_files
3950 case $ac_file in
3951 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3952 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3953 esac
3954 done
3955 rm -f $ac_rmfiles
3957 if { { ac_try="$ac_link_default"
3958 case "(($ac_try" in
3959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3960 *) ac_try_echo=$ac_try;;
3961 esac
3962 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3963 $as_echo "$ac_try_echo"; } >&5
3964 (eval "$ac_link_default") 2>&5
3965 ac_status=$?
3966 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3967 test $ac_status = 0; }; then :
3968 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3969 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3970 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3971 # so that the user can short-circuit this test for compilers unknown to
3972 # Autoconf.
3973 for ac_file in $ac_files ''
3975 test -f "$ac_file" || continue
3976 case $ac_file in
3977 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3979 [ab].out )
3980 # We found the default executable, but exeext='' is most
3981 # certainly right.
3982 break;;
3983 *.* )
3984 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3985 then :; else
3986 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3988 # We set ac_cv_exeext here because the later test for it is not
3989 # safe: cross compilers may not add the suffix if given an `-o'
3990 # argument, so we may need to know it at that point already.
3991 # Even if this section looks crufty: it has the advantage of
3992 # actually working.
3993 break;;
3995 break;;
3996 esac
3997 done
3998 test "$ac_cv_exeext" = no && ac_cv_exeext=
4000 else
4001 ac_file=''
4003 if test -z "$ac_file"; then :
4004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4005 $as_echo "no" >&6; }
4006 $as_echo "$as_me: failed program was:" >&5
4007 sed 's/^/| /' conftest.$ac_ext >&5
4009 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4010 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4011 as_fn_error 77 "C compiler cannot create executables
4012 See \`config.log' for more details" "$LINENO" 5; }
4013 else
4014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4015 $as_echo "yes" >&6; }
4017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4018 $as_echo_n "checking for C compiler default output file name... " >&6; }
4019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4020 $as_echo "$ac_file" >&6; }
4021 ac_exeext=$ac_cv_exeext
4023 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4024 ac_clean_files=$ac_clean_files_save
4025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4026 $as_echo_n "checking for suffix of executables... " >&6; }
4027 if { { ac_try="$ac_link"
4028 case "(($ac_try" in
4029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4030 *) ac_try_echo=$ac_try;;
4031 esac
4032 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4033 $as_echo "$ac_try_echo"; } >&5
4034 (eval "$ac_link") 2>&5
4035 ac_status=$?
4036 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4037 test $ac_status = 0; }; then :
4038 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4039 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4040 # work properly (i.e., refer to `conftest.exe'), while it won't with
4041 # `rm'.
4042 for ac_file in conftest.exe conftest conftest.*; do
4043 test -f "$ac_file" || continue
4044 case $ac_file in
4045 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4046 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4047 break;;
4048 * ) break;;
4049 esac
4050 done
4051 else
4052 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4053 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4054 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4055 See \`config.log' for more details" "$LINENO" 5; }
4057 rm -f conftest conftest$ac_cv_exeext
4058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4059 $as_echo "$ac_cv_exeext" >&6; }
4061 rm -f conftest.$ac_ext
4062 EXEEXT=$ac_cv_exeext
4063 ac_exeext=$EXEEXT
4064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4065 /* end confdefs.h. */
4066 #include <stdio.h>
4068 main ()
4070 FILE *f = fopen ("conftest.out", "w");
4071 return ferror (f) || fclose (f) != 0;
4074 return 0;
4076 _ACEOF
4077 ac_clean_files="$ac_clean_files conftest.out"
4078 # Check that the compiler produces executables we can run. If not, either
4079 # the compiler is broken, or we cross compile.
4080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4081 $as_echo_n "checking whether we are cross compiling... " >&6; }
4082 if test "$cross_compiling" != yes; then
4083 { { ac_try="$ac_link"
4084 case "(($ac_try" in
4085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4086 *) ac_try_echo=$ac_try;;
4087 esac
4088 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4089 $as_echo "$ac_try_echo"; } >&5
4090 (eval "$ac_link") 2>&5
4091 ac_status=$?
4092 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4093 test $ac_status = 0; }
4094 if { ac_try='./conftest$ac_cv_exeext'
4095 { { case "(($ac_try" in
4096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4097 *) ac_try_echo=$ac_try;;
4098 esac
4099 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4100 $as_echo "$ac_try_echo"; } >&5
4101 (eval "$ac_try") 2>&5
4102 ac_status=$?
4103 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4104 test $ac_status = 0; }; }; then
4105 cross_compiling=no
4106 else
4107 if test "$cross_compiling" = maybe; then
4108 cross_compiling=yes
4109 else
4110 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4111 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4112 as_fn_error $? "cannot run C compiled programs.
4113 If you meant to cross compile, use \`--host'.
4114 See \`config.log' for more details" "$LINENO" 5; }
4118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4119 $as_echo "$cross_compiling" >&6; }
4121 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4122 ac_clean_files=$ac_clean_files_save
4123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4124 $as_echo_n "checking for suffix of object files... " >&6; }
4125 if ${ac_cv_objext+:} false; then :
4126 $as_echo_n "(cached) " >&6
4127 else
4128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4129 /* end confdefs.h. */
4132 main ()
4136 return 0;
4138 _ACEOF
4139 rm -f conftest.o conftest.obj
4140 if { { ac_try="$ac_compile"
4141 case "(($ac_try" in
4142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4143 *) ac_try_echo=$ac_try;;
4144 esac
4145 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4146 $as_echo "$ac_try_echo"; } >&5
4147 (eval "$ac_compile") 2>&5
4148 ac_status=$?
4149 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4150 test $ac_status = 0; }; then :
4151 for ac_file in conftest.o conftest.obj conftest.*; do
4152 test -f "$ac_file" || continue;
4153 case $ac_file in
4154 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4155 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4156 break;;
4157 esac
4158 done
4159 else
4160 $as_echo "$as_me: failed program was:" >&5
4161 sed 's/^/| /' conftest.$ac_ext >&5
4163 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4164 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4165 as_fn_error $? "cannot compute suffix of object files: cannot compile
4166 See \`config.log' for more details" "$LINENO" 5; }
4168 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4171 $as_echo "$ac_cv_objext" >&6; }
4172 OBJEXT=$ac_cv_objext
4173 ac_objext=$OBJEXT
4174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4175 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4176 if ${ac_cv_c_compiler_gnu+:} false; then :
4177 $as_echo_n "(cached) " >&6
4178 else
4179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4180 /* end confdefs.h. */
4183 main ()
4185 #ifndef __GNUC__
4186 choke me
4187 #endif
4190 return 0;
4192 _ACEOF
4193 if ac_fn_c_try_compile "$LINENO"; then :
4194 ac_compiler_gnu=yes
4195 else
4196 ac_compiler_gnu=no
4198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4199 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4203 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4204 if test $ac_compiler_gnu = yes; then
4205 GCC=yes
4206 else
4207 GCC=
4209 ac_test_CFLAGS=${CFLAGS+set}
4210 ac_save_CFLAGS=$CFLAGS
4211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4212 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4213 if ${ac_cv_prog_cc_g+:} false; then :
4214 $as_echo_n "(cached) " >&6
4215 else
4216 ac_save_c_werror_flag=$ac_c_werror_flag
4217 ac_c_werror_flag=yes
4218 ac_cv_prog_cc_g=no
4219 CFLAGS="-g"
4220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4221 /* end confdefs.h. */
4224 main ()
4228 return 0;
4230 _ACEOF
4231 if ac_fn_c_try_compile "$LINENO"; then :
4232 ac_cv_prog_cc_g=yes
4233 else
4234 CFLAGS=""
4235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4236 /* end confdefs.h. */
4239 main ()
4243 return 0;
4245 _ACEOF
4246 if ac_fn_c_try_compile "$LINENO"; then :
4248 else
4249 ac_c_werror_flag=$ac_save_c_werror_flag
4250 CFLAGS="-g"
4251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4252 /* end confdefs.h. */
4255 main ()
4259 return 0;
4261 _ACEOF
4262 if ac_fn_c_try_compile "$LINENO"; then :
4263 ac_cv_prog_cc_g=yes
4265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4270 ac_c_werror_flag=$ac_save_c_werror_flag
4272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4273 $as_echo "$ac_cv_prog_cc_g" >&6; }
4274 if test "$ac_test_CFLAGS" = set; then
4275 CFLAGS=$ac_save_CFLAGS
4276 elif test $ac_cv_prog_cc_g = yes; then
4277 if test "$GCC" = yes; then
4278 CFLAGS="-g -O2"
4279 else
4280 CFLAGS="-g"
4282 else
4283 if test "$GCC" = yes; then
4284 CFLAGS="-O2"
4285 else
4286 CFLAGS=
4289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4290 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4291 if ${ac_cv_prog_cc_c89+:} false; then :
4292 $as_echo_n "(cached) " >&6
4293 else
4294 ac_cv_prog_cc_c89=no
4295 ac_save_CC=$CC
4296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4297 /* end confdefs.h. */
4298 #include <stdarg.h>
4299 #include <stdio.h>
4300 struct stat;
4301 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4302 struct buf { int x; };
4303 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4304 static char *e (p, i)
4305 char **p;
4306 int i;
4308 return p[i];
4310 static char *f (char * (*g) (char **, int), char **p, ...)
4312 char *s;
4313 va_list v;
4314 va_start (v,p);
4315 s = g (p, va_arg (v,int));
4316 va_end (v);
4317 return s;
4320 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4321 function prototypes and stuff, but not '\xHH' hex character constants.
4322 These don't provoke an error unfortunately, instead are silently treated
4323 as 'x'. The following induces an error, until -std is added to get
4324 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4325 array size at least. It's necessary to write '\x00'==0 to get something
4326 that's true only with -std. */
4327 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4329 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4330 inside strings and character constants. */
4331 #define FOO(x) 'x'
4332 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4334 int test (int i, double x);
4335 struct s1 {int (*f) (int a);};
4336 struct s2 {int (*f) (double a);};
4337 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4338 int argc;
4339 char **argv;
4341 main ()
4343 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4345 return 0;
4347 _ACEOF
4348 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4349 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4351 CC="$ac_save_CC $ac_arg"
4352 if ac_fn_c_try_compile "$LINENO"; then :
4353 ac_cv_prog_cc_c89=$ac_arg
4355 rm -f core conftest.err conftest.$ac_objext
4356 test "x$ac_cv_prog_cc_c89" != "xno" && break
4357 done
4358 rm -f conftest.$ac_ext
4359 CC=$ac_save_CC
4362 # AC_CACHE_VAL
4363 case "x$ac_cv_prog_cc_c89" in
4365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4366 $as_echo "none needed" >&6; } ;;
4367 xno)
4368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4369 $as_echo "unsupported" >&6; } ;;
4371 CC="$CC $ac_cv_prog_cc_c89"
4372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4373 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4374 esac
4375 if test "x$ac_cv_prog_cc_c89" != xno; then :
4379 ac_ext=c
4380 ac_cpp='$CPP $CPPFLAGS'
4381 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4382 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4383 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4385 ac_ext=c
4386 ac_cpp='$CPP $CPPFLAGS'
4387 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4388 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4389 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4391 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4392 if ${am_cv_prog_cc_c_o+:} false; then :
4393 $as_echo_n "(cached) " >&6
4394 else
4395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4396 /* end confdefs.h. */
4399 main ()
4403 return 0;
4405 _ACEOF
4406 # Make sure it works both with $CC and with simple cc.
4407 # Following AC_PROG_CC_C_O, we do the test twice because some
4408 # compilers refuse to overwrite an existing .o file with -o,
4409 # though they will create one.
4410 am_cv_prog_cc_c_o=yes
4411 for am_i in 1 2; do
4412 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4413 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4414 ac_status=$?
4415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4416 (exit $ac_status); } \
4417 && test -f conftest2.$ac_objext; then
4418 : OK
4419 else
4420 am_cv_prog_cc_c_o=no
4421 break
4423 done
4424 rm -f core conftest*
4425 unset am_i
4427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4428 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4429 if test "$am_cv_prog_cc_c_o" != yes; then
4430 # Losing compiler, so override with the script.
4431 # FIXME: It is wrong to rewrite CC.
4432 # But if we don't then we get into trouble of one sort or another.
4433 # A longer-term fix would be to have automake use am__CC in this case,
4434 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4435 CC="$am_aux_dir/compile $CC"
4437 ac_ext=c
4438 ac_cpp='$CPP $CPPFLAGS'
4439 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4440 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4441 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4443 DEPDIR="${am__leading_dot}deps"
4445 ac_config_commands="$ac_config_commands depfiles"
4448 am_make=${MAKE-make}
4449 cat > confinc << 'END'
4450 am__doit:
4451 @echo this is the am__doit target
4452 .PHONY: am__doit
4454 # If we don't find an include directive, just comment out the code.
4455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4456 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4457 am__include="#"
4458 am__quote=
4459 _am_result=none
4460 # First try GNU make style include.
4461 echo "include confinc" > confmf
4462 # Ignore all kinds of additional output from 'make'.
4463 case `$am_make -s -f confmf 2> /dev/null` in #(
4464 *the\ am__doit\ target*)
4465 am__include=include
4466 am__quote=
4467 _am_result=GNU
4469 esac
4470 # Now try BSD make style include.
4471 if test "$am__include" = "#"; then
4472 echo '.include "confinc"' > confmf
4473 case `$am_make -s -f confmf 2> /dev/null` in #(
4474 *the\ am__doit\ target*)
4475 am__include=.include
4476 am__quote="\""
4477 _am_result=BSD
4479 esac
4483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4484 $as_echo "$_am_result" >&6; }
4485 rm -f confinc confmf
4487 # Check whether --enable-dependency-tracking was given.
4488 if test "${enable_dependency_tracking+set}" = set; then :
4489 enableval=$enable_dependency_tracking;
4492 if test "x$enable_dependency_tracking" != xno; then
4493 am_depcomp="$ac_aux_dir/depcomp"
4494 AMDEPBACKSLASH='\'
4495 am__nodep='_no'
4497 if test "x$enable_dependency_tracking" != xno; then
4498 AMDEP_TRUE=
4499 AMDEP_FALSE='#'
4500 else
4501 AMDEP_TRUE='#'
4502 AMDEP_FALSE=
4507 depcc="$CC" am_compiler_list=
4509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4510 $as_echo_n "checking dependency style of $depcc... " >&6; }
4511 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4512 $as_echo_n "(cached) " >&6
4513 else
4514 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4515 # We make a subdir and do the tests there. Otherwise we can end up
4516 # making bogus files that we don't know about and never remove. For
4517 # instance it was reported that on HP-UX the gcc test will end up
4518 # making a dummy file named 'D' -- because '-MD' means "put the output
4519 # in D".
4520 rm -rf conftest.dir
4521 mkdir conftest.dir
4522 # Copy depcomp to subdir because otherwise we won't find it if we're
4523 # using a relative directory.
4524 cp "$am_depcomp" conftest.dir
4525 cd conftest.dir
4526 # We will build objects and dependencies in a subdirectory because
4527 # it helps to detect inapplicable dependency modes. For instance
4528 # both Tru64's cc and ICC support -MD to output dependencies as a
4529 # side effect of compilation, but ICC will put the dependencies in
4530 # the current directory while Tru64 will put them in the object
4531 # directory.
4532 mkdir sub
4534 am_cv_CC_dependencies_compiler_type=none
4535 if test "$am_compiler_list" = ""; then
4536 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4538 am__universal=false
4539 case " $depcc " in #(
4540 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4541 esac
4543 for depmode in $am_compiler_list; do
4544 # Setup a source with many dependencies, because some compilers
4545 # like to wrap large dependency lists on column 80 (with \), and
4546 # we should not choose a depcomp mode which is confused by this.
4548 # We need to recreate these files for each test, as the compiler may
4549 # overwrite some of them when testing with obscure command lines.
4550 # This happens at least with the AIX C compiler.
4551 : > sub/conftest.c
4552 for i in 1 2 3 4 5 6; do
4553 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4554 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4555 # Solaris 10 /bin/sh.
4556 echo '/* dummy */' > sub/conftst$i.h
4557 done
4558 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4560 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4561 # mode. It turns out that the SunPro C++ compiler does not properly
4562 # handle '-M -o', and we need to detect this. Also, some Intel
4563 # versions had trouble with output in subdirs.
4564 am__obj=sub/conftest.${OBJEXT-o}
4565 am__minus_obj="-o $am__obj"
4566 case $depmode in
4567 gcc)
4568 # This depmode causes a compiler race in universal mode.
4569 test "$am__universal" = false || continue
4571 nosideeffect)
4572 # After this tag, mechanisms are not by side-effect, so they'll
4573 # only be used when explicitly requested.
4574 if test "x$enable_dependency_tracking" = xyes; then
4575 continue
4576 else
4577 break
4580 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4581 # This compiler won't grok '-c -o', but also, the minuso test has
4582 # not run yet. These depmodes are late enough in the game, and
4583 # so weak that their functioning should not be impacted.
4584 am__obj=conftest.${OBJEXT-o}
4585 am__minus_obj=
4587 none) break ;;
4588 esac
4589 if depmode=$depmode \
4590 source=sub/conftest.c object=$am__obj \
4591 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4592 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4593 >/dev/null 2>conftest.err &&
4594 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4595 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4596 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4597 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4598 # icc doesn't choke on unknown options, it will just issue warnings
4599 # or remarks (even with -Werror). So we grep stderr for any message
4600 # that says an option was ignored or not supported.
4601 # When given -MP, icc 7.0 and 7.1 complain thusly:
4602 # icc: Command line warning: ignoring option '-M'; no argument required
4603 # The diagnosis changed in icc 8.0:
4604 # icc: Command line remark: option '-MP' not supported
4605 if (grep 'ignoring option' conftest.err ||
4606 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4607 am_cv_CC_dependencies_compiler_type=$depmode
4608 break
4611 done
4613 cd ..
4614 rm -rf conftest.dir
4615 else
4616 am_cv_CC_dependencies_compiler_type=none
4620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4621 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4622 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4625 test "x$enable_dependency_tracking" != xno \
4626 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4627 am__fastdepCC_TRUE=
4628 am__fastdepCC_FALSE='#'
4629 else
4630 am__fastdepCC_TRUE='#'
4631 am__fastdepCC_FALSE=
4635 ac_ext=cpp
4636 ac_cpp='$CXXCPP $CPPFLAGS'
4637 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4638 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4639 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4640 if test -z "$CXX"; then
4641 if test -n "$CCC"; then
4642 CXX=$CCC
4643 else
4644 if test -n "$ac_tool_prefix"; then
4645 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4647 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4648 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4650 $as_echo_n "checking for $ac_word... " >&6; }
4651 if ${ac_cv_prog_CXX+:} false; then :
4652 $as_echo_n "(cached) " >&6
4653 else
4654 if test -n "$CXX"; then
4655 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4656 else
4657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4658 for as_dir in $PATH
4660 IFS=$as_save_IFS
4661 test -z "$as_dir" && as_dir=.
4662 for ac_exec_ext in '' $ac_executable_extensions; do
4663 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4664 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4665 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4666 break 2
4668 done
4669 done
4670 IFS=$as_save_IFS
4674 CXX=$ac_cv_prog_CXX
4675 if test -n "$CXX"; then
4676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4677 $as_echo "$CXX" >&6; }
4678 else
4679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4680 $as_echo "no" >&6; }
4684 test -n "$CXX" && break
4685 done
4687 if test -z "$CXX"; then
4688 ac_ct_CXX=$CXX
4689 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4691 # Extract the first word of "$ac_prog", so it can be a program name with args.
4692 set dummy $ac_prog; ac_word=$2
4693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4694 $as_echo_n "checking for $ac_word... " >&6; }
4695 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4696 $as_echo_n "(cached) " >&6
4697 else
4698 if test -n "$ac_ct_CXX"; then
4699 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4700 else
4701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4702 for as_dir in $PATH
4704 IFS=$as_save_IFS
4705 test -z "$as_dir" && as_dir=.
4706 for ac_exec_ext in '' $ac_executable_extensions; do
4707 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4708 ac_cv_prog_ac_ct_CXX="$ac_prog"
4709 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4710 break 2
4712 done
4713 done
4714 IFS=$as_save_IFS
4718 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4719 if test -n "$ac_ct_CXX"; then
4720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4721 $as_echo "$ac_ct_CXX" >&6; }
4722 else
4723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4724 $as_echo "no" >&6; }
4728 test -n "$ac_ct_CXX" && break
4729 done
4731 if test "x$ac_ct_CXX" = x; then
4732 CXX="g++"
4733 else
4734 case $cross_compiling:$ac_tool_warned in
4735 yes:)
4736 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4737 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4738 ac_tool_warned=yes ;;
4739 esac
4740 CXX=$ac_ct_CXX
4746 # Provide some information about the compiler.
4747 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4748 set X $ac_compile
4749 ac_compiler=$2
4750 for ac_option in --version -v -V -qversion; do
4751 { { ac_try="$ac_compiler $ac_option >&5"
4752 case "(($ac_try" in
4753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4754 *) ac_try_echo=$ac_try;;
4755 esac
4756 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4757 $as_echo "$ac_try_echo"; } >&5
4758 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4759 ac_status=$?
4760 if test -s conftest.err; then
4761 sed '10a\
4762 ... rest of stderr output deleted ...
4763 10q' conftest.err >conftest.er1
4764 cat conftest.er1 >&5
4766 rm -f conftest.er1 conftest.err
4767 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4768 test $ac_status = 0; }
4769 done
4771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4772 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4773 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4774 $as_echo_n "(cached) " >&6
4775 else
4776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4777 /* end confdefs.h. */
4780 main ()
4782 #ifndef __GNUC__
4783 choke me
4784 #endif
4787 return 0;
4789 _ACEOF
4790 if ac_fn_cxx_try_compile "$LINENO"; then :
4791 ac_compiler_gnu=yes
4792 else
4793 ac_compiler_gnu=no
4795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4796 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4800 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4801 if test $ac_compiler_gnu = yes; then
4802 GXX=yes
4803 else
4804 GXX=
4806 ac_test_CXXFLAGS=${CXXFLAGS+set}
4807 ac_save_CXXFLAGS=$CXXFLAGS
4808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4809 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4810 if ${ac_cv_prog_cxx_g+:} false; then :
4811 $as_echo_n "(cached) " >&6
4812 else
4813 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4814 ac_cxx_werror_flag=yes
4815 ac_cv_prog_cxx_g=no
4816 CXXFLAGS="-g"
4817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4818 /* end confdefs.h. */
4821 main ()
4825 return 0;
4827 _ACEOF
4828 if ac_fn_cxx_try_compile "$LINENO"; then :
4829 ac_cv_prog_cxx_g=yes
4830 else
4831 CXXFLAGS=""
4832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4833 /* end confdefs.h. */
4836 main ()
4840 return 0;
4842 _ACEOF
4843 if ac_fn_cxx_try_compile "$LINENO"; then :
4845 else
4846 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4847 CXXFLAGS="-g"
4848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4849 /* end confdefs.h. */
4852 main ()
4856 return 0;
4858 _ACEOF
4859 if ac_fn_cxx_try_compile "$LINENO"; then :
4860 ac_cv_prog_cxx_g=yes
4862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4867 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4870 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4871 if test "$ac_test_CXXFLAGS" = set; then
4872 CXXFLAGS=$ac_save_CXXFLAGS
4873 elif test $ac_cv_prog_cxx_g = yes; then
4874 if test "$GXX" = yes; then
4875 CXXFLAGS="-g -O2"
4876 else
4877 CXXFLAGS="-g"
4879 else
4880 if test "$GXX" = yes; then
4881 CXXFLAGS="-O2"
4882 else
4883 CXXFLAGS=
4886 ac_ext=c
4887 ac_cpp='$CPP $CPPFLAGS'
4888 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4889 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4890 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4892 depcc="$CXX" am_compiler_list=
4894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4895 $as_echo_n "checking dependency style of $depcc... " >&6; }
4896 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
4897 $as_echo_n "(cached) " >&6
4898 else
4899 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4900 # We make a subdir and do the tests there. Otherwise we can end up
4901 # making bogus files that we don't know about and never remove. For
4902 # instance it was reported that on HP-UX the gcc test will end up
4903 # making a dummy file named 'D' -- because '-MD' means "put the output
4904 # in D".
4905 rm -rf conftest.dir
4906 mkdir conftest.dir
4907 # Copy depcomp to subdir because otherwise we won't find it if we're
4908 # using a relative directory.
4909 cp "$am_depcomp" conftest.dir
4910 cd conftest.dir
4911 # We will build objects and dependencies in a subdirectory because
4912 # it helps to detect inapplicable dependency modes. For instance
4913 # both Tru64's cc and ICC support -MD to output dependencies as a
4914 # side effect of compilation, but ICC will put the dependencies in
4915 # the current directory while Tru64 will put them in the object
4916 # directory.
4917 mkdir sub
4919 am_cv_CXX_dependencies_compiler_type=none
4920 if test "$am_compiler_list" = ""; then
4921 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4923 am__universal=false
4924 case " $depcc " in #(
4925 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4926 esac
4928 for depmode in $am_compiler_list; do
4929 # Setup a source with many dependencies, because some compilers
4930 # like to wrap large dependency lists on column 80 (with \), and
4931 # we should not choose a depcomp mode which is confused by this.
4933 # We need to recreate these files for each test, as the compiler may
4934 # overwrite some of them when testing with obscure command lines.
4935 # This happens at least with the AIX C compiler.
4936 : > sub/conftest.c
4937 for i in 1 2 3 4 5 6; do
4938 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4939 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4940 # Solaris 10 /bin/sh.
4941 echo '/* dummy */' > sub/conftst$i.h
4942 done
4943 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4945 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4946 # mode. It turns out that the SunPro C++ compiler does not properly
4947 # handle '-M -o', and we need to detect this. Also, some Intel
4948 # versions had trouble with output in subdirs.
4949 am__obj=sub/conftest.${OBJEXT-o}
4950 am__minus_obj="-o $am__obj"
4951 case $depmode in
4952 gcc)
4953 # This depmode causes a compiler race in universal mode.
4954 test "$am__universal" = false || continue
4956 nosideeffect)
4957 # After this tag, mechanisms are not by side-effect, so they'll
4958 # only be used when explicitly requested.
4959 if test "x$enable_dependency_tracking" = xyes; then
4960 continue
4961 else
4962 break
4965 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4966 # This compiler won't grok '-c -o', but also, the minuso test has
4967 # not run yet. These depmodes are late enough in the game, and
4968 # so weak that their functioning should not be impacted.
4969 am__obj=conftest.${OBJEXT-o}
4970 am__minus_obj=
4972 none) break ;;
4973 esac
4974 if depmode=$depmode \
4975 source=sub/conftest.c object=$am__obj \
4976 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4977 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4978 >/dev/null 2>conftest.err &&
4979 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4980 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4981 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4982 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4983 # icc doesn't choke on unknown options, it will just issue warnings
4984 # or remarks (even with -Werror). So we grep stderr for any message
4985 # that says an option was ignored or not supported.
4986 # When given -MP, icc 7.0 and 7.1 complain thusly:
4987 # icc: Command line warning: ignoring option '-M'; no argument required
4988 # The diagnosis changed in icc 8.0:
4989 # icc: Command line remark: option '-MP' not supported
4990 if (grep 'ignoring option' conftest.err ||
4991 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4992 am_cv_CXX_dependencies_compiler_type=$depmode
4993 break
4996 done
4998 cd ..
4999 rm -rf conftest.dir
5000 else
5001 am_cv_CXX_dependencies_compiler_type=none
5005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
5006 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5007 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5010 test "x$enable_dependency_tracking" != xno \
5011 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5012 am__fastdepCXX_TRUE=
5013 am__fastdepCXX_FALSE='#'
5014 else
5015 am__fastdepCXX_TRUE='#'
5016 am__fastdepCXX_FALSE=
5020 # By default we simply use the C compiler to build assembly code.
5022 test "${CCAS+set}" = set || CCAS=$CC
5023 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
5027 depcc="$CCAS" am_compiler_list=
5029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5030 $as_echo_n "checking dependency style of $depcc... " >&6; }
5031 if ${am_cv_CCAS_dependencies_compiler_type+:} false; then :
5032 $as_echo_n "(cached) " >&6
5033 else
5034 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5035 # We make a subdir and do the tests there. Otherwise we can end up
5036 # making bogus files that we don't know about and never remove. For
5037 # instance it was reported that on HP-UX the gcc test will end up
5038 # making a dummy file named 'D' -- because '-MD' means "put the output
5039 # in D".
5040 rm -rf conftest.dir
5041 mkdir conftest.dir
5042 # Copy depcomp to subdir because otherwise we won't find it if we're
5043 # using a relative directory.
5044 cp "$am_depcomp" conftest.dir
5045 cd conftest.dir
5046 # We will build objects and dependencies in a subdirectory because
5047 # it helps to detect inapplicable dependency modes. For instance
5048 # both Tru64's cc and ICC support -MD to output dependencies as a
5049 # side effect of compilation, but ICC will put the dependencies in
5050 # the current directory while Tru64 will put them in the object
5051 # directory.
5052 mkdir sub
5054 am_cv_CCAS_dependencies_compiler_type=none
5055 if test "$am_compiler_list" = ""; then
5056 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5058 am__universal=false
5061 for depmode in $am_compiler_list; do
5062 # Setup a source with many dependencies, because some compilers
5063 # like to wrap large dependency lists on column 80 (with \), and
5064 # we should not choose a depcomp mode which is confused by this.
5066 # We need to recreate these files for each test, as the compiler may
5067 # overwrite some of them when testing with obscure command lines.
5068 # This happens at least with the AIX C compiler.
5069 : > sub/conftest.c
5070 for i in 1 2 3 4 5 6; do
5071 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5072 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5073 # Solaris 10 /bin/sh.
5074 echo '/* dummy */' > sub/conftst$i.h
5075 done
5076 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5078 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5079 # mode. It turns out that the SunPro C++ compiler does not properly
5080 # handle '-M -o', and we need to detect this. Also, some Intel
5081 # versions had trouble with output in subdirs.
5082 am__obj=sub/conftest.${OBJEXT-o}
5083 am__minus_obj="-o $am__obj"
5084 case $depmode in
5085 gcc)
5086 # This depmode causes a compiler race in universal mode.
5087 test "$am__universal" = false || continue
5089 nosideeffect)
5090 # After this tag, mechanisms are not by side-effect, so they'll
5091 # only be used when explicitly requested.
5092 if test "x$enable_dependency_tracking" = xyes; then
5093 continue
5094 else
5095 break
5098 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5099 # This compiler won't grok '-c -o', but also, the minuso test has
5100 # not run yet. These depmodes are late enough in the game, and
5101 # so weak that their functioning should not be impacted.
5102 am__obj=conftest.${OBJEXT-o}
5103 am__minus_obj=
5105 none) break ;;
5106 esac
5107 if depmode=$depmode \
5108 source=sub/conftest.c object=$am__obj \
5109 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5110 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5111 >/dev/null 2>conftest.err &&
5112 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5113 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5114 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5115 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5116 # icc doesn't choke on unknown options, it will just issue warnings
5117 # or remarks (even with -Werror). So we grep stderr for any message
5118 # that says an option was ignored or not supported.
5119 # When given -MP, icc 7.0 and 7.1 complain thusly:
5120 # icc: Command line warning: ignoring option '-M'; no argument required
5121 # The diagnosis changed in icc 8.0:
5122 # icc: Command line remark: option '-MP' not supported
5123 if (grep 'ignoring option' conftest.err ||
5124 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5125 am_cv_CCAS_dependencies_compiler_type=$depmode
5126 break
5129 done
5131 cd ..
5132 rm -rf conftest.dir
5133 else
5134 am_cv_CCAS_dependencies_compiler_type=none
5138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
5139 $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
5140 CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
5143 test "x$enable_dependency_tracking" != xno \
5144 && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
5145 am__fastdepCCAS_TRUE=
5146 am__fastdepCCAS_FALSE='#'
5147 else
5148 am__fastdepCCAS_TRUE='#'
5149 am__fastdepCCAS_FALSE=
5157 # In order to override CFLAGS_FOR_TARGET, all of our special flags go
5158 # in XCFLAGS. But we need them in CFLAGS during configury. So put them
5159 # in both places for now and restore CFLAGS at the end of config.
5160 save_CFLAGS="$CFLAGS"
5162 # Find other programs we need.
5163 if test -n "$ac_tool_prefix"; then
5164 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5165 set dummy ${ac_tool_prefix}ar; ac_word=$2
5166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5167 $as_echo_n "checking for $ac_word... " >&6; }
5168 if ${ac_cv_prog_AR+:} false; then :
5169 $as_echo_n "(cached) " >&6
5170 else
5171 if test -n "$AR"; then
5172 ac_cv_prog_AR="$AR" # Let the user override the test.
5173 else
5174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5175 for as_dir in $PATH
5177 IFS=$as_save_IFS
5178 test -z "$as_dir" && as_dir=.
5179 for ac_exec_ext in '' $ac_executable_extensions; do
5180 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5181 ac_cv_prog_AR="${ac_tool_prefix}ar"
5182 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5183 break 2
5185 done
5186 done
5187 IFS=$as_save_IFS
5191 AR=$ac_cv_prog_AR
5192 if test -n "$AR"; then
5193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5194 $as_echo "$AR" >&6; }
5195 else
5196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5197 $as_echo "no" >&6; }
5202 if test -z "$ac_cv_prog_AR"; then
5203 ac_ct_AR=$AR
5204 # Extract the first word of "ar", so it can be a program name with args.
5205 set dummy ar; ac_word=$2
5206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5207 $as_echo_n "checking for $ac_word... " >&6; }
5208 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5209 $as_echo_n "(cached) " >&6
5210 else
5211 if test -n "$ac_ct_AR"; then
5212 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5213 else
5214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5215 for as_dir in $PATH
5217 IFS=$as_save_IFS
5218 test -z "$as_dir" && as_dir=.
5219 for ac_exec_ext in '' $ac_executable_extensions; do
5220 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5221 ac_cv_prog_ac_ct_AR="ar"
5222 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5223 break 2
5225 done
5226 done
5227 IFS=$as_save_IFS
5231 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5232 if test -n "$ac_ct_AR"; then
5233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5234 $as_echo "$ac_ct_AR" >&6; }
5235 else
5236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5237 $as_echo "no" >&6; }
5240 if test "x$ac_ct_AR" = x; then
5241 AR=""
5242 else
5243 case $cross_compiling:$ac_tool_warned in
5244 yes:)
5245 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5246 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5247 ac_tool_warned=yes ;;
5248 esac
5249 AR=$ac_ct_AR
5251 else
5252 AR="$ac_cv_prog_AR"
5255 if test -n "$ac_tool_prefix"; then
5256 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
5257 set dummy ${ac_tool_prefix}nm; ac_word=$2
5258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5259 $as_echo_n "checking for $ac_word... " >&6; }
5260 if ${ac_cv_prog_NM+:} false; then :
5261 $as_echo_n "(cached) " >&6
5262 else
5263 if test -n "$NM"; then
5264 ac_cv_prog_NM="$NM" # Let the user override the test.
5265 else
5266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5267 for as_dir in $PATH
5269 IFS=$as_save_IFS
5270 test -z "$as_dir" && as_dir=.
5271 for ac_exec_ext in '' $ac_executable_extensions; do
5272 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5273 ac_cv_prog_NM="${ac_tool_prefix}nm"
5274 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5275 break 2
5277 done
5278 done
5279 IFS=$as_save_IFS
5283 NM=$ac_cv_prog_NM
5284 if test -n "$NM"; then
5285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
5286 $as_echo "$NM" >&6; }
5287 else
5288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5289 $as_echo "no" >&6; }
5294 if test -z "$ac_cv_prog_NM"; then
5295 ac_ct_NM=$NM
5296 # Extract the first word of "nm", so it can be a program name with args.
5297 set dummy nm; ac_word=$2
5298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5299 $as_echo_n "checking for $ac_word... " >&6; }
5300 if ${ac_cv_prog_ac_ct_NM+:} false; then :
5301 $as_echo_n "(cached) " >&6
5302 else
5303 if test -n "$ac_ct_NM"; then
5304 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
5305 else
5306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5307 for as_dir in $PATH
5309 IFS=$as_save_IFS
5310 test -z "$as_dir" && as_dir=.
5311 for ac_exec_ext in '' $ac_executable_extensions; do
5312 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5313 ac_cv_prog_ac_ct_NM="nm"
5314 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5315 break 2
5317 done
5318 done
5319 IFS=$as_save_IFS
5323 ac_ct_NM=$ac_cv_prog_ac_ct_NM
5324 if test -n "$ac_ct_NM"; then
5325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5
5326 $as_echo "$ac_ct_NM" >&6; }
5327 else
5328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5329 $as_echo "no" >&6; }
5332 if test "x$ac_ct_NM" = x; then
5333 NM=""
5334 else
5335 case $cross_compiling:$ac_tool_warned in
5336 yes:)
5337 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5338 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5339 ac_tool_warned=yes ;;
5340 esac
5341 NM=$ac_ct_NM
5343 else
5344 NM="$ac_cv_prog_NM"
5347 if test -n "$ac_tool_prefix"; then
5348 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5349 set dummy ${ac_tool_prefix}ranlib; 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_RANLIB+:} false; then :
5353 $as_echo_n "(cached) " >&6
5354 else
5355 if test -n "$RANLIB"; then
5356 ac_cv_prog_RANLIB="$RANLIB" # 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_RANLIB="${ac_tool_prefix}ranlib"
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 RANLIB=$ac_cv_prog_RANLIB
5376 if test -n "$RANLIB"; then
5377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5378 $as_echo "$RANLIB" >&6; }
5379 else
5380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5381 $as_echo "no" >&6; }
5386 if test -z "$ac_cv_prog_RANLIB"; then
5387 ac_ct_RANLIB=$RANLIB
5388 # Extract the first word of "ranlib", so it can be a program name with args.
5389 set dummy ranlib; ac_word=$2
5390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5391 $as_echo_n "checking for $ac_word... " >&6; }
5392 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5393 $as_echo_n "(cached) " >&6
5394 else
5395 if test -n "$ac_ct_RANLIB"; then
5396 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5397 else
5398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5399 for as_dir in $PATH
5401 IFS=$as_save_IFS
5402 test -z "$as_dir" && as_dir=.
5403 for ac_exec_ext in '' $ac_executable_extensions; do
5404 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5405 ac_cv_prog_ac_ct_RANLIB="ranlib"
5406 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5407 break 2
5409 done
5410 done
5411 IFS=$as_save_IFS
5415 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5416 if test -n "$ac_ct_RANLIB"; then
5417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5418 $as_echo "$ac_ct_RANLIB" >&6; }
5419 else
5420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5421 $as_echo "no" >&6; }
5424 if test "x$ac_ct_RANLIB" = x; then
5425 RANLIB="ranlib-not-found-in-path-error"
5426 else
5427 case $cross_compiling:$ac_tool_warned in
5428 yes:)
5429 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5430 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5431 ac_tool_warned=yes ;;
5432 esac
5433 RANLIB=$ac_ct_RANLIB
5435 else
5436 RANLIB="$ac_cv_prog_RANLIB"
5439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5440 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5441 set x ${MAKE-make}
5442 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5443 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
5444 $as_echo_n "(cached) " >&6
5445 else
5446 cat >conftest.make <<\_ACEOF
5447 SHELL = /bin/sh
5448 all:
5449 @echo '@@@%%%=$(MAKE)=@@@%%%'
5450 _ACEOF
5451 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5452 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5453 *@@@%%%=?*=@@@%%%*)
5454 eval ac_cv_prog_make_${ac_make}_set=yes;;
5456 eval ac_cv_prog_make_${ac_make}_set=no;;
5457 esac
5458 rm -f conftest.make
5460 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5462 $as_echo "yes" >&6; }
5463 SET_MAKE=
5464 else
5465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5466 $as_echo "no" >&6; }
5467 SET_MAKE="MAKE=${MAKE-make}"
5472 # See if makeinfo has been installed and is modern enough
5473 # that we can use it.
5475 # Extract the first word of "makeinfo", so it can be a program name with args.
5476 set dummy makeinfo; ac_word=$2
5477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5478 $as_echo_n "checking for $ac_word... " >&6; }
5479 if ${ac_cv_prog_MAKEINFO+:} false; then :
5480 $as_echo_n "(cached) " >&6
5481 else
5482 if test -n "$MAKEINFO"; then
5483 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
5484 else
5485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5486 for as_dir in $PATH
5488 IFS=$as_save_IFS
5489 test -z "$as_dir" && as_dir=.
5490 for ac_exec_ext in '' $ac_executable_extensions; do
5491 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5492 ac_cv_prog_MAKEINFO="makeinfo"
5493 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5494 break 2
5496 done
5497 done
5498 IFS=$as_save_IFS
5502 MAKEINFO=$ac_cv_prog_MAKEINFO
5503 if test -n "$MAKEINFO"; then
5504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
5505 $as_echo "$MAKEINFO" >&6; }
5506 else
5507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5508 $as_echo "no" >&6; }
5512 if test -n "$MAKEINFO"; then
5513 # Found it, now check the version.
5514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
5515 $as_echo_n "checking for modern makeinfo... " >&6; }
5516 if ${gcc_cv_prog_makeinfo_modern+:} false; then :
5517 $as_echo_n "(cached) " >&6
5518 else
5519 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
5520 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
5522 case $ac_prog_version in
5523 '') gcc_cv_prog_makeinfo_modern=no;;
5524 4.[4-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
5525 *) gcc_cv_prog_makeinfo_modern=no;;
5526 esac
5529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
5530 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
5531 else
5532 gcc_cv_prog_makeinfo_modern=no
5534 if test $gcc_cv_prog_makeinfo_modern = no; then
5535 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
5538 if test $gcc_cv_prog_makeinfo_modern = "yes"; then
5539 BUILD_INFO_TRUE=
5540 BUILD_INFO_FALSE='#'
5541 else
5542 BUILD_INFO_TRUE='#'
5543 BUILD_INFO_FALSE=
5548 # Configure libtool
5549 case `pwd` in
5550 *\ * | *\ *)
5551 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5552 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5553 esac
5557 macro_version='2.2.7a'
5558 macro_revision='1.3134'
5572 ltmain="$ac_aux_dir/ltmain.sh"
5574 # Backslashify metacharacters that are still active within
5575 # double-quoted strings.
5576 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5578 # Same as above, but do not quote variable references.
5579 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5581 # Sed substitution to delay expansion of an escaped shell variable in a
5582 # double_quote_subst'ed string.
5583 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5585 # Sed substitution to delay expansion of an escaped single quote.
5586 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5588 # Sed substitution to avoid accidental globbing in evaled expressions
5589 no_glob_subst='s/\*/\\\*/g'
5591 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5592 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5593 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5596 $as_echo_n "checking how to print strings... " >&6; }
5597 # Test print first, because it will be a builtin if present.
5598 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5599 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5600 ECHO='print -r --'
5601 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5602 ECHO='printf %s\n'
5603 else
5604 # Use this function as a fallback that always works.
5605 func_fallback_echo ()
5607 eval 'cat <<_LTECHO_EOF
5609 _LTECHO_EOF'
5611 ECHO='func_fallback_echo'
5614 # func_echo_all arg...
5615 # Invoke $ECHO with all args, space-separated.
5616 func_echo_all ()
5618 $ECHO ""
5621 case "$ECHO" in
5622 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5623 $as_echo "printf" >&6; } ;;
5624 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5625 $as_echo "print -r" >&6; } ;;
5626 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5627 $as_echo "cat" >&6; } ;;
5628 esac
5643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5644 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5645 if ${ac_cv_path_SED+:} false; then :
5646 $as_echo_n "(cached) " >&6
5647 else
5648 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5649 for ac_i in 1 2 3 4 5 6 7; do
5650 ac_script="$ac_script$as_nl$ac_script"
5651 done
5652 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5653 { ac_script=; unset ac_script;}
5654 if test -z "$SED"; then
5655 ac_path_SED_found=false
5656 # Loop through the user's path and test for each of PROGNAME-LIST
5657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5658 for as_dir in $PATH
5660 IFS=$as_save_IFS
5661 test -z "$as_dir" && as_dir=.
5662 for ac_prog in sed gsed; do
5663 for ac_exec_ext in '' $ac_executable_extensions; do
5664 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5665 as_fn_executable_p "$ac_path_SED" || continue
5666 # Check for GNU ac_path_SED and select it if it is found.
5667 # Check for GNU $ac_path_SED
5668 case `"$ac_path_SED" --version 2>&1` in
5669 *GNU*)
5670 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5672 ac_count=0
5673 $as_echo_n 0123456789 >"conftest.in"
5674 while :
5676 cat "conftest.in" "conftest.in" >"conftest.tmp"
5677 mv "conftest.tmp" "conftest.in"
5678 cp "conftest.in" "conftest.nl"
5679 $as_echo '' >> "conftest.nl"
5680 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5681 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5682 as_fn_arith $ac_count + 1 && ac_count=$as_val
5683 if test $ac_count -gt ${ac_path_SED_max-0}; then
5684 # Best one so far, save it but keep looking for a better one
5685 ac_cv_path_SED="$ac_path_SED"
5686 ac_path_SED_max=$ac_count
5688 # 10*(2^10) chars as input seems more than enough
5689 test $ac_count -gt 10 && break
5690 done
5691 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5692 esac
5694 $ac_path_SED_found && break 3
5695 done
5696 done
5697 done
5698 IFS=$as_save_IFS
5699 if test -z "$ac_cv_path_SED"; then
5700 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5702 else
5703 ac_cv_path_SED=$SED
5707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5708 $as_echo "$ac_cv_path_SED" >&6; }
5709 SED="$ac_cv_path_SED"
5710 rm -f conftest.sed
5712 test -z "$SED" && SED=sed
5713 Xsed="$SED -e 1s/^X//"
5725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5726 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5727 if ${ac_cv_path_GREP+:} false; then :
5728 $as_echo_n "(cached) " >&6
5729 else
5730 if test -z "$GREP"; then
5731 ac_path_GREP_found=false
5732 # Loop through the user's path and test for each of PROGNAME-LIST
5733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5734 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5736 IFS=$as_save_IFS
5737 test -z "$as_dir" && as_dir=.
5738 for ac_prog in grep ggrep; do
5739 for ac_exec_ext in '' $ac_executable_extensions; do
5740 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5741 as_fn_executable_p "$ac_path_GREP" || continue
5742 # Check for GNU ac_path_GREP and select it if it is found.
5743 # Check for GNU $ac_path_GREP
5744 case `"$ac_path_GREP" --version 2>&1` in
5745 *GNU*)
5746 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5748 ac_count=0
5749 $as_echo_n 0123456789 >"conftest.in"
5750 while :
5752 cat "conftest.in" "conftest.in" >"conftest.tmp"
5753 mv "conftest.tmp" "conftest.in"
5754 cp "conftest.in" "conftest.nl"
5755 $as_echo 'GREP' >> "conftest.nl"
5756 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5757 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5758 as_fn_arith $ac_count + 1 && ac_count=$as_val
5759 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5760 # Best one so far, save it but keep looking for a better one
5761 ac_cv_path_GREP="$ac_path_GREP"
5762 ac_path_GREP_max=$ac_count
5764 # 10*(2^10) chars as input seems more than enough
5765 test $ac_count -gt 10 && break
5766 done
5767 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5768 esac
5770 $ac_path_GREP_found && break 3
5771 done
5772 done
5773 done
5774 IFS=$as_save_IFS
5775 if test -z "$ac_cv_path_GREP"; then
5776 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5778 else
5779 ac_cv_path_GREP=$GREP
5783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5784 $as_echo "$ac_cv_path_GREP" >&6; }
5785 GREP="$ac_cv_path_GREP"
5788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5789 $as_echo_n "checking for egrep... " >&6; }
5790 if ${ac_cv_path_EGREP+:} false; then :
5791 $as_echo_n "(cached) " >&6
5792 else
5793 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5794 then ac_cv_path_EGREP="$GREP -E"
5795 else
5796 if test -z "$EGREP"; then
5797 ac_path_EGREP_found=false
5798 # Loop through the user's path and test for each of PROGNAME-LIST
5799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5800 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5802 IFS=$as_save_IFS
5803 test -z "$as_dir" && as_dir=.
5804 for ac_prog in egrep; do
5805 for ac_exec_ext in '' $ac_executable_extensions; do
5806 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5807 as_fn_executable_p "$ac_path_EGREP" || continue
5808 # Check for GNU ac_path_EGREP and select it if it is found.
5809 # Check for GNU $ac_path_EGREP
5810 case `"$ac_path_EGREP" --version 2>&1` in
5811 *GNU*)
5812 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5814 ac_count=0
5815 $as_echo_n 0123456789 >"conftest.in"
5816 while :
5818 cat "conftest.in" "conftest.in" >"conftest.tmp"
5819 mv "conftest.tmp" "conftest.in"
5820 cp "conftest.in" "conftest.nl"
5821 $as_echo 'EGREP' >> "conftest.nl"
5822 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5823 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5824 as_fn_arith $ac_count + 1 && ac_count=$as_val
5825 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5826 # Best one so far, save it but keep looking for a better one
5827 ac_cv_path_EGREP="$ac_path_EGREP"
5828 ac_path_EGREP_max=$ac_count
5830 # 10*(2^10) chars as input seems more than enough
5831 test $ac_count -gt 10 && break
5832 done
5833 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5834 esac
5836 $ac_path_EGREP_found && break 3
5837 done
5838 done
5839 done
5840 IFS=$as_save_IFS
5841 if test -z "$ac_cv_path_EGREP"; then
5842 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5844 else
5845 ac_cv_path_EGREP=$EGREP
5850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5851 $as_echo "$ac_cv_path_EGREP" >&6; }
5852 EGREP="$ac_cv_path_EGREP"
5855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5856 $as_echo_n "checking for fgrep... " >&6; }
5857 if ${ac_cv_path_FGREP+:} false; then :
5858 $as_echo_n "(cached) " >&6
5859 else
5860 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5861 then ac_cv_path_FGREP="$GREP -F"
5862 else
5863 if test -z "$FGREP"; then
5864 ac_path_FGREP_found=false
5865 # Loop through the user's path and test for each of PROGNAME-LIST
5866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5867 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5869 IFS=$as_save_IFS
5870 test -z "$as_dir" && as_dir=.
5871 for ac_prog in fgrep; do
5872 for ac_exec_ext in '' $ac_executable_extensions; do
5873 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5874 as_fn_executable_p "$ac_path_FGREP" || continue
5875 # Check for GNU ac_path_FGREP and select it if it is found.
5876 # Check for GNU $ac_path_FGREP
5877 case `"$ac_path_FGREP" --version 2>&1` in
5878 *GNU*)
5879 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5881 ac_count=0
5882 $as_echo_n 0123456789 >"conftest.in"
5883 while :
5885 cat "conftest.in" "conftest.in" >"conftest.tmp"
5886 mv "conftest.tmp" "conftest.in"
5887 cp "conftest.in" "conftest.nl"
5888 $as_echo 'FGREP' >> "conftest.nl"
5889 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5890 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5891 as_fn_arith $ac_count + 1 && ac_count=$as_val
5892 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5893 # Best one so far, save it but keep looking for a better one
5894 ac_cv_path_FGREP="$ac_path_FGREP"
5895 ac_path_FGREP_max=$ac_count
5897 # 10*(2^10) chars as input seems more than enough
5898 test $ac_count -gt 10 && break
5899 done
5900 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5901 esac
5903 $ac_path_FGREP_found && break 3
5904 done
5905 done
5906 done
5907 IFS=$as_save_IFS
5908 if test -z "$ac_cv_path_FGREP"; then
5909 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5911 else
5912 ac_cv_path_FGREP=$FGREP
5917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5918 $as_echo "$ac_cv_path_FGREP" >&6; }
5919 FGREP="$ac_cv_path_FGREP"
5922 test -z "$GREP" && GREP=grep
5942 # Check whether --with-gnu-ld was given.
5943 if test "${with_gnu_ld+set}" = set; then :
5944 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5945 else
5946 with_gnu_ld=no
5949 ac_prog=ld
5950 if test "$GCC" = yes; then
5951 # Check if gcc -print-prog-name=ld gives a path.
5952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5953 $as_echo_n "checking for ld used by $CC... " >&6; }
5954 case $host in
5955 *-*-mingw*)
5956 # gcc leaves a trailing carriage return which upsets mingw
5957 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5959 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5960 esac
5961 case $ac_prog in
5962 # Accept absolute paths.
5963 [\\/]* | ?:[\\/]*)
5964 re_direlt='/[^/][^/]*/\.\./'
5965 # Canonicalize the pathname of ld
5966 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5967 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5968 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5969 done
5970 test -z "$LD" && LD="$ac_prog"
5973 # If it fails, then pretend we aren't using GCC.
5974 ac_prog=ld
5977 # If it is relative, then search for the first ld in PATH.
5978 with_gnu_ld=unknown
5980 esac
5981 elif test "$with_gnu_ld" = yes; then
5982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5983 $as_echo_n "checking for GNU ld... " >&6; }
5984 else
5985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5986 $as_echo_n "checking for non-GNU ld... " >&6; }
5988 if ${lt_cv_path_LD+:} false; then :
5989 $as_echo_n "(cached) " >&6
5990 else
5991 if test -z "$LD"; then
5992 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5993 for ac_dir in $PATH; do
5994 IFS="$lt_save_ifs"
5995 test -z "$ac_dir" && ac_dir=.
5996 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5997 lt_cv_path_LD="$ac_dir/$ac_prog"
5998 # Check to see if the program is GNU ld. I'd rather use --version,
5999 # but apparently some variants of GNU ld only accept -v.
6000 # Break only if it was the GNU/non-GNU ld that we prefer.
6001 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6002 *GNU* | *'with BFD'*)
6003 test "$with_gnu_ld" != no && break
6006 test "$with_gnu_ld" != yes && break
6008 esac
6010 done
6011 IFS="$lt_save_ifs"
6012 else
6013 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6017 LD="$lt_cv_path_LD"
6018 if test -n "$LD"; then
6019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6020 $as_echo "$LD" >&6; }
6021 else
6022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6023 $as_echo "no" >&6; }
6025 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6027 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6028 if ${lt_cv_prog_gnu_ld+:} false; then :
6029 $as_echo_n "(cached) " >&6
6030 else
6031 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6032 case `$LD -v 2>&1 </dev/null` in
6033 *GNU* | *'with BFD'*)
6034 lt_cv_prog_gnu_ld=yes
6037 lt_cv_prog_gnu_ld=no
6039 esac
6041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6042 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6043 with_gnu_ld=$lt_cv_prog_gnu_ld
6053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6054 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6055 if ${lt_cv_path_NM+:} false; then :
6056 $as_echo_n "(cached) " >&6
6057 else
6058 if test -n "$NM"; then
6059 # Let the user override the nm to test.
6060 lt_nm_to_check="$NM"
6061 else
6062 lt_nm_to_check="${ac_tool_prefix}nm"
6063 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6064 lt_nm_to_check="$lt_nm_to_check nm"
6067 for lt_tmp_nm in "$lt_nm_to_check"; do
6068 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6069 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6070 IFS="$lt_save_ifs"
6071 test -z "$ac_dir" && ac_dir=.
6072 # Strip out any user-provided options from the nm to test twice,
6073 # the first time to test to see if nm (rather than its options) has
6074 # an explicit path, the second time to yield a file which can be
6075 # nm'ed itself.
6076 tmp_nm_path="`$ECHO "$lt_tmp_nm" | sed 's, -.*$,,'`"
6077 case "$tmp_nm_path" in
6078 */*|*\\*) tmp_nm="$lt_tmp_nm";;
6079 *) tmp_nm="$ac_dir/$lt_tmp_nm";;
6080 esac
6081 tmp_nm_to_nm="`$ECHO "$tmp_nm" | sed 's, -.*$,,'`"
6082 if test -f "$tmp_nm_to_nm" || test -f "$tmp_nm_to_nm$ac_exeext" ; then
6083 # Check to see if the nm accepts a BSD-compat flag.
6084 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6085 # nm: unknown option "B" ignored
6086 case `"$tmp_nm" -B "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
6087 *$tmp_nm*) lt_cv_path_NM="$tmp_nm -B"
6088 break
6091 case `"$tmp_nm" -p "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
6092 *$tmp_nm*)
6093 lt_cv_path_NM="$tmp_nm -p"
6094 break
6097 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6098 continue # so that we can try to find one that supports BSD flags
6100 esac
6102 esac
6104 done
6105 IFS="$lt_save_ifs"
6106 done
6107 : ${lt_cv_path_NM=no}
6109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6110 $as_echo "$lt_cv_path_NM" >&6; }
6111 if test "$lt_cv_path_NM" != "no"; then
6112 NM="$lt_cv_path_NM"
6113 else
6114 # Didn't find any BSD compatible name lister, look for dumpbin.
6115 if test -n "$DUMPBIN"; then :
6116 # Let the user override the test.
6117 else
6118 if test -n "$ac_tool_prefix"; then
6119 for ac_prog in dumpbin "link -dump"
6121 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6122 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6124 $as_echo_n "checking for $ac_word... " >&6; }
6125 if ${ac_cv_prog_DUMPBIN+:} false; then :
6126 $as_echo_n "(cached) " >&6
6127 else
6128 if test -n "$DUMPBIN"; then
6129 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6130 else
6131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6132 for as_dir in $PATH
6134 IFS=$as_save_IFS
6135 test -z "$as_dir" && as_dir=.
6136 for ac_exec_ext in '' $ac_executable_extensions; do
6137 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6138 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6139 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6140 break 2
6142 done
6143 done
6144 IFS=$as_save_IFS
6148 DUMPBIN=$ac_cv_prog_DUMPBIN
6149 if test -n "$DUMPBIN"; then
6150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6151 $as_echo "$DUMPBIN" >&6; }
6152 else
6153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6154 $as_echo "no" >&6; }
6158 test -n "$DUMPBIN" && break
6159 done
6161 if test -z "$DUMPBIN"; then
6162 ac_ct_DUMPBIN=$DUMPBIN
6163 for ac_prog in dumpbin "link -dump"
6165 # Extract the first word of "$ac_prog", so it can be a program name with args.
6166 set dummy $ac_prog; ac_word=$2
6167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6168 $as_echo_n "checking for $ac_word... " >&6; }
6169 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6170 $as_echo_n "(cached) " >&6
6171 else
6172 if test -n "$ac_ct_DUMPBIN"; then
6173 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6174 else
6175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6176 for as_dir in $PATH
6178 IFS=$as_save_IFS
6179 test -z "$as_dir" && as_dir=.
6180 for ac_exec_ext in '' $ac_executable_extensions; do
6181 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6182 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6183 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6184 break 2
6186 done
6187 done
6188 IFS=$as_save_IFS
6192 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6193 if test -n "$ac_ct_DUMPBIN"; then
6194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6195 $as_echo "$ac_ct_DUMPBIN" >&6; }
6196 else
6197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6198 $as_echo "no" >&6; }
6202 test -n "$ac_ct_DUMPBIN" && break
6203 done
6205 if test "x$ac_ct_DUMPBIN" = x; then
6206 DUMPBIN=":"
6207 else
6208 case $cross_compiling:$ac_tool_warned in
6209 yes:)
6210 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6211 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6212 ac_tool_warned=yes ;;
6213 esac
6214 DUMPBIN=$ac_ct_DUMPBIN
6218 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6219 *COFF*)
6220 DUMPBIN="$DUMPBIN -symbols"
6223 DUMPBIN=:
6225 esac
6228 if test "$DUMPBIN" != ":"; then
6229 NM="$DUMPBIN"
6232 test -z "$NM" && NM=nm
6239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6240 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6241 if ${lt_cv_nm_interface+:} false; then :
6242 $as_echo_n "(cached) " >&6
6243 else
6244 lt_cv_nm_interface="BSD nm"
6245 echo "int some_variable = 0;" > conftest.$ac_ext
6246 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6247 (eval "$ac_compile" 2>conftest.err)
6248 cat conftest.err >&5
6249 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6250 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6251 cat conftest.err >&5
6252 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6253 cat conftest.out >&5
6254 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6255 lt_cv_nm_interface="MS dumpbin"
6257 rm -f conftest*
6259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6260 $as_echo "$lt_cv_nm_interface" >&6; }
6262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6263 $as_echo_n "checking whether ln -s works... " >&6; }
6264 LN_S=$as_ln_s
6265 if test "$LN_S" = "ln -s"; then
6266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6267 $as_echo "yes" >&6; }
6268 else
6269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6270 $as_echo "no, using $LN_S" >&6; }
6273 # find the maximum length of command line arguments
6274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6275 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6276 if ${lt_cv_sys_max_cmd_len+:} false; then :
6277 $as_echo_n "(cached) " >&6
6278 else
6280 teststring="ABCD"
6282 case $build_os in
6283 msdosdjgpp*)
6284 # On DJGPP, this test can blow up pretty badly due to problems in libc
6285 # (any single argument exceeding 2000 bytes causes a buffer overrun
6286 # during glob expansion). Even if it were fixed, the result of this
6287 # check would be larger than it should be.
6288 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6291 gnu*)
6292 # Under GNU Hurd, this test is not required because there is
6293 # no limit to the length of command line arguments.
6294 # Libtool will interpret -1 as no limit whatsoever
6295 lt_cv_sys_max_cmd_len=-1;
6298 cygwin* | mingw* | cegcc*)
6299 # On Win9x/ME, this test blows up -- it succeeds, but takes
6300 # about 5 minutes as the teststring grows exponentially.
6301 # Worse, since 9x/ME are not pre-emptively multitasking,
6302 # you end up with a "frozen" computer, even though with patience
6303 # the test eventually succeeds (with a max line length of 256k).
6304 # Instead, let's just punt: use the minimum linelength reported by
6305 # all of the supported platforms: 8192 (on NT/2K/XP).
6306 lt_cv_sys_max_cmd_len=8192;
6309 mint*)
6310 # On MiNT this can take a long time and run out of memory.
6311 lt_cv_sys_max_cmd_len=8192;
6314 amigaos*)
6315 # On AmigaOS with pdksh, this test takes hours, literally.
6316 # So we just punt and use a minimum line length of 8192.
6317 lt_cv_sys_max_cmd_len=8192;
6320 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6321 # This has been around since 386BSD, at least. Likely further.
6322 if test -x /sbin/sysctl; then
6323 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6324 elif test -x /usr/sbin/sysctl; then
6325 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6326 else
6327 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6329 # And add a safety zone
6330 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6331 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6334 interix*)
6335 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6336 lt_cv_sys_max_cmd_len=196608
6339 osf*)
6340 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6341 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6342 # nice to cause kernel panics so lets avoid the loop below.
6343 # First set a reasonable default.
6344 lt_cv_sys_max_cmd_len=16384
6346 if test -x /sbin/sysconfig; then
6347 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6348 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6349 esac
6352 sco3.2v5*)
6353 lt_cv_sys_max_cmd_len=102400
6355 sysv5* | sco5v6* | sysv4.2uw2*)
6356 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6357 if test -n "$kargmax"; then
6358 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6359 else
6360 lt_cv_sys_max_cmd_len=32768
6364 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6365 if test -n "$lt_cv_sys_max_cmd_len"; then
6366 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6367 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6368 else
6369 # Make teststring a little bigger before we do anything with it.
6370 # a 1K string should be a reasonable start.
6371 for i in 1 2 3 4 5 6 7 8 ; do
6372 teststring=$teststring$teststring
6373 done
6374 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6375 # If test is not a shell built-in, we'll probably end up computing a
6376 # maximum length that is only half of the actual maximum length, but
6377 # we can't tell.
6378 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6379 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6380 test $i != 17 # 1/2 MB should be enough
6382 i=`expr $i + 1`
6383 teststring=$teststring$teststring
6384 done
6385 # Only check the string length outside the loop.
6386 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6387 teststring=
6388 # Add a significant safety factor because C++ compilers can tack on
6389 # massive amounts of additional arguments before passing them to the
6390 # linker. It appears as though 1/2 is a usable value.
6391 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6394 esac
6398 if test -n $lt_cv_sys_max_cmd_len ; then
6399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6400 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6401 else
6402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6403 $as_echo "none" >&6; }
6405 max_cmd_len=$lt_cv_sys_max_cmd_len
6412 : ${CP="cp -f"}
6413 : ${MV="mv -f"}
6414 : ${RM="rm -f"}
6416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6417 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6418 # Try some XSI features
6419 xsi_shell=no
6420 ( _lt_dummy="a/b/c"
6421 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6422 = c,a/b,, \
6423 && eval 'test $(( 1 + 1 )) -eq 2 \
6424 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6425 && xsi_shell=yes
6426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6427 $as_echo "$xsi_shell" >&6; }
6430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6431 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6432 lt_shell_append=no
6433 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6434 >/dev/null 2>&1 \
6435 && lt_shell_append=yes
6436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6437 $as_echo "$lt_shell_append" >&6; }
6440 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6441 lt_unset=unset
6442 else
6443 lt_unset=false
6450 # test EBCDIC or ASCII
6451 case `echo X|tr X '\101'` in
6452 A) # ASCII based system
6453 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6454 lt_SP2NL='tr \040 \012'
6455 lt_NL2SP='tr \015\012 \040\040'
6457 *) # EBCDIC based system
6458 lt_SP2NL='tr \100 \n'
6459 lt_NL2SP='tr \r\n \100\100'
6461 esac
6471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6472 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6473 if ${lt_cv_ld_reload_flag+:} false; then :
6474 $as_echo_n "(cached) " >&6
6475 else
6476 lt_cv_ld_reload_flag='-r'
6478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6479 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6480 reload_flag=$lt_cv_ld_reload_flag
6481 case $reload_flag in
6482 "" | " "*) ;;
6483 *) reload_flag=" $reload_flag" ;;
6484 esac
6485 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6486 case $host_os in
6487 darwin*)
6488 if test "$GCC" = yes; then
6489 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6490 else
6491 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6494 esac
6504 if test -n "$ac_tool_prefix"; then
6505 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6506 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6508 $as_echo_n "checking for $ac_word... " >&6; }
6509 if ${ac_cv_prog_OBJDUMP+:} false; then :
6510 $as_echo_n "(cached) " >&6
6511 else
6512 if test -n "$OBJDUMP"; then
6513 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6514 else
6515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6516 for as_dir in $PATH
6518 IFS=$as_save_IFS
6519 test -z "$as_dir" && as_dir=.
6520 for ac_exec_ext in '' $ac_executable_extensions; do
6521 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6522 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6523 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6524 break 2
6526 done
6527 done
6528 IFS=$as_save_IFS
6532 OBJDUMP=$ac_cv_prog_OBJDUMP
6533 if test -n "$OBJDUMP"; then
6534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6535 $as_echo "$OBJDUMP" >&6; }
6536 else
6537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6538 $as_echo "no" >&6; }
6543 if test -z "$ac_cv_prog_OBJDUMP"; then
6544 ac_ct_OBJDUMP=$OBJDUMP
6545 # Extract the first word of "objdump", so it can be a program name with args.
6546 set dummy objdump; ac_word=$2
6547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6548 $as_echo_n "checking for $ac_word... " >&6; }
6549 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6550 $as_echo_n "(cached) " >&6
6551 else
6552 if test -n "$ac_ct_OBJDUMP"; then
6553 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6554 else
6555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6556 for as_dir in $PATH
6558 IFS=$as_save_IFS
6559 test -z "$as_dir" && as_dir=.
6560 for ac_exec_ext in '' $ac_executable_extensions; do
6561 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6562 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6563 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6564 break 2
6566 done
6567 done
6568 IFS=$as_save_IFS
6572 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6573 if test -n "$ac_ct_OBJDUMP"; then
6574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6575 $as_echo "$ac_ct_OBJDUMP" >&6; }
6576 else
6577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6578 $as_echo "no" >&6; }
6581 if test "x$ac_ct_OBJDUMP" = x; then
6582 OBJDUMP="false"
6583 else
6584 case $cross_compiling:$ac_tool_warned in
6585 yes:)
6586 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6587 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6588 ac_tool_warned=yes ;;
6589 esac
6590 OBJDUMP=$ac_ct_OBJDUMP
6592 else
6593 OBJDUMP="$ac_cv_prog_OBJDUMP"
6596 test -z "$OBJDUMP" && OBJDUMP=objdump
6606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6607 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6608 if ${lt_cv_deplibs_check_method+:} false; then :
6609 $as_echo_n "(cached) " >&6
6610 else
6611 lt_cv_file_magic_cmd='$MAGIC_CMD'
6612 lt_cv_file_magic_test_file=
6613 lt_cv_deplibs_check_method='unknown'
6614 # Need to set the preceding variable on all platforms that support
6615 # interlibrary dependencies.
6616 # 'none' -- dependencies not supported.
6617 # `unknown' -- same as none, but documents that we really don't know.
6618 # 'pass_all' -- all dependencies passed with no checks.
6619 # 'test_compile' -- check by making test program.
6620 # 'file_magic [[regex]]' -- check by looking for files in library path
6621 # which responds to the $file_magic_cmd with a given extended regex.
6622 # If you have `file' or equivalent on your system and you're not sure
6623 # whether `pass_all' will *always* work, you probably want this one.
6625 case $host_os in
6626 aix[4-9]*)
6627 lt_cv_deplibs_check_method=pass_all
6630 beos*)
6631 lt_cv_deplibs_check_method=pass_all
6634 bsdi[45]*)
6635 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6636 lt_cv_file_magic_cmd='/usr/bin/file -L'
6637 lt_cv_file_magic_test_file=/shlib/libc.so
6640 cygwin*)
6641 # func_win32_libid is a shell function defined in ltmain.sh
6642 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6643 lt_cv_file_magic_cmd='func_win32_libid'
6646 mingw* | pw32*)
6647 # Base MSYS/MinGW do not provide the 'file' command needed by
6648 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6649 # unless we find 'file', for example because we are cross-compiling.
6650 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6651 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6652 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6653 lt_cv_file_magic_cmd='func_win32_libid'
6654 else
6655 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6656 lt_cv_file_magic_cmd='$OBJDUMP -f'
6660 cegcc*)
6661 # use the weaker test based on 'objdump'. See mingw*.
6662 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6663 lt_cv_file_magic_cmd='$OBJDUMP -f'
6666 darwin* | rhapsody*)
6667 lt_cv_deplibs_check_method=pass_all
6670 freebsd* | dragonfly*)
6671 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6672 case $host_cpu in
6673 i*86 )
6674 # Not sure whether the presence of OpenBSD here was a mistake.
6675 # Let's accept both of them until this is cleared up.
6676 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6677 lt_cv_file_magic_cmd=/usr/bin/file
6678 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6680 esac
6681 else
6682 lt_cv_deplibs_check_method=pass_all
6686 gnu*)
6687 lt_cv_deplibs_check_method=pass_all
6690 haiku*)
6691 lt_cv_deplibs_check_method=pass_all
6694 hpux10.20* | hpux11*)
6695 lt_cv_file_magic_cmd=/usr/bin/file
6696 case $host_cpu in
6697 ia64*)
6698 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6699 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6701 hppa*64*)
6702 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]'
6703 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6706 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6707 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6709 esac
6712 interix[3-9]*)
6713 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6714 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6717 irix5* | irix6* | nonstopux*)
6718 case $LD in
6719 *-32|*"-32 ") libmagic=32-bit;;
6720 *-n32|*"-n32 ") libmagic=N32;;
6721 *-64|*"-64 ") libmagic=64-bit;;
6722 *) libmagic=never-match;;
6723 esac
6724 lt_cv_deplibs_check_method=pass_all
6727 # This must be Linux ELF.
6728 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
6729 lt_cv_deplibs_check_method=pass_all
6732 netbsd*)
6733 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6734 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6735 else
6736 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6740 newos6*)
6741 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6742 lt_cv_file_magic_cmd=/usr/bin/file
6743 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6746 *nto* | *qnx*)
6747 lt_cv_deplibs_check_method=pass_all
6750 openbsd*)
6751 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6752 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6753 else
6754 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6758 osf3* | osf4* | osf5*)
6759 lt_cv_deplibs_check_method=pass_all
6762 rdos*)
6763 lt_cv_deplibs_check_method=pass_all
6766 solaris*)
6767 lt_cv_deplibs_check_method=pass_all
6770 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6771 lt_cv_deplibs_check_method=pass_all
6774 sysv4 | sysv4.3*)
6775 case $host_vendor in
6776 motorola)
6777 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]'
6778 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6780 ncr)
6781 lt_cv_deplibs_check_method=pass_all
6783 sequent)
6784 lt_cv_file_magic_cmd='/bin/file'
6785 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6787 sni)
6788 lt_cv_file_magic_cmd='/bin/file'
6789 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6790 lt_cv_file_magic_test_file=/lib/libc.so
6792 siemens)
6793 lt_cv_deplibs_check_method=pass_all
6796 lt_cv_deplibs_check_method=pass_all
6798 esac
6801 tpf*)
6802 lt_cv_deplibs_check_method=pass_all
6804 vxworks*)
6805 # Assume VxWorks cross toolchains are built on Linux, possibly
6806 # as canadian for Windows hosts.
6807 lt_cv_deplibs_check_method=pass_all
6809 esac
6812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6813 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6814 file_magic_cmd=$lt_cv_file_magic_cmd
6815 deplibs_check_method=$lt_cv_deplibs_check_method
6816 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6829 plugin_option=
6830 plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
6831 for plugin in $plugin_names; do
6832 plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
6833 if test x$plugin_so = x$plugin; then
6834 plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
6836 if test x$plugin_so != x$plugin; then
6837 plugin_option="--plugin $plugin_so"
6838 break
6840 done
6842 if test -n "$ac_tool_prefix"; then
6843 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6844 set dummy ${ac_tool_prefix}ar; ac_word=$2
6845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6846 $as_echo_n "checking for $ac_word... " >&6; }
6847 if ${ac_cv_prog_AR+:} false; then :
6848 $as_echo_n "(cached) " >&6
6849 else
6850 if test -n "$AR"; then
6851 ac_cv_prog_AR="$AR" # Let the user override the test.
6852 else
6853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6854 for as_dir in $PATH
6856 IFS=$as_save_IFS
6857 test -z "$as_dir" && as_dir=.
6858 for ac_exec_ext in '' $ac_executable_extensions; do
6859 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6860 ac_cv_prog_AR="${ac_tool_prefix}ar"
6861 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6862 break 2
6864 done
6865 done
6866 IFS=$as_save_IFS
6870 AR=$ac_cv_prog_AR
6871 if test -n "$AR"; then
6872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6873 $as_echo "$AR" >&6; }
6874 else
6875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6876 $as_echo "no" >&6; }
6881 if test -z "$ac_cv_prog_AR"; then
6882 ac_ct_AR=$AR
6883 # Extract the first word of "ar", so it can be a program name with args.
6884 set dummy ar; ac_word=$2
6885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6886 $as_echo_n "checking for $ac_word... " >&6; }
6887 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6888 $as_echo_n "(cached) " >&6
6889 else
6890 if test -n "$ac_ct_AR"; then
6891 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6892 else
6893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6894 for as_dir in $PATH
6896 IFS=$as_save_IFS
6897 test -z "$as_dir" && as_dir=.
6898 for ac_exec_ext in '' $ac_executable_extensions; do
6899 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6900 ac_cv_prog_ac_ct_AR="ar"
6901 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6902 break 2
6904 done
6905 done
6906 IFS=$as_save_IFS
6910 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6911 if test -n "$ac_ct_AR"; then
6912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6913 $as_echo "$ac_ct_AR" >&6; }
6914 else
6915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6916 $as_echo "no" >&6; }
6919 if test "x$ac_ct_AR" = x; then
6920 AR="false"
6921 else
6922 case $cross_compiling:$ac_tool_warned in
6923 yes:)
6924 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6925 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6926 ac_tool_warned=yes ;;
6927 esac
6928 AR=$ac_ct_AR
6930 else
6931 AR="$ac_cv_prog_AR"
6934 test -z "$AR" && AR=ar
6935 if test -n "$plugin_option"; then
6936 if $AR --help 2>&1 | grep -q "\--plugin"; then
6937 touch conftest.c
6938 $AR $plugin_option rc conftest.a conftest.c
6939 if test "$?" != 0; then
6940 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
6941 $as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
6942 else
6943 AR="$AR $plugin_option"
6945 rm -f conftest.*
6948 test -z "$AR_FLAGS" && AR_FLAGS=cru
6960 if test -n "$ac_tool_prefix"; then
6961 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6962 set dummy ${ac_tool_prefix}strip; ac_word=$2
6963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6964 $as_echo_n "checking for $ac_word... " >&6; }
6965 if ${ac_cv_prog_STRIP+:} false; then :
6966 $as_echo_n "(cached) " >&6
6967 else
6968 if test -n "$STRIP"; then
6969 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6970 else
6971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6972 for as_dir in $PATH
6974 IFS=$as_save_IFS
6975 test -z "$as_dir" && as_dir=.
6976 for ac_exec_ext in '' $ac_executable_extensions; do
6977 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6978 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6979 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6980 break 2
6982 done
6983 done
6984 IFS=$as_save_IFS
6988 STRIP=$ac_cv_prog_STRIP
6989 if test -n "$STRIP"; then
6990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6991 $as_echo "$STRIP" >&6; }
6992 else
6993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6994 $as_echo "no" >&6; }
6999 if test -z "$ac_cv_prog_STRIP"; then
7000 ac_ct_STRIP=$STRIP
7001 # Extract the first word of "strip", so it can be a program name with args.
7002 set dummy strip; ac_word=$2
7003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7004 $as_echo_n "checking for $ac_word... " >&6; }
7005 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7006 $as_echo_n "(cached) " >&6
7007 else
7008 if test -n "$ac_ct_STRIP"; then
7009 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7010 else
7011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7012 for as_dir in $PATH
7014 IFS=$as_save_IFS
7015 test -z "$as_dir" && as_dir=.
7016 for ac_exec_ext in '' $ac_executable_extensions; do
7017 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7018 ac_cv_prog_ac_ct_STRIP="strip"
7019 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7020 break 2
7022 done
7023 done
7024 IFS=$as_save_IFS
7028 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7029 if test -n "$ac_ct_STRIP"; then
7030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7031 $as_echo "$ac_ct_STRIP" >&6; }
7032 else
7033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7034 $as_echo "no" >&6; }
7037 if test "x$ac_ct_STRIP" = x; then
7038 STRIP=":"
7039 else
7040 case $cross_compiling:$ac_tool_warned in
7041 yes:)
7042 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7043 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7044 ac_tool_warned=yes ;;
7045 esac
7046 STRIP=$ac_ct_STRIP
7048 else
7049 STRIP="$ac_cv_prog_STRIP"
7052 test -z "$STRIP" && STRIP=:
7059 if test -n "$ac_tool_prefix"; then
7060 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7061 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7063 $as_echo_n "checking for $ac_word... " >&6; }
7064 if ${ac_cv_prog_RANLIB+:} false; then :
7065 $as_echo_n "(cached) " >&6
7066 else
7067 if test -n "$RANLIB"; then
7068 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7069 else
7070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7071 for as_dir in $PATH
7073 IFS=$as_save_IFS
7074 test -z "$as_dir" && as_dir=.
7075 for ac_exec_ext in '' $ac_executable_extensions; do
7076 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7077 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7078 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7079 break 2
7081 done
7082 done
7083 IFS=$as_save_IFS
7087 RANLIB=$ac_cv_prog_RANLIB
7088 if test -n "$RANLIB"; then
7089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7090 $as_echo "$RANLIB" >&6; }
7091 else
7092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7093 $as_echo "no" >&6; }
7098 if test -z "$ac_cv_prog_RANLIB"; then
7099 ac_ct_RANLIB=$RANLIB
7100 # Extract the first word of "ranlib", so it can be a program name with args.
7101 set dummy ranlib; ac_word=$2
7102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7103 $as_echo_n "checking for $ac_word... " >&6; }
7104 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7105 $as_echo_n "(cached) " >&6
7106 else
7107 if test -n "$ac_ct_RANLIB"; then
7108 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7109 else
7110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7111 for as_dir in $PATH
7113 IFS=$as_save_IFS
7114 test -z "$as_dir" && as_dir=.
7115 for ac_exec_ext in '' $ac_executable_extensions; do
7116 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7117 ac_cv_prog_ac_ct_RANLIB="ranlib"
7118 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7119 break 2
7121 done
7122 done
7123 IFS=$as_save_IFS
7127 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7128 if test -n "$ac_ct_RANLIB"; then
7129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7130 $as_echo "$ac_ct_RANLIB" >&6; }
7131 else
7132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7133 $as_echo "no" >&6; }
7136 if test "x$ac_ct_RANLIB" = x; then
7137 RANLIB=":"
7138 else
7139 case $cross_compiling:$ac_tool_warned in
7140 yes:)
7141 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7142 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7143 ac_tool_warned=yes ;;
7144 esac
7145 RANLIB=$ac_ct_RANLIB
7147 else
7148 RANLIB="$ac_cv_prog_RANLIB"
7151 test -z "$RANLIB" && RANLIB=:
7152 if test -n "$plugin_option" && test "$RANLIB" != ":"; then
7153 if $RANLIB --help 2>&1 | grep -q "\--plugin"; then
7154 RANLIB="$RANLIB $plugin_option"
7163 # Determine commands to create old-style static archives.
7164 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7165 old_postinstall_cmds='chmod 644 $oldlib'
7166 old_postuninstall_cmds=
7168 if test -n "$RANLIB"; then
7169 case $host_os in
7170 openbsd*)
7171 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7174 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7176 esac
7177 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7180 case $host_os in
7181 darwin*)
7182 lock_old_archive_extraction=yes ;;
7184 lock_old_archive_extraction=no ;;
7185 esac
7225 # If no C compiler was specified, use CC.
7226 LTCC=${LTCC-"$CC"}
7228 # If no C compiler flags were specified, use CFLAGS.
7229 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7231 # Allow CC to be a program name with arguments.
7232 compiler=$CC
7235 # Check for command to grab the raw symbol name followed by C symbol from nm.
7236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7237 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7238 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7239 $as_echo_n "(cached) " >&6
7240 else
7242 # These are sane defaults that work on at least a few old systems.
7243 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7245 # Character class describing NM global symbol codes.
7246 symcode='[BCDEGRST]'
7248 # Regexp to match symbols that can be accessed directly from C.
7249 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7251 # Define system-specific variables.
7252 case $host_os in
7253 aix*)
7254 symcode='[BCDT]'
7256 cygwin* | mingw* | pw32* | cegcc*)
7257 symcode='[ABCDGISTW]'
7259 hpux*)
7260 if test "$host_cpu" = ia64; then
7261 symcode='[ABCDEGRST]'
7264 irix* | nonstopux*)
7265 symcode='[BCDEGRST]'
7267 osf*)
7268 symcode='[BCDEGQRST]'
7270 solaris*)
7271 symcode='[BCDRT]'
7273 sco3.2v5*)
7274 symcode='[DT]'
7276 sysv4.2uw2*)
7277 symcode='[DT]'
7279 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7280 symcode='[ABDT]'
7282 sysv4)
7283 symcode='[DFNSTU]'
7285 esac
7287 # If we're using GNU nm, then use its standard symbol codes.
7288 case `$NM -V 2>&1` in
7289 *GNU* | *'with BFD'*)
7290 symcode='[ABCDGIRSTW]' ;;
7291 esac
7293 # Transform an extracted symbol line into a proper C declaration.
7294 # Some systems (esp. on ia64) link data and code symbols differently,
7295 # so use this general approach.
7296 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7298 # Transform an extracted symbol line into symbol name and symbol address
7299 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7300 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'"
7302 # Handle CRLF in mingw tool chain
7303 opt_cr=
7304 case $build_os in
7305 mingw*)
7306 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7308 esac
7310 # Try without a prefix underscore, then with it.
7311 for ac_symprfx in "" "_"; do
7313 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7314 symxfrm="\\1 $ac_symprfx\\2 \\2"
7316 # Write the raw and C identifiers.
7317 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7318 # Fake it for dumpbin and say T for any non-static function
7319 # and D for any global variable.
7320 # Also find C++ and __fastcall symbols from MSVC++,
7321 # which start with @ or ?.
7322 lt_cv_sys_global_symbol_pipe="$AWK '"\
7323 " {last_section=section; section=\$ 3};"\
7324 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7325 " \$ 0!~/External *\|/{next};"\
7326 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7327 " {if(hide[section]) next};"\
7328 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7329 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7330 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7331 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7332 " ' prfx=^$ac_symprfx"
7333 else
7334 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7337 # Check to see that the pipe works correctly.
7338 pipe_works=no
7340 rm -f conftest*
7341 cat > conftest.$ac_ext <<_LT_EOF
7342 #ifdef __cplusplus
7343 extern "C" {
7344 #endif
7345 char nm_test_var;
7346 void nm_test_func(void);
7347 void nm_test_func(void){}
7348 #ifdef __cplusplus
7350 #endif
7351 int main(){nm_test_var='a';nm_test_func();return(0);}
7352 _LT_EOF
7354 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7355 (eval $ac_compile) 2>&5
7356 ac_status=$?
7357 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7358 test $ac_status = 0; }; then
7359 # Now try to grab the symbols.
7360 nlist=conftest.nm
7361 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7362 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7363 ac_status=$?
7364 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7365 test $ac_status = 0; } && test -s "$nlist"; then
7366 # Try sorting and uniquifying the output.
7367 if sort "$nlist" | uniq > "$nlist"T; then
7368 mv -f "$nlist"T "$nlist"
7369 else
7370 rm -f "$nlist"T
7373 # Make sure that we snagged all the symbols we need.
7374 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7375 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7376 cat <<_LT_EOF > conftest.$ac_ext
7377 #ifdef __cplusplus
7378 extern "C" {
7379 #endif
7381 _LT_EOF
7382 # Now generate the symbol file.
7383 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7385 cat <<_LT_EOF >> conftest.$ac_ext
7387 /* The mapping between symbol names and symbols. */
7388 const struct {
7389 const char *name;
7390 void *address;
7392 lt__PROGRAM__LTX_preloaded_symbols[] =
7394 { "@PROGRAM@", (void *) 0 },
7395 _LT_EOF
7396 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7397 cat <<\_LT_EOF >> conftest.$ac_ext
7398 {0, (void *) 0}
7401 /* This works around a problem in FreeBSD linker */
7402 #ifdef FREEBSD_WORKAROUND
7403 static const void *lt_preloaded_setup() {
7404 return lt__PROGRAM__LTX_preloaded_symbols;
7406 #endif
7408 #ifdef __cplusplus
7410 #endif
7411 _LT_EOF
7412 # Now try linking the two files.
7413 mv conftest.$ac_objext conftstm.$ac_objext
7414 lt_save_LIBS="$LIBS"
7415 lt_save_CFLAGS="$CFLAGS"
7416 LIBS="conftstm.$ac_objext"
7417 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7418 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7419 (eval $ac_link) 2>&5
7420 ac_status=$?
7421 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7422 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7423 pipe_works=yes
7425 LIBS="$lt_save_LIBS"
7426 CFLAGS="$lt_save_CFLAGS"
7427 else
7428 echo "cannot find nm_test_func in $nlist" >&5
7430 else
7431 echo "cannot find nm_test_var in $nlist" >&5
7433 else
7434 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7436 else
7437 echo "$progname: failed program was:" >&5
7438 cat conftest.$ac_ext >&5
7440 rm -rf conftest* conftst*
7442 # Do not use the global_symbol_pipe unless it works.
7443 if test "$pipe_works" = yes; then
7444 break
7445 else
7446 lt_cv_sys_global_symbol_pipe=
7448 done
7452 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7453 lt_cv_sys_global_symbol_to_cdecl=
7455 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7457 $as_echo "failed" >&6; }
7458 else
7459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7460 $as_echo "ok" >&6; }
7485 # Check whether --enable-libtool-lock was given.
7486 if test "${enable_libtool_lock+set}" = set; then :
7487 enableval=$enable_libtool_lock;
7490 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7492 # Some flags need to be propagated to the compiler or linker for good
7493 # libtool support.
7494 case $host in
7495 ia64-*-hpux*)
7496 # Find out which ABI we are using.
7497 echo 'int i;' > conftest.$ac_ext
7498 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7499 (eval $ac_compile) 2>&5
7500 ac_status=$?
7501 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7502 test $ac_status = 0; }; then
7503 case `/usr/bin/file conftest.$ac_objext` in
7504 *ELF-32*)
7505 HPUX_IA64_MODE="32"
7507 *ELF-64*)
7508 HPUX_IA64_MODE="64"
7510 esac
7512 rm -rf conftest*
7514 *-*-irix6*)
7515 # Find out which ABI we are using.
7516 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7517 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7518 (eval $ac_compile) 2>&5
7519 ac_status=$?
7520 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7521 test $ac_status = 0; }; then
7522 if test "$lt_cv_prog_gnu_ld" = yes; then
7523 case `/usr/bin/file conftest.$ac_objext` in
7524 *32-bit*)
7525 LD="${LD-ld} -melf32bsmip"
7527 *N32*)
7528 LD="${LD-ld} -melf32bmipn32"
7530 *64-bit*)
7531 LD="${LD-ld} -melf64bmip"
7533 esac
7534 else
7535 case `/usr/bin/file conftest.$ac_objext` in
7536 *32-bit*)
7537 LD="${LD-ld} -32"
7539 *N32*)
7540 LD="${LD-ld} -n32"
7542 *64-bit*)
7543 LD="${LD-ld} -64"
7545 esac
7548 rm -rf conftest*
7551 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7552 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7553 # Find out which ABI we are using.
7554 echo 'int i;' > conftest.$ac_ext
7555 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7556 (eval $ac_compile) 2>&5
7557 ac_status=$?
7558 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7559 test $ac_status = 0; }; then
7560 case `/usr/bin/file conftest.o` in
7561 *32-bit*)
7562 case $host in
7563 x86_64-*kfreebsd*-gnu)
7564 LD="${LD-ld} -m elf_i386_fbsd"
7566 x86_64-*linux*)
7567 case `/usr/bin/file conftest.o` in
7568 *x86-64*)
7569 LD="${LD-ld} -m elf32_x86_64"
7572 LD="${LD-ld} -m elf_i386"
7574 esac
7576 powerpc64le-*linux*)
7577 LD="${LD-ld} -m elf32lppclinux"
7579 powerpc64-*linux*)
7580 LD="${LD-ld} -m elf32ppclinux"
7582 s390x-*linux*)
7583 LD="${LD-ld} -m elf_s390"
7585 sparc64-*linux*)
7586 LD="${LD-ld} -m elf32_sparc"
7588 esac
7590 *64-bit*)
7591 case $host in
7592 x86_64-*kfreebsd*-gnu)
7593 LD="${LD-ld} -m elf_x86_64_fbsd"
7595 x86_64-*linux*)
7596 LD="${LD-ld} -m elf_x86_64"
7598 powerpcle-*linux*)
7599 LD="${LD-ld} -m elf64lppc"
7601 powerpc-*linux*)
7602 LD="${LD-ld} -m elf64ppc"
7604 s390*-*linux*|s390*-*tpf*)
7605 LD="${LD-ld} -m elf64_s390"
7607 sparc*-*linux*)
7608 LD="${LD-ld} -m elf64_sparc"
7610 esac
7612 esac
7614 rm -rf conftest*
7617 *-*-sco3.2v5*)
7618 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7619 SAVE_CFLAGS="$CFLAGS"
7620 CFLAGS="$CFLAGS -belf"
7621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7622 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7623 if ${lt_cv_cc_needs_belf+:} false; then :
7624 $as_echo_n "(cached) " >&6
7625 else
7626 ac_ext=c
7627 ac_cpp='$CPP $CPPFLAGS'
7628 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7629 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7630 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7633 /* end confdefs.h. */
7636 main ()
7640 return 0;
7642 _ACEOF
7643 if ac_fn_c_try_link "$LINENO"; then :
7644 lt_cv_cc_needs_belf=yes
7645 else
7646 lt_cv_cc_needs_belf=no
7648 rm -f core conftest.err conftest.$ac_objext \
7649 conftest$ac_exeext conftest.$ac_ext
7650 ac_ext=c
7651 ac_cpp='$CPP $CPPFLAGS'
7652 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7653 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7654 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7658 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7659 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7660 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7661 CFLAGS="$SAVE_CFLAGS"
7664 sparc*-*solaris*)
7665 # Find out which ABI we are using.
7666 echo 'int i;' > conftest.$ac_ext
7667 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7668 (eval $ac_compile) 2>&5
7669 ac_status=$?
7670 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7671 test $ac_status = 0; }; then
7672 case `/usr/bin/file conftest.o` in
7673 *64-bit*)
7674 case $lt_cv_prog_gnu_ld in
7675 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7677 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7678 LD="${LD-ld} -64"
7681 esac
7683 esac
7685 rm -rf conftest*
7687 esac
7689 need_locks="$enable_libtool_lock"
7692 case $host_os in
7693 rhapsody* | darwin*)
7694 if test -n "$ac_tool_prefix"; then
7695 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7696 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7698 $as_echo_n "checking for $ac_word... " >&6; }
7699 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7700 $as_echo_n "(cached) " >&6
7701 else
7702 if test -n "$DSYMUTIL"; then
7703 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7704 else
7705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7706 for as_dir in $PATH
7708 IFS=$as_save_IFS
7709 test -z "$as_dir" && as_dir=.
7710 for ac_exec_ext in '' $ac_executable_extensions; do
7711 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7712 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7713 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7714 break 2
7716 done
7717 done
7718 IFS=$as_save_IFS
7722 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7723 if test -n "$DSYMUTIL"; then
7724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7725 $as_echo "$DSYMUTIL" >&6; }
7726 else
7727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7728 $as_echo "no" >&6; }
7733 if test -z "$ac_cv_prog_DSYMUTIL"; then
7734 ac_ct_DSYMUTIL=$DSYMUTIL
7735 # Extract the first word of "dsymutil", so it can be a program name with args.
7736 set dummy dsymutil; ac_word=$2
7737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7738 $as_echo_n "checking for $ac_word... " >&6; }
7739 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7740 $as_echo_n "(cached) " >&6
7741 else
7742 if test -n "$ac_ct_DSYMUTIL"; then
7743 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7744 else
7745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7746 for as_dir in $PATH
7748 IFS=$as_save_IFS
7749 test -z "$as_dir" && as_dir=.
7750 for ac_exec_ext in '' $ac_executable_extensions; do
7751 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7752 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7753 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7754 break 2
7756 done
7757 done
7758 IFS=$as_save_IFS
7762 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7763 if test -n "$ac_ct_DSYMUTIL"; then
7764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7765 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7766 else
7767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7768 $as_echo "no" >&6; }
7771 if test "x$ac_ct_DSYMUTIL" = x; then
7772 DSYMUTIL=":"
7773 else
7774 case $cross_compiling:$ac_tool_warned in
7775 yes:)
7776 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7777 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7778 ac_tool_warned=yes ;;
7779 esac
7780 DSYMUTIL=$ac_ct_DSYMUTIL
7782 else
7783 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7786 if test -n "$ac_tool_prefix"; then
7787 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7788 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7790 $as_echo_n "checking for $ac_word... " >&6; }
7791 if ${ac_cv_prog_NMEDIT+:} false; then :
7792 $as_echo_n "(cached) " >&6
7793 else
7794 if test -n "$NMEDIT"; then
7795 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7796 else
7797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7798 for as_dir in $PATH
7800 IFS=$as_save_IFS
7801 test -z "$as_dir" && as_dir=.
7802 for ac_exec_ext in '' $ac_executable_extensions; do
7803 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7804 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7805 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7806 break 2
7808 done
7809 done
7810 IFS=$as_save_IFS
7814 NMEDIT=$ac_cv_prog_NMEDIT
7815 if test -n "$NMEDIT"; then
7816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7817 $as_echo "$NMEDIT" >&6; }
7818 else
7819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7820 $as_echo "no" >&6; }
7825 if test -z "$ac_cv_prog_NMEDIT"; then
7826 ac_ct_NMEDIT=$NMEDIT
7827 # Extract the first word of "nmedit", so it can be a program name with args.
7828 set dummy nmedit; ac_word=$2
7829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7830 $as_echo_n "checking for $ac_word... " >&6; }
7831 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7832 $as_echo_n "(cached) " >&6
7833 else
7834 if test -n "$ac_ct_NMEDIT"; then
7835 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7836 else
7837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7838 for as_dir in $PATH
7840 IFS=$as_save_IFS
7841 test -z "$as_dir" && as_dir=.
7842 for ac_exec_ext in '' $ac_executable_extensions; do
7843 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7844 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7845 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7846 break 2
7848 done
7849 done
7850 IFS=$as_save_IFS
7854 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7855 if test -n "$ac_ct_NMEDIT"; then
7856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7857 $as_echo "$ac_ct_NMEDIT" >&6; }
7858 else
7859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7860 $as_echo "no" >&6; }
7863 if test "x$ac_ct_NMEDIT" = x; then
7864 NMEDIT=":"
7865 else
7866 case $cross_compiling:$ac_tool_warned in
7867 yes:)
7868 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7869 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7870 ac_tool_warned=yes ;;
7871 esac
7872 NMEDIT=$ac_ct_NMEDIT
7874 else
7875 NMEDIT="$ac_cv_prog_NMEDIT"
7878 if test -n "$ac_tool_prefix"; then
7879 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7880 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7882 $as_echo_n "checking for $ac_word... " >&6; }
7883 if ${ac_cv_prog_LIPO+:} false; then :
7884 $as_echo_n "(cached) " >&6
7885 else
7886 if test -n "$LIPO"; then
7887 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7888 else
7889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7890 for as_dir in $PATH
7892 IFS=$as_save_IFS
7893 test -z "$as_dir" && as_dir=.
7894 for ac_exec_ext in '' $ac_executable_extensions; do
7895 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7896 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7897 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7898 break 2
7900 done
7901 done
7902 IFS=$as_save_IFS
7906 LIPO=$ac_cv_prog_LIPO
7907 if test -n "$LIPO"; then
7908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7909 $as_echo "$LIPO" >&6; }
7910 else
7911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7912 $as_echo "no" >&6; }
7917 if test -z "$ac_cv_prog_LIPO"; then
7918 ac_ct_LIPO=$LIPO
7919 # Extract the first word of "lipo", so it can be a program name with args.
7920 set dummy lipo; ac_word=$2
7921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7922 $as_echo_n "checking for $ac_word... " >&6; }
7923 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7924 $as_echo_n "(cached) " >&6
7925 else
7926 if test -n "$ac_ct_LIPO"; then
7927 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7928 else
7929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7930 for as_dir in $PATH
7932 IFS=$as_save_IFS
7933 test -z "$as_dir" && as_dir=.
7934 for ac_exec_ext in '' $ac_executable_extensions; do
7935 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7936 ac_cv_prog_ac_ct_LIPO="lipo"
7937 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7938 break 2
7940 done
7941 done
7942 IFS=$as_save_IFS
7946 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7947 if test -n "$ac_ct_LIPO"; then
7948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7949 $as_echo "$ac_ct_LIPO" >&6; }
7950 else
7951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7952 $as_echo "no" >&6; }
7955 if test "x$ac_ct_LIPO" = x; then
7956 LIPO=":"
7957 else
7958 case $cross_compiling:$ac_tool_warned in
7959 yes:)
7960 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7961 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7962 ac_tool_warned=yes ;;
7963 esac
7964 LIPO=$ac_ct_LIPO
7966 else
7967 LIPO="$ac_cv_prog_LIPO"
7970 if test -n "$ac_tool_prefix"; then
7971 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7972 set dummy ${ac_tool_prefix}otool; ac_word=$2
7973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7974 $as_echo_n "checking for $ac_word... " >&6; }
7975 if ${ac_cv_prog_OTOOL+:} false; then :
7976 $as_echo_n "(cached) " >&6
7977 else
7978 if test -n "$OTOOL"; then
7979 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7980 else
7981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7982 for as_dir in $PATH
7984 IFS=$as_save_IFS
7985 test -z "$as_dir" && as_dir=.
7986 for ac_exec_ext in '' $ac_executable_extensions; do
7987 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7988 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7989 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7990 break 2
7992 done
7993 done
7994 IFS=$as_save_IFS
7998 OTOOL=$ac_cv_prog_OTOOL
7999 if test -n "$OTOOL"; then
8000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8001 $as_echo "$OTOOL" >&6; }
8002 else
8003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8004 $as_echo "no" >&6; }
8009 if test -z "$ac_cv_prog_OTOOL"; then
8010 ac_ct_OTOOL=$OTOOL
8011 # Extract the first word of "otool", so it can be a program name with args.
8012 set dummy otool; ac_word=$2
8013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8014 $as_echo_n "checking for $ac_word... " >&6; }
8015 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8016 $as_echo_n "(cached) " >&6
8017 else
8018 if test -n "$ac_ct_OTOOL"; then
8019 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8020 else
8021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8022 for as_dir in $PATH
8024 IFS=$as_save_IFS
8025 test -z "$as_dir" && as_dir=.
8026 for ac_exec_ext in '' $ac_executable_extensions; do
8027 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8028 ac_cv_prog_ac_ct_OTOOL="otool"
8029 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8030 break 2
8032 done
8033 done
8034 IFS=$as_save_IFS
8038 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8039 if test -n "$ac_ct_OTOOL"; then
8040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8041 $as_echo "$ac_ct_OTOOL" >&6; }
8042 else
8043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8044 $as_echo "no" >&6; }
8047 if test "x$ac_ct_OTOOL" = x; then
8048 OTOOL=":"
8049 else
8050 case $cross_compiling:$ac_tool_warned in
8051 yes:)
8052 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8053 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8054 ac_tool_warned=yes ;;
8055 esac
8056 OTOOL=$ac_ct_OTOOL
8058 else
8059 OTOOL="$ac_cv_prog_OTOOL"
8062 if test -n "$ac_tool_prefix"; then
8063 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8064 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8066 $as_echo_n "checking for $ac_word... " >&6; }
8067 if ${ac_cv_prog_OTOOL64+:} false; then :
8068 $as_echo_n "(cached) " >&6
8069 else
8070 if test -n "$OTOOL64"; then
8071 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8072 else
8073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8074 for as_dir in $PATH
8076 IFS=$as_save_IFS
8077 test -z "$as_dir" && as_dir=.
8078 for ac_exec_ext in '' $ac_executable_extensions; do
8079 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8080 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8081 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8082 break 2
8084 done
8085 done
8086 IFS=$as_save_IFS
8090 OTOOL64=$ac_cv_prog_OTOOL64
8091 if test -n "$OTOOL64"; then
8092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8093 $as_echo "$OTOOL64" >&6; }
8094 else
8095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8096 $as_echo "no" >&6; }
8101 if test -z "$ac_cv_prog_OTOOL64"; then
8102 ac_ct_OTOOL64=$OTOOL64
8103 # Extract the first word of "otool64", so it can be a program name with args.
8104 set dummy otool64; ac_word=$2
8105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8106 $as_echo_n "checking for $ac_word... " >&6; }
8107 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8108 $as_echo_n "(cached) " >&6
8109 else
8110 if test -n "$ac_ct_OTOOL64"; then
8111 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8112 else
8113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8114 for as_dir in $PATH
8116 IFS=$as_save_IFS
8117 test -z "$as_dir" && as_dir=.
8118 for ac_exec_ext in '' $ac_executable_extensions; do
8119 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8120 ac_cv_prog_ac_ct_OTOOL64="otool64"
8121 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8122 break 2
8124 done
8125 done
8126 IFS=$as_save_IFS
8130 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8131 if test -n "$ac_ct_OTOOL64"; then
8132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8133 $as_echo "$ac_ct_OTOOL64" >&6; }
8134 else
8135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8136 $as_echo "no" >&6; }
8139 if test "x$ac_ct_OTOOL64" = x; then
8140 OTOOL64=":"
8141 else
8142 case $cross_compiling:$ac_tool_warned in
8143 yes:)
8144 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8145 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8146 ac_tool_warned=yes ;;
8147 esac
8148 OTOOL64=$ac_ct_OTOOL64
8150 else
8151 OTOOL64="$ac_cv_prog_OTOOL64"
8180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8181 $as_echo_n "checking for -single_module linker flag... " >&6; }
8182 if ${lt_cv_apple_cc_single_mod+:} false; then :
8183 $as_echo_n "(cached) " >&6
8184 else
8185 lt_cv_apple_cc_single_mod=no
8186 if test -z "${LT_MULTI_MODULE}"; then
8187 # By default we will add the -single_module flag. You can override
8188 # by either setting the environment variable LT_MULTI_MODULE
8189 # non-empty at configure time, or by adding -multi_module to the
8190 # link flags.
8191 rm -rf libconftest.dylib*
8192 echo "int foo(void){return 1;}" > conftest.c
8193 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8194 -dynamiclib -Wl,-single_module conftest.c" >&5
8195 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8196 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8197 _lt_result=$?
8198 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8199 lt_cv_apple_cc_single_mod=yes
8200 else
8201 cat conftest.err >&5
8203 rm -rf libconftest.dylib*
8204 rm -f conftest.*
8207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8208 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8210 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8211 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8212 $as_echo_n "(cached) " >&6
8213 else
8214 lt_cv_ld_exported_symbols_list=no
8215 save_LDFLAGS=$LDFLAGS
8216 echo "_main" > conftest.sym
8217 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8219 /* end confdefs.h. */
8222 main ()
8226 return 0;
8228 _ACEOF
8229 if ac_fn_c_try_link "$LINENO"; then :
8230 lt_cv_ld_exported_symbols_list=yes
8231 else
8232 lt_cv_ld_exported_symbols_list=no
8234 rm -f core conftest.err conftest.$ac_objext \
8235 conftest$ac_exeext conftest.$ac_ext
8236 LDFLAGS="$save_LDFLAGS"
8239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8240 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8242 $as_echo_n "checking for -force_load linker flag... " >&6; }
8243 if ${lt_cv_ld_force_load+:} false; then :
8244 $as_echo_n "(cached) " >&6
8245 else
8246 lt_cv_ld_force_load=no
8247 cat > conftest.c << _LT_EOF
8248 int forced_loaded() { return 2;}
8249 _LT_EOF
8250 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8251 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8252 echo "$AR cru libconftest.a conftest.o" >&5
8253 $AR cru libconftest.a conftest.o 2>&5
8254 cat > conftest.c << _LT_EOF
8255 int main() { return 0;}
8256 _LT_EOF
8257 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8258 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8259 _lt_result=$?
8260 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8261 lt_cv_ld_force_load=yes
8262 else
8263 cat conftest.err >&5
8265 rm -f conftest.err libconftest.a conftest conftest.c
8266 rm -rf conftest.dSYM
8269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8270 $as_echo "$lt_cv_ld_force_load" >&6; }
8271 # Allow for Darwin 4-7 (macOS 10.0-10.3) although these are not expect to
8272 # build without first building modern cctools / linker.
8273 case $host_cpu-$host_os in
8274 *-rhapsody* | *-darwin1.[012])
8275 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8276 *-darwin1.*)
8277 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8278 *-darwin*)
8279 # darwin 5.x (macOS 10.1) onwards we only need to adjust when the
8280 # deployment target is forced to an earlier version.
8281 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host in
8282 UNSET,*-darwin[89]*|UNSET,*-darwin[12][0123456789]*)
8284 10.[012][,.]*)
8285 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8289 esac
8291 esac
8292 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8293 _lt_dar_single_mod='$single_module'
8295 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8296 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8297 else
8298 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8300 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8301 _lt_dsymutil='~$DSYMUTIL $lib || :'
8302 else
8303 _lt_dsymutil=
8306 esac
8308 ac_ext=c
8309 ac_cpp='$CPP $CPPFLAGS'
8310 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8311 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8312 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
8314 $as_echo_n "checking how to run the C preprocessor... " >&6; }
8315 # On Suns, sometimes $CPP names a directory.
8316 if test -n "$CPP" && test -d "$CPP"; then
8317 CPP=
8319 if test -z "$CPP"; then
8320 if ${ac_cv_prog_CPP+:} false; then :
8321 $as_echo_n "(cached) " >&6
8322 else
8323 # Double quotes because CPP needs to be expanded
8324 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
8326 ac_preproc_ok=false
8327 for ac_c_preproc_warn_flag in '' yes
8329 # Use a header file that comes with gcc, so configuring glibc
8330 # with a fresh cross-compiler works.
8331 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8332 # <limits.h> exists even on freestanding compilers.
8333 # On the NeXT, cc -E runs the code through the compiler's parser,
8334 # not just through cpp. "Syntax error" is here to catch this case.
8335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8336 /* end confdefs.h. */
8337 #ifdef __STDC__
8338 # include <limits.h>
8339 #else
8340 # include <assert.h>
8341 #endif
8342 Syntax error
8343 _ACEOF
8344 if ac_fn_c_try_cpp "$LINENO"; then :
8346 else
8347 # Broken: fails on valid input.
8348 continue
8350 rm -f conftest.err conftest.i conftest.$ac_ext
8352 # OK, works on sane cases. Now check whether nonexistent headers
8353 # can be detected and how.
8354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8355 /* end confdefs.h. */
8356 #include <ac_nonexistent.h>
8357 _ACEOF
8358 if ac_fn_c_try_cpp "$LINENO"; then :
8359 # Broken: success on invalid input.
8360 continue
8361 else
8362 # Passes both tests.
8363 ac_preproc_ok=:
8364 break
8366 rm -f conftest.err conftest.i conftest.$ac_ext
8368 done
8369 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8370 rm -f conftest.i conftest.err conftest.$ac_ext
8371 if $ac_preproc_ok; then :
8372 break
8375 done
8376 ac_cv_prog_CPP=$CPP
8379 CPP=$ac_cv_prog_CPP
8380 else
8381 ac_cv_prog_CPP=$CPP
8383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
8384 $as_echo "$CPP" >&6; }
8385 ac_preproc_ok=false
8386 for ac_c_preproc_warn_flag in '' yes
8388 # Use a header file that comes with gcc, so configuring glibc
8389 # with a fresh cross-compiler works.
8390 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8391 # <limits.h> exists even on freestanding compilers.
8392 # On the NeXT, cc -E runs the code through the compiler's parser,
8393 # not just through cpp. "Syntax error" is here to catch this case.
8394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8395 /* end confdefs.h. */
8396 #ifdef __STDC__
8397 # include <limits.h>
8398 #else
8399 # include <assert.h>
8400 #endif
8401 Syntax error
8402 _ACEOF
8403 if ac_fn_c_try_cpp "$LINENO"; then :
8405 else
8406 # Broken: fails on valid input.
8407 continue
8409 rm -f conftest.err conftest.i conftest.$ac_ext
8411 # OK, works on sane cases. Now check whether nonexistent headers
8412 # can be detected and how.
8413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8414 /* end confdefs.h. */
8415 #include <ac_nonexistent.h>
8416 _ACEOF
8417 if ac_fn_c_try_cpp "$LINENO"; then :
8418 # Broken: success on invalid input.
8419 continue
8420 else
8421 # Passes both tests.
8422 ac_preproc_ok=:
8423 break
8425 rm -f conftest.err conftest.i conftest.$ac_ext
8427 done
8428 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8429 rm -f conftest.i conftest.err conftest.$ac_ext
8430 if $ac_preproc_ok; then :
8432 else
8433 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8434 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8435 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
8436 See \`config.log' for more details" "$LINENO" 5; }
8439 ac_ext=c
8440 ac_cpp='$CPP $CPPFLAGS'
8441 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8442 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8443 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8447 $as_echo_n "checking for ANSI C header files... " >&6; }
8448 if ${ac_cv_header_stdc+:} false; then :
8449 $as_echo_n "(cached) " >&6
8450 else
8451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8452 /* end confdefs.h. */
8453 #include <stdlib.h>
8454 #include <stdarg.h>
8455 #include <string.h>
8456 #include <float.h>
8459 main ()
8463 return 0;
8465 _ACEOF
8466 if ac_fn_c_try_compile "$LINENO"; then :
8467 ac_cv_header_stdc=yes
8468 else
8469 ac_cv_header_stdc=no
8471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8473 if test $ac_cv_header_stdc = yes; then
8474 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8476 /* end confdefs.h. */
8477 #include <string.h>
8479 _ACEOF
8480 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8481 $EGREP "memchr" >/dev/null 2>&1; then :
8483 else
8484 ac_cv_header_stdc=no
8486 rm -f conftest*
8490 if test $ac_cv_header_stdc = yes; then
8491 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8493 /* end confdefs.h. */
8494 #include <stdlib.h>
8496 _ACEOF
8497 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8498 $EGREP "free" >/dev/null 2>&1; then :
8500 else
8501 ac_cv_header_stdc=no
8503 rm -f conftest*
8507 if test $ac_cv_header_stdc = yes; then
8508 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8509 if test "$cross_compiling" = yes; then :
8511 else
8512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8513 /* end confdefs.h. */
8514 #include <ctype.h>
8515 #include <stdlib.h>
8516 #if ((' ' & 0x0FF) == 0x020)
8517 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8518 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8519 #else
8520 # define ISLOWER(c) \
8521 (('a' <= (c) && (c) <= 'i') \
8522 || ('j' <= (c) && (c) <= 'r') \
8523 || ('s' <= (c) && (c) <= 'z'))
8524 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8525 #endif
8527 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8529 main ()
8531 int i;
8532 for (i = 0; i < 256; i++)
8533 if (XOR (islower (i), ISLOWER (i))
8534 || toupper (i) != TOUPPER (i))
8535 return 2;
8536 return 0;
8538 _ACEOF
8539 if ac_fn_c_try_run "$LINENO"; then :
8541 else
8542 ac_cv_header_stdc=no
8544 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8545 conftest.$ac_objext conftest.beam conftest.$ac_ext
8550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8551 $as_echo "$ac_cv_header_stdc" >&6; }
8552 if test $ac_cv_header_stdc = yes; then
8554 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8558 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8559 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8560 inttypes.h stdint.h unistd.h
8561 do :
8562 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8563 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8565 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8566 cat >>confdefs.h <<_ACEOF
8567 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8568 _ACEOF
8572 done
8575 for ac_header in dlfcn.h
8576 do :
8577 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8579 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8580 cat >>confdefs.h <<_ACEOF
8581 #define HAVE_DLFCN_H 1
8582 _ACEOF
8586 done
8593 # Set options
8597 enable_dlopen=no
8600 enable_win32_dll=no
8603 # Check whether --enable-shared was given.
8604 if test "${enable_shared+set}" = set; then :
8605 enableval=$enable_shared; p=${PACKAGE-default}
8606 case $enableval in
8607 yes) enable_shared=yes ;;
8608 no) enable_shared=no ;;
8610 enable_shared=no
8611 # Look at the argument we got. We use all the common list separators.
8612 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8613 for pkg in $enableval; do
8614 IFS="$lt_save_ifs"
8615 if test "X$pkg" = "X$p"; then
8616 enable_shared=yes
8618 done
8619 IFS="$lt_save_ifs"
8621 esac
8622 else
8623 enable_shared=yes
8634 # Check whether --enable-static was given.
8635 if test "${enable_static+set}" = set; then :
8636 enableval=$enable_static; p=${PACKAGE-default}
8637 case $enableval in
8638 yes) enable_static=yes ;;
8639 no) enable_static=no ;;
8641 enable_static=no
8642 # Look at the argument we got. We use all the common list separators.
8643 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8644 for pkg in $enableval; do
8645 IFS="$lt_save_ifs"
8646 if test "X$pkg" = "X$p"; then
8647 enable_static=yes
8649 done
8650 IFS="$lt_save_ifs"
8652 esac
8653 else
8654 enable_static=yes
8666 # Check whether --with-pic was given.
8667 if test "${with_pic+set}" = set; then :
8668 withval=$with_pic; pic_mode="$withval"
8669 else
8670 pic_mode=default
8674 test -z "$pic_mode" && pic_mode=default
8682 # Check whether --enable-fast-install was given.
8683 if test "${enable_fast_install+set}" = set; then :
8684 enableval=$enable_fast_install; p=${PACKAGE-default}
8685 case $enableval in
8686 yes) enable_fast_install=yes ;;
8687 no) enable_fast_install=no ;;
8689 enable_fast_install=no
8690 # Look at the argument we got. We use all the common list separators.
8691 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8692 for pkg in $enableval; do
8693 IFS="$lt_save_ifs"
8694 if test "X$pkg" = "X$p"; then
8695 enable_fast_install=yes
8697 done
8698 IFS="$lt_save_ifs"
8700 esac
8701 else
8702 enable_fast_install=yes
8715 # This can be used to rebuild libtool when needed
8716 LIBTOOL_DEPS="$ltmain"
8718 # Always use our own libtool.
8719 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8746 test -z "$LN_S" && LN_S="ln -s"
8761 if test -n "${ZSH_VERSION+set}" ; then
8762 setopt NO_GLOB_SUBST
8765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8766 $as_echo_n "checking for objdir... " >&6; }
8767 if ${lt_cv_objdir+:} false; then :
8768 $as_echo_n "(cached) " >&6
8769 else
8770 rm -f .libs 2>/dev/null
8771 mkdir .libs 2>/dev/null
8772 if test -d .libs; then
8773 lt_cv_objdir=.libs
8774 else
8775 # MS-DOS does not allow filenames that begin with a dot.
8776 lt_cv_objdir=_libs
8778 rmdir .libs 2>/dev/null
8780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8781 $as_echo "$lt_cv_objdir" >&6; }
8782 objdir=$lt_cv_objdir
8788 cat >>confdefs.h <<_ACEOF
8789 #define LT_OBJDIR "$lt_cv_objdir/"
8790 _ACEOF
8795 case $host_os in
8796 aix3*)
8797 # AIX sometimes has problems with the GCC collect2 program. For some
8798 # reason, if we set the COLLECT_NAMES environment variable, the problems
8799 # vanish in a puff of smoke.
8800 if test "X${COLLECT_NAMES+set}" != Xset; then
8801 COLLECT_NAMES=
8802 export COLLECT_NAMES
8805 esac
8807 # Global variables:
8808 ofile=libtool
8809 can_build_shared=yes
8811 # All known linkers require a `.a' archive for static linking (except MSVC,
8812 # which needs '.lib').
8813 libext=a
8815 with_gnu_ld="$lt_cv_prog_gnu_ld"
8817 old_CC="$CC"
8818 old_CFLAGS="$CFLAGS"
8820 # Set sane defaults for various variables
8821 test -z "$CC" && CC=cc
8822 test -z "$LTCC" && LTCC=$CC
8823 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8824 test -z "$LD" && LD=ld
8825 test -z "$ac_objext" && ac_objext=o
8827 for cc_temp in $compiler""; do
8828 case $cc_temp in
8829 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8830 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8831 \-*) ;;
8832 *) break;;
8833 esac
8834 done
8835 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8838 # Only perform the check for file, if the check method requires it
8839 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8840 case $deplibs_check_method in
8841 file_magic*)
8842 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8844 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8845 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8846 $as_echo_n "(cached) " >&6
8847 else
8848 case $MAGIC_CMD in
8849 [\\/*] | ?:[\\/]*)
8850 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8853 lt_save_MAGIC_CMD="$MAGIC_CMD"
8854 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8855 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8856 for ac_dir in $ac_dummy; do
8857 IFS="$lt_save_ifs"
8858 test -z "$ac_dir" && ac_dir=.
8859 if test -f $ac_dir/${ac_tool_prefix}file; then
8860 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8861 if test -n "$file_magic_test_file"; then
8862 case $deplibs_check_method in
8863 "file_magic "*)
8864 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8865 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8866 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8867 $EGREP "$file_magic_regex" > /dev/null; then
8869 else
8870 cat <<_LT_EOF 1>&2
8872 *** Warning: the command libtool uses to detect shared libraries,
8873 *** $file_magic_cmd, produces output that libtool cannot recognize.
8874 *** The result is that libtool may fail to recognize shared libraries
8875 *** as such. This will affect the creation of libtool libraries that
8876 *** depend on shared libraries, but programs linked with such libtool
8877 *** libraries will work regardless of this problem. Nevertheless, you
8878 *** may want to report the problem to your system manager and/or to
8879 *** bug-libtool@gnu.org
8881 _LT_EOF
8882 fi ;;
8883 esac
8885 break
8887 done
8888 IFS="$lt_save_ifs"
8889 MAGIC_CMD="$lt_save_MAGIC_CMD"
8891 esac
8894 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8895 if test -n "$MAGIC_CMD"; then
8896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8897 $as_echo "$MAGIC_CMD" >&6; }
8898 else
8899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8900 $as_echo "no" >&6; }
8907 if test -z "$lt_cv_path_MAGIC_CMD"; then
8908 if test -n "$ac_tool_prefix"; then
8909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8910 $as_echo_n "checking for file... " >&6; }
8911 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8912 $as_echo_n "(cached) " >&6
8913 else
8914 case $MAGIC_CMD in
8915 [\\/*] | ?:[\\/]*)
8916 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8919 lt_save_MAGIC_CMD="$MAGIC_CMD"
8920 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8921 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8922 for ac_dir in $ac_dummy; do
8923 IFS="$lt_save_ifs"
8924 test -z "$ac_dir" && ac_dir=.
8925 if test -f $ac_dir/file; then
8926 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8927 if test -n "$file_magic_test_file"; then
8928 case $deplibs_check_method in
8929 "file_magic "*)
8930 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8931 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8932 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8933 $EGREP "$file_magic_regex" > /dev/null; then
8935 else
8936 cat <<_LT_EOF 1>&2
8938 *** Warning: the command libtool uses to detect shared libraries,
8939 *** $file_magic_cmd, produces output that libtool cannot recognize.
8940 *** The result is that libtool may fail to recognize shared libraries
8941 *** as such. This will affect the creation of libtool libraries that
8942 *** depend on shared libraries, but programs linked with such libtool
8943 *** libraries will work regardless of this problem. Nevertheless, you
8944 *** may want to report the problem to your system manager and/or to
8945 *** bug-libtool@gnu.org
8947 _LT_EOF
8948 fi ;;
8949 esac
8951 break
8953 done
8954 IFS="$lt_save_ifs"
8955 MAGIC_CMD="$lt_save_MAGIC_CMD"
8957 esac
8960 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8961 if test -n "$MAGIC_CMD"; then
8962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8963 $as_echo "$MAGIC_CMD" >&6; }
8964 else
8965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8966 $as_echo "no" >&6; }
8970 else
8971 MAGIC_CMD=:
8977 esac
8979 # Use C for the default configuration in the libtool script
8981 lt_save_CC="$CC"
8982 ac_ext=c
8983 ac_cpp='$CPP $CPPFLAGS'
8984 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8985 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8986 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8989 # Source file extension for C test sources.
8990 ac_ext=c
8992 # Object file extension for compiled C test sources.
8993 objext=o
8994 objext=$objext
8996 # Code to be used in simple compile tests
8997 lt_simple_compile_test_code="int some_variable = 0;"
8999 # Code to be used in simple link tests
9000 lt_simple_link_test_code='int main(){return(0);}'
9008 # If no C compiler was specified, use CC.
9009 LTCC=${LTCC-"$CC"}
9011 # If no C compiler flags were specified, use CFLAGS.
9012 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9014 # Allow CC to be a program name with arguments.
9015 compiler=$CC
9017 # Save the default compiler, since it gets overwritten when the other
9018 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9019 compiler_DEFAULT=$CC
9021 # save warnings/boilerplate of simple test code
9022 ac_outfile=conftest.$ac_objext
9023 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9024 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9025 _lt_compiler_boilerplate=`cat conftest.err`
9026 $RM conftest*
9028 ac_outfile=conftest.$ac_objext
9029 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9030 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9031 _lt_linker_boilerplate=`cat conftest.err`
9032 $RM -r conftest*
9035 ## CAVEAT EMPTOR:
9036 ## There is no encapsulation within the following macros, do not change
9037 ## the running order or otherwise move them around unless you know exactly
9038 ## what you are doing...
9039 if test -n "$compiler"; then
9041 lt_prog_compiler_no_builtin_flag=
9043 if test "$GCC" = yes; then
9044 case $cc_basename in
9045 nvcc*)
9046 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9048 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9049 esac
9051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9052 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9053 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9054 $as_echo_n "(cached) " >&6
9055 else
9056 lt_cv_prog_compiler_rtti_exceptions=no
9057 ac_outfile=conftest.$ac_objext
9058 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9059 lt_compiler_flag="-fno-rtti -fno-exceptions"
9060 # Insert the option either (1) after the last *FLAGS variable, or
9061 # (2) before a word containing "conftest.", or (3) at the end.
9062 # Note that $ac_compile itself does not contain backslashes and begins
9063 # with a dollar sign (not a hyphen), so the echo should work correctly.
9064 # The option is referenced via a variable to avoid confusing sed.
9065 lt_compile=`echo "$ac_compile" | $SED \
9066 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9067 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9068 -e 's:$: $lt_compiler_flag:'`
9069 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9070 (eval "$lt_compile" 2>conftest.err)
9071 ac_status=$?
9072 cat conftest.err >&5
9073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9074 if (exit $ac_status) && test -s "$ac_outfile"; then
9075 # The compiler can only warn and ignore the option if not recognized
9076 # So say no if there are warnings other than the usual output.
9077 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9078 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9079 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9080 lt_cv_prog_compiler_rtti_exceptions=yes
9083 $RM conftest*
9086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9087 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9089 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9090 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9091 else
9102 lt_prog_compiler_wl=
9103 lt_prog_compiler_pic=
9104 lt_prog_compiler_static=
9106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9107 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9109 if test "$GCC" = yes; then
9110 lt_prog_compiler_wl='-Wl,'
9111 lt_prog_compiler_static='-static'
9113 case $host_os in
9114 aix*)
9115 # All AIX code is PIC.
9116 if test "$host_cpu" = ia64; then
9117 # AIX 5 now supports IA64 processor
9118 lt_prog_compiler_static='-Bstatic'
9120 lt_prog_compiler_pic='-fPIC'
9123 amigaos*)
9124 case $host_cpu in
9125 powerpc)
9126 # see comment about AmigaOS4 .so support
9127 lt_prog_compiler_pic='-fPIC'
9129 m68k)
9130 # FIXME: we need at least 68020 code to build shared libraries, but
9131 # adding the `-m68020' flag to GCC prevents building anything better,
9132 # like `-m68040'.
9133 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9135 esac
9138 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9139 # PIC is the default for these OSes.
9142 mingw* | cygwin* | pw32* | os2* | cegcc*)
9143 # This hack is so that the source file can tell whether it is being
9144 # built for inclusion in a dll (and should export symbols for example).
9145 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9146 # (--disable-auto-import) libraries
9147 lt_prog_compiler_pic='-DDLL_EXPORT'
9150 darwin* | rhapsody*)
9151 # PIC is the default on this platform
9152 # Common symbols not allowed in MH_DYLIB files
9153 lt_prog_compiler_pic='-fno-common'
9156 haiku*)
9157 # PIC is the default for Haiku.
9158 # The "-static" flag exists, but is broken.
9159 lt_prog_compiler_static=
9162 hpux*)
9163 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9164 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9165 # sets the default TLS model and affects inlining.
9166 case $host_cpu in
9167 hppa*64*)
9168 # +Z the default
9171 lt_prog_compiler_pic='-fPIC'
9173 esac
9176 interix[3-9]*)
9177 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9178 # Instead, we relocate shared libraries at runtime.
9181 msdosdjgpp*)
9182 # Just because we use GCC doesn't mean we suddenly get shared libraries
9183 # on systems that don't support them.
9184 lt_prog_compiler_can_build_shared=no
9185 enable_shared=no
9188 *nto* | *qnx*)
9189 # QNX uses GNU C++, but need to define -shared option too, otherwise
9190 # it will coredump.
9191 lt_prog_compiler_pic='-fPIC -shared'
9194 sysv4*MP*)
9195 if test -d /usr/nec; then
9196 lt_prog_compiler_pic=-Kconform_pic
9201 lt_prog_compiler_pic='-fPIC'
9203 esac
9205 case $cc_basename in
9206 nvcc*) # Cuda Compiler Driver 2.2
9207 lt_prog_compiler_wl='-Xlinker '
9208 lt_prog_compiler_pic='-Xcompiler -fPIC'
9210 esac
9211 else
9212 # PORTME Check for flag to pass linker flags through the system compiler.
9213 case $host_os in
9214 aix*)
9215 lt_prog_compiler_wl='-Wl,'
9216 if test "$host_cpu" = ia64; then
9217 # AIX 5 now supports IA64 processor
9218 lt_prog_compiler_static='-Bstatic'
9219 else
9220 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9224 mingw* | cygwin* | pw32* | os2* | cegcc*)
9225 # This hack is so that the source file can tell whether it is being
9226 # built for inclusion in a dll (and should export symbols for example).
9227 lt_prog_compiler_pic='-DDLL_EXPORT'
9230 hpux9* | hpux10* | hpux11*)
9231 lt_prog_compiler_wl='-Wl,'
9232 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9233 # not for PA HP-UX.
9234 case $host_cpu in
9235 hppa*64*|ia64*)
9236 # +Z the default
9239 lt_prog_compiler_pic='+Z'
9241 esac
9242 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9243 lt_prog_compiler_static='${wl}-a ${wl}archive'
9246 irix5* | irix6* | nonstopux*)
9247 lt_prog_compiler_wl='-Wl,'
9248 # PIC (with -KPIC) is the default.
9249 lt_prog_compiler_static='-non_shared'
9252 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9253 case $cc_basename in
9254 # old Intel for x86_64 which still supported -KPIC.
9255 ecc*)
9256 lt_prog_compiler_wl='-Wl,'
9257 lt_prog_compiler_pic='-KPIC'
9258 lt_prog_compiler_static='-static'
9260 # icc used to be incompatible with GCC.
9261 # ICC 10 doesn't accept -KPIC any more.
9262 icc* | ifort*)
9263 lt_prog_compiler_wl='-Wl,'
9264 lt_prog_compiler_pic='-fPIC'
9265 lt_prog_compiler_static='-static'
9267 # Lahey Fortran 8.1.
9268 lf95*)
9269 lt_prog_compiler_wl='-Wl,'
9270 lt_prog_compiler_pic='--shared'
9271 lt_prog_compiler_static='--static'
9273 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9274 # Portland Group compilers (*not* the Pentium gcc compiler,
9275 # which looks to be a dead project)
9276 lt_prog_compiler_wl='-Wl,'
9277 lt_prog_compiler_pic='-fpic'
9278 lt_prog_compiler_static='-Bstatic'
9280 ccc*)
9281 lt_prog_compiler_wl='-Wl,'
9282 # All Alpha code is PIC.
9283 lt_prog_compiler_static='-non_shared'
9285 xl* | bgxl* | bgf* | mpixl*)
9286 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9287 lt_prog_compiler_wl='-Wl,'
9288 lt_prog_compiler_pic='-qpic'
9289 lt_prog_compiler_static='-qstaticlink'
9292 case `$CC -V 2>&1 | sed 5q` in
9293 *Sun\ F* | *Sun*Fortran*)
9294 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9295 lt_prog_compiler_pic='-KPIC'
9296 lt_prog_compiler_static='-Bstatic'
9297 lt_prog_compiler_wl=''
9299 *Sun\ C*)
9300 # Sun C 5.9
9301 lt_prog_compiler_pic='-KPIC'
9302 lt_prog_compiler_static='-Bstatic'
9303 lt_prog_compiler_wl='-Wl,'
9305 esac
9307 esac
9310 newsos6)
9311 lt_prog_compiler_pic='-KPIC'
9312 lt_prog_compiler_static='-Bstatic'
9315 *nto* | *qnx*)
9316 # QNX uses GNU C++, but need to define -shared option too, otherwise
9317 # it will coredump.
9318 lt_prog_compiler_pic='-fPIC -shared'
9321 osf3* | osf4* | osf5*)
9322 lt_prog_compiler_wl='-Wl,'
9323 # All OSF/1 code is PIC.
9324 lt_prog_compiler_static='-non_shared'
9327 rdos*)
9328 lt_prog_compiler_static='-non_shared'
9331 solaris*)
9332 lt_prog_compiler_pic='-KPIC'
9333 lt_prog_compiler_static='-Bstatic'
9334 case $cc_basename in
9335 f77* | f90* | f95*)
9336 lt_prog_compiler_wl='-Qoption ld ';;
9338 lt_prog_compiler_wl='-Wl,';;
9339 esac
9342 sunos4*)
9343 lt_prog_compiler_wl='-Qoption ld '
9344 lt_prog_compiler_pic='-PIC'
9345 lt_prog_compiler_static='-Bstatic'
9348 sysv4 | sysv4.2uw2* | sysv4.3*)
9349 lt_prog_compiler_wl='-Wl,'
9350 lt_prog_compiler_pic='-KPIC'
9351 lt_prog_compiler_static='-Bstatic'
9354 sysv4*MP*)
9355 if test -d /usr/nec ;then
9356 lt_prog_compiler_pic='-Kconform_pic'
9357 lt_prog_compiler_static='-Bstatic'
9361 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9362 lt_prog_compiler_wl='-Wl,'
9363 lt_prog_compiler_pic='-KPIC'
9364 lt_prog_compiler_static='-Bstatic'
9367 unicos*)
9368 lt_prog_compiler_wl='-Wl,'
9369 lt_prog_compiler_can_build_shared=no
9372 uts4*)
9373 lt_prog_compiler_pic='-pic'
9374 lt_prog_compiler_static='-Bstatic'
9378 lt_prog_compiler_can_build_shared=no
9380 esac
9383 case $host_os in
9384 # For platforms which do not support PIC, -DPIC is meaningless:
9385 *djgpp*)
9386 lt_prog_compiler_pic=
9389 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9391 esac
9392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9393 $as_echo "$lt_prog_compiler_pic" >&6; }
9401 # Check to make sure the PIC flag actually works.
9403 if test -n "$lt_prog_compiler_pic"; then
9404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9405 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9406 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9407 $as_echo_n "(cached) " >&6
9408 else
9409 lt_cv_prog_compiler_pic_works=no
9410 ac_outfile=conftest.$ac_objext
9411 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9412 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9413 # Insert the option either (1) after the last *FLAGS variable, or
9414 # (2) before a word containing "conftest.", or (3) at the end.
9415 # Note that $ac_compile itself does not contain backslashes and begins
9416 # with a dollar sign (not a hyphen), so the echo should work correctly.
9417 # The option is referenced via a variable to avoid confusing sed.
9418 lt_compile=`echo "$ac_compile" | $SED \
9419 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9420 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9421 -e 's:$: $lt_compiler_flag:'`
9422 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9423 (eval "$lt_compile" 2>conftest.err)
9424 ac_status=$?
9425 cat conftest.err >&5
9426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9427 if (exit $ac_status) && test -s "$ac_outfile"; then
9428 # The compiler can only warn and ignore the option if not recognized
9429 # So say no if there are warnings other than the usual output.
9430 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9431 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9432 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9433 lt_cv_prog_compiler_pic_works=yes
9436 $RM conftest*
9439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9440 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9442 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9443 case $lt_prog_compiler_pic in
9444 "" | " "*) ;;
9445 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9446 esac
9447 else
9448 lt_prog_compiler_pic=
9449 lt_prog_compiler_can_build_shared=no
9460 # Check to make sure the static flag actually works.
9462 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9464 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9465 if ${lt_cv_prog_compiler_static_works+:} false; then :
9466 $as_echo_n "(cached) " >&6
9467 else
9468 lt_cv_prog_compiler_static_works=no
9469 save_LDFLAGS="$LDFLAGS"
9470 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9471 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9472 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9473 # The linker can only warn and ignore the option if not recognized
9474 # So say no if there are warnings
9475 if test -s conftest.err; then
9476 # Append any errors to the config.log.
9477 cat conftest.err 1>&5
9478 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9479 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9480 if diff conftest.exp conftest.er2 >/dev/null; then
9481 lt_cv_prog_compiler_static_works=yes
9483 else
9484 lt_cv_prog_compiler_static_works=yes
9487 $RM -r conftest*
9488 LDFLAGS="$save_LDFLAGS"
9491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9492 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9494 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9496 else
9497 lt_prog_compiler_static=
9506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9507 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9508 if ${lt_cv_prog_compiler_c_o+:} false; then :
9509 $as_echo_n "(cached) " >&6
9510 else
9511 lt_cv_prog_compiler_c_o=no
9512 $RM -r conftest 2>/dev/null
9513 mkdir conftest
9514 cd conftest
9515 mkdir out
9516 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9518 lt_compiler_flag="-o out/conftest2.$ac_objext"
9519 # Insert the option either (1) after the last *FLAGS variable, or
9520 # (2) before a word containing "conftest.", or (3) at the end.
9521 # Note that $ac_compile itself does not contain backslashes and begins
9522 # with a dollar sign (not a hyphen), so the echo should work correctly.
9523 lt_compile=`echo "$ac_compile" | $SED \
9524 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9525 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9526 -e 's:$: $lt_compiler_flag:'`
9527 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9528 (eval "$lt_compile" 2>out/conftest.err)
9529 ac_status=$?
9530 cat out/conftest.err >&5
9531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9532 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9533 then
9534 # The compiler can only warn and ignore the option if not recognized
9535 # So say no if there are warnings
9536 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9537 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9538 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9539 lt_cv_prog_compiler_c_o=yes
9542 chmod u+w . 2>&5
9543 $RM conftest*
9544 # SGI C++ compiler will create directory out/ii_files/ for
9545 # template instantiation
9546 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9547 $RM out/* && rmdir out
9548 cd ..
9549 $RM -r conftest
9550 $RM conftest*
9553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9554 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9562 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9563 if ${lt_cv_prog_compiler_c_o+:} false; then :
9564 $as_echo_n "(cached) " >&6
9565 else
9566 lt_cv_prog_compiler_c_o=no
9567 $RM -r conftest 2>/dev/null
9568 mkdir conftest
9569 cd conftest
9570 mkdir out
9571 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9573 lt_compiler_flag="-o out/conftest2.$ac_objext"
9574 # Insert the option either (1) after the last *FLAGS variable, or
9575 # (2) before a word containing "conftest.", or (3) at the end.
9576 # Note that $ac_compile itself does not contain backslashes and begins
9577 # with a dollar sign (not a hyphen), so the echo should work correctly.
9578 lt_compile=`echo "$ac_compile" | $SED \
9579 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9580 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9581 -e 's:$: $lt_compiler_flag:'`
9582 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9583 (eval "$lt_compile" 2>out/conftest.err)
9584 ac_status=$?
9585 cat out/conftest.err >&5
9586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9587 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9588 then
9589 # The compiler can only warn and ignore the option if not recognized
9590 # So say no if there are warnings
9591 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9592 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9593 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9594 lt_cv_prog_compiler_c_o=yes
9597 chmod u+w . 2>&5
9598 $RM conftest*
9599 # SGI C++ compiler will create directory out/ii_files/ for
9600 # template instantiation
9601 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9602 $RM out/* && rmdir out
9603 cd ..
9604 $RM -r conftest
9605 $RM conftest*
9608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9609 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9614 hard_links="nottested"
9615 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9616 # do not overwrite the value of need_locks provided by the user
9617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9618 $as_echo_n "checking if we can lock with hard links... " >&6; }
9619 hard_links=yes
9620 $RM conftest*
9621 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9622 touch conftest.a
9623 ln conftest.a conftest.b 2>&5 || hard_links=no
9624 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9626 $as_echo "$hard_links" >&6; }
9627 if test "$hard_links" = no; then
9628 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9629 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9630 need_locks=warn
9632 else
9633 need_locks=no
9641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9642 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9644 runpath_var=
9645 allow_undefined_flag=
9646 always_export_symbols=no
9647 archive_cmds=
9648 archive_expsym_cmds=
9649 compiler_needs_object=no
9650 enable_shared_with_static_runtimes=no
9651 export_dynamic_flag_spec=
9652 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9653 hardcode_automatic=no
9654 hardcode_direct=no
9655 hardcode_direct_absolute=no
9656 hardcode_libdir_flag_spec=
9657 hardcode_libdir_flag_spec_ld=
9658 hardcode_libdir_separator=
9659 hardcode_minus_L=no
9660 hardcode_shlibpath_var=unsupported
9661 inherit_rpath=no
9662 link_all_deplibs=unknown
9663 module_cmds=
9664 module_expsym_cmds=
9665 old_archive_from_new_cmds=
9666 old_archive_from_expsyms_cmds=
9667 thread_safe_flag_spec=
9668 whole_archive_flag_spec=
9669 # include_expsyms should be a list of space-separated symbols to be *always*
9670 # included in the symbol list
9671 include_expsyms=
9672 # exclude_expsyms can be an extended regexp of symbols to exclude
9673 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9674 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9675 # as well as any symbol that contains `d'.
9676 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9677 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9678 # platforms (ab)use it in PIC code, but their linkers get confused if
9679 # the symbol is explicitly referenced. Since portable code cannot
9680 # rely on this symbol name, it's probably fine to never include it in
9681 # preloaded symbol tables.
9682 # Exclude shared library initialization/finalization symbols.
9683 extract_expsyms_cmds=
9685 case $host_os in
9686 cygwin* | mingw* | pw32* | cegcc*)
9687 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9688 # When not using gcc, we currently assume that we are using
9689 # Microsoft Visual C++.
9690 if test "$GCC" != yes; then
9691 with_gnu_ld=no
9694 interix*)
9695 # we just hope/assume this is gcc and not c89 (= MSVC++)
9696 with_gnu_ld=yes
9698 openbsd*)
9699 with_gnu_ld=no
9701 esac
9703 ld_shlibs=yes
9705 # On some targets, GNU ld is compatible enough with the native linker
9706 # that we're better off using the native interface for both.
9707 lt_use_gnu_ld_interface=no
9708 if test "$with_gnu_ld" = yes; then
9709 case $host_os in
9710 aix*)
9711 # The AIX port of GNU ld has always aspired to compatibility
9712 # with the native linker. However, as the warning in the GNU ld
9713 # block says, versions before 2.19.5* couldn't really create working
9714 # shared libraries, regardless of the interface used.
9715 case `$LD -v 2>&1` in
9716 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9717 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9718 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9720 lt_use_gnu_ld_interface=yes
9722 esac
9725 lt_use_gnu_ld_interface=yes
9727 esac
9730 if test "$lt_use_gnu_ld_interface" = yes; then
9731 # If archive_cmds runs LD, not CC, wlarc should be empty
9732 wlarc='${wl}'
9734 # Set some defaults for GNU ld with shared library support. These
9735 # are reset later if shared libraries are not supported. Putting them
9736 # here allows them to be overridden if necessary.
9737 runpath_var=LD_RUN_PATH
9738 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9739 export_dynamic_flag_spec='${wl}--export-dynamic'
9740 # ancient GNU ld didn't support --whole-archive et. al.
9741 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9742 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9743 else
9744 whole_archive_flag_spec=
9746 supports_anon_versioning=no
9747 case `$LD -v 2>&1` in
9748 *GNU\ gold*) supports_anon_versioning=yes ;;
9749 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9750 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9751 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9752 *\ 2.11.*) ;; # other 2.11 versions
9753 *) supports_anon_versioning=yes ;;
9754 esac
9756 # See if GNU ld supports shared libraries.
9757 case $host_os in
9758 aix[3-9]*)
9759 # On AIX/PPC, the GNU linker is very broken
9760 if test "$host_cpu" != ia64; then
9761 ld_shlibs=no
9762 cat <<_LT_EOF 1>&2
9764 *** Warning: the GNU linker, at least up to release 2.19, is reported
9765 *** to be unable to reliably create shared libraries on AIX.
9766 *** Therefore, libtool is disabling shared libraries support. If you
9767 *** really care for shared libraries, you may want to install binutils
9768 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9769 *** You will then need to restart the configuration process.
9771 _LT_EOF
9775 amigaos*)
9776 case $host_cpu in
9777 powerpc)
9778 # see comment about AmigaOS4 .so support
9779 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9780 archive_expsym_cmds=''
9782 m68k)
9783 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)'
9784 hardcode_libdir_flag_spec='-L$libdir'
9785 hardcode_minus_L=yes
9787 esac
9790 beos*)
9791 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9792 allow_undefined_flag=unsupported
9793 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9794 # support --undefined. This deserves some investigation. FIXME
9795 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9796 else
9797 ld_shlibs=no
9801 cygwin* | mingw* | pw32* | cegcc*)
9802 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9803 # as there is no search path for DLLs.
9804 hardcode_libdir_flag_spec='-L$libdir'
9805 export_dynamic_flag_spec='${wl}--export-all-symbols'
9806 allow_undefined_flag=unsupported
9807 always_export_symbols=no
9808 enable_shared_with_static_runtimes=yes
9809 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9811 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9812 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9813 # If the export-symbols file already is a .def file (1st line
9814 # is EXPORTS), use it as is; otherwise, prepend...
9815 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9816 cp $export_symbols $output_objdir/$soname.def;
9817 else
9818 echo EXPORTS > $output_objdir/$soname.def;
9819 cat $export_symbols >> $output_objdir/$soname.def;
9821 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9822 else
9823 ld_shlibs=no
9827 haiku*)
9828 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9829 link_all_deplibs=yes
9832 interix[3-9]*)
9833 hardcode_direct=no
9834 hardcode_shlibpath_var=no
9835 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9836 export_dynamic_flag_spec='${wl}-E'
9837 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9838 # Instead, shared libraries are loaded at an image base (0x10000000 by
9839 # default) and relocated if they conflict, which is a slow very memory
9840 # consuming and fragmenting process. To avoid this, we pick a random,
9841 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9842 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9843 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9844 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'
9847 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
9848 tmp_diet=no
9849 if test "$host_os" = linux-dietlibc; then
9850 case $cc_basename in
9851 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9852 esac
9854 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9855 && test "$tmp_diet" = no
9856 then
9857 tmp_addflag=' $pic_flag'
9858 tmp_sharedflag='-shared'
9859 case $cc_basename,$host_cpu in
9860 pgcc*) # Portland Group C compiler
9861 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'
9862 tmp_addflag=' $pic_flag'
9864 pgf77* | pgf90* | pgf95* | pgfortran*)
9865 # Portland Group f77 and f90 compilers
9866 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'
9867 tmp_addflag=' $pic_flag -Mnomain' ;;
9868 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9869 tmp_addflag=' -i_dynamic' ;;
9870 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9871 tmp_addflag=' -i_dynamic -nofor_main' ;;
9872 ifc* | ifort*) # Intel Fortran compiler
9873 tmp_addflag=' -nofor_main' ;;
9874 lf95*) # Lahey Fortran 8.1
9875 whole_archive_flag_spec=
9876 tmp_sharedflag='--shared' ;;
9877 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9878 tmp_sharedflag='-qmkshrobj'
9879 tmp_addflag= ;;
9880 nvcc*) # Cuda Compiler Driver 2.2
9881 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'
9882 compiler_needs_object=yes
9884 esac
9885 case `$CC -V 2>&1 | sed 5q` in
9886 *Sun\ C*) # Sun C 5.9
9887 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'
9888 compiler_needs_object=yes
9889 tmp_sharedflag='-G' ;;
9890 *Sun\ F*) # Sun Fortran 8.3
9891 tmp_sharedflag='-G' ;;
9892 esac
9893 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9895 if test "x$supports_anon_versioning" = xyes; then
9896 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9897 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9898 echo "local: *; };" >> $output_objdir/$libname.ver~
9899 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9902 case $cc_basename in
9903 xlf* | bgf* | bgxlf* | mpixlf*)
9904 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9905 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9906 hardcode_libdir_flag_spec=
9907 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9908 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9909 if test "x$supports_anon_versioning" = xyes; then
9910 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9911 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9912 echo "local: *; };" >> $output_objdir/$libname.ver~
9913 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9916 esac
9917 else
9918 ld_shlibs=no
9922 netbsd*)
9923 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9924 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9925 wlarc=
9926 else
9927 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9928 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9932 solaris*)
9933 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9934 ld_shlibs=no
9935 cat <<_LT_EOF 1>&2
9937 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9938 *** create shared libraries on Solaris systems. Therefore, libtool
9939 *** is disabling shared libraries support. We urge you to upgrade GNU
9940 *** binutils to release 2.9.1 or newer. Another option is to modify
9941 *** your PATH or compiler configuration so that the native linker is
9942 *** used, and then restart.
9944 _LT_EOF
9945 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9946 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9947 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9948 else
9949 ld_shlibs=no
9953 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9954 case `$LD -v 2>&1` in
9955 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9956 ld_shlibs=no
9957 cat <<_LT_EOF 1>&2
9959 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9960 *** reliably create shared libraries on SCO systems. Therefore, libtool
9961 *** is disabling shared libraries support. We urge you to upgrade GNU
9962 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9963 *** your PATH or compiler configuration so that the native linker is
9964 *** used, and then restart.
9966 _LT_EOF
9969 # For security reasons, it is highly recommended that you always
9970 # use absolute paths for naming shared libraries, and exclude the
9971 # DT_RUNPATH tag from executables and libraries. But doing so
9972 # requires that you compile everything twice, which is a pain.
9973 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9974 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9975 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9976 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9977 else
9978 ld_shlibs=no
9981 esac
9984 sunos4*)
9985 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9986 wlarc=
9987 hardcode_direct=yes
9988 hardcode_shlibpath_var=no
9992 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9993 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9994 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9995 else
9996 ld_shlibs=no
9999 esac
10001 if test "$ld_shlibs" = no; then
10002 runpath_var=
10003 hardcode_libdir_flag_spec=
10004 export_dynamic_flag_spec=
10005 whole_archive_flag_spec=
10007 else
10008 # PORTME fill in a description of your system's linker (not GNU ld)
10009 case $host_os in
10010 aix3*)
10011 allow_undefined_flag=unsupported
10012 always_export_symbols=yes
10013 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'
10014 # Note: this linker hardcodes the directories in LIBPATH if there
10015 # are no directories specified by -L.
10016 hardcode_minus_L=yes
10017 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10018 # Neither direct hardcoding nor static linking is supported with a
10019 # broken collect2.
10020 hardcode_direct=unsupported
10024 aix[4-9]*)
10025 if test "$host_cpu" = ia64; then
10026 # On IA64, the linker does run time linking by default, so we don't
10027 # have to do anything special.
10028 aix_use_runtimelinking=no
10029 exp_sym_flag='-Bexport'
10030 no_entry_flag=""
10031 else
10032 # If we're using GNU nm, then we don't want the "-C" option.
10033 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10034 # Also, AIX nm treats weak defined symbols like other global
10035 # defined symbols, whereas GNU nm marks them as "W".
10036 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10037 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'
10038 else
10039 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'
10041 aix_use_runtimelinking=no
10043 # Test if we are trying to use run time linking or normal
10044 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10045 # need to do runtime linking.
10046 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10047 for ld_flag in $LDFLAGS; do
10048 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10049 aix_use_runtimelinking=yes
10050 break
10052 done
10054 esac
10056 exp_sym_flag='-bexport'
10057 no_entry_flag='-bnoentry'
10060 # When large executables or shared objects are built, AIX ld can
10061 # have problems creating the table of contents. If linking a library
10062 # or program results in "error TOC overflow" add -mminimal-toc to
10063 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10064 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10066 archive_cmds=''
10067 hardcode_direct=yes
10068 hardcode_direct_absolute=yes
10069 hardcode_libdir_separator=':'
10070 link_all_deplibs=yes
10071 file_list_spec='${wl}-f,'
10073 if test "$GCC" = yes; then
10074 case $host_os in aix4.[012]|aix4.[012].*)
10075 # We only want to do this on AIX 4.2 and lower, the check
10076 # below for broken collect2 doesn't work under 4.3+
10077 collect2name=`${CC} -print-prog-name=collect2`
10078 if test -f "$collect2name" &&
10079 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10080 then
10081 # We have reworked collect2
10083 else
10084 # We have old collect2
10085 hardcode_direct=unsupported
10086 # It fails to find uninstalled libraries when the uninstalled
10087 # path is not listed in the libpath. Setting hardcode_minus_L
10088 # to unsupported forces relinking
10089 hardcode_minus_L=yes
10090 hardcode_libdir_flag_spec='-L$libdir'
10091 hardcode_libdir_separator=
10094 esac
10095 shared_flag='-shared'
10096 if test "$aix_use_runtimelinking" = yes; then
10097 shared_flag="$shared_flag "'${wl}-G'
10099 else
10100 # not using gcc
10101 if test "$host_cpu" = ia64; then
10102 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10103 # chokes on -Wl,-G. The following line is correct:
10104 shared_flag='-G'
10105 else
10106 if test "$aix_use_runtimelinking" = yes; then
10107 shared_flag='${wl}-G'
10108 else
10109 shared_flag='${wl}-bM:SRE'
10114 export_dynamic_flag_spec='${wl}-bexpall'
10115 # It seems that -bexpall does not export symbols beginning with
10116 # underscore (_), so it is better to generate a list of symbols to export.
10117 always_export_symbols=yes
10118 if test "$aix_use_runtimelinking" = yes; then
10119 # Warning - without using the other runtime loading flags (-brtl),
10120 # -berok will link without error, but may produce a broken library.
10121 allow_undefined_flag='-berok'
10122 # Determine the default libpath from the value encoded in an
10123 # empty executable.
10124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10125 /* end confdefs.h. */
10128 main ()
10132 return 0;
10134 _ACEOF
10135 if ac_fn_c_try_link "$LINENO"; then :
10137 lt_aix_libpath_sed='
10138 /Import File Strings/,/^$/ {
10139 /^0/ {
10140 s/^0 *\(.*\)$/\1/
10144 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10145 # Check for a 64-bit object if we didn't find anything.
10146 if test -z "$aix_libpath"; then
10147 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10150 rm -f core conftest.err conftest.$ac_objext \
10151 conftest$ac_exeext conftest.$ac_ext
10152 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10154 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10155 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"
10156 else
10157 if test "$host_cpu" = ia64; then
10158 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10159 allow_undefined_flag="-z nodefs"
10160 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"
10161 else
10162 # Determine the default libpath from the value encoded in an
10163 # empty executable.
10164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10165 /* end confdefs.h. */
10168 main ()
10172 return 0;
10174 _ACEOF
10175 if ac_fn_c_try_link "$LINENO"; then :
10177 lt_aix_libpath_sed='
10178 /Import File Strings/,/^$/ {
10179 /^0/ {
10180 s/^0 *\(.*\)$/\1/
10184 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10185 # Check for a 64-bit object if we didn't find anything.
10186 if test -z "$aix_libpath"; then
10187 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10190 rm -f core conftest.err conftest.$ac_objext \
10191 conftest$ac_exeext conftest.$ac_ext
10192 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10194 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10195 # Warning - without using the other run time loading flags,
10196 # -berok will link without error, but may produce a broken library.
10197 no_undefined_flag=' ${wl}-bernotok'
10198 allow_undefined_flag=' ${wl}-berok'
10199 if test "$with_gnu_ld" = yes; then
10200 # We only use this code for GNU lds that support --whole-archive.
10201 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10202 else
10203 # Exported symbols can be pulled into shared objects from archives
10204 whole_archive_flag_spec='$convenience'
10206 archive_cmds_need_lc=yes
10207 # This is similar to how AIX traditionally builds its shared libraries.
10208 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'
10213 amigaos*)
10214 case $host_cpu in
10215 powerpc)
10216 # see comment about AmigaOS4 .so support
10217 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10218 archive_expsym_cmds=''
10220 m68k)
10221 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)'
10222 hardcode_libdir_flag_spec='-L$libdir'
10223 hardcode_minus_L=yes
10225 esac
10228 bsdi[45]*)
10229 export_dynamic_flag_spec=-rdynamic
10232 cygwin* | mingw* | pw32* | cegcc*)
10233 # When not using gcc, we currently assume that we are using
10234 # Microsoft Visual C++.
10235 # hardcode_libdir_flag_spec is actually meaningless, as there is
10236 # no search path for DLLs.
10237 hardcode_libdir_flag_spec=' '
10238 allow_undefined_flag=unsupported
10239 # Tell ltmain to make .lib files, not .a files.
10240 libext=lib
10241 # Tell ltmain to make .dll files, not .so files.
10242 shrext_cmds=".dll"
10243 # FIXME: Setting linknames here is a bad hack.
10244 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10245 # The linker will automatically build a .lib file if we build a DLL.
10246 old_archive_from_new_cmds='true'
10247 # FIXME: Should let the user specify the lib program.
10248 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10249 fix_srcfile_path='`cygpath -w "$srcfile"`'
10250 enable_shared_with_static_runtimes=yes
10253 darwin* | rhapsody*)
10256 archive_cmds_need_lc=no
10257 hardcode_direct=no
10258 hardcode_automatic=yes
10259 hardcode_shlibpath_var=unsupported
10260 if test "$lt_cv_ld_force_load" = "yes"; then
10261 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\"`'
10262 else
10263 whole_archive_flag_spec=''
10265 link_all_deplibs=yes
10266 allow_undefined_flag="$_lt_dar_allow_undefined"
10267 case $cc_basename in
10268 ifort*) _lt_dar_can_shared=yes ;;
10269 *) _lt_dar_can_shared=$GCC ;;
10270 esac
10271 if test "$_lt_dar_can_shared" = "yes"; then
10272 output_verbose_link_cmd=func_echo_all
10273 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10274 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10275 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}"
10276 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}"
10278 else
10279 ld_shlibs=no
10284 dgux*)
10285 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10286 hardcode_libdir_flag_spec='-L$libdir'
10287 hardcode_shlibpath_var=no
10290 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10291 # support. Future versions do this automatically, but an explicit c++rt0.o
10292 # does not break anything, and helps significantly (at the cost of a little
10293 # extra space).
10294 freebsd2.2*)
10295 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10296 hardcode_libdir_flag_spec='-R$libdir'
10297 hardcode_direct=yes
10298 hardcode_shlibpath_var=no
10301 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10302 freebsd2.*)
10303 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10304 hardcode_direct=yes
10305 hardcode_minus_L=yes
10306 hardcode_shlibpath_var=no
10309 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10310 freebsd* | dragonfly*)
10311 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10312 hardcode_libdir_flag_spec='-R$libdir'
10313 hardcode_direct=yes
10314 hardcode_shlibpath_var=no
10317 hpux9*)
10318 if test "$GCC" = yes; then
10319 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'
10320 else
10321 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'
10323 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10324 hardcode_libdir_separator=:
10325 hardcode_direct=yes
10327 # hardcode_minus_L: Not really in the search PATH,
10328 # but as the default location of the library.
10329 hardcode_minus_L=yes
10330 export_dynamic_flag_spec='${wl}-E'
10333 hpux10*)
10334 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10335 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10336 else
10337 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10339 if test "$with_gnu_ld" = no; then
10340 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10341 hardcode_libdir_flag_spec_ld='+b $libdir'
10342 hardcode_libdir_separator=:
10343 hardcode_direct=yes
10344 hardcode_direct_absolute=yes
10345 export_dynamic_flag_spec='${wl}-E'
10346 # hardcode_minus_L: Not really in the search PATH,
10347 # but as the default location of the library.
10348 hardcode_minus_L=yes
10352 hpux11*)
10353 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10354 case $host_cpu in
10355 hppa*64*)
10356 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10358 ia64*)
10359 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10362 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10364 esac
10365 else
10366 case $host_cpu in
10367 hppa*64*)
10368 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10370 ia64*)
10371 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10375 # Older versions of the 11.00 compiler do not understand -b yet
10376 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10378 $as_echo_n "checking if $CC understands -b... " >&6; }
10379 if ${lt_cv_prog_compiler__b+:} false; then :
10380 $as_echo_n "(cached) " >&6
10381 else
10382 lt_cv_prog_compiler__b=no
10383 save_LDFLAGS="$LDFLAGS"
10384 LDFLAGS="$LDFLAGS -b"
10385 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10386 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10387 # The linker can only warn and ignore the option if not recognized
10388 # So say no if there are warnings
10389 if test -s conftest.err; then
10390 # Append any errors to the config.log.
10391 cat conftest.err 1>&5
10392 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10393 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10394 if diff conftest.exp conftest.er2 >/dev/null; then
10395 lt_cv_prog_compiler__b=yes
10397 else
10398 lt_cv_prog_compiler__b=yes
10401 $RM -r conftest*
10402 LDFLAGS="$save_LDFLAGS"
10405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10406 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10408 if test x"$lt_cv_prog_compiler__b" = xyes; then
10409 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10410 else
10411 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10415 esac
10417 if test "$with_gnu_ld" = no; then
10418 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10419 hardcode_libdir_separator=:
10421 case $host_cpu in
10422 hppa*64*|ia64*)
10423 hardcode_direct=no
10424 hardcode_shlibpath_var=no
10427 hardcode_direct=yes
10428 hardcode_direct_absolute=yes
10429 export_dynamic_flag_spec='${wl}-E'
10431 # hardcode_minus_L: Not really in the search PATH,
10432 # but as the default location of the library.
10433 hardcode_minus_L=yes
10435 esac
10439 irix5* | irix6* | nonstopux*)
10440 if test "$GCC" = yes; then
10441 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'
10442 # Try to use the -exported_symbol ld option, if it does not
10443 # work, assume that -exports_file does not work either and
10444 # implicitly export all symbols.
10445 save_LDFLAGS="$LDFLAGS"
10446 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10448 /* end confdefs.h. */
10449 int foo(void) {}
10450 _ACEOF
10451 if ac_fn_c_try_link "$LINENO"; then :
10452 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'
10455 rm -f core conftest.err conftest.$ac_objext \
10456 conftest$ac_exeext conftest.$ac_ext
10457 LDFLAGS="$save_LDFLAGS"
10458 else
10459 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'
10460 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'
10462 archive_cmds_need_lc='no'
10463 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10464 hardcode_libdir_separator=:
10465 inherit_rpath=yes
10466 link_all_deplibs=yes
10469 netbsd*)
10470 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10471 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10472 else
10473 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10475 hardcode_libdir_flag_spec='-R$libdir'
10476 hardcode_direct=yes
10477 hardcode_shlibpath_var=no
10480 newsos6)
10481 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10482 hardcode_direct=yes
10483 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10484 hardcode_libdir_separator=:
10485 hardcode_shlibpath_var=no
10488 *nto* | *qnx*)
10491 openbsd*)
10492 if test -f /usr/libexec/ld.so; then
10493 hardcode_direct=yes
10494 hardcode_shlibpath_var=no
10495 hardcode_direct_absolute=yes
10496 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10497 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10498 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10499 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10500 export_dynamic_flag_spec='${wl}-E'
10501 else
10502 case $host_os in
10503 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10504 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10505 hardcode_libdir_flag_spec='-R$libdir'
10508 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10509 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10511 esac
10513 else
10514 ld_shlibs=no
10518 os2*)
10519 hardcode_libdir_flag_spec='-L$libdir'
10520 hardcode_minus_L=yes
10521 allow_undefined_flag=unsupported
10522 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'
10523 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10526 osf3*)
10527 if test "$GCC" = yes; then
10528 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10529 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'
10530 else
10531 allow_undefined_flag=' -expect_unresolved \*'
10532 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'
10534 archive_cmds_need_lc='no'
10535 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10536 hardcode_libdir_separator=:
10539 osf4* | osf5*) # as osf3* with the addition of -msym flag
10540 if test "$GCC" = yes; then
10541 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10542 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'
10543 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10544 else
10545 allow_undefined_flag=' -expect_unresolved \*'
10546 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'
10547 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~
10548 $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'
10550 # Both c and cxx compiler support -rpath directly
10551 hardcode_libdir_flag_spec='-rpath $libdir'
10553 archive_cmds_need_lc='no'
10554 hardcode_libdir_separator=:
10557 solaris*)
10558 no_undefined_flag=' -z defs'
10559 if test "$GCC" = yes; then
10560 wlarc='${wl}'
10561 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10562 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10563 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10564 else
10565 case `$CC -V 2>&1` in
10566 *"Compilers 5.0"*)
10567 wlarc=''
10568 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10569 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10570 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10573 wlarc='${wl}'
10574 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10575 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10576 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10578 esac
10580 hardcode_libdir_flag_spec='-R$libdir'
10581 hardcode_shlibpath_var=no
10582 case $host_os in
10583 solaris2.[0-5] | solaris2.[0-5].*) ;;
10585 # The compiler driver will combine and reorder linker options,
10586 # but understands `-z linker_flag'. GCC discards it without `$wl',
10587 # but is careful enough not to reorder.
10588 # Supported since Solaris 2.6 (maybe 2.5.1?)
10589 if test "$GCC" = yes; then
10590 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10591 else
10592 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10595 esac
10596 link_all_deplibs=yes
10599 sunos4*)
10600 if test "x$host_vendor" = xsequent; then
10601 # Use $CC to link under sequent, because it throws in some extra .o
10602 # files that make .init and .fini sections work.
10603 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10604 else
10605 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10607 hardcode_libdir_flag_spec='-L$libdir'
10608 hardcode_direct=yes
10609 hardcode_minus_L=yes
10610 hardcode_shlibpath_var=no
10613 sysv4)
10614 case $host_vendor in
10615 sni)
10616 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10617 hardcode_direct=yes # is this really true???
10619 siemens)
10620 ## LD is ld it makes a PLAMLIB
10621 ## CC just makes a GrossModule.
10622 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10623 reload_cmds='$CC -r -o $output$reload_objs'
10624 hardcode_direct=no
10626 motorola)
10627 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10628 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10630 esac
10631 runpath_var='LD_RUN_PATH'
10632 hardcode_shlibpath_var=no
10635 sysv4.3*)
10636 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10637 hardcode_shlibpath_var=no
10638 export_dynamic_flag_spec='-Bexport'
10641 sysv4*MP*)
10642 if test -d /usr/nec; then
10643 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10644 hardcode_shlibpath_var=no
10645 runpath_var=LD_RUN_PATH
10646 hardcode_runpath_var=yes
10647 ld_shlibs=yes
10651 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10652 no_undefined_flag='${wl}-z,text'
10653 archive_cmds_need_lc=no
10654 hardcode_shlibpath_var=no
10655 runpath_var='LD_RUN_PATH'
10657 if test "$GCC" = yes; then
10658 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10659 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10660 else
10661 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10662 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10666 sysv5* | sco3.2v5* | sco5v6*)
10667 # Note: We can NOT use -z defs as we might desire, because we do not
10668 # link with -lc, and that would cause any symbols used from libc to
10669 # always be unresolved, which means just about no library would
10670 # ever link correctly. If we're not using GNU ld we use -z text
10671 # though, which does catch some bad symbols but isn't as heavy-handed
10672 # as -z defs.
10673 no_undefined_flag='${wl}-z,text'
10674 allow_undefined_flag='${wl}-z,nodefs'
10675 archive_cmds_need_lc=no
10676 hardcode_shlibpath_var=no
10677 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10678 hardcode_libdir_separator=':'
10679 link_all_deplibs=yes
10680 export_dynamic_flag_spec='${wl}-Bexport'
10681 runpath_var='LD_RUN_PATH'
10683 if test "$GCC" = yes; then
10684 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10685 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10686 else
10687 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10688 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10692 uts4*)
10693 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10694 hardcode_libdir_flag_spec='-L$libdir'
10695 hardcode_shlibpath_var=no
10699 ld_shlibs=no
10701 esac
10703 if test x$host_vendor = xsni; then
10704 case $host in
10705 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10706 export_dynamic_flag_spec='${wl}-Blargedynsym'
10708 esac
10712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10713 $as_echo "$ld_shlibs" >&6; }
10714 test "$ld_shlibs" = no && can_build_shared=no
10716 with_gnu_ld=$with_gnu_ld
10733 # Do we need to explicitly link libc?
10735 case "x$archive_cmds_need_lc" in
10736 x|xyes)
10737 # Assume -lc should be added
10738 archive_cmds_need_lc=yes
10740 if test "$enable_shared" = yes && test "$GCC" = yes; then
10741 case $archive_cmds in
10742 *'~'*)
10743 # FIXME: we may have to deal with multi-command sequences.
10745 '$CC '*)
10746 # Test whether the compiler implicitly links with -lc since on some
10747 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10748 # to ld, don't add -lc before -lgcc.
10749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10750 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10751 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10752 $as_echo_n "(cached) " >&6
10753 else
10754 $RM conftest*
10755 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10757 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10758 (eval $ac_compile) 2>&5
10759 ac_status=$?
10760 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10761 test $ac_status = 0; } 2>conftest.err; then
10762 soname=conftest
10763 lib=conftest
10764 libobjs=conftest.$ac_objext
10765 deplibs=
10766 wl=$lt_prog_compiler_wl
10767 pic_flag=$lt_prog_compiler_pic
10768 compiler_flags=-v
10769 linker_flags=-v
10770 verstring=
10771 output_objdir=.
10772 libname=conftest
10773 lt_save_allow_undefined_flag=$allow_undefined_flag
10774 allow_undefined_flag=
10775 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10776 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10777 ac_status=$?
10778 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10779 test $ac_status = 0; }
10780 then
10781 lt_cv_archive_cmds_need_lc=no
10782 else
10783 lt_cv_archive_cmds_need_lc=yes
10785 allow_undefined_flag=$lt_save_allow_undefined_flag
10786 else
10787 cat conftest.err 1>&5
10789 $RM conftest*
10792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10793 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10794 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10796 esac
10799 esac
10957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10958 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10960 if test "$GCC" = yes; then
10961 case $host_os in
10962 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10963 *) lt_awk_arg="/^libraries:/" ;;
10964 esac
10965 case $host_os in
10966 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10967 *) lt_sed_strip_eq="s,=/,/,g" ;;
10968 esac
10969 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10970 case $lt_search_path_spec in
10971 *\;*)
10972 # if the path contains ";" then we assume it to be the separator
10973 # otherwise default to the standard path separator (i.e. ":") - it is
10974 # assumed that no part of a normal pathname contains ";" but that should
10975 # okay in the real world where ";" in dirpaths is itself problematic.
10976 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10979 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10981 esac
10982 # Ok, now we have the path, separated by spaces, we can step through it
10983 # and add multilib dir if necessary.
10984 lt_tmp_lt_search_path_spec=
10985 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10986 for lt_sys_path in $lt_search_path_spec; do
10987 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10988 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10989 else
10990 test -d "$lt_sys_path" && \
10991 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10993 done
10994 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10995 BEGIN {RS=" "; FS="/|\n";} {
10996 lt_foo="";
10997 lt_count=0;
10998 for (lt_i = NF; lt_i > 0; lt_i--) {
10999 if ($lt_i != "" && $lt_i != ".") {
11000 if ($lt_i == "..") {
11001 lt_count++;
11002 } else {
11003 if (lt_count == 0) {
11004 lt_foo="/" $lt_i lt_foo;
11005 } else {
11006 lt_count--;
11011 if (lt_foo != "") { lt_freq[lt_foo]++; }
11012 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11014 # AWK program above erroneously prepends '/' to C:/dos/paths
11015 # for these hosts.
11016 case $host_os in
11017 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11018 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11019 esac
11020 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11021 else
11022 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11024 library_names_spec=
11025 libname_spec='lib$name'
11026 soname_spec=
11027 shrext_cmds=".so"
11028 postinstall_cmds=
11029 postuninstall_cmds=
11030 finish_cmds=
11031 finish_eval=
11032 shlibpath_var=
11033 shlibpath_overrides_runpath=unknown
11034 version_type=none
11035 dynamic_linker="$host_os ld.so"
11036 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11037 need_lib_prefix=unknown
11038 hardcode_into_libs=no
11040 # when you set need_version to no, make sure it does not cause -set_version
11041 # flags to be left without arguments
11042 need_version=unknown
11044 case $host_os in
11045 aix3*)
11046 version_type=linux
11047 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11048 shlibpath_var=LIBPATH
11050 # AIX 3 has no versioning support, so we append a major version to the name.
11051 soname_spec='${libname}${release}${shared_ext}$major'
11054 aix[4-9]*)
11055 version_type=linux
11056 need_lib_prefix=no
11057 need_version=no
11058 hardcode_into_libs=yes
11059 if test "$host_cpu" = ia64; then
11060 # AIX 5 supports IA64
11061 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11062 shlibpath_var=LD_LIBRARY_PATH
11063 else
11064 # With GCC up to 2.95.x, collect2 would create an import file
11065 # for dependence libraries. The import file would start with
11066 # the line `#! .'. This would cause the generated library to
11067 # depend on `.', always an invalid library. This was fixed in
11068 # development snapshots of GCC prior to 3.0.
11069 case $host_os in
11070 aix4 | aix4.[01] | aix4.[01].*)
11071 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11072 echo ' yes '
11073 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11075 else
11076 can_build_shared=no
11079 esac
11080 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11081 # soname into executable. Probably we can add versioning support to
11082 # collect2, so additional links can be useful in future.
11083 if test "$aix_use_runtimelinking" = yes; then
11084 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11085 # instead of lib<name>.a to let people know that these are not
11086 # typical AIX shared libraries.
11087 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11088 else
11089 # We preserve .a as extension for shared libraries through AIX4.2
11090 # and later when we are not doing run time linking.
11091 library_names_spec='${libname}${release}.a $libname.a'
11092 soname_spec='${libname}${release}${shared_ext}$major'
11094 shlibpath_var=LIBPATH
11098 amigaos*)
11099 case $host_cpu in
11100 powerpc)
11101 # Since July 2007 AmigaOS4 officially supports .so libraries.
11102 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11103 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11105 m68k)
11106 library_names_spec='$libname.ixlibrary $libname.a'
11107 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11108 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'
11110 esac
11113 beos*)
11114 library_names_spec='${libname}${shared_ext}'
11115 dynamic_linker="$host_os ld.so"
11116 shlibpath_var=LIBRARY_PATH
11119 bsdi[45]*)
11120 version_type=linux
11121 need_version=no
11122 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11123 soname_spec='${libname}${release}${shared_ext}$major'
11124 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11125 shlibpath_var=LD_LIBRARY_PATH
11126 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11127 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11128 # the default ld.so.conf also contains /usr/contrib/lib and
11129 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11130 # libtool to hard-code these into programs
11133 cygwin* | mingw* | pw32* | cegcc*)
11134 version_type=windows
11135 shrext_cmds=".dll"
11136 need_version=no
11137 need_lib_prefix=no
11139 case $GCC,$host_os in
11140 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11141 library_names_spec='$libname.dll.a'
11142 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11143 postinstall_cmds='base_file=`basename \${file}`~
11144 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11145 dldir=$destdir/`dirname \$dlpath`~
11146 test -d \$dldir || mkdir -p \$dldir~
11147 $install_prog $dir/$dlname \$dldir/$dlname~
11148 chmod a+x \$dldir/$dlname~
11149 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11150 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11152 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11153 dlpath=$dir/\$dldll~
11154 $RM \$dlpath'
11155 shlibpath_overrides_runpath=yes
11157 case $host_os in
11158 cygwin*)
11159 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11160 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11162 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11164 mingw* | cegcc*)
11165 # MinGW DLLs use traditional 'lib' prefix
11166 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11168 pw32*)
11169 # pw32 DLLs use 'pw' prefix rather than 'lib'
11170 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11172 esac
11176 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11178 esac
11179 dynamic_linker='Win32 ld.exe'
11180 # FIXME: first we should search . and the directory the executable is in
11181 shlibpath_var=PATH
11184 darwin* | rhapsody*)
11185 dynamic_linker="$host_os dyld"
11186 version_type=darwin
11187 need_lib_prefix=no
11188 need_version=no
11189 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11190 soname_spec='${libname}${release}${major}$shared_ext'
11191 shlibpath_overrides_runpath=yes
11192 shlibpath_var=DYLD_LIBRARY_PATH
11193 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11195 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11196 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11199 dgux*)
11200 version_type=linux
11201 need_lib_prefix=no
11202 need_version=no
11203 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11204 soname_spec='${libname}${release}${shared_ext}$major'
11205 shlibpath_var=LD_LIBRARY_PATH
11208 freebsd* | dragonfly*)
11209 # DragonFly does not have aout. When/if they implement a new
11210 # versioning mechanism, adjust this.
11211 if test -x /usr/bin/objformat; then
11212 objformat=`/usr/bin/objformat`
11213 else
11214 case $host_os in
11215 freebsd[23].*) objformat=aout ;;
11216 *) objformat=elf ;;
11217 esac
11219 version_type=freebsd-$objformat
11220 case $version_type in
11221 freebsd-elf*)
11222 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11223 need_version=no
11224 need_lib_prefix=no
11226 freebsd-*)
11227 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11228 need_version=yes
11230 esac
11231 shlibpath_var=LD_LIBRARY_PATH
11232 case $host_os in
11233 freebsd2.*)
11234 shlibpath_overrides_runpath=yes
11236 freebsd3.[01]* | freebsdelf3.[01]*)
11237 shlibpath_overrides_runpath=yes
11238 hardcode_into_libs=yes
11240 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11241 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11242 shlibpath_overrides_runpath=no
11243 hardcode_into_libs=yes
11245 *) # from 4.6 on, and DragonFly
11246 shlibpath_overrides_runpath=yes
11247 hardcode_into_libs=yes
11249 esac
11252 haiku*)
11253 version_type=linux
11254 need_lib_prefix=no
11255 need_version=no
11256 dynamic_linker="$host_os runtime_loader"
11257 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11258 soname_spec='${libname}${release}${shared_ext}$major'
11259 shlibpath_var=LIBRARY_PATH
11260 shlibpath_overrides_runpath=yes
11261 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11262 hardcode_into_libs=yes
11265 hpux9* | hpux10* | hpux11*)
11266 # Give a soname corresponding to the major version so that dld.sl refuses to
11267 # link against other versions.
11268 version_type=sunos
11269 need_lib_prefix=no
11270 need_version=no
11271 case $host_cpu in
11272 ia64*)
11273 shrext_cmds='.so'
11274 hardcode_into_libs=yes
11275 dynamic_linker="$host_os dld.so"
11276 shlibpath_var=LD_LIBRARY_PATH
11277 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11278 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11279 soname_spec='${libname}${release}${shared_ext}$major'
11280 if test "X$HPUX_IA64_MODE" = X32; then
11281 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11282 else
11283 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11285 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11287 hppa*64*)
11288 shrext_cmds='.sl'
11289 hardcode_into_libs=yes
11290 dynamic_linker="$host_os dld.sl"
11291 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11292 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11293 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11294 soname_spec='${libname}${release}${shared_ext}$major'
11295 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11296 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11299 shrext_cmds='.sl'
11300 dynamic_linker="$host_os dld.sl"
11301 shlibpath_var=SHLIB_PATH
11302 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11303 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11304 soname_spec='${libname}${release}${shared_ext}$major'
11306 esac
11307 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11308 postinstall_cmds='chmod 555 $lib'
11309 # or fails outright, so override atomically:
11310 install_override_mode=555
11313 interix[3-9]*)
11314 version_type=linux
11315 need_lib_prefix=no
11316 need_version=no
11317 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11318 soname_spec='${libname}${release}${shared_ext}$major'
11319 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11320 shlibpath_var=LD_LIBRARY_PATH
11321 shlibpath_overrides_runpath=no
11322 hardcode_into_libs=yes
11325 irix5* | irix6* | nonstopux*)
11326 case $host_os in
11327 nonstopux*) version_type=nonstopux ;;
11329 if test "$lt_cv_prog_gnu_ld" = yes; then
11330 version_type=linux
11331 else
11332 version_type=irix
11333 fi ;;
11334 esac
11335 need_lib_prefix=no
11336 need_version=no
11337 soname_spec='${libname}${release}${shared_ext}$major'
11338 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11339 case $host_os in
11340 irix5* | nonstopux*)
11341 libsuff= shlibsuff=
11344 case $LD in # libtool.m4 will add one of these switches to LD
11345 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11346 libsuff= shlibsuff= libmagic=32-bit;;
11347 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11348 libsuff=32 shlibsuff=N32 libmagic=N32;;
11349 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11350 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11351 *) libsuff= shlibsuff= libmagic=never-match;;
11352 esac
11354 esac
11355 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11356 shlibpath_overrides_runpath=no
11357 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11358 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11359 hardcode_into_libs=yes
11362 # No shared lib support for Linux oldld, aout, or coff.
11363 linux*oldld* | linux*aout* | linux*coff*)
11364 dynamic_linker=no
11367 # This must be Linux ELF.
11369 # uclinux* changes (here and below) have been submitted to the libtool
11370 # project, but have not yet been accepted: they are GCC-local changes
11371 # for the time being. (See
11372 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
11373 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi)
11374 version_type=linux
11375 need_lib_prefix=no
11376 need_version=no
11377 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11378 soname_spec='${libname}${release}${shared_ext}$major'
11379 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11380 shlibpath_var=LD_LIBRARY_PATH
11381 shlibpath_overrides_runpath=no
11383 # Some binutils ld are patched to set DT_RUNPATH
11384 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11385 $as_echo_n "(cached) " >&6
11386 else
11387 lt_cv_shlibpath_overrides_runpath=no
11388 save_LDFLAGS=$LDFLAGS
11389 save_libdir=$libdir
11390 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11391 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11393 /* end confdefs.h. */
11396 main ()
11400 return 0;
11402 _ACEOF
11403 if ac_fn_c_try_link "$LINENO"; then :
11404 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11405 lt_cv_shlibpath_overrides_runpath=yes
11408 rm -f core conftest.err conftest.$ac_objext \
11409 conftest$ac_exeext conftest.$ac_ext
11410 LDFLAGS=$save_LDFLAGS
11411 libdir=$save_libdir
11415 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11417 # This implies no fast_install, which is unacceptable.
11418 # Some rework will be needed to allow for fast_install
11419 # before this can be enabled.
11420 hardcode_into_libs=yes
11422 # Append ld.so.conf contents to the search path
11423 if test -f /etc/ld.so.conf; then
11424 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' ' '`
11425 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11428 # We used to test for /lib/ld.so.1 and disable shared libraries on
11429 # powerpc, because MkLinux only supported shared libraries with the
11430 # GNU dynamic linker. Since this was broken with cross compilers,
11431 # most powerpc-linux boxes support dynamic linking these days and
11432 # people can always --disable-shared, the test was removed, and we
11433 # assume the GNU/Linux dynamic linker is in use.
11434 dynamic_linker='GNU/Linux ld.so'
11437 netbsd*)
11438 version_type=sunos
11439 need_lib_prefix=no
11440 need_version=no
11441 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11442 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11443 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11444 dynamic_linker='NetBSD (a.out) ld.so'
11445 else
11446 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11447 soname_spec='${libname}${release}${shared_ext}$major'
11448 dynamic_linker='NetBSD ld.elf_so'
11450 shlibpath_var=LD_LIBRARY_PATH
11451 shlibpath_overrides_runpath=yes
11452 hardcode_into_libs=yes
11455 newsos6)
11456 version_type=linux
11457 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11458 shlibpath_var=LD_LIBRARY_PATH
11459 shlibpath_overrides_runpath=yes
11462 *nto* | *qnx*)
11463 version_type=qnx
11464 need_lib_prefix=no
11465 need_version=no
11466 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11467 soname_spec='${libname}${release}${shared_ext}$major'
11468 shlibpath_var=LD_LIBRARY_PATH
11469 shlibpath_overrides_runpath=no
11470 hardcode_into_libs=yes
11471 dynamic_linker='ldqnx.so'
11474 openbsd*)
11475 version_type=sunos
11476 sys_lib_dlsearch_path_spec="/usr/lib"
11477 need_lib_prefix=no
11478 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11479 case $host_os in
11480 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11481 *) need_version=no ;;
11482 esac
11483 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11484 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11485 shlibpath_var=LD_LIBRARY_PATH
11486 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11487 case $host_os in
11488 openbsd2.[89] | openbsd2.[89].*)
11489 shlibpath_overrides_runpath=no
11492 shlibpath_overrides_runpath=yes
11494 esac
11495 else
11496 shlibpath_overrides_runpath=yes
11500 os2*)
11501 libname_spec='$name'
11502 shrext_cmds=".dll"
11503 need_lib_prefix=no
11504 library_names_spec='$libname${shared_ext} $libname.a'
11505 dynamic_linker='OS/2 ld.exe'
11506 shlibpath_var=LIBPATH
11509 osf3* | osf4* | osf5*)
11510 version_type=osf
11511 need_lib_prefix=no
11512 need_version=no
11513 soname_spec='${libname}${release}${shared_ext}$major'
11514 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11515 shlibpath_var=LD_LIBRARY_PATH
11516 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11517 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11520 rdos*)
11521 dynamic_linker=no
11524 solaris*)
11525 version_type=linux
11526 need_lib_prefix=no
11527 need_version=no
11528 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11529 soname_spec='${libname}${release}${shared_ext}$major'
11530 shlibpath_var=LD_LIBRARY_PATH
11531 shlibpath_overrides_runpath=yes
11532 hardcode_into_libs=yes
11533 # ldd complains unless libraries are executable
11534 postinstall_cmds='chmod +x $lib'
11537 sunos4*)
11538 version_type=sunos
11539 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11540 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11541 shlibpath_var=LD_LIBRARY_PATH
11542 shlibpath_overrides_runpath=yes
11543 if test "$with_gnu_ld" = yes; then
11544 need_lib_prefix=no
11546 need_version=yes
11549 sysv4 | sysv4.3*)
11550 version_type=linux
11551 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11552 soname_spec='${libname}${release}${shared_ext}$major'
11553 shlibpath_var=LD_LIBRARY_PATH
11554 case $host_vendor in
11555 sni)
11556 shlibpath_overrides_runpath=no
11557 need_lib_prefix=no
11558 runpath_var=LD_RUN_PATH
11560 siemens)
11561 need_lib_prefix=no
11563 motorola)
11564 need_lib_prefix=no
11565 need_version=no
11566 shlibpath_overrides_runpath=no
11567 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11569 esac
11572 sysv4*MP*)
11573 if test -d /usr/nec ;then
11574 version_type=linux
11575 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11576 soname_spec='$libname${shared_ext}.$major'
11577 shlibpath_var=LD_LIBRARY_PATH
11581 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11582 version_type=freebsd-elf
11583 need_lib_prefix=no
11584 need_version=no
11585 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11586 soname_spec='${libname}${release}${shared_ext}$major'
11587 shlibpath_var=LD_LIBRARY_PATH
11588 shlibpath_overrides_runpath=yes
11589 hardcode_into_libs=yes
11590 if test "$with_gnu_ld" = yes; then
11591 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11592 else
11593 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11594 case $host_os in
11595 sco3.2v5*)
11596 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11598 esac
11600 sys_lib_dlsearch_path_spec='/usr/lib'
11603 tpf*)
11604 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11605 version_type=linux
11606 need_lib_prefix=no
11607 need_version=no
11608 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11609 shlibpath_var=LD_LIBRARY_PATH
11610 shlibpath_overrides_runpath=no
11611 hardcode_into_libs=yes
11614 uts4*)
11615 version_type=linux
11616 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11617 soname_spec='${libname}${release}${shared_ext}$major'
11618 shlibpath_var=LD_LIBRARY_PATH
11621 # Shared libraries for VwWorks, >= 7 only at this stage
11622 # and (fpic) still incompatible with "large" code models
11623 # in a few configurations. Only for RTP mode in any case,
11624 # and upon explicit request at configure time.
11625 vxworks7*)
11626 dynamic_linker=no
11627 case ${with_multisubdir}-${enable_shared} in
11628 *large*)
11630 *mrtp*-yes)
11631 version_type=linux
11632 need_lib_prefix=no
11633 need_version=no
11634 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11635 soname_spec='${libname}${release}${shared_ext}$major'
11636 dynamic_linker="$host_os module_loader"
11638 esac
11641 dynamic_linker=no
11643 esac
11644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11645 $as_echo "$dynamic_linker" >&6; }
11646 test "$dynamic_linker" = no && can_build_shared=no
11648 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11649 if test "$GCC" = yes; then
11650 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11653 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11654 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11656 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11657 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11752 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11753 hardcode_action=
11754 if test -n "$hardcode_libdir_flag_spec" ||
11755 test -n "$runpath_var" ||
11756 test "X$hardcode_automatic" = "Xyes" ; then
11758 # We can hardcode non-existent directories.
11759 if test "$hardcode_direct" != no &&
11760 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11761 # have to relink, otherwise we might link with an installed library
11762 # when we should be linking with a yet-to-be-installed one
11763 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11764 test "$hardcode_minus_L" != no; then
11765 # Linking always hardcodes the temporary library directory.
11766 hardcode_action=relink
11767 else
11768 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11769 hardcode_action=immediate
11771 else
11772 # We cannot hardcode anything, or else we can only hardcode existing
11773 # directories.
11774 hardcode_action=unsupported
11776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11777 $as_echo "$hardcode_action" >&6; }
11779 if test "$hardcode_action" = relink ||
11780 test "$inherit_rpath" = yes; then
11781 # Fast installation is not supported
11782 enable_fast_install=no
11783 elif test "$shlibpath_overrides_runpath" = yes ||
11784 test "$enable_shared" = no; then
11785 # Fast installation is not necessary
11786 enable_fast_install=needless
11794 if test "x$enable_dlopen" != xyes; then
11795 enable_dlopen=unknown
11796 enable_dlopen_self=unknown
11797 enable_dlopen_self_static=unknown
11798 else
11799 lt_cv_dlopen=no
11800 lt_cv_dlopen_libs=
11802 case $host_os in
11803 beos*)
11804 lt_cv_dlopen="load_add_on"
11805 lt_cv_dlopen_libs=
11806 lt_cv_dlopen_self=yes
11809 mingw* | pw32* | cegcc*)
11810 lt_cv_dlopen="LoadLibrary"
11811 lt_cv_dlopen_libs=
11814 cygwin*)
11815 lt_cv_dlopen="dlopen"
11816 lt_cv_dlopen_libs=
11819 darwin*)
11820 # if libdl is installed we need to link against it
11821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11822 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11823 if ${ac_cv_lib_dl_dlopen+:} false; then :
11824 $as_echo_n "(cached) " >&6
11825 else
11826 ac_check_lib_save_LIBS=$LIBS
11827 LIBS="-ldl $LIBS"
11828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11829 /* end confdefs.h. */
11831 /* Override any GCC internal prototype to avoid an error.
11832 Use char because int might match the return type of a GCC
11833 builtin and then its argument prototype would still apply. */
11834 #ifdef __cplusplus
11835 extern "C"
11836 #endif
11837 char dlopen ();
11839 main ()
11841 return dlopen ();
11843 return 0;
11845 _ACEOF
11846 if ac_fn_c_try_link "$LINENO"; then :
11847 ac_cv_lib_dl_dlopen=yes
11848 else
11849 ac_cv_lib_dl_dlopen=no
11851 rm -f core conftest.err conftest.$ac_objext \
11852 conftest$ac_exeext conftest.$ac_ext
11853 LIBS=$ac_check_lib_save_LIBS
11855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11856 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11857 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11858 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11859 else
11861 lt_cv_dlopen="dyld"
11862 lt_cv_dlopen_libs=
11863 lt_cv_dlopen_self=yes
11870 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11871 if test "x$ac_cv_func_shl_load" = xyes; then :
11872 lt_cv_dlopen="shl_load"
11873 else
11874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11875 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11876 if ${ac_cv_lib_dld_shl_load+:} false; then :
11877 $as_echo_n "(cached) " >&6
11878 else
11879 ac_check_lib_save_LIBS=$LIBS
11880 LIBS="-ldld $LIBS"
11881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11882 /* end confdefs.h. */
11884 /* Override any GCC internal prototype to avoid an error.
11885 Use char because int might match the return type of a GCC
11886 builtin and then its argument prototype would still apply. */
11887 #ifdef __cplusplus
11888 extern "C"
11889 #endif
11890 char shl_load ();
11892 main ()
11894 return shl_load ();
11896 return 0;
11898 _ACEOF
11899 if ac_fn_c_try_link "$LINENO"; then :
11900 ac_cv_lib_dld_shl_load=yes
11901 else
11902 ac_cv_lib_dld_shl_load=no
11904 rm -f core conftest.err conftest.$ac_objext \
11905 conftest$ac_exeext conftest.$ac_ext
11906 LIBS=$ac_check_lib_save_LIBS
11908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11909 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11910 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11911 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11912 else
11913 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11914 if test "x$ac_cv_func_dlopen" = xyes; then :
11915 lt_cv_dlopen="dlopen"
11916 else
11917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11918 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11919 if ${ac_cv_lib_dl_dlopen+:} false; then :
11920 $as_echo_n "(cached) " >&6
11921 else
11922 ac_check_lib_save_LIBS=$LIBS
11923 LIBS="-ldl $LIBS"
11924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11925 /* end confdefs.h. */
11927 /* Override any GCC internal prototype to avoid an error.
11928 Use char because int might match the return type of a GCC
11929 builtin and then its argument prototype would still apply. */
11930 #ifdef __cplusplus
11931 extern "C"
11932 #endif
11933 char dlopen ();
11935 main ()
11937 return dlopen ();
11939 return 0;
11941 _ACEOF
11942 if ac_fn_c_try_link "$LINENO"; then :
11943 ac_cv_lib_dl_dlopen=yes
11944 else
11945 ac_cv_lib_dl_dlopen=no
11947 rm -f core conftest.err conftest.$ac_objext \
11948 conftest$ac_exeext conftest.$ac_ext
11949 LIBS=$ac_check_lib_save_LIBS
11951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11952 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11953 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11954 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11955 else
11956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11957 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11958 if ${ac_cv_lib_svld_dlopen+:} false; then :
11959 $as_echo_n "(cached) " >&6
11960 else
11961 ac_check_lib_save_LIBS=$LIBS
11962 LIBS="-lsvld $LIBS"
11963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11964 /* end confdefs.h. */
11966 /* Override any GCC internal prototype to avoid an error.
11967 Use char because int might match the return type of a GCC
11968 builtin and then its argument prototype would still apply. */
11969 #ifdef __cplusplus
11970 extern "C"
11971 #endif
11972 char dlopen ();
11974 main ()
11976 return dlopen ();
11978 return 0;
11980 _ACEOF
11981 if ac_fn_c_try_link "$LINENO"; then :
11982 ac_cv_lib_svld_dlopen=yes
11983 else
11984 ac_cv_lib_svld_dlopen=no
11986 rm -f core conftest.err conftest.$ac_objext \
11987 conftest$ac_exeext conftest.$ac_ext
11988 LIBS=$ac_check_lib_save_LIBS
11990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11991 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11992 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11993 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11994 else
11995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11996 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11997 if ${ac_cv_lib_dld_dld_link+:} false; then :
11998 $as_echo_n "(cached) " >&6
11999 else
12000 ac_check_lib_save_LIBS=$LIBS
12001 LIBS="-ldld $LIBS"
12002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12003 /* end confdefs.h. */
12005 /* Override any GCC internal prototype to avoid an error.
12006 Use char because int might match the return type of a GCC
12007 builtin and then its argument prototype would still apply. */
12008 #ifdef __cplusplus
12009 extern "C"
12010 #endif
12011 char dld_link ();
12013 main ()
12015 return dld_link ();
12017 return 0;
12019 _ACEOF
12020 if ac_fn_c_try_link "$LINENO"; then :
12021 ac_cv_lib_dld_dld_link=yes
12022 else
12023 ac_cv_lib_dld_dld_link=no
12025 rm -f core conftest.err conftest.$ac_objext \
12026 conftest$ac_exeext conftest.$ac_ext
12027 LIBS=$ac_check_lib_save_LIBS
12029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12030 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12031 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12032 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12051 esac
12053 if test "x$lt_cv_dlopen" != xno; then
12054 enable_dlopen=yes
12055 else
12056 enable_dlopen=no
12059 case $lt_cv_dlopen in
12060 dlopen)
12061 save_CPPFLAGS="$CPPFLAGS"
12062 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12064 save_LDFLAGS="$LDFLAGS"
12065 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12067 save_LIBS="$LIBS"
12068 LIBS="$lt_cv_dlopen_libs $LIBS"
12070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12071 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12072 if ${lt_cv_dlopen_self+:} false; then :
12073 $as_echo_n "(cached) " >&6
12074 else
12075 if test "$cross_compiling" = yes; then :
12076 lt_cv_dlopen_self=cross
12077 else
12078 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12079 lt_status=$lt_dlunknown
12080 cat > conftest.$ac_ext <<_LT_EOF
12081 #line 12081 "configure"
12082 #include "confdefs.h"
12084 #if HAVE_DLFCN_H
12085 #include <dlfcn.h>
12086 #endif
12088 #include <stdio.h>
12090 #ifdef RTLD_GLOBAL
12091 # define LT_DLGLOBAL RTLD_GLOBAL
12092 #else
12093 # ifdef DL_GLOBAL
12094 # define LT_DLGLOBAL DL_GLOBAL
12095 # else
12096 # define LT_DLGLOBAL 0
12097 # endif
12098 #endif
12100 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12101 find out it does not work in some platform. */
12102 #ifndef LT_DLLAZY_OR_NOW
12103 # ifdef RTLD_LAZY
12104 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12105 # else
12106 # ifdef DL_LAZY
12107 # define LT_DLLAZY_OR_NOW DL_LAZY
12108 # else
12109 # ifdef RTLD_NOW
12110 # define LT_DLLAZY_OR_NOW RTLD_NOW
12111 # else
12112 # ifdef DL_NOW
12113 # define LT_DLLAZY_OR_NOW DL_NOW
12114 # else
12115 # define LT_DLLAZY_OR_NOW 0
12116 # endif
12117 # endif
12118 # endif
12119 # endif
12120 #endif
12122 /* When -fvisbility=hidden is used, assume the code has been annotated
12123 correspondingly for the symbols needed. */
12124 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12125 void fnord () __attribute__((visibility("default")));
12126 #endif
12128 void fnord () { int i=42; }
12129 int main ()
12131 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12132 int status = $lt_dlunknown;
12134 if (self)
12136 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12137 else
12139 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12140 else puts (dlerror ());
12142 /* dlclose (self); */
12144 else
12145 puts (dlerror ());
12147 return status;
12149 _LT_EOF
12150 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12151 (eval $ac_link) 2>&5
12152 ac_status=$?
12153 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12154 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12155 (./conftest; exit; ) >&5 2>/dev/null
12156 lt_status=$?
12157 case x$lt_status in
12158 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12159 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12160 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12161 esac
12162 else :
12163 # compilation failed
12164 lt_cv_dlopen_self=no
12167 rm -fr conftest*
12171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12172 $as_echo "$lt_cv_dlopen_self" >&6; }
12174 if test "x$lt_cv_dlopen_self" = xyes; then
12175 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12177 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12178 if ${lt_cv_dlopen_self_static+:} false; then :
12179 $as_echo_n "(cached) " >&6
12180 else
12181 if test "$cross_compiling" = yes; then :
12182 lt_cv_dlopen_self_static=cross
12183 else
12184 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12185 lt_status=$lt_dlunknown
12186 cat > conftest.$ac_ext <<_LT_EOF
12187 #line 12187 "configure"
12188 #include "confdefs.h"
12190 #if HAVE_DLFCN_H
12191 #include <dlfcn.h>
12192 #endif
12194 #include <stdio.h>
12196 #ifdef RTLD_GLOBAL
12197 # define LT_DLGLOBAL RTLD_GLOBAL
12198 #else
12199 # ifdef DL_GLOBAL
12200 # define LT_DLGLOBAL DL_GLOBAL
12201 # else
12202 # define LT_DLGLOBAL 0
12203 # endif
12204 #endif
12206 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12207 find out it does not work in some platform. */
12208 #ifndef LT_DLLAZY_OR_NOW
12209 # ifdef RTLD_LAZY
12210 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12211 # else
12212 # ifdef DL_LAZY
12213 # define LT_DLLAZY_OR_NOW DL_LAZY
12214 # else
12215 # ifdef RTLD_NOW
12216 # define LT_DLLAZY_OR_NOW RTLD_NOW
12217 # else
12218 # ifdef DL_NOW
12219 # define LT_DLLAZY_OR_NOW DL_NOW
12220 # else
12221 # define LT_DLLAZY_OR_NOW 0
12222 # endif
12223 # endif
12224 # endif
12225 # endif
12226 #endif
12228 /* When -fvisbility=hidden is used, assume the code has been annotated
12229 correspondingly for the symbols needed. */
12230 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12231 void fnord () __attribute__((visibility("default")));
12232 #endif
12234 void fnord () { int i=42; }
12235 int main ()
12237 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12238 int status = $lt_dlunknown;
12240 if (self)
12242 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12243 else
12245 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12246 else puts (dlerror ());
12248 /* dlclose (self); */
12250 else
12251 puts (dlerror ());
12253 return status;
12255 _LT_EOF
12256 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12257 (eval $ac_link) 2>&5
12258 ac_status=$?
12259 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12260 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12261 (./conftest; exit; ) >&5 2>/dev/null
12262 lt_status=$?
12263 case x$lt_status in
12264 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12265 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12266 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12267 esac
12268 else :
12269 # compilation failed
12270 lt_cv_dlopen_self_static=no
12273 rm -fr conftest*
12277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12278 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12281 CPPFLAGS="$save_CPPFLAGS"
12282 LDFLAGS="$save_LDFLAGS"
12283 LIBS="$save_LIBS"
12285 esac
12287 case $lt_cv_dlopen_self in
12288 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12289 *) enable_dlopen_self=unknown ;;
12290 esac
12292 case $lt_cv_dlopen_self_static in
12293 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12294 *) enable_dlopen_self_static=unknown ;;
12295 esac
12314 striplib=
12315 old_striplib=
12316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12317 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12318 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12319 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12320 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12322 $as_echo "yes" >&6; }
12323 else
12324 # FIXME - insert some real tests, host_os isn't really good enough
12325 case $host_os in
12326 darwin*)
12327 if test -n "$STRIP" ; then
12328 striplib="$STRIP -x"
12329 old_striplib="$STRIP -S"
12330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12331 $as_echo "yes" >&6; }
12332 else
12333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12334 $as_echo "no" >&6; }
12338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12339 $as_echo "no" >&6; }
12341 esac
12355 # Report which library types will actually be built
12356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12357 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12359 $as_echo "$can_build_shared" >&6; }
12361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12362 $as_echo_n "checking whether to build shared libraries... " >&6; }
12363 test "$can_build_shared" = "no" && enable_shared=no
12365 # On AIX, shared libraries and static libraries use the same namespace, and
12366 # are all built from PIC.
12367 case $host_os in
12368 aix3*)
12369 test "$enable_shared" = yes && enable_static=no
12370 if test -n "$RANLIB"; then
12371 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12372 postinstall_cmds='$RANLIB $lib'
12376 aix[4-9]*)
12377 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12378 test "$enable_shared" = yes && enable_static=no
12381 esac
12382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12383 $as_echo "$enable_shared" >&6; }
12385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12386 $as_echo_n "checking whether to build static libraries... " >&6; }
12387 # Make sure either enable_shared or enable_static is yes.
12388 test "$enable_shared" = yes || enable_static=yes
12389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12390 $as_echo "$enable_static" >&6; }
12396 ac_ext=c
12397 ac_cpp='$CPP $CPPFLAGS'
12398 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12399 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12400 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12402 CC="$lt_save_CC"
12404 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12405 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12406 (test "X$CXX" != "Xg++"))) ; then
12407 ac_ext=cpp
12408 ac_cpp='$CXXCPP $CPPFLAGS'
12409 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12410 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12411 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12413 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12414 if test -z "$CXXCPP"; then
12415 if ${ac_cv_prog_CXXCPP+:} false; then :
12416 $as_echo_n "(cached) " >&6
12417 else
12418 # Double quotes because CXXCPP needs to be expanded
12419 for CXXCPP in "$CXX -E" "/lib/cpp"
12421 ac_preproc_ok=false
12422 for ac_cxx_preproc_warn_flag in '' yes
12424 # Use a header file that comes with gcc, so configuring glibc
12425 # with a fresh cross-compiler works.
12426 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12427 # <limits.h> exists even on freestanding compilers.
12428 # On the NeXT, cc -E runs the code through the compiler's parser,
12429 # not just through cpp. "Syntax error" is here to catch this case.
12430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12431 /* end confdefs.h. */
12432 #ifdef __STDC__
12433 # include <limits.h>
12434 #else
12435 # include <assert.h>
12436 #endif
12437 Syntax error
12438 _ACEOF
12439 if ac_fn_cxx_try_cpp "$LINENO"; then :
12441 else
12442 # Broken: fails on valid input.
12443 continue
12445 rm -f conftest.err conftest.i conftest.$ac_ext
12447 # OK, works on sane cases. Now check whether nonexistent headers
12448 # can be detected and how.
12449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12450 /* end confdefs.h. */
12451 #include <ac_nonexistent.h>
12452 _ACEOF
12453 if ac_fn_cxx_try_cpp "$LINENO"; then :
12454 # Broken: success on invalid input.
12455 continue
12456 else
12457 # Passes both tests.
12458 ac_preproc_ok=:
12459 break
12461 rm -f conftest.err conftest.i conftest.$ac_ext
12463 done
12464 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12465 rm -f conftest.i conftest.err conftest.$ac_ext
12466 if $ac_preproc_ok; then :
12467 break
12470 done
12471 ac_cv_prog_CXXCPP=$CXXCPP
12474 CXXCPP=$ac_cv_prog_CXXCPP
12475 else
12476 ac_cv_prog_CXXCPP=$CXXCPP
12478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12479 $as_echo "$CXXCPP" >&6; }
12480 ac_preproc_ok=false
12481 for ac_cxx_preproc_warn_flag in '' yes
12483 # Use a header file that comes with gcc, so configuring glibc
12484 # with a fresh cross-compiler works.
12485 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12486 # <limits.h> exists even on freestanding compilers.
12487 # On the NeXT, cc -E runs the code through the compiler's parser,
12488 # not just through cpp. "Syntax error" is here to catch this case.
12489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12490 /* end confdefs.h. */
12491 #ifdef __STDC__
12492 # include <limits.h>
12493 #else
12494 # include <assert.h>
12495 #endif
12496 Syntax error
12497 _ACEOF
12498 if ac_fn_cxx_try_cpp "$LINENO"; then :
12500 else
12501 # Broken: fails on valid input.
12502 continue
12504 rm -f conftest.err conftest.i conftest.$ac_ext
12506 # OK, works on sane cases. Now check whether nonexistent headers
12507 # can be detected and how.
12508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12509 /* end confdefs.h. */
12510 #include <ac_nonexistent.h>
12511 _ACEOF
12512 if ac_fn_cxx_try_cpp "$LINENO"; then :
12513 # Broken: success on invalid input.
12514 continue
12515 else
12516 # Passes both tests.
12517 ac_preproc_ok=:
12518 break
12520 rm -f conftest.err conftest.i conftest.$ac_ext
12522 done
12523 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12524 rm -f conftest.i conftest.err conftest.$ac_ext
12525 if $ac_preproc_ok; then :
12527 else
12528 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12529 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12530 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
12531 See \`config.log' for more details" "$LINENO" 5; }
12534 ac_ext=c
12535 ac_cpp='$CPP $CPPFLAGS'
12536 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12537 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12538 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12540 else
12541 _lt_caught_CXX_error=yes
12544 ac_ext=cpp
12545 ac_cpp='$CXXCPP $CPPFLAGS'
12546 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12547 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12548 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12550 archive_cmds_need_lc_CXX=no
12551 allow_undefined_flag_CXX=
12552 always_export_symbols_CXX=no
12553 archive_expsym_cmds_CXX=
12554 compiler_needs_object_CXX=no
12555 export_dynamic_flag_spec_CXX=
12556 hardcode_direct_CXX=no
12557 hardcode_direct_absolute_CXX=no
12558 hardcode_libdir_flag_spec_CXX=
12559 hardcode_libdir_flag_spec_ld_CXX=
12560 hardcode_libdir_separator_CXX=
12561 hardcode_minus_L_CXX=no
12562 hardcode_shlibpath_var_CXX=unsupported
12563 hardcode_automatic_CXX=no
12564 inherit_rpath_CXX=no
12565 module_cmds_CXX=
12566 module_expsym_cmds_CXX=
12567 link_all_deplibs_CXX=unknown
12568 old_archive_cmds_CXX=$old_archive_cmds
12569 reload_flag_CXX=$reload_flag
12570 reload_cmds_CXX=$reload_cmds
12571 no_undefined_flag_CXX=
12572 whole_archive_flag_spec_CXX=
12573 enable_shared_with_static_runtimes_CXX=no
12575 # Source file extension for C++ test sources.
12576 ac_ext=cpp
12578 # Object file extension for compiled C++ test sources.
12579 objext=o
12580 objext_CXX=$objext
12582 # No sense in running all these tests if we already determined that
12583 # the CXX compiler isn't working. Some variables (like enable_shared)
12584 # are currently assumed to apply to all compilers on this platform,
12585 # and will be corrupted by setting them based on a non-working compiler.
12586 if test "$_lt_caught_CXX_error" != yes; then
12587 # Code to be used in simple compile tests
12588 lt_simple_compile_test_code="int some_variable = 0;"
12590 # Code to be used in simple link tests
12591 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12593 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12600 # If no C compiler was specified, use CC.
12601 LTCC=${LTCC-"$CC"}
12603 # If no C compiler flags were specified, use CFLAGS.
12604 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12606 # Allow CC to be a program name with arguments.
12607 compiler=$CC
12610 # save warnings/boilerplate of simple test code
12611 ac_outfile=conftest.$ac_objext
12612 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12613 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12614 _lt_compiler_boilerplate=`cat conftest.err`
12615 $RM conftest*
12617 ac_outfile=conftest.$ac_objext
12618 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12619 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12620 _lt_linker_boilerplate=`cat conftest.err`
12621 $RM -r conftest*
12624 # Allow CC to be a program name with arguments.
12625 lt_save_CC=$CC
12626 lt_save_LD=$LD
12627 lt_save_GCC=$GCC
12628 GCC=$GXX
12629 lt_save_with_gnu_ld=$with_gnu_ld
12630 lt_save_path_LD=$lt_cv_path_LD
12631 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12632 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12633 else
12634 $as_unset lt_cv_prog_gnu_ld
12636 if test -n "${lt_cv_path_LDCXX+set}"; then
12637 lt_cv_path_LD=$lt_cv_path_LDCXX
12638 else
12639 $as_unset lt_cv_path_LD
12641 test -z "${LDCXX+set}" || LD=$LDCXX
12642 CC=${CXX-"c++"}
12643 compiler=$CC
12644 compiler_CXX=$CC
12645 for cc_temp in $compiler""; do
12646 case $cc_temp in
12647 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12648 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12649 \-*) ;;
12650 *) break;;
12651 esac
12652 done
12653 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12656 if test -n "$compiler"; then
12657 # We don't want -fno-exception when compiling C++ code, so set the
12658 # no_builtin_flag separately
12659 if test "$GXX" = yes; then
12660 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12661 else
12662 lt_prog_compiler_no_builtin_flag_CXX=
12665 if test "$GXX" = yes; then
12666 # Set up default GNU C++ configuration
12670 # Check whether --with-gnu-ld was given.
12671 if test "${with_gnu_ld+set}" = set; then :
12672 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12673 else
12674 with_gnu_ld=no
12677 ac_prog=ld
12678 if test "$GCC" = yes; then
12679 # Check if gcc -print-prog-name=ld gives a path.
12680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12681 $as_echo_n "checking for ld used by $CC... " >&6; }
12682 case $host in
12683 *-*-mingw*)
12684 # gcc leaves a trailing carriage return which upsets mingw
12685 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12687 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12688 esac
12689 case $ac_prog in
12690 # Accept absolute paths.
12691 [\\/]* | ?:[\\/]*)
12692 re_direlt='/[^/][^/]*/\.\./'
12693 # Canonicalize the pathname of ld
12694 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12695 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12696 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12697 done
12698 test -z "$LD" && LD="$ac_prog"
12701 # If it fails, then pretend we aren't using GCC.
12702 ac_prog=ld
12705 # If it is relative, then search for the first ld in PATH.
12706 with_gnu_ld=unknown
12708 esac
12709 elif test "$with_gnu_ld" = yes; then
12710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12711 $as_echo_n "checking for GNU ld... " >&6; }
12712 else
12713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12714 $as_echo_n "checking for non-GNU ld... " >&6; }
12716 if ${lt_cv_path_LD+:} false; then :
12717 $as_echo_n "(cached) " >&6
12718 else
12719 if test -z "$LD"; then
12720 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12721 for ac_dir in $PATH; do
12722 IFS="$lt_save_ifs"
12723 test -z "$ac_dir" && ac_dir=.
12724 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12725 lt_cv_path_LD="$ac_dir/$ac_prog"
12726 # Check to see if the program is GNU ld. I'd rather use --version,
12727 # but apparently some variants of GNU ld only accept -v.
12728 # Break only if it was the GNU/non-GNU ld that we prefer.
12729 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12730 *GNU* | *'with BFD'*)
12731 test "$with_gnu_ld" != no && break
12734 test "$with_gnu_ld" != yes && break
12736 esac
12738 done
12739 IFS="$lt_save_ifs"
12740 else
12741 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12745 LD="$lt_cv_path_LD"
12746 if test -n "$LD"; then
12747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12748 $as_echo "$LD" >&6; }
12749 else
12750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12751 $as_echo "no" >&6; }
12753 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12755 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12756 if ${lt_cv_prog_gnu_ld+:} false; then :
12757 $as_echo_n "(cached) " >&6
12758 else
12759 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12760 case `$LD -v 2>&1 </dev/null` in
12761 *GNU* | *'with BFD'*)
12762 lt_cv_prog_gnu_ld=yes
12765 lt_cv_prog_gnu_ld=no
12767 esac
12769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12770 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12771 with_gnu_ld=$lt_cv_prog_gnu_ld
12779 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12780 # archiving commands below assume that GNU ld is being used.
12781 if test "$with_gnu_ld" = yes; then
12782 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12783 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'
12785 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12786 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12788 # If archive_cmds runs LD, not CC, wlarc should be empty
12789 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12790 # investigate it a little bit more. (MM)
12791 wlarc='${wl}'
12793 # ancient GNU ld didn't support --whole-archive et. al.
12794 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12795 $GREP 'no-whole-archive' > /dev/null; then
12796 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12797 else
12798 whole_archive_flag_spec_CXX=
12800 else
12801 with_gnu_ld=no
12802 wlarc=
12804 # A generic and very simple default shared library creation
12805 # command for GNU C++ for the case where it uses the native
12806 # linker, instead of GNU ld. If possible, this setting should
12807 # overridden to take advantage of the native linker features on
12808 # the platform it is being used on.
12809 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12812 # Commands to make compiler produce verbose output that lists
12813 # what "hidden" libraries, object files and flags are used when
12814 # linking a shared library.
12815 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12817 else
12818 GXX=no
12819 with_gnu_ld=no
12820 wlarc=
12823 # PORTME: fill in a description of your system's C++ link characteristics
12824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12825 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12826 ld_shlibs_CXX=yes
12827 case $host_os in
12828 aix3*)
12829 # FIXME: insert proper C++ library support
12830 ld_shlibs_CXX=no
12832 aix[4-9]*)
12833 if test "$host_cpu" = ia64; then
12834 # On IA64, the linker does run time linking by default, so we don't
12835 # have to do anything special.
12836 aix_use_runtimelinking=no
12837 exp_sym_flag='-Bexport'
12838 no_entry_flag=""
12839 else
12840 aix_use_runtimelinking=no
12842 # Test if we are trying to use run time linking or normal
12843 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12844 # need to do runtime linking.
12845 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12846 for ld_flag in $LDFLAGS; do
12847 case $ld_flag in
12848 *-brtl*)
12849 aix_use_runtimelinking=yes
12850 break
12852 esac
12853 done
12855 esac
12857 exp_sym_flag='-bexport'
12858 no_entry_flag='-bnoentry'
12861 # When large executables or shared objects are built, AIX ld can
12862 # have problems creating the table of contents. If linking a library
12863 # or program results in "error TOC overflow" add -mminimal-toc to
12864 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12865 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12867 archive_cmds_CXX=''
12868 hardcode_direct_CXX=yes
12869 hardcode_direct_absolute_CXX=yes
12870 hardcode_libdir_separator_CXX=':'
12871 link_all_deplibs_CXX=yes
12872 file_list_spec_CXX='${wl}-f,'
12874 if test "$GXX" = yes; then
12875 case $host_os in aix4.[012]|aix4.[012].*)
12876 # We only want to do this on AIX 4.2 and lower, the check
12877 # below for broken collect2 doesn't work under 4.3+
12878 collect2name=`${CC} -print-prog-name=collect2`
12879 if test -f "$collect2name" &&
12880 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12881 then
12882 # We have reworked collect2
12884 else
12885 # We have old collect2
12886 hardcode_direct_CXX=unsupported
12887 # It fails to find uninstalled libraries when the uninstalled
12888 # path is not listed in the libpath. Setting hardcode_minus_L
12889 # to unsupported forces relinking
12890 hardcode_minus_L_CXX=yes
12891 hardcode_libdir_flag_spec_CXX='-L$libdir'
12892 hardcode_libdir_separator_CXX=
12894 esac
12895 shared_flag='-shared'
12896 if test "$aix_use_runtimelinking" = yes; then
12897 shared_flag="$shared_flag "'${wl}-G'
12899 else
12900 # not using gcc
12901 if test "$host_cpu" = ia64; then
12902 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12903 # chokes on -Wl,-G. The following line is correct:
12904 shared_flag='-G'
12905 else
12906 if test "$aix_use_runtimelinking" = yes; then
12907 shared_flag='${wl}-G'
12908 else
12909 shared_flag='${wl}-bM:SRE'
12914 export_dynamic_flag_spec_CXX='${wl}-bexpall'
12915 # It seems that -bexpall does not export symbols beginning with
12916 # underscore (_), so it is better to generate a list of symbols to
12917 # export.
12918 always_export_symbols_CXX=yes
12919 if test "$aix_use_runtimelinking" = yes; then
12920 # Warning - without using the other runtime loading flags (-brtl),
12921 # -berok will link without error, but may produce a broken library.
12922 allow_undefined_flag_CXX='-berok'
12923 # Determine the default libpath from the value encoded in an empty
12924 # executable.
12925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12926 /* end confdefs.h. */
12929 main ()
12933 return 0;
12935 _ACEOF
12936 if ac_fn_cxx_try_link "$LINENO"; then :
12938 lt_aix_libpath_sed='
12939 /Import File Strings/,/^$/ {
12940 /^0/ {
12941 s/^0 *\(.*\)$/\1/
12945 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12946 # Check for a 64-bit object if we didn't find anything.
12947 if test -z "$aix_libpath"; then
12948 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12951 rm -f core conftest.err conftest.$ac_objext \
12952 conftest$ac_exeext conftest.$ac_ext
12953 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12955 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12957 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"
12958 else
12959 if test "$host_cpu" = ia64; then
12960 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12961 allow_undefined_flag_CXX="-z nodefs"
12962 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"
12963 else
12964 # Determine the default libpath from the value encoded in an
12965 # empty executable.
12966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12967 /* end confdefs.h. */
12970 main ()
12974 return 0;
12976 _ACEOF
12977 if ac_fn_cxx_try_link "$LINENO"; then :
12979 lt_aix_libpath_sed='
12980 /Import File Strings/,/^$/ {
12981 /^0/ {
12982 s/^0 *\(.*\)$/\1/
12986 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12987 # Check for a 64-bit object if we didn't find anything.
12988 if test -z "$aix_libpath"; then
12989 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12992 rm -f core conftest.err conftest.$ac_objext \
12993 conftest$ac_exeext conftest.$ac_ext
12994 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12996 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12997 # Warning - without using the other run time loading flags,
12998 # -berok will link without error, but may produce a broken library.
12999 no_undefined_flag_CXX=' ${wl}-bernotok'
13000 allow_undefined_flag_CXX=' ${wl}-berok'
13001 if test "$with_gnu_ld" = yes; then
13002 # We only use this code for GNU lds that support --whole-archive.
13003 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13004 else
13005 # Exported symbols can be pulled into shared objects from archives
13006 whole_archive_flag_spec_CXX='$convenience'
13008 archive_cmds_need_lc_CXX=yes
13009 # This is similar to how AIX traditionally builds its shared
13010 # libraries.
13011 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'
13016 beos*)
13017 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13018 allow_undefined_flag_CXX=unsupported
13019 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13020 # support --undefined. This deserves some investigation. FIXME
13021 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13022 else
13023 ld_shlibs_CXX=no
13027 chorus*)
13028 case $cc_basename in
13030 # FIXME: insert proper C++ library support
13031 ld_shlibs_CXX=no
13033 esac
13036 cygwin* | mingw* | pw32* | cegcc*)
13037 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13038 # as there is no search path for DLLs.
13039 hardcode_libdir_flag_spec_CXX='-L$libdir'
13040 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
13041 allow_undefined_flag_CXX=unsupported
13042 always_export_symbols_CXX=no
13043 enable_shared_with_static_runtimes_CXX=yes
13045 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13046 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'
13047 # If the export-symbols file already is a .def file (1st line
13048 # is EXPORTS), use it as is; otherwise, prepend...
13049 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13050 cp $export_symbols $output_objdir/$soname.def;
13051 else
13052 echo EXPORTS > $output_objdir/$soname.def;
13053 cat $export_symbols >> $output_objdir/$soname.def;
13055 $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'
13056 else
13057 ld_shlibs_CXX=no
13060 darwin* | rhapsody*)
13063 archive_cmds_need_lc_CXX=no
13064 hardcode_direct_CXX=no
13065 hardcode_automatic_CXX=yes
13066 hardcode_shlibpath_var_CXX=unsupported
13067 if test "$lt_cv_ld_force_load" = "yes"; then
13068 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\"`'
13069 else
13070 whole_archive_flag_spec_CXX=''
13072 link_all_deplibs_CXX=yes
13073 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13074 case $cc_basename in
13075 ifort*) _lt_dar_can_shared=yes ;;
13076 *) _lt_dar_can_shared=$GCC ;;
13077 esac
13078 if test "$_lt_dar_can_shared" = "yes"; then
13079 output_verbose_link_cmd=func_echo_all
13080 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}"
13081 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13082 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}"
13083 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}"
13084 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13085 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}"
13086 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}"
13089 else
13090 ld_shlibs_CXX=no
13095 dgux*)
13096 case $cc_basename in
13097 ec++*)
13098 # FIXME: insert proper C++ library support
13099 ld_shlibs_CXX=no
13101 ghcx*)
13102 # Green Hills C++ Compiler
13103 # FIXME: insert proper C++ library support
13104 ld_shlibs_CXX=no
13107 # FIXME: insert proper C++ library support
13108 ld_shlibs_CXX=no
13110 esac
13113 freebsd2.*)
13114 # C++ shared libraries reported to be fairly broken before
13115 # switch to ELF
13116 ld_shlibs_CXX=no
13119 freebsd-elf*)
13120 archive_cmds_need_lc_CXX=no
13123 freebsd* | dragonfly*)
13124 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13125 # conventions
13126 ld_shlibs_CXX=yes
13129 gnu*)
13132 haiku*)
13133 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13134 link_all_deplibs_CXX=yes
13137 hpux9*)
13138 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13139 hardcode_libdir_separator_CXX=:
13140 export_dynamic_flag_spec_CXX='${wl}-E'
13141 hardcode_direct_CXX=yes
13142 hardcode_minus_L_CXX=yes # Not in the search PATH,
13143 # but as the default
13144 # location of the library.
13146 case $cc_basename in
13147 CC*)
13148 # FIXME: insert proper C++ library support
13149 ld_shlibs_CXX=no
13151 aCC*)
13152 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'
13153 # Commands to make compiler produce verbose output that lists
13154 # what "hidden" libraries, object files and flags are used when
13155 # linking a shared library.
13157 # There doesn't appear to be a way to prevent this compiler from
13158 # explicitly linking system object files so we need to strip them
13159 # from the output so that they don't get included in the library
13160 # dependencies.
13161 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"'
13164 if test "$GXX" = yes; then
13165 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'
13166 else
13167 # FIXME: insert proper C++ library support
13168 ld_shlibs_CXX=no
13171 esac
13174 hpux10*|hpux11*)
13175 if test $with_gnu_ld = no; then
13176 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13177 hardcode_libdir_separator_CXX=:
13179 case $host_cpu in
13180 hppa*64*|ia64*)
13183 export_dynamic_flag_spec_CXX='${wl}-E'
13185 esac
13187 case $host_cpu in
13188 hppa*64*|ia64*)
13189 hardcode_direct_CXX=no
13190 hardcode_shlibpath_var_CXX=no
13193 hardcode_direct_CXX=yes
13194 hardcode_direct_absolute_CXX=yes
13195 hardcode_minus_L_CXX=yes # Not in the search PATH,
13196 # but as the default
13197 # location of the library.
13199 esac
13201 case $cc_basename in
13202 CC*)
13203 # FIXME: insert proper C++ library support
13204 ld_shlibs_CXX=no
13206 aCC*)
13207 case $host_cpu in
13208 hppa*64*)
13209 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13211 ia64*)
13212 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13215 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13217 esac
13218 # Commands to make compiler produce verbose output that lists
13219 # what "hidden" libraries, object files and flags are used when
13220 # linking a shared library.
13222 # There doesn't appear to be a way to prevent this compiler from
13223 # explicitly linking system object files so we need to strip them
13224 # from the output so that they don't get included in the library
13225 # dependencies.
13226 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"'
13229 if test "$GXX" = yes; then
13230 if test $with_gnu_ld = no; then
13231 case $host_cpu in
13232 hppa*64*)
13233 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13235 ia64*)
13236 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13239 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'
13241 esac
13243 else
13244 # FIXME: insert proper C++ library support
13245 ld_shlibs_CXX=no
13248 esac
13251 interix[3-9]*)
13252 hardcode_direct_CXX=no
13253 hardcode_shlibpath_var_CXX=no
13254 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13255 export_dynamic_flag_spec_CXX='${wl}-E'
13256 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13257 # Instead, shared libraries are loaded at an image base (0x10000000 by
13258 # default) and relocated if they conflict, which is a slow very memory
13259 # consuming and fragmenting process. To avoid this, we pick a random,
13260 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13261 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13262 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'
13263 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'
13265 irix5* | irix6*)
13266 case $cc_basename in
13267 CC*)
13268 # SGI C++
13269 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'
13271 # Archives containing C++ object files must be created using
13272 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13273 # necessary to make sure instantiated templates are included
13274 # in the archive.
13275 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13278 if test "$GXX" = yes; then
13279 if test "$with_gnu_ld" = no; then
13280 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'
13281 else
13282 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'
13285 link_all_deplibs_CXX=yes
13287 esac
13288 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13289 hardcode_libdir_separator_CXX=:
13290 inherit_rpath_CXX=yes
13293 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13294 case $cc_basename in
13295 KCC*)
13296 # Kuck and Associates, Inc. (KAI) C++ Compiler
13298 # KCC will only create a shared library if the output file
13299 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13300 # to its proper name (with version) after linking.
13301 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'
13302 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'
13303 # Commands to make compiler produce verbose output that lists
13304 # what "hidden" libraries, object files and flags are used when
13305 # linking a shared library.
13307 # There doesn't appear to be a way to prevent this compiler from
13308 # explicitly linking system object files so we need to strip them
13309 # from the output so that they don't get included in the library
13310 # dependencies.
13311 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"'
13313 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13314 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13316 # Archives containing C++ object files must be created using
13317 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13318 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13320 icpc* | ecpc* )
13321 # Intel C++
13322 with_gnu_ld=yes
13323 # version 8.0 and above of icpc choke on multiply defined symbols
13324 # if we add $predep_objects and $postdep_objects, however 7.1 and
13325 # earlier do not add the objects themselves.
13326 case `$CC -V 2>&1` in
13327 *"Version 7."*)
13328 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13329 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'
13331 *) # Version 8.0 or newer
13332 tmp_idyn=
13333 case $host_cpu in
13334 ia64*) tmp_idyn=' -i_dynamic';;
13335 esac
13336 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13337 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'
13339 esac
13340 archive_cmds_need_lc_CXX=no
13341 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13342 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13343 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13345 pgCC* | pgcpp*)
13346 # Portland Group C++ compiler
13347 case `$CC -V` in
13348 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
13349 prelink_cmds_CXX='tpldir=Template.dir~
13350 rm -rf $tpldir~
13351 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13352 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
13353 old_archive_cmds_CXX='tpldir=Template.dir~
13354 rm -rf $tpldir~
13355 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13356 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
13357 $RANLIB $oldlib'
13358 archive_cmds_CXX='tpldir=Template.dir~
13359 rm -rf $tpldir~
13360 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13361 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13362 archive_expsym_cmds_CXX='tpldir=Template.dir~
13363 rm -rf $tpldir~
13364 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13365 $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'
13367 *) # Version 6 and above use weak symbols
13368 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13369 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'
13371 esac
13373 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13374 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13375 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'
13377 cxx*)
13378 # Compaq C++
13379 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13380 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'
13382 runpath_var=LD_RUN_PATH
13383 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13384 hardcode_libdir_separator_CXX=:
13386 # Commands to make compiler produce verbose output that lists
13387 # what "hidden" libraries, object files and flags are used when
13388 # linking a shared library.
13390 # There doesn't appear to be a way to prevent this compiler from
13391 # explicitly linking system object files so we need to strip them
13392 # from the output so that they don't get included in the library
13393 # dependencies.
13394 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'
13396 xl* | mpixl* | bgxl*)
13397 # IBM XL 8.0 on PPC, with GNU ld
13398 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13399 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13400 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13401 if test "x$supports_anon_versioning" = xyes; then
13402 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13403 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13404 echo "local: *; };" >> $output_objdir/$libname.ver~
13405 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13409 case `$CC -V 2>&1 | sed 5q` in
13410 *Sun\ C*)
13411 # Sun C++ 5.9
13412 no_undefined_flag_CXX=' -zdefs'
13413 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13414 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'
13415 hardcode_libdir_flag_spec_CXX='-R$libdir'
13416 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'
13417 compiler_needs_object_CXX=yes
13419 # Not sure whether something based on
13420 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13421 # would be better.
13422 output_verbose_link_cmd='func_echo_all'
13424 # Archives containing C++ object files must be created using
13425 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13426 # necessary to make sure instantiated templates are included
13427 # in the archive.
13428 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13430 esac
13432 esac
13435 lynxos*)
13436 # FIXME: insert proper C++ library support
13437 ld_shlibs_CXX=no
13440 m88k*)
13441 # FIXME: insert proper C++ library support
13442 ld_shlibs_CXX=no
13445 mvs*)
13446 case $cc_basename in
13447 cxx*)
13448 # FIXME: insert proper C++ library support
13449 ld_shlibs_CXX=no
13452 # FIXME: insert proper C++ library support
13453 ld_shlibs_CXX=no
13455 esac
13458 netbsd*)
13459 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13460 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13461 wlarc=
13462 hardcode_libdir_flag_spec_CXX='-R$libdir'
13463 hardcode_direct_CXX=yes
13464 hardcode_shlibpath_var_CXX=no
13466 # Workaround some broken pre-1.5 toolchains
13467 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13470 *nto* | *qnx*)
13471 ld_shlibs_CXX=yes
13474 openbsd2*)
13475 # C++ shared libraries are fairly broken
13476 ld_shlibs_CXX=no
13479 openbsd*)
13480 if test -f /usr/libexec/ld.so; then
13481 hardcode_direct_CXX=yes
13482 hardcode_shlibpath_var_CXX=no
13483 hardcode_direct_absolute_CXX=yes
13484 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13485 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13486 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13487 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13488 export_dynamic_flag_spec_CXX='${wl}-E'
13489 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13491 output_verbose_link_cmd=func_echo_all
13492 else
13493 ld_shlibs_CXX=no
13497 osf3* | osf4* | osf5*)
13498 case $cc_basename in
13499 KCC*)
13500 # Kuck and Associates, Inc. (KAI) C++ Compiler
13502 # KCC will only create a shared library if the output file
13503 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13504 # to its proper name (with version) after linking.
13505 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'
13507 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13508 hardcode_libdir_separator_CXX=:
13510 # Archives containing C++ object files must be created using
13511 # the KAI C++ compiler.
13512 case $host in
13513 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13514 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13515 esac
13517 RCC*)
13518 # Rational C++ 2.4.1
13519 # FIXME: insert proper C++ library support
13520 ld_shlibs_CXX=no
13522 cxx*)
13523 case $host in
13524 osf3*)
13525 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13526 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'
13527 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13530 allow_undefined_flag_CXX=' -expect_unresolved \*'
13531 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'
13532 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13533 echo "-hidden">> $lib.exp~
13534 $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~
13535 $RM $lib.exp'
13536 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13538 esac
13540 hardcode_libdir_separator_CXX=:
13542 # Commands to make compiler produce verbose output that lists
13543 # what "hidden" libraries, object files and flags are used when
13544 # linking a shared library.
13546 # There doesn't appear to be a way to prevent this compiler from
13547 # explicitly linking system object files so we need to strip them
13548 # from the output so that they don't get included in the library
13549 # dependencies.
13550 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"'
13553 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13554 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13555 case $host in
13556 osf3*)
13557 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'
13560 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'
13562 esac
13564 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13565 hardcode_libdir_separator_CXX=:
13567 # Commands to make compiler produce verbose output that lists
13568 # what "hidden" libraries, object files and flags are used when
13569 # linking a shared library.
13570 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13572 else
13573 # FIXME: insert proper C++ library support
13574 ld_shlibs_CXX=no
13577 esac
13580 psos*)
13581 # FIXME: insert proper C++ library support
13582 ld_shlibs_CXX=no
13585 sunos4*)
13586 case $cc_basename in
13587 CC*)
13588 # Sun C++ 4.x
13589 # FIXME: insert proper C++ library support
13590 ld_shlibs_CXX=no
13592 lcc*)
13593 # Lucid
13594 # FIXME: insert proper C++ library support
13595 ld_shlibs_CXX=no
13598 # FIXME: insert proper C++ library support
13599 ld_shlibs_CXX=no
13601 esac
13604 solaris*)
13605 case $cc_basename in
13606 CC*)
13607 # Sun C++ 4.2, 5.x and Centerline C++
13608 archive_cmds_need_lc_CXX=yes
13609 no_undefined_flag_CXX=' -zdefs'
13610 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13611 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13612 $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'
13614 hardcode_libdir_flag_spec_CXX='-R$libdir'
13615 hardcode_shlibpath_var_CXX=no
13616 case $host_os in
13617 solaris2.[0-5] | solaris2.[0-5].*) ;;
13619 # The compiler driver will combine and reorder linker options,
13620 # but understands `-z linker_flag'.
13621 # Supported since Solaris 2.6 (maybe 2.5.1?)
13622 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13624 esac
13625 link_all_deplibs_CXX=yes
13627 output_verbose_link_cmd='func_echo_all'
13629 # Archives containing C++ object files must be created using
13630 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13631 # necessary to make sure instantiated templates are included
13632 # in the archive.
13633 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13635 gcx*)
13636 # Green Hills C++ Compiler
13637 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13639 # The C++ compiler must be used to create the archive.
13640 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13643 # GNU C++ compiler with Solaris linker
13644 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13645 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13646 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13647 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13648 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13649 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13651 # Commands to make compiler produce verbose output that lists
13652 # what "hidden" libraries, object files and flags are used when
13653 # linking a shared library.
13654 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13655 else
13656 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13657 # platform.
13658 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13659 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13660 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13662 # Commands to make compiler produce verbose output that lists
13663 # what "hidden" libraries, object files and flags are used when
13664 # linking a shared library.
13665 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13668 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13669 case $host_os in
13670 solaris2.[0-5] | solaris2.[0-5].*) ;;
13672 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13674 esac
13677 esac
13680 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13681 no_undefined_flag_CXX='${wl}-z,text'
13682 archive_cmds_need_lc_CXX=no
13683 hardcode_shlibpath_var_CXX=no
13684 runpath_var='LD_RUN_PATH'
13686 case $cc_basename in
13687 CC*)
13688 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13689 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13692 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13693 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13695 esac
13698 sysv5* | sco3.2v5* | sco5v6*)
13699 # Note: We can NOT use -z defs as we might desire, because we do not
13700 # link with -lc, and that would cause any symbols used from libc to
13701 # always be unresolved, which means just about no library would
13702 # ever link correctly. If we're not using GNU ld we use -z text
13703 # though, which does catch some bad symbols but isn't as heavy-handed
13704 # as -z defs.
13705 no_undefined_flag_CXX='${wl}-z,text'
13706 allow_undefined_flag_CXX='${wl}-z,nodefs'
13707 archive_cmds_need_lc_CXX=no
13708 hardcode_shlibpath_var_CXX=no
13709 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13710 hardcode_libdir_separator_CXX=':'
13711 link_all_deplibs_CXX=yes
13712 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13713 runpath_var='LD_RUN_PATH'
13715 case $cc_basename in
13716 CC*)
13717 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13718 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13719 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13720 '"$old_archive_cmds_CXX"
13721 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13722 '"$reload_cmds_CXX"
13725 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13726 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13728 esac
13731 tandem*)
13732 case $cc_basename in
13733 NCC*)
13734 # NonStop-UX NCC 3.20
13735 # FIXME: insert proper C++ library support
13736 ld_shlibs_CXX=no
13739 # FIXME: insert proper C++ library support
13740 ld_shlibs_CXX=no
13742 esac
13745 vxworks*)
13746 # For VxWorks ports, we assume the use of a GNU linker with
13747 # standard elf conventions.
13748 ld_shlibs_CXX=yes
13752 # FIXME: insert proper C++ library support
13753 ld_shlibs_CXX=no
13755 esac
13757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13758 $as_echo "$ld_shlibs_CXX" >&6; }
13759 test "$ld_shlibs_CXX" = no && can_build_shared=no
13761 GCC_CXX="$GXX"
13762 LD_CXX="$LD"
13764 ## CAVEAT EMPTOR:
13765 ## There is no encapsulation within the following macros, do not change
13766 ## the running order or otherwise move them around unless you know exactly
13767 ## what you are doing...
13768 # Dependencies to place before and after the object being linked:
13769 predep_objects_CXX=
13770 postdep_objects_CXX=
13771 predeps_CXX=
13772 postdeps_CXX=
13773 compiler_lib_search_path_CXX=
13775 cat > conftest.$ac_ext <<_LT_EOF
13776 class Foo
13778 public:
13779 Foo (void) { a = 0; }
13780 private:
13781 int a;
13783 _LT_EOF
13785 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13786 (eval $ac_compile) 2>&5
13787 ac_status=$?
13788 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13789 test $ac_status = 0; }; then
13790 # Parse the compiler output and extract the necessary
13791 # objects, libraries and library flags.
13793 # Sentinel used to keep track of whether or not we are before
13794 # the conftest object file.
13795 pre_test_object_deps_done=no
13797 for p in `eval "$output_verbose_link_cmd"`; do
13798 case $p in
13800 -L* | -R* | -l*)
13801 # Some compilers place space between "-{L,R}" and the path.
13802 # Remove the space.
13803 if test $p = "-L" ||
13804 test $p = "-R"; then
13805 prev=$p
13806 continue
13807 else
13808 prev=
13811 if test "$pre_test_object_deps_done" = no; then
13812 case $p in
13813 -L* | -R*)
13814 # Internal compiler library paths should come after those
13815 # provided the user. The postdeps already come after the
13816 # user supplied libs so there is no need to process them.
13817 if test -z "$compiler_lib_search_path_CXX"; then
13818 compiler_lib_search_path_CXX="${prev}${p}"
13819 else
13820 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13823 # The "-l" case would never come before the object being
13824 # linked, so don't bother handling this case.
13825 esac
13826 else
13827 if test -z "$postdeps_CXX"; then
13828 postdeps_CXX="${prev}${p}"
13829 else
13830 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13835 *.$objext)
13836 # This assumes that the test object file only shows up
13837 # once in the compiler output.
13838 if test "$p" = "conftest.$objext"; then
13839 pre_test_object_deps_done=yes
13840 continue
13843 if test "$pre_test_object_deps_done" = no; then
13844 if test -z "$predep_objects_CXX"; then
13845 predep_objects_CXX="$p"
13846 else
13847 predep_objects_CXX="$predep_objects_CXX $p"
13849 else
13850 if test -z "$postdep_objects_CXX"; then
13851 postdep_objects_CXX="$p"
13852 else
13853 postdep_objects_CXX="$postdep_objects_CXX $p"
13858 *) ;; # Ignore the rest.
13860 esac
13861 done
13863 # Clean up.
13864 rm -f a.out a.exe
13865 else
13866 echo "libtool.m4: error: problem compiling CXX test program"
13869 $RM -f confest.$objext
13871 # PORTME: override above test on systems where it is broken
13872 case $host_os in
13873 interix[3-9]*)
13874 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13875 # hack all around it, let's just trust "g++" to DTRT.
13876 predep_objects_CXX=
13877 postdep_objects_CXX=
13878 postdeps_CXX=
13881 linux*)
13882 case `$CC -V 2>&1 | sed 5q` in
13883 *Sun\ C*)
13884 # Sun C++ 5.9
13886 # The more standards-conforming stlport4 library is
13887 # incompatible with the Cstd library. Avoid specifying
13888 # it if it's in CXXFLAGS. Ignore libCrun as
13889 # -library=stlport4 depends on it.
13890 case " $CXX $CXXFLAGS " in
13891 *" -library=stlport4 "*)
13892 solaris_use_stlport4=yes
13894 esac
13896 if test "$solaris_use_stlport4" != yes; then
13897 postdeps_CXX='-library=Cstd -library=Crun'
13900 esac
13903 solaris*)
13904 case $cc_basename in
13905 CC*)
13906 # The more standards-conforming stlport4 library is
13907 # incompatible with the Cstd library. Avoid specifying
13908 # it if it's in CXXFLAGS. Ignore libCrun as
13909 # -library=stlport4 depends on it.
13910 case " $CXX $CXXFLAGS " in
13911 *" -library=stlport4 "*)
13912 solaris_use_stlport4=yes
13914 esac
13916 # Adding this requires a known-good setup of shared libraries for
13917 # Sun compiler versions before 5.6, else PIC objects from an old
13918 # archive will be linked into the output, leading to subtle bugs.
13919 if test "$solaris_use_stlport4" != yes; then
13920 postdeps_CXX='-library=Cstd -library=Crun'
13923 esac
13925 esac
13928 case " $postdeps_CXX " in
13929 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13930 esac
13931 compiler_lib_search_dirs_CXX=
13932 if test -n "${compiler_lib_search_path_CXX}"; then
13933 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13966 lt_prog_compiler_wl_CXX=
13967 lt_prog_compiler_pic_CXX=
13968 lt_prog_compiler_static_CXX=
13970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13971 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13973 # C++ specific cases for pic, static, wl, etc.
13974 if test "$GXX" = yes; then
13975 lt_prog_compiler_wl_CXX='-Wl,'
13976 lt_prog_compiler_static_CXX='-static'
13978 case $host_os in
13979 aix*)
13980 # All AIX code is PIC.
13981 if test "$host_cpu" = ia64; then
13982 # AIX 5 now supports IA64 processor
13983 lt_prog_compiler_static_CXX='-Bstatic'
13985 lt_prog_compiler_pic_CXX='-fPIC'
13988 amigaos*)
13989 case $host_cpu in
13990 powerpc)
13991 # see comment about AmigaOS4 .so support
13992 lt_prog_compiler_pic_CXX='-fPIC'
13994 m68k)
13995 # FIXME: we need at least 68020 code to build shared libraries, but
13996 # adding the `-m68020' flag to GCC prevents building anything better,
13997 # like `-m68040'.
13998 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14000 esac
14003 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14004 # PIC is the default for these OSes.
14006 mingw* | cygwin* | os2* | pw32* | cegcc*)
14007 # This hack is so that the source file can tell whether it is being
14008 # built for inclusion in a dll (and should export symbols for example).
14009 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14010 # (--disable-auto-import) libraries
14011 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14013 darwin* | rhapsody*)
14014 # PIC is the default on this platform
14015 # Common symbols not allowed in MH_DYLIB files
14016 lt_prog_compiler_pic_CXX='-fno-common'
14018 *djgpp*)
14019 # DJGPP does not support shared libraries at all
14020 lt_prog_compiler_pic_CXX=
14022 haiku*)
14023 # PIC is the default for Haiku.
14024 # The "-static" flag exists, but is broken.
14025 lt_prog_compiler_static_CXX=
14027 interix[3-9]*)
14028 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14029 # Instead, we relocate shared libraries at runtime.
14031 sysv4*MP*)
14032 if test -d /usr/nec; then
14033 lt_prog_compiler_pic_CXX=-Kconform_pic
14036 hpux*)
14037 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14038 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14039 # sets the default TLS model and affects inlining.
14040 case $host_cpu in
14041 hppa*64*)
14044 lt_prog_compiler_pic_CXX='-fPIC'
14046 esac
14048 *qnx* | *nto*)
14049 # QNX uses GNU C++, but need to define -shared option too, otherwise
14050 # it will coredump.
14051 lt_prog_compiler_pic_CXX='-fPIC -shared'
14054 lt_prog_compiler_pic_CXX='-fPIC'
14056 esac
14057 else
14058 case $host_os in
14059 aix[4-9]*)
14060 # All AIX code is PIC.
14061 if test "$host_cpu" = ia64; then
14062 # AIX 5 now supports IA64 processor
14063 lt_prog_compiler_static_CXX='-Bstatic'
14064 else
14065 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14068 chorus*)
14069 case $cc_basename in
14070 cxch68*)
14071 # Green Hills C++ Compiler
14072 # _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"
14074 esac
14076 dgux*)
14077 case $cc_basename in
14078 ec++*)
14079 lt_prog_compiler_pic_CXX='-KPIC'
14081 ghcx*)
14082 # Green Hills C++ Compiler
14083 lt_prog_compiler_pic_CXX='-pic'
14087 esac
14089 freebsd* | dragonfly*)
14090 # FreeBSD uses GNU C++
14092 hpux9* | hpux10* | hpux11*)
14093 case $cc_basename in
14094 CC*)
14095 lt_prog_compiler_wl_CXX='-Wl,'
14096 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14097 if test "$host_cpu" != ia64; then
14098 lt_prog_compiler_pic_CXX='+Z'
14101 aCC*)
14102 lt_prog_compiler_wl_CXX='-Wl,'
14103 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14104 case $host_cpu in
14105 hppa*64*|ia64*)
14106 # +Z the default
14109 lt_prog_compiler_pic_CXX='+Z'
14111 esac
14115 esac
14117 interix*)
14118 # This is c89, which is MS Visual C++ (no shared libs)
14119 # Anyone wants to do a port?
14121 irix5* | irix6* | nonstopux*)
14122 case $cc_basename in
14123 CC*)
14124 lt_prog_compiler_wl_CXX='-Wl,'
14125 lt_prog_compiler_static_CXX='-non_shared'
14126 # CC pic flag -KPIC is the default.
14130 esac
14132 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14133 case $cc_basename in
14134 KCC*)
14135 # KAI C++ Compiler
14136 lt_prog_compiler_wl_CXX='--backend -Wl,'
14137 lt_prog_compiler_pic_CXX='-fPIC'
14139 ecpc* )
14140 # old Intel C++ for x86_64 which still supported -KPIC.
14141 lt_prog_compiler_wl_CXX='-Wl,'
14142 lt_prog_compiler_pic_CXX='-KPIC'
14143 lt_prog_compiler_static_CXX='-static'
14145 icpc* )
14146 # Intel C++, used to be incompatible with GCC.
14147 # ICC 10 doesn't accept -KPIC any more.
14148 lt_prog_compiler_wl_CXX='-Wl,'
14149 lt_prog_compiler_pic_CXX='-fPIC'
14150 lt_prog_compiler_static_CXX='-static'
14152 pgCC* | pgcpp*)
14153 # Portland Group C++ compiler
14154 lt_prog_compiler_wl_CXX='-Wl,'
14155 lt_prog_compiler_pic_CXX='-fpic'
14156 lt_prog_compiler_static_CXX='-Bstatic'
14158 cxx*)
14159 # Compaq C++
14160 # Make sure the PIC flag is empty. It appears that all Alpha
14161 # Linux and Compaq Tru64 Unix objects are PIC.
14162 lt_prog_compiler_pic_CXX=
14163 lt_prog_compiler_static_CXX='-non_shared'
14165 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
14166 # IBM XL 8.0, 9.0 on PPC and BlueGene
14167 lt_prog_compiler_wl_CXX='-Wl,'
14168 lt_prog_compiler_pic_CXX='-qpic'
14169 lt_prog_compiler_static_CXX='-qstaticlink'
14172 case `$CC -V 2>&1 | sed 5q` in
14173 *Sun\ C*)
14174 # Sun C++ 5.9
14175 lt_prog_compiler_pic_CXX='-KPIC'
14176 lt_prog_compiler_static_CXX='-Bstatic'
14177 lt_prog_compiler_wl_CXX='-Qoption ld '
14179 esac
14181 esac
14183 lynxos*)
14185 m88k*)
14187 mvs*)
14188 case $cc_basename in
14189 cxx*)
14190 lt_prog_compiler_pic_CXX='-W c,exportall'
14194 esac
14196 netbsd*)
14198 *qnx* | *nto*)
14199 # QNX uses GNU C++, but need to define -shared option too, otherwise
14200 # it will coredump.
14201 lt_prog_compiler_pic_CXX='-fPIC -shared'
14203 osf3* | osf4* | osf5*)
14204 case $cc_basename in
14205 KCC*)
14206 lt_prog_compiler_wl_CXX='--backend -Wl,'
14208 RCC*)
14209 # Rational C++ 2.4.1
14210 lt_prog_compiler_pic_CXX='-pic'
14212 cxx*)
14213 # Digital/Compaq C++
14214 lt_prog_compiler_wl_CXX='-Wl,'
14215 # Make sure the PIC flag is empty. It appears that all Alpha
14216 # Linux and Compaq Tru64 Unix objects are PIC.
14217 lt_prog_compiler_pic_CXX=
14218 lt_prog_compiler_static_CXX='-non_shared'
14222 esac
14224 psos*)
14226 solaris*)
14227 case $cc_basename in
14228 CC*)
14229 # Sun C++ 4.2, 5.x and Centerline C++
14230 lt_prog_compiler_pic_CXX='-KPIC'
14231 lt_prog_compiler_static_CXX='-Bstatic'
14232 lt_prog_compiler_wl_CXX='-Qoption ld '
14234 gcx*)
14235 # Green Hills C++ Compiler
14236 lt_prog_compiler_pic_CXX='-PIC'
14240 esac
14242 sunos4*)
14243 case $cc_basename in
14244 CC*)
14245 # Sun C++ 4.x
14246 lt_prog_compiler_pic_CXX='-pic'
14247 lt_prog_compiler_static_CXX='-Bstatic'
14249 lcc*)
14250 # Lucid
14251 lt_prog_compiler_pic_CXX='-pic'
14255 esac
14257 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14258 case $cc_basename in
14259 CC*)
14260 lt_prog_compiler_wl_CXX='-Wl,'
14261 lt_prog_compiler_pic_CXX='-KPIC'
14262 lt_prog_compiler_static_CXX='-Bstatic'
14264 esac
14266 tandem*)
14267 case $cc_basename in
14268 NCC*)
14269 # NonStop-UX NCC 3.20
14270 lt_prog_compiler_pic_CXX='-KPIC'
14274 esac
14276 vxworks*)
14279 lt_prog_compiler_can_build_shared_CXX=no
14281 esac
14284 case $host_os in
14285 # For platforms which do not support PIC, -DPIC is meaningless:
14286 *djgpp*)
14287 lt_prog_compiler_pic_CXX=
14290 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14292 esac
14293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
14294 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
14299 # Check to make sure the PIC flag actually works.
14301 if test -n "$lt_prog_compiler_pic_CXX"; then
14302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14303 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14304 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
14305 $as_echo_n "(cached) " >&6
14306 else
14307 lt_cv_prog_compiler_pic_works_CXX=no
14308 ac_outfile=conftest.$ac_objext
14309 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14310 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14311 # Insert the option either (1) after the last *FLAGS variable, or
14312 # (2) before a word containing "conftest.", or (3) at the end.
14313 # Note that $ac_compile itself does not contain backslashes and begins
14314 # with a dollar sign (not a hyphen), so the echo should work correctly.
14315 # The option is referenced via a variable to avoid confusing sed.
14316 lt_compile=`echo "$ac_compile" | $SED \
14317 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14318 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14319 -e 's:$: $lt_compiler_flag:'`
14320 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14321 (eval "$lt_compile" 2>conftest.err)
14322 ac_status=$?
14323 cat conftest.err >&5
14324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14325 if (exit $ac_status) && test -s "$ac_outfile"; then
14326 # The compiler can only warn and ignore the option if not recognized
14327 # So say no if there are warnings other than the usual output.
14328 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14329 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14330 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14331 lt_cv_prog_compiler_pic_works_CXX=yes
14334 $RM conftest*
14337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14338 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14340 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14341 case $lt_prog_compiler_pic_CXX in
14342 "" | " "*) ;;
14343 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14344 esac
14345 else
14346 lt_prog_compiler_pic_CXX=
14347 lt_prog_compiler_can_build_shared_CXX=no
14355 # Check to make sure the static flag actually works.
14357 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14359 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14360 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
14361 $as_echo_n "(cached) " >&6
14362 else
14363 lt_cv_prog_compiler_static_works_CXX=no
14364 save_LDFLAGS="$LDFLAGS"
14365 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14366 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14367 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14368 # The linker can only warn and ignore the option if not recognized
14369 # So say no if there are warnings
14370 if test -s conftest.err; then
14371 # Append any errors to the config.log.
14372 cat conftest.err 1>&5
14373 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14374 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14375 if diff conftest.exp conftest.er2 >/dev/null; then
14376 lt_cv_prog_compiler_static_works_CXX=yes
14378 else
14379 lt_cv_prog_compiler_static_works_CXX=yes
14382 $RM -r conftest*
14383 LDFLAGS="$save_LDFLAGS"
14386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14387 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14389 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14391 else
14392 lt_prog_compiler_static_CXX=
14398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14399 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14400 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14401 $as_echo_n "(cached) " >&6
14402 else
14403 lt_cv_prog_compiler_c_o_CXX=no
14404 $RM -r conftest 2>/dev/null
14405 mkdir conftest
14406 cd conftest
14407 mkdir out
14408 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14410 lt_compiler_flag="-o out/conftest2.$ac_objext"
14411 # Insert the option either (1) after the last *FLAGS variable, or
14412 # (2) before a word containing "conftest.", or (3) at the end.
14413 # Note that $ac_compile itself does not contain backslashes and begins
14414 # with a dollar sign (not a hyphen), so the echo should work correctly.
14415 lt_compile=`echo "$ac_compile" | $SED \
14416 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14417 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14418 -e 's:$: $lt_compiler_flag:'`
14419 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14420 (eval "$lt_compile" 2>out/conftest.err)
14421 ac_status=$?
14422 cat out/conftest.err >&5
14423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14424 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14425 then
14426 # The compiler can only warn and ignore the option if not recognized
14427 # So say no if there are warnings
14428 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14429 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14430 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14431 lt_cv_prog_compiler_c_o_CXX=yes
14434 chmod u+w . 2>&5
14435 $RM conftest*
14436 # SGI C++ compiler will create directory out/ii_files/ for
14437 # template instantiation
14438 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14439 $RM out/* && rmdir out
14440 cd ..
14441 $RM -r conftest
14442 $RM conftest*
14445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14446 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14451 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14452 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14453 $as_echo_n "(cached) " >&6
14454 else
14455 lt_cv_prog_compiler_c_o_CXX=no
14456 $RM -r conftest 2>/dev/null
14457 mkdir conftest
14458 cd conftest
14459 mkdir out
14460 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14462 lt_compiler_flag="-o out/conftest2.$ac_objext"
14463 # Insert the option either (1) after the last *FLAGS variable, or
14464 # (2) before a word containing "conftest.", or (3) at the end.
14465 # Note that $ac_compile itself does not contain backslashes and begins
14466 # with a dollar sign (not a hyphen), so the echo should work correctly.
14467 lt_compile=`echo "$ac_compile" | $SED \
14468 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14469 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14470 -e 's:$: $lt_compiler_flag:'`
14471 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14472 (eval "$lt_compile" 2>out/conftest.err)
14473 ac_status=$?
14474 cat out/conftest.err >&5
14475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14476 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14477 then
14478 # The compiler can only warn and ignore the option if not recognized
14479 # So say no if there are warnings
14480 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14481 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14482 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14483 lt_cv_prog_compiler_c_o_CXX=yes
14486 chmod u+w . 2>&5
14487 $RM conftest*
14488 # SGI C++ compiler will create directory out/ii_files/ for
14489 # template instantiation
14490 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14491 $RM out/* && rmdir out
14492 cd ..
14493 $RM -r conftest
14494 $RM conftest*
14497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14498 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14503 hard_links="nottested"
14504 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14505 # do not overwrite the value of need_locks provided by the user
14506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14507 $as_echo_n "checking if we can lock with hard links... " >&6; }
14508 hard_links=yes
14509 $RM conftest*
14510 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14511 touch conftest.a
14512 ln conftest.a conftest.b 2>&5 || hard_links=no
14513 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14515 $as_echo "$hard_links" >&6; }
14516 if test "$hard_links" = no; then
14517 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14518 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14519 need_locks=warn
14521 else
14522 need_locks=no
14527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14528 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14530 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14531 case $host_os in
14532 aix[4-9]*)
14533 # If we're using GNU nm, then we don't want the "-C" option.
14534 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14535 # Also, AIX nm treats weak defined symbols like other global defined
14536 # symbols, whereas GNU nm marks them as "W".
14537 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14538 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'
14539 else
14540 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'
14543 pw32*)
14544 export_symbols_cmds_CXX="$ltdll_cmds"
14546 cygwin* | mingw* | cegcc*)
14547 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'
14550 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14552 esac
14553 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14556 $as_echo "$ld_shlibs_CXX" >&6; }
14557 test "$ld_shlibs_CXX" = no && can_build_shared=no
14559 with_gnu_ld_CXX=$with_gnu_ld
14567 # Do we need to explicitly link libc?
14569 case "x$archive_cmds_need_lc_CXX" in
14570 x|xyes)
14571 # Assume -lc should be added
14572 archive_cmds_need_lc_CXX=yes
14574 if test "$enable_shared" = yes && test "$GCC" = yes; then
14575 case $archive_cmds_CXX in
14576 *'~'*)
14577 # FIXME: we may have to deal with multi-command sequences.
14579 '$CC '*)
14580 # Test whether the compiler implicitly links with -lc since on some
14581 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14582 # to ld, don't add -lc before -lgcc.
14583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14584 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14585 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
14586 $as_echo_n "(cached) " >&6
14587 else
14588 $RM conftest*
14589 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14591 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14592 (eval $ac_compile) 2>&5
14593 ac_status=$?
14594 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14595 test $ac_status = 0; } 2>conftest.err; then
14596 soname=conftest
14597 lib=conftest
14598 libobjs=conftest.$ac_objext
14599 deplibs=
14600 wl=$lt_prog_compiler_wl_CXX
14601 pic_flag=$lt_prog_compiler_pic_CXX
14602 compiler_flags=-v
14603 linker_flags=-v
14604 verstring=
14605 output_objdir=.
14606 libname=conftest
14607 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14608 allow_undefined_flag_CXX=
14609 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14610 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14611 ac_status=$?
14612 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14613 test $ac_status = 0; }
14614 then
14615 lt_cv_archive_cmds_need_lc_CXX=no
14616 else
14617 lt_cv_archive_cmds_need_lc_CXX=yes
14619 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14620 else
14621 cat conftest.err 1>&5
14623 $RM conftest*
14626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14627 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14628 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14630 esac
14633 esac
14698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14699 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14701 library_names_spec=
14702 libname_spec='lib$name'
14703 soname_spec=
14704 shrext_cmds=".so"
14705 postinstall_cmds=
14706 postuninstall_cmds=
14707 finish_cmds=
14708 finish_eval=
14709 shlibpath_var=
14710 shlibpath_overrides_runpath=unknown
14711 version_type=none
14712 dynamic_linker="$host_os ld.so"
14713 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14714 need_lib_prefix=unknown
14715 hardcode_into_libs=no
14717 # when you set need_version to no, make sure it does not cause -set_version
14718 # flags to be left without arguments
14719 need_version=unknown
14721 case $host_os in
14722 aix3*)
14723 version_type=linux
14724 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14725 shlibpath_var=LIBPATH
14727 # AIX 3 has no versioning support, so we append a major version to the name.
14728 soname_spec='${libname}${release}${shared_ext}$major'
14731 aix[4-9]*)
14732 version_type=linux
14733 need_lib_prefix=no
14734 need_version=no
14735 hardcode_into_libs=yes
14736 if test "$host_cpu" = ia64; then
14737 # AIX 5 supports IA64
14738 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14739 shlibpath_var=LD_LIBRARY_PATH
14740 else
14741 # With GCC up to 2.95.x, collect2 would create an import file
14742 # for dependence libraries. The import file would start with
14743 # the line `#! .'. This would cause the generated library to
14744 # depend on `.', always an invalid library. This was fixed in
14745 # development snapshots of GCC prior to 3.0.
14746 case $host_os in
14747 aix4 | aix4.[01] | aix4.[01].*)
14748 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14749 echo ' yes '
14750 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14752 else
14753 can_build_shared=no
14756 esac
14757 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14758 # soname into executable. Probably we can add versioning support to
14759 # collect2, so additional links can be useful in future.
14760 if test "$aix_use_runtimelinking" = yes; then
14761 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14762 # instead of lib<name>.a to let people know that these are not
14763 # typical AIX shared libraries.
14764 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14765 else
14766 # We preserve .a as extension for shared libraries through AIX4.2
14767 # and later when we are not doing run time linking.
14768 library_names_spec='${libname}${release}.a $libname.a'
14769 soname_spec='${libname}${release}${shared_ext}$major'
14771 shlibpath_var=LIBPATH
14775 amigaos*)
14776 case $host_cpu in
14777 powerpc)
14778 # Since July 2007 AmigaOS4 officially supports .so libraries.
14779 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14780 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14782 m68k)
14783 library_names_spec='$libname.ixlibrary $libname.a'
14784 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14785 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'
14787 esac
14790 beos*)
14791 library_names_spec='${libname}${shared_ext}'
14792 dynamic_linker="$host_os ld.so"
14793 shlibpath_var=LIBRARY_PATH
14796 bsdi[45]*)
14797 version_type=linux
14798 need_version=no
14799 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14800 soname_spec='${libname}${release}${shared_ext}$major'
14801 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14802 shlibpath_var=LD_LIBRARY_PATH
14803 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14804 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14805 # the default ld.so.conf also contains /usr/contrib/lib and
14806 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14807 # libtool to hard-code these into programs
14810 cygwin* | mingw* | pw32* | cegcc*)
14811 version_type=windows
14812 shrext_cmds=".dll"
14813 need_version=no
14814 need_lib_prefix=no
14816 case $GCC,$host_os in
14817 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14818 library_names_spec='$libname.dll.a'
14819 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14820 postinstall_cmds='base_file=`basename \${file}`~
14821 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14822 dldir=$destdir/`dirname \$dlpath`~
14823 test -d \$dldir || mkdir -p \$dldir~
14824 $install_prog $dir/$dlname \$dldir/$dlname~
14825 chmod a+x \$dldir/$dlname~
14826 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14827 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14829 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14830 dlpath=$dir/\$dldll~
14831 $RM \$dlpath'
14832 shlibpath_overrides_runpath=yes
14834 case $host_os in
14835 cygwin*)
14836 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14837 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14840 mingw* | cegcc*)
14841 # MinGW DLLs use traditional 'lib' prefix
14842 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14844 pw32*)
14845 # pw32 DLLs use 'pw' prefix rather than 'lib'
14846 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14848 esac
14852 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14854 esac
14855 dynamic_linker='Win32 ld.exe'
14856 # FIXME: first we should search . and the directory the executable is in
14857 shlibpath_var=PATH
14860 darwin* | rhapsody*)
14861 dynamic_linker="$host_os dyld"
14862 version_type=darwin
14863 need_lib_prefix=no
14864 need_version=no
14865 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14866 soname_spec='${libname}${release}${major}$shared_ext'
14867 shlibpath_overrides_runpath=yes
14868 shlibpath_var=DYLD_LIBRARY_PATH
14869 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14871 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14874 dgux*)
14875 version_type=linux
14876 need_lib_prefix=no
14877 need_version=no
14878 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14879 soname_spec='${libname}${release}${shared_ext}$major'
14880 shlibpath_var=LD_LIBRARY_PATH
14883 freebsd* | dragonfly*)
14884 # DragonFly does not have aout. When/if they implement a new
14885 # versioning mechanism, adjust this.
14886 if test -x /usr/bin/objformat; then
14887 objformat=`/usr/bin/objformat`
14888 else
14889 case $host_os in
14890 freebsd[23].*) objformat=aout ;;
14891 *) objformat=elf ;;
14892 esac
14894 version_type=freebsd-$objformat
14895 case $version_type in
14896 freebsd-elf*)
14897 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14898 need_version=no
14899 need_lib_prefix=no
14901 freebsd-*)
14902 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14903 need_version=yes
14905 esac
14906 shlibpath_var=LD_LIBRARY_PATH
14907 case $host_os in
14908 freebsd2.*)
14909 shlibpath_overrides_runpath=yes
14911 freebsd3.[01]* | freebsdelf3.[01]*)
14912 shlibpath_overrides_runpath=yes
14913 hardcode_into_libs=yes
14915 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14916 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14917 shlibpath_overrides_runpath=no
14918 hardcode_into_libs=yes
14920 *) # from 4.6 on, and DragonFly
14921 shlibpath_overrides_runpath=yes
14922 hardcode_into_libs=yes
14924 esac
14927 haiku*)
14928 version_type=linux
14929 need_lib_prefix=no
14930 need_version=no
14931 dynamic_linker="$host_os runtime_loader"
14932 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14933 soname_spec='${libname}${release}${shared_ext}$major'
14934 shlibpath_var=LIBRARY_PATH
14935 shlibpath_overrides_runpath=yes
14936 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
14937 hardcode_into_libs=yes
14940 hpux9* | hpux10* | hpux11*)
14941 # Give a soname corresponding to the major version so that dld.sl refuses to
14942 # link against other versions.
14943 version_type=sunos
14944 need_lib_prefix=no
14945 need_version=no
14946 case $host_cpu in
14947 ia64*)
14948 shrext_cmds='.so'
14949 hardcode_into_libs=yes
14950 dynamic_linker="$host_os dld.so"
14951 shlibpath_var=LD_LIBRARY_PATH
14952 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14953 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14954 soname_spec='${libname}${release}${shared_ext}$major'
14955 if test "X$HPUX_IA64_MODE" = X32; then
14956 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14957 else
14958 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14960 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14962 hppa*64*)
14963 shrext_cmds='.sl'
14964 hardcode_into_libs=yes
14965 dynamic_linker="$host_os dld.sl"
14966 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14967 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14968 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14969 soname_spec='${libname}${release}${shared_ext}$major'
14970 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14971 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14974 shrext_cmds='.sl'
14975 dynamic_linker="$host_os dld.sl"
14976 shlibpath_var=SHLIB_PATH
14977 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14978 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14979 soname_spec='${libname}${release}${shared_ext}$major'
14981 esac
14982 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14983 postinstall_cmds='chmod 555 $lib'
14984 # or fails outright, so override atomically:
14985 install_override_mode=555
14988 interix[3-9]*)
14989 version_type=linux
14990 need_lib_prefix=no
14991 need_version=no
14992 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14993 soname_spec='${libname}${release}${shared_ext}$major'
14994 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14995 shlibpath_var=LD_LIBRARY_PATH
14996 shlibpath_overrides_runpath=no
14997 hardcode_into_libs=yes
15000 irix5* | irix6* | nonstopux*)
15001 case $host_os in
15002 nonstopux*) version_type=nonstopux ;;
15004 if test "$lt_cv_prog_gnu_ld" = yes; then
15005 version_type=linux
15006 else
15007 version_type=irix
15008 fi ;;
15009 esac
15010 need_lib_prefix=no
15011 need_version=no
15012 soname_spec='${libname}${release}${shared_ext}$major'
15013 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15014 case $host_os in
15015 irix5* | nonstopux*)
15016 libsuff= shlibsuff=
15019 case $LD in # libtool.m4 will add one of these switches to LD
15020 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15021 libsuff= shlibsuff= libmagic=32-bit;;
15022 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15023 libsuff=32 shlibsuff=N32 libmagic=N32;;
15024 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15025 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15026 *) libsuff= shlibsuff= libmagic=never-match;;
15027 esac
15029 esac
15030 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15031 shlibpath_overrides_runpath=no
15032 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15033 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15034 hardcode_into_libs=yes
15037 # No shared lib support for Linux oldld, aout, or coff.
15038 linux*oldld* | linux*aout* | linux*coff*)
15039 dynamic_linker=no
15042 # This must be Linux ELF.
15044 # uclinux* changes (here and below) have been submitted to the libtool
15045 # project, but have not yet been accepted: they are GCC-local changes
15046 # for the time being. (See
15047 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
15048 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi)
15049 version_type=linux
15050 need_lib_prefix=no
15051 need_version=no
15052 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15053 soname_spec='${libname}${release}${shared_ext}$major'
15054 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15055 shlibpath_var=LD_LIBRARY_PATH
15056 shlibpath_overrides_runpath=no
15058 # Some binutils ld are patched to set DT_RUNPATH
15059 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
15060 $as_echo_n "(cached) " >&6
15061 else
15062 lt_cv_shlibpath_overrides_runpath=no
15063 save_LDFLAGS=$LDFLAGS
15064 save_libdir=$libdir
15065 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15066 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15068 /* end confdefs.h. */
15071 main ()
15075 return 0;
15077 _ACEOF
15078 if ac_fn_cxx_try_link "$LINENO"; then :
15079 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15080 lt_cv_shlibpath_overrides_runpath=yes
15083 rm -f core conftest.err conftest.$ac_objext \
15084 conftest$ac_exeext conftest.$ac_ext
15085 LDFLAGS=$save_LDFLAGS
15086 libdir=$save_libdir
15090 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15092 # This implies no fast_install, which is unacceptable.
15093 # Some rework will be needed to allow for fast_install
15094 # before this can be enabled.
15095 hardcode_into_libs=yes
15097 # Append ld.so.conf contents to the search path
15098 if test -f /etc/ld.so.conf; then
15099 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' ' '`
15100 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15103 # We used to test for /lib/ld.so.1 and disable shared libraries on
15104 # powerpc, because MkLinux only supported shared libraries with the
15105 # GNU dynamic linker. Since this was broken with cross compilers,
15106 # most powerpc-linux boxes support dynamic linking these days and
15107 # people can always --disable-shared, the test was removed, and we
15108 # assume the GNU/Linux dynamic linker is in use.
15109 dynamic_linker='GNU/Linux ld.so'
15112 netbsd*)
15113 version_type=sunos
15114 need_lib_prefix=no
15115 need_version=no
15116 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15117 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15118 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15119 dynamic_linker='NetBSD (a.out) ld.so'
15120 else
15121 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15122 soname_spec='${libname}${release}${shared_ext}$major'
15123 dynamic_linker='NetBSD ld.elf_so'
15125 shlibpath_var=LD_LIBRARY_PATH
15126 shlibpath_overrides_runpath=yes
15127 hardcode_into_libs=yes
15130 newsos6)
15131 version_type=linux
15132 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15133 shlibpath_var=LD_LIBRARY_PATH
15134 shlibpath_overrides_runpath=yes
15137 *nto* | *qnx*)
15138 version_type=qnx
15139 need_lib_prefix=no
15140 need_version=no
15141 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15142 soname_spec='${libname}${release}${shared_ext}$major'
15143 shlibpath_var=LD_LIBRARY_PATH
15144 shlibpath_overrides_runpath=no
15145 hardcode_into_libs=yes
15146 dynamic_linker='ldqnx.so'
15149 openbsd*)
15150 version_type=sunos
15151 sys_lib_dlsearch_path_spec="/usr/lib"
15152 need_lib_prefix=no
15153 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15154 case $host_os in
15155 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15156 *) need_version=no ;;
15157 esac
15158 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15159 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15160 shlibpath_var=LD_LIBRARY_PATH
15161 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15162 case $host_os in
15163 openbsd2.[89] | openbsd2.[89].*)
15164 shlibpath_overrides_runpath=no
15167 shlibpath_overrides_runpath=yes
15169 esac
15170 else
15171 shlibpath_overrides_runpath=yes
15175 os2*)
15176 libname_spec='$name'
15177 shrext_cmds=".dll"
15178 need_lib_prefix=no
15179 library_names_spec='$libname${shared_ext} $libname.a'
15180 dynamic_linker='OS/2 ld.exe'
15181 shlibpath_var=LIBPATH
15184 osf3* | osf4* | osf5*)
15185 version_type=osf
15186 need_lib_prefix=no
15187 need_version=no
15188 soname_spec='${libname}${release}${shared_ext}$major'
15189 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15190 shlibpath_var=LD_LIBRARY_PATH
15191 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15192 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15195 rdos*)
15196 dynamic_linker=no
15199 solaris*)
15200 version_type=linux
15201 need_lib_prefix=no
15202 need_version=no
15203 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15204 soname_spec='${libname}${release}${shared_ext}$major'
15205 shlibpath_var=LD_LIBRARY_PATH
15206 shlibpath_overrides_runpath=yes
15207 hardcode_into_libs=yes
15208 # ldd complains unless libraries are executable
15209 postinstall_cmds='chmod +x $lib'
15212 sunos4*)
15213 version_type=sunos
15214 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15215 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15216 shlibpath_var=LD_LIBRARY_PATH
15217 shlibpath_overrides_runpath=yes
15218 if test "$with_gnu_ld" = yes; then
15219 need_lib_prefix=no
15221 need_version=yes
15224 sysv4 | sysv4.3*)
15225 version_type=linux
15226 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15227 soname_spec='${libname}${release}${shared_ext}$major'
15228 shlibpath_var=LD_LIBRARY_PATH
15229 case $host_vendor in
15230 sni)
15231 shlibpath_overrides_runpath=no
15232 need_lib_prefix=no
15233 runpath_var=LD_RUN_PATH
15235 siemens)
15236 need_lib_prefix=no
15238 motorola)
15239 need_lib_prefix=no
15240 need_version=no
15241 shlibpath_overrides_runpath=no
15242 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15244 esac
15247 sysv4*MP*)
15248 if test -d /usr/nec ;then
15249 version_type=linux
15250 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15251 soname_spec='$libname${shared_ext}.$major'
15252 shlibpath_var=LD_LIBRARY_PATH
15256 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15257 version_type=freebsd-elf
15258 need_lib_prefix=no
15259 need_version=no
15260 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15261 soname_spec='${libname}${release}${shared_ext}$major'
15262 shlibpath_var=LD_LIBRARY_PATH
15263 shlibpath_overrides_runpath=yes
15264 hardcode_into_libs=yes
15265 if test "$with_gnu_ld" = yes; then
15266 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15267 else
15268 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15269 case $host_os in
15270 sco3.2v5*)
15271 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15273 esac
15275 sys_lib_dlsearch_path_spec='/usr/lib'
15278 tpf*)
15279 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15280 version_type=linux
15281 need_lib_prefix=no
15282 need_version=no
15283 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15284 shlibpath_var=LD_LIBRARY_PATH
15285 shlibpath_overrides_runpath=no
15286 hardcode_into_libs=yes
15289 uts4*)
15290 version_type=linux
15291 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15292 soname_spec='${libname}${release}${shared_ext}$major'
15293 shlibpath_var=LD_LIBRARY_PATH
15296 # Shared libraries for VwWorks, >= 7 only at this stage
15297 # and (fpic) still incompatible with "large" code models
15298 # in a few configurations. Only for RTP mode in any case,
15299 # and upon explicit request at configure time.
15300 vxworks7*)
15301 dynamic_linker=no
15302 case ${with_multisubdir}-${enable_shared} in
15303 *large*)
15305 *mrtp*-yes)
15306 version_type=linux
15307 need_lib_prefix=no
15308 need_version=no
15309 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15310 soname_spec='${libname}${release}${shared_ext}$major'
15311 dynamic_linker="$host_os module_loader"
15313 esac
15316 dynamic_linker=no
15318 esac
15319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15320 $as_echo "$dynamic_linker" >&6; }
15321 test "$dynamic_linker" = no && can_build_shared=no
15323 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15324 if test "$GCC" = yes; then
15325 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15328 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15329 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15331 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15332 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15373 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15374 hardcode_action_CXX=
15375 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15376 test -n "$runpath_var_CXX" ||
15377 test "X$hardcode_automatic_CXX" = "Xyes" ; then
15379 # We can hardcode non-existent directories.
15380 if test "$hardcode_direct_CXX" != no &&
15381 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15382 # have to relink, otherwise we might link with an installed library
15383 # when we should be linking with a yet-to-be-installed one
15384 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15385 test "$hardcode_minus_L_CXX" != no; then
15386 # Linking always hardcodes the temporary library directory.
15387 hardcode_action_CXX=relink
15388 else
15389 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15390 hardcode_action_CXX=immediate
15392 else
15393 # We cannot hardcode anything, or else we can only hardcode existing
15394 # directories.
15395 hardcode_action_CXX=unsupported
15397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15398 $as_echo "$hardcode_action_CXX" >&6; }
15400 if test "$hardcode_action_CXX" = relink ||
15401 test "$inherit_rpath_CXX" = yes; then
15402 # Fast installation is not supported
15403 enable_fast_install=no
15404 elif test "$shlibpath_overrides_runpath" = yes ||
15405 test "$enable_shared" = no; then
15406 # Fast installation is not necessary
15407 enable_fast_install=needless
15416 fi # test -n "$compiler"
15418 CC=$lt_save_CC
15419 LDCXX=$LD
15420 LD=$lt_save_LD
15421 GCC=$lt_save_GCC
15422 with_gnu_ld=$lt_save_with_gnu_ld
15423 lt_cv_path_LDCXX=$lt_cv_path_LD
15424 lt_cv_path_LD=$lt_save_path_LD
15425 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15426 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15427 fi # test "$_lt_caught_CXX_error" != yes
15429 ac_ext=c
15430 ac_cpp='$CPP $CPPFLAGS'
15431 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15432 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15433 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15447 ac_config_commands="$ac_config_commands libtool"
15452 # Only expand once:
15459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
15460 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
15461 # Check whether --enable-maintainer-mode was given.
15462 if test "${enable_maintainer_mode+set}" = set; then :
15463 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
15464 else
15465 USE_MAINTAINER_MODE=no
15468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
15469 $as_echo "$USE_MAINTAINER_MODE" >&6; }
15470 if test $USE_MAINTAINER_MODE = yes; then
15471 MAINTAINER_MODE_TRUE=
15472 MAINTAINER_MODE_FALSE='#'
15473 else
15474 MAINTAINER_MODE_TRUE='#'
15475 MAINTAINER_MODE_FALSE=
15478 MAINT=$MAINTAINER_MODE_TRUE
15482 # For libtool versioning info, format is CURRENT:REVISION:AGE
15483 libtool_VERSION=1:0:0
15486 # Check header files.
15487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
15488 $as_echo_n "checking for ANSI C header files... " >&6; }
15489 if ${ac_cv_header_stdc+:} false; then :
15490 $as_echo_n "(cached) " >&6
15491 else
15492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15493 /* end confdefs.h. */
15494 #include <stdlib.h>
15495 #include <stdarg.h>
15496 #include <string.h>
15497 #include <float.h>
15500 main ()
15504 return 0;
15506 _ACEOF
15507 if ac_fn_c_try_compile "$LINENO"; then :
15508 ac_cv_header_stdc=yes
15509 else
15510 ac_cv_header_stdc=no
15512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15514 if test $ac_cv_header_stdc = yes; then
15515 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
15516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15517 /* end confdefs.h. */
15518 #include <string.h>
15520 _ACEOF
15521 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15522 $EGREP "memchr" >/dev/null 2>&1; then :
15524 else
15525 ac_cv_header_stdc=no
15527 rm -f conftest*
15531 if test $ac_cv_header_stdc = yes; then
15532 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
15533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15534 /* end confdefs.h. */
15535 #include <stdlib.h>
15537 _ACEOF
15538 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15539 $EGREP "free" >/dev/null 2>&1; then :
15541 else
15542 ac_cv_header_stdc=no
15544 rm -f conftest*
15548 if test $ac_cv_header_stdc = yes; then
15549 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
15550 if test "$cross_compiling" = yes; then :
15552 else
15553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15554 /* end confdefs.h. */
15555 #include <ctype.h>
15556 #include <stdlib.h>
15557 #if ((' ' & 0x0FF) == 0x020)
15558 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15559 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15560 #else
15561 # define ISLOWER(c) \
15562 (('a' <= (c) && (c) <= 'i') \
15563 || ('j' <= (c) && (c) <= 'r') \
15564 || ('s' <= (c) && (c) <= 'z'))
15565 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15566 #endif
15568 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15570 main ()
15572 int i;
15573 for (i = 0; i < 256; i++)
15574 if (XOR (islower (i), ISLOWER (i))
15575 || toupper (i) != TOUPPER (i))
15576 return 2;
15577 return 0;
15579 _ACEOF
15580 if ac_fn_c_try_run "$LINENO"; then :
15582 else
15583 ac_cv_header_stdc=no
15585 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15586 conftest.$ac_objext conftest.beam conftest.$ac_ext
15591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
15592 $as_echo "$ac_cv_header_stdc" >&6; }
15593 if test $ac_cv_header_stdc = yes; then
15595 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
15599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
15600 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
15601 if ${ac_cv_header_time+:} false; then :
15602 $as_echo_n "(cached) " >&6
15603 else
15604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15605 /* end confdefs.h. */
15606 #include <sys/types.h>
15607 #include <sys/time.h>
15608 #include <time.h>
15611 main ()
15613 if ((struct tm *) 0)
15614 return 0;
15616 return 0;
15618 _ACEOF
15619 if ac_fn_c_try_compile "$LINENO"; then :
15620 ac_cv_header_time=yes
15621 else
15622 ac_cv_header_time=no
15624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
15627 $as_echo "$ac_cv_header_time" >&6; }
15628 if test $ac_cv_header_time = yes; then
15630 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
15634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
15635 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
15636 if ${gcc_cv_header_string+:} false; then :
15637 $as_echo_n "(cached) " >&6
15638 else
15639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15640 /* end confdefs.h. */
15641 #include <string.h>
15642 #include <strings.h>
15644 main ()
15648 return 0;
15650 _ACEOF
15651 if ac_fn_c_try_compile "$LINENO"; then :
15652 gcc_cv_header_string=yes
15653 else
15654 gcc_cv_header_string=no
15656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
15659 $as_echo "$gcc_cv_header_string" >&6; }
15660 if test $gcc_cv_header_string = yes; then
15662 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
15666 for ac_header in unistd.h semaphore.h sys/time.h sys/auxv.h malloc.h
15667 do :
15668 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15669 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15670 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15671 cat >>confdefs.h <<_ACEOF
15672 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15673 _ACEOF
15677 done
15682 inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'`
15684 acx_cv_header_stdint=stddef.h
15685 acx_cv_header_stdint_kind="(already complete)"
15686 for i in stdint.h $inttype_headers; do
15687 unset ac_cv_type_uintptr_t
15688 unset ac_cv_type_uintmax_t
15689 unset ac_cv_type_int_least32_t
15690 unset ac_cv_type_int_fast32_t
15691 unset ac_cv_type_uint64_t
15692 $as_echo_n "looking for a compliant stdint.h in $i, " >&6
15693 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "#include <sys/types.h>
15694 #include <$i>
15696 if test "x$ac_cv_type_uintmax_t" = xyes; then :
15697 acx_cv_header_stdint=$i
15698 else
15699 continue
15702 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
15703 #include <$i>
15705 if test "x$ac_cv_type_uintptr_t" = xyes; then :
15707 else
15708 acx_cv_header_stdint_kind="(mostly complete)"
15711 ac_fn_c_check_type "$LINENO" "int_least32_t" "ac_cv_type_int_least32_t" "#include <sys/types.h>
15712 #include <$i>
15714 if test "x$ac_cv_type_int_least32_t" = xyes; then :
15716 else
15717 acx_cv_header_stdint_kind="(mostly complete)"
15720 ac_fn_c_check_type "$LINENO" "int_fast32_t" "ac_cv_type_int_fast32_t" "#include <sys/types.h>
15721 #include <$i>
15723 if test "x$ac_cv_type_int_fast32_t" = xyes; then :
15725 else
15726 acx_cv_header_stdint_kind="(mostly complete)"
15729 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
15730 #include <$i>
15732 if test "x$ac_cv_type_uint64_t" = xyes; then :
15734 else
15735 acx_cv_header_stdint_kind="(lacks uint64_t)"
15738 break
15739 done
15740 if test "$acx_cv_header_stdint" = stddef.h; then
15741 acx_cv_header_stdint_kind="(lacks uintmax_t)"
15742 for i in stdint.h $inttype_headers; do
15743 unset ac_cv_type_uintptr_t
15744 unset ac_cv_type_uint32_t
15745 unset ac_cv_type_uint64_t
15746 $as_echo_n "looking for an incomplete stdint.h in $i, " >&6
15747 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include <sys/types.h>
15748 #include <$i>
15750 if test "x$ac_cv_type_uint32_t" = xyes; then :
15751 acx_cv_header_stdint=$i
15752 else
15753 continue
15756 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
15757 #include <$i>
15759 if test "x$ac_cv_type_uint64_t" = xyes; then :
15763 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
15764 #include <$i>
15766 if test "x$ac_cv_type_uintptr_t" = xyes; then :
15770 break
15771 done
15773 if test "$acx_cv_header_stdint" = stddef.h; then
15774 acx_cv_header_stdint_kind="(u_intXX_t style)"
15775 for i in sys/types.h $inttype_headers; do
15776 unset ac_cv_type_u_int32_t
15777 unset ac_cv_type_u_int64_t
15778 $as_echo_n "looking for u_intXX_t types in $i, " >&6
15779 ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "#include <sys/types.h>
15780 #include <$i>
15782 if test "x$ac_cv_type_u_int32_t" = xyes; then :
15783 acx_cv_header_stdint=$i
15784 else
15785 continue
15788 ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "#include <sys/types.h>
15789 #include <$i>
15791 if test "x$ac_cv_type_u_int64_t" = xyes; then :
15795 break
15796 done
15798 if test "$acx_cv_header_stdint" = stddef.h; then
15799 acx_cv_header_stdint_kind="(using manual detection)"
15802 test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
15803 test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
15804 test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
15805 test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
15806 test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
15808 # ----------------- Summarize what we found so far
15810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what to include in gstdint.h" >&5
15811 $as_echo_n "checking what to include in gstdint.h... " >&6; }
15813 case `$as_basename -- gstdint.h ||
15814 $as_expr X/gstdint.h : '.*/\([^/][^/]*\)/*$' \| \
15815 Xgstdint.h : 'X\(//\)$' \| \
15816 Xgstdint.h : 'X\(/\)' \| . 2>/dev/null ||
15817 $as_echo X/gstdint.h |
15818 sed '/^.*\/\([^/][^/]*\)\/*$/{
15819 s//\1/
15822 /^X\/\(\/\/\)$/{
15823 s//\1/
15826 /^X\/\(\/\).*/{
15827 s//\1/
15830 s/.*/./; q'` in
15831 stdint.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
15832 $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
15833 inttypes.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
15834 $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
15835 *) ;;
15836 esac
15838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
15839 $as_echo "$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6; }
15841 # ----------------- done included file, check C basic types --------
15843 # Lacking an uintptr_t? Test size of void *
15844 case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
15845 stddef.h:* | *:no) # The cast to long int works around a bug in the HP C Compiler
15846 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15847 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15848 # This bug is HP SR number 8606223364.
15849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
15850 $as_echo_n "checking size of void *... " >&6; }
15851 if ${ac_cv_sizeof_void_p+:} false; then :
15852 $as_echo_n "(cached) " >&6
15853 else
15854 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
15856 else
15857 if test "$ac_cv_type_void_p" = yes; then
15858 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15859 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15860 as_fn_error 77 "cannot compute sizeof (void *)
15861 See \`config.log' for more details" "$LINENO" 5; }
15862 else
15863 ac_cv_sizeof_void_p=0
15868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
15869 $as_echo "$ac_cv_sizeof_void_p" >&6; }
15873 cat >>confdefs.h <<_ACEOF
15874 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
15875 _ACEOF
15878 esac
15880 # Lacking an uint64_t? Test size of long
15881 case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
15882 stddef.h:*:* | *:no:no) # The cast to long int works around a bug in the HP C Compiler
15883 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15884 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15885 # This bug is HP SR number 8606223364.
15886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
15887 $as_echo_n "checking size of long... " >&6; }
15888 if ${ac_cv_sizeof_long+:} false; then :
15889 $as_echo_n "(cached) " >&6
15890 else
15891 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
15893 else
15894 if test "$ac_cv_type_long" = yes; then
15895 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15896 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15897 as_fn_error 77 "cannot compute sizeof (long)
15898 See \`config.log' for more details" "$LINENO" 5; }
15899 else
15900 ac_cv_sizeof_long=0
15905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
15906 $as_echo "$ac_cv_sizeof_long" >&6; }
15910 cat >>confdefs.h <<_ACEOF
15911 #define SIZEOF_LONG $ac_cv_sizeof_long
15912 _ACEOF
15915 esac
15917 if test $acx_cv_header_stdint = stddef.h; then
15918 # Lacking a good header? Test size of everything and deduce all types.
15919 # The cast to long int works around a bug in the HP C Compiler
15920 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15921 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15922 # This bug is HP SR number 8606223364.
15923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
15924 $as_echo_n "checking size of int... " >&6; }
15925 if ${ac_cv_sizeof_int+:} false; then :
15926 $as_echo_n "(cached) " >&6
15927 else
15928 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
15930 else
15931 if test "$ac_cv_type_int" = yes; then
15932 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15933 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15934 as_fn_error 77 "cannot compute sizeof (int)
15935 See \`config.log' for more details" "$LINENO" 5; }
15936 else
15937 ac_cv_sizeof_int=0
15942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
15943 $as_echo "$ac_cv_sizeof_int" >&6; }
15947 cat >>confdefs.h <<_ACEOF
15948 #define SIZEOF_INT $ac_cv_sizeof_int
15949 _ACEOF
15952 # The cast to long int works around a bug in the HP C Compiler
15953 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15954 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15955 # This bug is HP SR number 8606223364.
15956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
15957 $as_echo_n "checking size of short... " >&6; }
15958 if ${ac_cv_sizeof_short+:} false; then :
15959 $as_echo_n "(cached) " >&6
15960 else
15961 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
15963 else
15964 if test "$ac_cv_type_short" = yes; then
15965 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15966 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15967 as_fn_error 77 "cannot compute sizeof (short)
15968 See \`config.log' for more details" "$LINENO" 5; }
15969 else
15970 ac_cv_sizeof_short=0
15975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
15976 $as_echo "$ac_cv_sizeof_short" >&6; }
15980 cat >>confdefs.h <<_ACEOF
15981 #define SIZEOF_SHORT $ac_cv_sizeof_short
15982 _ACEOF
15985 # The cast to long int works around a bug in the HP C Compiler
15986 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15987 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15988 # This bug is HP SR number 8606223364.
15989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
15990 $as_echo_n "checking size of char... " >&6; }
15991 if ${ac_cv_sizeof_char+:} false; then :
15992 $as_echo_n "(cached) " >&6
15993 else
15994 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
15996 else
15997 if test "$ac_cv_type_char" = yes; then
15998 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15999 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16000 as_fn_error 77 "cannot compute sizeof (char)
16001 See \`config.log' for more details" "$LINENO" 5; }
16002 else
16003 ac_cv_sizeof_char=0
16008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
16009 $as_echo "$ac_cv_sizeof_char" >&6; }
16013 cat >>confdefs.h <<_ACEOF
16014 #define SIZEOF_CHAR $ac_cv_sizeof_char
16015 _ACEOF
16019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int8_t" >&5
16020 $as_echo_n "checking for type equivalent to int8_t... " >&6; }
16021 case "$ac_cv_sizeof_char" in
16022 1) acx_cv_type_int8_t=char ;;
16023 *) as_fn_error $? "no 8-bit type, please report a bug" "$LINENO" 5
16024 esac
16025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int8_t" >&5
16026 $as_echo "$acx_cv_type_int8_t" >&6; }
16028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int16_t" >&5
16029 $as_echo_n "checking for type equivalent to int16_t... " >&6; }
16030 case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
16031 2:*) acx_cv_type_int16_t=int ;;
16032 *:2) acx_cv_type_int16_t=short ;;
16033 *) as_fn_error $? "no 16-bit type, please report a bug" "$LINENO" 5
16034 esac
16035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int16_t" >&5
16036 $as_echo "$acx_cv_type_int16_t" >&6; }
16038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int32_t" >&5
16039 $as_echo_n "checking for type equivalent to int32_t... " >&6; }
16040 case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
16041 4:*) acx_cv_type_int32_t=int ;;
16042 *:4) acx_cv_type_int32_t=long ;;
16043 *) as_fn_error $? "no 32-bit type, please report a bug" "$LINENO" 5
16044 esac
16045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int32_t" >&5
16046 $as_echo "$acx_cv_type_int32_t" >&6; }
16049 # These tests are here to make the output prettier
16051 if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
16052 case "$ac_cv_sizeof_long" in
16053 8) acx_cv_type_int64_t=long ;;
16054 esac
16055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int64_t" >&5
16056 $as_echo_n "checking for type equivalent to int64_t... " >&6; }
16057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
16058 $as_echo "${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6; }
16061 # Now we can use the above types
16063 if test "$ac_cv_type_uintptr_t" != yes; then
16064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to intptr_t" >&5
16065 $as_echo_n "checking for type equivalent to intptr_t... " >&6; }
16066 case $ac_cv_sizeof_void_p in
16067 2) acx_cv_type_intptr_t=int16_t ;;
16068 4) acx_cv_type_intptr_t=int32_t ;;
16069 8) acx_cv_type_intptr_t=int64_t ;;
16070 *) as_fn_error $? "no equivalent for intptr_t, please report a bug" "$LINENO" 5
16071 esac
16072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_intptr_t" >&5
16073 $as_echo "$acx_cv_type_intptr_t" >&6; }
16076 # ----------------- done all checks, emit header -------------
16077 ac_config_commands="$ac_config_commands gstdint.h"
16083 ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
16084 if test "x$ac_cv_header_sys_mman_h" = xyes; then :
16085 gcc_header_sys_mman_h=yes
16086 else
16087 gcc_header_sys_mman_h=no
16091 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
16092 if test "x$ac_cv_func_mmap" = xyes; then :
16093 gcc_func_mmap=yes
16094 else
16095 gcc_func_mmap=no
16098 if test "$gcc_header_sys_mman_h" != yes \
16099 || test "$gcc_func_mmap" != yes; then
16100 gcc_cv_func_mmap_file=no
16101 gcc_cv_func_mmap_dev_zero=no
16102 gcc_cv_func_mmap_anon=no
16103 else
16104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
16105 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
16106 if ${gcc_cv_func_mmap_file+:} false; then :
16107 $as_echo_n "(cached) " >&6
16108 else
16109 # Add a system to this blacklist if
16110 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
16111 # memory area containing the same data that you'd get if you applied
16112 # read() to the same fd. The only system known to have a problem here
16113 # is VMS, where text files have record structure.
16114 case "$host_os" in
16115 *vms* | ultrix*)
16116 gcc_cv_func_mmap_file=no ;;
16118 gcc_cv_func_mmap_file=yes;;
16119 esac
16121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
16122 $as_echo "$gcc_cv_func_mmap_file" >&6; }
16123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
16124 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
16125 if ${gcc_cv_func_mmap_dev_zero+:} false; then :
16126 $as_echo_n "(cached) " >&6
16127 else
16128 # Add a system to this blacklist if it has mmap() but /dev/zero
16129 # does not exist, or if mmapping /dev/zero does not give anonymous
16130 # zeroed pages with both the following properties:
16131 # 1. If you map N consecutive pages in with one call, and then
16132 # unmap any subset of those pages, the pages that were not
16133 # explicitly unmapped remain accessible.
16134 # 2. If you map two adjacent blocks of memory and then unmap them
16135 # both at once, they must both go away.
16136 # Systems known to be in this category are Windows (all variants),
16137 # VMS, and Darwin.
16138 case "$host_os" in
16139 *vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
16140 gcc_cv_func_mmap_dev_zero=no ;;
16142 gcc_cv_func_mmap_dev_zero=yes;;
16143 esac
16145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
16146 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
16148 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
16149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
16150 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
16151 if ${gcc_cv_decl_map_anon+:} false; then :
16152 $as_echo_n "(cached) " >&6
16153 else
16154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16155 /* end confdefs.h. */
16156 #include <sys/types.h>
16157 #include <sys/mman.h>
16158 #include <unistd.h>
16160 #ifndef MAP_ANONYMOUS
16161 #define MAP_ANONYMOUS MAP_ANON
16162 #endif
16165 main ()
16167 int n = MAP_ANONYMOUS;
16169 return 0;
16171 _ACEOF
16172 if ac_fn_c_try_compile "$LINENO"; then :
16173 gcc_cv_decl_map_anon=yes
16174 else
16175 gcc_cv_decl_map_anon=no
16177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
16180 $as_echo "$gcc_cv_decl_map_anon" >&6; }
16182 if test $gcc_cv_decl_map_anon = no; then
16183 gcc_cv_func_mmap_anon=no
16184 else
16185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
16186 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
16187 if ${gcc_cv_func_mmap_anon+:} false; then :
16188 $as_echo_n "(cached) " >&6
16189 else
16190 # Add a system to this blacklist if it has mmap() and MAP_ANON or
16191 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
16192 # doesn't give anonymous zeroed pages with the same properties listed
16193 # above for use of /dev/zero.
16194 # Systems known to be in this category are Windows, VMS, and SCO Unix.
16195 case "$host_os" in
16196 *vms* | cygwin* | pe | mingw* | sco* | udk* )
16197 gcc_cv_func_mmap_anon=no ;;
16199 gcc_cv_func_mmap_anon=yes;;
16200 esac
16202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
16203 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
16207 if test $gcc_cv_func_mmap_file = yes; then
16209 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
16212 if test $gcc_cv_func_mmap_dev_zero = yes; then
16214 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
16217 if test $gcc_cv_func_mmap_anon = yes; then
16219 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
16224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
16225 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
16226 if ${ac_cv_c_bigendian+:} false; then :
16227 $as_echo_n "(cached) " >&6
16228 else
16229 ac_cv_c_bigendian=unknown
16230 # See if we're dealing with a universal compiler.
16231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16232 /* end confdefs.h. */
16233 #ifndef __APPLE_CC__
16234 not a universal capable compiler
16235 #endif
16236 typedef int dummy;
16238 _ACEOF
16239 if ac_fn_c_try_compile "$LINENO"; then :
16241 # Check for potential -arch flags. It is not universal unless
16242 # there are at least two -arch flags with different values.
16243 ac_arch=
16244 ac_prev=
16245 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
16246 if test -n "$ac_prev"; then
16247 case $ac_word in
16248 i?86 | x86_64 | ppc | ppc64)
16249 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
16250 ac_arch=$ac_word
16251 else
16252 ac_cv_c_bigendian=universal
16253 break
16256 esac
16257 ac_prev=
16258 elif test "x$ac_word" = "x-arch"; then
16259 ac_prev=arch
16261 done
16263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16264 if test $ac_cv_c_bigendian = unknown; then
16265 # See if sys/param.h defines the BYTE_ORDER macro.
16266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16267 /* end confdefs.h. */
16268 #include <sys/types.h>
16269 #include <sys/param.h>
16272 main ()
16274 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
16275 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
16276 && LITTLE_ENDIAN)
16277 bogus endian macros
16278 #endif
16281 return 0;
16283 _ACEOF
16284 if ac_fn_c_try_compile "$LINENO"; then :
16285 # It does; now see whether it defined to BIG_ENDIAN or not.
16286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16287 /* end confdefs.h. */
16288 #include <sys/types.h>
16289 #include <sys/param.h>
16292 main ()
16294 #if BYTE_ORDER != BIG_ENDIAN
16295 not big endian
16296 #endif
16299 return 0;
16301 _ACEOF
16302 if ac_fn_c_try_compile "$LINENO"; then :
16303 ac_cv_c_bigendian=yes
16304 else
16305 ac_cv_c_bigendian=no
16307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16311 if test $ac_cv_c_bigendian = unknown; then
16312 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
16313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16314 /* end confdefs.h. */
16315 #include <limits.h>
16318 main ()
16320 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
16321 bogus endian macros
16322 #endif
16325 return 0;
16327 _ACEOF
16328 if ac_fn_c_try_compile "$LINENO"; then :
16329 # It does; now see whether it defined to _BIG_ENDIAN or not.
16330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16331 /* end confdefs.h. */
16332 #include <limits.h>
16335 main ()
16337 #ifndef _BIG_ENDIAN
16338 not big endian
16339 #endif
16342 return 0;
16344 _ACEOF
16345 if ac_fn_c_try_compile "$LINENO"; then :
16346 ac_cv_c_bigendian=yes
16347 else
16348 ac_cv_c_bigendian=no
16350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16352 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16354 if test $ac_cv_c_bigendian = unknown; then
16355 # Compile a test program.
16356 if test "$cross_compiling" = yes; then :
16357 # Try to guess by grepping values from an object file.
16358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16359 /* end confdefs.h. */
16360 short int ascii_mm[] =
16361 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
16362 short int ascii_ii[] =
16363 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
16364 int use_ascii (int i) {
16365 return ascii_mm[i] + ascii_ii[i];
16367 short int ebcdic_ii[] =
16368 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
16369 short int ebcdic_mm[] =
16370 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
16371 int use_ebcdic (int i) {
16372 return ebcdic_mm[i] + ebcdic_ii[i];
16374 extern int foo;
16377 main ()
16379 return use_ascii (foo) == use_ebcdic (foo);
16381 return 0;
16383 _ACEOF
16384 if ac_fn_c_try_compile "$LINENO"; then :
16385 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
16386 ac_cv_c_bigendian=yes
16388 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
16389 if test "$ac_cv_c_bigendian" = unknown; then
16390 ac_cv_c_bigendian=no
16391 else
16392 # finding both strings is unlikely to happen, but who knows?
16393 ac_cv_c_bigendian=unknown
16397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16398 else
16399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16400 /* end confdefs.h. */
16401 $ac_includes_default
16403 main ()
16406 /* Are we little or big endian? From Harbison&Steele. */
16407 union
16409 long int l;
16410 char c[sizeof (long int)];
16411 } u;
16412 u.l = 1;
16413 return u.c[sizeof (long int) - 1] == 1;
16416 return 0;
16418 _ACEOF
16419 if ac_fn_c_try_run "$LINENO"; then :
16420 ac_cv_c_bigendian=no
16421 else
16422 ac_cv_c_bigendian=yes
16424 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16425 conftest.$ac_objext conftest.beam conftest.$ac_ext
16430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
16431 $as_echo "$ac_cv_c_bigendian" >&6; }
16432 case $ac_cv_c_bigendian in #(
16433 yes)
16434 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
16435 ;; #(
16437 ;; #(
16438 universal)
16440 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
16442 ;; #(
16444 as_fn_error $? "unknown endianness
16445 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
16446 esac
16448 # I don't like the default behaviour of WORDS_BIGENDIAN undefined for LE.
16451 # Check to see if -pthread or -lpthread is needed. Prefer the former.
16452 # In case the pthread.h system header is not found, this test will fail.
16453 XPCFLAGS=""
16454 CFLAGS="$CFLAGS -pthread"
16455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16456 /* end confdefs.h. */
16457 #include <pthread.h>
16458 void *g(void *d) { return NULL; }
16460 main ()
16462 pthread_t t; pthread_create(&t,NULL,g,NULL);
16464 return 0;
16466 _ACEOF
16467 if ac_fn_c_try_link "$LINENO"; then :
16468 XPCFLAGS=" -Wc,-pthread"
16469 else
16470 CFLAGS="$save_CFLAGS" LIBS="-lpthread $LIBS"
16471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16472 /* end confdefs.h. */
16473 #include <pthread.h>
16474 void *g(void *d) { return NULL; }
16476 main ()
16478 pthread_t t; pthread_create(&t,NULL,g,NULL);
16480 return 0;
16482 _ACEOF
16483 if ac_fn_c_try_link "$LINENO"; then :
16485 else
16486 as_fn_error $? "Pthreads are required to build libitm" "$LINENO" 5
16488 rm -f core conftest.err conftest.$ac_objext \
16489 conftest$ac_exeext conftest.$ac_ext
16491 rm -f core conftest.err conftest.$ac_objext \
16492 conftest$ac_exeext conftest.$ac_ext
16494 # Check for functions needed.
16495 for ac_func in strtoull memalign posix_memalign getauxval
16496 do :
16497 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16498 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16499 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16500 cat >>confdefs.h <<_ACEOF
16501 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16502 _ACEOF
16505 done
16508 # Check for broken semaphore implementation on darwin.
16509 # sem_init returns: sem_init error: Function not implemented.
16510 case "$host" in
16511 *-darwin*)
16513 $as_echo "#define HAVE_BROKEN_POSIX_SEMAPHORES 1" >>confdefs.h
16516 esac
16518 # Check whether --enable-linux-futex was given.
16519 if test "${enable_linux_futex+set}" = set; then :
16520 enableval=$enable_linux_futex;
16521 case "$enableval" in
16522 yes|no|default) ;;
16523 *) as_fn_error $? "Unknown argument to enable/disable linux-futex" "$LINENO" 5 ;;
16524 esac
16526 else
16527 enable_linux_futex=default
16531 case "$target" in
16532 *-linux* | *-uclinux*)
16533 case "$enable_linux_futex" in
16534 default)
16535 # If headers don't have gettid/futex syscalls definition, then
16536 # default to no, otherwise there will be compile time failures.
16537 # Otherwise, default to yes. If we don't detect we are
16538 # compiled/linked against NPTL and not cross-compiling, check
16539 # if programs are run by default against NPTL and if not, issue
16540 # a warning.
16541 enable_linux_futex=no
16542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16543 /* end confdefs.h. */
16544 #include <sys/syscall.h>
16545 #include <unistd.h>
16546 int lk;
16548 main ()
16550 syscall (SYS_gettid); syscall (SYS_futex, &lk, 0, 0, 0);
16552 return 0;
16554 _ACEOF
16555 if ac_fn_c_try_link "$LINENO"; then :
16556 save_LIBS="$LIBS"
16557 LIBS="-lpthread $LIBS"
16558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16559 /* end confdefs.h. */
16560 #ifndef _GNU_SOURCE
16561 #define _GNU_SOURCE 1
16562 #endif
16563 #include <pthread.h>
16564 pthread_t th; void *status;
16566 main ()
16568 pthread_tryjoin_np (th, &status);
16570 return 0;
16572 _ACEOF
16573 if ac_fn_c_try_link "$LINENO"; then :
16574 enable_linux_futex=yes
16575 else
16576 if test x$cross_compiling = xno; then
16577 if getconf GNU_LIBPTHREAD_VERSION 2>/dev/null \
16578 | LC_ALL=C grep -i NPTL > /dev/null 2>/dev/null; then :; else
16579 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The kernel might not support futex or gettid syscalls.
16580 If so, please configure with --disable-linux-futex" >&5
16581 $as_echo "$as_me: WARNING: The kernel might not support futex or gettid syscalls.
16582 If so, please configure with --disable-linux-futex" >&2;}
16585 enable_linux_futex=yes
16587 rm -f core conftest.err conftest.$ac_objext \
16588 conftest$ac_exeext conftest.$ac_ext
16589 LIBS="$save_LIBS"
16591 rm -f core conftest.err conftest.$ac_objext \
16592 conftest$ac_exeext conftest.$ac_ext
16594 yes)
16595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16596 /* end confdefs.h. */
16597 #include <sys/syscall.h>
16598 #include <unistd.h>
16599 int lk;
16601 main ()
16603 syscall (SYS_gettid); syscall (SYS_futex, &lk, 0, 0, 0);
16605 return 0;
16607 _ACEOF
16608 if ac_fn_c_try_link "$LINENO"; then :
16610 else
16611 as_fn_error $? "SYS_gettid and SYS_futex required for --enable-linux-futex" "$LINENO" 5
16613 rm -f core conftest.err conftest.$ac_objext \
16614 conftest$ac_exeext conftest.$ac_ext
16616 esac
16619 enable_linux_futex=no
16621 esac
16622 if test x$enable_linux_futex = xyes; then
16627 # See if we support thread-local storage.
16630 # Check whether --enable-tls was given.
16631 if test "${enable_tls+set}" = set; then :
16632 enableval=$enable_tls;
16633 case "$enableval" in
16634 yes|no) ;;
16635 *) as_fn_error $? "Argument to enable/disable tls must be yes or no" "$LINENO" 5 ;;
16636 esac
16638 else
16639 enable_tls=yes
16643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports thread-local storage" >&5
16644 $as_echo_n "checking whether the target supports thread-local storage... " >&6; }
16645 if ${gcc_cv_have_tls+:} false; then :
16646 $as_echo_n "(cached) " >&6
16647 else
16649 if test "$cross_compiling" = yes; then :
16650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16651 /* end confdefs.h. */
16652 __thread int a; int b; int main() { return a = b; }
16653 _ACEOF
16654 if ac_fn_c_try_link "$LINENO"; then :
16655 chktls_save_LDFLAGS="$LDFLAGS"
16656 case $host in
16657 *-*-linux* | -*-uclinuxfdpic*)
16658 LDFLAGS="-shared -Wl,--no-undefined $LDFLAGS"
16660 esac
16661 chktls_save_CFLAGS="$CFLAGS"
16662 CFLAGS="-fPIC $CFLAGS"
16663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16664 /* end confdefs.h. */
16665 int f() { return 0; }
16666 _ACEOF
16667 if ac_fn_c_try_link "$LINENO"; then :
16668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16669 /* end confdefs.h. */
16670 __thread int a; int b; int f() { return a = b; }
16671 _ACEOF
16672 if ac_fn_c_try_link "$LINENO"; then :
16673 gcc_cv_have_tls=yes
16674 else
16675 gcc_cv_have_tls=no
16677 rm -f core conftest.err conftest.$ac_objext \
16678 conftest$ac_exeext conftest.$ac_ext
16679 else
16680 gcc_cv_have_tls=yes
16682 rm -f core conftest.err conftest.$ac_objext \
16683 conftest$ac_exeext conftest.$ac_ext
16684 CFLAGS="$chktls_save_CFLAGS"
16685 LDFLAGS="$chktls_save_LDFLAGS"
16686 else
16687 gcc_cv_have_tls=no
16689 rm -f core conftest.err conftest.$ac_objext \
16690 conftest$ac_exeext conftest.$ac_ext
16693 else
16694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16695 /* end confdefs.h. */
16696 __thread int a; int b; int main() { return a = b; }
16697 _ACEOF
16698 if ac_fn_c_try_run "$LINENO"; then :
16699 chktls_save_LDFLAGS="$LDFLAGS"
16700 LDFLAGS="-static $LDFLAGS"
16701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16702 /* end confdefs.h. */
16703 int main() { return 0; }
16704 _ACEOF
16705 if ac_fn_c_try_link "$LINENO"; then :
16706 if test "$cross_compiling" = yes; then :
16707 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16708 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16709 as_fn_error $? "cannot run test program while cross compiling
16710 See \`config.log' for more details" "$LINENO" 5; }
16711 else
16712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16713 /* end confdefs.h. */
16714 __thread int a; int b; int main() { return a = b; }
16715 _ACEOF
16716 if ac_fn_c_try_run "$LINENO"; then :
16717 gcc_cv_have_tls=yes
16718 else
16719 gcc_cv_have_tls=no
16721 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16722 conftest.$ac_objext conftest.beam conftest.$ac_ext
16725 else
16726 gcc_cv_have_tls=yes
16728 rm -f core conftest.err conftest.$ac_objext \
16729 conftest$ac_exeext conftest.$ac_ext
16730 LDFLAGS="$chktls_save_LDFLAGS"
16731 if test $gcc_cv_have_tls = yes; then
16732 chktls_save_CFLAGS="$CFLAGS"
16733 thread_CFLAGS=failed
16734 for flag in '' '-pthread' '-lpthread'; do
16735 CFLAGS="$flag $chktls_save_CFLAGS"
16736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16737 /* end confdefs.h. */
16738 #include <pthread.h>
16739 void *g(void *d) { return NULL; }
16741 main ()
16743 pthread_t t; pthread_create(&t,NULL,g,NULL);
16745 return 0;
16747 _ACEOF
16748 if ac_fn_c_try_link "$LINENO"; then :
16749 thread_CFLAGS="$flag"
16751 rm -f core conftest.err conftest.$ac_objext \
16752 conftest$ac_exeext conftest.$ac_ext
16753 if test "X$thread_CFLAGS" != Xfailed; then
16754 break
16756 done
16757 CFLAGS="$chktls_save_CFLAGS"
16758 if test "X$thread_CFLAGS" != Xfailed; then
16759 CFLAGS="$thread_CFLAGS $chktls_save_CFLAGS"
16760 if test "$cross_compiling" = yes; then :
16761 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16762 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16763 as_fn_error $? "cannot run test program while cross compiling
16764 See \`config.log' for more details" "$LINENO" 5; }
16765 else
16766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16767 /* end confdefs.h. */
16768 #include <pthread.h>
16769 __thread int a;
16770 static int *volatile a_in_other_thread;
16771 static void *
16772 thread_func (void *arg)
16774 a_in_other_thread = &a;
16775 return (void *)0;
16778 main ()
16780 pthread_t thread;
16781 void *thread_retval;
16782 int *volatile a_in_main_thread;
16783 a_in_main_thread = &a;
16784 if (pthread_create (&thread, (pthread_attr_t *)0,
16785 thread_func, (void *)0))
16786 return 0;
16787 if (pthread_join (thread, &thread_retval))
16788 return 0;
16789 return (a_in_other_thread == a_in_main_thread);
16791 return 0;
16793 _ACEOF
16794 if ac_fn_c_try_run "$LINENO"; then :
16795 gcc_cv_have_tls=yes
16796 else
16797 gcc_cv_have_tls=no
16799 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16800 conftest.$ac_objext conftest.beam conftest.$ac_ext
16803 CFLAGS="$chktls_save_CFLAGS"
16806 else
16807 gcc_cv_have_tls=no
16809 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16810 conftest.$ac_objext conftest.beam conftest.$ac_ext
16814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_have_tls" >&5
16815 $as_echo "$gcc_cv_have_tls" >&6; }
16816 if test "$enable_tls $gcc_cv_have_tls" = "yes yes"; then
16818 $as_echo "#define HAVE_TLS 1" >>confdefs.h
16822 # See what sort of export controls are available.
16824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports hidden visibility" >&5
16825 $as_echo_n "checking whether the target supports hidden visibility... " >&6; }
16826 if ${libitm_cv_have_attribute_visibility+:} false; then :
16827 $as_echo_n "(cached) " >&6
16828 else
16830 save_CFLAGS="$CFLAGS"
16831 CFLAGS="$CFLAGS -Werror"
16832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16833 /* end confdefs.h. */
16834 void __attribute__((visibility("hidden"))) foo(void) { }
16836 main ()
16840 return 0;
16842 _ACEOF
16843 if ac_fn_c_try_compile "$LINENO"; then :
16844 libitm_cv_have_attribute_visibility=yes
16845 else
16846 libitm_cv_have_attribute_visibility=no
16848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16849 CFLAGS="$save_CFLAGS"
16851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libitm_cv_have_attribute_visibility" >&5
16852 $as_echo "$libitm_cv_have_attribute_visibility" >&6; }
16853 if test $libitm_cv_have_attribute_visibility = yes; then
16855 $as_echo "#define HAVE_ATTRIBUTE_VISIBILITY 1" >>confdefs.h
16859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports dllexport" >&5
16860 $as_echo_n "checking whether the target supports dllexport... " >&6; }
16861 if ${libitm_cv_have_attribute_dllexport+:} false; then :
16862 $as_echo_n "(cached) " >&6
16863 else
16865 save_CFLAGS="$CFLAGS"
16866 CFLAGS="$CFLAGS -Werror"
16867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16868 /* end confdefs.h. */
16869 void __attribute__((dllexport)) foo(void) { }
16871 main ()
16875 return 0;
16877 _ACEOF
16878 if ac_fn_c_try_compile "$LINENO"; then :
16879 libitm_cv_have_attribute_dllexport=yes
16880 else
16881 libitm_cv_have_attribute_dllexport=no
16883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16884 CFLAGS="$save_CFLAGS"
16886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libitm_cv_have_attribute_dllexport" >&5
16887 $as_echo "$libitm_cv_have_attribute_dllexport" >&6; }
16888 if test $libitm_cv_have_attribute_dllexport = yes; then
16890 $as_echo "#define HAVE_ATTRIBUTE_DLLEXPORT 1" >>confdefs.h
16894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports symbol aliases" >&5
16895 $as_echo_n "checking whether the target supports symbol aliases... " >&6; }
16896 if ${libitm_cv_have_attribute_alias+:} false; then :
16897 $as_echo_n "(cached) " >&6
16898 else
16900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16901 /* end confdefs.h. */
16903 void foo(void) { }
16904 extern void bar(void) __attribute__((alias("foo")));
16906 main ()
16908 bar();
16910 return 0;
16912 _ACEOF
16913 if ac_fn_c_try_link "$LINENO"; then :
16914 libitm_cv_have_attribute_alias=yes
16915 else
16916 libitm_cv_have_attribute_alias=no
16918 rm -f core conftest.err conftest.$ac_objext \
16919 conftest$ac_exeext conftest.$ac_ext
16921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libitm_cv_have_attribute_alias" >&5
16922 $as_echo "$libitm_cv_have_attribute_alias" >&6; }
16923 if test $libitm_cv_have_attribute_alias = yes; then
16925 $as_echo "#define HAVE_ATTRIBUTE_ALIAS 1" >>confdefs.h
16929 # Check linker hardware capability support.
16932 # Check whether --with-gnu-ld was given.
16933 if test "${with_gnu_ld+set}" = set; then :
16934 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
16935 else
16936 with_gnu_ld=no
16939 ac_prog=ld
16940 if test "$GCC" = yes; then
16941 # Check if gcc -print-prog-name=ld gives a path.
16942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
16943 $as_echo_n "checking for ld used by $CC... " >&6; }
16944 case $host in
16945 *-*-mingw*)
16946 # gcc leaves a trailing carriage return which upsets mingw
16947 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16949 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16950 esac
16951 case $ac_prog in
16952 # Accept absolute paths.
16953 [\\/]* | ?:[\\/]*)
16954 re_direlt='/[^/][^/]*/\.\./'
16955 # Canonicalize the pathname of ld
16956 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
16957 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
16958 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
16959 done
16960 test -z "$LD" && LD="$ac_prog"
16963 # If it fails, then pretend we aren't using GCC.
16964 ac_prog=ld
16967 # If it is relative, then search for the first ld in PATH.
16968 with_gnu_ld=unknown
16970 esac
16971 elif test "$with_gnu_ld" = yes; then
16972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
16973 $as_echo_n "checking for GNU ld... " >&6; }
16974 else
16975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
16976 $as_echo_n "checking for non-GNU ld... " >&6; }
16978 if ${lt_cv_path_LD+:} false; then :
16979 $as_echo_n "(cached) " >&6
16980 else
16981 if test -z "$LD"; then
16982 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
16983 for ac_dir in $PATH; do
16984 IFS="$lt_save_ifs"
16985 test -z "$ac_dir" && ac_dir=.
16986 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16987 lt_cv_path_LD="$ac_dir/$ac_prog"
16988 # Check to see if the program is GNU ld. I'd rather use --version,
16989 # but apparently some variants of GNU ld only accept -v.
16990 # Break only if it was the GNU/non-GNU ld that we prefer.
16991 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
16992 *GNU* | *'with BFD'*)
16993 test "$with_gnu_ld" != no && break
16996 test "$with_gnu_ld" != yes && break
16998 esac
17000 done
17001 IFS="$lt_save_ifs"
17002 else
17003 lt_cv_path_LD="$LD" # Let the user override the test with a path.
17007 LD="$lt_cv_path_LD"
17008 if test -n "$LD"; then
17009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
17010 $as_echo "$LD" >&6; }
17011 else
17012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17013 $as_echo "no" >&6; }
17015 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
17016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
17017 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
17018 if ${lt_cv_prog_gnu_ld+:} false; then :
17019 $as_echo_n "(cached) " >&6
17020 else
17021 # I'd rather use --version here, but apparently some GNU lds only accept -v.
17022 case `$LD -v 2>&1 </dev/null` in
17023 *GNU* | *'with BFD'*)
17024 lt_cv_prog_gnu_ld=yes
17027 lt_cv_prog_gnu_ld=no
17029 esac
17031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
17032 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
17033 with_gnu_ld=$lt_cv_prog_gnu_ld
17041 test -z "$HWCAP_LDFLAGS" && HWCAP_LDFLAGS=''
17044 ac_save_LDFLAGS="$LDFLAGS"
17045 LDFLAGS="$LFLAGS -mclear-hwcap"
17047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -mclear-hwcap" >&5
17048 $as_echo_n "checking for -mclear-hwcap... " >&6; }
17049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17050 /* end confdefs.h. */
17053 main ()
17055 return 0;
17057 return 0;
17059 _ACEOF
17060 if ac_fn_c_try_link "$LINENO"; then :
17061 ac_hwcap_ldflags=yes
17062 else
17063 ac_hwcap_ldflags=no
17065 rm -f core conftest.err conftest.$ac_objext \
17066 conftest$ac_exeext conftest.$ac_ext
17067 if test "$ac_hwcap_ldflags" = "yes"; then
17068 HWCAP_LDFLAGS="-mclear-hwcap $HWCAP_LDFLAGS"
17070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_hwcap_ldflags" >&5
17071 $as_echo "$ac_hwcap_ldflags" >&6; }
17073 LDFLAGS="$ac_save_LDFLAGS"
17077 if test $ac_hwcap_ldflags != no; then
17078 HAVE_HWCAP_TRUE=
17079 HAVE_HWCAP_FALSE='#'
17080 else
17081 HAVE_HWCAP_TRUE='#'
17082 HAVE_HWCAP_FALSE=
17086 # If defaulting to -mavx, don't clear hwcaps.
17087 ac_fn_c_check_decl "$LINENO" "__AVX__" "ac_cv_have_decl___AVX__" "$ac_includes_default"
17088 if test "x$ac_cv_have_decl___AVX__" = xyes; then :
17089 HWCAP_LDFLAGS=''
17094 # If we're not using GNU ld, then there's no point in even trying these
17095 # tests. Check for that first. We should have already tested for gld
17096 # by now (in libtool), but require it now just to be safe...
17097 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
17098 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
17102 # The name set by libtool depends on the version of libtool. Shame on us
17103 # for depending on an impl detail, but c'est la vie. Older versions used
17104 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
17105 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
17106 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
17107 # set (hence we're using an older libtool), then set it.
17108 if test x${with_gnu_ld+set} != xset; then
17109 if test x${ac_cv_prog_gnu_ld+set} != xset; then
17110 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
17111 with_gnu_ld=no
17112 else
17113 with_gnu_ld=$ac_cv_prog_gnu_ld
17117 # Start by getting the version number. I think the libtool test already
17118 # does some of this, but throws away the result.
17119 libitm_ld_is_gold=no
17120 libitm_ld_is_mold=no
17121 if $LD --version 2>/dev/null | grep 'GNU gold'> /dev/null 2>&1; then
17122 libitm_ld_is_gold=yes
17123 elif $LD --version 2>/dev/null | grep 'mold' >/dev/null 2>&1; then
17124 libitm_ld_is_mold=yes
17127 ldver=`$LD --version 2>/dev/null |
17128 sed -e 's/[. ][0-9]\{8\}$//;s/.* \([^ ]\{1,\}\)$/\1/; q'`
17130 libitm_gnu_ld_version=`echo $ldver | \
17131 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
17133 # Set --gc-sections.
17134 if test "$with_gnu_ld" = "notbroken"; then
17135 # GNU ld it is! Joy and bunny rabbits!
17137 # All these tests are for C++; save the language and the compiler flags.
17138 # Need to do this so that g++ won't try to link in libstdc++
17139 ac_test_CFLAGS="${CFLAGS+set}"
17140 ac_save_CFLAGS="$CFLAGS"
17141 CFLAGS='-x c++ -Wl,--gc-sections'
17143 # Check for -Wl,--gc-sections
17144 # XXX This test is broken at the moment, as symbols required for linking
17145 # are now in libsupc++ (not built yet). In addition, this test has
17146 # cored on solaris in the past. In addition, --gc-sections doesn't
17147 # really work at the moment (keeps on discarding used sections, first
17148 # .eh_frame and now some of the glibc sections for iconv).
17149 # Bzzzzt. Thanks for playing, maybe next time.
17150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld that supports -Wl,--gc-sections" >&5
17151 $as_echo_n "checking for ld that supports -Wl,--gc-sections... " >&6; }
17152 if test "$cross_compiling" = yes; then :
17153 ac_sectionLDflags=yes
17154 else
17155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17156 /* end confdefs.h. */
17158 int main(void)
17160 try { throw 1; }
17161 catch (...) { };
17162 return 0;
17165 _ACEOF
17166 if ac_fn_c_try_run "$LINENO"; then :
17167 ac_sectionLDflags=yes
17168 else
17169 ac_sectionLDflags=no
17171 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17172 conftest.$ac_objext conftest.beam conftest.$ac_ext
17175 if test "$ac_test_CFLAGS" = set; then
17176 CFLAGS="$ac_save_CFLAGS"
17177 else
17178 # this is the suspicious part
17179 CFLAGS=''
17181 if test "$ac_sectionLDflags" = "yes"; then
17182 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
17184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_sectionLDflags" >&5
17185 $as_echo "$ac_sectionLDflags" >&6; }
17188 # Set linker optimization flags.
17189 if test x"$with_gnu_ld" = x"yes"; then
17190 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
17198 # Check whether --enable-symvers was given.
17199 if test "${enable_symvers+set}" = set; then :
17200 enableval=$enable_symvers;
17201 case "$enableval" in
17202 yes|no|gnu*|sun) ;;
17203 *) as_fn_error $? "Unknown argument to enable/disable symvers" "$LINENO" 5 ;;
17204 esac
17206 else
17207 enable_symvers=yes
17212 # If we never went through the LIBITM_CHECK_LINKER_FEATURES macro, then we
17213 # don't know enough about $LD to do tricks...
17216 # Turn a 'yes' into a suitable default.
17217 if test x$enable_symvers = xyes ; then
17218 # FIXME The following test is too strict, in theory.
17219 if test $enable_shared = no || test "x$LD" = x; then
17220 enable_symvers=no
17221 else
17222 if test $with_gnu_ld = yes ; then
17223 enable_symvers=gnu
17224 else
17225 case ${target_os} in
17226 # Sun symbol versioning exists since Solaris 2.5.
17227 solaris2.[5-9]* | solaris2.1[0-9]*)
17228 enable_symvers=sun ;;
17230 enable_symvers=no ;;
17231 esac
17236 # Check if 'sun' was requested on non-Solaris 2 platforms.
17237 if test x$enable_symvers = xsun ; then
17238 case ${target_os} in
17239 solaris2*)
17240 # All fine.
17243 # Unlikely to work.
17244 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You have requested Sun symbol versioning, but" >&5
17245 $as_echo "$as_me: WARNING: === You have requested Sun symbol versioning, but" >&2;}
17246 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === you are not targetting Solaris 2." >&5
17247 $as_echo "$as_me: WARNING: === you are not targetting Solaris 2." >&2;}
17248 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
17249 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
17250 enable_symvers=no
17252 esac
17255 # Check to see if libgcc_s exists, indicating that shared libgcc is possible.
17256 if test $enable_symvers != no; then
17257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared libgcc" >&5
17258 $as_echo_n "checking for shared libgcc... " >&6; }
17259 ac_save_CFLAGS="$CFLAGS"
17260 CFLAGS=' -lgcc_s'
17261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17262 /* end confdefs.h. */
17265 main ()
17267 return 0;
17269 return 0;
17271 _ACEOF
17272 if ac_fn_c_try_link "$LINENO"; then :
17273 libitm_shared_libgcc=yes
17274 else
17275 libitm_shared_libgcc=no
17277 rm -f core conftest.err conftest.$ac_objext \
17278 conftest$ac_exeext conftest.$ac_ext
17279 CFLAGS="$ac_save_CFLAGS"
17280 if test $libitm_shared_libgcc = no; then
17281 cat > conftest.c <<EOF
17282 int main (void) { return 0; }
17284 libitm_libgcc_s_suffix=`${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
17285 -shared -shared-libgcc -o conftest.so \
17286 conftest.c -v 2>&1 >/dev/null \
17287 | sed -n 's/^.* -lgcc_s\([^ ]*\) .*$/\1/p'`
17288 rm -f conftest.c conftest.so
17289 if test x${libitm_libgcc_s_suffix+set} = xset; then
17290 CFLAGS=" -lgcc_s$libitm_libgcc_s_suffix"
17291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17292 /* end confdefs.h. */
17295 main ()
17297 return 0;
17299 return 0;
17301 _ACEOF
17302 if ac_fn_c_try_link "$LINENO"; then :
17303 libitm_shared_libgcc=yes
17305 rm -f core conftest.err conftest.$ac_objext \
17306 conftest$ac_exeext conftest.$ac_ext
17307 CFLAGS="$ac_save_CFLAGS"
17310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libitm_shared_libgcc" >&5
17311 $as_echo "$libitm_shared_libgcc" >&6; }
17314 # For GNU ld, we need at least this version. The format is described in
17315 # LIBITM_CHECK_LINKER_FEATURES above.
17316 libitm_min_gnu_ld_version=21400
17317 # XXXXXXXXXXX libitm_gnu_ld_version=21390
17319 # Check to see if unspecified "yes" value can win, given results above.
17320 # Change "yes" into either "no" or a style name.
17321 if test $enable_symvers != no && test $libitm_shared_libgcc = yes; then
17322 if test $with_gnu_ld = yes; then
17323 if test $libitm_gnu_ld_version -ge $libitm_min_gnu_ld_version ; then
17324 enable_symvers=gnu
17325 elif test $libitm_ld_is_gold = yes ; then
17326 enable_symvers=gnu
17327 elif test $libitm_ld_is_mold = yes ; then
17328 enable_symvers=gnu
17329 else
17330 # The right tools, the right setup, but too old. Fallbacks?
17331 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Linker version $libitm_gnu_ld_version is too old for" >&5
17332 $as_echo "$as_me: WARNING: === Linker version $libitm_gnu_ld_version is too old for" >&2;}
17333 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === full symbol versioning support in this release of GCC." >&5
17334 $as_echo "$as_me: WARNING: === full symbol versioning support in this release of GCC." >&2;}
17335 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You would need to upgrade your binutils to version" >&5
17336 $as_echo "$as_me: WARNING: === You would need to upgrade your binutils to version" >&2;}
17337 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === $libitm_min_gnu_ld_version or later and rebuild GCC." >&5
17338 $as_echo "$as_me: WARNING: === $libitm_min_gnu_ld_version or later and rebuild GCC." >&2;}
17339 if test $libitm_gnu_ld_version -ge 21200 ; then
17340 # Globbing fix is present, proper block support is not.
17341 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
17342 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
17343 enable_symvers=no
17344 else
17345 # 2.11 or older.
17346 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
17347 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
17348 enable_symvers=no
17351 elif test $enable_symvers = sun; then
17352 : All interesting versions of Sun ld support sun style symbol versioning.
17353 else
17354 # just fail for now
17355 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You have requested some kind of symbol versioning, but" >&5
17356 $as_echo "$as_me: WARNING: === You have requested some kind of symbol versioning, but" >&2;}
17357 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === either you are not using a supported linker, or you are" >&5
17358 $as_echo "$as_me: WARNING: === either you are not using a supported linker, or you are" >&2;}
17359 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === not building a shared libgcc_s (which is required)." >&5
17360 $as_echo "$as_me: WARNING: === not building a shared libgcc_s (which is required)." >&2;}
17361 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
17362 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
17363 enable_symvers=no
17367 if test $enable_symvers != no; then
17368 LIBITM_BUILD_VERSIONED_SHLIB_TRUE=
17369 LIBITM_BUILD_VERSIONED_SHLIB_FALSE='#'
17370 else
17371 LIBITM_BUILD_VERSIONED_SHLIB_TRUE='#'
17372 LIBITM_BUILD_VERSIONED_SHLIB_FALSE=
17375 if test $enable_symvers = gnu; then
17376 LIBITM_BUILD_VERSIONED_SHLIB_GNU_TRUE=
17377 LIBITM_BUILD_VERSIONED_SHLIB_GNU_FALSE='#'
17378 else
17379 LIBITM_BUILD_VERSIONED_SHLIB_GNU_TRUE='#'
17380 LIBITM_BUILD_VERSIONED_SHLIB_GNU_FALSE=
17383 if test $enable_symvers = sun; then
17384 LIBITM_BUILD_VERSIONED_SHLIB_SUN_TRUE=
17385 LIBITM_BUILD_VERSIONED_SHLIB_SUN_FALSE='#'
17386 else
17387 LIBITM_BUILD_VERSIONED_SHLIB_SUN_TRUE='#'
17388 LIBITM_BUILD_VERSIONED_SHLIB_SUN_FALSE=
17391 { $as_echo "$as_me:${as_lineno-$LINENO}: versioning on shared library symbols is $enable_symvers" >&5
17392 $as_echo "$as_me: versioning on shared library symbols is $enable_symvers" >&6;}
17394 if test $enable_symvers = gnu; then
17396 $as_echo "#define LIBITM_GNU_SYMBOL_VERSIONING 1" >>confdefs.h
17400 # See if we can emit unwind info in the sjlj stub.
17401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler .cfi pseudo-op support" >&5
17402 $as_echo_n "checking assembler .cfi pseudo-op support... " >&6; }
17403 if ${gcc_cv_as_cfi_pseudo_op+:} false; then :
17404 $as_echo_n "(cached) " >&6
17405 else
17407 gcc_cv_as_cfi_pseudo_op=unknown
17408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17409 /* end confdefs.h. */
17410 asm (".cfi_startproc\n\t.cfi_endproc");
17412 main ()
17416 return 0;
17418 _ACEOF
17419 if ac_fn_c_try_compile "$LINENO"; then :
17420 gcc_cv_as_cfi_pseudo_op=yes
17421 else
17422 gcc_cv_as_cfi_pseudo_op=no
17424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_pseudo_op" >&5
17428 $as_echo "$gcc_cv_as_cfi_pseudo_op" >&6; }
17429 if test "x$gcc_cv_as_cfi_pseudo_op" = xyes; then
17431 $as_echo "#define HAVE_AS_CFI_PSEUDO_OP 1" >>confdefs.h
17436 # Determine the proper ABI type for size_t.
17438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how size_t is mangled" >&5
17439 $as_echo_n "checking how size_t is mangled... " >&6; }
17440 if ${libitm_cv_size_t_mangling+:} false; then :
17441 $as_echo_n "(cached) " >&6
17442 else
17444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17445 /* end confdefs.h. */
17448 main ()
17450 extern __SIZE_TYPE__ x; extern unsigned long x;
17452 return 0;
17454 _ACEOF
17455 if ac_fn_c_try_compile "$LINENO"; then :
17456 libitm_cv_size_t_mangling=m
17457 else
17459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17460 /* end confdefs.h. */
17463 main ()
17465 extern __SIZE_TYPE__ x; extern unsigned int x;
17467 return 0;
17469 _ACEOF
17470 if ac_fn_c_try_compile "$LINENO"; then :
17471 libitm_cv_size_t_mangling=j
17472 else
17474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17475 /* end confdefs.h. */
17478 main ()
17480 extern __SIZE_TYPE__ x; extern unsigned long long x;
17482 return 0;
17484 _ACEOF
17485 if ac_fn_c_try_compile "$LINENO"; then :
17486 libitm_cv_size_t_mangling=y
17487 else
17489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17490 /* end confdefs.h. */
17493 main ()
17495 extern __SIZE_TYPE__ x; extern unsigned short x;
17497 return 0;
17499 _ACEOF
17500 if ac_fn_c_try_compile "$LINENO"; then :
17501 libitm_cv_size_t_mangling=t
17502 else
17503 libitm_cv_size_t_mangling=x
17505 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17508 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17514 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libitm_cv_size_t_mangling" >&5
17518 $as_echo "$libitm_cv_size_t_mangling" >&6; }
17519 if test $libitm_cv_size_t_mangling = x; then
17520 as_fn_error $? "Unknown underlying type for size_t" "$LINENO" 5
17523 cat >>confdefs.h <<_ACEOF
17524 #define MANGLE_SIZE_T $libitm_cv_size_t_mangling
17525 _ACEOF
17529 # Get target configury.
17530 . ${srcdir}/configure.tgt
17531 if test -n "$UNSUPPORTED"; then
17532 as_fn_error $? "Configuration ${target} is unsupported." "$LINENO" 5
17535 CFLAGS="$save_CFLAGS $XCFLAGS"
17537 # Check for __sync_val_compare_and_swap, but only after the target has
17538 # had a chance to set XCFLAGS.
17540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports __sync_*_compare_and_swap" >&5
17541 $as_echo_n "checking whether the target supports __sync_*_compare_and_swap... " >&6; }
17542 if ${libitm_cv_have_sync_builtins+:} false; then :
17543 $as_echo_n "(cached) " >&6
17544 else
17546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17547 /* end confdefs.h. */
17550 main ()
17552 int foo, bar; bar = __sync_val_compare_and_swap(&foo, 0, 1);
17554 return 0;
17556 _ACEOF
17557 if ac_fn_c_try_link "$LINENO"; then :
17558 libitm_cv_have_sync_builtins=yes
17559 else
17560 libitm_cv_have_sync_builtins=no
17562 rm -f core conftest.err conftest.$ac_objext \
17563 conftest$ac_exeext conftest.$ac_ext
17565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libitm_cv_have_sync_builtins" >&5
17566 $as_echo "$libitm_cv_have_sync_builtins" >&6; }
17567 if test $libitm_cv_have_sync_builtins = yes; then
17569 $as_echo "#define HAVE_SYNC_BUILTINS 1" >>confdefs.h
17573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports 64-bit __sync_*_compare_and_swap" >&5
17574 $as_echo_n "checking whether the target supports 64-bit __sync_*_compare_and_swap... " >&6; }
17575 if ${libitm_cv_have_64bit_sync_builtins+:} false; then :
17576 $as_echo_n "(cached) " >&6
17577 else
17579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17580 /* end confdefs.h. */
17581 #include <stdint.h>
17583 main ()
17585 uint64_t foo, bar;
17586 bar = __sync_val_compare_and_swap(&foo, 0, 1);
17588 return 0;
17590 _ACEOF
17591 if ac_fn_c_try_link "$LINENO"; then :
17592 libitm_cv_have_64bit_sync_builtins=yes
17593 else
17594 libitm_cv_have_64bit_sync_builtins=no
17596 rm -f core conftest.err conftest.$ac_objext \
17597 conftest$ac_exeext conftest.$ac_ext
17599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libitm_cv_have_64bit_sync_builtins" >&5
17600 $as_echo "$libitm_cv_have_64bit_sync_builtins" >&6; }
17601 if test $libitm_cv_have_64bit_sync_builtins = yes; then
17603 $as_echo "#define HAVE_64BIT_SYNC_BUILTINS 1" >>confdefs.h
17607 case "${target_cpu}" in
17608 i[34567]86 | x86_64)
17609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the assembler supports AVX" >&5
17610 $as_echo_n "checking if the assembler supports AVX... " >&6; }
17611 if ${libitm_cv_as_avx+:} false; then :
17612 $as_echo_n "(cached) " >&6
17613 else
17615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17616 /* end confdefs.h. */
17619 main ()
17621 asm("vzeroupper");
17623 return 0;
17625 _ACEOF
17626 if ac_fn_c_try_compile "$LINENO"; then :
17627 libitm_cv_as_avx=yes
17628 else
17629 libitm_cv_as_avx=no
17631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libitm_cv_as_avx" >&5
17635 $as_echo "$libitm_cv_as_avx" >&6; }
17636 if test x$libitm_cv_as_avx = xyes; then
17638 $as_echo "#define HAVE_AS_AVX 1" >>confdefs.h
17642 esac
17644 case "${target_cpu}" in
17645 i[34567]86 | x86_64)
17646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the assembler supports RTM" >&5
17647 $as_echo_n "checking if the assembler supports RTM... " >&6; }
17648 if ${libitm_cv_as_rtm+:} false; then :
17649 $as_echo_n "(cached) " >&6
17650 else
17652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17653 /* end confdefs.h. */
17656 main ()
17658 asm("1: xbegin 1b; xend");
17660 return 0;
17662 _ACEOF
17663 if ac_fn_c_try_compile "$LINENO"; then :
17664 libitm_cv_as_rtm=yes
17665 else
17666 libitm_cv_as_rtm=no
17668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libitm_cv_as_rtm" >&5
17672 $as_echo "$libitm_cv_as_rtm" >&6; }
17673 if test x$libitm_cv_as_rtm = xyes; then
17675 $as_echo "#define HAVE_AS_RTM 1" >>confdefs.h
17679 esac
17681 case "${target_cpu}" in
17682 powerpc*)
17683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the assembler supports HTM" >&5
17684 $as_echo_n "checking if the assembler supports HTM... " >&6; }
17685 if ${libitm_cv_as_htm+:} false; then :
17686 $as_echo_n "(cached) " >&6
17687 else
17689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17690 /* end confdefs.h. */
17693 main ()
17695 asm("tbegin. 0; tend. 0");
17697 return 0;
17699 _ACEOF
17700 if ac_fn_c_try_compile "$LINENO"; then :
17701 libitm_cv_as_htm=yes
17702 else
17703 libitm_cv_as_htm=no
17705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libitm_cv_as_htm" >&5
17709 $as_echo "$libitm_cv_as_htm" >&6; }
17710 if test x$libitm_cv_as_htm = xyes; then
17712 $as_echo "#define HAVE_AS_HTM 1" >>confdefs.h
17716 s390*)
17717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the assembler supports HTM" >&5
17718 $as_echo_n "checking if the assembler supports HTM... " >&6; }
17719 if ${libitm_cv_as_htm+:} false; then :
17720 $as_echo_n "(cached) " >&6
17721 else
17723 save_CFLAGS="$CFLAGS"
17724 CFLAGS="$CFLAGS -march=zEC12"
17725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17726 /* end confdefs.h. */
17729 main ()
17731 asm("tbegin 0,0; tend");
17733 return 0;
17735 _ACEOF
17736 if ac_fn_c_try_compile "$LINENO"; then :
17737 libitm_cv_as_htm=yes
17738 else
17739 libitm_cv_as_htm=no
17741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17742 CFLAGS="$save_CFLAGS"
17744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libitm_cv_as_htm" >&5
17745 $as_echo "$libitm_cv_as_htm" >&6; }
17746 if test x$libitm_cv_as_htm = xyes; then
17748 $as_echo "#define HAVE_AS_HTM 1" >>confdefs.h
17752 esac
17755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether weak refs work like ELF" >&5
17756 $as_echo_n "checking whether weak refs work like ELF... " >&6; }
17757 if ${ac_cv_have_elf_style_weakref+:} false; then :
17758 $as_echo_n "(cached) " >&6
17759 else
17761 weakref_m4_saved_CFLAGS="$CFLAGS"
17762 case "${host}" in
17763 *-apple-darwin*) CFLAGS="$CFLAGS -Wl,-undefined,dynamic_lookup" ;;
17764 *) ;;
17765 esac
17766 if test "$cross_compiling" = yes; then :
17768 case "${host}" in
17769 *-apple-darwin[89]*) ac_cv_have_elf_style_weakref=no ;;
17770 *) ac_cv_have_elf_style_weakref=yes;;
17771 esac
17772 else
17773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17774 /* end confdefs.h. */
17776 extern void fNotToBeFound(void) __attribute__((weak));
17777 int main ()
17779 if (fNotToBeFound)
17780 return 1;
17781 else
17782 return 0;
17785 _ACEOF
17786 if ac_fn_c_try_run "$LINENO"; then :
17787 ac_cv_have_elf_style_weakref=yes
17788 else
17789 ac_cv_have_elf_style_weakref=no
17791 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17792 conftest.$ac_objext conftest.beam conftest.$ac_ext
17794 CFLAGS="$weakref_m4_saved_CFLAGS"
17796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_elf_style_weakref" >&5
17797 $as_echo "$ac_cv_have_elf_style_weakref" >&6; }
17798 if test x"$ac_cv_have_elf_style_weakref" = xyes; then
17800 $as_echo "#define HAVE_ELF_STYLE_WEAKREF 1" >>confdefs.h
17804 # Cleanup and exit.
17805 CFLAGS="$save_CFLAGS"
17806 cat >confcache <<\_ACEOF
17807 # This file is a shell script that caches the results of configure
17808 # tests run on this system so they can be shared between configure
17809 # scripts and configure runs, see configure's option --config-cache.
17810 # It is not useful on other systems. If it contains results you don't
17811 # want to keep, you may remove or edit it.
17813 # config.status only pays attention to the cache file if you give it
17814 # the --recheck option to rerun configure.
17816 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17817 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17818 # following values.
17820 _ACEOF
17822 # The following way of writing the cache mishandles newlines in values,
17823 # but we know of no workaround that is simple, portable, and efficient.
17824 # So, we kill variables containing newlines.
17825 # Ultrix sh set writes to stderr and can't be redirected directly,
17826 # and sets the high bit in the cache file unless we assign to the vars.
17828 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17829 eval ac_val=\$$ac_var
17830 case $ac_val in #(
17831 *${as_nl}*)
17832 case $ac_var in #(
17833 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17834 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17835 esac
17836 case $ac_var in #(
17837 _ | IFS | as_nl) ;; #(
17838 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17839 *) { eval $ac_var=; unset $ac_var;} ;;
17840 esac ;;
17841 esac
17842 done
17844 (set) 2>&1 |
17845 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17846 *${as_nl}ac_space=\ *)
17847 # `set' does not quote correctly, so add quotes: double-quote
17848 # substitution turns \\\\ into \\, and sed turns \\ into \.
17849 sed -n \
17850 "s/'/'\\\\''/g;
17851 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17852 ;; #(
17854 # `set' quotes correctly as required by POSIX, so do not add quotes.
17855 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17857 esac |
17858 sort
17860 sed '
17861 /^ac_cv_env_/b end
17862 t clear
17863 :clear
17864 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17865 t end
17866 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17867 :end' >>confcache
17868 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17869 if test -w "$cache_file"; then
17870 if test "x$cache_file" != "x/dev/null"; then
17871 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17872 $as_echo "$as_me: updating cache $cache_file" >&6;}
17873 if test ! -f "$cache_file" || test -h "$cache_file"; then
17874 cat confcache >"$cache_file"
17875 else
17876 case $cache_file in #(
17877 */* | ?:*)
17878 mv -f confcache "$cache_file"$$ &&
17879 mv -f "$cache_file"$$ "$cache_file" ;; #(
17881 mv -f confcache "$cache_file" ;;
17882 esac
17885 else
17886 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17887 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17890 rm -f confcache
17892 # Check whether --enable-werror was given.
17893 if test "${enable_werror+set}" = set; then :
17894 enableval=$enable_werror;
17897 # Add -Wall -Werror if we are using GCC.
17898 if test "x$GCC" = "xyes"; then :
17899 XCFLAGS="$XCFLAGS -Wall"
17901 if test "x$enable_werror" != "xno" && test "x$GCC" = "xyes"; then :
17902 XCFLAGS="$XCFLAGS -Werror"
17905 XCFLAGS="$XCFLAGS $XPCFLAGS"
17907 # Add CET specific flags if CET is enabled
17908 # Check whether --enable-cet was given.
17909 if test "${enable_cet+set}" = set; then :
17910 enableval=$enable_cet;
17911 case "$enableval" in
17912 yes|no|auto) ;;
17913 *) as_fn_error $? "Unknown argument to enable/disable cet" "$LINENO" 5 ;;
17914 esac
17916 else
17917 enable_cet=auto
17921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5
17922 $as_echo_n "checking for CET support... " >&6; }
17924 # NB: Avoid nested save_CFLAGS and save_LDFLAGS.
17925 case "$host" in
17926 i[34567]86-*-linux* | x86_64-*-linux*)
17927 case "$enable_cet" in
17928 auto)
17929 # Check if target supports multi-byte NOPs
17930 # and if compiler and assembler support CET insn.
17931 cet_save_CFLAGS="$CFLAGS"
17932 CFLAGS="$CFLAGS -fcf-protection"
17933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17934 /* end confdefs.h. */
17937 main ()
17940 #if !defined(__SSE2__)
17941 #error target does not support multi-byte NOPs
17942 #else
17943 asm ("setssbsy");
17944 #endif
17947 return 0;
17949 _ACEOF
17950 if ac_fn_c_try_compile "$LINENO"; then :
17951 enable_cet=yes
17952 else
17953 enable_cet=no
17955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17956 CFLAGS="$cet_save_CFLAGS"
17958 yes)
17959 # Check if assembler supports CET.
17960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17961 /* end confdefs.h. */
17964 main ()
17966 asm ("setssbsy");
17968 return 0;
17970 _ACEOF
17971 if ac_fn_c_try_compile "$LINENO"; then :
17973 else
17974 as_fn_error $? "assembler with CET support is required for --enable-cet" "$LINENO" 5
17976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17978 esac
17981 enable_cet=no
17983 esac
17984 if test x$enable_cet = xyes; then
17985 CET_FLAGS="-fcf-protection -mshstk"
17986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17987 $as_echo "yes" >&6; }
17988 else
17989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17990 $as_echo "no" >&6; }
17993 XCFLAGS="$XCFLAGS $CET_FLAGS"
17999 if test ${multilib} = yes; then
18000 multilib_arg="--enable-multilib"
18001 else
18002 multilib_arg=
18005 # Set up the set of libraries that we need to link against for libitm.
18006 # Note that the GTM_SELF_SPECS in gcc.c will force -pthread for -fgnu-tm,
18007 # which will force linkage against -lpthread (or equivalent for the system).
18008 # That's not 100% ideal, but about the best we can do easily.
18009 if test $enable_shared = yes; then
18010 link_itm="-litm %{static: $LIBS}"
18011 else
18012 link_itm="-litm $LIBS"
18016 if test "$ARCH" = arm; then
18017 ARCH_ARM_TRUE=
18018 ARCH_ARM_FALSE='#'
18019 else
18020 ARCH_ARM_TRUE='#'
18021 ARCH_ARM_FALSE=
18024 if test "$ARCH" = x86; then
18025 ARCH_X86_TRUE=
18026 ARCH_X86_FALSE='#'
18027 else
18028 ARCH_X86_TRUE='#'
18029 ARCH_X86_FALSE=
18032 if test "$libitm_cv_as_avx" = yes; then
18033 ARCH_X86_AVX_TRUE=
18034 ARCH_X86_AVX_FALSE='#'
18035 else
18036 ARCH_X86_AVX_TRUE='#'
18037 ARCH_X86_AVX_FALSE=
18040 if test $enable_linux_futex = yes; then
18041 ARCH_FUTEX_TRUE=
18042 ARCH_FUTEX_FALSE='#'
18043 else
18044 ARCH_FUTEX_TRUE='#'
18045 ARCH_FUTEX_FALSE=
18049 # Determine what GCC version number to use in filesystem paths.
18051 get_gcc_base_ver="cat"
18053 # Check whether --with-gcc-major-version-only was given.
18054 if test "${with_gcc_major_version_only+set}" = set; then :
18055 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
18056 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
18064 ac_config_files="$ac_config_files Makefile testsuite/Makefile libitm.spec"
18066 cat >confcache <<\_ACEOF
18067 # This file is a shell script that caches the results of configure
18068 # tests run on this system so they can be shared between configure
18069 # scripts and configure runs, see configure's option --config-cache.
18070 # It is not useful on other systems. If it contains results you don't
18071 # want to keep, you may remove or edit it.
18073 # config.status only pays attention to the cache file if you give it
18074 # the --recheck option to rerun configure.
18076 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18077 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18078 # following values.
18080 _ACEOF
18082 # The following way of writing the cache mishandles newlines in values,
18083 # but we know of no workaround that is simple, portable, and efficient.
18084 # So, we kill variables containing newlines.
18085 # Ultrix sh set writes to stderr and can't be redirected directly,
18086 # and sets the high bit in the cache file unless we assign to the vars.
18088 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18089 eval ac_val=\$$ac_var
18090 case $ac_val in #(
18091 *${as_nl}*)
18092 case $ac_var in #(
18093 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18094 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18095 esac
18096 case $ac_var in #(
18097 _ | IFS | as_nl) ;; #(
18098 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18099 *) { eval $ac_var=; unset $ac_var;} ;;
18100 esac ;;
18101 esac
18102 done
18104 (set) 2>&1 |
18105 case $as_nl`(ac_space=' '; set) 2>&1` in #(
18106 *${as_nl}ac_space=\ *)
18107 # `set' does not quote correctly, so add quotes: double-quote
18108 # substitution turns \\\\ into \\, and sed turns \\ into \.
18109 sed -n \
18110 "s/'/'\\\\''/g;
18111 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18112 ;; #(
18114 # `set' quotes correctly as required by POSIX, so do not add quotes.
18115 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18117 esac |
18118 sort
18120 sed '
18121 /^ac_cv_env_/b end
18122 t clear
18123 :clear
18124 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18125 t end
18126 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18127 :end' >>confcache
18128 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18129 if test -w "$cache_file"; then
18130 if test "x$cache_file" != "x/dev/null"; then
18131 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18132 $as_echo "$as_me: updating cache $cache_file" >&6;}
18133 if test ! -f "$cache_file" || test -h "$cache_file"; then
18134 cat confcache >"$cache_file"
18135 else
18136 case $cache_file in #(
18137 */* | ?:*)
18138 mv -f confcache "$cache_file"$$ &&
18139 mv -f "$cache_file"$$ "$cache_file" ;; #(
18141 mv -f confcache "$cache_file" ;;
18142 esac
18145 else
18146 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18147 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18150 rm -f confcache
18152 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18153 # Let make expand exec_prefix.
18154 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18156 DEFS=-DHAVE_CONFIG_H
18158 ac_libobjs=
18159 ac_ltlibobjs=
18161 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18162 # 1. Remove the extension, and $U if already installed.
18163 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18164 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18165 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
18166 # will be set to the directory where LIBOBJS objects are built.
18167 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18168 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
18169 done
18170 LIBOBJS=$ac_libobjs
18172 LTLIBOBJS=$ac_ltlibobjs
18175 if test -z "${GENINSRC_TRUE}" && test -z "${GENINSRC_FALSE}"; then
18176 as_fn_error $? "conditional \"GENINSRC\" was never defined.
18177 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
18180 $as_echo_n "checking that generated files are newer than configure... " >&6; }
18181 if test -n "$am_sleep_pid"; then
18182 # Hide warnings about reused PIDs.
18183 wait $am_sleep_pid 2>/dev/null
18185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
18186 $as_echo "done" >&6; }
18187 if test -n "$EXEEXT"; then
18188 am__EXEEXT_TRUE=
18189 am__EXEEXT_FALSE='#'
18190 else
18191 am__EXEEXT_TRUE='#'
18192 am__EXEEXT_FALSE=
18195 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
18196 as_fn_error $? "conditional \"AMDEP\" was never defined.
18197 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18199 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
18200 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
18201 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18203 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
18204 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
18205 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18207 if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
18208 as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined.
18209 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18211 if test -z "${BUILD_INFO_TRUE}" && test -z "${BUILD_INFO_FALSE}"; then
18212 as_fn_error $? "conditional \"BUILD_INFO\" was never defined.
18213 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18215 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
18216 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
18217 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18220 if test -z "${HAVE_HWCAP_TRUE}" && test -z "${HAVE_HWCAP_FALSE}"; then
18221 as_fn_error $? "conditional \"HAVE_HWCAP\" was never defined.
18222 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18224 if test -z "${LIBITM_BUILD_VERSIONED_SHLIB_TRUE}" && test -z "${LIBITM_BUILD_VERSIONED_SHLIB_FALSE}"; then
18225 as_fn_error $? "conditional \"LIBITM_BUILD_VERSIONED_SHLIB\" was never defined.
18226 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18228 if test -z "${LIBITM_BUILD_VERSIONED_SHLIB_GNU_TRUE}" && test -z "${LIBITM_BUILD_VERSIONED_SHLIB_GNU_FALSE}"; then
18229 as_fn_error $? "conditional \"LIBITM_BUILD_VERSIONED_SHLIB_GNU\" was never defined.
18230 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18232 if test -z "${LIBITM_BUILD_VERSIONED_SHLIB_SUN_TRUE}" && test -z "${LIBITM_BUILD_VERSIONED_SHLIB_SUN_FALSE}"; then
18233 as_fn_error $? "conditional \"LIBITM_BUILD_VERSIONED_SHLIB_SUN\" was never defined.
18234 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18236 if test -z "${ARCH_ARM_TRUE}" && test -z "${ARCH_ARM_FALSE}"; then
18237 as_fn_error $? "conditional \"ARCH_ARM\" was never defined.
18238 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18240 if test -z "${ARCH_X86_TRUE}" && test -z "${ARCH_X86_FALSE}"; then
18241 as_fn_error $? "conditional \"ARCH_X86\" was never defined.
18242 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18244 if test -z "${ARCH_X86_AVX_TRUE}" && test -z "${ARCH_X86_AVX_FALSE}"; then
18245 as_fn_error $? "conditional \"ARCH_X86_AVX\" was never defined.
18246 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18248 if test -z "${ARCH_FUTEX_TRUE}" && test -z "${ARCH_FUTEX_FALSE}"; then
18249 as_fn_error $? "conditional \"ARCH_FUTEX\" was never defined.
18250 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18253 : "${CONFIG_STATUS=./config.status}"
18254 ac_write_fail=0
18255 ac_clean_files_save=$ac_clean_files
18256 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18257 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18258 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18259 as_write_fail=0
18260 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18261 #! $SHELL
18262 # Generated by $as_me.
18263 # Run this file to recreate the current configuration.
18264 # Compiler output produced by configure, useful for debugging
18265 # configure, is in config.log if it exists.
18267 debug=false
18268 ac_cs_recheck=false
18269 ac_cs_silent=false
18271 SHELL=\${CONFIG_SHELL-$SHELL}
18272 export SHELL
18273 _ASEOF
18274 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18275 ## -------------------- ##
18276 ## M4sh Initialization. ##
18277 ## -------------------- ##
18279 # Be more Bourne compatible
18280 DUALCASE=1; export DUALCASE # for MKS sh
18281 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18282 emulate sh
18283 NULLCMD=:
18284 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18285 # is contrary to our usage. Disable this feature.
18286 alias -g '${1+"$@"}'='"$@"'
18287 setopt NO_GLOB_SUBST
18288 else
18289 case `(set -o) 2>/dev/null` in #(
18290 *posix*) :
18291 set -o posix ;; #(
18292 *) :
18294 esac
18298 as_nl='
18300 export as_nl
18301 # Printing a long string crashes Solaris 7 /usr/bin/printf.
18302 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18303 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18304 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18305 # Prefer a ksh shell builtin over an external printf program on Solaris,
18306 # but without wasting forks for bash or zsh.
18307 if test -z "$BASH_VERSION$ZSH_VERSION" \
18308 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18309 as_echo='print -r --'
18310 as_echo_n='print -rn --'
18311 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18312 as_echo='printf %s\n'
18313 as_echo_n='printf %s'
18314 else
18315 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18316 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18317 as_echo_n='/usr/ucb/echo -n'
18318 else
18319 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18320 as_echo_n_body='eval
18321 arg=$1;
18322 case $arg in #(
18323 *"$as_nl"*)
18324 expr "X$arg" : "X\\(.*\\)$as_nl";
18325 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18326 esac;
18327 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18329 export as_echo_n_body
18330 as_echo_n='sh -c $as_echo_n_body as_echo'
18332 export as_echo_body
18333 as_echo='sh -c $as_echo_body as_echo'
18336 # The user is always right.
18337 if test "${PATH_SEPARATOR+set}" != set; then
18338 PATH_SEPARATOR=:
18339 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18340 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18341 PATH_SEPARATOR=';'
18346 # IFS
18347 # We need space, tab and new line, in precisely that order. Quoting is
18348 # there to prevent editors from complaining about space-tab.
18349 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
18350 # splitting by setting IFS to empty value.)
18351 IFS=" "" $as_nl"
18353 # Find who we are. Look in the path if we contain no directory separator.
18354 as_myself=
18355 case $0 in #((
18356 *[\\/]* ) as_myself=$0 ;;
18357 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18358 for as_dir in $PATH
18360 IFS=$as_save_IFS
18361 test -z "$as_dir" && as_dir=.
18362 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18363 done
18364 IFS=$as_save_IFS
18367 esac
18368 # We did not find ourselves, most probably we were run as `sh COMMAND'
18369 # in which case we are not to be found in the path.
18370 if test "x$as_myself" = x; then
18371 as_myself=$0
18373 if test ! -f "$as_myself"; then
18374 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18375 exit 1
18378 # Unset variables that we do not need and which cause bugs (e.g. in
18379 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
18380 # suppresses any "Segmentation fault" message there. '((' could
18381 # trigger a bug in pdksh 5.2.14.
18382 for as_var in BASH_ENV ENV MAIL MAILPATH
18383 do eval test x\${$as_var+set} = xset \
18384 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18385 done
18386 PS1='$ '
18387 PS2='> '
18388 PS4='+ '
18390 # NLS nuisances.
18391 LC_ALL=C
18392 export LC_ALL
18393 LANGUAGE=C
18394 export LANGUAGE
18396 # CDPATH.
18397 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18400 # as_fn_error STATUS ERROR [LINENO LOG_FD]
18401 # ----------------------------------------
18402 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18403 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18404 # script with STATUS, using 1 if that was 0.
18405 as_fn_error ()
18407 as_status=$1; test $as_status -eq 0 && as_status=1
18408 if test "$4"; then
18409 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18410 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
18412 $as_echo "$as_me: error: $2" >&2
18413 as_fn_exit $as_status
18414 } # as_fn_error
18417 # as_fn_set_status STATUS
18418 # -----------------------
18419 # Set $? to STATUS, without forking.
18420 as_fn_set_status ()
18422 return $1
18423 } # as_fn_set_status
18425 # as_fn_exit STATUS
18426 # -----------------
18427 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18428 as_fn_exit ()
18430 set +e
18431 as_fn_set_status $1
18432 exit $1
18433 } # as_fn_exit
18435 # as_fn_unset VAR
18436 # ---------------
18437 # Portably unset VAR.
18438 as_fn_unset ()
18440 { eval $1=; unset $1;}
18442 as_unset=as_fn_unset
18443 # as_fn_append VAR VALUE
18444 # ----------------------
18445 # Append the text in VALUE to the end of the definition contained in VAR. Take
18446 # advantage of any shell optimizations that allow amortized linear growth over
18447 # repeated appends, instead of the typical quadratic growth present in naive
18448 # implementations.
18449 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
18450 eval 'as_fn_append ()
18452 eval $1+=\$2
18454 else
18455 as_fn_append ()
18457 eval $1=\$$1\$2
18459 fi # as_fn_append
18461 # as_fn_arith ARG...
18462 # ------------------
18463 # Perform arithmetic evaluation on the ARGs, and store the result in the
18464 # global $as_val. Take advantage of shells that can avoid forks. The arguments
18465 # must be portable across $(()) and expr.
18466 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
18467 eval 'as_fn_arith ()
18469 as_val=$(( $* ))
18471 else
18472 as_fn_arith ()
18474 as_val=`expr "$@" || test $? -eq 1`
18476 fi # as_fn_arith
18479 if expr a : '\(a\)' >/dev/null 2>&1 &&
18480 test "X`expr 00001 : '.*\(...\)'`" = X001; then
18481 as_expr=expr
18482 else
18483 as_expr=false
18486 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18487 as_basename=basename
18488 else
18489 as_basename=false
18492 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18493 as_dirname=dirname
18494 else
18495 as_dirname=false
18498 as_me=`$as_basename -- "$0" ||
18499 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18500 X"$0" : 'X\(//\)$' \| \
18501 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18502 $as_echo X/"$0" |
18503 sed '/^.*\/\([^/][^/]*\)\/*$/{
18504 s//\1/
18507 /^X\/\(\/\/\)$/{
18508 s//\1/
18511 /^X\/\(\/\).*/{
18512 s//\1/
18515 s/.*/./; q'`
18517 # Avoid depending upon Character Ranges.
18518 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18519 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18520 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18521 as_cr_digits='0123456789'
18522 as_cr_alnum=$as_cr_Letters$as_cr_digits
18524 ECHO_C= ECHO_N= ECHO_T=
18525 case `echo -n x` in #(((((
18526 -n*)
18527 case `echo 'xy\c'` in
18528 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
18529 xy) ECHO_C='\c';;
18530 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
18531 ECHO_T=' ';;
18532 esac;;
18534 ECHO_N='-n';;
18535 esac
18537 rm -f conf$$ conf$$.exe conf$$.file
18538 if test -d conf$$.dir; then
18539 rm -f conf$$.dir/conf$$.file
18540 else
18541 rm -f conf$$.dir
18542 mkdir conf$$.dir 2>/dev/null
18544 if (echo >conf$$.file) 2>/dev/null; then
18545 if ln -s conf$$.file conf$$ 2>/dev/null; then
18546 as_ln_s='ln -s'
18547 # ... but there are two gotchas:
18548 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18549 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18550 # In both cases, we have to default to `cp -pR'.
18551 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18552 as_ln_s='cp -pR'
18553 elif ln conf$$.file conf$$ 2>/dev/null; then
18554 as_ln_s=ln
18555 else
18556 as_ln_s='cp -pR'
18558 else
18559 as_ln_s='cp -pR'
18561 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18562 rmdir conf$$.dir 2>/dev/null
18565 # as_fn_mkdir_p
18566 # -------------
18567 # Create "$as_dir" as a directory, including parents if necessary.
18568 as_fn_mkdir_p ()
18571 case $as_dir in #(
18572 -*) as_dir=./$as_dir;;
18573 esac
18574 test -d "$as_dir" || eval $as_mkdir_p || {
18575 as_dirs=
18576 while :; do
18577 case $as_dir in #(
18578 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18579 *) as_qdir=$as_dir;;
18580 esac
18581 as_dirs="'$as_qdir' $as_dirs"
18582 as_dir=`$as_dirname -- "$as_dir" ||
18583 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18584 X"$as_dir" : 'X\(//\)[^/]' \| \
18585 X"$as_dir" : 'X\(//\)$' \| \
18586 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18587 $as_echo X"$as_dir" |
18588 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18589 s//\1/
18592 /^X\(\/\/\)[^/].*/{
18593 s//\1/
18596 /^X\(\/\/\)$/{
18597 s//\1/
18600 /^X\(\/\).*/{
18601 s//\1/
18604 s/.*/./; q'`
18605 test -d "$as_dir" && break
18606 done
18607 test -z "$as_dirs" || eval "mkdir $as_dirs"
18608 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
18611 } # as_fn_mkdir_p
18612 if mkdir -p . 2>/dev/null; then
18613 as_mkdir_p='mkdir -p "$as_dir"'
18614 else
18615 test -d ./-p && rmdir ./-p
18616 as_mkdir_p=false
18620 # as_fn_executable_p FILE
18621 # -----------------------
18622 # Test if FILE is an executable regular file.
18623 as_fn_executable_p ()
18625 test -f "$1" && test -x "$1"
18626 } # as_fn_executable_p
18627 as_test_x='test -x'
18628 as_executable_p=as_fn_executable_p
18630 # Sed expression to map a string onto a valid CPP name.
18631 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18633 # Sed expression to map a string onto a valid variable name.
18634 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18637 exec 6>&1
18638 ## ----------------------------------- ##
18639 ## Main body of $CONFIG_STATUS script. ##
18640 ## ----------------------------------- ##
18641 _ASEOF
18642 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
18644 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18645 # Save the log message, to keep $0 and so on meaningful, and to
18646 # report actual input values of CONFIG_FILES etc. instead of their
18647 # values after options handling.
18648 ac_log="
18649 This file was extended by GNU TM Runtime Library $as_me 1.0, which was
18650 generated by GNU Autoconf 2.69. Invocation command line was
18652 CONFIG_FILES = $CONFIG_FILES
18653 CONFIG_HEADERS = $CONFIG_HEADERS
18654 CONFIG_LINKS = $CONFIG_LINKS
18655 CONFIG_COMMANDS = $CONFIG_COMMANDS
18656 $ $0 $@
18658 on `(hostname || uname -n) 2>/dev/null | sed 1q`
18661 _ACEOF
18663 case $ac_config_files in *"
18664 "*) set x $ac_config_files; shift; ac_config_files=$*;;
18665 esac
18667 case $ac_config_headers in *"
18668 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
18669 esac
18672 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18673 # Files that config.status was made for.
18674 config_files="$ac_config_files"
18675 config_headers="$ac_config_headers"
18676 config_commands="$ac_config_commands"
18678 _ACEOF
18680 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18681 ac_cs_usage="\
18682 \`$as_me' instantiates files and other configuration actions
18683 from templates according to the current configuration. Unless the files
18684 and actions are specified as TAGs, all are instantiated by default.
18686 Usage: $0 [OPTION]... [TAG]...
18688 -h, --help print this help, then exit
18689 -V, --version print version number and configuration settings, then exit
18690 --config print configuration, then exit
18691 -q, --quiet, --silent
18692 do not print progress messages
18693 -d, --debug don't remove temporary files
18694 --recheck update $as_me by reconfiguring in the same conditions
18695 --file=FILE[:TEMPLATE]
18696 instantiate the configuration file FILE
18697 --header=FILE[:TEMPLATE]
18698 instantiate the configuration header FILE
18700 Configuration files:
18701 $config_files
18703 Configuration headers:
18704 $config_headers
18706 Configuration commands:
18707 $config_commands
18709 Report bugs to the package provider.
18710 GNU TM Runtime Library home page: <http://www.gnu.org/software/libitm/>.
18711 General help using GNU software: <http://www.gnu.org/gethelp/>."
18713 _ACEOF
18714 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18715 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
18716 ac_cs_version="\\
18717 GNU TM Runtime Library config.status 1.0
18718 configured by $0, generated by GNU Autoconf 2.69,
18719 with options \\"\$ac_cs_config\\"
18721 Copyright (C) 2012 Free Software Foundation, Inc.
18722 This config.status script is free software; the Free Software Foundation
18723 gives unlimited permission to copy, distribute and modify it."
18725 ac_pwd='$ac_pwd'
18726 srcdir='$srcdir'
18727 INSTALL='$INSTALL'
18728 MKDIR_P='$MKDIR_P'
18729 AWK='$AWK'
18730 test -n "\$AWK" || AWK=awk
18731 _ACEOF
18733 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18734 # The default lists apply if the user does not specify any file.
18735 ac_need_defaults=:
18736 while test $# != 0
18738 case $1 in
18739 --*=?*)
18740 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18741 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18742 ac_shift=:
18744 --*=)
18745 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18746 ac_optarg=
18747 ac_shift=:
18750 ac_option=$1
18751 ac_optarg=$2
18752 ac_shift=shift
18754 esac
18756 case $ac_option in
18757 # Handling of the options.
18758 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18759 ac_cs_recheck=: ;;
18760 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18761 $as_echo "$ac_cs_version"; exit ;;
18762 --config | --confi | --conf | --con | --co | --c )
18763 $as_echo "$ac_cs_config"; exit ;;
18764 --debug | --debu | --deb | --de | --d | -d )
18765 debug=: ;;
18766 --file | --fil | --fi | --f )
18767 $ac_shift
18768 case $ac_optarg in
18769 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18770 '') as_fn_error $? "missing file argument" ;;
18771 esac
18772 as_fn_append CONFIG_FILES " '$ac_optarg'"
18773 ac_need_defaults=false;;
18774 --header | --heade | --head | --hea )
18775 $ac_shift
18776 case $ac_optarg in
18777 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18778 esac
18779 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
18780 ac_need_defaults=false;;
18781 --he | --h)
18782 # Conflict between --help and --header
18783 as_fn_error $? "ambiguous option: \`$1'
18784 Try \`$0 --help' for more information.";;
18785 --help | --hel | -h )
18786 $as_echo "$ac_cs_usage"; exit ;;
18787 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18788 | -silent | --silent | --silen | --sile | --sil | --si | --s)
18789 ac_cs_silent=: ;;
18791 # This is an error.
18792 -*) as_fn_error $? "unrecognized option: \`$1'
18793 Try \`$0 --help' for more information." ;;
18795 *) as_fn_append ac_config_targets " $1"
18796 ac_need_defaults=false ;;
18798 esac
18799 shift
18800 done
18802 ac_configure_extra_args=
18804 if $ac_cs_silent; then
18805 exec 6>/dev/null
18806 ac_configure_extra_args="$ac_configure_extra_args --silent"
18809 _ACEOF
18810 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18811 if \$ac_cs_recheck; then
18812 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18813 shift
18814 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18815 CONFIG_SHELL='$SHELL'
18816 export CONFIG_SHELL
18817 exec "\$@"
18820 _ACEOF
18821 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18822 exec 5>>config.log
18824 echo
18825 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18826 ## Running $as_me. ##
18827 _ASBOX
18828 $as_echo "$ac_log"
18829 } >&5
18831 _ACEOF
18832 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18834 # INIT-COMMANDS
18837 srcdir="$srcdir"
18838 host="$host"
18839 target="$target"
18840 with_multisubdir="$with_multisubdir"
18841 with_multisrctop="$with_multisrctop"
18842 with_target_subdir="$with_target_subdir"
18843 ac_configure_args="${multilib_arg} ${ac_configure_args}"
18844 multi_basedir="$multi_basedir"
18845 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
18846 CC="$CC"
18847 CXX="$CXX"
18848 GFORTRAN="$GFORTRAN"
18849 GDC="$GDC"
18850 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
18853 # The HP-UX ksh and POSIX shell print the target directory to stdout
18854 # if CDPATH is set.
18855 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18857 sed_quote_subst='$sed_quote_subst'
18858 double_quote_subst='$double_quote_subst'
18859 delay_variable_subst='$delay_variable_subst'
18860 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
18861 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
18862 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
18863 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
18864 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
18865 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
18866 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
18867 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
18868 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
18869 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
18870 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
18871 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
18872 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
18873 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
18874 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
18875 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
18876 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
18877 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
18878 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
18879 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
18880 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
18881 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
18882 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
18883 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
18884 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
18885 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
18886 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
18887 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
18888 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
18889 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
18890 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
18891 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
18892 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
18893 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
18894 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
18895 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
18896 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
18897 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18898 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18899 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
18900 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
18901 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
18902 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
18903 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
18904 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
18905 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
18906 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
18907 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
18908 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"`'
18909 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
18910 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
18911 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
18912 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
18913 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
18914 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
18915 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
18916 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
18917 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
18918 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
18919 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
18920 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
18921 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
18922 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
18923 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
18924 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18925 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
18926 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
18927 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
18928 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
18929 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
18930 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
18931 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18932 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
18933 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18934 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
18935 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18936 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
18937 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
18938 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
18939 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
18940 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
18941 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
18942 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
18943 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
18944 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
18945 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
18946 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
18947 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
18948 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
18949 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
18950 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
18951 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
18952 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
18953 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
18954 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
18955 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
18956 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
18957 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
18958 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
18959 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
18960 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
18961 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
18962 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
18963 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
18964 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
18965 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
18966 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
18967 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18968 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18969 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
18970 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
18971 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
18972 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
18973 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
18974 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
18975 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
18976 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
18977 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
18978 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
18979 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
18980 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
18981 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
18982 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
18983 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
18984 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
18985 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
18986 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
18987 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
18988 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18989 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18990 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
18991 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
18992 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
18993 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
18994 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
18995 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
18996 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
18997 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
18998 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
18999 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
19000 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
19001 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
19002 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19003 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19004 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19005 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19006 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19007 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19008 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
19009 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
19010 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
19011 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
19012 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
19013 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
19014 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
19015 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
19016 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
19017 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
19018 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
19019 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
19020 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
19021 fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
19022 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
19023 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19024 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
19025 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
19026 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19027 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
19028 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
19029 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
19030 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
19031 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
19032 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
19033 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
19034 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
19036 LTCC='$LTCC'
19037 LTCFLAGS='$LTCFLAGS'
19038 compiler='$compiler_DEFAULT'
19040 # A function that is used when there is no print builtin or printf.
19041 func_fallback_echo ()
19043 eval 'cat <<_LTECHO_EOF
19045 _LTECHO_EOF'
19048 # Quote evaled strings.
19049 for var in SHELL \
19050 ECHO \
19051 SED \
19052 GREP \
19053 EGREP \
19054 FGREP \
19055 LD \
19056 NM \
19057 LN_S \
19058 lt_SP2NL \
19059 lt_NL2SP \
19060 reload_flag \
19061 OBJDUMP \
19062 deplibs_check_method \
19063 file_magic_cmd \
19064 AR \
19065 AR_FLAGS \
19066 STRIP \
19067 RANLIB \
19068 CC \
19069 CFLAGS \
19070 compiler \
19071 lt_cv_sys_global_symbol_pipe \
19072 lt_cv_sys_global_symbol_to_cdecl \
19073 lt_cv_sys_global_symbol_to_c_name_address \
19074 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
19075 lt_prog_compiler_no_builtin_flag \
19076 lt_prog_compiler_wl \
19077 lt_prog_compiler_pic \
19078 lt_prog_compiler_static \
19079 lt_cv_prog_compiler_c_o \
19080 need_locks \
19081 DSYMUTIL \
19082 NMEDIT \
19083 LIPO \
19084 OTOOL \
19085 OTOOL64 \
19086 shrext_cmds \
19087 export_dynamic_flag_spec \
19088 whole_archive_flag_spec \
19089 compiler_needs_object \
19090 with_gnu_ld \
19091 allow_undefined_flag \
19092 no_undefined_flag \
19093 hardcode_libdir_flag_spec \
19094 hardcode_libdir_flag_spec_ld \
19095 hardcode_libdir_separator \
19096 fix_srcfile_path \
19097 exclude_expsyms \
19098 include_expsyms \
19099 file_list_spec \
19100 variables_saved_for_relink \
19101 libname_spec \
19102 library_names_spec \
19103 soname_spec \
19104 install_override_mode \
19105 finish_eval \
19106 old_striplib \
19107 striplib \
19108 compiler_lib_search_dirs \
19109 predep_objects \
19110 postdep_objects \
19111 predeps \
19112 postdeps \
19113 compiler_lib_search_path \
19114 LD_CXX \
19115 reload_flag_CXX \
19116 compiler_CXX \
19117 lt_prog_compiler_no_builtin_flag_CXX \
19118 lt_prog_compiler_wl_CXX \
19119 lt_prog_compiler_pic_CXX \
19120 lt_prog_compiler_static_CXX \
19121 lt_cv_prog_compiler_c_o_CXX \
19122 export_dynamic_flag_spec_CXX \
19123 whole_archive_flag_spec_CXX \
19124 compiler_needs_object_CXX \
19125 with_gnu_ld_CXX \
19126 allow_undefined_flag_CXX \
19127 no_undefined_flag_CXX \
19128 hardcode_libdir_flag_spec_CXX \
19129 hardcode_libdir_flag_spec_ld_CXX \
19130 hardcode_libdir_separator_CXX \
19131 fix_srcfile_path_CXX \
19132 exclude_expsyms_CXX \
19133 include_expsyms_CXX \
19134 file_list_spec_CXX \
19135 compiler_lib_search_dirs_CXX \
19136 predep_objects_CXX \
19137 postdep_objects_CXX \
19138 predeps_CXX \
19139 postdeps_CXX \
19140 compiler_lib_search_path_CXX; do
19141 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19142 *[\\\\\\\`\\"\\\$]*)
19143 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
19146 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19148 esac
19149 done
19151 # Double-quote double-evaled strings.
19152 for var in reload_cmds \
19153 old_postinstall_cmds \
19154 old_postuninstall_cmds \
19155 old_archive_cmds \
19156 extract_expsyms_cmds \
19157 old_archive_from_new_cmds \
19158 old_archive_from_expsyms_cmds \
19159 archive_cmds \
19160 archive_expsym_cmds \
19161 module_cmds \
19162 module_expsym_cmds \
19163 export_symbols_cmds \
19164 prelink_cmds \
19165 postinstall_cmds \
19166 postuninstall_cmds \
19167 finish_cmds \
19168 sys_lib_search_path_spec \
19169 sys_lib_dlsearch_path_spec \
19170 reload_cmds_CXX \
19171 old_archive_cmds_CXX \
19172 old_archive_from_new_cmds_CXX \
19173 old_archive_from_expsyms_cmds_CXX \
19174 archive_cmds_CXX \
19175 archive_expsym_cmds_CXX \
19176 module_cmds_CXX \
19177 module_expsym_cmds_CXX \
19178 export_symbols_cmds_CXX \
19179 prelink_cmds_CXX; do
19180 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19181 *[\\\\\\\`\\"\\\$]*)
19182 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
19185 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19187 esac
19188 done
19190 ac_aux_dir='$ac_aux_dir'
19191 xsi_shell='$xsi_shell'
19192 lt_shell_append='$lt_shell_append'
19194 # See if we are running on zsh, and set the options which allow our
19195 # commands through without removal of \ escapes INIT.
19196 if test -n "\${ZSH_VERSION+set}" ; then
19197 setopt NO_GLOB_SUBST
19201 PACKAGE='$PACKAGE'
19202 VERSION='$VERSION'
19203 TIMESTAMP='$TIMESTAMP'
19204 RM='$RM'
19205 ofile='$ofile'
19212 GCC="$GCC"
19213 CC="$CC"
19214 acx_cv_header_stdint="$acx_cv_header_stdint"
19215 acx_cv_type_int8_t="$acx_cv_type_int8_t"
19216 acx_cv_type_int16_t="$acx_cv_type_int16_t"
19217 acx_cv_type_int32_t="$acx_cv_type_int32_t"
19218 acx_cv_type_int64_t="$acx_cv_type_int64_t"
19219 acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
19220 ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
19221 ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
19222 ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
19223 ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
19224 ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
19225 ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
19226 ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
19227 ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
19230 _ACEOF
19232 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19234 # Handling of arguments.
19235 for ac_config_target in $ac_config_targets
19237 case $ac_config_target in
19238 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
19239 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
19240 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
19241 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
19242 "gstdint.h") CONFIG_COMMANDS="$CONFIG_COMMANDS gstdint.h" ;;
19243 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19244 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
19245 "libitm.spec") CONFIG_FILES="$CONFIG_FILES libitm.spec" ;;
19247 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19248 esac
19249 done
19252 # If the user did not use the arguments to specify the items to instantiate,
19253 # then the envvar interface is used. Set only those that are not.
19254 # We use the long form for the default assignment because of an extremely
19255 # bizarre bug on SunOS 4.1.3.
19256 if $ac_need_defaults; then
19257 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19258 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19259 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19262 # Have a temporary directory for convenience. Make it in the build tree
19263 # simply because there is no reason against having it here, and in addition,
19264 # creating and moving files from /tmp can sometimes cause problems.
19265 # Hook for its removal unless debugging.
19266 # Note that there is a small window in which the directory will not be cleaned:
19267 # after its creation but before its name has been assigned to `$tmp'.
19268 $debug ||
19270 tmp= ac_tmp=
19271 trap 'exit_status=$?
19272 : "${ac_tmp:=$tmp}"
19273 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19275 trap 'as_fn_exit 1' 1 2 13 15
19277 # Create a (secure) tmp directory for tmp files.
19280 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19281 test -d "$tmp"
19282 } ||
19284 tmp=./conf$$-$RANDOM
19285 (umask 077 && mkdir "$tmp")
19286 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
19287 ac_tmp=$tmp
19289 # Set up the scripts for CONFIG_FILES section.
19290 # No need to generate them if there are no CONFIG_FILES.
19291 # This happens for instance with `./config.status config.h'.
19292 if test -n "$CONFIG_FILES"; then
19295 ac_cr=`echo X | tr X '\015'`
19296 # On cygwin, bash can eat \r inside `` if the user requested igncr.
19297 # But we know of no other shell where ac_cr would be empty at this
19298 # point, so we can use a bashism as a fallback.
19299 if test "x$ac_cr" = x; then
19300 eval ac_cr=\$\'\\r\'
19302 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19303 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19304 ac_cs_awk_cr='\\r'
19305 else
19306 ac_cs_awk_cr=$ac_cr
19309 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
19310 _ACEOF
19314 echo "cat >conf$$subs.awk <<_ACEOF" &&
19315 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19316 echo "_ACEOF"
19317 } >conf$$subs.sh ||
19318 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19319 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19320 ac_delim='%!_!# '
19321 for ac_last_try in false false false false false :; do
19322 . ./conf$$subs.sh ||
19323 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19325 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19326 if test $ac_delim_n = $ac_delim_num; then
19327 break
19328 elif $ac_last_try; then
19329 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19330 else
19331 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19333 done
19334 rm -f conf$$subs.sh
19336 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19337 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
19338 _ACEOF
19339 sed -n '
19341 s/^/S["/; s/!.*/"]=/
19344 s/^[^!]*!//
19345 :repl
19346 t repl
19347 s/'"$ac_delim"'$//
19348 t delim
19351 s/\(.\{148\}\)..*/\1/
19352 t more1
19353 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19356 b repl
19357 :more1
19358 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19361 s/.\{148\}//
19362 t nl
19363 :delim
19365 s/\(.\{148\}\)..*/\1/
19366 t more2
19367 s/["\\]/\\&/g; s/^/"/; s/$/"/
19370 :more2
19371 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19374 s/.\{148\}//
19375 t delim
19376 ' <conf$$subs.awk | sed '
19377 /^[^""]/{
19379 s/\n//
19381 ' >>$CONFIG_STATUS || ac_write_fail=1
19382 rm -f conf$$subs.awk
19383 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19384 _ACAWK
19385 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
19386 for (key in S) S_is_set[key] = 1
19387 FS = "\a"
19391 line = $ 0
19392 nfields = split(line, field, "@")
19393 substed = 0
19394 len = length(field[1])
19395 for (i = 2; i < nfields; i++) {
19396 key = field[i]
19397 keylen = length(key)
19398 if (S_is_set[key]) {
19399 value = S[key]
19400 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19401 len += length(value) + length(field[++i])
19402 substed = 1
19403 } else
19404 len += 1 + keylen
19407 print line
19410 _ACAWK
19411 _ACEOF
19412 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19413 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19414 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19415 else
19417 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
19418 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
19419 _ACEOF
19421 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19422 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
19423 # trailing colons and then remove the whole line if VPATH becomes empty
19424 # (actually we leave an empty line to preserve line numbers).
19425 if test "x$srcdir" = x.; then
19426 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
19428 s///
19429 s/^/:/
19430 s/[ ]*$/:/
19431 s/:\$(srcdir):/:/g
19432 s/:\${srcdir}:/:/g
19433 s/:@srcdir@:/:/g
19434 s/^:*//
19435 s/:*$//
19437 s/\(=[ ]*\).*/\1/
19439 s/\n//
19440 s/^[^=]*=[ ]*$//
19444 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19445 fi # test -n "$CONFIG_FILES"
19447 # Set up the scripts for CONFIG_HEADERS section.
19448 # No need to generate them if there are no CONFIG_HEADERS.
19449 # This happens for instance with `./config.status Makefile'.
19450 if test -n "$CONFIG_HEADERS"; then
19451 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
19452 BEGIN {
19453 _ACEOF
19455 # Transform confdefs.h into an awk script `defines.awk', embedded as
19456 # here-document in config.status, that substitutes the proper values into
19457 # config.h.in to produce config.h.
19459 # Create a delimiter string that does not exist in confdefs.h, to ease
19460 # handling of long lines.
19461 ac_delim='%!_!# '
19462 for ac_last_try in false false :; do
19463 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
19464 if test -z "$ac_tt"; then
19465 break
19466 elif $ac_last_try; then
19467 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
19468 else
19469 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19471 done
19473 # For the awk script, D is an array of macro values keyed by name,
19474 # likewise P contains macro parameters if any. Preserve backslash
19475 # newline sequences.
19477 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19478 sed -n '
19479 s/.\{148\}/&'"$ac_delim"'/g
19480 t rset
19481 :rset
19482 s/^[ ]*#[ ]*define[ ][ ]*/ /
19483 t def
19485 :def
19486 s/\\$//
19487 t bsnl
19488 s/["\\]/\\&/g
19489 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19490 D["\1"]=" \3"/p
19491 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
19493 :bsnl
19494 s/["\\]/\\&/g
19495 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19496 D["\1"]=" \3\\\\\\n"\\/p
19497 t cont
19498 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
19499 t cont
19501 :cont
19503 s/.\{148\}/&'"$ac_delim"'/g
19504 t clear
19505 :clear
19506 s/\\$//
19507 t bsnlc
19508 s/["\\]/\\&/g; s/^/"/; s/$/"/p
19510 :bsnlc
19511 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
19512 b cont
19513 ' <confdefs.h | sed '
19514 s/'"$ac_delim"'/"\\\
19515 "/g' >>$CONFIG_STATUS || ac_write_fail=1
19517 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19518 for (key in D) D_is_set[key] = 1
19519 FS = "\a"
19521 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
19522 line = \$ 0
19523 split(line, arg, " ")
19524 if (arg[1] == "#") {
19525 defundef = arg[2]
19526 mac1 = arg[3]
19527 } else {
19528 defundef = substr(arg[1], 2)
19529 mac1 = arg[2]
19531 split(mac1, mac2, "(") #)
19532 macro = mac2[1]
19533 prefix = substr(line, 1, index(line, defundef) - 1)
19534 if (D_is_set[macro]) {
19535 # Preserve the white space surrounding the "#".
19536 print prefix "define", macro P[macro] D[macro]
19537 next
19538 } else {
19539 # Replace #undef with comments. This is necessary, for example,
19540 # in the case of _POSIX_SOURCE, which is predefined and required
19541 # on some systems where configure will not decide to define it.
19542 if (defundef == "undef") {
19543 print "/*", prefix defundef, macro, "*/"
19544 next
19548 { print }
19549 _ACAWK
19550 _ACEOF
19551 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19552 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
19553 fi # test -n "$CONFIG_HEADERS"
19556 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
19557 shift
19558 for ac_tag
19560 case $ac_tag in
19561 :[FHLC]) ac_mode=$ac_tag; continue;;
19562 esac
19563 case $ac_mode$ac_tag in
19564 :[FHL]*:*);;
19565 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
19566 :[FH]-) ac_tag=-:-;;
19567 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19568 esac
19569 ac_save_IFS=$IFS
19570 IFS=:
19571 set x $ac_tag
19572 IFS=$ac_save_IFS
19573 shift
19574 ac_file=$1
19575 shift
19577 case $ac_mode in
19578 :L) ac_source=$1;;
19579 :[FH])
19580 ac_file_inputs=
19581 for ac_f
19583 case $ac_f in
19584 -) ac_f="$ac_tmp/stdin";;
19585 *) # Look for the file first in the build tree, then in the source tree
19586 # (if the path is not absolute). The absolute path cannot be DOS-style,
19587 # because $ac_f cannot contain `:'.
19588 test -f "$ac_f" ||
19589 case $ac_f in
19590 [\\/$]*) false;;
19591 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19592 esac ||
19593 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
19594 esac
19595 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19596 as_fn_append ac_file_inputs " '$ac_f'"
19597 done
19599 # Let's still pretend it is `configure' which instantiates (i.e., don't
19600 # use $as_me), people would be surprised to read:
19601 # /* config.h. Generated by config.status. */
19602 configure_input='Generated from '`
19603 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19604 `' by configure.'
19605 if test x"$ac_file" != x-; then
19606 configure_input="$ac_file. $configure_input"
19607 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19608 $as_echo "$as_me: creating $ac_file" >&6;}
19610 # Neutralize special characters interpreted by sed in replacement strings.
19611 case $configure_input in #(
19612 *\&* | *\|* | *\\* )
19613 ac_sed_conf_input=`$as_echo "$configure_input" |
19614 sed 's/[\\\\&|]/\\\\&/g'`;; #(
19615 *) ac_sed_conf_input=$configure_input;;
19616 esac
19618 case $ac_tag in
19619 *:-:* | *:-) cat >"$ac_tmp/stdin" \
19620 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
19621 esac
19623 esac
19625 ac_dir=`$as_dirname -- "$ac_file" ||
19626 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19627 X"$ac_file" : 'X\(//\)[^/]' \| \
19628 X"$ac_file" : 'X\(//\)$' \| \
19629 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19630 $as_echo X"$ac_file" |
19631 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19632 s//\1/
19635 /^X\(\/\/\)[^/].*/{
19636 s//\1/
19639 /^X\(\/\/\)$/{
19640 s//\1/
19643 /^X\(\/\).*/{
19644 s//\1/
19647 s/.*/./; q'`
19648 as_dir="$ac_dir"; as_fn_mkdir_p
19649 ac_builddir=.
19651 case "$ac_dir" in
19652 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19654 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19655 # A ".." for each directory in $ac_dir_suffix.
19656 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19657 case $ac_top_builddir_sub in
19658 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19659 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19660 esac ;;
19661 esac
19662 ac_abs_top_builddir=$ac_pwd
19663 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19664 # for backward compatibility:
19665 ac_top_builddir=$ac_top_build_prefix
19667 case $srcdir in
19668 .) # We are building in place.
19669 ac_srcdir=.
19670 ac_top_srcdir=$ac_top_builddir_sub
19671 ac_abs_top_srcdir=$ac_pwd ;;
19672 [\\/]* | ?:[\\/]* ) # Absolute name.
19673 ac_srcdir=$srcdir$ac_dir_suffix;
19674 ac_top_srcdir=$srcdir
19675 ac_abs_top_srcdir=$srcdir ;;
19676 *) # Relative name.
19677 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19678 ac_top_srcdir=$ac_top_build_prefix$srcdir
19679 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19680 esac
19681 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19684 case $ac_mode in
19687 # CONFIG_FILE
19690 case $INSTALL in
19691 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19692 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19693 esac
19694 ac_MKDIR_P=$MKDIR_P
19695 case $MKDIR_P in
19696 [\\/$]* | ?:[\\/]* ) ;;
19697 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
19698 esac
19699 _ACEOF
19701 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19702 # If the template does not know about datarootdir, expand it.
19703 # FIXME: This hack should be removed a few years after 2.60.
19704 ac_datarootdir_hack=; ac_datarootdir_seen=
19705 ac_sed_dataroot='
19706 /datarootdir/ {
19710 /@datadir@/p
19711 /@docdir@/p
19712 /@infodir@/p
19713 /@localedir@/p
19714 /@mandir@/p'
19715 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19716 *datarootdir*) ac_datarootdir_seen=yes;;
19717 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19718 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19719 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19720 _ACEOF
19721 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19722 ac_datarootdir_hack='
19723 s&@datadir@&$datadir&g
19724 s&@docdir@&$docdir&g
19725 s&@infodir@&$infodir&g
19726 s&@localedir@&$localedir&g
19727 s&@mandir@&$mandir&g
19728 s&\\\${datarootdir}&$datarootdir&g' ;;
19729 esac
19730 _ACEOF
19732 # Neutralize VPATH when `$srcdir' = `.'.
19733 # Shell code in configure.ac might set extrasub.
19734 # FIXME: do we really want to maintain this feature?
19735 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19736 ac_sed_extra="$ac_vpsub
19737 $extrasub
19738 _ACEOF
19739 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19741 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19742 s|@configure_input@|$ac_sed_conf_input|;t t
19743 s&@top_builddir@&$ac_top_builddir_sub&;t t
19744 s&@top_build_prefix@&$ac_top_build_prefix&;t t
19745 s&@srcdir@&$ac_srcdir&;t t
19746 s&@abs_srcdir@&$ac_abs_srcdir&;t t
19747 s&@top_srcdir@&$ac_top_srcdir&;t t
19748 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19749 s&@builddir@&$ac_builddir&;t t
19750 s&@abs_builddir@&$ac_abs_builddir&;t t
19751 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19752 s&@INSTALL@&$ac_INSTALL&;t t
19753 s&@MKDIR_P@&$ac_MKDIR_P&;t t
19754 $ac_datarootdir_hack
19756 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
19757 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19759 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19760 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
19761 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
19762 "$ac_tmp/out"`; test -z "$ac_out"; } &&
19763 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19764 which seems to be undefined. Please make sure it is defined" >&5
19765 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19766 which seems to be undefined. Please make sure it is defined" >&2;}
19768 rm -f "$ac_tmp/stdin"
19769 case $ac_file in
19770 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
19771 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
19772 esac \
19773 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19777 # CONFIG_HEADER
19779 if test x"$ac_file" != x-; then
19781 $as_echo "/* $configure_input */" \
19782 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
19783 } >"$ac_tmp/config.h" \
19784 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19785 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
19786 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
19787 $as_echo "$as_me: $ac_file is unchanged" >&6;}
19788 else
19789 rm -f "$ac_file"
19790 mv "$ac_tmp/config.h" "$ac_file" \
19791 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19793 else
19794 $as_echo "/* $configure_input */" \
19795 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
19796 || as_fn_error $? "could not create -" "$LINENO" 5
19798 # Compute "$ac_file"'s index in $config_headers.
19799 _am_arg="$ac_file"
19800 _am_stamp_count=1
19801 for _am_header in $config_headers :; do
19802 case $_am_header in
19803 $_am_arg | $_am_arg:* )
19804 break ;;
19806 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
19807 esac
19808 done
19809 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
19810 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19811 X"$_am_arg" : 'X\(//\)[^/]' \| \
19812 X"$_am_arg" : 'X\(//\)$' \| \
19813 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
19814 $as_echo X"$_am_arg" |
19815 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19816 s//\1/
19819 /^X\(\/\/\)[^/].*/{
19820 s//\1/
19823 /^X\(\/\/\)$/{
19824 s//\1/
19827 /^X\(\/\).*/{
19828 s//\1/
19831 s/.*/./; q'`/stamp-h$_am_stamp_count
19834 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
19835 $as_echo "$as_me: executing $ac_file commands" >&6;}
19837 esac
19840 case $ac_file$ac_mode in
19841 "default-1":C)
19842 # Only add multilib support code if we just rebuilt the top-level
19843 # Makefile.
19844 case " $CONFIG_FILES " in
19845 *" Makefile "*)
19846 ac_file=Makefile . ${multi_basedir}/config-ml.in
19848 esac ;;
19849 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
19850 # Older Autoconf quotes --file arguments for eval, but not when files
19851 # are listed without --file. Let's play safe and only enable the eval
19852 # if we detect the quoting.
19853 case $CONFIG_FILES in
19854 *\'*) eval set x "$CONFIG_FILES" ;;
19855 *) set x $CONFIG_FILES ;;
19856 esac
19857 shift
19858 for mf
19860 # Strip MF so we end up with the name of the file.
19861 mf=`echo "$mf" | sed -e 's/:.*$//'`
19862 # Check whether this is an Automake generated Makefile or not.
19863 # We used to match only the files named 'Makefile.in', but
19864 # some people rename them; so instead we look at the file content.
19865 # Grep'ing the first line is not enough: some people post-process
19866 # each Makefile.in and add a new line on top of each file to say so.
19867 # Grep'ing the whole file is not good either: AIX grep has a line
19868 # limit of 2048, but all sed's we know have understand at least 4000.
19869 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
19870 dirpart=`$as_dirname -- "$mf" ||
19871 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19872 X"$mf" : 'X\(//\)[^/]' \| \
19873 X"$mf" : 'X\(//\)$' \| \
19874 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
19875 $as_echo X"$mf" |
19876 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19877 s//\1/
19880 /^X\(\/\/\)[^/].*/{
19881 s//\1/
19884 /^X\(\/\/\)$/{
19885 s//\1/
19888 /^X\(\/\).*/{
19889 s//\1/
19892 s/.*/./; q'`
19893 else
19894 continue
19896 # Extract the definition of DEPDIR, am__include, and am__quote
19897 # from the Makefile without running 'make'.
19898 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
19899 test -z "$DEPDIR" && continue
19900 am__include=`sed -n 's/^am__include = //p' < "$mf"`
19901 test -z "$am__include" && continue
19902 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
19903 # Find all dependency output files, they are included files with
19904 # $(DEPDIR) in their names. We invoke sed twice because it is the
19905 # simplest approach to changing $(DEPDIR) to its actual value in the
19906 # expansion.
19907 for file in `sed -n "
19908 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
19909 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
19910 # Make sure the directory exists.
19911 test -f "$dirpart/$file" && continue
19912 fdir=`$as_dirname -- "$file" ||
19913 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19914 X"$file" : 'X\(//\)[^/]' \| \
19915 X"$file" : 'X\(//\)$' \| \
19916 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
19917 $as_echo X"$file" |
19918 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19919 s//\1/
19922 /^X\(\/\/\)[^/].*/{
19923 s//\1/
19926 /^X\(\/\/\)$/{
19927 s//\1/
19930 /^X\(\/\).*/{
19931 s//\1/
19934 s/.*/./; q'`
19935 as_dir=$dirpart/$fdir; as_fn_mkdir_p
19936 # echo "creating $dirpart/$file"
19937 echo '# dummy' > "$dirpart/$file"
19938 done
19939 done
19942 "libtool":C)
19944 # See if we are running on zsh, and set the options which allow our
19945 # commands through without removal of \ escapes.
19946 if test -n "${ZSH_VERSION+set}" ; then
19947 setopt NO_GLOB_SUBST
19950 cfgfile="${ofile}T"
19951 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
19952 $RM "$cfgfile"
19954 cat <<_LT_EOF >> "$cfgfile"
19955 #! $SHELL
19957 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
19958 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
19959 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19960 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
19962 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
19963 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
19964 # Written by Gordon Matzigkeit, 1996
19966 # This file is part of GNU Libtool.
19968 # GNU Libtool is free software; you can redistribute it and/or
19969 # modify it under the terms of the GNU General Public License as
19970 # published by the Free Software Foundation; either version 2 of
19971 # the License, or (at your option) any later version.
19973 # As a special exception to the GNU General Public License,
19974 # if you distribute this file as part of a program or library that
19975 # is built using GNU Libtool, you may include this file under the
19976 # same distribution terms that you use for the rest of that program.
19978 # GNU Libtool is distributed in the hope that it will be useful,
19979 # but WITHOUT ANY WARRANTY; without even the implied warranty of
19980 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19981 # GNU General Public License for more details.
19983 # You should have received a copy of the GNU General Public License
19984 # along with GNU Libtool; see the file COPYING. If not, a copy
19985 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
19986 # obtained by writing to the Free Software Foundation, Inc.,
19987 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19990 # The names of the tagged configurations supported by this script.
19991 available_tags="CXX "
19993 # ### BEGIN LIBTOOL CONFIG
19995 # Which release of libtool.m4 was used?
19996 macro_version=$macro_version
19997 macro_revision=$macro_revision
19999 # Whether or not to build shared libraries.
20000 build_libtool_libs=$enable_shared
20002 # Whether or not to build static libraries.
20003 build_old_libs=$enable_static
20005 # What type of objects to build.
20006 pic_mode=$pic_mode
20008 # Whether or not to optimize for fast installation.
20009 fast_install=$enable_fast_install
20011 # Shell to use when invoking shell scripts.
20012 SHELL=$lt_SHELL
20014 # An echo program that protects backslashes.
20015 ECHO=$lt_ECHO
20017 # The host system.
20018 host_alias=$host_alias
20019 host=$host
20020 host_os=$host_os
20022 # The build system.
20023 build_alias=$build_alias
20024 build=$build
20025 build_os=$build_os
20027 # A sed program that does not truncate output.
20028 SED=$lt_SED
20030 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
20031 Xsed="\$SED -e 1s/^X//"
20033 # A grep program that handles long lines.
20034 GREP=$lt_GREP
20036 # An ERE matcher.
20037 EGREP=$lt_EGREP
20039 # A literal string matcher.
20040 FGREP=$lt_FGREP
20042 # A BSD- or MS-compatible name lister.
20043 NM=$lt_NM
20045 # Whether we need soft or hard links.
20046 LN_S=$lt_LN_S
20048 # What is the maximum length of a command?
20049 max_cmd_len=$max_cmd_len
20051 # Object file suffix (normally "o").
20052 objext=$ac_objext
20054 # Executable file suffix (normally "").
20055 exeext=$exeext
20057 # whether the shell understands "unset".
20058 lt_unset=$lt_unset
20060 # turn spaces into newlines.
20061 SP2NL=$lt_lt_SP2NL
20063 # turn newlines into spaces.
20064 NL2SP=$lt_lt_NL2SP
20066 # An object symbol dumper.
20067 OBJDUMP=$lt_OBJDUMP
20069 # Method to check whether dependent libraries are shared objects.
20070 deplibs_check_method=$lt_deplibs_check_method
20072 # Command to use when deplibs_check_method == "file_magic".
20073 file_magic_cmd=$lt_file_magic_cmd
20075 # The archiver.
20076 AR=$lt_AR
20077 AR_FLAGS=$lt_AR_FLAGS
20079 # A symbol stripping program.
20080 STRIP=$lt_STRIP
20082 # Commands used to install an old-style archive.
20083 RANLIB=$lt_RANLIB
20084 old_postinstall_cmds=$lt_old_postinstall_cmds
20085 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20087 # Whether to use a lock for old archive extraction.
20088 lock_old_archive_extraction=$lock_old_archive_extraction
20090 # A C compiler.
20091 LTCC=$lt_CC
20093 # LTCC compiler flags.
20094 LTCFLAGS=$lt_CFLAGS
20096 # Take the output of nm and produce a listing of raw symbols and C names.
20097 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20099 # Transform the output of nm in a proper C declaration.
20100 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20102 # Transform the output of nm in a C name address pair.
20103 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20105 # Transform the output of nm in a C name address pair when lib prefix is needed.
20106 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
20108 # The name of the directory that contains temporary libtool files.
20109 objdir=$objdir
20111 # Used to examine libraries when file_magic_cmd begins with "file".
20112 MAGIC_CMD=$MAGIC_CMD
20114 # Must we lock files when doing compilation?
20115 need_locks=$lt_need_locks
20117 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
20118 DSYMUTIL=$lt_DSYMUTIL
20120 # Tool to change global to local symbols on Mac OS X.
20121 NMEDIT=$lt_NMEDIT
20123 # Tool to manipulate fat objects and archives on Mac OS X.
20124 LIPO=$lt_LIPO
20126 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
20127 OTOOL=$lt_OTOOL
20129 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
20130 OTOOL64=$lt_OTOOL64
20132 # Old archive suffix (normally "a").
20133 libext=$libext
20135 # Shared library suffix (normally ".so").
20136 shrext_cmds=$lt_shrext_cmds
20138 # The commands to extract the exported symbol list from a shared archive.
20139 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20141 # Variables whose values should be saved in libtool wrapper scripts and
20142 # restored at link time.
20143 variables_saved_for_relink=$lt_variables_saved_for_relink
20145 # Do we need the "lib" prefix for modules?
20146 need_lib_prefix=$need_lib_prefix
20148 # Do we need a version for libraries?
20149 need_version=$need_version
20151 # Library versioning type.
20152 version_type=$version_type
20154 # Shared library runtime path variable.
20155 runpath_var=$runpath_var
20157 # Shared library path variable.
20158 shlibpath_var=$shlibpath_var
20160 # Is shlibpath searched before the hard-coded library search path?
20161 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20163 # Format of library name prefix.
20164 libname_spec=$lt_libname_spec
20166 # List of archive names. First name is the real one, the rest are links.
20167 # The last name is the one that the linker finds with -lNAME
20168 library_names_spec=$lt_library_names_spec
20170 # The coded name of the library, if different from the real name.
20171 soname_spec=$lt_soname_spec
20173 # Permission mode override for installation of shared libraries.
20174 install_override_mode=$lt_install_override_mode
20176 # Command to use after installation of a shared archive.
20177 postinstall_cmds=$lt_postinstall_cmds
20179 # Command to use after uninstallation of a shared archive.
20180 postuninstall_cmds=$lt_postuninstall_cmds
20182 # Commands used to finish a libtool library installation in a directory.
20183 finish_cmds=$lt_finish_cmds
20185 # As "finish_cmds", except a single script fragment to be evaled but
20186 # not shown.
20187 finish_eval=$lt_finish_eval
20189 # Whether we should hardcode library paths into libraries.
20190 hardcode_into_libs=$hardcode_into_libs
20192 # Compile-time system search path for libraries.
20193 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20195 # Run-time system search path for libraries.
20196 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20198 # Whether dlopen is supported.
20199 dlopen_support=$enable_dlopen
20201 # Whether dlopen of programs is supported.
20202 dlopen_self=$enable_dlopen_self
20204 # Whether dlopen of statically linked programs is supported.
20205 dlopen_self_static=$enable_dlopen_self_static
20207 # Commands to strip libraries.
20208 old_striplib=$lt_old_striplib
20209 striplib=$lt_striplib
20212 # The linker used to build libraries.
20213 LD=$lt_LD
20215 # How to create reloadable object files.
20216 reload_flag=$lt_reload_flag
20217 reload_cmds=$lt_reload_cmds
20219 # Commands used to build an old-style archive.
20220 old_archive_cmds=$lt_old_archive_cmds
20222 # A language specific compiler.
20223 CC=$lt_compiler
20225 # Is the compiler the GNU compiler?
20226 with_gcc=$GCC
20228 # Compiler flag to turn off builtin functions.
20229 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
20231 # How to pass a linker flag through the compiler.
20232 wl=$lt_lt_prog_compiler_wl
20234 # Additional compiler flags for building library objects.
20235 pic_flag=$lt_lt_prog_compiler_pic
20237 # Compiler flag to prevent dynamic linking.
20238 link_static_flag=$lt_lt_prog_compiler_static
20240 # Does compiler simultaneously support -c and -o options?
20241 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
20243 # Whether or not to add -lc for building shared libraries.
20244 build_libtool_need_lc=$archive_cmds_need_lc
20246 # Whether or not to disallow shared libs when runtime libs are static.
20247 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
20249 # Compiler flag to allow reflexive dlopens.
20250 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
20252 # Compiler flag to generate shared objects directly from archives.
20253 whole_archive_flag_spec=$lt_whole_archive_flag_spec
20255 # Whether the compiler copes with passing no objects directly.
20256 compiler_needs_object=$lt_compiler_needs_object
20258 # Create an old-style archive from a shared archive.
20259 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
20261 # Create a temporary old-style archive to link instead of a shared archive.
20262 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
20264 # Commands used to build a shared archive.
20265 archive_cmds=$lt_archive_cmds
20266 archive_expsym_cmds=$lt_archive_expsym_cmds
20268 # Commands used to build a loadable module if different from building
20269 # a shared archive.
20270 module_cmds=$lt_module_cmds
20271 module_expsym_cmds=$lt_module_expsym_cmds
20273 # Whether we are building with GNU ld or not.
20274 with_gnu_ld=$lt_with_gnu_ld
20276 # Flag that allows shared libraries with undefined symbols to be built.
20277 allow_undefined_flag=$lt_allow_undefined_flag
20279 # Flag that enforces no undefined symbols.
20280 no_undefined_flag=$lt_no_undefined_flag
20282 # Flag to hardcode \$libdir into a binary during linking.
20283 # This must work even if \$libdir does not exist
20284 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
20286 # If ld is used when linking, flag to hardcode \$libdir into a binary
20287 # during linking. This must work even if \$libdir does not exist.
20288 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
20290 # Whether we need a single "-rpath" flag with a separated argument.
20291 hardcode_libdir_separator=$lt_hardcode_libdir_separator
20293 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20294 # DIR into the resulting binary.
20295 hardcode_direct=$hardcode_direct
20297 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20298 # DIR into the resulting binary and the resulting library dependency is
20299 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
20300 # library is relocated.
20301 hardcode_direct_absolute=$hardcode_direct_absolute
20303 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20304 # into the resulting binary.
20305 hardcode_minus_L=$hardcode_minus_L
20307 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20308 # into the resulting binary.
20309 hardcode_shlibpath_var=$hardcode_shlibpath_var
20311 # Set to "yes" if building a shared library automatically hardcodes DIR
20312 # into the library and all subsequent libraries and executables linked
20313 # against it.
20314 hardcode_automatic=$hardcode_automatic
20316 # Set to yes if linker adds runtime paths of dependent libraries
20317 # to runtime path list.
20318 inherit_rpath=$inherit_rpath
20320 # Whether libtool must link a program against all its dependency libraries.
20321 link_all_deplibs=$link_all_deplibs
20323 # Fix the shell variable \$srcfile for the compiler.
20324 fix_srcfile_path=$lt_fix_srcfile_path
20326 # Set to "yes" if exported symbols are required.
20327 always_export_symbols=$always_export_symbols
20329 # The commands to list exported symbols.
20330 export_symbols_cmds=$lt_export_symbols_cmds
20332 # Symbols that should not be listed in the preloaded symbols.
20333 exclude_expsyms=$lt_exclude_expsyms
20335 # Symbols that must always be exported.
20336 include_expsyms=$lt_include_expsyms
20338 # Commands necessary for linking programs (against libraries) with templates.
20339 prelink_cmds=$lt_prelink_cmds
20341 # Specify filename containing input files.
20342 file_list_spec=$lt_file_list_spec
20344 # How to hardcode a shared library path into an executable.
20345 hardcode_action=$hardcode_action
20347 # The directories searched by this compiler when creating a shared library.
20348 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
20350 # Dependencies to place before and after the objects being linked to
20351 # create a shared library.
20352 predep_objects=$lt_predep_objects
20353 postdep_objects=$lt_postdep_objects
20354 predeps=$lt_predeps
20355 postdeps=$lt_postdeps
20357 # The library search path used internally by the compiler when linking
20358 # a shared library.
20359 compiler_lib_search_path=$lt_compiler_lib_search_path
20361 # ### END LIBTOOL CONFIG
20363 _LT_EOF
20365 case $host_os in
20366 aix3*)
20367 cat <<\_LT_EOF >> "$cfgfile"
20368 # AIX sometimes has problems with the GCC collect2 program. For some
20369 # reason, if we set the COLLECT_NAMES environment variable, the problems
20370 # vanish in a puff of smoke.
20371 if test "X${COLLECT_NAMES+set}" != Xset; then
20372 COLLECT_NAMES=
20373 export COLLECT_NAMES
20375 _LT_EOF
20377 esac
20380 ltmain="$ac_aux_dir/ltmain.sh"
20383 # We use sed instead of cat because bash on DJGPP gets confused if
20384 # if finds mixed CR/LF and LF-only lines. Since sed operates in
20385 # text mode, it properly converts lines to CR/LF. This bash problem
20386 # is reportedly fixed, but why not run on old versions too?
20387 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
20388 || (rm -f "$cfgfile"; exit 1)
20390 case $xsi_shell in
20391 yes)
20392 cat << \_LT_EOF >> "$cfgfile"
20394 # func_dirname file append nondir_replacement
20395 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
20396 # otherwise set result to NONDIR_REPLACEMENT.
20397 func_dirname ()
20399 case ${1} in
20400 */*) func_dirname_result="${1%/*}${2}" ;;
20401 * ) func_dirname_result="${3}" ;;
20402 esac
20405 # func_basename file
20406 func_basename ()
20408 func_basename_result="${1##*/}"
20411 # func_dirname_and_basename file append nondir_replacement
20412 # perform func_basename and func_dirname in a single function
20413 # call:
20414 # dirname: Compute the dirname of FILE. If nonempty,
20415 # add APPEND to the result, otherwise set result
20416 # to NONDIR_REPLACEMENT.
20417 # value returned in "$func_dirname_result"
20418 # basename: Compute filename of FILE.
20419 # value retuned in "$func_basename_result"
20420 # Implementation must be kept synchronized with func_dirname
20421 # and func_basename. For efficiency, we do not delegate to
20422 # those functions but instead duplicate the functionality here.
20423 func_dirname_and_basename ()
20425 case ${1} in
20426 */*) func_dirname_result="${1%/*}${2}" ;;
20427 * ) func_dirname_result="${3}" ;;
20428 esac
20429 func_basename_result="${1##*/}"
20432 # func_stripname prefix suffix name
20433 # strip PREFIX and SUFFIX off of NAME.
20434 # PREFIX and SUFFIX must not contain globbing or regex special
20435 # characters, hashes, percent signs, but SUFFIX may contain a leading
20436 # dot (in which case that matches only a dot).
20437 func_stripname ()
20439 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
20440 # positional parameters, so assign one to ordinary parameter first.
20441 func_stripname_result=${3}
20442 func_stripname_result=${func_stripname_result#"${1}"}
20443 func_stripname_result=${func_stripname_result%"${2}"}
20446 # func_opt_split
20447 func_opt_split ()
20449 func_opt_split_opt=${1%%=*}
20450 func_opt_split_arg=${1#*=}
20453 # func_lo2o object
20454 func_lo2o ()
20456 case ${1} in
20457 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
20458 *) func_lo2o_result=${1} ;;
20459 esac
20462 # func_xform libobj-or-source
20463 func_xform ()
20465 func_xform_result=${1%.*}.lo
20468 # func_arith arithmetic-term...
20469 func_arith ()
20471 func_arith_result=$(( $* ))
20474 # func_len string
20475 # STRING may not start with a hyphen.
20476 func_len ()
20478 func_len_result=${#1}
20481 _LT_EOF
20483 *) # Bourne compatible functions.
20484 cat << \_LT_EOF >> "$cfgfile"
20486 # func_dirname file append nondir_replacement
20487 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
20488 # otherwise set result to NONDIR_REPLACEMENT.
20489 func_dirname ()
20491 # Extract subdirectory from the argument.
20492 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
20493 if test "X$func_dirname_result" = "X${1}"; then
20494 func_dirname_result="${3}"
20495 else
20496 func_dirname_result="$func_dirname_result${2}"
20500 # func_basename file
20501 func_basename ()
20503 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
20507 # func_stripname prefix suffix name
20508 # strip PREFIX and SUFFIX off of NAME.
20509 # PREFIX and SUFFIX must not contain globbing or regex special
20510 # characters, hashes, percent signs, but SUFFIX may contain a leading
20511 # dot (in which case that matches only a dot).
20512 # func_strip_suffix prefix name
20513 func_stripname ()
20515 case ${2} in
20516 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
20517 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
20518 esac
20521 # sed scripts:
20522 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
20523 my_sed_long_arg='1s/^-[^=]*=//'
20525 # func_opt_split
20526 func_opt_split ()
20528 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
20529 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
20532 # func_lo2o object
20533 func_lo2o ()
20535 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
20538 # func_xform libobj-or-source
20539 func_xform ()
20541 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
20544 # func_arith arithmetic-term...
20545 func_arith ()
20547 func_arith_result=`expr "$@"`
20550 # func_len string
20551 # STRING may not start with a hyphen.
20552 func_len ()
20554 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
20557 _LT_EOF
20558 esac
20560 case $lt_shell_append in
20561 yes)
20562 cat << \_LT_EOF >> "$cfgfile"
20564 # func_append var value
20565 # Append VALUE to the end of shell variable VAR.
20566 func_append ()
20568 eval "$1+=\$2"
20570 _LT_EOF
20573 cat << \_LT_EOF >> "$cfgfile"
20575 # func_append var value
20576 # Append VALUE to the end of shell variable VAR.
20577 func_append ()
20579 eval "$1=\$$1\$2"
20582 _LT_EOF
20584 esac
20587 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
20588 || (rm -f "$cfgfile"; exit 1)
20590 mv -f "$cfgfile" "$ofile" ||
20591 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
20592 chmod +x "$ofile"
20595 cat <<_LT_EOF >> "$ofile"
20597 # ### BEGIN LIBTOOL TAG CONFIG: CXX
20599 # The linker used to build libraries.
20600 LD=$lt_LD_CXX
20602 # How to create reloadable object files.
20603 reload_flag=$lt_reload_flag_CXX
20604 reload_cmds=$lt_reload_cmds_CXX
20606 # Commands used to build an old-style archive.
20607 old_archive_cmds=$lt_old_archive_cmds_CXX
20609 # A language specific compiler.
20610 CC=$lt_compiler_CXX
20612 # Is the compiler the GNU compiler?
20613 with_gcc=$GCC_CXX
20615 # Compiler flag to turn off builtin functions.
20616 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
20618 # How to pass a linker flag through the compiler.
20619 wl=$lt_lt_prog_compiler_wl_CXX
20621 # Additional compiler flags for building library objects.
20622 pic_flag=$lt_lt_prog_compiler_pic_CXX
20624 # Compiler flag to prevent dynamic linking.
20625 link_static_flag=$lt_lt_prog_compiler_static_CXX
20627 # Does compiler simultaneously support -c and -o options?
20628 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
20630 # Whether or not to add -lc for building shared libraries.
20631 build_libtool_need_lc=$archive_cmds_need_lc_CXX
20633 # Whether or not to disallow shared libs when runtime libs are static.
20634 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
20636 # Compiler flag to allow reflexive dlopens.
20637 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
20639 # Compiler flag to generate shared objects directly from archives.
20640 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
20642 # Whether the compiler copes with passing no objects directly.
20643 compiler_needs_object=$lt_compiler_needs_object_CXX
20645 # Create an old-style archive from a shared archive.
20646 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
20648 # Create a temporary old-style archive to link instead of a shared archive.
20649 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
20651 # Commands used to build a shared archive.
20652 archive_cmds=$lt_archive_cmds_CXX
20653 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
20655 # Commands used to build a loadable module if different from building
20656 # a shared archive.
20657 module_cmds=$lt_module_cmds_CXX
20658 module_expsym_cmds=$lt_module_expsym_cmds_CXX
20660 # Whether we are building with GNU ld or not.
20661 with_gnu_ld=$lt_with_gnu_ld_CXX
20663 # Flag that allows shared libraries with undefined symbols to be built.
20664 allow_undefined_flag=$lt_allow_undefined_flag_CXX
20666 # Flag that enforces no undefined symbols.
20667 no_undefined_flag=$lt_no_undefined_flag_CXX
20669 # Flag to hardcode \$libdir into a binary during linking.
20670 # This must work even if \$libdir does not exist
20671 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
20673 # If ld is used when linking, flag to hardcode \$libdir into a binary
20674 # during linking. This must work even if \$libdir does not exist.
20675 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
20677 # Whether we need a single "-rpath" flag with a separated argument.
20678 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
20680 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20681 # DIR into the resulting binary.
20682 hardcode_direct=$hardcode_direct_CXX
20684 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20685 # DIR into the resulting binary and the resulting library dependency is
20686 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
20687 # library is relocated.
20688 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
20690 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20691 # into the resulting binary.
20692 hardcode_minus_L=$hardcode_minus_L_CXX
20694 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20695 # into the resulting binary.
20696 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
20698 # Set to "yes" if building a shared library automatically hardcodes DIR
20699 # into the library and all subsequent libraries and executables linked
20700 # against it.
20701 hardcode_automatic=$hardcode_automatic_CXX
20703 # Set to yes if linker adds runtime paths of dependent libraries
20704 # to runtime path list.
20705 inherit_rpath=$inherit_rpath_CXX
20707 # Whether libtool must link a program against all its dependency libraries.
20708 link_all_deplibs=$link_all_deplibs_CXX
20710 # Fix the shell variable \$srcfile for the compiler.
20711 fix_srcfile_path=$lt_fix_srcfile_path_CXX
20713 # Set to "yes" if exported symbols are required.
20714 always_export_symbols=$always_export_symbols_CXX
20716 # The commands to list exported symbols.
20717 export_symbols_cmds=$lt_export_symbols_cmds_CXX
20719 # Symbols that should not be listed in the preloaded symbols.
20720 exclude_expsyms=$lt_exclude_expsyms_CXX
20722 # Symbols that must always be exported.
20723 include_expsyms=$lt_include_expsyms_CXX
20725 # Commands necessary for linking programs (against libraries) with templates.
20726 prelink_cmds=$lt_prelink_cmds_CXX
20728 # Specify filename containing input files.
20729 file_list_spec=$lt_file_list_spec_CXX
20731 # How to hardcode a shared library path into an executable.
20732 hardcode_action=$hardcode_action_CXX
20734 # The directories searched by this compiler when creating a shared library.
20735 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
20737 # Dependencies to place before and after the objects being linked to
20738 # create a shared library.
20739 predep_objects=$lt_predep_objects_CXX
20740 postdep_objects=$lt_postdep_objects_CXX
20741 predeps=$lt_predeps_CXX
20742 postdeps=$lt_postdeps_CXX
20744 # The library search path used internally by the compiler when linking
20745 # a shared library.
20746 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
20748 # ### END LIBTOOL TAG CONFIG: CXX
20749 _LT_EOF
20752 "gstdint.h":C)
20753 if test "$GCC" = yes; then
20754 echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
20755 else
20756 echo "/* generated for $CC */" > tmp-stdint.h
20759 sed 's/^ *//' >> tmp-stdint.h <<EOF
20761 #ifndef GCC_GENERATED_STDINT_H
20762 #define GCC_GENERATED_STDINT_H 1
20764 #include <sys/types.h>
20767 if test "$acx_cv_header_stdint" != stdint.h; then
20768 echo "#include <stddef.h>" >> tmp-stdint.h
20770 if test "$acx_cv_header_stdint" != stddef.h; then
20771 echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
20774 sed 's/^ *//' >> tmp-stdint.h <<EOF
20775 /* glibc uses these symbols as guards to prevent redefinitions. */
20776 #ifdef __int8_t_defined
20777 #define _INT8_T
20778 #define _INT16_T
20779 #define _INT32_T
20780 #endif
20781 #ifdef __uint32_t_defined
20782 #define _UINT32_T
20783 #endif
20787 # ----------------- done header, emit basic int types -------------
20788 if test "$acx_cv_header_stdint" = stddef.h; then
20789 sed 's/^ *//' >> tmp-stdint.h <<EOF
20791 #ifndef _UINT8_T
20792 #define _UINT8_T
20793 #ifndef __uint8_t_defined
20794 #define __uint8_t_defined
20795 #ifndef uint8_t
20796 typedef unsigned $acx_cv_type_int8_t uint8_t;
20797 #endif
20798 #endif
20799 #endif
20801 #ifndef _UINT16_T
20802 #define _UINT16_T
20803 #ifndef __uint16_t_defined
20804 #define __uint16_t_defined
20805 #ifndef uint16_t
20806 typedef unsigned $acx_cv_type_int16_t uint16_t;
20807 #endif
20808 #endif
20809 #endif
20811 #ifndef _UINT32_T
20812 #define _UINT32_T
20813 #ifndef __uint32_t_defined
20814 #define __uint32_t_defined
20815 #ifndef uint32_t
20816 typedef unsigned $acx_cv_type_int32_t uint32_t;
20817 #endif
20818 #endif
20819 #endif
20821 #ifndef _INT8_T
20822 #define _INT8_T
20823 #ifndef __int8_t_defined
20824 #define __int8_t_defined
20825 #ifndef int8_t
20826 typedef $acx_cv_type_int8_t int8_t;
20827 #endif
20828 #endif
20829 #endif
20831 #ifndef _INT16_T
20832 #define _INT16_T
20833 #ifndef __int16_t_defined
20834 #define __int16_t_defined
20835 #ifndef int16_t
20836 typedef $acx_cv_type_int16_t int16_t;
20837 #endif
20838 #endif
20839 #endif
20841 #ifndef _INT32_T
20842 #define _INT32_T
20843 #ifndef __int32_t_defined
20844 #define __int32_t_defined
20845 #ifndef int32_t
20846 typedef $acx_cv_type_int32_t int32_t;
20847 #endif
20848 #endif
20849 #endif
20851 elif test "$ac_cv_type_u_int32_t" = yes; then
20852 sed 's/^ *//' >> tmp-stdint.h <<EOF
20854 /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
20855 #ifndef _INT8_T
20856 #define _INT8_T
20857 #endif
20858 #ifndef _INT16_T
20859 #define _INT16_T
20860 #endif
20861 #ifndef _INT32_T
20862 #define _INT32_T
20863 #endif
20865 #ifndef _UINT8_T
20866 #define _UINT8_T
20867 #ifndef __uint8_t_defined
20868 #define __uint8_t_defined
20869 #ifndef uint8_t
20870 typedef u_int8_t uint8_t;
20871 #endif
20872 #endif
20873 #endif
20875 #ifndef _UINT16_T
20876 #define _UINT16_T
20877 #ifndef __uint16_t_defined
20878 #define __uint16_t_defined
20879 #ifndef uint16_t
20880 typedef u_int16_t uint16_t;
20881 #endif
20882 #endif
20883 #endif
20885 #ifndef _UINT32_T
20886 #define _UINT32_T
20887 #ifndef __uint32_t_defined
20888 #define __uint32_t_defined
20889 #ifndef uint32_t
20890 typedef u_int32_t uint32_t;
20891 #endif
20892 #endif
20893 #endif
20895 else
20896 sed 's/^ *//' >> tmp-stdint.h <<EOF
20898 /* Some systems have guard macros to prevent redefinitions, define them. */
20899 #ifndef _INT8_T
20900 #define _INT8_T
20901 #endif
20902 #ifndef _INT16_T
20903 #define _INT16_T
20904 #endif
20905 #ifndef _INT32_T
20906 #define _INT32_T
20907 #endif
20908 #ifndef _UINT8_T
20909 #define _UINT8_T
20910 #endif
20911 #ifndef _UINT16_T
20912 #define _UINT16_T
20913 #endif
20914 #ifndef _UINT32_T
20915 #define _UINT32_T
20916 #endif
20920 # ------------- done basic int types, emit int64_t types ------------
20921 if test "$ac_cv_type_uint64_t" = yes; then
20922 sed 's/^ *//' >> tmp-stdint.h <<EOF
20924 /* system headers have good uint64_t and int64_t */
20925 #ifndef _INT64_T
20926 #define _INT64_T
20927 #endif
20928 #ifndef _UINT64_T
20929 #define _UINT64_T
20930 #endif
20932 elif test "$ac_cv_type_u_int64_t" = yes; then
20933 sed 's/^ *//' >> tmp-stdint.h <<EOF
20935 /* system headers have an u_int64_t (and int64_t) */
20936 #ifndef _INT64_T
20937 #define _INT64_T
20938 #endif
20939 #ifndef _UINT64_T
20940 #define _UINT64_T
20941 #ifndef __uint64_t_defined
20942 #define __uint64_t_defined
20943 #ifndef uint64_t
20944 typedef u_int64_t uint64_t;
20945 #endif
20946 #endif
20947 #endif
20949 elif test -n "$acx_cv_type_int64_t"; then
20950 sed 's/^ *//' >> tmp-stdint.h <<EOF
20952 /* architecture has a 64-bit type, $acx_cv_type_int64_t */
20953 #ifndef _INT64_T
20954 #define _INT64_T
20955 #ifndef int64_t
20956 typedef $acx_cv_type_int64_t int64_t;
20957 #endif
20958 #endif
20959 #ifndef _UINT64_T
20960 #define _UINT64_T
20961 #ifndef __uint64_t_defined
20962 #define __uint64_t_defined
20963 #ifndef uint64_t
20964 typedef unsigned $acx_cv_type_int64_t uint64_t;
20965 #endif
20966 #endif
20967 #endif
20969 else
20970 sed 's/^ *//' >> tmp-stdint.h <<EOF
20972 /* some common heuristics for int64_t, using compiler-specific tests */
20973 #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
20974 #ifndef _INT64_T
20975 #define _INT64_T
20976 #ifndef __int64_t_defined
20977 #ifndef int64_t
20978 typedef long long int64_t;
20979 #endif
20980 #endif
20981 #endif
20982 #ifndef _UINT64_T
20983 #define _UINT64_T
20984 #ifndef uint64_t
20985 typedef unsigned long long uint64_t;
20986 #endif
20987 #endif
20989 #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
20990 /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
20991 does not implement __extension__. But that compiler doesn't define
20992 __GNUC_MINOR__. */
20993 # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
20994 # define __extension__
20995 # endif
20997 # ifndef _INT64_T
20998 # define _INT64_T
20999 # ifndef int64_t
21000 __extension__ typedef long long int64_t;
21001 # endif
21002 # endif
21003 # ifndef _UINT64_T
21004 # define _UINT64_T
21005 # ifndef uint64_t
21006 __extension__ typedef unsigned long long uint64_t;
21007 # endif
21008 # endif
21010 #elif !defined __STRICT_ANSI__
21011 # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
21013 # ifndef _INT64_T
21014 # define _INT64_T
21015 # ifndef int64_t
21016 typedef __int64 int64_t;
21017 # endif
21018 # endif
21019 # ifndef _UINT64_T
21020 # define _UINT64_T
21021 # ifndef uint64_t
21022 typedef unsigned __int64 uint64_t;
21023 # endif
21024 # endif
21025 # endif /* compiler */
21027 #endif /* ANSI version */
21031 # ------------- done int64_t types, emit intptr types ------------
21032 if test "$ac_cv_type_uintptr_t" != yes; then
21033 sed 's/^ *//' >> tmp-stdint.h <<EOF
21035 /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
21036 #ifndef __uintptr_t_defined
21037 #ifndef uintptr_t
21038 typedef u$acx_cv_type_intptr_t uintptr_t;
21039 #endif
21040 #endif
21041 #ifndef __intptr_t_defined
21042 #ifndef intptr_t
21043 typedef $acx_cv_type_intptr_t intptr_t;
21044 #endif
21045 #endif
21049 # ------------- done intptr types, emit int_least types ------------
21050 if test "$ac_cv_type_int_least32_t" != yes; then
21051 sed 's/^ *//' >> tmp-stdint.h <<EOF
21053 /* Define int_least types */
21054 typedef int8_t int_least8_t;
21055 typedef int16_t int_least16_t;
21056 typedef int32_t int_least32_t;
21057 #ifdef _INT64_T
21058 typedef int64_t int_least64_t;
21059 #endif
21061 typedef uint8_t uint_least8_t;
21062 typedef uint16_t uint_least16_t;
21063 typedef uint32_t uint_least32_t;
21064 #ifdef _UINT64_T
21065 typedef uint64_t uint_least64_t;
21066 #endif
21070 # ------------- done intptr types, emit int_fast types ------------
21071 if test "$ac_cv_type_int_fast32_t" != yes; then
21072 sed 's/^ *//' >> tmp-stdint.h <<EOF
21074 /* Define int_fast types. short is often slow */
21075 typedef int8_t int_fast8_t;
21076 typedef int int_fast16_t;
21077 typedef int32_t int_fast32_t;
21078 #ifdef _INT64_T
21079 typedef int64_t int_fast64_t;
21080 #endif
21082 typedef uint8_t uint_fast8_t;
21083 typedef unsigned int uint_fast16_t;
21084 typedef uint32_t uint_fast32_t;
21085 #ifdef _UINT64_T
21086 typedef uint64_t uint_fast64_t;
21087 #endif
21091 if test "$ac_cv_type_uintmax_t" != yes; then
21092 sed 's/^ *//' >> tmp-stdint.h <<EOF
21094 /* Define intmax based on what we found */
21095 #ifndef intmax_t
21096 #ifdef _INT64_T
21097 typedef int64_t intmax_t;
21098 #else
21099 typedef long intmax_t;
21100 #endif
21101 #endif
21102 #ifndef uintmax_t
21103 #ifdef _UINT64_T
21104 typedef uint64_t uintmax_t;
21105 #else
21106 typedef unsigned long uintmax_t;
21107 #endif
21108 #endif
21112 sed 's/^ *//' >> tmp-stdint.h <<EOF
21114 #endif /* GCC_GENERATED_STDINT_H */
21117 if test -r gstdint.h && cmp -s tmp-stdint.h gstdint.h; then
21118 rm -f tmp-stdint.h
21119 else
21120 mv -f tmp-stdint.h gstdint.h
21125 esac
21126 done # for ac_tag
21129 as_fn_exit 0
21130 _ACEOF
21131 ac_clean_files=$ac_clean_files_save
21133 test $ac_write_fail = 0 ||
21134 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
21137 # configure is writing to config.log, and then calls config.status.
21138 # config.status does its own redirection, appending to config.log.
21139 # Unfortunately, on DOS this fails, as config.log is still kept open
21140 # by configure, so config.status won't be able to write to it; its
21141 # output is simply discarded. So we exec the FD to /dev/null,
21142 # effectively closing config.log, so it can be properly (re)opened and
21143 # appended to by config.status. When coming back to configure, we
21144 # need to make the FD available again.
21145 if test "$no_create" != yes; then
21146 ac_cs_success=:
21147 ac_config_status_args=
21148 test "$silent" = yes &&
21149 ac_config_status_args="$ac_config_status_args --quiet"
21150 exec 5>/dev/null
21151 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21152 exec 5>>config.log
21153 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21154 # would make configure fail if this is the last instruction.
21155 $ac_cs_success || as_fn_exit 1
21157 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
21158 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21159 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}