gccrs: Add new check for contains_associated_types
[official-gcc.git] / libitm / configure
blob6230c04dd24abc4bb384a8d4b21b13053d595f43
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 PERL
685 RANLIB
688 am__fastdepCCAS_FALSE
689 am__fastdepCCAS_TRUE
690 CCASDEPMODE
691 CCASFLAGS
692 CCAS
693 am__fastdepCXX_FALSE
694 am__fastdepCXX_TRUE
695 CXXDEPMODE
696 ac_ct_CXX
697 CXXFLAGS
699 am__fastdepCC_FALSE
700 am__fastdepCC_TRUE
701 CCDEPMODE
702 am__nodep
703 AMDEPBACKSLASH
704 AMDEP_FALSE
705 AMDEP_TRUE
706 am__quote
707 am__include
708 DEPDIR
709 OBJEXT
710 EXEEXT
711 ac_ct_CC
712 CPPFLAGS
713 LDFLAGS
714 CFLAGS
716 toolexeclibdir
717 toolexecdir
718 multi_basedir
719 AM_BACKSLASH
720 AM_DEFAULT_VERBOSITY
721 AM_DEFAULT_V
722 AM_V
723 am__untar
724 am__tar
725 AMTAR
726 am__leading_dot
727 SET_MAKE
729 mkdir_p
730 MKDIR_P
731 INSTALL_STRIP_PROGRAM
732 STRIP
733 install_sh
734 MAKEINFO
735 AUTOHEADER
736 AUTOMAKE
737 AUTOCONF
738 ACLOCAL
739 VERSION
740 PACKAGE
741 CYGPATH_W
742 am__isrc
743 INSTALL_DATA
744 INSTALL_SCRIPT
745 INSTALL_PROGRAM
746 target_os
747 target_vendor
748 target_cpu
749 target
750 host_os
751 host_vendor
752 host_cpu
753 host
754 build_os
755 build_vendor
756 build_cpu
757 build
758 GENINSRC_FALSE
759 GENINSRC_TRUE
760 target_alias
761 host_alias
762 build_alias
763 LIBS
764 ECHO_T
765 ECHO_N
766 ECHO_C
767 DEFS
768 mandir
769 localedir
770 libdir
771 psdir
772 pdfdir
773 dvidir
774 htmldir
775 infodir
776 docdir
777 oldincludedir
778 includedir
779 localstatedir
780 sharedstatedir
781 sysconfdir
782 datadir
783 datarootdir
784 libexecdir
785 sbindir
786 bindir
787 program_transform_name
788 prefix
789 exec_prefix
790 PACKAGE_URL
791 PACKAGE_BUGREPORT
792 PACKAGE_STRING
793 PACKAGE_VERSION
794 PACKAGE_TARNAME
795 PACKAGE_NAME
796 PATH_SEPARATOR
797 SHELL'
798 ac_subst_files=''
799 ac_user_opts='
800 enable_option_checking
801 enable_version_specific_runtime_libs
802 enable_generated_files_in_srcdir
803 enable_silent_rules
804 enable_multilib
805 with_toolexeclibdir
806 enable_dependency_tracking
807 enable_shared
808 enable_static
809 with_pic
810 enable_fast_install
811 with_gnu_ld
812 enable_libtool_lock
813 enable_maintainer_mode
814 enable_linux_futex
815 enable_tls
816 enable_symvers
817 enable_werror
818 enable_cet
819 with_gcc_major_version_only
821 ac_precious_vars='build_alias
822 host_alias
823 target_alias
825 CPPFLAGS
826 CXXCPP'
829 # Initialize some variables set by options.
830 ac_init_help=
831 ac_init_version=false
832 ac_unrecognized_opts=
833 ac_unrecognized_sep=
834 # The variables have the same names as the options, with
835 # dashes changed to underlines.
836 cache_file=/dev/null
837 exec_prefix=NONE
838 no_create=
839 no_recursion=
840 prefix=NONE
841 program_prefix=NONE
842 program_suffix=NONE
843 program_transform_name=s,x,x,
844 silent=
845 site=
846 srcdir=
847 verbose=
848 x_includes=NONE
849 x_libraries=NONE
851 # Installation directory options.
852 # These are left unexpanded so users can "make install exec_prefix=/foo"
853 # and all the variables that are supposed to be based on exec_prefix
854 # by default will actually change.
855 # Use braces instead of parens because sh, perl, etc. also accept them.
856 # (The list follows the same order as the GNU Coding Standards.)
857 bindir='${exec_prefix}/bin'
858 sbindir='${exec_prefix}/sbin'
859 libexecdir='${exec_prefix}/libexec'
860 datarootdir='${prefix}/share'
861 datadir='${datarootdir}'
862 sysconfdir='${prefix}/etc'
863 sharedstatedir='${prefix}/com'
864 localstatedir='${prefix}/var'
865 includedir='${prefix}/include'
866 oldincludedir='/usr/include'
867 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
868 infodir='${datarootdir}/info'
869 htmldir='${docdir}'
870 dvidir='${docdir}'
871 pdfdir='${docdir}'
872 psdir='${docdir}'
873 libdir='${exec_prefix}/lib'
874 localedir='${datarootdir}/locale'
875 mandir='${datarootdir}/man'
877 ac_prev=
878 ac_dashdash=
879 for ac_option
881 # If the previous option needs an argument, assign it.
882 if test -n "$ac_prev"; then
883 eval $ac_prev=\$ac_option
884 ac_prev=
885 continue
888 case $ac_option in
889 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
890 *=) ac_optarg= ;;
891 *) ac_optarg=yes ;;
892 esac
894 # Accept the important Cygnus configure options, so we can diagnose typos.
896 case $ac_dashdash$ac_option in
898 ac_dashdash=yes ;;
900 -bindir | --bindir | --bindi | --bind | --bin | --bi)
901 ac_prev=bindir ;;
902 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
903 bindir=$ac_optarg ;;
905 -build | --build | --buil | --bui | --bu)
906 ac_prev=build_alias ;;
907 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
908 build_alias=$ac_optarg ;;
910 -cache-file | --cache-file | --cache-fil | --cache-fi \
911 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
912 ac_prev=cache_file ;;
913 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
914 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
915 cache_file=$ac_optarg ;;
917 --config-cache | -C)
918 cache_file=config.cache ;;
920 -datadir | --datadir | --datadi | --datad)
921 ac_prev=datadir ;;
922 -datadir=* | --datadir=* | --datadi=* | --datad=*)
923 datadir=$ac_optarg ;;
925 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
926 | --dataroo | --dataro | --datar)
927 ac_prev=datarootdir ;;
928 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
929 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
930 datarootdir=$ac_optarg ;;
932 -disable-* | --disable-*)
933 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
934 # Reject names that are not valid shell variable names.
935 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
936 as_fn_error $? "invalid feature name: $ac_useropt"
937 ac_useropt_orig=$ac_useropt
938 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
939 case $ac_user_opts in
941 "enable_$ac_useropt"
942 "*) ;;
943 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
944 ac_unrecognized_sep=', ';;
945 esac
946 eval enable_$ac_useropt=no ;;
948 -docdir | --docdir | --docdi | --doc | --do)
949 ac_prev=docdir ;;
950 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
951 docdir=$ac_optarg ;;
953 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
954 ac_prev=dvidir ;;
955 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
956 dvidir=$ac_optarg ;;
958 -enable-* | --enable-*)
959 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
960 # Reject names that are not valid shell variable names.
961 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
962 as_fn_error $? "invalid feature name: $ac_useropt"
963 ac_useropt_orig=$ac_useropt
964 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
965 case $ac_user_opts in
967 "enable_$ac_useropt"
968 "*) ;;
969 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
970 ac_unrecognized_sep=', ';;
971 esac
972 eval enable_$ac_useropt=\$ac_optarg ;;
974 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
975 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
976 | --exec | --exe | --ex)
977 ac_prev=exec_prefix ;;
978 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
979 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
980 | --exec=* | --exe=* | --ex=*)
981 exec_prefix=$ac_optarg ;;
983 -gas | --gas | --ga | --g)
984 # Obsolete; use --with-gas.
985 with_gas=yes ;;
987 -help | --help | --hel | --he | -h)
988 ac_init_help=long ;;
989 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
990 ac_init_help=recursive ;;
991 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
992 ac_init_help=short ;;
994 -host | --host | --hos | --ho)
995 ac_prev=host_alias ;;
996 -host=* | --host=* | --hos=* | --ho=*)
997 host_alias=$ac_optarg ;;
999 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1000 ac_prev=htmldir ;;
1001 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1002 | --ht=*)
1003 htmldir=$ac_optarg ;;
1005 -includedir | --includedir | --includedi | --included | --include \
1006 | --includ | --inclu | --incl | --inc)
1007 ac_prev=includedir ;;
1008 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1009 | --includ=* | --inclu=* | --incl=* | --inc=*)
1010 includedir=$ac_optarg ;;
1012 -infodir | --infodir | --infodi | --infod | --info | --inf)
1013 ac_prev=infodir ;;
1014 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1015 infodir=$ac_optarg ;;
1017 -libdir | --libdir | --libdi | --libd)
1018 ac_prev=libdir ;;
1019 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1020 libdir=$ac_optarg ;;
1022 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1023 | --libexe | --libex | --libe)
1024 ac_prev=libexecdir ;;
1025 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1026 | --libexe=* | --libex=* | --libe=*)
1027 libexecdir=$ac_optarg ;;
1029 -localedir | --localedir | --localedi | --localed | --locale)
1030 ac_prev=localedir ;;
1031 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1032 localedir=$ac_optarg ;;
1034 -localstatedir | --localstatedir | --localstatedi | --localstated \
1035 | --localstate | --localstat | --localsta | --localst | --locals)
1036 ac_prev=localstatedir ;;
1037 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1038 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1039 localstatedir=$ac_optarg ;;
1041 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1042 ac_prev=mandir ;;
1043 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1044 mandir=$ac_optarg ;;
1046 -nfp | --nfp | --nf)
1047 # Obsolete; use --without-fp.
1048 with_fp=no ;;
1050 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1051 | --no-cr | --no-c | -n)
1052 no_create=yes ;;
1054 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1055 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1056 no_recursion=yes ;;
1058 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1059 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1060 | --oldin | --oldi | --old | --ol | --o)
1061 ac_prev=oldincludedir ;;
1062 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1063 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1064 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1065 oldincludedir=$ac_optarg ;;
1067 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1068 ac_prev=prefix ;;
1069 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1070 prefix=$ac_optarg ;;
1072 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1073 | --program-pre | --program-pr | --program-p)
1074 ac_prev=program_prefix ;;
1075 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1076 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1077 program_prefix=$ac_optarg ;;
1079 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1080 | --program-suf | --program-su | --program-s)
1081 ac_prev=program_suffix ;;
1082 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1083 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1084 program_suffix=$ac_optarg ;;
1086 -program-transform-name | --program-transform-name \
1087 | --program-transform-nam | --program-transform-na \
1088 | --program-transform-n | --program-transform- \
1089 | --program-transform | --program-transfor \
1090 | --program-transfo | --program-transf \
1091 | --program-trans | --program-tran \
1092 | --progr-tra | --program-tr | --program-t)
1093 ac_prev=program_transform_name ;;
1094 -program-transform-name=* | --program-transform-name=* \
1095 | --program-transform-nam=* | --program-transform-na=* \
1096 | --program-transform-n=* | --program-transform-=* \
1097 | --program-transform=* | --program-transfor=* \
1098 | --program-transfo=* | --program-transf=* \
1099 | --program-trans=* | --program-tran=* \
1100 | --progr-tra=* | --program-tr=* | --program-t=*)
1101 program_transform_name=$ac_optarg ;;
1103 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1104 ac_prev=pdfdir ;;
1105 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1106 pdfdir=$ac_optarg ;;
1108 -psdir | --psdir | --psdi | --psd | --ps)
1109 ac_prev=psdir ;;
1110 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1111 psdir=$ac_optarg ;;
1113 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1114 | -silent | --silent | --silen | --sile | --sil)
1115 silent=yes ;;
1117 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1118 ac_prev=sbindir ;;
1119 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1120 | --sbi=* | --sb=*)
1121 sbindir=$ac_optarg ;;
1123 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1124 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1125 | --sharedst | --shareds | --shared | --share | --shar \
1126 | --sha | --sh)
1127 ac_prev=sharedstatedir ;;
1128 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1129 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1130 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1131 | --sha=* | --sh=*)
1132 sharedstatedir=$ac_optarg ;;
1134 -site | --site | --sit)
1135 ac_prev=site ;;
1136 -site=* | --site=* | --sit=*)
1137 site=$ac_optarg ;;
1139 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1140 ac_prev=srcdir ;;
1141 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1142 srcdir=$ac_optarg ;;
1144 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1145 | --syscon | --sysco | --sysc | --sys | --sy)
1146 ac_prev=sysconfdir ;;
1147 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1148 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1149 sysconfdir=$ac_optarg ;;
1151 -target | --target | --targe | --targ | --tar | --ta | --t)
1152 ac_prev=target_alias ;;
1153 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1154 target_alias=$ac_optarg ;;
1156 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1157 verbose=yes ;;
1159 -version | --version | --versio | --versi | --vers | -V)
1160 ac_init_version=: ;;
1162 -with-* | --with-*)
1163 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1164 # Reject names that are not valid shell variable names.
1165 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1166 as_fn_error $? "invalid package name: $ac_useropt"
1167 ac_useropt_orig=$ac_useropt
1168 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1169 case $ac_user_opts in
1171 "with_$ac_useropt"
1172 "*) ;;
1173 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1174 ac_unrecognized_sep=', ';;
1175 esac
1176 eval with_$ac_useropt=\$ac_optarg ;;
1178 -without-* | --without-*)
1179 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1180 # Reject names that are not valid shell variable names.
1181 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1182 as_fn_error $? "invalid package name: $ac_useropt"
1183 ac_useropt_orig=$ac_useropt
1184 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1185 case $ac_user_opts in
1187 "with_$ac_useropt"
1188 "*) ;;
1189 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1190 ac_unrecognized_sep=', ';;
1191 esac
1192 eval with_$ac_useropt=no ;;
1194 --x)
1195 # Obsolete; use --with-x.
1196 with_x=yes ;;
1198 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1199 | --x-incl | --x-inc | --x-in | --x-i)
1200 ac_prev=x_includes ;;
1201 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1202 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1203 x_includes=$ac_optarg ;;
1205 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1206 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1207 ac_prev=x_libraries ;;
1208 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1209 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1210 x_libraries=$ac_optarg ;;
1212 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1213 Try \`$0 --help' for more information"
1216 *=*)
1217 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1218 # Reject names that are not valid shell variable names.
1219 case $ac_envvar in #(
1220 '' | [0-9]* | *[!_$as_cr_alnum]* )
1221 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1222 esac
1223 eval $ac_envvar=\$ac_optarg
1224 export $ac_envvar ;;
1227 # FIXME: should be removed in autoconf 3.0.
1228 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1229 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1230 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1231 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1234 esac
1235 done
1237 if test -n "$ac_prev"; then
1238 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1239 as_fn_error $? "missing argument to $ac_option"
1242 if test -n "$ac_unrecognized_opts"; then
1243 case $enable_option_checking in
1244 no) ;;
1245 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1246 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1247 esac
1250 # Check all directory arguments for consistency.
1251 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1252 datadir sysconfdir sharedstatedir localstatedir includedir \
1253 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1254 libdir localedir mandir
1256 eval ac_val=\$$ac_var
1257 # Remove trailing slashes.
1258 case $ac_val in
1259 */ )
1260 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1261 eval $ac_var=\$ac_val;;
1262 esac
1263 # Be sure to have absolute directory names.
1264 case $ac_val in
1265 [\\/$]* | ?:[\\/]* ) continue;;
1266 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1267 esac
1268 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1269 done
1271 # There might be people who depend on the old broken behavior: `$host'
1272 # used to hold the argument of --host etc.
1273 # FIXME: To remove some day.
1274 build=$build_alias
1275 host=$host_alias
1276 target=$target_alias
1278 # FIXME: To remove some day.
1279 if test "x$host_alias" != x; then
1280 if test "x$build_alias" = x; then
1281 cross_compiling=maybe
1282 elif test "x$build_alias" != "x$host_alias"; then
1283 cross_compiling=yes
1287 ac_tool_prefix=
1288 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1290 test "$silent" = yes && exec 6>/dev/null
1293 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1294 ac_ls_di=`ls -di .` &&
1295 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1296 as_fn_error $? "working directory cannot be determined"
1297 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1298 as_fn_error $? "pwd does not report name of working directory"
1301 # Find the source files, if location was not specified.
1302 if test -z "$srcdir"; then
1303 ac_srcdir_defaulted=yes
1304 # Try the directory containing this script, then the parent directory.
1305 ac_confdir=`$as_dirname -- "$as_myself" ||
1306 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1307 X"$as_myself" : 'X\(//\)[^/]' \| \
1308 X"$as_myself" : 'X\(//\)$' \| \
1309 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1310 $as_echo X"$as_myself" |
1311 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1312 s//\1/
1315 /^X\(\/\/\)[^/].*/{
1316 s//\1/
1319 /^X\(\/\/\)$/{
1320 s//\1/
1323 /^X\(\/\).*/{
1324 s//\1/
1327 s/.*/./; q'`
1328 srcdir=$ac_confdir
1329 if test ! -r "$srcdir/$ac_unique_file"; then
1330 srcdir=..
1332 else
1333 ac_srcdir_defaulted=no
1335 if test ! -r "$srcdir/$ac_unique_file"; then
1336 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1337 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1339 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1340 ac_abs_confdir=`(
1341 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1342 pwd)`
1343 # When building in place, set srcdir=.
1344 if test "$ac_abs_confdir" = "$ac_pwd"; then
1345 srcdir=.
1347 # Remove unnecessary trailing slashes from srcdir.
1348 # Double slashes in file names in object file debugging info
1349 # mess up M-x gdb in Emacs.
1350 case $srcdir in
1351 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1352 esac
1353 for ac_var in $ac_precious_vars; do
1354 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1355 eval ac_env_${ac_var}_value=\$${ac_var}
1356 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1357 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1358 done
1361 # Report the --help message.
1363 if test "$ac_init_help" = "long"; then
1364 # Omit some internal or obsolete options to make the list less imposing.
1365 # This message is too long to be a string in the A/UX 3.1 sh.
1366 cat <<_ACEOF
1367 \`configure' configures GNU TM Runtime Library 1.0 to adapt to many kinds of systems.
1369 Usage: $0 [OPTION]... [VAR=VALUE]...
1371 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1372 VAR=VALUE. See below for descriptions of some of the useful variables.
1374 Defaults for the options are specified in brackets.
1376 Configuration:
1377 -h, --help display this help and exit
1378 --help=short display options specific to this package
1379 --help=recursive display the short help of all the included packages
1380 -V, --version display version information and exit
1381 -q, --quiet, --silent do not print \`checking ...' messages
1382 --cache-file=FILE cache test results in FILE [disabled]
1383 -C, --config-cache alias for \`--cache-file=config.cache'
1384 -n, --no-create do not create output files
1385 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1387 Installation directories:
1388 --prefix=PREFIX install architecture-independent files in PREFIX
1389 [$ac_default_prefix]
1390 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1391 [PREFIX]
1393 By default, \`make install' will install all the files in
1394 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1395 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1396 for instance \`--prefix=\$HOME'.
1398 For better control, use the options below.
1400 Fine tuning of the installation directories:
1401 --bindir=DIR user executables [EPREFIX/bin]
1402 --sbindir=DIR system admin executables [EPREFIX/sbin]
1403 --libexecdir=DIR program executables [EPREFIX/libexec]
1404 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1405 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1406 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1407 --libdir=DIR object code libraries [EPREFIX/lib]
1408 --includedir=DIR C header files [PREFIX/include]
1409 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1410 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1411 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1412 --infodir=DIR info documentation [DATAROOTDIR/info]
1413 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1414 --mandir=DIR man documentation [DATAROOTDIR/man]
1415 --docdir=DIR documentation root [DATAROOTDIR/doc/libitm]
1416 --htmldir=DIR html documentation [DOCDIR]
1417 --dvidir=DIR dvi documentation [DOCDIR]
1418 --pdfdir=DIR pdf documentation [DOCDIR]
1419 --psdir=DIR ps documentation [DOCDIR]
1420 _ACEOF
1422 cat <<\_ACEOF
1424 Program names:
1425 --program-prefix=PREFIX prepend PREFIX to installed program names
1426 --program-suffix=SUFFIX append SUFFIX to installed program names
1427 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1429 System types:
1430 --build=BUILD configure for building on BUILD [guessed]
1431 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1432 --target=TARGET configure for building compilers for TARGET [HOST]
1433 _ACEOF
1436 if test -n "$ac_init_help"; then
1437 case $ac_init_help in
1438 short | recursive ) echo "Configuration of GNU TM Runtime Library 1.0:";;
1439 esac
1440 cat <<\_ACEOF
1442 Optional Features:
1443 --disable-option-checking ignore unrecognized --enable/--with options
1444 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1445 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1446 --enable-version-specific-runtime-libs
1447 Specify that runtime libraries should be installed
1448 in a compiler-specific directory [default=no]
1449 --enable-generated-files-in-srcdir
1450 put copies of generated files in source dir intended
1451 for creating source tarballs for users without
1452 texinfo bison or flex. [default=no]
1453 --enable-silent-rules less verbose build output (undo: "make V=1")
1454 --disable-silent-rules verbose build output (undo: "make V=0")
1455 --enable-multilib build many library versions (default)
1456 --enable-dependency-tracking
1457 do not reject slow dependency extractors
1458 --disable-dependency-tracking
1459 speeds up one-time build
1460 --enable-shared[=PKGS] build shared libraries [default=yes]
1461 --enable-static[=PKGS] build static libraries [default=yes]
1462 --enable-fast-install[=PKGS]
1463 optimize for fast installation [default=yes]
1464 --disable-libtool-lock avoid locking (might break parallel builds)
1465 --enable-maintainer-mode
1466 enable make rules and dependencies not useful (and
1467 sometimes confusing) to the casual installer
1468 --enable-linux-futex use the Linux futex system call [default=default]
1469 --enable-tls Use thread-local storage [default=yes]
1470 --enable-symvers=STYLE enables symbol versioning of the shared library
1471 [default=yes]
1472 --disable-werror disable building with -Werror
1473 --enable-cet enable Intel CET in target libraries [default=auto]
1475 Optional Packages:
1476 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1477 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1478 --with-toolexeclibdir=DIR
1479 install libraries built with a cross compiler within
1481 --with-pic try to use only PIC/non-PIC objects [default=use
1482 both]
1483 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1484 --with-gcc-major-version-only
1485 use only GCC major number in filesystem paths
1487 Some influential environment variables:
1488 CC C compiler command
1489 CFLAGS C compiler flags
1490 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1491 nonstandard directory <lib dir>
1492 LIBS libraries to pass to the linker, e.g. -l<library>
1493 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1494 you have headers in a nonstandard directory <include dir>
1495 CXX C++ compiler command
1496 CXXFLAGS C++ compiler flags
1497 CCAS assembler compiler command (defaults to CC)
1498 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1499 CPP C preprocessor
1500 CXXCPP C++ preprocessor
1502 Use these variables to override the choices made by `configure' or to help
1503 it to find libraries and programs with nonstandard names/locations.
1505 Report bugs to the package provider.
1506 GNU TM Runtime Library home page: <http://www.gnu.org/software/libitm/>.
1507 General help using GNU software: <http://www.gnu.org/gethelp/>.
1508 _ACEOF
1509 ac_status=$?
1512 if test "$ac_init_help" = "recursive"; then
1513 # If there are subdirs, report their specific --help.
1514 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1515 test -d "$ac_dir" ||
1516 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1517 continue
1518 ac_builddir=.
1520 case "$ac_dir" in
1521 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1523 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1524 # A ".." for each directory in $ac_dir_suffix.
1525 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1526 case $ac_top_builddir_sub in
1527 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1528 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1529 esac ;;
1530 esac
1531 ac_abs_top_builddir=$ac_pwd
1532 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1533 # for backward compatibility:
1534 ac_top_builddir=$ac_top_build_prefix
1536 case $srcdir in
1537 .) # We are building in place.
1538 ac_srcdir=.
1539 ac_top_srcdir=$ac_top_builddir_sub
1540 ac_abs_top_srcdir=$ac_pwd ;;
1541 [\\/]* | ?:[\\/]* ) # Absolute name.
1542 ac_srcdir=$srcdir$ac_dir_suffix;
1543 ac_top_srcdir=$srcdir
1544 ac_abs_top_srcdir=$srcdir ;;
1545 *) # Relative name.
1546 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1547 ac_top_srcdir=$ac_top_build_prefix$srcdir
1548 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1549 esac
1550 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1552 cd "$ac_dir" || { ac_status=$?; continue; }
1553 # Check for guested configure.
1554 if test -f "$ac_srcdir/configure.gnu"; then
1555 echo &&
1556 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1557 elif test -f "$ac_srcdir/configure"; then
1558 echo &&
1559 $SHELL "$ac_srcdir/configure" --help=recursive
1560 else
1561 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1562 fi || ac_status=$?
1563 cd "$ac_pwd" || { ac_status=$?; break; }
1564 done
1567 test -n "$ac_init_help" && exit $ac_status
1568 if $ac_init_version; then
1569 cat <<\_ACEOF
1570 GNU TM Runtime Library configure 1.0
1571 generated by GNU Autoconf 2.69
1573 Copyright (C) 2012 Free Software Foundation, Inc.
1574 This configure script is free software; the Free Software Foundation
1575 gives unlimited permission to copy, distribute and modify it.
1576 _ACEOF
1577 exit
1580 ## ------------------------ ##
1581 ## Autoconf initialization. ##
1582 ## ------------------------ ##
1584 # ac_fn_c_try_compile LINENO
1585 # --------------------------
1586 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1587 ac_fn_c_try_compile ()
1589 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1590 rm -f conftest.$ac_objext
1591 if { { ac_try="$ac_compile"
1592 case "(($ac_try" in
1593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1594 *) ac_try_echo=$ac_try;;
1595 esac
1596 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1597 $as_echo "$ac_try_echo"; } >&5
1598 (eval "$ac_compile") 2>conftest.err
1599 ac_status=$?
1600 if test -s conftest.err; then
1601 grep -v '^ *+' conftest.err >conftest.er1
1602 cat conftest.er1 >&5
1603 mv -f conftest.er1 conftest.err
1605 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1606 test $ac_status = 0; } && {
1607 test -z "$ac_c_werror_flag" ||
1608 test ! -s conftest.err
1609 } && test -s conftest.$ac_objext; then :
1610 ac_retval=0
1611 else
1612 $as_echo "$as_me: failed program was:" >&5
1613 sed 's/^/| /' conftest.$ac_ext >&5
1615 ac_retval=1
1617 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1618 as_fn_set_status $ac_retval
1620 } # ac_fn_c_try_compile
1622 # ac_fn_cxx_try_compile LINENO
1623 # ----------------------------
1624 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1625 ac_fn_cxx_try_compile ()
1627 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1628 rm -f conftest.$ac_objext
1629 if { { ac_try="$ac_compile"
1630 case "(($ac_try" in
1631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1632 *) ac_try_echo=$ac_try;;
1633 esac
1634 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1635 $as_echo "$ac_try_echo"; } >&5
1636 (eval "$ac_compile") 2>conftest.err
1637 ac_status=$?
1638 if test -s conftest.err; then
1639 grep -v '^ *+' conftest.err >conftest.er1
1640 cat conftest.er1 >&5
1641 mv -f conftest.er1 conftest.err
1643 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1644 test $ac_status = 0; } && {
1645 test -z "$ac_cxx_werror_flag" ||
1646 test ! -s conftest.err
1647 } && test -s conftest.$ac_objext; then :
1648 ac_retval=0
1649 else
1650 $as_echo "$as_me: failed program was:" >&5
1651 sed 's/^/| /' conftest.$ac_ext >&5
1653 ac_retval=1
1655 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1656 as_fn_set_status $ac_retval
1658 } # ac_fn_cxx_try_compile
1660 # ac_fn_c_try_link LINENO
1661 # -----------------------
1662 # Try to link conftest.$ac_ext, and return whether this succeeded.
1663 ac_fn_c_try_link ()
1665 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1666 rm -f conftest.$ac_objext conftest$ac_exeext
1667 if { { ac_try="$ac_link"
1668 case "(($ac_try" in
1669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1670 *) ac_try_echo=$ac_try;;
1671 esac
1672 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1673 $as_echo "$ac_try_echo"; } >&5
1674 (eval "$ac_link") 2>conftest.err
1675 ac_status=$?
1676 if test -s conftest.err; then
1677 grep -v '^ *+' conftest.err >conftest.er1
1678 cat conftest.er1 >&5
1679 mv -f conftest.er1 conftest.err
1681 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1682 test $ac_status = 0; } && {
1683 test -z "$ac_c_werror_flag" ||
1684 test ! -s conftest.err
1685 } && test -s conftest$ac_exeext && {
1686 test "$cross_compiling" = yes ||
1687 test -x conftest$ac_exeext
1688 }; then :
1689 ac_retval=0
1690 else
1691 $as_echo "$as_me: failed program was:" >&5
1692 sed 's/^/| /' conftest.$ac_ext >&5
1694 ac_retval=1
1696 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1697 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1698 # interfere with the next link command; also delete a directory that is
1699 # left behind by Apple's compiler. We do this before executing the actions.
1700 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1701 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1702 as_fn_set_status $ac_retval
1704 } # ac_fn_c_try_link
1706 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1707 # -------------------------------------------------------
1708 # Tests whether HEADER exists and can be compiled using the include files in
1709 # INCLUDES, setting the cache variable VAR accordingly.
1710 ac_fn_c_check_header_compile ()
1712 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1714 $as_echo_n "checking for $2... " >&6; }
1715 if eval \${$3+:} false; then :
1716 $as_echo_n "(cached) " >&6
1717 else
1718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1719 /* end confdefs.h. */
1721 #include <$2>
1722 _ACEOF
1723 if ac_fn_c_try_compile "$LINENO"; then :
1724 eval "$3=yes"
1725 else
1726 eval "$3=no"
1728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1730 eval ac_res=\$$3
1731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1732 $as_echo "$ac_res" >&6; }
1733 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1735 } # ac_fn_c_check_header_compile
1737 # ac_fn_c_try_cpp LINENO
1738 # ----------------------
1739 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1740 ac_fn_c_try_cpp ()
1742 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1743 if { { ac_try="$ac_cpp conftest.$ac_ext"
1744 case "(($ac_try" in
1745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1746 *) ac_try_echo=$ac_try;;
1747 esac
1748 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1749 $as_echo "$ac_try_echo"; } >&5
1750 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1751 ac_status=$?
1752 if test -s conftest.err; then
1753 grep -v '^ *+' conftest.err >conftest.er1
1754 cat conftest.er1 >&5
1755 mv -f conftest.er1 conftest.err
1757 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1758 test $ac_status = 0; } > conftest.i && {
1759 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1760 test ! -s conftest.err
1761 }; then :
1762 ac_retval=0
1763 else
1764 $as_echo "$as_me: failed program was:" >&5
1765 sed 's/^/| /' conftest.$ac_ext >&5
1767 ac_retval=1
1769 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1770 as_fn_set_status $ac_retval
1772 } # ac_fn_c_try_cpp
1774 # ac_fn_c_try_run LINENO
1775 # ----------------------
1776 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1777 # that executables *can* be run.
1778 ac_fn_c_try_run ()
1780 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1781 if { { ac_try="$ac_link"
1782 case "(($ac_try" in
1783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1784 *) ac_try_echo=$ac_try;;
1785 esac
1786 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1787 $as_echo "$ac_try_echo"; } >&5
1788 (eval "$ac_link") 2>&5
1789 ac_status=$?
1790 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1791 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1792 { { case "(($ac_try" in
1793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1794 *) ac_try_echo=$ac_try;;
1795 esac
1796 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1797 $as_echo "$ac_try_echo"; } >&5
1798 (eval "$ac_try") 2>&5
1799 ac_status=$?
1800 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1801 test $ac_status = 0; }; }; then :
1802 ac_retval=0
1803 else
1804 $as_echo "$as_me: program exited with status $ac_status" >&5
1805 $as_echo "$as_me: failed program was:" >&5
1806 sed 's/^/| /' conftest.$ac_ext >&5
1808 ac_retval=$ac_status
1810 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1811 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1812 as_fn_set_status $ac_retval
1814 } # ac_fn_c_try_run
1816 # ac_fn_c_check_func LINENO FUNC VAR
1817 # ----------------------------------
1818 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1819 ac_fn_c_check_func ()
1821 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1823 $as_echo_n "checking for $2... " >&6; }
1824 if eval \${$3+:} false; then :
1825 $as_echo_n "(cached) " >&6
1826 else
1827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1828 /* end confdefs.h. */
1829 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1830 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1831 #define $2 innocuous_$2
1833 /* System header to define __stub macros and hopefully few prototypes,
1834 which can conflict with char $2 (); below.
1835 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1836 <limits.h> exists even on freestanding compilers. */
1838 #ifdef __STDC__
1839 # include <limits.h>
1840 #else
1841 # include <assert.h>
1842 #endif
1844 #undef $2
1846 /* Override any GCC internal prototype to avoid an error.
1847 Use char because int might match the return type of a GCC
1848 builtin and then its argument prototype would still apply. */
1849 #ifdef __cplusplus
1850 extern "C"
1851 #endif
1852 char $2 ();
1853 /* The GNU C library defines this for functions which it implements
1854 to always fail with ENOSYS. Some functions are actually named
1855 something starting with __ and the normal name is an alias. */
1856 #if defined __stub_$2 || defined __stub___$2
1857 choke me
1858 #endif
1861 main ()
1863 return $2 ();
1865 return 0;
1867 _ACEOF
1868 if ac_fn_c_try_link "$LINENO"; then :
1869 eval "$3=yes"
1870 else
1871 eval "$3=no"
1873 rm -f core conftest.err conftest.$ac_objext \
1874 conftest$ac_exeext conftest.$ac_ext
1876 eval ac_res=\$$3
1877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1878 $as_echo "$ac_res" >&6; }
1879 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1881 } # ac_fn_c_check_func
1883 # ac_fn_cxx_try_cpp LINENO
1884 # ------------------------
1885 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1886 ac_fn_cxx_try_cpp ()
1888 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1889 if { { ac_try="$ac_cpp conftest.$ac_ext"
1890 case "(($ac_try" in
1891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1892 *) ac_try_echo=$ac_try;;
1893 esac
1894 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1895 $as_echo "$ac_try_echo"; } >&5
1896 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1897 ac_status=$?
1898 if test -s conftest.err; then
1899 grep -v '^ *+' conftest.err >conftest.er1
1900 cat conftest.er1 >&5
1901 mv -f conftest.er1 conftest.err
1903 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1904 test $ac_status = 0; } > conftest.i && {
1905 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1906 test ! -s conftest.err
1907 }; then :
1908 ac_retval=0
1909 else
1910 $as_echo "$as_me: failed program was:" >&5
1911 sed 's/^/| /' conftest.$ac_ext >&5
1913 ac_retval=1
1915 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1916 as_fn_set_status $ac_retval
1918 } # ac_fn_cxx_try_cpp
1920 # ac_fn_cxx_try_link LINENO
1921 # -------------------------
1922 # Try to link conftest.$ac_ext, and return whether this succeeded.
1923 ac_fn_cxx_try_link ()
1925 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1926 rm -f conftest.$ac_objext conftest$ac_exeext
1927 if { { ac_try="$ac_link"
1928 case "(($ac_try" in
1929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1930 *) ac_try_echo=$ac_try;;
1931 esac
1932 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1933 $as_echo "$ac_try_echo"; } >&5
1934 (eval "$ac_link") 2>conftest.err
1935 ac_status=$?
1936 if test -s conftest.err; then
1937 grep -v '^ *+' conftest.err >conftest.er1
1938 cat conftest.er1 >&5
1939 mv -f conftest.er1 conftest.err
1941 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1942 test $ac_status = 0; } && {
1943 test -z "$ac_cxx_werror_flag" ||
1944 test ! -s conftest.err
1945 } && test -s conftest$ac_exeext && {
1946 test "$cross_compiling" = yes ||
1947 test -x conftest$ac_exeext
1948 }; then :
1949 ac_retval=0
1950 else
1951 $as_echo "$as_me: failed program was:" >&5
1952 sed 's/^/| /' conftest.$ac_ext >&5
1954 ac_retval=1
1956 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1957 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1958 # interfere with the next link command; also delete a directory that is
1959 # left behind by Apple's compiler. We do this before executing the actions.
1960 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1961 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1962 as_fn_set_status $ac_retval
1964 } # ac_fn_cxx_try_link
1966 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1967 # -------------------------------------------------------
1968 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1969 # the include files in INCLUDES and setting the cache variable VAR
1970 # accordingly.
1971 ac_fn_c_check_header_mongrel ()
1973 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1974 if eval \${$3+:} false; then :
1975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1976 $as_echo_n "checking for $2... " >&6; }
1977 if eval \${$3+:} false; then :
1978 $as_echo_n "(cached) " >&6
1980 eval ac_res=\$$3
1981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1982 $as_echo "$ac_res" >&6; }
1983 else
1984 # Is the header compilable?
1985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1986 $as_echo_n "checking $2 usability... " >&6; }
1987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1988 /* end confdefs.h. */
1990 #include <$2>
1991 _ACEOF
1992 if ac_fn_c_try_compile "$LINENO"; then :
1993 ac_header_compiler=yes
1994 else
1995 ac_header_compiler=no
1997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1999 $as_echo "$ac_header_compiler" >&6; }
2001 # Is the header present?
2002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2003 $as_echo_n "checking $2 presence... " >&6; }
2004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2005 /* end confdefs.h. */
2006 #include <$2>
2007 _ACEOF
2008 if ac_fn_c_try_cpp "$LINENO"; then :
2009 ac_header_preproc=yes
2010 else
2011 ac_header_preproc=no
2013 rm -f conftest.err conftest.i conftest.$ac_ext
2014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2015 $as_echo "$ac_header_preproc" >&6; }
2017 # So? What about this header?
2018 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2019 yes:no: )
2020 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2021 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2022 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2023 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2025 no:yes:* )
2026 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2027 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2028 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2029 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2030 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2031 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2032 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2033 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2034 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2035 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2037 esac
2038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2039 $as_echo_n "checking for $2... " >&6; }
2040 if eval \${$3+:} false; then :
2041 $as_echo_n "(cached) " >&6
2042 else
2043 eval "$3=\$ac_header_compiler"
2045 eval ac_res=\$$3
2046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2047 $as_echo "$ac_res" >&6; }
2049 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2051 } # ac_fn_c_check_header_mongrel
2053 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2054 # -------------------------------------------
2055 # Tests whether TYPE exists after having included INCLUDES, setting cache
2056 # variable VAR accordingly.
2057 ac_fn_c_check_type ()
2059 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2061 $as_echo_n "checking for $2... " >&6; }
2062 if eval \${$3+:} false; then :
2063 $as_echo_n "(cached) " >&6
2064 else
2065 eval "$3=no"
2066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2067 /* end confdefs.h. */
2070 main ()
2072 if (sizeof ($2))
2073 return 0;
2075 return 0;
2077 _ACEOF
2078 if ac_fn_c_try_compile "$LINENO"; then :
2079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2080 /* end confdefs.h. */
2083 main ()
2085 if (sizeof (($2)))
2086 return 0;
2088 return 0;
2090 _ACEOF
2091 if ac_fn_c_try_compile "$LINENO"; then :
2093 else
2094 eval "$3=yes"
2096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2100 eval ac_res=\$$3
2101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2102 $as_echo "$ac_res" >&6; }
2103 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2105 } # ac_fn_c_check_type
2107 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2108 # --------------------------------------------
2109 # Tries to find the compile-time value of EXPR in a program that includes
2110 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2111 # computed
2112 ac_fn_c_compute_int ()
2114 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2115 if test "$cross_compiling" = yes; then
2116 # Depending upon the size, compute the lo and hi bounds.
2117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2118 /* end confdefs.h. */
2121 main ()
2123 static int test_array [1 - 2 * !(($2) >= 0)];
2124 test_array [0] = 0;
2125 return test_array [0];
2128 return 0;
2130 _ACEOF
2131 if ac_fn_c_try_compile "$LINENO"; then :
2132 ac_lo=0 ac_mid=0
2133 while :; do
2134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2135 /* end confdefs.h. */
2138 main ()
2140 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2141 test_array [0] = 0;
2142 return test_array [0];
2145 return 0;
2147 _ACEOF
2148 if ac_fn_c_try_compile "$LINENO"; then :
2149 ac_hi=$ac_mid; break
2150 else
2151 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2152 if test $ac_lo -le $ac_mid; then
2153 ac_lo= ac_hi=
2154 break
2156 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2159 done
2160 else
2161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2162 /* end confdefs.h. */
2165 main ()
2167 static int test_array [1 - 2 * !(($2) < 0)];
2168 test_array [0] = 0;
2169 return test_array [0];
2172 return 0;
2174 _ACEOF
2175 if ac_fn_c_try_compile "$LINENO"; then :
2176 ac_hi=-1 ac_mid=-1
2177 while :; do
2178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2179 /* end confdefs.h. */
2182 main ()
2184 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2185 test_array [0] = 0;
2186 return test_array [0];
2189 return 0;
2191 _ACEOF
2192 if ac_fn_c_try_compile "$LINENO"; then :
2193 ac_lo=$ac_mid; break
2194 else
2195 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2196 if test $ac_mid -le $ac_hi; then
2197 ac_lo= ac_hi=
2198 break
2200 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2203 done
2204 else
2205 ac_lo= ac_hi=
2207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2210 # Binary search between lo and hi bounds.
2211 while test "x$ac_lo" != "x$ac_hi"; do
2212 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2214 /* end confdefs.h. */
2217 main ()
2219 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2220 test_array [0] = 0;
2221 return test_array [0];
2224 return 0;
2226 _ACEOF
2227 if ac_fn_c_try_compile "$LINENO"; then :
2228 ac_hi=$ac_mid
2229 else
2230 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2233 done
2234 case $ac_lo in #((
2235 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2236 '') ac_retval=1 ;;
2237 esac
2238 else
2239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2240 /* end confdefs.h. */
2242 static long int longval () { return $2; }
2243 static unsigned long int ulongval () { return $2; }
2244 #include <stdio.h>
2245 #include <stdlib.h>
2247 main ()
2250 FILE *f = fopen ("conftest.val", "w");
2251 if (! f)
2252 return 1;
2253 if (($2) < 0)
2255 long int i = longval ();
2256 if (i != ($2))
2257 return 1;
2258 fprintf (f, "%ld", i);
2260 else
2262 unsigned long int i = ulongval ();
2263 if (i != ($2))
2264 return 1;
2265 fprintf (f, "%lu", i);
2267 /* Do not output a trailing newline, as this causes \r\n confusion
2268 on some platforms. */
2269 return ferror (f) || fclose (f) != 0;
2272 return 0;
2274 _ACEOF
2275 if ac_fn_c_try_run "$LINENO"; then :
2276 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2277 else
2278 ac_retval=1
2280 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2281 conftest.$ac_objext conftest.beam conftest.$ac_ext
2282 rm -f conftest.val
2285 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2286 as_fn_set_status $ac_retval
2288 } # ac_fn_c_compute_int
2290 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2291 # ---------------------------------------------
2292 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2293 # accordingly.
2294 ac_fn_c_check_decl ()
2296 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2297 as_decl_name=`echo $2|sed 's/ *(.*//'`
2298 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2300 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2301 if eval \${$3+:} false; then :
2302 $as_echo_n "(cached) " >&6
2303 else
2304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2305 /* end confdefs.h. */
2308 main ()
2310 #ifndef $as_decl_name
2311 #ifdef __cplusplus
2312 (void) $as_decl_use;
2313 #else
2314 (void) $as_decl_name;
2315 #endif
2316 #endif
2319 return 0;
2321 _ACEOF
2322 if ac_fn_c_try_compile "$LINENO"; then :
2323 eval "$3=yes"
2324 else
2325 eval "$3=no"
2327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2329 eval ac_res=\$$3
2330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2331 $as_echo "$ac_res" >&6; }
2332 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2334 } # ac_fn_c_check_decl
2335 cat >config.log <<_ACEOF
2336 This file contains any messages produced by compilers while
2337 running configure, to aid debugging if configure makes a mistake.
2339 It was created by GNU TM Runtime Library $as_me 1.0, which was
2340 generated by GNU Autoconf 2.69. Invocation command line was
2342 $ $0 $@
2344 _ACEOF
2345 exec 5>>config.log
2347 cat <<_ASUNAME
2348 ## --------- ##
2349 ## Platform. ##
2350 ## --------- ##
2352 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2353 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2354 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2355 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2356 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2358 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2359 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2361 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2362 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2363 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2364 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2365 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2366 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2367 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2369 _ASUNAME
2371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2372 for as_dir in $PATH
2374 IFS=$as_save_IFS
2375 test -z "$as_dir" && as_dir=.
2376 $as_echo "PATH: $as_dir"
2377 done
2378 IFS=$as_save_IFS
2380 } >&5
2382 cat >&5 <<_ACEOF
2385 ## ----------- ##
2386 ## Core tests. ##
2387 ## ----------- ##
2389 _ACEOF
2392 # Keep a trace of the command line.
2393 # Strip out --no-create and --no-recursion so they do not pile up.
2394 # Strip out --silent because we don't want to record it for future runs.
2395 # Also quote any args containing shell meta-characters.
2396 # Make two passes to allow for proper duplicate-argument suppression.
2397 ac_configure_args=
2398 ac_configure_args0=
2399 ac_configure_args1=
2400 ac_must_keep_next=false
2401 for ac_pass in 1 2
2403 for ac_arg
2405 case $ac_arg in
2406 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2407 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2408 | -silent | --silent | --silen | --sile | --sil)
2409 continue ;;
2410 *\'*)
2411 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2412 esac
2413 case $ac_pass in
2414 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2416 as_fn_append ac_configure_args1 " '$ac_arg'"
2417 if test $ac_must_keep_next = true; then
2418 ac_must_keep_next=false # Got value, back to normal.
2419 else
2420 case $ac_arg in
2421 *=* | --config-cache | -C | -disable-* | --disable-* \
2422 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2423 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2424 | -with-* | --with-* | -without-* | --without-* | --x)
2425 case "$ac_configure_args0 " in
2426 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2427 esac
2429 -* ) ac_must_keep_next=true ;;
2430 esac
2432 as_fn_append ac_configure_args " '$ac_arg'"
2434 esac
2435 done
2436 done
2437 { ac_configure_args0=; unset ac_configure_args0;}
2438 { ac_configure_args1=; unset ac_configure_args1;}
2440 # When interrupted or exit'd, cleanup temporary files, and complete
2441 # config.log. We remove comments because anyway the quotes in there
2442 # would cause problems or look ugly.
2443 # WARNING: Use '\'' to represent an apostrophe within the trap.
2444 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2445 trap 'exit_status=$?
2446 # Save into config.log some information that might help in debugging.
2448 echo
2450 $as_echo "## ---------------- ##
2451 ## Cache variables. ##
2452 ## ---------------- ##"
2453 echo
2454 # The following way of writing the cache mishandles newlines in values,
2456 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2457 eval ac_val=\$$ac_var
2458 case $ac_val in #(
2459 *${as_nl}*)
2460 case $ac_var in #(
2461 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2462 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2463 esac
2464 case $ac_var in #(
2465 _ | IFS | as_nl) ;; #(
2466 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2467 *) { eval $ac_var=; unset $ac_var;} ;;
2468 esac ;;
2469 esac
2470 done
2471 (set) 2>&1 |
2472 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2473 *${as_nl}ac_space=\ *)
2474 sed -n \
2475 "s/'\''/'\''\\\\'\'''\''/g;
2476 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2477 ;; #(
2479 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2481 esac |
2482 sort
2484 echo
2486 $as_echo "## ----------------- ##
2487 ## Output variables. ##
2488 ## ----------------- ##"
2489 echo
2490 for ac_var in $ac_subst_vars
2492 eval ac_val=\$$ac_var
2493 case $ac_val in
2494 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2495 esac
2496 $as_echo "$ac_var='\''$ac_val'\''"
2497 done | sort
2498 echo
2500 if test -n "$ac_subst_files"; then
2501 $as_echo "## ------------------- ##
2502 ## File substitutions. ##
2503 ## ------------------- ##"
2504 echo
2505 for ac_var in $ac_subst_files
2507 eval ac_val=\$$ac_var
2508 case $ac_val in
2509 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2510 esac
2511 $as_echo "$ac_var='\''$ac_val'\''"
2512 done | sort
2513 echo
2516 if test -s confdefs.h; then
2517 $as_echo "## ----------- ##
2518 ## confdefs.h. ##
2519 ## ----------- ##"
2520 echo
2521 cat confdefs.h
2522 echo
2524 test "$ac_signal" != 0 &&
2525 $as_echo "$as_me: caught signal $ac_signal"
2526 $as_echo "$as_me: exit $exit_status"
2527 } >&5
2528 rm -f core *.core core.conftest.* &&
2529 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2530 exit $exit_status
2532 for ac_signal in 1 2 13 15; do
2533 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2534 done
2535 ac_signal=0
2537 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2538 rm -f -r conftest* confdefs.h
2540 $as_echo "/* confdefs.h */" > confdefs.h
2542 # Predefined preprocessor variables.
2544 cat >>confdefs.h <<_ACEOF
2545 #define PACKAGE_NAME "$PACKAGE_NAME"
2546 _ACEOF
2548 cat >>confdefs.h <<_ACEOF
2549 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2550 _ACEOF
2552 cat >>confdefs.h <<_ACEOF
2553 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2554 _ACEOF
2556 cat >>confdefs.h <<_ACEOF
2557 #define PACKAGE_STRING "$PACKAGE_STRING"
2558 _ACEOF
2560 cat >>confdefs.h <<_ACEOF
2561 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2562 _ACEOF
2564 cat >>confdefs.h <<_ACEOF
2565 #define PACKAGE_URL "$PACKAGE_URL"
2566 _ACEOF
2569 # Let the site file select an alternate cache file if it wants to.
2570 # Prefer an explicitly selected file to automatically selected ones.
2571 ac_site_file1=NONE
2572 ac_site_file2=NONE
2573 if test -n "$CONFIG_SITE"; then
2574 # We do not want a PATH search for config.site.
2575 case $CONFIG_SITE in #((
2576 -*) ac_site_file1=./$CONFIG_SITE;;
2577 */*) ac_site_file1=$CONFIG_SITE;;
2578 *) ac_site_file1=./$CONFIG_SITE;;
2579 esac
2580 elif test "x$prefix" != xNONE; then
2581 ac_site_file1=$prefix/share/config.site
2582 ac_site_file2=$prefix/etc/config.site
2583 else
2584 ac_site_file1=$ac_default_prefix/share/config.site
2585 ac_site_file2=$ac_default_prefix/etc/config.site
2587 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2589 test "x$ac_site_file" = xNONE && continue
2590 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2591 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2592 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2593 sed 's/^/| /' "$ac_site_file" >&5
2594 . "$ac_site_file" \
2595 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2596 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2597 as_fn_error $? "failed to load site script $ac_site_file
2598 See \`config.log' for more details" "$LINENO" 5; }
2600 done
2602 if test -r "$cache_file"; then
2603 # Some versions of bash will fail to source /dev/null (special files
2604 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2605 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2606 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2607 $as_echo "$as_me: loading cache $cache_file" >&6;}
2608 case $cache_file in
2609 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2610 *) . "./$cache_file";;
2611 esac
2613 else
2614 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2615 $as_echo "$as_me: creating cache $cache_file" >&6;}
2616 >$cache_file
2619 # Check that the precious variables saved in the cache have kept the same
2620 # value.
2621 ac_cache_corrupted=false
2622 for ac_var in $ac_precious_vars; do
2623 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2624 eval ac_new_set=\$ac_env_${ac_var}_set
2625 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2626 eval ac_new_val=\$ac_env_${ac_var}_value
2627 case $ac_old_set,$ac_new_set in
2628 set,)
2629 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2630 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2631 ac_cache_corrupted=: ;;
2632 ,set)
2633 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2634 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2635 ac_cache_corrupted=: ;;
2636 ,);;
2638 if test "x$ac_old_val" != "x$ac_new_val"; then
2639 # differences in whitespace do not lead to failure.
2640 ac_old_val_w=`echo x $ac_old_val`
2641 ac_new_val_w=`echo x $ac_new_val`
2642 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2643 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2644 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2645 ac_cache_corrupted=:
2646 else
2647 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2648 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2649 eval $ac_var=\$ac_old_val
2651 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2652 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2653 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2654 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2655 fi;;
2656 esac
2657 # Pass precious variables to config.status.
2658 if test "$ac_new_set" = set; then
2659 case $ac_new_val in
2660 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2661 *) ac_arg=$ac_var=$ac_new_val ;;
2662 esac
2663 case " $ac_configure_args " in
2664 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2665 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2666 esac
2668 done
2669 if $ac_cache_corrupted; then
2670 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2671 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2672 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2673 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2674 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2676 ## -------------------- ##
2677 ## Main body of script. ##
2678 ## -------------------- ##
2680 ac_ext=c
2681 ac_cpp='$CPP $CPPFLAGS'
2682 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2683 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2684 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2690 ac_config_headers="$ac_config_headers config.h"
2693 # -------
2694 # Options
2695 # -------
2697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
2698 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
2699 # Check whether --enable-version-specific-runtime-libs was given.
2700 if test "${enable_version_specific_runtime_libs+set}" = set; then :
2701 enableval=$enable_version_specific_runtime_libs;
2702 case "$enableval" in
2703 yes|no) ;;
2704 *) as_fn_error $? "Unknown argument to enable/disable version-specific-runtime-libs" "$LINENO" 5 ;;
2705 esac
2707 else
2708 enable_version_specific_runtime_libs=no
2712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_version_specific_runtime_libs" >&5
2713 $as_echo "$enable_version_specific_runtime_libs" >&6; }
2715 # We would like our source tree to be readonly. However when releases or
2716 # pre-releases are generated, the flex/bison generated files as well as the
2717 # various formats of manuals need to be included along with the rest of the
2718 # sources. Therefore we have --enable-generated-files-in-srcdir to do
2719 # just that.
2720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-generated-files-in-srcdir" >&5
2721 $as_echo_n "checking for --enable-generated-files-in-srcdir... " >&6; }
2722 # Check whether --enable-generated-files-in-srcdir was given.
2723 if test "${enable_generated_files_in_srcdir+set}" = set; then :
2724 enableval=$enable_generated_files_in_srcdir;
2725 case "$enableval" in
2726 yes|no) ;;
2727 *) as_fn_error $? "Unknown argument to enable/disable generated-files-in-srcdir" "$LINENO" 5 ;;
2728 esac
2730 else
2731 enable_generated_files_in_srcdir=no
2735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_generated_files_in_srcdir" >&5
2736 $as_echo "$enable_generated_files_in_srcdir" >&6; }
2737 if test "$enable_generated_files_in_srcdir" = yes; then
2738 GENINSRC_TRUE=
2739 GENINSRC_FALSE='#'
2740 else
2741 GENINSRC_TRUE='#'
2742 GENINSRC_FALSE=
2747 # -------
2748 # -------
2750 # Gets build, host, target, *_vendor, *_cpu, *_os, etc.
2752 # You will slowly go insane if you do not grok the following fact: when
2753 # building this library, the top-level /target/ becomes the library's /host/.
2755 # configure then causes --target to default to --host, exactly like any
2756 # other package using autoconf. Therefore, 'target' and 'host' will
2757 # always be the same. This makes sense both for native and cross compilers
2758 # just think about it for a little while. :-)
2760 # Also, if this library is being configured as part of a cross compiler, the
2761 # top-level configure script will pass the "real" host as $with_cross_host.
2763 # Do not delete or change the following two lines. For why, see
2764 # http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
2765 ac_aux_dir=
2766 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2767 if test -f "$ac_dir/install-sh"; then
2768 ac_aux_dir=$ac_dir
2769 ac_install_sh="$ac_aux_dir/install-sh -c"
2770 break
2771 elif test -f "$ac_dir/install.sh"; then
2772 ac_aux_dir=$ac_dir
2773 ac_install_sh="$ac_aux_dir/install.sh -c"
2774 break
2775 elif test -f "$ac_dir/shtool"; then
2776 ac_aux_dir=$ac_dir
2777 ac_install_sh="$ac_aux_dir/shtool install -c"
2778 break
2780 done
2781 if test -z "$ac_aux_dir"; then
2782 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2785 # These three variables are undocumented and unsupported,
2786 # and are intended to be withdrawn in a future Autoconf release.
2787 # They can cause serious problems if a builder's source tree is in a directory
2788 # whose full name contains unusual characters.
2789 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2790 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2791 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2794 # Make sure we can run config.sub.
2795 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2796 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2799 $as_echo_n "checking build system type... " >&6; }
2800 if ${ac_cv_build+:} false; then :
2801 $as_echo_n "(cached) " >&6
2802 else
2803 ac_build_alias=$build_alias
2804 test "x$ac_build_alias" = x &&
2805 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2806 test "x$ac_build_alias" = x &&
2807 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2808 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2809 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2813 $as_echo "$ac_cv_build" >&6; }
2814 case $ac_cv_build in
2815 *-*-*) ;;
2816 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2817 esac
2818 build=$ac_cv_build
2819 ac_save_IFS=$IFS; IFS='-'
2820 set x $ac_cv_build
2821 shift
2822 build_cpu=$1
2823 build_vendor=$2
2824 shift; shift
2825 # Remember, the first character of IFS is used to create $*,
2826 # except with old shells:
2827 build_os=$*
2828 IFS=$ac_save_IFS
2829 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2833 $as_echo_n "checking host system type... " >&6; }
2834 if ${ac_cv_host+:} false; then :
2835 $as_echo_n "(cached) " >&6
2836 else
2837 if test "x$host_alias" = x; then
2838 ac_cv_host=$ac_cv_build
2839 else
2840 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2841 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2846 $as_echo "$ac_cv_host" >&6; }
2847 case $ac_cv_host in
2848 *-*-*) ;;
2849 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2850 esac
2851 host=$ac_cv_host
2852 ac_save_IFS=$IFS; IFS='-'
2853 set x $ac_cv_host
2854 shift
2855 host_cpu=$1
2856 host_vendor=$2
2857 shift; shift
2858 # Remember, the first character of IFS is used to create $*,
2859 # except with old shells:
2860 host_os=$*
2861 IFS=$ac_save_IFS
2862 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2866 $as_echo_n "checking target system type... " >&6; }
2867 if ${ac_cv_target+:} false; then :
2868 $as_echo_n "(cached) " >&6
2869 else
2870 if test "x$target_alias" = x; then
2871 ac_cv_target=$ac_cv_host
2872 else
2873 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2874 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2879 $as_echo "$ac_cv_target" >&6; }
2880 case $ac_cv_target in
2881 *-*-*) ;;
2882 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2883 esac
2884 target=$ac_cv_target
2885 ac_save_IFS=$IFS; IFS='-'
2886 set x $ac_cv_target
2887 shift
2888 target_cpu=$1
2889 target_vendor=$2
2890 shift; shift
2891 # Remember, the first character of IFS is used to create $*,
2892 # except with old shells:
2893 target_os=$*
2894 IFS=$ac_save_IFS
2895 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2898 # The aliases save the names the user supplied, while $host etc.
2899 # will get canonicalized.
2900 test -n "$target_alias" &&
2901 test "$program_prefix$program_suffix$program_transform_name" = \
2902 NONENONEs,x,x, &&
2903 program_prefix=${target_alias}-
2905 target_alias=${target_alias-$host_alias}
2907 # Sets up automake. Must come after AC_CANONICAL_SYSTEM. Each of the
2908 # following is magically included in AUTOMAKE_OPTIONS in each Makefile.am.
2909 # 1.9.0: minimum required version
2910 # no-define: PACKAGE and VERSION will not be #define'd in config.h (a bunch
2911 # of other PACKAGE_* variables will, however, and there's nothing
2912 # we can do about that; they come from AC_INIT).
2913 # no-dist: we don't want 'dist' and related rules.
2914 # foreign: we don't follow the normal rules for GNU packages (no COPYING
2915 # file in the top srcdir, etc, etc), so stop complaining.
2916 # -Wall: turns on all automake warnings...
2917 # -Wno-portability: ...except this one, since GNU make is required.
2918 # -Wno-override: ... and this one, since we do want this in testsuite.
2919 am__api_version='1.15'
2921 # Find a good install program. We prefer a C program (faster),
2922 # so one script is as good as another. But avoid the broken or
2923 # incompatible versions:
2924 # SysV /etc/install, /usr/sbin/install
2925 # SunOS /usr/etc/install
2926 # IRIX /sbin/install
2927 # AIX /bin/install
2928 # AmigaOS /C/install, which installs bootblocks on floppy discs
2929 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2930 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2931 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2932 # OS/2's system install, which has a completely different semantic
2933 # ./install, which can be erroneously created by make from ./install.sh.
2934 # Reject install programs that cannot install multiple files.
2935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2936 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2937 if test -z "$INSTALL"; then
2938 if ${ac_cv_path_install+:} false; then :
2939 $as_echo_n "(cached) " >&6
2940 else
2941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2942 for as_dir in $PATH
2944 IFS=$as_save_IFS
2945 test -z "$as_dir" && as_dir=.
2946 # Account for people who put trailing slashes in PATH elements.
2947 case $as_dir/ in #((
2948 ./ | .// | /[cC]/* | \
2949 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2950 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2951 /usr/ucb/* ) ;;
2953 # OSF1 and SCO ODT 3.0 have their own names for install.
2954 # Don't use installbsd from OSF since it installs stuff as root
2955 # by default.
2956 for ac_prog in ginstall scoinst install; do
2957 for ac_exec_ext in '' $ac_executable_extensions; do
2958 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2959 if test $ac_prog = install &&
2960 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2961 # AIX install. It has an incompatible calling convention.
2963 elif test $ac_prog = install &&
2964 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2965 # program-specific install script used by HP pwplus--don't use.
2967 else
2968 rm -rf conftest.one conftest.two conftest.dir
2969 echo one > conftest.one
2970 echo two > conftest.two
2971 mkdir conftest.dir
2972 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2973 test -s conftest.one && test -s conftest.two &&
2974 test -s conftest.dir/conftest.one &&
2975 test -s conftest.dir/conftest.two
2976 then
2977 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2978 break 3
2982 done
2983 done
2985 esac
2987 done
2988 IFS=$as_save_IFS
2990 rm -rf conftest.one conftest.two conftest.dir
2993 if test "${ac_cv_path_install+set}" = set; then
2994 INSTALL=$ac_cv_path_install
2995 else
2996 # As a last resort, use the slow shell script. Don't cache a
2997 # value for INSTALL within a source directory, because that will
2998 # break other packages using the cache if that directory is
2999 # removed, or if the value is a relative name.
3000 INSTALL=$ac_install_sh
3003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3004 $as_echo "$INSTALL" >&6; }
3006 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3007 # It thinks the first close brace ends the variable substitution.
3008 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3010 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3012 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3015 $as_echo_n "checking whether build environment is sane... " >&6; }
3016 # Reject unsafe characters in $srcdir or the absolute working directory
3017 # name. Accept space and tab only in the latter.
3018 am_lf='
3020 case `pwd` in
3021 *[\\\"\#\$\&\'\`$am_lf]*)
3022 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3023 esac
3024 case $srcdir in
3025 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3026 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3027 esac
3029 # Do 'set' in a subshell so we don't clobber the current shell's
3030 # arguments. Must try -L first in case configure is actually a
3031 # symlink; some systems play weird games with the mod time of symlinks
3032 # (eg FreeBSD returns the mod time of the symlink's containing
3033 # directory).
3034 if (
3035 am_has_slept=no
3036 for am_try in 1 2; do
3037 echo "timestamp, slept: $am_has_slept" > conftest.file
3038 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3039 if test "$*" = "X"; then
3040 # -L didn't work.
3041 set X `ls -t "$srcdir/configure" conftest.file`
3043 if test "$*" != "X $srcdir/configure conftest.file" \
3044 && test "$*" != "X conftest.file $srcdir/configure"; then
3046 # If neither matched, then we have a broken ls. This can happen
3047 # if, for instance, CONFIG_SHELL is bash and it inherits a
3048 # broken ls alias from the environment. This has actually
3049 # happened. Such a system could not be considered "sane".
3050 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3051 alias in your environment" "$LINENO" 5
3053 if test "$2" = conftest.file || test $am_try -eq 2; then
3054 break
3056 # Just in case.
3057 sleep 1
3058 am_has_slept=yes
3059 done
3060 test "$2" = conftest.file
3062 then
3063 # Ok.
3065 else
3066 as_fn_error $? "newly created file is older than distributed files!
3067 Check your system clock" "$LINENO" 5
3069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3070 $as_echo "yes" >&6; }
3071 # If we didn't sleep, we still need to ensure time stamps of config.status and
3072 # generated files are strictly newer.
3073 am_sleep_pid=
3074 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3075 ( sleep 1 ) &
3076 am_sleep_pid=$!
3079 rm -f conftest.file
3081 test "$program_prefix" != NONE &&
3082 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3083 # Use a double $ so make ignores it.
3084 test "$program_suffix" != NONE &&
3085 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3086 # Double any \ or $.
3087 # By default was `s,x,x', remove it if useless.
3088 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3089 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3091 # Expand $ac_aux_dir to an absolute path.
3092 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3094 if test x"${MISSING+set}" != xset; then
3095 case $am_aux_dir in
3096 *\ * | *\ *)
3097 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3099 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3100 esac
3102 # Use eval to expand $SHELL
3103 if eval "$MISSING --is-lightweight"; then
3104 am_missing_run="$MISSING "
3105 else
3106 am_missing_run=
3107 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3108 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3111 if test x"${install_sh+set}" != xset; then
3112 case $am_aux_dir in
3113 *\ * | *\ *)
3114 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3116 install_sh="\${SHELL} $am_aux_dir/install-sh"
3117 esac
3120 # Installed binaries are usually stripped using 'strip' when the user
3121 # run "make install-strip". However 'strip' might not be the right
3122 # tool to use in cross-compilation environments, therefore Automake
3123 # will honor the 'STRIP' environment variable to overrule this program.
3124 if test "$cross_compiling" != no; then
3125 if test -n "$ac_tool_prefix"; then
3126 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3127 set dummy ${ac_tool_prefix}strip; ac_word=$2
3128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3129 $as_echo_n "checking for $ac_word... " >&6; }
3130 if ${ac_cv_prog_STRIP+:} false; then :
3131 $as_echo_n "(cached) " >&6
3132 else
3133 if test -n "$STRIP"; then
3134 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3135 else
3136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3137 for as_dir in $PATH
3139 IFS=$as_save_IFS
3140 test -z "$as_dir" && as_dir=.
3141 for ac_exec_ext in '' $ac_executable_extensions; do
3142 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3143 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3144 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3145 break 2
3147 done
3148 done
3149 IFS=$as_save_IFS
3153 STRIP=$ac_cv_prog_STRIP
3154 if test -n "$STRIP"; then
3155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3156 $as_echo "$STRIP" >&6; }
3157 else
3158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3159 $as_echo "no" >&6; }
3164 if test -z "$ac_cv_prog_STRIP"; then
3165 ac_ct_STRIP=$STRIP
3166 # Extract the first word of "strip", so it can be a program name with args.
3167 set dummy strip; ac_word=$2
3168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3169 $as_echo_n "checking for $ac_word... " >&6; }
3170 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3171 $as_echo_n "(cached) " >&6
3172 else
3173 if test -n "$ac_ct_STRIP"; then
3174 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3175 else
3176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3177 for as_dir in $PATH
3179 IFS=$as_save_IFS
3180 test -z "$as_dir" && as_dir=.
3181 for ac_exec_ext in '' $ac_executable_extensions; do
3182 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3183 ac_cv_prog_ac_ct_STRIP="strip"
3184 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3185 break 2
3187 done
3188 done
3189 IFS=$as_save_IFS
3193 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3194 if test -n "$ac_ct_STRIP"; then
3195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3196 $as_echo "$ac_ct_STRIP" >&6; }
3197 else
3198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3199 $as_echo "no" >&6; }
3202 if test "x$ac_ct_STRIP" = x; then
3203 STRIP=":"
3204 else
3205 case $cross_compiling:$ac_tool_warned in
3206 yes:)
3207 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3208 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3209 ac_tool_warned=yes ;;
3210 esac
3211 STRIP=$ac_ct_STRIP
3213 else
3214 STRIP="$ac_cv_prog_STRIP"
3218 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3221 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3222 if test -z "$MKDIR_P"; then
3223 if ${ac_cv_path_mkdir+:} false; then :
3224 $as_echo_n "(cached) " >&6
3225 else
3226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3227 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3229 IFS=$as_save_IFS
3230 test -z "$as_dir" && as_dir=.
3231 for ac_prog in mkdir gmkdir; do
3232 for ac_exec_ext in '' $ac_executable_extensions; do
3233 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3234 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3235 'mkdir (GNU coreutils) '* | \
3236 'mkdir (coreutils) '* | \
3237 'mkdir (fileutils) '4.1*)
3238 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3239 break 3;;
3240 esac
3241 done
3242 done
3243 done
3244 IFS=$as_save_IFS
3248 test -d ./--version && rmdir ./--version
3249 if test "${ac_cv_path_mkdir+set}" = set; then
3250 MKDIR_P="$ac_cv_path_mkdir -p"
3251 else
3252 # As a last resort, use the slow shell script. Don't cache a
3253 # value for MKDIR_P within a source directory, because that will
3254 # break other packages using the cache if that directory is
3255 # removed, or if the value is a relative name.
3256 MKDIR_P="$ac_install_sh -d"
3259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3260 $as_echo "$MKDIR_P" >&6; }
3262 for ac_prog in gawk mawk nawk awk
3264 # Extract the first word of "$ac_prog", so it can be a program name with args.
3265 set dummy $ac_prog; ac_word=$2
3266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3267 $as_echo_n "checking for $ac_word... " >&6; }
3268 if ${ac_cv_prog_AWK+:} false; then :
3269 $as_echo_n "(cached) " >&6
3270 else
3271 if test -n "$AWK"; then
3272 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3273 else
3274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3275 for as_dir in $PATH
3277 IFS=$as_save_IFS
3278 test -z "$as_dir" && as_dir=.
3279 for ac_exec_ext in '' $ac_executable_extensions; do
3280 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3281 ac_cv_prog_AWK="$ac_prog"
3282 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3283 break 2
3285 done
3286 done
3287 IFS=$as_save_IFS
3291 AWK=$ac_cv_prog_AWK
3292 if test -n "$AWK"; then
3293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3294 $as_echo "$AWK" >&6; }
3295 else
3296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3297 $as_echo "no" >&6; }
3301 test -n "$AWK" && break
3302 done
3304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3305 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3306 set x ${MAKE-make}
3307 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3308 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3309 $as_echo_n "(cached) " >&6
3310 else
3311 cat >conftest.make <<\_ACEOF
3312 SHELL = /bin/sh
3313 all:
3314 @echo '@@@%%%=$(MAKE)=@@@%%%'
3315 _ACEOF
3316 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3317 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3318 *@@@%%%=?*=@@@%%%*)
3319 eval ac_cv_prog_make_${ac_make}_set=yes;;
3321 eval ac_cv_prog_make_${ac_make}_set=no;;
3322 esac
3323 rm -f conftest.make
3325 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3327 $as_echo "yes" >&6; }
3328 SET_MAKE=
3329 else
3330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3331 $as_echo "no" >&6; }
3332 SET_MAKE="MAKE=${MAKE-make}"
3335 rm -rf .tst 2>/dev/null
3336 mkdir .tst 2>/dev/null
3337 if test -d .tst; then
3338 am__leading_dot=.
3339 else
3340 am__leading_dot=_
3342 rmdir .tst 2>/dev/null
3344 # Check whether --enable-silent-rules was given.
3345 if test "${enable_silent_rules+set}" = set; then :
3346 enableval=$enable_silent_rules;
3349 case $enable_silent_rules in # (((
3350 yes) AM_DEFAULT_VERBOSITY=0;;
3351 no) AM_DEFAULT_VERBOSITY=1;;
3352 *) AM_DEFAULT_VERBOSITY=1;;
3353 esac
3354 am_make=${MAKE-make}
3355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3356 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3357 if ${am_cv_make_support_nested_variables+:} false; then :
3358 $as_echo_n "(cached) " >&6
3359 else
3360 if $as_echo 'TRUE=$(BAR$(V))
3361 BAR0=false
3362 BAR1=true
3364 am__doit:
3365 @$(TRUE)
3366 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3367 am_cv_make_support_nested_variables=yes
3368 else
3369 am_cv_make_support_nested_variables=no
3372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3373 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3374 if test $am_cv_make_support_nested_variables = yes; then
3375 AM_V='$(V)'
3376 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3377 else
3378 AM_V=$AM_DEFAULT_VERBOSITY
3379 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3381 AM_BACKSLASH='\'
3383 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3384 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3385 # is not polluted with repeated "-I."
3386 am__isrc=' -I$(srcdir)'
3387 # test to see if srcdir already configured
3388 if test -f $srcdir/config.status; then
3389 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3393 # test whether we have cygpath
3394 if test -z "$CYGPATH_W"; then
3395 if (cygpath --version) >/dev/null 2>/dev/null; then
3396 CYGPATH_W='cygpath -w'
3397 else
3398 CYGPATH_W=echo
3403 # Define the identity of the package.
3404 PACKAGE='libitm'
3405 VERSION='1.0'
3408 cat >>confdefs.h <<_ACEOF
3409 #define PACKAGE "$PACKAGE"
3410 _ACEOF
3413 cat >>confdefs.h <<_ACEOF
3414 #define VERSION "$VERSION"
3415 _ACEOF
3417 # Some tools Automake needs.
3419 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3422 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3425 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3428 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3431 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3433 # For better backward compatibility. To be removed once Automake 1.9.x
3434 # dies out for good. For more background, see:
3435 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3436 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3437 mkdir_p='$(MKDIR_P)'
3439 # We need awk for the "check" target (and possibly the TAP driver). The
3440 # system "awk" is bad on some platforms.
3441 # Always define AMTAR for backward compatibility. Yes, it's still used
3442 # in the wild :-( We should find a proper way to deprecate it ...
3443 AMTAR='$${TAR-tar}'
3446 # We'll loop over all known methods to create a tar archive until one works.
3447 _am_tools='gnutar pax cpio none'
3449 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3456 # POSIX will say in a future version that running "rm -f" with no argument
3457 # is OK; and we want to be able to make that assumption in our Makefile
3458 # recipes. So use an aggressive probe to check that the usage we want is
3459 # actually supported "in the wild" to an acceptable degree.
3460 # See automake bug#10828.
3461 # To make any issue more visible, cause the running configure to be aborted
3462 # by default if the 'rm' program in use doesn't match our expectations; the
3463 # user can still override this though.
3464 if rm -f && rm -fr && rm -rf; then : OK; else
3465 cat >&2 <<'END'
3466 Oops!
3468 Your 'rm' program seems unable to run without file operands specified
3469 on the command line, even when the '-f' option is present. This is contrary
3470 to the behaviour of most rm programs out there, and not conforming with
3471 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3473 Please tell bug-automake@gnu.org about your system, including the value
3474 of your $PATH and any error possibly output before this message. This
3475 can help us improve future automake versions.
3478 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3479 echo 'Configuration will proceed anyway, since you have set the' >&2
3480 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3481 echo >&2
3482 else
3483 cat >&2 <<'END'
3484 Aborting the configuration process, to ensure you take notice of the issue.
3486 You can download and install GNU coreutils to get an 'rm' implementation
3487 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3489 If you want to complete the configuration process using your problematic
3490 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3491 to "yes", and re-run configure.
3494 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3498 # Default to --enable-multilib
3499 # Check whether --enable-multilib was given.
3500 if test "${enable_multilib+set}" = set; then :
3501 enableval=$enable_multilib; case "$enableval" in
3502 yes) multilib=yes ;;
3503 no) multilib=no ;;
3504 *) as_fn_error $? "bad value $enableval for multilib option" "$LINENO" 5 ;;
3505 esac
3506 else
3507 multilib=yes
3511 # We may get other options which we leave undocumented:
3512 # --with-target-subdir, --with-multisrctop, --with-multisubdir
3513 # See config-ml.in if you want the gory details.
3515 if test "$srcdir" = "."; then
3516 if test "$with_target_subdir" != "."; then
3517 multi_basedir="$srcdir/$with_multisrctop../.."
3518 else
3519 multi_basedir="$srcdir/$with_multisrctop.."
3521 else
3522 multi_basedir="$srcdir/.."
3526 # Even if the default multilib is not a cross compilation,
3527 # it may be that some of the other multilibs are.
3528 if test $cross_compiling = no && test $multilib = yes \
3529 && test "x${with_multisubdir}" != x ; then
3530 cross_compiling=maybe
3533 ac_config_commands="$ac_config_commands default-1"
3537 # Check whether --with-toolexeclibdir was given.
3538 if test "${with_toolexeclibdir+set}" = set; then :
3539 withval=$with_toolexeclibdir; case ${with_toolexeclibdir} in
3543 with_toolexeclibdir=`echo $with_toolexeclibdir | sed 's,/$,,'`
3545 esac
3546 else
3547 with_toolexeclibdir=no
3552 # Calculate toolexeclibdir
3553 # Also toolexecdir, though it's only used in toolexeclibdir
3554 case ${enable_version_specific_runtime_libs} in
3555 yes)
3556 # Need the gcc compiler version to know where to install libraries
3557 # and header files if --enable-version-specific-runtime-libs option
3558 # is selected.
3559 toolexecdir='$(libdir)/gcc/$(target_alias)'
3560 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
3563 if test -n "$with_cross_host" &&
3564 test x"$with_cross_host" != x"no"; then
3565 # Install a library built with a cross compiler in tooldir, not libdir.
3566 toolexecdir='$(exec_prefix)/$(target_alias)'
3567 case ${with_toolexeclibdir} in
3569 toolexeclibdir='$(toolexecdir)/lib'
3572 toolexeclibdir=${with_toolexeclibdir}
3574 esac
3575 else
3576 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
3577 toolexeclibdir='$(libdir)'
3579 multi_os_directory=`$CC -print-multi-os-directory`
3580 case $multi_os_directory in
3581 .) ;; # Avoid trailing /.
3582 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
3583 esac
3585 esac
3589 # Check the compiler.
3590 # The same as in boehm-gc and libstdc++. Have to borrow it from there.
3591 # We must force CC to /not/ be precious variables; otherwise
3592 # the wrong, non-multilib-adjusted value will be used in multilibs.
3593 # As a side effect, we have to subst CFLAGS ourselves.
3597 ac_ext=c
3598 ac_cpp='$CPP $CPPFLAGS'
3599 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3600 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3601 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3602 if test -n "$ac_tool_prefix"; then
3603 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3604 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3606 $as_echo_n "checking for $ac_word... " >&6; }
3607 if ${ac_cv_prog_CC+:} false; then :
3608 $as_echo_n "(cached) " >&6
3609 else
3610 if test -n "$CC"; then
3611 ac_cv_prog_CC="$CC" # Let the user override the test.
3612 else
3613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3614 for as_dir in $PATH
3616 IFS=$as_save_IFS
3617 test -z "$as_dir" && as_dir=.
3618 for ac_exec_ext in '' $ac_executable_extensions; do
3619 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3620 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3621 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3622 break 2
3624 done
3625 done
3626 IFS=$as_save_IFS
3630 CC=$ac_cv_prog_CC
3631 if test -n "$CC"; then
3632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3633 $as_echo "$CC" >&6; }
3634 else
3635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3636 $as_echo "no" >&6; }
3641 if test -z "$ac_cv_prog_CC"; then
3642 ac_ct_CC=$CC
3643 # Extract the first word of "gcc", so it can be a program name with args.
3644 set dummy gcc; ac_word=$2
3645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3646 $as_echo_n "checking for $ac_word... " >&6; }
3647 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3648 $as_echo_n "(cached) " >&6
3649 else
3650 if test -n "$ac_ct_CC"; then
3651 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3652 else
3653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3654 for as_dir in $PATH
3656 IFS=$as_save_IFS
3657 test -z "$as_dir" && as_dir=.
3658 for ac_exec_ext in '' $ac_executable_extensions; do
3659 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3660 ac_cv_prog_ac_ct_CC="gcc"
3661 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3662 break 2
3664 done
3665 done
3666 IFS=$as_save_IFS
3670 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3671 if test -n "$ac_ct_CC"; then
3672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3673 $as_echo "$ac_ct_CC" >&6; }
3674 else
3675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3676 $as_echo "no" >&6; }
3679 if test "x$ac_ct_CC" = x; then
3680 CC=""
3681 else
3682 case $cross_compiling:$ac_tool_warned in
3683 yes:)
3684 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3685 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3686 ac_tool_warned=yes ;;
3687 esac
3688 CC=$ac_ct_CC
3690 else
3691 CC="$ac_cv_prog_CC"
3694 if test -z "$CC"; then
3695 if test -n "$ac_tool_prefix"; then
3696 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3697 set dummy ${ac_tool_prefix}cc; ac_word=$2
3698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3699 $as_echo_n "checking for $ac_word... " >&6; }
3700 if ${ac_cv_prog_CC+:} false; then :
3701 $as_echo_n "(cached) " >&6
3702 else
3703 if test -n "$CC"; then
3704 ac_cv_prog_CC="$CC" # Let the user override the test.
3705 else
3706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3707 for as_dir in $PATH
3709 IFS=$as_save_IFS
3710 test -z "$as_dir" && as_dir=.
3711 for ac_exec_ext in '' $ac_executable_extensions; do
3712 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3713 ac_cv_prog_CC="${ac_tool_prefix}cc"
3714 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3715 break 2
3717 done
3718 done
3719 IFS=$as_save_IFS
3723 CC=$ac_cv_prog_CC
3724 if test -n "$CC"; then
3725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3726 $as_echo "$CC" >&6; }
3727 else
3728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3729 $as_echo "no" >&6; }
3735 if test -z "$CC"; then
3736 # Extract the first word of "cc", so it can be a program name with args.
3737 set dummy cc; ac_word=$2
3738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3739 $as_echo_n "checking for $ac_word... " >&6; }
3740 if ${ac_cv_prog_CC+:} false; then :
3741 $as_echo_n "(cached) " >&6
3742 else
3743 if test -n "$CC"; then
3744 ac_cv_prog_CC="$CC" # Let the user override the test.
3745 else
3746 ac_prog_rejected=no
3747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3748 for as_dir in $PATH
3750 IFS=$as_save_IFS
3751 test -z "$as_dir" && as_dir=.
3752 for ac_exec_ext in '' $ac_executable_extensions; do
3753 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3754 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3755 ac_prog_rejected=yes
3756 continue
3758 ac_cv_prog_CC="cc"
3759 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3760 break 2
3762 done
3763 done
3764 IFS=$as_save_IFS
3766 if test $ac_prog_rejected = yes; then
3767 # We found a bogon in the path, so make sure we never use it.
3768 set dummy $ac_cv_prog_CC
3769 shift
3770 if test $# != 0; then
3771 # We chose a different compiler from the bogus one.
3772 # However, it has the same basename, so the bogon will be chosen
3773 # first if we set CC to just the basename; use the full file name.
3774 shift
3775 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3780 CC=$ac_cv_prog_CC
3781 if test -n "$CC"; then
3782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3783 $as_echo "$CC" >&6; }
3784 else
3785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3786 $as_echo "no" >&6; }
3791 if test -z "$CC"; then
3792 if test -n "$ac_tool_prefix"; then
3793 for ac_prog in cl.exe
3795 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3796 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3798 $as_echo_n "checking for $ac_word... " >&6; }
3799 if ${ac_cv_prog_CC+:} false; then :
3800 $as_echo_n "(cached) " >&6
3801 else
3802 if test -n "$CC"; then
3803 ac_cv_prog_CC="$CC" # Let the user override the test.
3804 else
3805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3806 for as_dir in $PATH
3808 IFS=$as_save_IFS
3809 test -z "$as_dir" && as_dir=.
3810 for ac_exec_ext in '' $ac_executable_extensions; do
3811 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3812 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3813 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3814 break 2
3816 done
3817 done
3818 IFS=$as_save_IFS
3822 CC=$ac_cv_prog_CC
3823 if test -n "$CC"; then
3824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3825 $as_echo "$CC" >&6; }
3826 else
3827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3828 $as_echo "no" >&6; }
3832 test -n "$CC" && break
3833 done
3835 if test -z "$CC"; then
3836 ac_ct_CC=$CC
3837 for ac_prog in cl.exe
3839 # Extract the first word of "$ac_prog", so it can be a program name with args.
3840 set dummy $ac_prog; ac_word=$2
3841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3842 $as_echo_n "checking for $ac_word... " >&6; }
3843 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3844 $as_echo_n "(cached) " >&6
3845 else
3846 if test -n "$ac_ct_CC"; then
3847 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3848 else
3849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3850 for as_dir in $PATH
3852 IFS=$as_save_IFS
3853 test -z "$as_dir" && as_dir=.
3854 for ac_exec_ext in '' $ac_executable_extensions; do
3855 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3856 ac_cv_prog_ac_ct_CC="$ac_prog"
3857 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3858 break 2
3860 done
3861 done
3862 IFS=$as_save_IFS
3866 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3867 if test -n "$ac_ct_CC"; then
3868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3869 $as_echo "$ac_ct_CC" >&6; }
3870 else
3871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3872 $as_echo "no" >&6; }
3876 test -n "$ac_ct_CC" && break
3877 done
3879 if test "x$ac_ct_CC" = x; then
3880 CC=""
3881 else
3882 case $cross_compiling:$ac_tool_warned in
3883 yes:)
3884 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3885 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3886 ac_tool_warned=yes ;;
3887 esac
3888 CC=$ac_ct_CC
3895 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3896 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3897 as_fn_error $? "no acceptable C compiler found in \$PATH
3898 See \`config.log' for more details" "$LINENO" 5; }
3900 # Provide some information about the compiler.
3901 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3902 set X $ac_compile
3903 ac_compiler=$2
3904 for ac_option in --version -v -V -qversion; do
3905 { { ac_try="$ac_compiler $ac_option >&5"
3906 case "(($ac_try" in
3907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3908 *) ac_try_echo=$ac_try;;
3909 esac
3910 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3911 $as_echo "$ac_try_echo"; } >&5
3912 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3913 ac_status=$?
3914 if test -s conftest.err; then
3915 sed '10a\
3916 ... rest of stderr output deleted ...
3917 10q' conftest.err >conftest.er1
3918 cat conftest.er1 >&5
3920 rm -f conftest.er1 conftest.err
3921 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3922 test $ac_status = 0; }
3923 done
3925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3926 /* end confdefs.h. */
3929 main ()
3933 return 0;
3935 _ACEOF
3936 ac_clean_files_save=$ac_clean_files
3937 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3938 # Try to create an executable without -o first, disregard a.out.
3939 # It will help us diagnose broken compilers, and finding out an intuition
3940 # of exeext.
3941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3942 $as_echo_n "checking whether the C compiler works... " >&6; }
3943 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3945 # The possible output files:
3946 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3948 ac_rmfiles=
3949 for ac_file in $ac_files
3951 case $ac_file in
3952 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3953 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3954 esac
3955 done
3956 rm -f $ac_rmfiles
3958 if { { ac_try="$ac_link_default"
3959 case "(($ac_try" in
3960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3961 *) ac_try_echo=$ac_try;;
3962 esac
3963 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3964 $as_echo "$ac_try_echo"; } >&5
3965 (eval "$ac_link_default") 2>&5
3966 ac_status=$?
3967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3968 test $ac_status = 0; }; then :
3969 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3970 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3971 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3972 # so that the user can short-circuit this test for compilers unknown to
3973 # Autoconf.
3974 for ac_file in $ac_files ''
3976 test -f "$ac_file" || continue
3977 case $ac_file in
3978 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3980 [ab].out )
3981 # We found the default executable, but exeext='' is most
3982 # certainly right.
3983 break;;
3984 *.* )
3985 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3986 then :; else
3987 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3989 # We set ac_cv_exeext here because the later test for it is not
3990 # safe: cross compilers may not add the suffix if given an `-o'
3991 # argument, so we may need to know it at that point already.
3992 # Even if this section looks crufty: it has the advantage of
3993 # actually working.
3994 break;;
3996 break;;
3997 esac
3998 done
3999 test "$ac_cv_exeext" = no && ac_cv_exeext=
4001 else
4002 ac_file=''
4004 if test -z "$ac_file"; then :
4005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4006 $as_echo "no" >&6; }
4007 $as_echo "$as_me: failed program was:" >&5
4008 sed 's/^/| /' conftest.$ac_ext >&5
4010 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4011 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4012 as_fn_error 77 "C compiler cannot create executables
4013 See \`config.log' for more details" "$LINENO" 5; }
4014 else
4015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4016 $as_echo "yes" >&6; }
4018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4019 $as_echo_n "checking for C compiler default output file name... " >&6; }
4020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4021 $as_echo "$ac_file" >&6; }
4022 ac_exeext=$ac_cv_exeext
4024 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4025 ac_clean_files=$ac_clean_files_save
4026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4027 $as_echo_n "checking for suffix of executables... " >&6; }
4028 if { { ac_try="$ac_link"
4029 case "(($ac_try" in
4030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4031 *) ac_try_echo=$ac_try;;
4032 esac
4033 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4034 $as_echo "$ac_try_echo"; } >&5
4035 (eval "$ac_link") 2>&5
4036 ac_status=$?
4037 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4038 test $ac_status = 0; }; then :
4039 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4040 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4041 # work properly (i.e., refer to `conftest.exe'), while it won't with
4042 # `rm'.
4043 for ac_file in conftest.exe conftest conftest.*; do
4044 test -f "$ac_file" || continue
4045 case $ac_file in
4046 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4047 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4048 break;;
4049 * ) break;;
4050 esac
4051 done
4052 else
4053 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4054 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4055 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4056 See \`config.log' for more details" "$LINENO" 5; }
4058 rm -f conftest conftest$ac_cv_exeext
4059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4060 $as_echo "$ac_cv_exeext" >&6; }
4062 rm -f conftest.$ac_ext
4063 EXEEXT=$ac_cv_exeext
4064 ac_exeext=$EXEEXT
4065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4066 /* end confdefs.h. */
4067 #include <stdio.h>
4069 main ()
4071 FILE *f = fopen ("conftest.out", "w");
4072 return ferror (f) || fclose (f) != 0;
4075 return 0;
4077 _ACEOF
4078 ac_clean_files="$ac_clean_files conftest.out"
4079 # Check that the compiler produces executables we can run. If not, either
4080 # the compiler is broken, or we cross compile.
4081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4082 $as_echo_n "checking whether we are cross compiling... " >&6; }
4083 if test "$cross_compiling" != yes; then
4084 { { ac_try="$ac_link"
4085 case "(($ac_try" in
4086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4087 *) ac_try_echo=$ac_try;;
4088 esac
4089 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4090 $as_echo "$ac_try_echo"; } >&5
4091 (eval "$ac_link") 2>&5
4092 ac_status=$?
4093 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4094 test $ac_status = 0; }
4095 if { ac_try='./conftest$ac_cv_exeext'
4096 { { case "(($ac_try" in
4097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4098 *) ac_try_echo=$ac_try;;
4099 esac
4100 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4101 $as_echo "$ac_try_echo"; } >&5
4102 (eval "$ac_try") 2>&5
4103 ac_status=$?
4104 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4105 test $ac_status = 0; }; }; then
4106 cross_compiling=no
4107 else
4108 if test "$cross_compiling" = maybe; then
4109 cross_compiling=yes
4110 else
4111 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4112 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4113 as_fn_error $? "cannot run C compiled programs.
4114 If you meant to cross compile, use \`--host'.
4115 See \`config.log' for more details" "$LINENO" 5; }
4119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4120 $as_echo "$cross_compiling" >&6; }
4122 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4123 ac_clean_files=$ac_clean_files_save
4124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4125 $as_echo_n "checking for suffix of object files... " >&6; }
4126 if ${ac_cv_objext+:} false; then :
4127 $as_echo_n "(cached) " >&6
4128 else
4129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4130 /* end confdefs.h. */
4133 main ()
4137 return 0;
4139 _ACEOF
4140 rm -f conftest.o conftest.obj
4141 if { { ac_try="$ac_compile"
4142 case "(($ac_try" in
4143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4144 *) ac_try_echo=$ac_try;;
4145 esac
4146 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4147 $as_echo "$ac_try_echo"; } >&5
4148 (eval "$ac_compile") 2>&5
4149 ac_status=$?
4150 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4151 test $ac_status = 0; }; then :
4152 for ac_file in conftest.o conftest.obj conftest.*; do
4153 test -f "$ac_file" || continue;
4154 case $ac_file in
4155 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4156 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4157 break;;
4158 esac
4159 done
4160 else
4161 $as_echo "$as_me: failed program was:" >&5
4162 sed 's/^/| /' conftest.$ac_ext >&5
4164 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4165 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4166 as_fn_error $? "cannot compute suffix of object files: cannot compile
4167 See \`config.log' for more details" "$LINENO" 5; }
4169 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4172 $as_echo "$ac_cv_objext" >&6; }
4173 OBJEXT=$ac_cv_objext
4174 ac_objext=$OBJEXT
4175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4176 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4177 if ${ac_cv_c_compiler_gnu+:} false; then :
4178 $as_echo_n "(cached) " >&6
4179 else
4180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4181 /* end confdefs.h. */
4184 main ()
4186 #ifndef __GNUC__
4187 choke me
4188 #endif
4191 return 0;
4193 _ACEOF
4194 if ac_fn_c_try_compile "$LINENO"; then :
4195 ac_compiler_gnu=yes
4196 else
4197 ac_compiler_gnu=no
4199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4200 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4204 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4205 if test $ac_compiler_gnu = yes; then
4206 GCC=yes
4207 else
4208 GCC=
4210 ac_test_CFLAGS=${CFLAGS+set}
4211 ac_save_CFLAGS=$CFLAGS
4212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4213 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4214 if ${ac_cv_prog_cc_g+:} false; then :
4215 $as_echo_n "(cached) " >&6
4216 else
4217 ac_save_c_werror_flag=$ac_c_werror_flag
4218 ac_c_werror_flag=yes
4219 ac_cv_prog_cc_g=no
4220 CFLAGS="-g"
4221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4222 /* end confdefs.h. */
4225 main ()
4229 return 0;
4231 _ACEOF
4232 if ac_fn_c_try_compile "$LINENO"; then :
4233 ac_cv_prog_cc_g=yes
4234 else
4235 CFLAGS=""
4236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4237 /* end confdefs.h. */
4240 main ()
4244 return 0;
4246 _ACEOF
4247 if ac_fn_c_try_compile "$LINENO"; then :
4249 else
4250 ac_c_werror_flag=$ac_save_c_werror_flag
4251 CFLAGS="-g"
4252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4253 /* end confdefs.h. */
4256 main ()
4260 return 0;
4262 _ACEOF
4263 if ac_fn_c_try_compile "$LINENO"; then :
4264 ac_cv_prog_cc_g=yes
4266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4271 ac_c_werror_flag=$ac_save_c_werror_flag
4273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4274 $as_echo "$ac_cv_prog_cc_g" >&6; }
4275 if test "$ac_test_CFLAGS" = set; then
4276 CFLAGS=$ac_save_CFLAGS
4277 elif test $ac_cv_prog_cc_g = yes; then
4278 if test "$GCC" = yes; then
4279 CFLAGS="-g -O2"
4280 else
4281 CFLAGS="-g"
4283 else
4284 if test "$GCC" = yes; then
4285 CFLAGS="-O2"
4286 else
4287 CFLAGS=
4290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4291 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4292 if ${ac_cv_prog_cc_c89+:} false; then :
4293 $as_echo_n "(cached) " >&6
4294 else
4295 ac_cv_prog_cc_c89=no
4296 ac_save_CC=$CC
4297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4298 /* end confdefs.h. */
4299 #include <stdarg.h>
4300 #include <stdio.h>
4301 struct stat;
4302 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4303 struct buf { int x; };
4304 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4305 static char *e (p, i)
4306 char **p;
4307 int i;
4309 return p[i];
4311 static char *f (char * (*g) (char **, int), char **p, ...)
4313 char *s;
4314 va_list v;
4315 va_start (v,p);
4316 s = g (p, va_arg (v,int));
4317 va_end (v);
4318 return s;
4321 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4322 function prototypes and stuff, but not '\xHH' hex character constants.
4323 These don't provoke an error unfortunately, instead are silently treated
4324 as 'x'. The following induces an error, until -std is added to get
4325 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4326 array size at least. It's necessary to write '\x00'==0 to get something
4327 that's true only with -std. */
4328 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4330 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4331 inside strings and character constants. */
4332 #define FOO(x) 'x'
4333 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4335 int test (int i, double x);
4336 struct s1 {int (*f) (int a);};
4337 struct s2 {int (*f) (double a);};
4338 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4339 int argc;
4340 char **argv;
4342 main ()
4344 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4346 return 0;
4348 _ACEOF
4349 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4350 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4352 CC="$ac_save_CC $ac_arg"
4353 if ac_fn_c_try_compile "$LINENO"; then :
4354 ac_cv_prog_cc_c89=$ac_arg
4356 rm -f core conftest.err conftest.$ac_objext
4357 test "x$ac_cv_prog_cc_c89" != "xno" && break
4358 done
4359 rm -f conftest.$ac_ext
4360 CC=$ac_save_CC
4363 # AC_CACHE_VAL
4364 case "x$ac_cv_prog_cc_c89" in
4366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4367 $as_echo "none needed" >&6; } ;;
4368 xno)
4369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4370 $as_echo "unsupported" >&6; } ;;
4372 CC="$CC $ac_cv_prog_cc_c89"
4373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4374 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4375 esac
4376 if test "x$ac_cv_prog_cc_c89" != xno; then :
4380 ac_ext=c
4381 ac_cpp='$CPP $CPPFLAGS'
4382 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4383 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4384 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4386 ac_ext=c
4387 ac_cpp='$CPP $CPPFLAGS'
4388 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4389 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4390 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4392 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4393 if ${am_cv_prog_cc_c_o+:} false; then :
4394 $as_echo_n "(cached) " >&6
4395 else
4396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4397 /* end confdefs.h. */
4400 main ()
4404 return 0;
4406 _ACEOF
4407 # Make sure it works both with $CC and with simple cc.
4408 # Following AC_PROG_CC_C_O, we do the test twice because some
4409 # compilers refuse to overwrite an existing .o file with -o,
4410 # though they will create one.
4411 am_cv_prog_cc_c_o=yes
4412 for am_i in 1 2; do
4413 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4414 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4415 ac_status=$?
4416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4417 (exit $ac_status); } \
4418 && test -f conftest2.$ac_objext; then
4419 : OK
4420 else
4421 am_cv_prog_cc_c_o=no
4422 break
4424 done
4425 rm -f core conftest*
4426 unset am_i
4428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4429 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4430 if test "$am_cv_prog_cc_c_o" != yes; then
4431 # Losing compiler, so override with the script.
4432 # FIXME: It is wrong to rewrite CC.
4433 # But if we don't then we get into trouble of one sort or another.
4434 # A longer-term fix would be to have automake use am__CC in this case,
4435 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4436 CC="$am_aux_dir/compile $CC"
4438 ac_ext=c
4439 ac_cpp='$CPP $CPPFLAGS'
4440 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4441 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4442 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4444 DEPDIR="${am__leading_dot}deps"
4446 ac_config_commands="$ac_config_commands depfiles"
4449 am_make=${MAKE-make}
4450 cat > confinc << 'END'
4451 am__doit:
4452 @echo this is the am__doit target
4453 .PHONY: am__doit
4455 # If we don't find an include directive, just comment out the code.
4456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4457 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4458 am__include="#"
4459 am__quote=
4460 _am_result=none
4461 # First try GNU make style include.
4462 echo "include confinc" > confmf
4463 # Ignore all kinds of additional output from 'make'.
4464 case `$am_make -s -f confmf 2> /dev/null` in #(
4465 *the\ am__doit\ target*)
4466 am__include=include
4467 am__quote=
4468 _am_result=GNU
4470 esac
4471 # Now try BSD make style include.
4472 if test "$am__include" = "#"; then
4473 echo '.include "confinc"' > confmf
4474 case `$am_make -s -f confmf 2> /dev/null` in #(
4475 *the\ am__doit\ target*)
4476 am__include=.include
4477 am__quote="\""
4478 _am_result=BSD
4480 esac
4484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4485 $as_echo "$_am_result" >&6; }
4486 rm -f confinc confmf
4488 # Check whether --enable-dependency-tracking was given.
4489 if test "${enable_dependency_tracking+set}" = set; then :
4490 enableval=$enable_dependency_tracking;
4493 if test "x$enable_dependency_tracking" != xno; then
4494 am_depcomp="$ac_aux_dir/depcomp"
4495 AMDEPBACKSLASH='\'
4496 am__nodep='_no'
4498 if test "x$enable_dependency_tracking" != xno; then
4499 AMDEP_TRUE=
4500 AMDEP_FALSE='#'
4501 else
4502 AMDEP_TRUE='#'
4503 AMDEP_FALSE=
4508 depcc="$CC" am_compiler_list=
4510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4511 $as_echo_n "checking dependency style of $depcc... " >&6; }
4512 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4513 $as_echo_n "(cached) " >&6
4514 else
4515 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4516 # We make a subdir and do the tests there. Otherwise we can end up
4517 # making bogus files that we don't know about and never remove. For
4518 # instance it was reported that on HP-UX the gcc test will end up
4519 # making a dummy file named 'D' -- because '-MD' means "put the output
4520 # in D".
4521 rm -rf conftest.dir
4522 mkdir conftest.dir
4523 # Copy depcomp to subdir because otherwise we won't find it if we're
4524 # using a relative directory.
4525 cp "$am_depcomp" conftest.dir
4526 cd conftest.dir
4527 # We will build objects and dependencies in a subdirectory because
4528 # it helps to detect inapplicable dependency modes. For instance
4529 # both Tru64's cc and ICC support -MD to output dependencies as a
4530 # side effect of compilation, but ICC will put the dependencies in
4531 # the current directory while Tru64 will put them in the object
4532 # directory.
4533 mkdir sub
4535 am_cv_CC_dependencies_compiler_type=none
4536 if test "$am_compiler_list" = ""; then
4537 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4539 am__universal=false
4540 case " $depcc " in #(
4541 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4542 esac
4544 for depmode in $am_compiler_list; do
4545 # Setup a source with many dependencies, because some compilers
4546 # like to wrap large dependency lists on column 80 (with \), and
4547 # we should not choose a depcomp mode which is confused by this.
4549 # We need to recreate these files for each test, as the compiler may
4550 # overwrite some of them when testing with obscure command lines.
4551 # This happens at least with the AIX C compiler.
4552 : > sub/conftest.c
4553 for i in 1 2 3 4 5 6; do
4554 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4555 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4556 # Solaris 10 /bin/sh.
4557 echo '/* dummy */' > sub/conftst$i.h
4558 done
4559 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4561 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4562 # mode. It turns out that the SunPro C++ compiler does not properly
4563 # handle '-M -o', and we need to detect this. Also, some Intel
4564 # versions had trouble with output in subdirs.
4565 am__obj=sub/conftest.${OBJEXT-o}
4566 am__minus_obj="-o $am__obj"
4567 case $depmode in
4568 gcc)
4569 # This depmode causes a compiler race in universal mode.
4570 test "$am__universal" = false || continue
4572 nosideeffect)
4573 # After this tag, mechanisms are not by side-effect, so they'll
4574 # only be used when explicitly requested.
4575 if test "x$enable_dependency_tracking" = xyes; then
4576 continue
4577 else
4578 break
4581 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4582 # This compiler won't grok '-c -o', but also, the minuso test has
4583 # not run yet. These depmodes are late enough in the game, and
4584 # so weak that their functioning should not be impacted.
4585 am__obj=conftest.${OBJEXT-o}
4586 am__minus_obj=
4588 none) break ;;
4589 esac
4590 if depmode=$depmode \
4591 source=sub/conftest.c object=$am__obj \
4592 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4593 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4594 >/dev/null 2>conftest.err &&
4595 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4596 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4597 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4598 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4599 # icc doesn't choke on unknown options, it will just issue warnings
4600 # or remarks (even with -Werror). So we grep stderr for any message
4601 # that says an option was ignored or not supported.
4602 # When given -MP, icc 7.0 and 7.1 complain thusly:
4603 # icc: Command line warning: ignoring option '-M'; no argument required
4604 # The diagnosis changed in icc 8.0:
4605 # icc: Command line remark: option '-MP' not supported
4606 if (grep 'ignoring option' conftest.err ||
4607 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4608 am_cv_CC_dependencies_compiler_type=$depmode
4609 break
4612 done
4614 cd ..
4615 rm -rf conftest.dir
4616 else
4617 am_cv_CC_dependencies_compiler_type=none
4621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4622 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4623 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4626 test "x$enable_dependency_tracking" != xno \
4627 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4628 am__fastdepCC_TRUE=
4629 am__fastdepCC_FALSE='#'
4630 else
4631 am__fastdepCC_TRUE='#'
4632 am__fastdepCC_FALSE=
4636 ac_ext=cpp
4637 ac_cpp='$CXXCPP $CPPFLAGS'
4638 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4639 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4640 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4641 if test -z "$CXX"; then
4642 if test -n "$CCC"; then
4643 CXX=$CCC
4644 else
4645 if test -n "$ac_tool_prefix"; then
4646 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4648 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4649 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4651 $as_echo_n "checking for $ac_word... " >&6; }
4652 if ${ac_cv_prog_CXX+:} false; then :
4653 $as_echo_n "(cached) " >&6
4654 else
4655 if test -n "$CXX"; then
4656 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4657 else
4658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4659 for as_dir in $PATH
4661 IFS=$as_save_IFS
4662 test -z "$as_dir" && as_dir=.
4663 for ac_exec_ext in '' $ac_executable_extensions; do
4664 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4665 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4666 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4667 break 2
4669 done
4670 done
4671 IFS=$as_save_IFS
4675 CXX=$ac_cv_prog_CXX
4676 if test -n "$CXX"; then
4677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4678 $as_echo "$CXX" >&6; }
4679 else
4680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4681 $as_echo "no" >&6; }
4685 test -n "$CXX" && break
4686 done
4688 if test -z "$CXX"; then
4689 ac_ct_CXX=$CXX
4690 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4692 # Extract the first word of "$ac_prog", so it can be a program name with args.
4693 set dummy $ac_prog; ac_word=$2
4694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4695 $as_echo_n "checking for $ac_word... " >&6; }
4696 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4697 $as_echo_n "(cached) " >&6
4698 else
4699 if test -n "$ac_ct_CXX"; then
4700 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4701 else
4702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4703 for as_dir in $PATH
4705 IFS=$as_save_IFS
4706 test -z "$as_dir" && as_dir=.
4707 for ac_exec_ext in '' $ac_executable_extensions; do
4708 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4709 ac_cv_prog_ac_ct_CXX="$ac_prog"
4710 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4711 break 2
4713 done
4714 done
4715 IFS=$as_save_IFS
4719 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4720 if test -n "$ac_ct_CXX"; then
4721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4722 $as_echo "$ac_ct_CXX" >&6; }
4723 else
4724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4725 $as_echo "no" >&6; }
4729 test -n "$ac_ct_CXX" && break
4730 done
4732 if test "x$ac_ct_CXX" = x; then
4733 CXX="g++"
4734 else
4735 case $cross_compiling:$ac_tool_warned in
4736 yes:)
4737 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4738 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4739 ac_tool_warned=yes ;;
4740 esac
4741 CXX=$ac_ct_CXX
4747 # Provide some information about the compiler.
4748 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4749 set X $ac_compile
4750 ac_compiler=$2
4751 for ac_option in --version -v -V -qversion; do
4752 { { ac_try="$ac_compiler $ac_option >&5"
4753 case "(($ac_try" in
4754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4755 *) ac_try_echo=$ac_try;;
4756 esac
4757 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4758 $as_echo "$ac_try_echo"; } >&5
4759 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4760 ac_status=$?
4761 if test -s conftest.err; then
4762 sed '10a\
4763 ... rest of stderr output deleted ...
4764 10q' conftest.err >conftest.er1
4765 cat conftest.er1 >&5
4767 rm -f conftest.er1 conftest.err
4768 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4769 test $ac_status = 0; }
4770 done
4772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4773 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4774 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4775 $as_echo_n "(cached) " >&6
4776 else
4777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4778 /* end confdefs.h. */
4781 main ()
4783 #ifndef __GNUC__
4784 choke me
4785 #endif
4788 return 0;
4790 _ACEOF
4791 if ac_fn_cxx_try_compile "$LINENO"; then :
4792 ac_compiler_gnu=yes
4793 else
4794 ac_compiler_gnu=no
4796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4797 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4801 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4802 if test $ac_compiler_gnu = yes; then
4803 GXX=yes
4804 else
4805 GXX=
4807 ac_test_CXXFLAGS=${CXXFLAGS+set}
4808 ac_save_CXXFLAGS=$CXXFLAGS
4809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4810 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4811 if ${ac_cv_prog_cxx_g+:} false; then :
4812 $as_echo_n "(cached) " >&6
4813 else
4814 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4815 ac_cxx_werror_flag=yes
4816 ac_cv_prog_cxx_g=no
4817 CXXFLAGS="-g"
4818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4819 /* end confdefs.h. */
4822 main ()
4826 return 0;
4828 _ACEOF
4829 if ac_fn_cxx_try_compile "$LINENO"; then :
4830 ac_cv_prog_cxx_g=yes
4831 else
4832 CXXFLAGS=""
4833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4834 /* end confdefs.h. */
4837 main ()
4841 return 0;
4843 _ACEOF
4844 if ac_fn_cxx_try_compile "$LINENO"; then :
4846 else
4847 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4848 CXXFLAGS="-g"
4849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4850 /* end confdefs.h. */
4853 main ()
4857 return 0;
4859 _ACEOF
4860 if ac_fn_cxx_try_compile "$LINENO"; then :
4861 ac_cv_prog_cxx_g=yes
4863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4868 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4871 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4872 if test "$ac_test_CXXFLAGS" = set; then
4873 CXXFLAGS=$ac_save_CXXFLAGS
4874 elif test $ac_cv_prog_cxx_g = yes; then
4875 if test "$GXX" = yes; then
4876 CXXFLAGS="-g -O2"
4877 else
4878 CXXFLAGS="-g"
4880 else
4881 if test "$GXX" = yes; then
4882 CXXFLAGS="-O2"
4883 else
4884 CXXFLAGS=
4887 ac_ext=c
4888 ac_cpp='$CPP $CPPFLAGS'
4889 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4890 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4891 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4893 depcc="$CXX" am_compiler_list=
4895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4896 $as_echo_n "checking dependency style of $depcc... " >&6; }
4897 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
4898 $as_echo_n "(cached) " >&6
4899 else
4900 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4901 # We make a subdir and do the tests there. Otherwise we can end up
4902 # making bogus files that we don't know about and never remove. For
4903 # instance it was reported that on HP-UX the gcc test will end up
4904 # making a dummy file named 'D' -- because '-MD' means "put the output
4905 # in D".
4906 rm -rf conftest.dir
4907 mkdir conftest.dir
4908 # Copy depcomp to subdir because otherwise we won't find it if we're
4909 # using a relative directory.
4910 cp "$am_depcomp" conftest.dir
4911 cd conftest.dir
4912 # We will build objects and dependencies in a subdirectory because
4913 # it helps to detect inapplicable dependency modes. For instance
4914 # both Tru64's cc and ICC support -MD to output dependencies as a
4915 # side effect of compilation, but ICC will put the dependencies in
4916 # the current directory while Tru64 will put them in the object
4917 # directory.
4918 mkdir sub
4920 am_cv_CXX_dependencies_compiler_type=none
4921 if test "$am_compiler_list" = ""; then
4922 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4924 am__universal=false
4925 case " $depcc " in #(
4926 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4927 esac
4929 for depmode in $am_compiler_list; do
4930 # Setup a source with many dependencies, because some compilers
4931 # like to wrap large dependency lists on column 80 (with \), and
4932 # we should not choose a depcomp mode which is confused by this.
4934 # We need to recreate these files for each test, as the compiler may
4935 # overwrite some of them when testing with obscure command lines.
4936 # This happens at least with the AIX C compiler.
4937 : > sub/conftest.c
4938 for i in 1 2 3 4 5 6; do
4939 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4940 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4941 # Solaris 10 /bin/sh.
4942 echo '/* dummy */' > sub/conftst$i.h
4943 done
4944 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4946 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4947 # mode. It turns out that the SunPro C++ compiler does not properly
4948 # handle '-M -o', and we need to detect this. Also, some Intel
4949 # versions had trouble with output in subdirs.
4950 am__obj=sub/conftest.${OBJEXT-o}
4951 am__minus_obj="-o $am__obj"
4952 case $depmode in
4953 gcc)
4954 # This depmode causes a compiler race in universal mode.
4955 test "$am__universal" = false || continue
4957 nosideeffect)
4958 # After this tag, mechanisms are not by side-effect, so they'll
4959 # only be used when explicitly requested.
4960 if test "x$enable_dependency_tracking" = xyes; then
4961 continue
4962 else
4963 break
4966 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4967 # This compiler won't grok '-c -o', but also, the minuso test has
4968 # not run yet. These depmodes are late enough in the game, and
4969 # so weak that their functioning should not be impacted.
4970 am__obj=conftest.${OBJEXT-o}
4971 am__minus_obj=
4973 none) break ;;
4974 esac
4975 if depmode=$depmode \
4976 source=sub/conftest.c object=$am__obj \
4977 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4978 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4979 >/dev/null 2>conftest.err &&
4980 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4981 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4982 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4983 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4984 # icc doesn't choke on unknown options, it will just issue warnings
4985 # or remarks (even with -Werror). So we grep stderr for any message
4986 # that says an option was ignored or not supported.
4987 # When given -MP, icc 7.0 and 7.1 complain thusly:
4988 # icc: Command line warning: ignoring option '-M'; no argument required
4989 # The diagnosis changed in icc 8.0:
4990 # icc: Command line remark: option '-MP' not supported
4991 if (grep 'ignoring option' conftest.err ||
4992 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4993 am_cv_CXX_dependencies_compiler_type=$depmode
4994 break
4997 done
4999 cd ..
5000 rm -rf conftest.dir
5001 else
5002 am_cv_CXX_dependencies_compiler_type=none
5006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
5007 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5008 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5011 test "x$enable_dependency_tracking" != xno \
5012 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5013 am__fastdepCXX_TRUE=
5014 am__fastdepCXX_FALSE='#'
5015 else
5016 am__fastdepCXX_TRUE='#'
5017 am__fastdepCXX_FALSE=
5021 # By default we simply use the C compiler to build assembly code.
5023 test "${CCAS+set}" = set || CCAS=$CC
5024 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
5028 depcc="$CCAS" am_compiler_list=
5030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5031 $as_echo_n "checking dependency style of $depcc... " >&6; }
5032 if ${am_cv_CCAS_dependencies_compiler_type+:} false; then :
5033 $as_echo_n "(cached) " >&6
5034 else
5035 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5036 # We make a subdir and do the tests there. Otherwise we can end up
5037 # making bogus files that we don't know about and never remove. For
5038 # instance it was reported that on HP-UX the gcc test will end up
5039 # making a dummy file named 'D' -- because '-MD' means "put the output
5040 # in D".
5041 rm -rf conftest.dir
5042 mkdir conftest.dir
5043 # Copy depcomp to subdir because otherwise we won't find it if we're
5044 # using a relative directory.
5045 cp "$am_depcomp" conftest.dir
5046 cd conftest.dir
5047 # We will build objects and dependencies in a subdirectory because
5048 # it helps to detect inapplicable dependency modes. For instance
5049 # both Tru64's cc and ICC support -MD to output dependencies as a
5050 # side effect of compilation, but ICC will put the dependencies in
5051 # the current directory while Tru64 will put them in the object
5052 # directory.
5053 mkdir sub
5055 am_cv_CCAS_dependencies_compiler_type=none
5056 if test "$am_compiler_list" = ""; then
5057 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5059 am__universal=false
5062 for depmode in $am_compiler_list; do
5063 # Setup a source with many dependencies, because some compilers
5064 # like to wrap large dependency lists on column 80 (with \), and
5065 # we should not choose a depcomp mode which is confused by this.
5067 # We need to recreate these files for each test, as the compiler may
5068 # overwrite some of them when testing with obscure command lines.
5069 # This happens at least with the AIX C compiler.
5070 : > sub/conftest.c
5071 for i in 1 2 3 4 5 6; do
5072 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5073 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5074 # Solaris 10 /bin/sh.
5075 echo '/* dummy */' > sub/conftst$i.h
5076 done
5077 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5079 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5080 # mode. It turns out that the SunPro C++ compiler does not properly
5081 # handle '-M -o', and we need to detect this. Also, some Intel
5082 # versions had trouble with output in subdirs.
5083 am__obj=sub/conftest.${OBJEXT-o}
5084 am__minus_obj="-o $am__obj"
5085 case $depmode in
5086 gcc)
5087 # This depmode causes a compiler race in universal mode.
5088 test "$am__universal" = false || continue
5090 nosideeffect)
5091 # After this tag, mechanisms are not by side-effect, so they'll
5092 # only be used when explicitly requested.
5093 if test "x$enable_dependency_tracking" = xyes; then
5094 continue
5095 else
5096 break
5099 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5100 # This compiler won't grok '-c -o', but also, the minuso test has
5101 # not run yet. These depmodes are late enough in the game, and
5102 # so weak that their functioning should not be impacted.
5103 am__obj=conftest.${OBJEXT-o}
5104 am__minus_obj=
5106 none) break ;;
5107 esac
5108 if depmode=$depmode \
5109 source=sub/conftest.c object=$am__obj \
5110 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5111 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5112 >/dev/null 2>conftest.err &&
5113 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5114 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5115 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5116 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5117 # icc doesn't choke on unknown options, it will just issue warnings
5118 # or remarks (even with -Werror). So we grep stderr for any message
5119 # that says an option was ignored or not supported.
5120 # When given -MP, icc 7.0 and 7.1 complain thusly:
5121 # icc: Command line warning: ignoring option '-M'; no argument required
5122 # The diagnosis changed in icc 8.0:
5123 # icc: Command line remark: option '-MP' not supported
5124 if (grep 'ignoring option' conftest.err ||
5125 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5126 am_cv_CCAS_dependencies_compiler_type=$depmode
5127 break
5130 done
5132 cd ..
5133 rm -rf conftest.dir
5134 else
5135 am_cv_CCAS_dependencies_compiler_type=none
5139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
5140 $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
5141 CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
5144 test "x$enable_dependency_tracking" != xno \
5145 && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
5146 am__fastdepCCAS_TRUE=
5147 am__fastdepCCAS_FALSE='#'
5148 else
5149 am__fastdepCCAS_TRUE='#'
5150 am__fastdepCCAS_FALSE=
5158 # In order to override CFLAGS_FOR_TARGET, all of our special flags go
5159 # in XCFLAGS. But we need them in CFLAGS during configury. So put them
5160 # in both places for now and restore CFLAGS at the end of config.
5161 save_CFLAGS="$CFLAGS"
5163 # Find other programs we need.
5164 if test -n "$ac_tool_prefix"; then
5165 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5166 set dummy ${ac_tool_prefix}ar; ac_word=$2
5167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5168 $as_echo_n "checking for $ac_word... " >&6; }
5169 if ${ac_cv_prog_AR+:} false; then :
5170 $as_echo_n "(cached) " >&6
5171 else
5172 if test -n "$AR"; then
5173 ac_cv_prog_AR="$AR" # Let the user override the test.
5174 else
5175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5176 for as_dir in $PATH
5178 IFS=$as_save_IFS
5179 test -z "$as_dir" && as_dir=.
5180 for ac_exec_ext in '' $ac_executable_extensions; do
5181 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5182 ac_cv_prog_AR="${ac_tool_prefix}ar"
5183 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5184 break 2
5186 done
5187 done
5188 IFS=$as_save_IFS
5192 AR=$ac_cv_prog_AR
5193 if test -n "$AR"; then
5194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5195 $as_echo "$AR" >&6; }
5196 else
5197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5198 $as_echo "no" >&6; }
5203 if test -z "$ac_cv_prog_AR"; then
5204 ac_ct_AR=$AR
5205 # Extract the first word of "ar", so it can be a program name with args.
5206 set dummy ar; ac_word=$2
5207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5208 $as_echo_n "checking for $ac_word... " >&6; }
5209 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5210 $as_echo_n "(cached) " >&6
5211 else
5212 if test -n "$ac_ct_AR"; then
5213 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5214 else
5215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5216 for as_dir in $PATH
5218 IFS=$as_save_IFS
5219 test -z "$as_dir" && as_dir=.
5220 for ac_exec_ext in '' $ac_executable_extensions; do
5221 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5222 ac_cv_prog_ac_ct_AR="ar"
5223 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5224 break 2
5226 done
5227 done
5228 IFS=$as_save_IFS
5232 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5233 if test -n "$ac_ct_AR"; then
5234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5235 $as_echo "$ac_ct_AR" >&6; }
5236 else
5237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5238 $as_echo "no" >&6; }
5241 if test "x$ac_ct_AR" = x; then
5242 AR=""
5243 else
5244 case $cross_compiling:$ac_tool_warned in
5245 yes:)
5246 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5247 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5248 ac_tool_warned=yes ;;
5249 esac
5250 AR=$ac_ct_AR
5252 else
5253 AR="$ac_cv_prog_AR"
5256 if test -n "$ac_tool_prefix"; then
5257 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
5258 set dummy ${ac_tool_prefix}nm; ac_word=$2
5259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5260 $as_echo_n "checking for $ac_word... " >&6; }
5261 if ${ac_cv_prog_NM+:} false; then :
5262 $as_echo_n "(cached) " >&6
5263 else
5264 if test -n "$NM"; then
5265 ac_cv_prog_NM="$NM" # Let the user override the test.
5266 else
5267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5268 for as_dir in $PATH
5270 IFS=$as_save_IFS
5271 test -z "$as_dir" && as_dir=.
5272 for ac_exec_ext in '' $ac_executable_extensions; do
5273 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5274 ac_cv_prog_NM="${ac_tool_prefix}nm"
5275 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5276 break 2
5278 done
5279 done
5280 IFS=$as_save_IFS
5284 NM=$ac_cv_prog_NM
5285 if test -n "$NM"; then
5286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
5287 $as_echo "$NM" >&6; }
5288 else
5289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5290 $as_echo "no" >&6; }
5295 if test -z "$ac_cv_prog_NM"; then
5296 ac_ct_NM=$NM
5297 # Extract the first word of "nm", so it can be a program name with args.
5298 set dummy nm; ac_word=$2
5299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5300 $as_echo_n "checking for $ac_word... " >&6; }
5301 if ${ac_cv_prog_ac_ct_NM+:} false; then :
5302 $as_echo_n "(cached) " >&6
5303 else
5304 if test -n "$ac_ct_NM"; then
5305 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
5306 else
5307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5308 for as_dir in $PATH
5310 IFS=$as_save_IFS
5311 test -z "$as_dir" && as_dir=.
5312 for ac_exec_ext in '' $ac_executable_extensions; do
5313 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5314 ac_cv_prog_ac_ct_NM="nm"
5315 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5316 break 2
5318 done
5319 done
5320 IFS=$as_save_IFS
5324 ac_ct_NM=$ac_cv_prog_ac_ct_NM
5325 if test -n "$ac_ct_NM"; then
5326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5
5327 $as_echo "$ac_ct_NM" >&6; }
5328 else
5329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5330 $as_echo "no" >&6; }
5333 if test "x$ac_ct_NM" = x; then
5334 NM=""
5335 else
5336 case $cross_compiling:$ac_tool_warned in
5337 yes:)
5338 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5339 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5340 ac_tool_warned=yes ;;
5341 esac
5342 NM=$ac_ct_NM
5344 else
5345 NM="$ac_cv_prog_NM"
5348 if test -n "$ac_tool_prefix"; then
5349 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5350 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5352 $as_echo_n "checking for $ac_word... " >&6; }
5353 if ${ac_cv_prog_RANLIB+:} false; then :
5354 $as_echo_n "(cached) " >&6
5355 else
5356 if test -n "$RANLIB"; then
5357 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5358 else
5359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5360 for as_dir in $PATH
5362 IFS=$as_save_IFS
5363 test -z "$as_dir" && as_dir=.
5364 for ac_exec_ext in '' $ac_executable_extensions; do
5365 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5366 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5367 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5368 break 2
5370 done
5371 done
5372 IFS=$as_save_IFS
5376 RANLIB=$ac_cv_prog_RANLIB
5377 if test -n "$RANLIB"; then
5378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5379 $as_echo "$RANLIB" >&6; }
5380 else
5381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5382 $as_echo "no" >&6; }
5387 if test -z "$ac_cv_prog_RANLIB"; then
5388 ac_ct_RANLIB=$RANLIB
5389 # Extract the first word of "ranlib", so it can be a program name with args.
5390 set dummy ranlib; ac_word=$2
5391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5392 $as_echo_n "checking for $ac_word... " >&6; }
5393 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5394 $as_echo_n "(cached) " >&6
5395 else
5396 if test -n "$ac_ct_RANLIB"; then
5397 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5398 else
5399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5400 for as_dir in $PATH
5402 IFS=$as_save_IFS
5403 test -z "$as_dir" && as_dir=.
5404 for ac_exec_ext in '' $ac_executable_extensions; do
5405 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5406 ac_cv_prog_ac_ct_RANLIB="ranlib"
5407 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5408 break 2
5410 done
5411 done
5412 IFS=$as_save_IFS
5416 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5417 if test -n "$ac_ct_RANLIB"; then
5418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5419 $as_echo "$ac_ct_RANLIB" >&6; }
5420 else
5421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5422 $as_echo "no" >&6; }
5425 if test "x$ac_ct_RANLIB" = x; then
5426 RANLIB="ranlib-not-found-in-path-error"
5427 else
5428 case $cross_compiling:$ac_tool_warned in
5429 yes:)
5430 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5431 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5432 ac_tool_warned=yes ;;
5433 esac
5434 RANLIB=$ac_ct_RANLIB
5436 else
5437 RANLIB="$ac_cv_prog_RANLIB"
5440 # Extract the first word of "perl", so it can be a program name with args.
5441 set dummy perl; ac_word=$2
5442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5443 $as_echo_n "checking for $ac_word... " >&6; }
5444 if ${ac_cv_path_PERL+:} false; then :
5445 $as_echo_n "(cached) " >&6
5446 else
5447 case $PERL in
5448 [\\/]* | ?:[\\/]*)
5449 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
5452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5453 for as_dir in $PATH
5455 IFS=$as_save_IFS
5456 test -z "$as_dir" && as_dir=.
5457 for ac_exec_ext in '' $ac_executable_extensions; do
5458 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5459 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
5460 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5461 break 2
5463 done
5464 done
5465 IFS=$as_save_IFS
5467 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl-not-found-in-path-error"
5469 esac
5471 PERL=$ac_cv_path_PERL
5472 if test -n "$PERL"; then
5473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
5474 $as_echo "$PERL" >&6; }
5475 else
5476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5477 $as_echo "no" >&6; }
5481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5482 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5483 set x ${MAKE-make}
5484 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5485 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
5486 $as_echo_n "(cached) " >&6
5487 else
5488 cat >conftest.make <<\_ACEOF
5489 SHELL = /bin/sh
5490 all:
5491 @echo '@@@%%%=$(MAKE)=@@@%%%'
5492 _ACEOF
5493 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5494 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5495 *@@@%%%=?*=@@@%%%*)
5496 eval ac_cv_prog_make_${ac_make}_set=yes;;
5498 eval ac_cv_prog_make_${ac_make}_set=no;;
5499 esac
5500 rm -f conftest.make
5502 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5504 $as_echo "yes" >&6; }
5505 SET_MAKE=
5506 else
5507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5508 $as_echo "no" >&6; }
5509 SET_MAKE="MAKE=${MAKE-make}"
5514 # See if makeinfo has been installed and is modern enough
5515 # that we can use it.
5517 # Extract the first word of "makeinfo", so it can be a program name with args.
5518 set dummy makeinfo; ac_word=$2
5519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5520 $as_echo_n "checking for $ac_word... " >&6; }
5521 if ${ac_cv_prog_MAKEINFO+:} false; then :
5522 $as_echo_n "(cached) " >&6
5523 else
5524 if test -n "$MAKEINFO"; then
5525 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
5526 else
5527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5528 for as_dir in $PATH
5530 IFS=$as_save_IFS
5531 test -z "$as_dir" && as_dir=.
5532 for ac_exec_ext in '' $ac_executable_extensions; do
5533 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5534 ac_cv_prog_MAKEINFO="makeinfo"
5535 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5536 break 2
5538 done
5539 done
5540 IFS=$as_save_IFS
5544 MAKEINFO=$ac_cv_prog_MAKEINFO
5545 if test -n "$MAKEINFO"; then
5546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
5547 $as_echo "$MAKEINFO" >&6; }
5548 else
5549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5550 $as_echo "no" >&6; }
5554 if test -n "$MAKEINFO"; then
5555 # Found it, now check the version.
5556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
5557 $as_echo_n "checking for modern makeinfo... " >&6; }
5558 if ${gcc_cv_prog_makeinfo_modern+:} false; then :
5559 $as_echo_n "(cached) " >&6
5560 else
5561 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
5562 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
5564 case $ac_prog_version in
5565 '') gcc_cv_prog_makeinfo_modern=no;;
5566 4.[4-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
5567 *) gcc_cv_prog_makeinfo_modern=no;;
5568 esac
5571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
5572 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
5573 else
5574 gcc_cv_prog_makeinfo_modern=no
5576 if test $gcc_cv_prog_makeinfo_modern = no; then
5577 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
5580 if test $gcc_cv_prog_makeinfo_modern = "yes"; then
5581 BUILD_INFO_TRUE=
5582 BUILD_INFO_FALSE='#'
5583 else
5584 BUILD_INFO_TRUE='#'
5585 BUILD_INFO_FALSE=
5590 # Configure libtool
5591 case `pwd` in
5592 *\ * | *\ *)
5593 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5594 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5595 esac
5599 macro_version='2.2.7a'
5600 macro_revision='1.3134'
5614 ltmain="$ac_aux_dir/ltmain.sh"
5616 # Backslashify metacharacters that are still active within
5617 # double-quoted strings.
5618 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5620 # Same as above, but do not quote variable references.
5621 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5623 # Sed substitution to delay expansion of an escaped shell variable in a
5624 # double_quote_subst'ed string.
5625 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5627 # Sed substitution to delay expansion of an escaped single quote.
5628 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5630 # Sed substitution to avoid accidental globbing in evaled expressions
5631 no_glob_subst='s/\*/\\\*/g'
5633 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5634 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5635 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5638 $as_echo_n "checking how to print strings... " >&6; }
5639 # Test print first, because it will be a builtin if present.
5640 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5641 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5642 ECHO='print -r --'
5643 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5644 ECHO='printf %s\n'
5645 else
5646 # Use this function as a fallback that always works.
5647 func_fallback_echo ()
5649 eval 'cat <<_LTECHO_EOF
5651 _LTECHO_EOF'
5653 ECHO='func_fallback_echo'
5656 # func_echo_all arg...
5657 # Invoke $ECHO with all args, space-separated.
5658 func_echo_all ()
5660 $ECHO ""
5663 case "$ECHO" in
5664 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5665 $as_echo "printf" >&6; } ;;
5666 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5667 $as_echo "print -r" >&6; } ;;
5668 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5669 $as_echo "cat" >&6; } ;;
5670 esac
5685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5686 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5687 if ${ac_cv_path_SED+:} false; then :
5688 $as_echo_n "(cached) " >&6
5689 else
5690 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5691 for ac_i in 1 2 3 4 5 6 7; do
5692 ac_script="$ac_script$as_nl$ac_script"
5693 done
5694 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5695 { ac_script=; unset ac_script;}
5696 if test -z "$SED"; then
5697 ac_path_SED_found=false
5698 # Loop through the user's path and test for each of PROGNAME-LIST
5699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5700 for as_dir in $PATH
5702 IFS=$as_save_IFS
5703 test -z "$as_dir" && as_dir=.
5704 for ac_prog in sed gsed; do
5705 for ac_exec_ext in '' $ac_executable_extensions; do
5706 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5707 as_fn_executable_p "$ac_path_SED" || continue
5708 # Check for GNU ac_path_SED and select it if it is found.
5709 # Check for GNU $ac_path_SED
5710 case `"$ac_path_SED" --version 2>&1` in
5711 *GNU*)
5712 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5714 ac_count=0
5715 $as_echo_n 0123456789 >"conftest.in"
5716 while :
5718 cat "conftest.in" "conftest.in" >"conftest.tmp"
5719 mv "conftest.tmp" "conftest.in"
5720 cp "conftest.in" "conftest.nl"
5721 $as_echo '' >> "conftest.nl"
5722 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5723 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5724 as_fn_arith $ac_count + 1 && ac_count=$as_val
5725 if test $ac_count -gt ${ac_path_SED_max-0}; then
5726 # Best one so far, save it but keep looking for a better one
5727 ac_cv_path_SED="$ac_path_SED"
5728 ac_path_SED_max=$ac_count
5730 # 10*(2^10) chars as input seems more than enough
5731 test $ac_count -gt 10 && break
5732 done
5733 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5734 esac
5736 $ac_path_SED_found && break 3
5737 done
5738 done
5739 done
5740 IFS=$as_save_IFS
5741 if test -z "$ac_cv_path_SED"; then
5742 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5744 else
5745 ac_cv_path_SED=$SED
5749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5750 $as_echo "$ac_cv_path_SED" >&6; }
5751 SED="$ac_cv_path_SED"
5752 rm -f conftest.sed
5754 test -z "$SED" && SED=sed
5755 Xsed="$SED -e 1s/^X//"
5767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5768 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5769 if ${ac_cv_path_GREP+:} false; then :
5770 $as_echo_n "(cached) " >&6
5771 else
5772 if test -z "$GREP"; then
5773 ac_path_GREP_found=false
5774 # Loop through the user's path and test for each of PROGNAME-LIST
5775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5776 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5778 IFS=$as_save_IFS
5779 test -z "$as_dir" && as_dir=.
5780 for ac_prog in grep ggrep; do
5781 for ac_exec_ext in '' $ac_executable_extensions; do
5782 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5783 as_fn_executable_p "$ac_path_GREP" || continue
5784 # Check for GNU ac_path_GREP and select it if it is found.
5785 # Check for GNU $ac_path_GREP
5786 case `"$ac_path_GREP" --version 2>&1` in
5787 *GNU*)
5788 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5790 ac_count=0
5791 $as_echo_n 0123456789 >"conftest.in"
5792 while :
5794 cat "conftest.in" "conftest.in" >"conftest.tmp"
5795 mv "conftest.tmp" "conftest.in"
5796 cp "conftest.in" "conftest.nl"
5797 $as_echo 'GREP' >> "conftest.nl"
5798 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5799 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5800 as_fn_arith $ac_count + 1 && ac_count=$as_val
5801 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5802 # Best one so far, save it but keep looking for a better one
5803 ac_cv_path_GREP="$ac_path_GREP"
5804 ac_path_GREP_max=$ac_count
5806 # 10*(2^10) chars as input seems more than enough
5807 test $ac_count -gt 10 && break
5808 done
5809 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5810 esac
5812 $ac_path_GREP_found && break 3
5813 done
5814 done
5815 done
5816 IFS=$as_save_IFS
5817 if test -z "$ac_cv_path_GREP"; then
5818 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5820 else
5821 ac_cv_path_GREP=$GREP
5825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5826 $as_echo "$ac_cv_path_GREP" >&6; }
5827 GREP="$ac_cv_path_GREP"
5830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5831 $as_echo_n "checking for egrep... " >&6; }
5832 if ${ac_cv_path_EGREP+:} false; then :
5833 $as_echo_n "(cached) " >&6
5834 else
5835 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5836 then ac_cv_path_EGREP="$GREP -E"
5837 else
5838 if test -z "$EGREP"; then
5839 ac_path_EGREP_found=false
5840 # Loop through the user's path and test for each of PROGNAME-LIST
5841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5842 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5844 IFS=$as_save_IFS
5845 test -z "$as_dir" && as_dir=.
5846 for ac_prog in egrep; do
5847 for ac_exec_ext in '' $ac_executable_extensions; do
5848 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5849 as_fn_executable_p "$ac_path_EGREP" || continue
5850 # Check for GNU ac_path_EGREP and select it if it is found.
5851 # Check for GNU $ac_path_EGREP
5852 case `"$ac_path_EGREP" --version 2>&1` in
5853 *GNU*)
5854 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5856 ac_count=0
5857 $as_echo_n 0123456789 >"conftest.in"
5858 while :
5860 cat "conftest.in" "conftest.in" >"conftest.tmp"
5861 mv "conftest.tmp" "conftest.in"
5862 cp "conftest.in" "conftest.nl"
5863 $as_echo 'EGREP' >> "conftest.nl"
5864 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5865 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5866 as_fn_arith $ac_count + 1 && ac_count=$as_val
5867 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5868 # Best one so far, save it but keep looking for a better one
5869 ac_cv_path_EGREP="$ac_path_EGREP"
5870 ac_path_EGREP_max=$ac_count
5872 # 10*(2^10) chars as input seems more than enough
5873 test $ac_count -gt 10 && break
5874 done
5875 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5876 esac
5878 $ac_path_EGREP_found && break 3
5879 done
5880 done
5881 done
5882 IFS=$as_save_IFS
5883 if test -z "$ac_cv_path_EGREP"; then
5884 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5886 else
5887 ac_cv_path_EGREP=$EGREP
5892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5893 $as_echo "$ac_cv_path_EGREP" >&6; }
5894 EGREP="$ac_cv_path_EGREP"
5897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5898 $as_echo_n "checking for fgrep... " >&6; }
5899 if ${ac_cv_path_FGREP+:} false; then :
5900 $as_echo_n "(cached) " >&6
5901 else
5902 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5903 then ac_cv_path_FGREP="$GREP -F"
5904 else
5905 if test -z "$FGREP"; then
5906 ac_path_FGREP_found=false
5907 # Loop through the user's path and test for each of PROGNAME-LIST
5908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5909 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5911 IFS=$as_save_IFS
5912 test -z "$as_dir" && as_dir=.
5913 for ac_prog in fgrep; do
5914 for ac_exec_ext in '' $ac_executable_extensions; do
5915 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5916 as_fn_executable_p "$ac_path_FGREP" || continue
5917 # Check for GNU ac_path_FGREP and select it if it is found.
5918 # Check for GNU $ac_path_FGREP
5919 case `"$ac_path_FGREP" --version 2>&1` in
5920 *GNU*)
5921 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5923 ac_count=0
5924 $as_echo_n 0123456789 >"conftest.in"
5925 while :
5927 cat "conftest.in" "conftest.in" >"conftest.tmp"
5928 mv "conftest.tmp" "conftest.in"
5929 cp "conftest.in" "conftest.nl"
5930 $as_echo 'FGREP' >> "conftest.nl"
5931 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5932 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5933 as_fn_arith $ac_count + 1 && ac_count=$as_val
5934 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5935 # Best one so far, save it but keep looking for a better one
5936 ac_cv_path_FGREP="$ac_path_FGREP"
5937 ac_path_FGREP_max=$ac_count
5939 # 10*(2^10) chars as input seems more than enough
5940 test $ac_count -gt 10 && break
5941 done
5942 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5943 esac
5945 $ac_path_FGREP_found && break 3
5946 done
5947 done
5948 done
5949 IFS=$as_save_IFS
5950 if test -z "$ac_cv_path_FGREP"; then
5951 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5953 else
5954 ac_cv_path_FGREP=$FGREP
5959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5960 $as_echo "$ac_cv_path_FGREP" >&6; }
5961 FGREP="$ac_cv_path_FGREP"
5964 test -z "$GREP" && GREP=grep
5984 # Check whether --with-gnu-ld was given.
5985 if test "${with_gnu_ld+set}" = set; then :
5986 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5987 else
5988 with_gnu_ld=no
5991 ac_prog=ld
5992 if test "$GCC" = yes; then
5993 # Check if gcc -print-prog-name=ld gives a path.
5994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5995 $as_echo_n "checking for ld used by $CC... " >&6; }
5996 case $host in
5997 *-*-mingw*)
5998 # gcc leaves a trailing carriage return which upsets mingw
5999 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6001 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6002 esac
6003 case $ac_prog in
6004 # Accept absolute paths.
6005 [\\/]* | ?:[\\/]*)
6006 re_direlt='/[^/][^/]*/\.\./'
6007 # Canonicalize the pathname of ld
6008 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6009 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6010 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6011 done
6012 test -z "$LD" && LD="$ac_prog"
6015 # If it fails, then pretend we aren't using GCC.
6016 ac_prog=ld
6019 # If it is relative, then search for the first ld in PATH.
6020 with_gnu_ld=unknown
6022 esac
6023 elif test "$with_gnu_ld" = yes; then
6024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6025 $as_echo_n "checking for GNU ld... " >&6; }
6026 else
6027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6028 $as_echo_n "checking for non-GNU ld... " >&6; }
6030 if ${lt_cv_path_LD+:} false; then :
6031 $as_echo_n "(cached) " >&6
6032 else
6033 if test -z "$LD"; then
6034 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6035 for ac_dir in $PATH; do
6036 IFS="$lt_save_ifs"
6037 test -z "$ac_dir" && ac_dir=.
6038 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6039 lt_cv_path_LD="$ac_dir/$ac_prog"
6040 # Check to see if the program is GNU ld. I'd rather use --version,
6041 # but apparently some variants of GNU ld only accept -v.
6042 # Break only if it was the GNU/non-GNU ld that we prefer.
6043 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6044 *GNU* | *'with BFD'*)
6045 test "$with_gnu_ld" != no && break
6048 test "$with_gnu_ld" != yes && break
6050 esac
6052 done
6053 IFS="$lt_save_ifs"
6054 else
6055 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6059 LD="$lt_cv_path_LD"
6060 if test -n "$LD"; then
6061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6062 $as_echo "$LD" >&6; }
6063 else
6064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6065 $as_echo "no" >&6; }
6067 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6069 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6070 if ${lt_cv_prog_gnu_ld+:} false; then :
6071 $as_echo_n "(cached) " >&6
6072 else
6073 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6074 case `$LD -v 2>&1 </dev/null` in
6075 *GNU* | *'with BFD'*)
6076 lt_cv_prog_gnu_ld=yes
6079 lt_cv_prog_gnu_ld=no
6081 esac
6083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6084 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6085 with_gnu_ld=$lt_cv_prog_gnu_ld
6095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6096 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6097 if ${lt_cv_path_NM+:} false; then :
6098 $as_echo_n "(cached) " >&6
6099 else
6100 if test -n "$NM"; then
6101 # Let the user override the test.
6102 lt_cv_path_NM="$NM"
6103 else
6104 lt_nm_to_check="${ac_tool_prefix}nm"
6105 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6106 lt_nm_to_check="$lt_nm_to_check nm"
6108 for lt_tmp_nm in $lt_nm_to_check; do
6109 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6110 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6111 IFS="$lt_save_ifs"
6112 test -z "$ac_dir" && ac_dir=.
6113 tmp_nm="$ac_dir/$lt_tmp_nm"
6114 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6115 # Check to see if the nm accepts a BSD-compat flag.
6116 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6117 # nm: unknown option "B" ignored
6118 # Tru64's nm complains that /dev/null is an invalid object file
6119 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6120 */dev/null* | *'Invalid file or object type'*)
6121 lt_cv_path_NM="$tmp_nm -B"
6122 break
6125 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6126 */dev/null*)
6127 lt_cv_path_NM="$tmp_nm -p"
6128 break
6131 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6132 continue # so that we can try to find one that supports BSD flags
6134 esac
6136 esac
6138 done
6139 IFS="$lt_save_ifs"
6140 done
6141 : ${lt_cv_path_NM=no}
6144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6145 $as_echo "$lt_cv_path_NM" >&6; }
6146 if test "$lt_cv_path_NM" != "no"; then
6147 NM="$lt_cv_path_NM"
6148 else
6149 # Didn't find any BSD compatible name lister, look for dumpbin.
6150 if test -n "$DUMPBIN"; then :
6151 # Let the user override the test.
6152 else
6153 if test -n "$ac_tool_prefix"; then
6154 for ac_prog in dumpbin "link -dump"
6156 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6157 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6159 $as_echo_n "checking for $ac_word... " >&6; }
6160 if ${ac_cv_prog_DUMPBIN+:} false; then :
6161 $as_echo_n "(cached) " >&6
6162 else
6163 if test -n "$DUMPBIN"; then
6164 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6165 else
6166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6167 for as_dir in $PATH
6169 IFS=$as_save_IFS
6170 test -z "$as_dir" && as_dir=.
6171 for ac_exec_ext in '' $ac_executable_extensions; do
6172 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6173 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6174 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6175 break 2
6177 done
6178 done
6179 IFS=$as_save_IFS
6183 DUMPBIN=$ac_cv_prog_DUMPBIN
6184 if test -n "$DUMPBIN"; then
6185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6186 $as_echo "$DUMPBIN" >&6; }
6187 else
6188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6189 $as_echo "no" >&6; }
6193 test -n "$DUMPBIN" && break
6194 done
6196 if test -z "$DUMPBIN"; then
6197 ac_ct_DUMPBIN=$DUMPBIN
6198 for ac_prog in dumpbin "link -dump"
6200 # Extract the first word of "$ac_prog", so it can be a program name with args.
6201 set dummy $ac_prog; ac_word=$2
6202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6203 $as_echo_n "checking for $ac_word... " >&6; }
6204 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6205 $as_echo_n "(cached) " >&6
6206 else
6207 if test -n "$ac_ct_DUMPBIN"; then
6208 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6209 else
6210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6211 for as_dir in $PATH
6213 IFS=$as_save_IFS
6214 test -z "$as_dir" && as_dir=.
6215 for ac_exec_ext in '' $ac_executable_extensions; do
6216 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6217 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6218 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6219 break 2
6221 done
6222 done
6223 IFS=$as_save_IFS
6227 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6228 if test -n "$ac_ct_DUMPBIN"; then
6229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6230 $as_echo "$ac_ct_DUMPBIN" >&6; }
6231 else
6232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6233 $as_echo "no" >&6; }
6237 test -n "$ac_ct_DUMPBIN" && break
6238 done
6240 if test "x$ac_ct_DUMPBIN" = x; then
6241 DUMPBIN=":"
6242 else
6243 case $cross_compiling:$ac_tool_warned in
6244 yes:)
6245 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6246 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6247 ac_tool_warned=yes ;;
6248 esac
6249 DUMPBIN=$ac_ct_DUMPBIN
6253 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6254 *COFF*)
6255 DUMPBIN="$DUMPBIN -symbols"
6258 DUMPBIN=:
6260 esac
6263 if test "$DUMPBIN" != ":"; then
6264 NM="$DUMPBIN"
6267 test -z "$NM" && NM=nm
6274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6275 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6276 if ${lt_cv_nm_interface+:} false; then :
6277 $as_echo_n "(cached) " >&6
6278 else
6279 lt_cv_nm_interface="BSD nm"
6280 echo "int some_variable = 0;" > conftest.$ac_ext
6281 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6282 (eval "$ac_compile" 2>conftest.err)
6283 cat conftest.err >&5
6284 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6285 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6286 cat conftest.err >&5
6287 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6288 cat conftest.out >&5
6289 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6290 lt_cv_nm_interface="MS dumpbin"
6292 rm -f conftest*
6294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6295 $as_echo "$lt_cv_nm_interface" >&6; }
6297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6298 $as_echo_n "checking whether ln -s works... " >&6; }
6299 LN_S=$as_ln_s
6300 if test "$LN_S" = "ln -s"; then
6301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6302 $as_echo "yes" >&6; }
6303 else
6304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6305 $as_echo "no, using $LN_S" >&6; }
6308 # find the maximum length of command line arguments
6309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6310 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6311 if ${lt_cv_sys_max_cmd_len+:} false; then :
6312 $as_echo_n "(cached) " >&6
6313 else
6315 teststring="ABCD"
6317 case $build_os in
6318 msdosdjgpp*)
6319 # On DJGPP, this test can blow up pretty badly due to problems in libc
6320 # (any single argument exceeding 2000 bytes causes a buffer overrun
6321 # during glob expansion). Even if it were fixed, the result of this
6322 # check would be larger than it should be.
6323 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6326 gnu*)
6327 # Under GNU Hurd, this test is not required because there is
6328 # no limit to the length of command line arguments.
6329 # Libtool will interpret -1 as no limit whatsoever
6330 lt_cv_sys_max_cmd_len=-1;
6333 cygwin* | mingw* | cegcc*)
6334 # On Win9x/ME, this test blows up -- it succeeds, but takes
6335 # about 5 minutes as the teststring grows exponentially.
6336 # Worse, since 9x/ME are not pre-emptively multitasking,
6337 # you end up with a "frozen" computer, even though with patience
6338 # the test eventually succeeds (with a max line length of 256k).
6339 # Instead, let's just punt: use the minimum linelength reported by
6340 # all of the supported platforms: 8192 (on NT/2K/XP).
6341 lt_cv_sys_max_cmd_len=8192;
6344 mint*)
6345 # On MiNT this can take a long time and run out of memory.
6346 lt_cv_sys_max_cmd_len=8192;
6349 amigaos*)
6350 # On AmigaOS with pdksh, this test takes hours, literally.
6351 # So we just punt and use a minimum line length of 8192.
6352 lt_cv_sys_max_cmd_len=8192;
6355 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6356 # This has been around since 386BSD, at least. Likely further.
6357 if test -x /sbin/sysctl; then
6358 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6359 elif test -x /usr/sbin/sysctl; then
6360 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6361 else
6362 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6364 # And add a safety zone
6365 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6366 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6369 interix*)
6370 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6371 lt_cv_sys_max_cmd_len=196608
6374 osf*)
6375 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6376 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6377 # nice to cause kernel panics so lets avoid the loop below.
6378 # First set a reasonable default.
6379 lt_cv_sys_max_cmd_len=16384
6381 if test -x /sbin/sysconfig; then
6382 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6383 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6384 esac
6387 sco3.2v5*)
6388 lt_cv_sys_max_cmd_len=102400
6390 sysv5* | sco5v6* | sysv4.2uw2*)
6391 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6392 if test -n "$kargmax"; then
6393 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6394 else
6395 lt_cv_sys_max_cmd_len=32768
6399 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6400 if test -n "$lt_cv_sys_max_cmd_len"; then
6401 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6402 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6403 else
6404 # Make teststring a little bigger before we do anything with it.
6405 # a 1K string should be a reasonable start.
6406 for i in 1 2 3 4 5 6 7 8 ; do
6407 teststring=$teststring$teststring
6408 done
6409 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6410 # If test is not a shell built-in, we'll probably end up computing a
6411 # maximum length that is only half of the actual maximum length, but
6412 # we can't tell.
6413 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6414 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6415 test $i != 17 # 1/2 MB should be enough
6417 i=`expr $i + 1`
6418 teststring=$teststring$teststring
6419 done
6420 # Only check the string length outside the loop.
6421 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6422 teststring=
6423 # Add a significant safety factor because C++ compilers can tack on
6424 # massive amounts of additional arguments before passing them to the
6425 # linker. It appears as though 1/2 is a usable value.
6426 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6429 esac
6433 if test -n $lt_cv_sys_max_cmd_len ; then
6434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6435 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6436 else
6437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6438 $as_echo "none" >&6; }
6440 max_cmd_len=$lt_cv_sys_max_cmd_len
6447 : ${CP="cp -f"}
6448 : ${MV="mv -f"}
6449 : ${RM="rm -f"}
6451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6452 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6453 # Try some XSI features
6454 xsi_shell=no
6455 ( _lt_dummy="a/b/c"
6456 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6457 = c,a/b,, \
6458 && eval 'test $(( 1 + 1 )) -eq 2 \
6459 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6460 && xsi_shell=yes
6461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6462 $as_echo "$xsi_shell" >&6; }
6465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6466 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6467 lt_shell_append=no
6468 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6469 >/dev/null 2>&1 \
6470 && lt_shell_append=yes
6471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6472 $as_echo "$lt_shell_append" >&6; }
6475 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6476 lt_unset=unset
6477 else
6478 lt_unset=false
6485 # test EBCDIC or ASCII
6486 case `echo X|tr X '\101'` in
6487 A) # ASCII based system
6488 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6489 lt_SP2NL='tr \040 \012'
6490 lt_NL2SP='tr \015\012 \040\040'
6492 *) # EBCDIC based system
6493 lt_SP2NL='tr \100 \n'
6494 lt_NL2SP='tr \r\n \100\100'
6496 esac
6506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6507 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6508 if ${lt_cv_ld_reload_flag+:} false; then :
6509 $as_echo_n "(cached) " >&6
6510 else
6511 lt_cv_ld_reload_flag='-r'
6513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6514 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6515 reload_flag=$lt_cv_ld_reload_flag
6516 case $reload_flag in
6517 "" | " "*) ;;
6518 *) reload_flag=" $reload_flag" ;;
6519 esac
6520 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6521 case $host_os in
6522 darwin*)
6523 if test "$GCC" = yes; then
6524 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6525 else
6526 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6529 esac
6539 if test -n "$ac_tool_prefix"; then
6540 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6541 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6543 $as_echo_n "checking for $ac_word... " >&6; }
6544 if ${ac_cv_prog_OBJDUMP+:} false; then :
6545 $as_echo_n "(cached) " >&6
6546 else
6547 if test -n "$OBJDUMP"; then
6548 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6549 else
6550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6551 for as_dir in $PATH
6553 IFS=$as_save_IFS
6554 test -z "$as_dir" && as_dir=.
6555 for ac_exec_ext in '' $ac_executable_extensions; do
6556 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6557 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6558 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6559 break 2
6561 done
6562 done
6563 IFS=$as_save_IFS
6567 OBJDUMP=$ac_cv_prog_OBJDUMP
6568 if test -n "$OBJDUMP"; then
6569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6570 $as_echo "$OBJDUMP" >&6; }
6571 else
6572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6573 $as_echo "no" >&6; }
6578 if test -z "$ac_cv_prog_OBJDUMP"; then
6579 ac_ct_OBJDUMP=$OBJDUMP
6580 # Extract the first word of "objdump", so it can be a program name with args.
6581 set dummy objdump; ac_word=$2
6582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6583 $as_echo_n "checking for $ac_word... " >&6; }
6584 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6585 $as_echo_n "(cached) " >&6
6586 else
6587 if test -n "$ac_ct_OBJDUMP"; then
6588 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6589 else
6590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6591 for as_dir in $PATH
6593 IFS=$as_save_IFS
6594 test -z "$as_dir" && as_dir=.
6595 for ac_exec_ext in '' $ac_executable_extensions; do
6596 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6597 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6598 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6599 break 2
6601 done
6602 done
6603 IFS=$as_save_IFS
6607 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6608 if test -n "$ac_ct_OBJDUMP"; then
6609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6610 $as_echo "$ac_ct_OBJDUMP" >&6; }
6611 else
6612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6613 $as_echo "no" >&6; }
6616 if test "x$ac_ct_OBJDUMP" = x; then
6617 OBJDUMP="false"
6618 else
6619 case $cross_compiling:$ac_tool_warned in
6620 yes:)
6621 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6622 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6623 ac_tool_warned=yes ;;
6624 esac
6625 OBJDUMP=$ac_ct_OBJDUMP
6627 else
6628 OBJDUMP="$ac_cv_prog_OBJDUMP"
6631 test -z "$OBJDUMP" && OBJDUMP=objdump
6641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6642 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6643 if ${lt_cv_deplibs_check_method+:} false; then :
6644 $as_echo_n "(cached) " >&6
6645 else
6646 lt_cv_file_magic_cmd='$MAGIC_CMD'
6647 lt_cv_file_magic_test_file=
6648 lt_cv_deplibs_check_method='unknown'
6649 # Need to set the preceding variable on all platforms that support
6650 # interlibrary dependencies.
6651 # 'none' -- dependencies not supported.
6652 # `unknown' -- same as none, but documents that we really don't know.
6653 # 'pass_all' -- all dependencies passed with no checks.
6654 # 'test_compile' -- check by making test program.
6655 # 'file_magic [[regex]]' -- check by looking for files in library path
6656 # which responds to the $file_magic_cmd with a given extended regex.
6657 # If you have `file' or equivalent on your system and you're not sure
6658 # whether `pass_all' will *always* work, you probably want this one.
6660 case $host_os in
6661 aix[4-9]*)
6662 lt_cv_deplibs_check_method=pass_all
6665 beos*)
6666 lt_cv_deplibs_check_method=pass_all
6669 bsdi[45]*)
6670 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6671 lt_cv_file_magic_cmd='/usr/bin/file -L'
6672 lt_cv_file_magic_test_file=/shlib/libc.so
6675 cygwin*)
6676 # func_win32_libid is a shell function defined in ltmain.sh
6677 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6678 lt_cv_file_magic_cmd='func_win32_libid'
6681 mingw* | pw32*)
6682 # Base MSYS/MinGW do not provide the 'file' command needed by
6683 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6684 # unless we find 'file', for example because we are cross-compiling.
6685 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6686 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6687 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6688 lt_cv_file_magic_cmd='func_win32_libid'
6689 else
6690 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6691 lt_cv_file_magic_cmd='$OBJDUMP -f'
6695 cegcc*)
6696 # use the weaker test based on 'objdump'. See mingw*.
6697 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6698 lt_cv_file_magic_cmd='$OBJDUMP -f'
6701 darwin* | rhapsody*)
6702 lt_cv_deplibs_check_method=pass_all
6705 freebsd* | dragonfly*)
6706 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6707 case $host_cpu in
6708 i*86 )
6709 # Not sure whether the presence of OpenBSD here was a mistake.
6710 # Let's accept both of them until this is cleared up.
6711 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6712 lt_cv_file_magic_cmd=/usr/bin/file
6713 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6715 esac
6716 else
6717 lt_cv_deplibs_check_method=pass_all
6721 gnu*)
6722 lt_cv_deplibs_check_method=pass_all
6725 haiku*)
6726 lt_cv_deplibs_check_method=pass_all
6729 hpux10.20* | hpux11*)
6730 lt_cv_file_magic_cmd=/usr/bin/file
6731 case $host_cpu in
6732 ia64*)
6733 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6734 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6736 hppa*64*)
6737 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]'
6738 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6741 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6742 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6744 esac
6747 interix[3-9]*)
6748 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6749 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6752 irix5* | irix6* | nonstopux*)
6753 case $LD in
6754 *-32|*"-32 ") libmagic=32-bit;;
6755 *-n32|*"-n32 ") libmagic=N32;;
6756 *-64|*"-64 ") libmagic=64-bit;;
6757 *) libmagic=never-match;;
6758 esac
6759 lt_cv_deplibs_check_method=pass_all
6762 # This must be Linux ELF.
6763 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
6764 lt_cv_deplibs_check_method=pass_all
6767 netbsd*)
6768 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6769 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6770 else
6771 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6775 newos6*)
6776 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6777 lt_cv_file_magic_cmd=/usr/bin/file
6778 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6781 *nto* | *qnx*)
6782 lt_cv_deplibs_check_method=pass_all
6785 openbsd*)
6786 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6787 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6788 else
6789 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6793 osf3* | osf4* | osf5*)
6794 lt_cv_deplibs_check_method=pass_all
6797 rdos*)
6798 lt_cv_deplibs_check_method=pass_all
6801 solaris*)
6802 lt_cv_deplibs_check_method=pass_all
6805 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6806 lt_cv_deplibs_check_method=pass_all
6809 sysv4 | sysv4.3*)
6810 case $host_vendor in
6811 motorola)
6812 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]'
6813 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6815 ncr)
6816 lt_cv_deplibs_check_method=pass_all
6818 sequent)
6819 lt_cv_file_magic_cmd='/bin/file'
6820 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6822 sni)
6823 lt_cv_file_magic_cmd='/bin/file'
6824 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6825 lt_cv_file_magic_test_file=/lib/libc.so
6827 siemens)
6828 lt_cv_deplibs_check_method=pass_all
6831 lt_cv_deplibs_check_method=pass_all
6833 esac
6836 tpf*)
6837 lt_cv_deplibs_check_method=pass_all
6839 vxworks*)
6840 # Assume VxWorks cross toolchains are built on Linux, possibly
6841 # as canadian for Windows hosts.
6842 lt_cv_deplibs_check_method=pass_all
6844 esac
6847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6848 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6849 file_magic_cmd=$lt_cv_file_magic_cmd
6850 deplibs_check_method=$lt_cv_deplibs_check_method
6851 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6864 if test -n "$ac_tool_prefix"; then
6865 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6866 set dummy ${ac_tool_prefix}ar; ac_word=$2
6867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6868 $as_echo_n "checking for $ac_word... " >&6; }
6869 if ${ac_cv_prog_AR+:} false; then :
6870 $as_echo_n "(cached) " >&6
6871 else
6872 if test -n "$AR"; then
6873 ac_cv_prog_AR="$AR" # Let the user override the test.
6874 else
6875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6876 for as_dir in $PATH
6878 IFS=$as_save_IFS
6879 test -z "$as_dir" && as_dir=.
6880 for ac_exec_ext in '' $ac_executable_extensions; do
6881 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6882 ac_cv_prog_AR="${ac_tool_prefix}ar"
6883 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6884 break 2
6886 done
6887 done
6888 IFS=$as_save_IFS
6892 AR=$ac_cv_prog_AR
6893 if test -n "$AR"; then
6894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6895 $as_echo "$AR" >&6; }
6896 else
6897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6898 $as_echo "no" >&6; }
6903 if test -z "$ac_cv_prog_AR"; then
6904 ac_ct_AR=$AR
6905 # Extract the first word of "ar", so it can be a program name with args.
6906 set dummy ar; ac_word=$2
6907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6908 $as_echo_n "checking for $ac_word... " >&6; }
6909 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6910 $as_echo_n "(cached) " >&6
6911 else
6912 if test -n "$ac_ct_AR"; then
6913 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6914 else
6915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6916 for as_dir in $PATH
6918 IFS=$as_save_IFS
6919 test -z "$as_dir" && as_dir=.
6920 for ac_exec_ext in '' $ac_executable_extensions; do
6921 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6922 ac_cv_prog_ac_ct_AR="ar"
6923 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6924 break 2
6926 done
6927 done
6928 IFS=$as_save_IFS
6932 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6933 if test -n "$ac_ct_AR"; then
6934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6935 $as_echo "$ac_ct_AR" >&6; }
6936 else
6937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6938 $as_echo "no" >&6; }
6941 if test "x$ac_ct_AR" = x; then
6942 AR="false"
6943 else
6944 case $cross_compiling:$ac_tool_warned in
6945 yes:)
6946 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6947 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6948 ac_tool_warned=yes ;;
6949 esac
6950 AR=$ac_ct_AR
6952 else
6953 AR="$ac_cv_prog_AR"
6956 test -z "$AR" && AR=ar
6957 test -z "$AR_FLAGS" && AR_FLAGS=cru
6969 if test -n "$ac_tool_prefix"; then
6970 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6971 set dummy ${ac_tool_prefix}strip; ac_word=$2
6972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6973 $as_echo_n "checking for $ac_word... " >&6; }
6974 if ${ac_cv_prog_STRIP+:} false; then :
6975 $as_echo_n "(cached) " >&6
6976 else
6977 if test -n "$STRIP"; then
6978 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6979 else
6980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6981 for as_dir in $PATH
6983 IFS=$as_save_IFS
6984 test -z "$as_dir" && as_dir=.
6985 for ac_exec_ext in '' $ac_executable_extensions; do
6986 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6987 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6988 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6989 break 2
6991 done
6992 done
6993 IFS=$as_save_IFS
6997 STRIP=$ac_cv_prog_STRIP
6998 if test -n "$STRIP"; then
6999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7000 $as_echo "$STRIP" >&6; }
7001 else
7002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7003 $as_echo "no" >&6; }
7008 if test -z "$ac_cv_prog_STRIP"; then
7009 ac_ct_STRIP=$STRIP
7010 # Extract the first word of "strip", so it can be a program name with args.
7011 set dummy strip; ac_word=$2
7012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7013 $as_echo_n "checking for $ac_word... " >&6; }
7014 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7015 $as_echo_n "(cached) " >&6
7016 else
7017 if test -n "$ac_ct_STRIP"; then
7018 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7019 else
7020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7021 for as_dir in $PATH
7023 IFS=$as_save_IFS
7024 test -z "$as_dir" && as_dir=.
7025 for ac_exec_ext in '' $ac_executable_extensions; do
7026 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7027 ac_cv_prog_ac_ct_STRIP="strip"
7028 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7029 break 2
7031 done
7032 done
7033 IFS=$as_save_IFS
7037 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7038 if test -n "$ac_ct_STRIP"; then
7039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7040 $as_echo "$ac_ct_STRIP" >&6; }
7041 else
7042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7043 $as_echo "no" >&6; }
7046 if test "x$ac_ct_STRIP" = x; then
7047 STRIP=":"
7048 else
7049 case $cross_compiling:$ac_tool_warned in
7050 yes:)
7051 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7052 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7053 ac_tool_warned=yes ;;
7054 esac
7055 STRIP=$ac_ct_STRIP
7057 else
7058 STRIP="$ac_cv_prog_STRIP"
7061 test -z "$STRIP" && STRIP=:
7068 if test -n "$ac_tool_prefix"; then
7069 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7070 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7072 $as_echo_n "checking for $ac_word... " >&6; }
7073 if ${ac_cv_prog_RANLIB+:} false; then :
7074 $as_echo_n "(cached) " >&6
7075 else
7076 if test -n "$RANLIB"; then
7077 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7078 else
7079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7080 for as_dir in $PATH
7082 IFS=$as_save_IFS
7083 test -z "$as_dir" && as_dir=.
7084 for ac_exec_ext in '' $ac_executable_extensions; do
7085 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7086 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7087 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7088 break 2
7090 done
7091 done
7092 IFS=$as_save_IFS
7096 RANLIB=$ac_cv_prog_RANLIB
7097 if test -n "$RANLIB"; then
7098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7099 $as_echo "$RANLIB" >&6; }
7100 else
7101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7102 $as_echo "no" >&6; }
7107 if test -z "$ac_cv_prog_RANLIB"; then
7108 ac_ct_RANLIB=$RANLIB
7109 # Extract the first word of "ranlib", so it can be a program name with args.
7110 set dummy ranlib; ac_word=$2
7111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7112 $as_echo_n "checking for $ac_word... " >&6; }
7113 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7114 $as_echo_n "(cached) " >&6
7115 else
7116 if test -n "$ac_ct_RANLIB"; then
7117 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7118 else
7119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7120 for as_dir in $PATH
7122 IFS=$as_save_IFS
7123 test -z "$as_dir" && as_dir=.
7124 for ac_exec_ext in '' $ac_executable_extensions; do
7125 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7126 ac_cv_prog_ac_ct_RANLIB="ranlib"
7127 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7128 break 2
7130 done
7131 done
7132 IFS=$as_save_IFS
7136 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7137 if test -n "$ac_ct_RANLIB"; then
7138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7139 $as_echo "$ac_ct_RANLIB" >&6; }
7140 else
7141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7142 $as_echo "no" >&6; }
7145 if test "x$ac_ct_RANLIB" = x; then
7146 RANLIB=":"
7147 else
7148 case $cross_compiling:$ac_tool_warned in
7149 yes:)
7150 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7151 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7152 ac_tool_warned=yes ;;
7153 esac
7154 RANLIB=$ac_ct_RANLIB
7156 else
7157 RANLIB="$ac_cv_prog_RANLIB"
7160 test -z "$RANLIB" && RANLIB=:
7167 # Determine commands to create old-style static archives.
7168 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7169 old_postinstall_cmds='chmod 644 $oldlib'
7170 old_postuninstall_cmds=
7172 if test -n "$RANLIB"; then
7173 case $host_os in
7174 openbsd*)
7175 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7178 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7180 esac
7181 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7184 case $host_os in
7185 darwin*)
7186 lock_old_archive_extraction=yes ;;
7188 lock_old_archive_extraction=no ;;
7189 esac
7229 # If no C compiler was specified, use CC.
7230 LTCC=${LTCC-"$CC"}
7232 # If no C compiler flags were specified, use CFLAGS.
7233 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7235 # Allow CC to be a program name with arguments.
7236 compiler=$CC
7239 # Check for command to grab the raw symbol name followed by C symbol from nm.
7240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7241 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7242 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7243 $as_echo_n "(cached) " >&6
7244 else
7246 # These are sane defaults that work on at least a few old systems.
7247 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7249 # Character class describing NM global symbol codes.
7250 symcode='[BCDEGRST]'
7252 # Regexp to match symbols that can be accessed directly from C.
7253 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7255 # Define system-specific variables.
7256 case $host_os in
7257 aix*)
7258 symcode='[BCDT]'
7260 cygwin* | mingw* | pw32* | cegcc*)
7261 symcode='[ABCDGISTW]'
7263 hpux*)
7264 if test "$host_cpu" = ia64; then
7265 symcode='[ABCDEGRST]'
7268 irix* | nonstopux*)
7269 symcode='[BCDEGRST]'
7271 osf*)
7272 symcode='[BCDEGQRST]'
7274 solaris*)
7275 symcode='[BDRT]'
7277 sco3.2v5*)
7278 symcode='[DT]'
7280 sysv4.2uw2*)
7281 symcode='[DT]'
7283 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7284 symcode='[ABDT]'
7286 sysv4)
7287 symcode='[DFNSTU]'
7289 esac
7291 # If we're using GNU nm, then use its standard symbol codes.
7292 case `$NM -V 2>&1` in
7293 *GNU* | *'with BFD'*)
7294 symcode='[ABCDGIRSTW]' ;;
7295 esac
7297 # Transform an extracted symbol line into a proper C declaration.
7298 # Some systems (esp. on ia64) link data and code symbols differently,
7299 # so use this general approach.
7300 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7302 # Transform an extracted symbol line into symbol name and symbol address
7303 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7304 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'"
7306 # Handle CRLF in mingw tool chain
7307 opt_cr=
7308 case $build_os in
7309 mingw*)
7310 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7312 esac
7314 # Try without a prefix underscore, then with it.
7315 for ac_symprfx in "" "_"; do
7317 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7318 symxfrm="\\1 $ac_symprfx\\2 \\2"
7320 # Write the raw and C identifiers.
7321 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7322 # Fake it for dumpbin and say T for any non-static function
7323 # and D for any global variable.
7324 # Also find C++ and __fastcall symbols from MSVC++,
7325 # which start with @ or ?.
7326 lt_cv_sys_global_symbol_pipe="$AWK '"\
7327 " {last_section=section; section=\$ 3};"\
7328 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7329 " \$ 0!~/External *\|/{next};"\
7330 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7331 " {if(hide[section]) next};"\
7332 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7333 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7334 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7335 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7336 " ' prfx=^$ac_symprfx"
7337 else
7338 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7341 # Check to see that the pipe works correctly.
7342 pipe_works=no
7344 rm -f conftest*
7345 cat > conftest.$ac_ext <<_LT_EOF
7346 #ifdef __cplusplus
7347 extern "C" {
7348 #endif
7349 char nm_test_var;
7350 void nm_test_func(void);
7351 void nm_test_func(void){}
7352 #ifdef __cplusplus
7354 #endif
7355 int main(){nm_test_var='a';nm_test_func();return(0);}
7356 _LT_EOF
7358 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7359 (eval $ac_compile) 2>&5
7360 ac_status=$?
7361 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7362 test $ac_status = 0; }; then
7363 # Now try to grab the symbols.
7364 nlist=conftest.nm
7365 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7366 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7367 ac_status=$?
7368 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7369 test $ac_status = 0; } && test -s "$nlist"; then
7370 # Try sorting and uniquifying the output.
7371 if sort "$nlist" | uniq > "$nlist"T; then
7372 mv -f "$nlist"T "$nlist"
7373 else
7374 rm -f "$nlist"T
7377 # Make sure that we snagged all the symbols we need.
7378 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7379 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7380 cat <<_LT_EOF > conftest.$ac_ext
7381 #ifdef __cplusplus
7382 extern "C" {
7383 #endif
7385 _LT_EOF
7386 # Now generate the symbol file.
7387 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7389 cat <<_LT_EOF >> conftest.$ac_ext
7391 /* The mapping between symbol names and symbols. */
7392 const struct {
7393 const char *name;
7394 void *address;
7396 lt__PROGRAM__LTX_preloaded_symbols[] =
7398 { "@PROGRAM@", (void *) 0 },
7399 _LT_EOF
7400 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7401 cat <<\_LT_EOF >> conftest.$ac_ext
7402 {0, (void *) 0}
7405 /* This works around a problem in FreeBSD linker */
7406 #ifdef FREEBSD_WORKAROUND
7407 static const void *lt_preloaded_setup() {
7408 return lt__PROGRAM__LTX_preloaded_symbols;
7410 #endif
7412 #ifdef __cplusplus
7414 #endif
7415 _LT_EOF
7416 # Now try linking the two files.
7417 mv conftest.$ac_objext conftstm.$ac_objext
7418 lt_save_LIBS="$LIBS"
7419 lt_save_CFLAGS="$CFLAGS"
7420 LIBS="conftstm.$ac_objext"
7421 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7422 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7423 (eval $ac_link) 2>&5
7424 ac_status=$?
7425 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7426 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7427 pipe_works=yes
7429 LIBS="$lt_save_LIBS"
7430 CFLAGS="$lt_save_CFLAGS"
7431 else
7432 echo "cannot find nm_test_func in $nlist" >&5
7434 else
7435 echo "cannot find nm_test_var in $nlist" >&5
7437 else
7438 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7440 else
7441 echo "$progname: failed program was:" >&5
7442 cat conftest.$ac_ext >&5
7444 rm -rf conftest* conftst*
7446 # Do not use the global_symbol_pipe unless it works.
7447 if test "$pipe_works" = yes; then
7448 break
7449 else
7450 lt_cv_sys_global_symbol_pipe=
7452 done
7456 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7457 lt_cv_sys_global_symbol_to_cdecl=
7459 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7461 $as_echo "failed" >&6; }
7462 else
7463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7464 $as_echo "ok" >&6; }
7489 # Check whether --enable-libtool-lock was given.
7490 if test "${enable_libtool_lock+set}" = set; then :
7491 enableval=$enable_libtool_lock;
7494 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7496 # Some flags need to be propagated to the compiler or linker for good
7497 # libtool support.
7498 case $host in
7499 ia64-*-hpux*)
7500 # Find out which ABI we are using.
7501 echo 'int i;' > conftest.$ac_ext
7502 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7503 (eval $ac_compile) 2>&5
7504 ac_status=$?
7505 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7506 test $ac_status = 0; }; then
7507 case `/usr/bin/file conftest.$ac_objext` in
7508 *ELF-32*)
7509 HPUX_IA64_MODE="32"
7511 *ELF-64*)
7512 HPUX_IA64_MODE="64"
7514 esac
7516 rm -rf conftest*
7518 *-*-irix6*)
7519 # Find out which ABI we are using.
7520 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7521 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7522 (eval $ac_compile) 2>&5
7523 ac_status=$?
7524 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7525 test $ac_status = 0; }; then
7526 if test "$lt_cv_prog_gnu_ld" = yes; then
7527 case `/usr/bin/file conftest.$ac_objext` in
7528 *32-bit*)
7529 LD="${LD-ld} -melf32bsmip"
7531 *N32*)
7532 LD="${LD-ld} -melf32bmipn32"
7534 *64-bit*)
7535 LD="${LD-ld} -melf64bmip"
7537 esac
7538 else
7539 case `/usr/bin/file conftest.$ac_objext` in
7540 *32-bit*)
7541 LD="${LD-ld} -32"
7543 *N32*)
7544 LD="${LD-ld} -n32"
7546 *64-bit*)
7547 LD="${LD-ld} -64"
7549 esac
7552 rm -rf conftest*
7555 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7556 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7557 # Find out which ABI we are using.
7558 echo 'int i;' > conftest.$ac_ext
7559 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7560 (eval $ac_compile) 2>&5
7561 ac_status=$?
7562 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7563 test $ac_status = 0; }; then
7564 case `/usr/bin/file conftest.o` in
7565 *32-bit*)
7566 case $host in
7567 x86_64-*kfreebsd*-gnu)
7568 LD="${LD-ld} -m elf_i386_fbsd"
7570 x86_64-*linux*)
7571 case `/usr/bin/file conftest.o` in
7572 *x86-64*)
7573 LD="${LD-ld} -m elf32_x86_64"
7576 LD="${LD-ld} -m elf_i386"
7578 esac
7580 powerpc64le-*linux*)
7581 LD="${LD-ld} -m elf32lppclinux"
7583 powerpc64-*linux*)
7584 LD="${LD-ld} -m elf32ppclinux"
7586 s390x-*linux*)
7587 LD="${LD-ld} -m elf_s390"
7589 sparc64-*linux*)
7590 LD="${LD-ld} -m elf32_sparc"
7592 esac
7594 *64-bit*)
7595 case $host in
7596 x86_64-*kfreebsd*-gnu)
7597 LD="${LD-ld} -m elf_x86_64_fbsd"
7599 x86_64-*linux*)
7600 LD="${LD-ld} -m elf_x86_64"
7602 powerpcle-*linux*)
7603 LD="${LD-ld} -m elf64lppc"
7605 powerpc-*linux*)
7606 LD="${LD-ld} -m elf64ppc"
7608 s390*-*linux*|s390*-*tpf*)
7609 LD="${LD-ld} -m elf64_s390"
7611 sparc*-*linux*)
7612 LD="${LD-ld} -m elf64_sparc"
7614 esac
7616 esac
7618 rm -rf conftest*
7621 *-*-sco3.2v5*)
7622 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7623 SAVE_CFLAGS="$CFLAGS"
7624 CFLAGS="$CFLAGS -belf"
7625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7626 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7627 if ${lt_cv_cc_needs_belf+:} false; then :
7628 $as_echo_n "(cached) " >&6
7629 else
7630 ac_ext=c
7631 ac_cpp='$CPP $CPPFLAGS'
7632 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7633 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7634 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7637 /* end confdefs.h. */
7640 main ()
7644 return 0;
7646 _ACEOF
7647 if ac_fn_c_try_link "$LINENO"; then :
7648 lt_cv_cc_needs_belf=yes
7649 else
7650 lt_cv_cc_needs_belf=no
7652 rm -f core conftest.err conftest.$ac_objext \
7653 conftest$ac_exeext conftest.$ac_ext
7654 ac_ext=c
7655 ac_cpp='$CPP $CPPFLAGS'
7656 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7657 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7658 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7662 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7663 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7664 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7665 CFLAGS="$SAVE_CFLAGS"
7668 sparc*-*solaris*)
7669 # Find out which ABI we are using.
7670 echo 'int i;' > conftest.$ac_ext
7671 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7672 (eval $ac_compile) 2>&5
7673 ac_status=$?
7674 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7675 test $ac_status = 0; }; then
7676 case `/usr/bin/file conftest.o` in
7677 *64-bit*)
7678 case $lt_cv_prog_gnu_ld in
7679 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7681 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7682 LD="${LD-ld} -64"
7685 esac
7687 esac
7689 rm -rf conftest*
7691 esac
7693 need_locks="$enable_libtool_lock"
7696 case $host_os in
7697 rhapsody* | darwin*)
7698 if test -n "$ac_tool_prefix"; then
7699 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7700 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7702 $as_echo_n "checking for $ac_word... " >&6; }
7703 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7704 $as_echo_n "(cached) " >&6
7705 else
7706 if test -n "$DSYMUTIL"; then
7707 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7708 else
7709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7710 for as_dir in $PATH
7712 IFS=$as_save_IFS
7713 test -z "$as_dir" && as_dir=.
7714 for ac_exec_ext in '' $ac_executable_extensions; do
7715 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7716 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7717 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7718 break 2
7720 done
7721 done
7722 IFS=$as_save_IFS
7726 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7727 if test -n "$DSYMUTIL"; then
7728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7729 $as_echo "$DSYMUTIL" >&6; }
7730 else
7731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7732 $as_echo "no" >&6; }
7737 if test -z "$ac_cv_prog_DSYMUTIL"; then
7738 ac_ct_DSYMUTIL=$DSYMUTIL
7739 # Extract the first word of "dsymutil", so it can be a program name with args.
7740 set dummy dsymutil; ac_word=$2
7741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7742 $as_echo_n "checking for $ac_word... " >&6; }
7743 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7744 $as_echo_n "(cached) " >&6
7745 else
7746 if test -n "$ac_ct_DSYMUTIL"; then
7747 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7748 else
7749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7750 for as_dir in $PATH
7752 IFS=$as_save_IFS
7753 test -z "$as_dir" && as_dir=.
7754 for ac_exec_ext in '' $ac_executable_extensions; do
7755 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7756 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7757 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7758 break 2
7760 done
7761 done
7762 IFS=$as_save_IFS
7766 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7767 if test -n "$ac_ct_DSYMUTIL"; then
7768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7769 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7770 else
7771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7772 $as_echo "no" >&6; }
7775 if test "x$ac_ct_DSYMUTIL" = x; then
7776 DSYMUTIL=":"
7777 else
7778 case $cross_compiling:$ac_tool_warned in
7779 yes:)
7780 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7781 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7782 ac_tool_warned=yes ;;
7783 esac
7784 DSYMUTIL=$ac_ct_DSYMUTIL
7786 else
7787 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7790 if test -n "$ac_tool_prefix"; then
7791 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7792 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7794 $as_echo_n "checking for $ac_word... " >&6; }
7795 if ${ac_cv_prog_NMEDIT+:} false; then :
7796 $as_echo_n "(cached) " >&6
7797 else
7798 if test -n "$NMEDIT"; then
7799 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7800 else
7801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7802 for as_dir in $PATH
7804 IFS=$as_save_IFS
7805 test -z "$as_dir" && as_dir=.
7806 for ac_exec_ext in '' $ac_executable_extensions; do
7807 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7808 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7809 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7810 break 2
7812 done
7813 done
7814 IFS=$as_save_IFS
7818 NMEDIT=$ac_cv_prog_NMEDIT
7819 if test -n "$NMEDIT"; then
7820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7821 $as_echo "$NMEDIT" >&6; }
7822 else
7823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7824 $as_echo "no" >&6; }
7829 if test -z "$ac_cv_prog_NMEDIT"; then
7830 ac_ct_NMEDIT=$NMEDIT
7831 # Extract the first word of "nmedit", so it can be a program name with args.
7832 set dummy nmedit; ac_word=$2
7833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7834 $as_echo_n "checking for $ac_word... " >&6; }
7835 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7836 $as_echo_n "(cached) " >&6
7837 else
7838 if test -n "$ac_ct_NMEDIT"; then
7839 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7840 else
7841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7842 for as_dir in $PATH
7844 IFS=$as_save_IFS
7845 test -z "$as_dir" && as_dir=.
7846 for ac_exec_ext in '' $ac_executable_extensions; do
7847 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7848 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7849 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7850 break 2
7852 done
7853 done
7854 IFS=$as_save_IFS
7858 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7859 if test -n "$ac_ct_NMEDIT"; then
7860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7861 $as_echo "$ac_ct_NMEDIT" >&6; }
7862 else
7863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7864 $as_echo "no" >&6; }
7867 if test "x$ac_ct_NMEDIT" = x; then
7868 NMEDIT=":"
7869 else
7870 case $cross_compiling:$ac_tool_warned in
7871 yes:)
7872 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7873 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7874 ac_tool_warned=yes ;;
7875 esac
7876 NMEDIT=$ac_ct_NMEDIT
7878 else
7879 NMEDIT="$ac_cv_prog_NMEDIT"
7882 if test -n "$ac_tool_prefix"; then
7883 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7884 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7886 $as_echo_n "checking for $ac_word... " >&6; }
7887 if ${ac_cv_prog_LIPO+:} false; then :
7888 $as_echo_n "(cached) " >&6
7889 else
7890 if test -n "$LIPO"; then
7891 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7892 else
7893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7894 for as_dir in $PATH
7896 IFS=$as_save_IFS
7897 test -z "$as_dir" && as_dir=.
7898 for ac_exec_ext in '' $ac_executable_extensions; do
7899 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7900 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7901 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7902 break 2
7904 done
7905 done
7906 IFS=$as_save_IFS
7910 LIPO=$ac_cv_prog_LIPO
7911 if test -n "$LIPO"; then
7912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7913 $as_echo "$LIPO" >&6; }
7914 else
7915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7916 $as_echo "no" >&6; }
7921 if test -z "$ac_cv_prog_LIPO"; then
7922 ac_ct_LIPO=$LIPO
7923 # Extract the first word of "lipo", so it can be a program name with args.
7924 set dummy lipo; ac_word=$2
7925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7926 $as_echo_n "checking for $ac_word... " >&6; }
7927 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7928 $as_echo_n "(cached) " >&6
7929 else
7930 if test -n "$ac_ct_LIPO"; then
7931 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7932 else
7933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7934 for as_dir in $PATH
7936 IFS=$as_save_IFS
7937 test -z "$as_dir" && as_dir=.
7938 for ac_exec_ext in '' $ac_executable_extensions; do
7939 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7940 ac_cv_prog_ac_ct_LIPO="lipo"
7941 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7942 break 2
7944 done
7945 done
7946 IFS=$as_save_IFS
7950 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7951 if test -n "$ac_ct_LIPO"; then
7952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7953 $as_echo "$ac_ct_LIPO" >&6; }
7954 else
7955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7956 $as_echo "no" >&6; }
7959 if test "x$ac_ct_LIPO" = x; then
7960 LIPO=":"
7961 else
7962 case $cross_compiling:$ac_tool_warned in
7963 yes:)
7964 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7965 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7966 ac_tool_warned=yes ;;
7967 esac
7968 LIPO=$ac_ct_LIPO
7970 else
7971 LIPO="$ac_cv_prog_LIPO"
7974 if test -n "$ac_tool_prefix"; then
7975 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7976 set dummy ${ac_tool_prefix}otool; ac_word=$2
7977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7978 $as_echo_n "checking for $ac_word... " >&6; }
7979 if ${ac_cv_prog_OTOOL+:} false; then :
7980 $as_echo_n "(cached) " >&6
7981 else
7982 if test -n "$OTOOL"; then
7983 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7984 else
7985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7986 for as_dir in $PATH
7988 IFS=$as_save_IFS
7989 test -z "$as_dir" && as_dir=.
7990 for ac_exec_ext in '' $ac_executable_extensions; do
7991 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7992 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7993 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7994 break 2
7996 done
7997 done
7998 IFS=$as_save_IFS
8002 OTOOL=$ac_cv_prog_OTOOL
8003 if test -n "$OTOOL"; then
8004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8005 $as_echo "$OTOOL" >&6; }
8006 else
8007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8008 $as_echo "no" >&6; }
8013 if test -z "$ac_cv_prog_OTOOL"; then
8014 ac_ct_OTOOL=$OTOOL
8015 # Extract the first word of "otool", so it can be a program name with args.
8016 set dummy otool; ac_word=$2
8017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8018 $as_echo_n "checking for $ac_word... " >&6; }
8019 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8020 $as_echo_n "(cached) " >&6
8021 else
8022 if test -n "$ac_ct_OTOOL"; then
8023 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8024 else
8025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8026 for as_dir in $PATH
8028 IFS=$as_save_IFS
8029 test -z "$as_dir" && as_dir=.
8030 for ac_exec_ext in '' $ac_executable_extensions; do
8031 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8032 ac_cv_prog_ac_ct_OTOOL="otool"
8033 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8034 break 2
8036 done
8037 done
8038 IFS=$as_save_IFS
8042 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8043 if test -n "$ac_ct_OTOOL"; then
8044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8045 $as_echo "$ac_ct_OTOOL" >&6; }
8046 else
8047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8048 $as_echo "no" >&6; }
8051 if test "x$ac_ct_OTOOL" = x; then
8052 OTOOL=":"
8053 else
8054 case $cross_compiling:$ac_tool_warned in
8055 yes:)
8056 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8057 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8058 ac_tool_warned=yes ;;
8059 esac
8060 OTOOL=$ac_ct_OTOOL
8062 else
8063 OTOOL="$ac_cv_prog_OTOOL"
8066 if test -n "$ac_tool_prefix"; then
8067 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8068 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8070 $as_echo_n "checking for $ac_word... " >&6; }
8071 if ${ac_cv_prog_OTOOL64+:} false; then :
8072 $as_echo_n "(cached) " >&6
8073 else
8074 if test -n "$OTOOL64"; then
8075 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8076 else
8077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8078 for as_dir in $PATH
8080 IFS=$as_save_IFS
8081 test -z "$as_dir" && as_dir=.
8082 for ac_exec_ext in '' $ac_executable_extensions; do
8083 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8084 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8085 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8086 break 2
8088 done
8089 done
8090 IFS=$as_save_IFS
8094 OTOOL64=$ac_cv_prog_OTOOL64
8095 if test -n "$OTOOL64"; then
8096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8097 $as_echo "$OTOOL64" >&6; }
8098 else
8099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8100 $as_echo "no" >&6; }
8105 if test -z "$ac_cv_prog_OTOOL64"; then
8106 ac_ct_OTOOL64=$OTOOL64
8107 # Extract the first word of "otool64", so it can be a program name with args.
8108 set dummy otool64; ac_word=$2
8109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8110 $as_echo_n "checking for $ac_word... " >&6; }
8111 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8112 $as_echo_n "(cached) " >&6
8113 else
8114 if test -n "$ac_ct_OTOOL64"; then
8115 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8116 else
8117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8118 for as_dir in $PATH
8120 IFS=$as_save_IFS
8121 test -z "$as_dir" && as_dir=.
8122 for ac_exec_ext in '' $ac_executable_extensions; do
8123 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8124 ac_cv_prog_ac_ct_OTOOL64="otool64"
8125 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8126 break 2
8128 done
8129 done
8130 IFS=$as_save_IFS
8134 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8135 if test -n "$ac_ct_OTOOL64"; then
8136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8137 $as_echo "$ac_ct_OTOOL64" >&6; }
8138 else
8139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8140 $as_echo "no" >&6; }
8143 if test "x$ac_ct_OTOOL64" = x; then
8144 OTOOL64=":"
8145 else
8146 case $cross_compiling:$ac_tool_warned in
8147 yes:)
8148 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8149 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8150 ac_tool_warned=yes ;;
8151 esac
8152 OTOOL64=$ac_ct_OTOOL64
8154 else
8155 OTOOL64="$ac_cv_prog_OTOOL64"
8184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8185 $as_echo_n "checking for -single_module linker flag... " >&6; }
8186 if ${lt_cv_apple_cc_single_mod+:} false; then :
8187 $as_echo_n "(cached) " >&6
8188 else
8189 lt_cv_apple_cc_single_mod=no
8190 if test -z "${LT_MULTI_MODULE}"; then
8191 # By default we will add the -single_module flag. You can override
8192 # by either setting the environment variable LT_MULTI_MODULE
8193 # non-empty at configure time, or by adding -multi_module to the
8194 # link flags.
8195 rm -rf libconftest.dylib*
8196 echo "int foo(void){return 1;}" > conftest.c
8197 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8198 -dynamiclib -Wl,-single_module conftest.c" >&5
8199 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8200 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8201 _lt_result=$?
8202 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8203 lt_cv_apple_cc_single_mod=yes
8204 else
8205 cat conftest.err >&5
8207 rm -rf libconftest.dylib*
8208 rm -f conftest.*
8211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8212 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8214 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8215 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8216 $as_echo_n "(cached) " >&6
8217 else
8218 lt_cv_ld_exported_symbols_list=no
8219 save_LDFLAGS=$LDFLAGS
8220 echo "_main" > conftest.sym
8221 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8223 /* end confdefs.h. */
8226 main ()
8230 return 0;
8232 _ACEOF
8233 if ac_fn_c_try_link "$LINENO"; then :
8234 lt_cv_ld_exported_symbols_list=yes
8235 else
8236 lt_cv_ld_exported_symbols_list=no
8238 rm -f core conftest.err conftest.$ac_objext \
8239 conftest$ac_exeext conftest.$ac_ext
8240 LDFLAGS="$save_LDFLAGS"
8243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8244 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8246 $as_echo_n "checking for -force_load linker flag... " >&6; }
8247 if ${lt_cv_ld_force_load+:} false; then :
8248 $as_echo_n "(cached) " >&6
8249 else
8250 lt_cv_ld_force_load=no
8251 cat > conftest.c << _LT_EOF
8252 int forced_loaded() { return 2;}
8253 _LT_EOF
8254 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8255 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8256 echo "$AR cru libconftest.a conftest.o" >&5
8257 $AR cru libconftest.a conftest.o 2>&5
8258 cat > conftest.c << _LT_EOF
8259 int main() { return 0;}
8260 _LT_EOF
8261 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8262 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8263 _lt_result=$?
8264 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8265 lt_cv_ld_force_load=yes
8266 else
8267 cat conftest.err >&5
8269 rm -f conftest.err libconftest.a conftest conftest.c
8270 rm -rf conftest.dSYM
8273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8274 $as_echo "$lt_cv_ld_force_load" >&6; }
8275 # Allow for Darwin 4-7 (macOS 10.0-10.3) although these are not expect to
8276 # build without first building modern cctools / linker.
8277 case $host_cpu-$host_os in
8278 *-rhapsody* | *-darwin1.[012])
8279 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8280 *-darwin1.*)
8281 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8282 *-darwin*)
8283 # darwin 5.x (macOS 10.1) onwards we only need to adjust when the
8284 # deployment target is forced to an earlier version.
8285 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host in
8286 UNSET,*-darwin[89]*|UNSET,*-darwin[12][0123456789]*)
8288 10.[012][,.]*)
8289 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8293 esac
8295 esac
8296 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8297 _lt_dar_single_mod='$single_module'
8299 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8300 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8301 else
8302 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8304 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8305 _lt_dsymutil='~$DSYMUTIL $lib || :'
8306 else
8307 _lt_dsymutil=
8310 esac
8312 ac_ext=c
8313 ac_cpp='$CPP $CPPFLAGS'
8314 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8315 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8316 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
8318 $as_echo_n "checking how to run the C preprocessor... " >&6; }
8319 # On Suns, sometimes $CPP names a directory.
8320 if test -n "$CPP" && test -d "$CPP"; then
8321 CPP=
8323 if test -z "$CPP"; then
8324 if ${ac_cv_prog_CPP+:} false; then :
8325 $as_echo_n "(cached) " >&6
8326 else
8327 # Double quotes because CPP needs to be expanded
8328 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
8330 ac_preproc_ok=false
8331 for ac_c_preproc_warn_flag in '' yes
8333 # Use a header file that comes with gcc, so configuring glibc
8334 # with a fresh cross-compiler works.
8335 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8336 # <limits.h> exists even on freestanding compilers.
8337 # On the NeXT, cc -E runs the code through the compiler's parser,
8338 # not just through cpp. "Syntax error" is here to catch this case.
8339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8340 /* end confdefs.h. */
8341 #ifdef __STDC__
8342 # include <limits.h>
8343 #else
8344 # include <assert.h>
8345 #endif
8346 Syntax error
8347 _ACEOF
8348 if ac_fn_c_try_cpp "$LINENO"; then :
8350 else
8351 # Broken: fails on valid input.
8352 continue
8354 rm -f conftest.err conftest.i conftest.$ac_ext
8356 # OK, works on sane cases. Now check whether nonexistent headers
8357 # can be detected and how.
8358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8359 /* end confdefs.h. */
8360 #include <ac_nonexistent.h>
8361 _ACEOF
8362 if ac_fn_c_try_cpp "$LINENO"; then :
8363 # Broken: success on invalid input.
8364 continue
8365 else
8366 # Passes both tests.
8367 ac_preproc_ok=:
8368 break
8370 rm -f conftest.err conftest.i conftest.$ac_ext
8372 done
8373 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8374 rm -f conftest.i conftest.err conftest.$ac_ext
8375 if $ac_preproc_ok; then :
8376 break
8379 done
8380 ac_cv_prog_CPP=$CPP
8383 CPP=$ac_cv_prog_CPP
8384 else
8385 ac_cv_prog_CPP=$CPP
8387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
8388 $as_echo "$CPP" >&6; }
8389 ac_preproc_ok=false
8390 for ac_c_preproc_warn_flag in '' yes
8392 # Use a header file that comes with gcc, so configuring glibc
8393 # with a fresh cross-compiler works.
8394 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8395 # <limits.h> exists even on freestanding compilers.
8396 # On the NeXT, cc -E runs the code through the compiler's parser,
8397 # not just through cpp. "Syntax error" is here to catch this case.
8398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8399 /* end confdefs.h. */
8400 #ifdef __STDC__
8401 # include <limits.h>
8402 #else
8403 # include <assert.h>
8404 #endif
8405 Syntax error
8406 _ACEOF
8407 if ac_fn_c_try_cpp "$LINENO"; then :
8409 else
8410 # Broken: fails on valid input.
8411 continue
8413 rm -f conftest.err conftest.i conftest.$ac_ext
8415 # OK, works on sane cases. Now check whether nonexistent headers
8416 # can be detected and how.
8417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8418 /* end confdefs.h. */
8419 #include <ac_nonexistent.h>
8420 _ACEOF
8421 if ac_fn_c_try_cpp "$LINENO"; then :
8422 # Broken: success on invalid input.
8423 continue
8424 else
8425 # Passes both tests.
8426 ac_preproc_ok=:
8427 break
8429 rm -f conftest.err conftest.i conftest.$ac_ext
8431 done
8432 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8433 rm -f conftest.i conftest.err conftest.$ac_ext
8434 if $ac_preproc_ok; then :
8436 else
8437 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8438 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8439 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
8440 See \`config.log' for more details" "$LINENO" 5; }
8443 ac_ext=c
8444 ac_cpp='$CPP $CPPFLAGS'
8445 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8446 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8447 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8451 $as_echo_n "checking for ANSI C header files... " >&6; }
8452 if ${ac_cv_header_stdc+:} false; then :
8453 $as_echo_n "(cached) " >&6
8454 else
8455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8456 /* end confdefs.h. */
8457 #include <stdlib.h>
8458 #include <stdarg.h>
8459 #include <string.h>
8460 #include <float.h>
8463 main ()
8467 return 0;
8469 _ACEOF
8470 if ac_fn_c_try_compile "$LINENO"; then :
8471 ac_cv_header_stdc=yes
8472 else
8473 ac_cv_header_stdc=no
8475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8477 if test $ac_cv_header_stdc = yes; then
8478 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8480 /* end confdefs.h. */
8481 #include <string.h>
8483 _ACEOF
8484 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8485 $EGREP "memchr" >/dev/null 2>&1; then :
8487 else
8488 ac_cv_header_stdc=no
8490 rm -f conftest*
8494 if test $ac_cv_header_stdc = yes; then
8495 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8497 /* end confdefs.h. */
8498 #include <stdlib.h>
8500 _ACEOF
8501 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8502 $EGREP "free" >/dev/null 2>&1; then :
8504 else
8505 ac_cv_header_stdc=no
8507 rm -f conftest*
8511 if test $ac_cv_header_stdc = yes; then
8512 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8513 if test "$cross_compiling" = yes; then :
8515 else
8516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8517 /* end confdefs.h. */
8518 #include <ctype.h>
8519 #include <stdlib.h>
8520 #if ((' ' & 0x0FF) == 0x020)
8521 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8522 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8523 #else
8524 # define ISLOWER(c) \
8525 (('a' <= (c) && (c) <= 'i') \
8526 || ('j' <= (c) && (c) <= 'r') \
8527 || ('s' <= (c) && (c) <= 'z'))
8528 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8529 #endif
8531 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8533 main ()
8535 int i;
8536 for (i = 0; i < 256; i++)
8537 if (XOR (islower (i), ISLOWER (i))
8538 || toupper (i) != TOUPPER (i))
8539 return 2;
8540 return 0;
8542 _ACEOF
8543 if ac_fn_c_try_run "$LINENO"; then :
8545 else
8546 ac_cv_header_stdc=no
8548 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8549 conftest.$ac_objext conftest.beam conftest.$ac_ext
8554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8555 $as_echo "$ac_cv_header_stdc" >&6; }
8556 if test $ac_cv_header_stdc = yes; then
8558 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8562 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8563 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8564 inttypes.h stdint.h unistd.h
8565 do :
8566 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8567 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8569 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8570 cat >>confdefs.h <<_ACEOF
8571 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8572 _ACEOF
8576 done
8579 for ac_header in dlfcn.h
8580 do :
8581 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8583 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8584 cat >>confdefs.h <<_ACEOF
8585 #define HAVE_DLFCN_H 1
8586 _ACEOF
8590 done
8597 # Set options
8601 enable_dlopen=no
8604 enable_win32_dll=no
8607 # Check whether --enable-shared was given.
8608 if test "${enable_shared+set}" = set; then :
8609 enableval=$enable_shared; p=${PACKAGE-default}
8610 case $enableval in
8611 yes) enable_shared=yes ;;
8612 no) enable_shared=no ;;
8614 enable_shared=no
8615 # Look at the argument we got. We use all the common list separators.
8616 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8617 for pkg in $enableval; do
8618 IFS="$lt_save_ifs"
8619 if test "X$pkg" = "X$p"; then
8620 enable_shared=yes
8622 done
8623 IFS="$lt_save_ifs"
8625 esac
8626 else
8627 enable_shared=yes
8638 # Check whether --enable-static was given.
8639 if test "${enable_static+set}" = set; then :
8640 enableval=$enable_static; p=${PACKAGE-default}
8641 case $enableval in
8642 yes) enable_static=yes ;;
8643 no) enable_static=no ;;
8645 enable_static=no
8646 # Look at the argument we got. We use all the common list separators.
8647 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8648 for pkg in $enableval; do
8649 IFS="$lt_save_ifs"
8650 if test "X$pkg" = "X$p"; then
8651 enable_static=yes
8653 done
8654 IFS="$lt_save_ifs"
8656 esac
8657 else
8658 enable_static=yes
8670 # Check whether --with-pic was given.
8671 if test "${with_pic+set}" = set; then :
8672 withval=$with_pic; pic_mode="$withval"
8673 else
8674 pic_mode=default
8678 test -z "$pic_mode" && pic_mode=default
8686 # Check whether --enable-fast-install was given.
8687 if test "${enable_fast_install+set}" = set; then :
8688 enableval=$enable_fast_install; p=${PACKAGE-default}
8689 case $enableval in
8690 yes) enable_fast_install=yes ;;
8691 no) enable_fast_install=no ;;
8693 enable_fast_install=no
8694 # Look at the argument we got. We use all the common list separators.
8695 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8696 for pkg in $enableval; do
8697 IFS="$lt_save_ifs"
8698 if test "X$pkg" = "X$p"; then
8699 enable_fast_install=yes
8701 done
8702 IFS="$lt_save_ifs"
8704 esac
8705 else
8706 enable_fast_install=yes
8719 # This can be used to rebuild libtool when needed
8720 LIBTOOL_DEPS="$ltmain"
8722 # Always use our own libtool.
8723 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8750 test -z "$LN_S" && LN_S="ln -s"
8765 if test -n "${ZSH_VERSION+set}" ; then
8766 setopt NO_GLOB_SUBST
8769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8770 $as_echo_n "checking for objdir... " >&6; }
8771 if ${lt_cv_objdir+:} false; then :
8772 $as_echo_n "(cached) " >&6
8773 else
8774 rm -f .libs 2>/dev/null
8775 mkdir .libs 2>/dev/null
8776 if test -d .libs; then
8777 lt_cv_objdir=.libs
8778 else
8779 # MS-DOS does not allow filenames that begin with a dot.
8780 lt_cv_objdir=_libs
8782 rmdir .libs 2>/dev/null
8784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8785 $as_echo "$lt_cv_objdir" >&6; }
8786 objdir=$lt_cv_objdir
8792 cat >>confdefs.h <<_ACEOF
8793 #define LT_OBJDIR "$lt_cv_objdir/"
8794 _ACEOF
8799 case $host_os in
8800 aix3*)
8801 # AIX sometimes has problems with the GCC collect2 program. For some
8802 # reason, if we set the COLLECT_NAMES environment variable, the problems
8803 # vanish in a puff of smoke.
8804 if test "X${COLLECT_NAMES+set}" != Xset; then
8805 COLLECT_NAMES=
8806 export COLLECT_NAMES
8809 esac
8811 # Global variables:
8812 ofile=libtool
8813 can_build_shared=yes
8815 # All known linkers require a `.a' archive for static linking (except MSVC,
8816 # which needs '.lib').
8817 libext=a
8819 with_gnu_ld="$lt_cv_prog_gnu_ld"
8821 old_CC="$CC"
8822 old_CFLAGS="$CFLAGS"
8824 # Set sane defaults for various variables
8825 test -z "$CC" && CC=cc
8826 test -z "$LTCC" && LTCC=$CC
8827 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8828 test -z "$LD" && LD=ld
8829 test -z "$ac_objext" && ac_objext=o
8831 for cc_temp in $compiler""; do
8832 case $cc_temp in
8833 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8834 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8835 \-*) ;;
8836 *) break;;
8837 esac
8838 done
8839 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8842 # Only perform the check for file, if the check method requires it
8843 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8844 case $deplibs_check_method in
8845 file_magic*)
8846 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8848 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8849 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8850 $as_echo_n "(cached) " >&6
8851 else
8852 case $MAGIC_CMD in
8853 [\\/*] | ?:[\\/]*)
8854 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8857 lt_save_MAGIC_CMD="$MAGIC_CMD"
8858 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8859 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8860 for ac_dir in $ac_dummy; do
8861 IFS="$lt_save_ifs"
8862 test -z "$ac_dir" && ac_dir=.
8863 if test -f $ac_dir/${ac_tool_prefix}file; then
8864 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8865 if test -n "$file_magic_test_file"; then
8866 case $deplibs_check_method in
8867 "file_magic "*)
8868 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8869 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8870 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8871 $EGREP "$file_magic_regex" > /dev/null; then
8873 else
8874 cat <<_LT_EOF 1>&2
8876 *** Warning: the command libtool uses to detect shared libraries,
8877 *** $file_magic_cmd, produces output that libtool cannot recognize.
8878 *** The result is that libtool may fail to recognize shared libraries
8879 *** as such. This will affect the creation of libtool libraries that
8880 *** depend on shared libraries, but programs linked with such libtool
8881 *** libraries will work regardless of this problem. Nevertheless, you
8882 *** may want to report the problem to your system manager and/or to
8883 *** bug-libtool@gnu.org
8885 _LT_EOF
8886 fi ;;
8887 esac
8889 break
8891 done
8892 IFS="$lt_save_ifs"
8893 MAGIC_CMD="$lt_save_MAGIC_CMD"
8895 esac
8898 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8899 if test -n "$MAGIC_CMD"; then
8900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8901 $as_echo "$MAGIC_CMD" >&6; }
8902 else
8903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8904 $as_echo "no" >&6; }
8911 if test -z "$lt_cv_path_MAGIC_CMD"; then
8912 if test -n "$ac_tool_prefix"; then
8913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8914 $as_echo_n "checking for file... " >&6; }
8915 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8916 $as_echo_n "(cached) " >&6
8917 else
8918 case $MAGIC_CMD in
8919 [\\/*] | ?:[\\/]*)
8920 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8923 lt_save_MAGIC_CMD="$MAGIC_CMD"
8924 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8925 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8926 for ac_dir in $ac_dummy; do
8927 IFS="$lt_save_ifs"
8928 test -z "$ac_dir" && ac_dir=.
8929 if test -f $ac_dir/file; then
8930 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8931 if test -n "$file_magic_test_file"; then
8932 case $deplibs_check_method in
8933 "file_magic "*)
8934 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8935 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8936 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8937 $EGREP "$file_magic_regex" > /dev/null; then
8939 else
8940 cat <<_LT_EOF 1>&2
8942 *** Warning: the command libtool uses to detect shared libraries,
8943 *** $file_magic_cmd, produces output that libtool cannot recognize.
8944 *** The result is that libtool may fail to recognize shared libraries
8945 *** as such. This will affect the creation of libtool libraries that
8946 *** depend on shared libraries, but programs linked with such libtool
8947 *** libraries will work regardless of this problem. Nevertheless, you
8948 *** may want to report the problem to your system manager and/or to
8949 *** bug-libtool@gnu.org
8951 _LT_EOF
8952 fi ;;
8953 esac
8955 break
8957 done
8958 IFS="$lt_save_ifs"
8959 MAGIC_CMD="$lt_save_MAGIC_CMD"
8961 esac
8964 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8965 if test -n "$MAGIC_CMD"; then
8966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8967 $as_echo "$MAGIC_CMD" >&6; }
8968 else
8969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8970 $as_echo "no" >&6; }
8974 else
8975 MAGIC_CMD=:
8981 esac
8983 # Use C for the default configuration in the libtool script
8985 lt_save_CC="$CC"
8986 ac_ext=c
8987 ac_cpp='$CPP $CPPFLAGS'
8988 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8989 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8990 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8993 # Source file extension for C test sources.
8994 ac_ext=c
8996 # Object file extension for compiled C test sources.
8997 objext=o
8998 objext=$objext
9000 # Code to be used in simple compile tests
9001 lt_simple_compile_test_code="int some_variable = 0;"
9003 # Code to be used in simple link tests
9004 lt_simple_link_test_code='int main(){return(0);}'
9012 # If no C compiler was specified, use CC.
9013 LTCC=${LTCC-"$CC"}
9015 # If no C compiler flags were specified, use CFLAGS.
9016 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9018 # Allow CC to be a program name with arguments.
9019 compiler=$CC
9021 # Save the default compiler, since it gets overwritten when the other
9022 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9023 compiler_DEFAULT=$CC
9025 # save warnings/boilerplate of simple test code
9026 ac_outfile=conftest.$ac_objext
9027 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9028 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9029 _lt_compiler_boilerplate=`cat conftest.err`
9030 $RM conftest*
9032 ac_outfile=conftest.$ac_objext
9033 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9034 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9035 _lt_linker_boilerplate=`cat conftest.err`
9036 $RM -r conftest*
9039 ## CAVEAT EMPTOR:
9040 ## There is no encapsulation within the following macros, do not change
9041 ## the running order or otherwise move them around unless you know exactly
9042 ## what you are doing...
9043 if test -n "$compiler"; then
9045 lt_prog_compiler_no_builtin_flag=
9047 if test "$GCC" = yes; then
9048 case $cc_basename in
9049 nvcc*)
9050 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9052 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9053 esac
9055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9056 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9057 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9058 $as_echo_n "(cached) " >&6
9059 else
9060 lt_cv_prog_compiler_rtti_exceptions=no
9061 ac_outfile=conftest.$ac_objext
9062 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9063 lt_compiler_flag="-fno-rtti -fno-exceptions"
9064 # Insert the option either (1) after the last *FLAGS variable, or
9065 # (2) before a word containing "conftest.", or (3) at the end.
9066 # Note that $ac_compile itself does not contain backslashes and begins
9067 # with a dollar sign (not a hyphen), so the echo should work correctly.
9068 # The option is referenced via a variable to avoid confusing sed.
9069 lt_compile=`echo "$ac_compile" | $SED \
9070 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9071 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9072 -e 's:$: $lt_compiler_flag:'`
9073 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9074 (eval "$lt_compile" 2>conftest.err)
9075 ac_status=$?
9076 cat conftest.err >&5
9077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9078 if (exit $ac_status) && test -s "$ac_outfile"; then
9079 # The compiler can only warn and ignore the option if not recognized
9080 # So say no if there are warnings other than the usual output.
9081 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9082 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9083 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9084 lt_cv_prog_compiler_rtti_exceptions=yes
9087 $RM conftest*
9090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9091 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9093 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9094 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9095 else
9106 lt_prog_compiler_wl=
9107 lt_prog_compiler_pic=
9108 lt_prog_compiler_static=
9110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9111 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9113 if test "$GCC" = yes; then
9114 lt_prog_compiler_wl='-Wl,'
9115 lt_prog_compiler_static='-static'
9117 case $host_os in
9118 aix*)
9119 # All AIX code is PIC.
9120 if test "$host_cpu" = ia64; then
9121 # AIX 5 now supports IA64 processor
9122 lt_prog_compiler_static='-Bstatic'
9124 lt_prog_compiler_pic='-fPIC'
9127 amigaos*)
9128 case $host_cpu in
9129 powerpc)
9130 # see comment about AmigaOS4 .so support
9131 lt_prog_compiler_pic='-fPIC'
9133 m68k)
9134 # FIXME: we need at least 68020 code to build shared libraries, but
9135 # adding the `-m68020' flag to GCC prevents building anything better,
9136 # like `-m68040'.
9137 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9139 esac
9142 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9143 # PIC is the default for these OSes.
9146 mingw* | cygwin* | pw32* | os2* | cegcc*)
9147 # This hack is so that the source file can tell whether it is being
9148 # built for inclusion in a dll (and should export symbols for example).
9149 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9150 # (--disable-auto-import) libraries
9151 lt_prog_compiler_pic='-DDLL_EXPORT'
9154 darwin* | rhapsody*)
9155 # PIC is the default on this platform
9156 # Common symbols not allowed in MH_DYLIB files
9157 lt_prog_compiler_pic='-fno-common'
9160 haiku*)
9161 # PIC is the default for Haiku.
9162 # The "-static" flag exists, but is broken.
9163 lt_prog_compiler_static=
9166 hpux*)
9167 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9168 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9169 # sets the default TLS model and affects inlining.
9170 case $host_cpu in
9171 hppa*64*)
9172 # +Z the default
9175 lt_prog_compiler_pic='-fPIC'
9177 esac
9180 interix[3-9]*)
9181 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9182 # Instead, we relocate shared libraries at runtime.
9185 msdosdjgpp*)
9186 # Just because we use GCC doesn't mean we suddenly get shared libraries
9187 # on systems that don't support them.
9188 lt_prog_compiler_can_build_shared=no
9189 enable_shared=no
9192 *nto* | *qnx*)
9193 # QNX uses GNU C++, but need to define -shared option too, otherwise
9194 # it will coredump.
9195 lt_prog_compiler_pic='-fPIC -shared'
9198 sysv4*MP*)
9199 if test -d /usr/nec; then
9200 lt_prog_compiler_pic=-Kconform_pic
9205 lt_prog_compiler_pic='-fPIC'
9207 esac
9209 case $cc_basename in
9210 nvcc*) # Cuda Compiler Driver 2.2
9211 lt_prog_compiler_wl='-Xlinker '
9212 lt_prog_compiler_pic='-Xcompiler -fPIC'
9214 esac
9215 else
9216 # PORTME Check for flag to pass linker flags through the system compiler.
9217 case $host_os in
9218 aix*)
9219 lt_prog_compiler_wl='-Wl,'
9220 if test "$host_cpu" = ia64; then
9221 # AIX 5 now supports IA64 processor
9222 lt_prog_compiler_static='-Bstatic'
9223 else
9224 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9228 mingw* | cygwin* | pw32* | os2* | cegcc*)
9229 # This hack is so that the source file can tell whether it is being
9230 # built for inclusion in a dll (and should export symbols for example).
9231 lt_prog_compiler_pic='-DDLL_EXPORT'
9234 hpux9* | hpux10* | hpux11*)
9235 lt_prog_compiler_wl='-Wl,'
9236 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9237 # not for PA HP-UX.
9238 case $host_cpu in
9239 hppa*64*|ia64*)
9240 # +Z the default
9243 lt_prog_compiler_pic='+Z'
9245 esac
9246 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9247 lt_prog_compiler_static='${wl}-a ${wl}archive'
9250 irix5* | irix6* | nonstopux*)
9251 lt_prog_compiler_wl='-Wl,'
9252 # PIC (with -KPIC) is the default.
9253 lt_prog_compiler_static='-non_shared'
9256 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9257 case $cc_basename in
9258 # old Intel for x86_64 which still supported -KPIC.
9259 ecc*)
9260 lt_prog_compiler_wl='-Wl,'
9261 lt_prog_compiler_pic='-KPIC'
9262 lt_prog_compiler_static='-static'
9264 # icc used to be incompatible with GCC.
9265 # ICC 10 doesn't accept -KPIC any more.
9266 icc* | ifort*)
9267 lt_prog_compiler_wl='-Wl,'
9268 lt_prog_compiler_pic='-fPIC'
9269 lt_prog_compiler_static='-static'
9271 # Lahey Fortran 8.1.
9272 lf95*)
9273 lt_prog_compiler_wl='-Wl,'
9274 lt_prog_compiler_pic='--shared'
9275 lt_prog_compiler_static='--static'
9277 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9278 # Portland Group compilers (*not* the Pentium gcc compiler,
9279 # which looks to be a dead project)
9280 lt_prog_compiler_wl='-Wl,'
9281 lt_prog_compiler_pic='-fpic'
9282 lt_prog_compiler_static='-Bstatic'
9284 ccc*)
9285 lt_prog_compiler_wl='-Wl,'
9286 # All Alpha code is PIC.
9287 lt_prog_compiler_static='-non_shared'
9289 xl* | bgxl* | bgf* | mpixl*)
9290 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9291 lt_prog_compiler_wl='-Wl,'
9292 lt_prog_compiler_pic='-qpic'
9293 lt_prog_compiler_static='-qstaticlink'
9296 case `$CC -V 2>&1 | sed 5q` in
9297 *Sun\ F* | *Sun*Fortran*)
9298 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9299 lt_prog_compiler_pic='-KPIC'
9300 lt_prog_compiler_static='-Bstatic'
9301 lt_prog_compiler_wl=''
9303 *Sun\ C*)
9304 # Sun C 5.9
9305 lt_prog_compiler_pic='-KPIC'
9306 lt_prog_compiler_static='-Bstatic'
9307 lt_prog_compiler_wl='-Wl,'
9309 esac
9311 esac
9314 newsos6)
9315 lt_prog_compiler_pic='-KPIC'
9316 lt_prog_compiler_static='-Bstatic'
9319 *nto* | *qnx*)
9320 # QNX uses GNU C++, but need to define -shared option too, otherwise
9321 # it will coredump.
9322 lt_prog_compiler_pic='-fPIC -shared'
9325 osf3* | osf4* | osf5*)
9326 lt_prog_compiler_wl='-Wl,'
9327 # All OSF/1 code is PIC.
9328 lt_prog_compiler_static='-non_shared'
9331 rdos*)
9332 lt_prog_compiler_static='-non_shared'
9335 solaris*)
9336 lt_prog_compiler_pic='-KPIC'
9337 lt_prog_compiler_static='-Bstatic'
9338 case $cc_basename in
9339 f77* | f90* | f95*)
9340 lt_prog_compiler_wl='-Qoption ld ';;
9342 lt_prog_compiler_wl='-Wl,';;
9343 esac
9346 sunos4*)
9347 lt_prog_compiler_wl='-Qoption ld '
9348 lt_prog_compiler_pic='-PIC'
9349 lt_prog_compiler_static='-Bstatic'
9352 sysv4 | sysv4.2uw2* | sysv4.3*)
9353 lt_prog_compiler_wl='-Wl,'
9354 lt_prog_compiler_pic='-KPIC'
9355 lt_prog_compiler_static='-Bstatic'
9358 sysv4*MP*)
9359 if test -d /usr/nec ;then
9360 lt_prog_compiler_pic='-Kconform_pic'
9361 lt_prog_compiler_static='-Bstatic'
9365 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9366 lt_prog_compiler_wl='-Wl,'
9367 lt_prog_compiler_pic='-KPIC'
9368 lt_prog_compiler_static='-Bstatic'
9371 unicos*)
9372 lt_prog_compiler_wl='-Wl,'
9373 lt_prog_compiler_can_build_shared=no
9376 uts4*)
9377 lt_prog_compiler_pic='-pic'
9378 lt_prog_compiler_static='-Bstatic'
9382 lt_prog_compiler_can_build_shared=no
9384 esac
9387 case $host_os in
9388 # For platforms which do not support PIC, -DPIC is meaningless:
9389 *djgpp*)
9390 lt_prog_compiler_pic=
9393 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9395 esac
9396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9397 $as_echo "$lt_prog_compiler_pic" >&6; }
9405 # Check to make sure the PIC flag actually works.
9407 if test -n "$lt_prog_compiler_pic"; then
9408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9409 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9410 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9411 $as_echo_n "(cached) " >&6
9412 else
9413 lt_cv_prog_compiler_pic_works=no
9414 ac_outfile=conftest.$ac_objext
9415 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9416 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9417 # Insert the option either (1) after the last *FLAGS variable, or
9418 # (2) before a word containing "conftest.", or (3) at the end.
9419 # Note that $ac_compile itself does not contain backslashes and begins
9420 # with a dollar sign (not a hyphen), so the echo should work correctly.
9421 # The option is referenced via a variable to avoid confusing sed.
9422 lt_compile=`echo "$ac_compile" | $SED \
9423 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9424 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9425 -e 's:$: $lt_compiler_flag:'`
9426 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9427 (eval "$lt_compile" 2>conftest.err)
9428 ac_status=$?
9429 cat conftest.err >&5
9430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9431 if (exit $ac_status) && test -s "$ac_outfile"; then
9432 # The compiler can only warn and ignore the option if not recognized
9433 # So say no if there are warnings other than the usual output.
9434 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9435 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9436 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9437 lt_cv_prog_compiler_pic_works=yes
9440 $RM conftest*
9443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9444 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9446 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9447 case $lt_prog_compiler_pic in
9448 "" | " "*) ;;
9449 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9450 esac
9451 else
9452 lt_prog_compiler_pic=
9453 lt_prog_compiler_can_build_shared=no
9464 # Check to make sure the static flag actually works.
9466 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9468 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9469 if ${lt_cv_prog_compiler_static_works+:} false; then :
9470 $as_echo_n "(cached) " >&6
9471 else
9472 lt_cv_prog_compiler_static_works=no
9473 save_LDFLAGS="$LDFLAGS"
9474 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9475 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9476 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9477 # The linker can only warn and ignore the option if not recognized
9478 # So say no if there are warnings
9479 if test -s conftest.err; then
9480 # Append any errors to the config.log.
9481 cat conftest.err 1>&5
9482 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9483 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9484 if diff conftest.exp conftest.er2 >/dev/null; then
9485 lt_cv_prog_compiler_static_works=yes
9487 else
9488 lt_cv_prog_compiler_static_works=yes
9491 $RM -r conftest*
9492 LDFLAGS="$save_LDFLAGS"
9495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9496 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9498 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9500 else
9501 lt_prog_compiler_static=
9510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9511 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9512 if ${lt_cv_prog_compiler_c_o+:} false; then :
9513 $as_echo_n "(cached) " >&6
9514 else
9515 lt_cv_prog_compiler_c_o=no
9516 $RM -r conftest 2>/dev/null
9517 mkdir conftest
9518 cd conftest
9519 mkdir out
9520 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9522 lt_compiler_flag="-o out/conftest2.$ac_objext"
9523 # Insert the option either (1) after the last *FLAGS variable, or
9524 # (2) before a word containing "conftest.", or (3) at the end.
9525 # Note that $ac_compile itself does not contain backslashes and begins
9526 # with a dollar sign (not a hyphen), so the echo should work correctly.
9527 lt_compile=`echo "$ac_compile" | $SED \
9528 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9529 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9530 -e 's:$: $lt_compiler_flag:'`
9531 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9532 (eval "$lt_compile" 2>out/conftest.err)
9533 ac_status=$?
9534 cat out/conftest.err >&5
9535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9536 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9537 then
9538 # The compiler can only warn and ignore the option if not recognized
9539 # So say no if there are warnings
9540 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9541 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9542 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9543 lt_cv_prog_compiler_c_o=yes
9546 chmod u+w . 2>&5
9547 $RM conftest*
9548 # SGI C++ compiler will create directory out/ii_files/ for
9549 # template instantiation
9550 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9551 $RM out/* && rmdir out
9552 cd ..
9553 $RM -r conftest
9554 $RM conftest*
9557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9558 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9566 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9567 if ${lt_cv_prog_compiler_c_o+:} false; then :
9568 $as_echo_n "(cached) " >&6
9569 else
9570 lt_cv_prog_compiler_c_o=no
9571 $RM -r conftest 2>/dev/null
9572 mkdir conftest
9573 cd conftest
9574 mkdir out
9575 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9577 lt_compiler_flag="-o out/conftest2.$ac_objext"
9578 # Insert the option either (1) after the last *FLAGS variable, or
9579 # (2) before a word containing "conftest.", or (3) at the end.
9580 # Note that $ac_compile itself does not contain backslashes and begins
9581 # with a dollar sign (not a hyphen), so the echo should work correctly.
9582 lt_compile=`echo "$ac_compile" | $SED \
9583 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9584 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9585 -e 's:$: $lt_compiler_flag:'`
9586 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9587 (eval "$lt_compile" 2>out/conftest.err)
9588 ac_status=$?
9589 cat out/conftest.err >&5
9590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9591 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9592 then
9593 # The compiler can only warn and ignore the option if not recognized
9594 # So say no if there are warnings
9595 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9596 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9597 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9598 lt_cv_prog_compiler_c_o=yes
9601 chmod u+w . 2>&5
9602 $RM conftest*
9603 # SGI C++ compiler will create directory out/ii_files/ for
9604 # template instantiation
9605 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9606 $RM out/* && rmdir out
9607 cd ..
9608 $RM -r conftest
9609 $RM conftest*
9612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9613 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9618 hard_links="nottested"
9619 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9620 # do not overwrite the value of need_locks provided by the user
9621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9622 $as_echo_n "checking if we can lock with hard links... " >&6; }
9623 hard_links=yes
9624 $RM conftest*
9625 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9626 touch conftest.a
9627 ln conftest.a conftest.b 2>&5 || hard_links=no
9628 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9630 $as_echo "$hard_links" >&6; }
9631 if test "$hard_links" = no; then
9632 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9633 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9634 need_locks=warn
9636 else
9637 need_locks=no
9645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9646 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9648 runpath_var=
9649 allow_undefined_flag=
9650 always_export_symbols=no
9651 archive_cmds=
9652 archive_expsym_cmds=
9653 compiler_needs_object=no
9654 enable_shared_with_static_runtimes=no
9655 export_dynamic_flag_spec=
9656 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9657 hardcode_automatic=no
9658 hardcode_direct=no
9659 hardcode_direct_absolute=no
9660 hardcode_libdir_flag_spec=
9661 hardcode_libdir_flag_spec_ld=
9662 hardcode_libdir_separator=
9663 hardcode_minus_L=no
9664 hardcode_shlibpath_var=unsupported
9665 inherit_rpath=no
9666 link_all_deplibs=unknown
9667 module_cmds=
9668 module_expsym_cmds=
9669 old_archive_from_new_cmds=
9670 old_archive_from_expsyms_cmds=
9671 thread_safe_flag_spec=
9672 whole_archive_flag_spec=
9673 # include_expsyms should be a list of space-separated symbols to be *always*
9674 # included in the symbol list
9675 include_expsyms=
9676 # exclude_expsyms can be an extended regexp of symbols to exclude
9677 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9678 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9679 # as well as any symbol that contains `d'.
9680 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9681 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9682 # platforms (ab)use it in PIC code, but their linkers get confused if
9683 # the symbol is explicitly referenced. Since portable code cannot
9684 # rely on this symbol name, it's probably fine to never include it in
9685 # preloaded symbol tables.
9686 # Exclude shared library initialization/finalization symbols.
9687 extract_expsyms_cmds=
9689 case $host_os in
9690 cygwin* | mingw* | pw32* | cegcc*)
9691 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9692 # When not using gcc, we currently assume that we are using
9693 # Microsoft Visual C++.
9694 if test "$GCC" != yes; then
9695 with_gnu_ld=no
9698 interix*)
9699 # we just hope/assume this is gcc and not c89 (= MSVC++)
9700 with_gnu_ld=yes
9702 openbsd*)
9703 with_gnu_ld=no
9705 esac
9707 ld_shlibs=yes
9709 # On some targets, GNU ld is compatible enough with the native linker
9710 # that we're better off using the native interface for both.
9711 lt_use_gnu_ld_interface=no
9712 if test "$with_gnu_ld" = yes; then
9713 case $host_os in
9714 aix*)
9715 # The AIX port of GNU ld has always aspired to compatibility
9716 # with the native linker. However, as the warning in the GNU ld
9717 # block says, versions before 2.19.5* couldn't really create working
9718 # shared libraries, regardless of the interface used.
9719 case `$LD -v 2>&1` in
9720 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9721 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9722 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9724 lt_use_gnu_ld_interface=yes
9726 esac
9729 lt_use_gnu_ld_interface=yes
9731 esac
9734 if test "$lt_use_gnu_ld_interface" = yes; then
9735 # If archive_cmds runs LD, not CC, wlarc should be empty
9736 wlarc='${wl}'
9738 # Set some defaults for GNU ld with shared library support. These
9739 # are reset later if shared libraries are not supported. Putting them
9740 # here allows them to be overridden if necessary.
9741 runpath_var=LD_RUN_PATH
9742 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9743 export_dynamic_flag_spec='${wl}--export-dynamic'
9744 # ancient GNU ld didn't support --whole-archive et. al.
9745 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9746 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9747 else
9748 whole_archive_flag_spec=
9750 supports_anon_versioning=no
9751 case `$LD -v 2>&1` in
9752 *GNU\ gold*) supports_anon_versioning=yes ;;
9753 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9754 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9755 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9756 *\ 2.11.*) ;; # other 2.11 versions
9757 *) supports_anon_versioning=yes ;;
9758 esac
9760 # See if GNU ld supports shared libraries.
9761 case $host_os in
9762 aix[3-9]*)
9763 # On AIX/PPC, the GNU linker is very broken
9764 if test "$host_cpu" != ia64; then
9765 ld_shlibs=no
9766 cat <<_LT_EOF 1>&2
9768 *** Warning: the GNU linker, at least up to release 2.19, is reported
9769 *** to be unable to reliably create shared libraries on AIX.
9770 *** Therefore, libtool is disabling shared libraries support. If you
9771 *** really care for shared libraries, you may want to install binutils
9772 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9773 *** You will then need to restart the configuration process.
9775 _LT_EOF
9779 amigaos*)
9780 case $host_cpu in
9781 powerpc)
9782 # see comment about AmigaOS4 .so support
9783 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9784 archive_expsym_cmds=''
9786 m68k)
9787 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)'
9788 hardcode_libdir_flag_spec='-L$libdir'
9789 hardcode_minus_L=yes
9791 esac
9794 beos*)
9795 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9796 allow_undefined_flag=unsupported
9797 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9798 # support --undefined. This deserves some investigation. FIXME
9799 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9800 else
9801 ld_shlibs=no
9805 cygwin* | mingw* | pw32* | cegcc*)
9806 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9807 # as there is no search path for DLLs.
9808 hardcode_libdir_flag_spec='-L$libdir'
9809 export_dynamic_flag_spec='${wl}--export-all-symbols'
9810 allow_undefined_flag=unsupported
9811 always_export_symbols=no
9812 enable_shared_with_static_runtimes=yes
9813 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9815 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9816 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9817 # If the export-symbols file already is a .def file (1st line
9818 # is EXPORTS), use it as is; otherwise, prepend...
9819 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9820 cp $export_symbols $output_objdir/$soname.def;
9821 else
9822 echo EXPORTS > $output_objdir/$soname.def;
9823 cat $export_symbols >> $output_objdir/$soname.def;
9825 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9826 else
9827 ld_shlibs=no
9831 haiku*)
9832 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9833 link_all_deplibs=yes
9836 interix[3-9]*)
9837 hardcode_direct=no
9838 hardcode_shlibpath_var=no
9839 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9840 export_dynamic_flag_spec='${wl}-E'
9841 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9842 # Instead, shared libraries are loaded at an image base (0x10000000 by
9843 # default) and relocated if they conflict, which is a slow very memory
9844 # consuming and fragmenting process. To avoid this, we pick a random,
9845 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9846 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9847 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9848 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'
9851 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
9852 tmp_diet=no
9853 if test "$host_os" = linux-dietlibc; then
9854 case $cc_basename in
9855 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9856 esac
9858 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9859 && test "$tmp_diet" = no
9860 then
9861 tmp_addflag=' $pic_flag'
9862 tmp_sharedflag='-shared'
9863 case $cc_basename,$host_cpu in
9864 pgcc*) # Portland Group C compiler
9865 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'
9866 tmp_addflag=' $pic_flag'
9868 pgf77* | pgf90* | pgf95* | pgfortran*)
9869 # Portland Group f77 and f90 compilers
9870 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'
9871 tmp_addflag=' $pic_flag -Mnomain' ;;
9872 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9873 tmp_addflag=' -i_dynamic' ;;
9874 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9875 tmp_addflag=' -i_dynamic -nofor_main' ;;
9876 ifc* | ifort*) # Intel Fortran compiler
9877 tmp_addflag=' -nofor_main' ;;
9878 lf95*) # Lahey Fortran 8.1
9879 whole_archive_flag_spec=
9880 tmp_sharedflag='--shared' ;;
9881 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9882 tmp_sharedflag='-qmkshrobj'
9883 tmp_addflag= ;;
9884 nvcc*) # Cuda Compiler Driver 2.2
9885 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'
9886 compiler_needs_object=yes
9888 esac
9889 case `$CC -V 2>&1 | sed 5q` in
9890 *Sun\ C*) # Sun C 5.9
9891 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'
9892 compiler_needs_object=yes
9893 tmp_sharedflag='-G' ;;
9894 *Sun\ F*) # Sun Fortran 8.3
9895 tmp_sharedflag='-G' ;;
9896 esac
9897 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9899 if test "x$supports_anon_versioning" = xyes; then
9900 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9901 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9902 echo "local: *; };" >> $output_objdir/$libname.ver~
9903 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9906 case $cc_basename in
9907 xlf* | bgf* | bgxlf* | mpixlf*)
9908 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9909 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9910 hardcode_libdir_flag_spec=
9911 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9912 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9913 if test "x$supports_anon_versioning" = xyes; then
9914 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9915 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9916 echo "local: *; };" >> $output_objdir/$libname.ver~
9917 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9920 esac
9921 else
9922 ld_shlibs=no
9926 netbsd*)
9927 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9928 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9929 wlarc=
9930 else
9931 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9932 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9936 solaris*)
9937 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9938 ld_shlibs=no
9939 cat <<_LT_EOF 1>&2
9941 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9942 *** create shared libraries on Solaris systems. Therefore, libtool
9943 *** is disabling shared libraries support. We urge you to upgrade GNU
9944 *** binutils to release 2.9.1 or newer. Another option is to modify
9945 *** your PATH or compiler configuration so that the native linker is
9946 *** used, and then restart.
9948 _LT_EOF
9949 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9950 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9951 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9952 else
9953 ld_shlibs=no
9957 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9958 case `$LD -v 2>&1` in
9959 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9960 ld_shlibs=no
9961 cat <<_LT_EOF 1>&2
9963 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9964 *** reliably create shared libraries on SCO systems. Therefore, libtool
9965 *** is disabling shared libraries support. We urge you to upgrade GNU
9966 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9967 *** your PATH or compiler configuration so that the native linker is
9968 *** used, and then restart.
9970 _LT_EOF
9973 # For security reasons, it is highly recommended that you always
9974 # use absolute paths for naming shared libraries, and exclude the
9975 # DT_RUNPATH tag from executables and libraries. But doing so
9976 # requires that you compile everything twice, which is a pain.
9977 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9978 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9979 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9980 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9981 else
9982 ld_shlibs=no
9985 esac
9988 sunos4*)
9989 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9990 wlarc=
9991 hardcode_direct=yes
9992 hardcode_shlibpath_var=no
9996 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9997 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9998 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9999 else
10000 ld_shlibs=no
10003 esac
10005 if test "$ld_shlibs" = no; then
10006 runpath_var=
10007 hardcode_libdir_flag_spec=
10008 export_dynamic_flag_spec=
10009 whole_archive_flag_spec=
10011 else
10012 # PORTME fill in a description of your system's linker (not GNU ld)
10013 case $host_os in
10014 aix3*)
10015 allow_undefined_flag=unsupported
10016 always_export_symbols=yes
10017 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'
10018 # Note: this linker hardcodes the directories in LIBPATH if there
10019 # are no directories specified by -L.
10020 hardcode_minus_L=yes
10021 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10022 # Neither direct hardcoding nor static linking is supported with a
10023 # broken collect2.
10024 hardcode_direct=unsupported
10028 aix[4-9]*)
10029 if test "$host_cpu" = ia64; then
10030 # On IA64, the linker does run time linking by default, so we don't
10031 # have to do anything special.
10032 aix_use_runtimelinking=no
10033 exp_sym_flag='-Bexport'
10034 no_entry_flag=""
10035 else
10036 # If we're using GNU nm, then we don't want the "-C" option.
10037 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10038 # Also, AIX nm treats weak defined symbols like other global
10039 # defined symbols, whereas GNU nm marks them as "W".
10040 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10041 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'
10042 else
10043 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'
10045 aix_use_runtimelinking=no
10047 # Test if we are trying to use run time linking or normal
10048 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10049 # need to do runtime linking.
10050 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10051 for ld_flag in $LDFLAGS; do
10052 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10053 aix_use_runtimelinking=yes
10054 break
10056 done
10058 esac
10060 exp_sym_flag='-bexport'
10061 no_entry_flag='-bnoentry'
10064 # When large executables or shared objects are built, AIX ld can
10065 # have problems creating the table of contents. If linking a library
10066 # or program results in "error TOC overflow" add -mminimal-toc to
10067 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10068 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10070 archive_cmds=''
10071 hardcode_direct=yes
10072 hardcode_direct_absolute=yes
10073 hardcode_libdir_separator=':'
10074 link_all_deplibs=yes
10075 file_list_spec='${wl}-f,'
10077 if test "$GCC" = yes; then
10078 case $host_os in aix4.[012]|aix4.[012].*)
10079 # We only want to do this on AIX 4.2 and lower, the check
10080 # below for broken collect2 doesn't work under 4.3+
10081 collect2name=`${CC} -print-prog-name=collect2`
10082 if test -f "$collect2name" &&
10083 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10084 then
10085 # We have reworked collect2
10087 else
10088 # We have old collect2
10089 hardcode_direct=unsupported
10090 # It fails to find uninstalled libraries when the uninstalled
10091 # path is not listed in the libpath. Setting hardcode_minus_L
10092 # to unsupported forces relinking
10093 hardcode_minus_L=yes
10094 hardcode_libdir_flag_spec='-L$libdir'
10095 hardcode_libdir_separator=
10098 esac
10099 shared_flag='-shared'
10100 if test "$aix_use_runtimelinking" = yes; then
10101 shared_flag="$shared_flag "'${wl}-G'
10103 else
10104 # not using gcc
10105 if test "$host_cpu" = ia64; then
10106 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10107 # chokes on -Wl,-G. The following line is correct:
10108 shared_flag='-G'
10109 else
10110 if test "$aix_use_runtimelinking" = yes; then
10111 shared_flag='${wl}-G'
10112 else
10113 shared_flag='${wl}-bM:SRE'
10118 export_dynamic_flag_spec='${wl}-bexpall'
10119 # It seems that -bexpall does not export symbols beginning with
10120 # underscore (_), so it is better to generate a list of symbols to export.
10121 always_export_symbols=yes
10122 if test "$aix_use_runtimelinking" = yes; then
10123 # Warning - without using the other runtime loading flags (-brtl),
10124 # -berok will link without error, but may produce a broken library.
10125 allow_undefined_flag='-berok'
10126 # Determine the default libpath from the value encoded in an
10127 # empty executable.
10128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10129 /* end confdefs.h. */
10132 main ()
10136 return 0;
10138 _ACEOF
10139 if ac_fn_c_try_link "$LINENO"; then :
10141 lt_aix_libpath_sed='
10142 /Import File Strings/,/^$/ {
10143 /^0/ {
10144 s/^0 *\(.*\)$/\1/
10148 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10149 # Check for a 64-bit object if we didn't find anything.
10150 if test -z "$aix_libpath"; then
10151 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10154 rm -f core conftest.err conftest.$ac_objext \
10155 conftest$ac_exeext conftest.$ac_ext
10156 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10158 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10159 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"
10160 else
10161 if test "$host_cpu" = ia64; then
10162 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10163 allow_undefined_flag="-z nodefs"
10164 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"
10165 else
10166 # Determine the default libpath from the value encoded in an
10167 # empty executable.
10168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10169 /* end confdefs.h. */
10172 main ()
10176 return 0;
10178 _ACEOF
10179 if ac_fn_c_try_link "$LINENO"; then :
10181 lt_aix_libpath_sed='
10182 /Import File Strings/,/^$/ {
10183 /^0/ {
10184 s/^0 *\(.*\)$/\1/
10188 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10189 # Check for a 64-bit object if we didn't find anything.
10190 if test -z "$aix_libpath"; then
10191 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10194 rm -f core conftest.err conftest.$ac_objext \
10195 conftest$ac_exeext conftest.$ac_ext
10196 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10198 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10199 # Warning - without using the other run time loading flags,
10200 # -berok will link without error, but may produce a broken library.
10201 no_undefined_flag=' ${wl}-bernotok'
10202 allow_undefined_flag=' ${wl}-berok'
10203 if test "$with_gnu_ld" = yes; then
10204 # We only use this code for GNU lds that support --whole-archive.
10205 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10206 else
10207 # Exported symbols can be pulled into shared objects from archives
10208 whole_archive_flag_spec='$convenience'
10210 archive_cmds_need_lc=yes
10211 # This is similar to how AIX traditionally builds its shared libraries.
10212 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'
10217 amigaos*)
10218 case $host_cpu in
10219 powerpc)
10220 # see comment about AmigaOS4 .so support
10221 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10222 archive_expsym_cmds=''
10224 m68k)
10225 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)'
10226 hardcode_libdir_flag_spec='-L$libdir'
10227 hardcode_minus_L=yes
10229 esac
10232 bsdi[45]*)
10233 export_dynamic_flag_spec=-rdynamic
10236 cygwin* | mingw* | pw32* | cegcc*)
10237 # When not using gcc, we currently assume that we are using
10238 # Microsoft Visual C++.
10239 # hardcode_libdir_flag_spec is actually meaningless, as there is
10240 # no search path for DLLs.
10241 hardcode_libdir_flag_spec=' '
10242 allow_undefined_flag=unsupported
10243 # Tell ltmain to make .lib files, not .a files.
10244 libext=lib
10245 # Tell ltmain to make .dll files, not .so files.
10246 shrext_cmds=".dll"
10247 # FIXME: Setting linknames here is a bad hack.
10248 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10249 # The linker will automatically build a .lib file if we build a DLL.
10250 old_archive_from_new_cmds='true'
10251 # FIXME: Should let the user specify the lib program.
10252 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10253 fix_srcfile_path='`cygpath -w "$srcfile"`'
10254 enable_shared_with_static_runtimes=yes
10257 darwin* | rhapsody*)
10260 archive_cmds_need_lc=no
10261 hardcode_direct=no
10262 hardcode_automatic=yes
10263 hardcode_shlibpath_var=unsupported
10264 if test "$lt_cv_ld_force_load" = "yes"; then
10265 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\"`'
10266 else
10267 whole_archive_flag_spec=''
10269 link_all_deplibs=yes
10270 allow_undefined_flag="$_lt_dar_allow_undefined"
10271 case $cc_basename in
10272 ifort*) _lt_dar_can_shared=yes ;;
10273 *) _lt_dar_can_shared=$GCC ;;
10274 esac
10275 if test "$_lt_dar_can_shared" = "yes"; then
10276 output_verbose_link_cmd=func_echo_all
10277 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10278 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10279 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}"
10280 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}"
10282 else
10283 ld_shlibs=no
10288 dgux*)
10289 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10290 hardcode_libdir_flag_spec='-L$libdir'
10291 hardcode_shlibpath_var=no
10294 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10295 # support. Future versions do this automatically, but an explicit c++rt0.o
10296 # does not break anything, and helps significantly (at the cost of a little
10297 # extra space).
10298 freebsd2.2*)
10299 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10300 hardcode_libdir_flag_spec='-R$libdir'
10301 hardcode_direct=yes
10302 hardcode_shlibpath_var=no
10305 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10306 freebsd2.*)
10307 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10308 hardcode_direct=yes
10309 hardcode_minus_L=yes
10310 hardcode_shlibpath_var=no
10313 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10314 freebsd* | dragonfly*)
10315 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10316 hardcode_libdir_flag_spec='-R$libdir'
10317 hardcode_direct=yes
10318 hardcode_shlibpath_var=no
10321 hpux9*)
10322 if test "$GCC" = yes; then
10323 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'
10324 else
10325 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'
10327 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10328 hardcode_libdir_separator=:
10329 hardcode_direct=yes
10331 # hardcode_minus_L: Not really in the search PATH,
10332 # but as the default location of the library.
10333 hardcode_minus_L=yes
10334 export_dynamic_flag_spec='${wl}-E'
10337 hpux10*)
10338 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10339 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10340 else
10341 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10343 if test "$with_gnu_ld" = no; then
10344 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10345 hardcode_libdir_flag_spec_ld='+b $libdir'
10346 hardcode_libdir_separator=:
10347 hardcode_direct=yes
10348 hardcode_direct_absolute=yes
10349 export_dynamic_flag_spec='${wl}-E'
10350 # hardcode_minus_L: Not really in the search PATH,
10351 # but as the default location of the library.
10352 hardcode_minus_L=yes
10356 hpux11*)
10357 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10358 case $host_cpu in
10359 hppa*64*)
10360 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10362 ia64*)
10363 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10366 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10368 esac
10369 else
10370 case $host_cpu in
10371 hppa*64*)
10372 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10374 ia64*)
10375 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10379 # Older versions of the 11.00 compiler do not understand -b yet
10380 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10382 $as_echo_n "checking if $CC understands -b... " >&6; }
10383 if ${lt_cv_prog_compiler__b+:} false; then :
10384 $as_echo_n "(cached) " >&6
10385 else
10386 lt_cv_prog_compiler__b=no
10387 save_LDFLAGS="$LDFLAGS"
10388 LDFLAGS="$LDFLAGS -b"
10389 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10390 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10391 # The linker can only warn and ignore the option if not recognized
10392 # So say no if there are warnings
10393 if test -s conftest.err; then
10394 # Append any errors to the config.log.
10395 cat conftest.err 1>&5
10396 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10397 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10398 if diff conftest.exp conftest.er2 >/dev/null; then
10399 lt_cv_prog_compiler__b=yes
10401 else
10402 lt_cv_prog_compiler__b=yes
10405 $RM -r conftest*
10406 LDFLAGS="$save_LDFLAGS"
10409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10410 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10412 if test x"$lt_cv_prog_compiler__b" = xyes; then
10413 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10414 else
10415 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10419 esac
10421 if test "$with_gnu_ld" = no; then
10422 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10423 hardcode_libdir_separator=:
10425 case $host_cpu in
10426 hppa*64*|ia64*)
10427 hardcode_direct=no
10428 hardcode_shlibpath_var=no
10431 hardcode_direct=yes
10432 hardcode_direct_absolute=yes
10433 export_dynamic_flag_spec='${wl}-E'
10435 # hardcode_minus_L: Not really in the search PATH,
10436 # but as the default location of the library.
10437 hardcode_minus_L=yes
10439 esac
10443 irix5* | irix6* | nonstopux*)
10444 if test "$GCC" = yes; then
10445 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'
10446 # Try to use the -exported_symbol ld option, if it does not
10447 # work, assume that -exports_file does not work either and
10448 # implicitly export all symbols.
10449 save_LDFLAGS="$LDFLAGS"
10450 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10452 /* end confdefs.h. */
10453 int foo(void) {}
10454 _ACEOF
10455 if ac_fn_c_try_link "$LINENO"; then :
10456 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'
10459 rm -f core conftest.err conftest.$ac_objext \
10460 conftest$ac_exeext conftest.$ac_ext
10461 LDFLAGS="$save_LDFLAGS"
10462 else
10463 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'
10464 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'
10466 archive_cmds_need_lc='no'
10467 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10468 hardcode_libdir_separator=:
10469 inherit_rpath=yes
10470 link_all_deplibs=yes
10473 netbsd*)
10474 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10475 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10476 else
10477 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10479 hardcode_libdir_flag_spec='-R$libdir'
10480 hardcode_direct=yes
10481 hardcode_shlibpath_var=no
10484 newsos6)
10485 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10486 hardcode_direct=yes
10487 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10488 hardcode_libdir_separator=:
10489 hardcode_shlibpath_var=no
10492 *nto* | *qnx*)
10495 openbsd*)
10496 if test -f /usr/libexec/ld.so; then
10497 hardcode_direct=yes
10498 hardcode_shlibpath_var=no
10499 hardcode_direct_absolute=yes
10500 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10501 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10502 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10503 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10504 export_dynamic_flag_spec='${wl}-E'
10505 else
10506 case $host_os in
10507 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10508 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10509 hardcode_libdir_flag_spec='-R$libdir'
10512 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10513 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10515 esac
10517 else
10518 ld_shlibs=no
10522 os2*)
10523 hardcode_libdir_flag_spec='-L$libdir'
10524 hardcode_minus_L=yes
10525 allow_undefined_flag=unsupported
10526 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'
10527 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10530 osf3*)
10531 if test "$GCC" = yes; then
10532 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10533 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'
10534 else
10535 allow_undefined_flag=' -expect_unresolved \*'
10536 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'
10538 archive_cmds_need_lc='no'
10539 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10540 hardcode_libdir_separator=:
10543 osf4* | osf5*) # as osf3* with the addition of -msym flag
10544 if test "$GCC" = yes; then
10545 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10546 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'
10547 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10548 else
10549 allow_undefined_flag=' -expect_unresolved \*'
10550 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'
10551 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~
10552 $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'
10554 # Both c and cxx compiler support -rpath directly
10555 hardcode_libdir_flag_spec='-rpath $libdir'
10557 archive_cmds_need_lc='no'
10558 hardcode_libdir_separator=:
10561 solaris*)
10562 no_undefined_flag=' -z defs'
10563 if test "$GCC" = yes; then
10564 wlarc='${wl}'
10565 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10566 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10567 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10568 else
10569 case `$CC -V 2>&1` in
10570 *"Compilers 5.0"*)
10571 wlarc=''
10572 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10573 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10574 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10577 wlarc='${wl}'
10578 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10579 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10580 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10582 esac
10584 hardcode_libdir_flag_spec='-R$libdir'
10585 hardcode_shlibpath_var=no
10586 case $host_os in
10587 solaris2.[0-5] | solaris2.[0-5].*) ;;
10589 # The compiler driver will combine and reorder linker options,
10590 # but understands `-z linker_flag'. GCC discards it without `$wl',
10591 # but is careful enough not to reorder.
10592 # Supported since Solaris 2.6 (maybe 2.5.1?)
10593 if test "$GCC" = yes; then
10594 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10595 else
10596 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10599 esac
10600 link_all_deplibs=yes
10603 sunos4*)
10604 if test "x$host_vendor" = xsequent; then
10605 # Use $CC to link under sequent, because it throws in some extra .o
10606 # files that make .init and .fini sections work.
10607 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10608 else
10609 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10611 hardcode_libdir_flag_spec='-L$libdir'
10612 hardcode_direct=yes
10613 hardcode_minus_L=yes
10614 hardcode_shlibpath_var=no
10617 sysv4)
10618 case $host_vendor in
10619 sni)
10620 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10621 hardcode_direct=yes # is this really true???
10623 siemens)
10624 ## LD is ld it makes a PLAMLIB
10625 ## CC just makes a GrossModule.
10626 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10627 reload_cmds='$CC -r -o $output$reload_objs'
10628 hardcode_direct=no
10630 motorola)
10631 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10632 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10634 esac
10635 runpath_var='LD_RUN_PATH'
10636 hardcode_shlibpath_var=no
10639 sysv4.3*)
10640 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10641 hardcode_shlibpath_var=no
10642 export_dynamic_flag_spec='-Bexport'
10645 sysv4*MP*)
10646 if test -d /usr/nec; then
10647 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10648 hardcode_shlibpath_var=no
10649 runpath_var=LD_RUN_PATH
10650 hardcode_runpath_var=yes
10651 ld_shlibs=yes
10655 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10656 no_undefined_flag='${wl}-z,text'
10657 archive_cmds_need_lc=no
10658 hardcode_shlibpath_var=no
10659 runpath_var='LD_RUN_PATH'
10661 if test "$GCC" = yes; then
10662 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10663 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10664 else
10665 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10666 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10670 sysv5* | sco3.2v5* | sco5v6*)
10671 # Note: We can NOT use -z defs as we might desire, because we do not
10672 # link with -lc, and that would cause any symbols used from libc to
10673 # always be unresolved, which means just about no library would
10674 # ever link correctly. If we're not using GNU ld we use -z text
10675 # though, which does catch some bad symbols but isn't as heavy-handed
10676 # as -z defs.
10677 no_undefined_flag='${wl}-z,text'
10678 allow_undefined_flag='${wl}-z,nodefs'
10679 archive_cmds_need_lc=no
10680 hardcode_shlibpath_var=no
10681 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10682 hardcode_libdir_separator=':'
10683 link_all_deplibs=yes
10684 export_dynamic_flag_spec='${wl}-Bexport'
10685 runpath_var='LD_RUN_PATH'
10687 if test "$GCC" = yes; then
10688 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10689 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10690 else
10691 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10692 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10696 uts4*)
10697 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10698 hardcode_libdir_flag_spec='-L$libdir'
10699 hardcode_shlibpath_var=no
10703 ld_shlibs=no
10705 esac
10707 if test x$host_vendor = xsni; then
10708 case $host in
10709 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10710 export_dynamic_flag_spec='${wl}-Blargedynsym'
10712 esac
10716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10717 $as_echo "$ld_shlibs" >&6; }
10718 test "$ld_shlibs" = no && can_build_shared=no
10720 with_gnu_ld=$with_gnu_ld
10737 # Do we need to explicitly link libc?
10739 case "x$archive_cmds_need_lc" in
10740 x|xyes)
10741 # Assume -lc should be added
10742 archive_cmds_need_lc=yes
10744 if test "$enable_shared" = yes && test "$GCC" = yes; then
10745 case $archive_cmds in
10746 *'~'*)
10747 # FIXME: we may have to deal with multi-command sequences.
10749 '$CC '*)
10750 # Test whether the compiler implicitly links with -lc since on some
10751 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10752 # to ld, don't add -lc before -lgcc.
10753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10754 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10755 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10756 $as_echo_n "(cached) " >&6
10757 else
10758 $RM conftest*
10759 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10761 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10762 (eval $ac_compile) 2>&5
10763 ac_status=$?
10764 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10765 test $ac_status = 0; } 2>conftest.err; then
10766 soname=conftest
10767 lib=conftest
10768 libobjs=conftest.$ac_objext
10769 deplibs=
10770 wl=$lt_prog_compiler_wl
10771 pic_flag=$lt_prog_compiler_pic
10772 compiler_flags=-v
10773 linker_flags=-v
10774 verstring=
10775 output_objdir=.
10776 libname=conftest
10777 lt_save_allow_undefined_flag=$allow_undefined_flag
10778 allow_undefined_flag=
10779 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10780 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10781 ac_status=$?
10782 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10783 test $ac_status = 0; }
10784 then
10785 lt_cv_archive_cmds_need_lc=no
10786 else
10787 lt_cv_archive_cmds_need_lc=yes
10789 allow_undefined_flag=$lt_save_allow_undefined_flag
10790 else
10791 cat conftest.err 1>&5
10793 $RM conftest*
10796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10797 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10798 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10800 esac
10803 esac
10961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10962 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10964 if test "$GCC" = yes; then
10965 case $host_os in
10966 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10967 *) lt_awk_arg="/^libraries:/" ;;
10968 esac
10969 case $host_os in
10970 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10971 *) lt_sed_strip_eq="s,=/,/,g" ;;
10972 esac
10973 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10974 case $lt_search_path_spec in
10975 *\;*)
10976 # if the path contains ";" then we assume it to be the separator
10977 # otherwise default to the standard path separator (i.e. ":") - it is
10978 # assumed that no part of a normal pathname contains ";" but that should
10979 # okay in the real world where ";" in dirpaths is itself problematic.
10980 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10983 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10985 esac
10986 # Ok, now we have the path, separated by spaces, we can step through it
10987 # and add multilib dir if necessary.
10988 lt_tmp_lt_search_path_spec=
10989 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10990 for lt_sys_path in $lt_search_path_spec; do
10991 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10992 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10993 else
10994 test -d "$lt_sys_path" && \
10995 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10997 done
10998 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10999 BEGIN {RS=" "; FS="/|\n";} {
11000 lt_foo="";
11001 lt_count=0;
11002 for (lt_i = NF; lt_i > 0; lt_i--) {
11003 if ($lt_i != "" && $lt_i != ".") {
11004 if ($lt_i == "..") {
11005 lt_count++;
11006 } else {
11007 if (lt_count == 0) {
11008 lt_foo="/" $lt_i lt_foo;
11009 } else {
11010 lt_count--;
11015 if (lt_foo != "") { lt_freq[lt_foo]++; }
11016 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11018 # AWK program above erroneously prepends '/' to C:/dos/paths
11019 # for these hosts.
11020 case $host_os in
11021 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11022 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11023 esac
11024 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11025 else
11026 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11028 library_names_spec=
11029 libname_spec='lib$name'
11030 soname_spec=
11031 shrext_cmds=".so"
11032 postinstall_cmds=
11033 postuninstall_cmds=
11034 finish_cmds=
11035 finish_eval=
11036 shlibpath_var=
11037 shlibpath_overrides_runpath=unknown
11038 version_type=none
11039 dynamic_linker="$host_os ld.so"
11040 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11041 need_lib_prefix=unknown
11042 hardcode_into_libs=no
11044 # when you set need_version to no, make sure it does not cause -set_version
11045 # flags to be left without arguments
11046 need_version=unknown
11048 case $host_os in
11049 aix3*)
11050 version_type=linux
11051 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11052 shlibpath_var=LIBPATH
11054 # AIX 3 has no versioning support, so we append a major version to the name.
11055 soname_spec='${libname}${release}${shared_ext}$major'
11058 aix[4-9]*)
11059 version_type=linux
11060 need_lib_prefix=no
11061 need_version=no
11062 hardcode_into_libs=yes
11063 if test "$host_cpu" = ia64; then
11064 # AIX 5 supports IA64
11065 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11066 shlibpath_var=LD_LIBRARY_PATH
11067 else
11068 # With GCC up to 2.95.x, collect2 would create an import file
11069 # for dependence libraries. The import file would start with
11070 # the line `#! .'. This would cause the generated library to
11071 # depend on `.', always an invalid library. This was fixed in
11072 # development snapshots of GCC prior to 3.0.
11073 case $host_os in
11074 aix4 | aix4.[01] | aix4.[01].*)
11075 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11076 echo ' yes '
11077 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11079 else
11080 can_build_shared=no
11083 esac
11084 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11085 # soname into executable. Probably we can add versioning support to
11086 # collect2, so additional links can be useful in future.
11087 if test "$aix_use_runtimelinking" = yes; then
11088 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11089 # instead of lib<name>.a to let people know that these are not
11090 # typical AIX shared libraries.
11091 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11092 else
11093 # We preserve .a as extension for shared libraries through AIX4.2
11094 # and later when we are not doing run time linking.
11095 library_names_spec='${libname}${release}.a $libname.a'
11096 soname_spec='${libname}${release}${shared_ext}$major'
11098 shlibpath_var=LIBPATH
11102 amigaos*)
11103 case $host_cpu in
11104 powerpc)
11105 # Since July 2007 AmigaOS4 officially supports .so libraries.
11106 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11107 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11109 m68k)
11110 library_names_spec='$libname.ixlibrary $libname.a'
11111 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11112 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'
11114 esac
11117 beos*)
11118 library_names_spec='${libname}${shared_ext}'
11119 dynamic_linker="$host_os ld.so"
11120 shlibpath_var=LIBRARY_PATH
11123 bsdi[45]*)
11124 version_type=linux
11125 need_version=no
11126 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11127 soname_spec='${libname}${release}${shared_ext}$major'
11128 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11129 shlibpath_var=LD_LIBRARY_PATH
11130 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11131 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11132 # the default ld.so.conf also contains /usr/contrib/lib and
11133 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11134 # libtool to hard-code these into programs
11137 cygwin* | mingw* | pw32* | cegcc*)
11138 version_type=windows
11139 shrext_cmds=".dll"
11140 need_version=no
11141 need_lib_prefix=no
11143 case $GCC,$host_os in
11144 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11145 library_names_spec='$libname.dll.a'
11146 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11147 postinstall_cmds='base_file=`basename \${file}`~
11148 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11149 dldir=$destdir/`dirname \$dlpath`~
11150 test -d \$dldir || mkdir -p \$dldir~
11151 $install_prog $dir/$dlname \$dldir/$dlname~
11152 chmod a+x \$dldir/$dlname~
11153 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11154 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11156 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11157 dlpath=$dir/\$dldll~
11158 $RM \$dlpath'
11159 shlibpath_overrides_runpath=yes
11161 case $host_os in
11162 cygwin*)
11163 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11164 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11166 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11168 mingw* | cegcc*)
11169 # MinGW DLLs use traditional 'lib' prefix
11170 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11172 pw32*)
11173 # pw32 DLLs use 'pw' prefix rather than 'lib'
11174 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11176 esac
11180 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11182 esac
11183 dynamic_linker='Win32 ld.exe'
11184 # FIXME: first we should search . and the directory the executable is in
11185 shlibpath_var=PATH
11188 darwin* | rhapsody*)
11189 dynamic_linker="$host_os dyld"
11190 version_type=darwin
11191 need_lib_prefix=no
11192 need_version=no
11193 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11194 soname_spec='${libname}${release}${major}$shared_ext'
11195 shlibpath_overrides_runpath=yes
11196 shlibpath_var=DYLD_LIBRARY_PATH
11197 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11199 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11200 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11203 dgux*)
11204 version_type=linux
11205 need_lib_prefix=no
11206 need_version=no
11207 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11208 soname_spec='${libname}${release}${shared_ext}$major'
11209 shlibpath_var=LD_LIBRARY_PATH
11212 freebsd* | dragonfly*)
11213 # DragonFly does not have aout. When/if they implement a new
11214 # versioning mechanism, adjust this.
11215 if test -x /usr/bin/objformat; then
11216 objformat=`/usr/bin/objformat`
11217 else
11218 case $host_os in
11219 freebsd[23].*) objformat=aout ;;
11220 *) objformat=elf ;;
11221 esac
11223 version_type=freebsd-$objformat
11224 case $version_type in
11225 freebsd-elf*)
11226 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11227 need_version=no
11228 need_lib_prefix=no
11230 freebsd-*)
11231 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11232 need_version=yes
11234 esac
11235 shlibpath_var=LD_LIBRARY_PATH
11236 case $host_os in
11237 freebsd2.*)
11238 shlibpath_overrides_runpath=yes
11240 freebsd3.[01]* | freebsdelf3.[01]*)
11241 shlibpath_overrides_runpath=yes
11242 hardcode_into_libs=yes
11244 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11245 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11246 shlibpath_overrides_runpath=no
11247 hardcode_into_libs=yes
11249 *) # from 4.6 on, and DragonFly
11250 shlibpath_overrides_runpath=yes
11251 hardcode_into_libs=yes
11253 esac
11256 haiku*)
11257 version_type=linux
11258 need_lib_prefix=no
11259 need_version=no
11260 dynamic_linker="$host_os runtime_loader"
11261 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11262 soname_spec='${libname}${release}${shared_ext}$major'
11263 shlibpath_var=LIBRARY_PATH
11264 shlibpath_overrides_runpath=yes
11265 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
11266 hardcode_into_libs=yes
11269 hpux9* | hpux10* | hpux11*)
11270 # Give a soname corresponding to the major version so that dld.sl refuses to
11271 # link against other versions.
11272 version_type=sunos
11273 need_lib_prefix=no
11274 need_version=no
11275 case $host_cpu in
11276 ia64*)
11277 shrext_cmds='.so'
11278 hardcode_into_libs=yes
11279 dynamic_linker="$host_os dld.so"
11280 shlibpath_var=LD_LIBRARY_PATH
11281 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11282 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11283 soname_spec='${libname}${release}${shared_ext}$major'
11284 if test "X$HPUX_IA64_MODE" = X32; then
11285 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11286 else
11287 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11289 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11291 hppa*64*)
11292 shrext_cmds='.sl'
11293 hardcode_into_libs=yes
11294 dynamic_linker="$host_os dld.sl"
11295 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11296 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11297 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11298 soname_spec='${libname}${release}${shared_ext}$major'
11299 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11300 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11303 shrext_cmds='.sl'
11304 dynamic_linker="$host_os dld.sl"
11305 shlibpath_var=SHLIB_PATH
11306 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11307 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11308 soname_spec='${libname}${release}${shared_ext}$major'
11310 esac
11311 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11312 postinstall_cmds='chmod 555 $lib'
11313 # or fails outright, so override atomically:
11314 install_override_mode=555
11317 interix[3-9]*)
11318 version_type=linux
11319 need_lib_prefix=no
11320 need_version=no
11321 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11322 soname_spec='${libname}${release}${shared_ext}$major'
11323 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11324 shlibpath_var=LD_LIBRARY_PATH
11325 shlibpath_overrides_runpath=no
11326 hardcode_into_libs=yes
11329 irix5* | irix6* | nonstopux*)
11330 case $host_os in
11331 nonstopux*) version_type=nonstopux ;;
11333 if test "$lt_cv_prog_gnu_ld" = yes; then
11334 version_type=linux
11335 else
11336 version_type=irix
11337 fi ;;
11338 esac
11339 need_lib_prefix=no
11340 need_version=no
11341 soname_spec='${libname}${release}${shared_ext}$major'
11342 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11343 case $host_os in
11344 irix5* | nonstopux*)
11345 libsuff= shlibsuff=
11348 case $LD in # libtool.m4 will add one of these switches to LD
11349 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11350 libsuff= shlibsuff= libmagic=32-bit;;
11351 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11352 libsuff=32 shlibsuff=N32 libmagic=N32;;
11353 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11354 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11355 *) libsuff= shlibsuff= libmagic=never-match;;
11356 esac
11358 esac
11359 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11360 shlibpath_overrides_runpath=no
11361 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11362 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11363 hardcode_into_libs=yes
11366 # No shared lib support for Linux oldld, aout, or coff.
11367 linux*oldld* | linux*aout* | linux*coff*)
11368 dynamic_linker=no
11371 # This must be Linux ELF.
11373 # uclinux* changes (here and below) have been submitted to the libtool
11374 # project, but have not yet been accepted: they are GCC-local changes
11375 # for the time being. (See
11376 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
11377 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi)
11378 version_type=linux
11379 need_lib_prefix=no
11380 need_version=no
11381 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11382 soname_spec='${libname}${release}${shared_ext}$major'
11383 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11384 shlibpath_var=LD_LIBRARY_PATH
11385 shlibpath_overrides_runpath=no
11387 # Some binutils ld are patched to set DT_RUNPATH
11388 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11389 $as_echo_n "(cached) " >&6
11390 else
11391 lt_cv_shlibpath_overrides_runpath=no
11392 save_LDFLAGS=$LDFLAGS
11393 save_libdir=$libdir
11394 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11395 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11397 /* end confdefs.h. */
11400 main ()
11404 return 0;
11406 _ACEOF
11407 if ac_fn_c_try_link "$LINENO"; then :
11408 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11409 lt_cv_shlibpath_overrides_runpath=yes
11412 rm -f core conftest.err conftest.$ac_objext \
11413 conftest$ac_exeext conftest.$ac_ext
11414 LDFLAGS=$save_LDFLAGS
11415 libdir=$save_libdir
11419 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11421 # This implies no fast_install, which is unacceptable.
11422 # Some rework will be needed to allow for fast_install
11423 # before this can be enabled.
11424 hardcode_into_libs=yes
11426 # Append ld.so.conf contents to the search path
11427 if test -f /etc/ld.so.conf; then
11428 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' ' '`
11429 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11432 # We used to test for /lib/ld.so.1 and disable shared libraries on
11433 # powerpc, because MkLinux only supported shared libraries with the
11434 # GNU dynamic linker. Since this was broken with cross compilers,
11435 # most powerpc-linux boxes support dynamic linking these days and
11436 # people can always --disable-shared, the test was removed, and we
11437 # assume the GNU/Linux dynamic linker is in use.
11438 dynamic_linker='GNU/Linux ld.so'
11441 netbsd*)
11442 version_type=sunos
11443 need_lib_prefix=no
11444 need_version=no
11445 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11446 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11447 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11448 dynamic_linker='NetBSD (a.out) ld.so'
11449 else
11450 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11451 soname_spec='${libname}${release}${shared_ext}$major'
11452 dynamic_linker='NetBSD ld.elf_so'
11454 shlibpath_var=LD_LIBRARY_PATH
11455 shlibpath_overrides_runpath=yes
11456 hardcode_into_libs=yes
11459 newsos6)
11460 version_type=linux
11461 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11462 shlibpath_var=LD_LIBRARY_PATH
11463 shlibpath_overrides_runpath=yes
11466 *nto* | *qnx*)
11467 version_type=qnx
11468 need_lib_prefix=no
11469 need_version=no
11470 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11471 soname_spec='${libname}${release}${shared_ext}$major'
11472 shlibpath_var=LD_LIBRARY_PATH
11473 shlibpath_overrides_runpath=no
11474 hardcode_into_libs=yes
11475 dynamic_linker='ldqnx.so'
11478 openbsd*)
11479 version_type=sunos
11480 sys_lib_dlsearch_path_spec="/usr/lib"
11481 need_lib_prefix=no
11482 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11483 case $host_os in
11484 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11485 *) need_version=no ;;
11486 esac
11487 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11488 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11489 shlibpath_var=LD_LIBRARY_PATH
11490 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11491 case $host_os in
11492 openbsd2.[89] | openbsd2.[89].*)
11493 shlibpath_overrides_runpath=no
11496 shlibpath_overrides_runpath=yes
11498 esac
11499 else
11500 shlibpath_overrides_runpath=yes
11504 os2*)
11505 libname_spec='$name'
11506 shrext_cmds=".dll"
11507 need_lib_prefix=no
11508 library_names_spec='$libname${shared_ext} $libname.a'
11509 dynamic_linker='OS/2 ld.exe'
11510 shlibpath_var=LIBPATH
11513 osf3* | osf4* | osf5*)
11514 version_type=osf
11515 need_lib_prefix=no
11516 need_version=no
11517 soname_spec='${libname}${release}${shared_ext}$major'
11518 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11519 shlibpath_var=LD_LIBRARY_PATH
11520 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11521 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11524 rdos*)
11525 dynamic_linker=no
11528 solaris*)
11529 version_type=linux
11530 need_lib_prefix=no
11531 need_version=no
11532 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11533 soname_spec='${libname}${release}${shared_ext}$major'
11534 shlibpath_var=LD_LIBRARY_PATH
11535 shlibpath_overrides_runpath=yes
11536 hardcode_into_libs=yes
11537 # ldd complains unless libraries are executable
11538 postinstall_cmds='chmod +x $lib'
11541 sunos4*)
11542 version_type=sunos
11543 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11544 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11545 shlibpath_var=LD_LIBRARY_PATH
11546 shlibpath_overrides_runpath=yes
11547 if test "$with_gnu_ld" = yes; then
11548 need_lib_prefix=no
11550 need_version=yes
11553 sysv4 | sysv4.3*)
11554 version_type=linux
11555 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11556 soname_spec='${libname}${release}${shared_ext}$major'
11557 shlibpath_var=LD_LIBRARY_PATH
11558 case $host_vendor in
11559 sni)
11560 shlibpath_overrides_runpath=no
11561 need_lib_prefix=no
11562 runpath_var=LD_RUN_PATH
11564 siemens)
11565 need_lib_prefix=no
11567 motorola)
11568 need_lib_prefix=no
11569 need_version=no
11570 shlibpath_overrides_runpath=no
11571 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11573 esac
11576 sysv4*MP*)
11577 if test -d /usr/nec ;then
11578 version_type=linux
11579 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11580 soname_spec='$libname${shared_ext}.$major'
11581 shlibpath_var=LD_LIBRARY_PATH
11585 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11586 version_type=freebsd-elf
11587 need_lib_prefix=no
11588 need_version=no
11589 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11590 soname_spec='${libname}${release}${shared_ext}$major'
11591 shlibpath_var=LD_LIBRARY_PATH
11592 shlibpath_overrides_runpath=yes
11593 hardcode_into_libs=yes
11594 if test "$with_gnu_ld" = yes; then
11595 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11596 else
11597 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11598 case $host_os in
11599 sco3.2v5*)
11600 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11602 esac
11604 sys_lib_dlsearch_path_spec='/usr/lib'
11607 tpf*)
11608 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11609 version_type=linux
11610 need_lib_prefix=no
11611 need_version=no
11612 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11613 shlibpath_var=LD_LIBRARY_PATH
11614 shlibpath_overrides_runpath=no
11615 hardcode_into_libs=yes
11618 uts4*)
11619 version_type=linux
11620 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11621 soname_spec='${libname}${release}${shared_ext}$major'
11622 shlibpath_var=LD_LIBRARY_PATH
11625 # Shared libraries for VwWorks, >= 7 only at this stage
11626 # and (fpic) still incompatible with "large" code models
11627 # in a few configurations. Only for RTP mode in any case,
11628 # and upon explicit request at configure time.
11629 vxworks7*)
11630 dynamic_linker=no
11631 case ${with_multisubdir}-${enable_shared} in
11632 *large*)
11634 *mrtp*-yes)
11635 version_type=linux
11636 need_lib_prefix=no
11637 need_version=no
11638 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11639 soname_spec='${libname}${release}${shared_ext}$major'
11640 dynamic_linker="$host_os module_loader"
11642 esac
11645 dynamic_linker=no
11647 esac
11648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11649 $as_echo "$dynamic_linker" >&6; }
11650 test "$dynamic_linker" = no && can_build_shared=no
11652 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11653 if test "$GCC" = yes; then
11654 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11657 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11658 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11660 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11661 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11756 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11757 hardcode_action=
11758 if test -n "$hardcode_libdir_flag_spec" ||
11759 test -n "$runpath_var" ||
11760 test "X$hardcode_automatic" = "Xyes" ; then
11762 # We can hardcode non-existent directories.
11763 if test "$hardcode_direct" != no &&
11764 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11765 # have to relink, otherwise we might link with an installed library
11766 # when we should be linking with a yet-to-be-installed one
11767 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11768 test "$hardcode_minus_L" != no; then
11769 # Linking always hardcodes the temporary library directory.
11770 hardcode_action=relink
11771 else
11772 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11773 hardcode_action=immediate
11775 else
11776 # We cannot hardcode anything, or else we can only hardcode existing
11777 # directories.
11778 hardcode_action=unsupported
11780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11781 $as_echo "$hardcode_action" >&6; }
11783 if test "$hardcode_action" = relink ||
11784 test "$inherit_rpath" = yes; then
11785 # Fast installation is not supported
11786 enable_fast_install=no
11787 elif test "$shlibpath_overrides_runpath" = yes ||
11788 test "$enable_shared" = no; then
11789 # Fast installation is not necessary
11790 enable_fast_install=needless
11798 if test "x$enable_dlopen" != xyes; then
11799 enable_dlopen=unknown
11800 enable_dlopen_self=unknown
11801 enable_dlopen_self_static=unknown
11802 else
11803 lt_cv_dlopen=no
11804 lt_cv_dlopen_libs=
11806 case $host_os in
11807 beos*)
11808 lt_cv_dlopen="load_add_on"
11809 lt_cv_dlopen_libs=
11810 lt_cv_dlopen_self=yes
11813 mingw* | pw32* | cegcc*)
11814 lt_cv_dlopen="LoadLibrary"
11815 lt_cv_dlopen_libs=
11818 cygwin*)
11819 lt_cv_dlopen="dlopen"
11820 lt_cv_dlopen_libs=
11823 darwin*)
11824 # if libdl is installed we need to link against it
11825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11826 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11827 if ${ac_cv_lib_dl_dlopen+:} false; then :
11828 $as_echo_n "(cached) " >&6
11829 else
11830 ac_check_lib_save_LIBS=$LIBS
11831 LIBS="-ldl $LIBS"
11832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11833 /* end confdefs.h. */
11835 /* Override any GCC internal prototype to avoid an error.
11836 Use char because int might match the return type of a GCC
11837 builtin and then its argument prototype would still apply. */
11838 #ifdef __cplusplus
11839 extern "C"
11840 #endif
11841 char dlopen ();
11843 main ()
11845 return dlopen ();
11847 return 0;
11849 _ACEOF
11850 if ac_fn_c_try_link "$LINENO"; then :
11851 ac_cv_lib_dl_dlopen=yes
11852 else
11853 ac_cv_lib_dl_dlopen=no
11855 rm -f core conftest.err conftest.$ac_objext \
11856 conftest$ac_exeext conftest.$ac_ext
11857 LIBS=$ac_check_lib_save_LIBS
11859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11860 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11861 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11862 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11863 else
11865 lt_cv_dlopen="dyld"
11866 lt_cv_dlopen_libs=
11867 lt_cv_dlopen_self=yes
11874 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11875 if test "x$ac_cv_func_shl_load" = xyes; then :
11876 lt_cv_dlopen="shl_load"
11877 else
11878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11879 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11880 if ${ac_cv_lib_dld_shl_load+:} false; then :
11881 $as_echo_n "(cached) " >&6
11882 else
11883 ac_check_lib_save_LIBS=$LIBS
11884 LIBS="-ldld $LIBS"
11885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11886 /* end confdefs.h. */
11888 /* Override any GCC internal prototype to avoid an error.
11889 Use char because int might match the return type of a GCC
11890 builtin and then its argument prototype would still apply. */
11891 #ifdef __cplusplus
11892 extern "C"
11893 #endif
11894 char shl_load ();
11896 main ()
11898 return shl_load ();
11900 return 0;
11902 _ACEOF
11903 if ac_fn_c_try_link "$LINENO"; then :
11904 ac_cv_lib_dld_shl_load=yes
11905 else
11906 ac_cv_lib_dld_shl_load=no
11908 rm -f core conftest.err conftest.$ac_objext \
11909 conftest$ac_exeext conftest.$ac_ext
11910 LIBS=$ac_check_lib_save_LIBS
11912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11913 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11914 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11915 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11916 else
11917 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11918 if test "x$ac_cv_func_dlopen" = xyes; then :
11919 lt_cv_dlopen="dlopen"
11920 else
11921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11922 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11923 if ${ac_cv_lib_dl_dlopen+:} false; then :
11924 $as_echo_n "(cached) " >&6
11925 else
11926 ac_check_lib_save_LIBS=$LIBS
11927 LIBS="-ldl $LIBS"
11928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11929 /* end confdefs.h. */
11931 /* Override any GCC internal prototype to avoid an error.
11932 Use char because int might match the return type of a GCC
11933 builtin and then its argument prototype would still apply. */
11934 #ifdef __cplusplus
11935 extern "C"
11936 #endif
11937 char dlopen ();
11939 main ()
11941 return dlopen ();
11943 return 0;
11945 _ACEOF
11946 if ac_fn_c_try_link "$LINENO"; then :
11947 ac_cv_lib_dl_dlopen=yes
11948 else
11949 ac_cv_lib_dl_dlopen=no
11951 rm -f core conftest.err conftest.$ac_objext \
11952 conftest$ac_exeext conftest.$ac_ext
11953 LIBS=$ac_check_lib_save_LIBS
11955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11956 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11957 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11958 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11959 else
11960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11961 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11962 if ${ac_cv_lib_svld_dlopen+:} false; then :
11963 $as_echo_n "(cached) " >&6
11964 else
11965 ac_check_lib_save_LIBS=$LIBS
11966 LIBS="-lsvld $LIBS"
11967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11968 /* end confdefs.h. */
11970 /* Override any GCC internal prototype to avoid an error.
11971 Use char because int might match the return type of a GCC
11972 builtin and then its argument prototype would still apply. */
11973 #ifdef __cplusplus
11974 extern "C"
11975 #endif
11976 char dlopen ();
11978 main ()
11980 return dlopen ();
11982 return 0;
11984 _ACEOF
11985 if ac_fn_c_try_link "$LINENO"; then :
11986 ac_cv_lib_svld_dlopen=yes
11987 else
11988 ac_cv_lib_svld_dlopen=no
11990 rm -f core conftest.err conftest.$ac_objext \
11991 conftest$ac_exeext conftest.$ac_ext
11992 LIBS=$ac_check_lib_save_LIBS
11994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11995 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11996 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11997 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11998 else
11999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12000 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12001 if ${ac_cv_lib_dld_dld_link+:} false; then :
12002 $as_echo_n "(cached) " >&6
12003 else
12004 ac_check_lib_save_LIBS=$LIBS
12005 LIBS="-ldld $LIBS"
12006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12007 /* end confdefs.h. */
12009 /* Override any GCC internal prototype to avoid an error.
12010 Use char because int might match the return type of a GCC
12011 builtin and then its argument prototype would still apply. */
12012 #ifdef __cplusplus
12013 extern "C"
12014 #endif
12015 char dld_link ();
12017 main ()
12019 return dld_link ();
12021 return 0;
12023 _ACEOF
12024 if ac_fn_c_try_link "$LINENO"; then :
12025 ac_cv_lib_dld_dld_link=yes
12026 else
12027 ac_cv_lib_dld_dld_link=no
12029 rm -f core conftest.err conftest.$ac_objext \
12030 conftest$ac_exeext conftest.$ac_ext
12031 LIBS=$ac_check_lib_save_LIBS
12033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12034 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12035 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12036 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12055 esac
12057 if test "x$lt_cv_dlopen" != xno; then
12058 enable_dlopen=yes
12059 else
12060 enable_dlopen=no
12063 case $lt_cv_dlopen in
12064 dlopen)
12065 save_CPPFLAGS="$CPPFLAGS"
12066 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12068 save_LDFLAGS="$LDFLAGS"
12069 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12071 save_LIBS="$LIBS"
12072 LIBS="$lt_cv_dlopen_libs $LIBS"
12074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12075 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12076 if ${lt_cv_dlopen_self+:} false; then :
12077 $as_echo_n "(cached) " >&6
12078 else
12079 if test "$cross_compiling" = yes; then :
12080 lt_cv_dlopen_self=cross
12081 else
12082 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12083 lt_status=$lt_dlunknown
12084 cat > conftest.$ac_ext <<_LT_EOF
12085 #line 12085 "configure"
12086 #include "confdefs.h"
12088 #if HAVE_DLFCN_H
12089 #include <dlfcn.h>
12090 #endif
12092 #include <stdio.h>
12094 #ifdef RTLD_GLOBAL
12095 # define LT_DLGLOBAL RTLD_GLOBAL
12096 #else
12097 # ifdef DL_GLOBAL
12098 # define LT_DLGLOBAL DL_GLOBAL
12099 # else
12100 # define LT_DLGLOBAL 0
12101 # endif
12102 #endif
12104 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12105 find out it does not work in some platform. */
12106 #ifndef LT_DLLAZY_OR_NOW
12107 # ifdef RTLD_LAZY
12108 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12109 # else
12110 # ifdef DL_LAZY
12111 # define LT_DLLAZY_OR_NOW DL_LAZY
12112 # else
12113 # ifdef RTLD_NOW
12114 # define LT_DLLAZY_OR_NOW RTLD_NOW
12115 # else
12116 # ifdef DL_NOW
12117 # define LT_DLLAZY_OR_NOW DL_NOW
12118 # else
12119 # define LT_DLLAZY_OR_NOW 0
12120 # endif
12121 # endif
12122 # endif
12123 # endif
12124 #endif
12126 /* When -fvisbility=hidden is used, assume the code has been annotated
12127 correspondingly for the symbols needed. */
12128 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12129 void fnord () __attribute__((visibility("default")));
12130 #endif
12132 void fnord () { int i=42; }
12133 int main ()
12135 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12136 int status = $lt_dlunknown;
12138 if (self)
12140 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12141 else
12143 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12144 else puts (dlerror ());
12146 /* dlclose (self); */
12148 else
12149 puts (dlerror ());
12151 return status;
12153 _LT_EOF
12154 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12155 (eval $ac_link) 2>&5
12156 ac_status=$?
12157 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12158 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12159 (./conftest; exit; ) >&5 2>/dev/null
12160 lt_status=$?
12161 case x$lt_status in
12162 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12163 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12164 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12165 esac
12166 else :
12167 # compilation failed
12168 lt_cv_dlopen_self=no
12171 rm -fr conftest*
12175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12176 $as_echo "$lt_cv_dlopen_self" >&6; }
12178 if test "x$lt_cv_dlopen_self" = xyes; then
12179 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12181 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12182 if ${lt_cv_dlopen_self_static+:} false; then :
12183 $as_echo_n "(cached) " >&6
12184 else
12185 if test "$cross_compiling" = yes; then :
12186 lt_cv_dlopen_self_static=cross
12187 else
12188 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12189 lt_status=$lt_dlunknown
12190 cat > conftest.$ac_ext <<_LT_EOF
12191 #line 12191 "configure"
12192 #include "confdefs.h"
12194 #if HAVE_DLFCN_H
12195 #include <dlfcn.h>
12196 #endif
12198 #include <stdio.h>
12200 #ifdef RTLD_GLOBAL
12201 # define LT_DLGLOBAL RTLD_GLOBAL
12202 #else
12203 # ifdef DL_GLOBAL
12204 # define LT_DLGLOBAL DL_GLOBAL
12205 # else
12206 # define LT_DLGLOBAL 0
12207 # endif
12208 #endif
12210 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12211 find out it does not work in some platform. */
12212 #ifndef LT_DLLAZY_OR_NOW
12213 # ifdef RTLD_LAZY
12214 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12215 # else
12216 # ifdef DL_LAZY
12217 # define LT_DLLAZY_OR_NOW DL_LAZY
12218 # else
12219 # ifdef RTLD_NOW
12220 # define LT_DLLAZY_OR_NOW RTLD_NOW
12221 # else
12222 # ifdef DL_NOW
12223 # define LT_DLLAZY_OR_NOW DL_NOW
12224 # else
12225 # define LT_DLLAZY_OR_NOW 0
12226 # endif
12227 # endif
12228 # endif
12229 # endif
12230 #endif
12232 /* When -fvisbility=hidden is used, assume the code has been annotated
12233 correspondingly for the symbols needed. */
12234 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12235 void fnord () __attribute__((visibility("default")));
12236 #endif
12238 void fnord () { int i=42; }
12239 int main ()
12241 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12242 int status = $lt_dlunknown;
12244 if (self)
12246 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12247 else
12249 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12250 else puts (dlerror ());
12252 /* dlclose (self); */
12254 else
12255 puts (dlerror ());
12257 return status;
12259 _LT_EOF
12260 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12261 (eval $ac_link) 2>&5
12262 ac_status=$?
12263 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12264 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12265 (./conftest; exit; ) >&5 2>/dev/null
12266 lt_status=$?
12267 case x$lt_status in
12268 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12269 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12270 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12271 esac
12272 else :
12273 # compilation failed
12274 lt_cv_dlopen_self_static=no
12277 rm -fr conftest*
12281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12282 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12285 CPPFLAGS="$save_CPPFLAGS"
12286 LDFLAGS="$save_LDFLAGS"
12287 LIBS="$save_LIBS"
12289 esac
12291 case $lt_cv_dlopen_self in
12292 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12293 *) enable_dlopen_self=unknown ;;
12294 esac
12296 case $lt_cv_dlopen_self_static in
12297 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12298 *) enable_dlopen_self_static=unknown ;;
12299 esac
12318 striplib=
12319 old_striplib=
12320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12321 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12322 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12323 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12324 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12326 $as_echo "yes" >&6; }
12327 else
12328 # FIXME - insert some real tests, host_os isn't really good enough
12329 case $host_os in
12330 darwin*)
12331 if test -n "$STRIP" ; then
12332 striplib="$STRIP -x"
12333 old_striplib="$STRIP -S"
12334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12335 $as_echo "yes" >&6; }
12336 else
12337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12338 $as_echo "no" >&6; }
12342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12343 $as_echo "no" >&6; }
12345 esac
12359 # Report which library types will actually be built
12360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12361 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12363 $as_echo "$can_build_shared" >&6; }
12365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12366 $as_echo_n "checking whether to build shared libraries... " >&6; }
12367 test "$can_build_shared" = "no" && enable_shared=no
12369 # On AIX, shared libraries and static libraries use the same namespace, and
12370 # are all built from PIC.
12371 case $host_os in
12372 aix3*)
12373 test "$enable_shared" = yes && enable_static=no
12374 if test -n "$RANLIB"; then
12375 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12376 postinstall_cmds='$RANLIB $lib'
12380 aix[4-9]*)
12381 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12382 test "$enable_shared" = yes && enable_static=no
12385 esac
12386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12387 $as_echo "$enable_shared" >&6; }
12389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12390 $as_echo_n "checking whether to build static libraries... " >&6; }
12391 # Make sure either enable_shared or enable_static is yes.
12392 test "$enable_shared" = yes || enable_static=yes
12393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12394 $as_echo "$enable_static" >&6; }
12400 ac_ext=c
12401 ac_cpp='$CPP $CPPFLAGS'
12402 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12403 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12404 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12406 CC="$lt_save_CC"
12408 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12409 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12410 (test "X$CXX" != "Xg++"))) ; then
12411 ac_ext=cpp
12412 ac_cpp='$CXXCPP $CPPFLAGS'
12413 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12414 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12415 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12417 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12418 if test -z "$CXXCPP"; then
12419 if ${ac_cv_prog_CXXCPP+:} false; then :
12420 $as_echo_n "(cached) " >&6
12421 else
12422 # Double quotes because CXXCPP needs to be expanded
12423 for CXXCPP in "$CXX -E" "/lib/cpp"
12425 ac_preproc_ok=false
12426 for ac_cxx_preproc_warn_flag in '' yes
12428 # Use a header file that comes with gcc, so configuring glibc
12429 # with a fresh cross-compiler works.
12430 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12431 # <limits.h> exists even on freestanding compilers.
12432 # On the NeXT, cc -E runs the code through the compiler's parser,
12433 # not just through cpp. "Syntax error" is here to catch this case.
12434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12435 /* end confdefs.h. */
12436 #ifdef __STDC__
12437 # include <limits.h>
12438 #else
12439 # include <assert.h>
12440 #endif
12441 Syntax error
12442 _ACEOF
12443 if ac_fn_cxx_try_cpp "$LINENO"; then :
12445 else
12446 # Broken: fails on valid input.
12447 continue
12449 rm -f conftest.err conftest.i conftest.$ac_ext
12451 # OK, works on sane cases. Now check whether nonexistent headers
12452 # can be detected and how.
12453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12454 /* end confdefs.h. */
12455 #include <ac_nonexistent.h>
12456 _ACEOF
12457 if ac_fn_cxx_try_cpp "$LINENO"; then :
12458 # Broken: success on invalid input.
12459 continue
12460 else
12461 # Passes both tests.
12462 ac_preproc_ok=:
12463 break
12465 rm -f conftest.err conftest.i conftest.$ac_ext
12467 done
12468 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12469 rm -f conftest.i conftest.err conftest.$ac_ext
12470 if $ac_preproc_ok; then :
12471 break
12474 done
12475 ac_cv_prog_CXXCPP=$CXXCPP
12478 CXXCPP=$ac_cv_prog_CXXCPP
12479 else
12480 ac_cv_prog_CXXCPP=$CXXCPP
12482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12483 $as_echo "$CXXCPP" >&6; }
12484 ac_preproc_ok=false
12485 for ac_cxx_preproc_warn_flag in '' yes
12487 # Use a header file that comes with gcc, so configuring glibc
12488 # with a fresh cross-compiler works.
12489 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12490 # <limits.h> exists even on freestanding compilers.
12491 # On the NeXT, cc -E runs the code through the compiler's parser,
12492 # not just through cpp. "Syntax error" is here to catch this case.
12493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12494 /* end confdefs.h. */
12495 #ifdef __STDC__
12496 # include <limits.h>
12497 #else
12498 # include <assert.h>
12499 #endif
12500 Syntax error
12501 _ACEOF
12502 if ac_fn_cxx_try_cpp "$LINENO"; then :
12504 else
12505 # Broken: fails on valid input.
12506 continue
12508 rm -f conftest.err conftest.i conftest.$ac_ext
12510 # OK, works on sane cases. Now check whether nonexistent headers
12511 # can be detected and how.
12512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12513 /* end confdefs.h. */
12514 #include <ac_nonexistent.h>
12515 _ACEOF
12516 if ac_fn_cxx_try_cpp "$LINENO"; then :
12517 # Broken: success on invalid input.
12518 continue
12519 else
12520 # Passes both tests.
12521 ac_preproc_ok=:
12522 break
12524 rm -f conftest.err conftest.i conftest.$ac_ext
12526 done
12527 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12528 rm -f conftest.i conftest.err conftest.$ac_ext
12529 if $ac_preproc_ok; then :
12531 else
12532 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12533 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12534 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
12535 See \`config.log' for more details" "$LINENO" 5; }
12538 ac_ext=c
12539 ac_cpp='$CPP $CPPFLAGS'
12540 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12541 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12542 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12544 else
12545 _lt_caught_CXX_error=yes
12548 ac_ext=cpp
12549 ac_cpp='$CXXCPP $CPPFLAGS'
12550 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12551 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12552 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12554 archive_cmds_need_lc_CXX=no
12555 allow_undefined_flag_CXX=
12556 always_export_symbols_CXX=no
12557 archive_expsym_cmds_CXX=
12558 compiler_needs_object_CXX=no
12559 export_dynamic_flag_spec_CXX=
12560 hardcode_direct_CXX=no
12561 hardcode_direct_absolute_CXX=no
12562 hardcode_libdir_flag_spec_CXX=
12563 hardcode_libdir_flag_spec_ld_CXX=
12564 hardcode_libdir_separator_CXX=
12565 hardcode_minus_L_CXX=no
12566 hardcode_shlibpath_var_CXX=unsupported
12567 hardcode_automatic_CXX=no
12568 inherit_rpath_CXX=no
12569 module_cmds_CXX=
12570 module_expsym_cmds_CXX=
12571 link_all_deplibs_CXX=unknown
12572 old_archive_cmds_CXX=$old_archive_cmds
12573 reload_flag_CXX=$reload_flag
12574 reload_cmds_CXX=$reload_cmds
12575 no_undefined_flag_CXX=
12576 whole_archive_flag_spec_CXX=
12577 enable_shared_with_static_runtimes_CXX=no
12579 # Source file extension for C++ test sources.
12580 ac_ext=cpp
12582 # Object file extension for compiled C++ test sources.
12583 objext=o
12584 objext_CXX=$objext
12586 # No sense in running all these tests if we already determined that
12587 # the CXX compiler isn't working. Some variables (like enable_shared)
12588 # are currently assumed to apply to all compilers on this platform,
12589 # and will be corrupted by setting them based on a non-working compiler.
12590 if test "$_lt_caught_CXX_error" != yes; then
12591 # Code to be used in simple compile tests
12592 lt_simple_compile_test_code="int some_variable = 0;"
12594 # Code to be used in simple link tests
12595 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12597 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12604 # If no C compiler was specified, use CC.
12605 LTCC=${LTCC-"$CC"}
12607 # If no C compiler flags were specified, use CFLAGS.
12608 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12610 # Allow CC to be a program name with arguments.
12611 compiler=$CC
12614 # save warnings/boilerplate of simple test code
12615 ac_outfile=conftest.$ac_objext
12616 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12617 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12618 _lt_compiler_boilerplate=`cat conftest.err`
12619 $RM conftest*
12621 ac_outfile=conftest.$ac_objext
12622 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12623 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12624 _lt_linker_boilerplate=`cat conftest.err`
12625 $RM -r conftest*
12628 # Allow CC to be a program name with arguments.
12629 lt_save_CC=$CC
12630 lt_save_LD=$LD
12631 lt_save_GCC=$GCC
12632 GCC=$GXX
12633 lt_save_with_gnu_ld=$with_gnu_ld
12634 lt_save_path_LD=$lt_cv_path_LD
12635 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12636 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12637 else
12638 $as_unset lt_cv_prog_gnu_ld
12640 if test -n "${lt_cv_path_LDCXX+set}"; then
12641 lt_cv_path_LD=$lt_cv_path_LDCXX
12642 else
12643 $as_unset lt_cv_path_LD
12645 test -z "${LDCXX+set}" || LD=$LDCXX
12646 CC=${CXX-"c++"}
12647 compiler=$CC
12648 compiler_CXX=$CC
12649 for cc_temp in $compiler""; do
12650 case $cc_temp in
12651 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12652 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12653 \-*) ;;
12654 *) break;;
12655 esac
12656 done
12657 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12660 if test -n "$compiler"; then
12661 # We don't want -fno-exception when compiling C++ code, so set the
12662 # no_builtin_flag separately
12663 if test "$GXX" = yes; then
12664 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12665 else
12666 lt_prog_compiler_no_builtin_flag_CXX=
12669 if test "$GXX" = yes; then
12670 # Set up default GNU C++ configuration
12674 # Check whether --with-gnu-ld was given.
12675 if test "${with_gnu_ld+set}" = set; then :
12676 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12677 else
12678 with_gnu_ld=no
12681 ac_prog=ld
12682 if test "$GCC" = yes; then
12683 # Check if gcc -print-prog-name=ld gives a path.
12684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12685 $as_echo_n "checking for ld used by $CC... " >&6; }
12686 case $host in
12687 *-*-mingw*)
12688 # gcc leaves a trailing carriage return which upsets mingw
12689 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12691 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12692 esac
12693 case $ac_prog in
12694 # Accept absolute paths.
12695 [\\/]* | ?:[\\/]*)
12696 re_direlt='/[^/][^/]*/\.\./'
12697 # Canonicalize the pathname of ld
12698 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12699 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12700 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12701 done
12702 test -z "$LD" && LD="$ac_prog"
12705 # If it fails, then pretend we aren't using GCC.
12706 ac_prog=ld
12709 # If it is relative, then search for the first ld in PATH.
12710 with_gnu_ld=unknown
12712 esac
12713 elif test "$with_gnu_ld" = yes; then
12714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12715 $as_echo_n "checking for GNU ld... " >&6; }
12716 else
12717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12718 $as_echo_n "checking for non-GNU ld... " >&6; }
12720 if ${lt_cv_path_LD+:} false; then :
12721 $as_echo_n "(cached) " >&6
12722 else
12723 if test -z "$LD"; then
12724 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12725 for ac_dir in $PATH; do
12726 IFS="$lt_save_ifs"
12727 test -z "$ac_dir" && ac_dir=.
12728 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12729 lt_cv_path_LD="$ac_dir/$ac_prog"
12730 # Check to see if the program is GNU ld. I'd rather use --version,
12731 # but apparently some variants of GNU ld only accept -v.
12732 # Break only if it was the GNU/non-GNU ld that we prefer.
12733 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12734 *GNU* | *'with BFD'*)
12735 test "$with_gnu_ld" != no && break
12738 test "$with_gnu_ld" != yes && break
12740 esac
12742 done
12743 IFS="$lt_save_ifs"
12744 else
12745 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12749 LD="$lt_cv_path_LD"
12750 if test -n "$LD"; then
12751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12752 $as_echo "$LD" >&6; }
12753 else
12754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12755 $as_echo "no" >&6; }
12757 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12759 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12760 if ${lt_cv_prog_gnu_ld+:} false; then :
12761 $as_echo_n "(cached) " >&6
12762 else
12763 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12764 case `$LD -v 2>&1 </dev/null` in
12765 *GNU* | *'with BFD'*)
12766 lt_cv_prog_gnu_ld=yes
12769 lt_cv_prog_gnu_ld=no
12771 esac
12773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12774 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12775 with_gnu_ld=$lt_cv_prog_gnu_ld
12783 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12784 # archiving commands below assume that GNU ld is being used.
12785 if test "$with_gnu_ld" = yes; then
12786 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12787 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'
12789 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12790 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12792 # If archive_cmds runs LD, not CC, wlarc should be empty
12793 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12794 # investigate it a little bit more. (MM)
12795 wlarc='${wl}'
12797 # ancient GNU ld didn't support --whole-archive et. al.
12798 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12799 $GREP 'no-whole-archive' > /dev/null; then
12800 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12801 else
12802 whole_archive_flag_spec_CXX=
12804 else
12805 with_gnu_ld=no
12806 wlarc=
12808 # A generic and very simple default shared library creation
12809 # command for GNU C++ for the case where it uses the native
12810 # linker, instead of GNU ld. If possible, this setting should
12811 # overridden to take advantage of the native linker features on
12812 # the platform it is being used on.
12813 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12816 # Commands to make compiler produce verbose output that lists
12817 # what "hidden" libraries, object files and flags are used when
12818 # linking a shared library.
12819 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12821 else
12822 GXX=no
12823 with_gnu_ld=no
12824 wlarc=
12827 # PORTME: fill in a description of your system's C++ link characteristics
12828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12829 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12830 ld_shlibs_CXX=yes
12831 case $host_os in
12832 aix3*)
12833 # FIXME: insert proper C++ library support
12834 ld_shlibs_CXX=no
12836 aix[4-9]*)
12837 if test "$host_cpu" = ia64; then
12838 # On IA64, the linker does run time linking by default, so we don't
12839 # have to do anything special.
12840 aix_use_runtimelinking=no
12841 exp_sym_flag='-Bexport'
12842 no_entry_flag=""
12843 else
12844 aix_use_runtimelinking=no
12846 # Test if we are trying to use run time linking or normal
12847 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12848 # need to do runtime linking.
12849 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12850 for ld_flag in $LDFLAGS; do
12851 case $ld_flag in
12852 *-brtl*)
12853 aix_use_runtimelinking=yes
12854 break
12856 esac
12857 done
12859 esac
12861 exp_sym_flag='-bexport'
12862 no_entry_flag='-bnoentry'
12865 # When large executables or shared objects are built, AIX ld can
12866 # have problems creating the table of contents. If linking a library
12867 # or program results in "error TOC overflow" add -mminimal-toc to
12868 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12869 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12871 archive_cmds_CXX=''
12872 hardcode_direct_CXX=yes
12873 hardcode_direct_absolute_CXX=yes
12874 hardcode_libdir_separator_CXX=':'
12875 link_all_deplibs_CXX=yes
12876 file_list_spec_CXX='${wl}-f,'
12878 if test "$GXX" = yes; then
12879 case $host_os in aix4.[012]|aix4.[012].*)
12880 # We only want to do this on AIX 4.2 and lower, the check
12881 # below for broken collect2 doesn't work under 4.3+
12882 collect2name=`${CC} -print-prog-name=collect2`
12883 if test -f "$collect2name" &&
12884 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12885 then
12886 # We have reworked collect2
12888 else
12889 # We have old collect2
12890 hardcode_direct_CXX=unsupported
12891 # It fails to find uninstalled libraries when the uninstalled
12892 # path is not listed in the libpath. Setting hardcode_minus_L
12893 # to unsupported forces relinking
12894 hardcode_minus_L_CXX=yes
12895 hardcode_libdir_flag_spec_CXX='-L$libdir'
12896 hardcode_libdir_separator_CXX=
12898 esac
12899 shared_flag='-shared'
12900 if test "$aix_use_runtimelinking" = yes; then
12901 shared_flag="$shared_flag "'${wl}-G'
12903 else
12904 # not using gcc
12905 if test "$host_cpu" = ia64; then
12906 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12907 # chokes on -Wl,-G. The following line is correct:
12908 shared_flag='-G'
12909 else
12910 if test "$aix_use_runtimelinking" = yes; then
12911 shared_flag='${wl}-G'
12912 else
12913 shared_flag='${wl}-bM:SRE'
12918 export_dynamic_flag_spec_CXX='${wl}-bexpall'
12919 # It seems that -bexpall does not export symbols beginning with
12920 # underscore (_), so it is better to generate a list of symbols to
12921 # export.
12922 always_export_symbols_CXX=yes
12923 if test "$aix_use_runtimelinking" = yes; then
12924 # Warning - without using the other runtime loading flags (-brtl),
12925 # -berok will link without error, but may produce a broken library.
12926 allow_undefined_flag_CXX='-berok'
12927 # Determine the default libpath from the value encoded in an empty
12928 # executable.
12929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12930 /* end confdefs.h. */
12933 main ()
12937 return 0;
12939 _ACEOF
12940 if ac_fn_cxx_try_link "$LINENO"; then :
12942 lt_aix_libpath_sed='
12943 /Import File Strings/,/^$/ {
12944 /^0/ {
12945 s/^0 *\(.*\)$/\1/
12949 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12950 # Check for a 64-bit object if we didn't find anything.
12951 if test -z "$aix_libpath"; then
12952 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12955 rm -f core conftest.err conftest.$ac_objext \
12956 conftest$ac_exeext conftest.$ac_ext
12957 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12959 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12961 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"
12962 else
12963 if test "$host_cpu" = ia64; then
12964 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12965 allow_undefined_flag_CXX="-z nodefs"
12966 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"
12967 else
12968 # Determine the default libpath from the value encoded in an
12969 # empty executable.
12970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12971 /* end confdefs.h. */
12974 main ()
12978 return 0;
12980 _ACEOF
12981 if ac_fn_cxx_try_link "$LINENO"; then :
12983 lt_aix_libpath_sed='
12984 /Import File Strings/,/^$/ {
12985 /^0/ {
12986 s/^0 *\(.*\)$/\1/
12990 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12991 # Check for a 64-bit object if we didn't find anything.
12992 if test -z "$aix_libpath"; then
12993 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12996 rm -f core conftest.err conftest.$ac_objext \
12997 conftest$ac_exeext conftest.$ac_ext
12998 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13000 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13001 # Warning - without using the other run time loading flags,
13002 # -berok will link without error, but may produce a broken library.
13003 no_undefined_flag_CXX=' ${wl}-bernotok'
13004 allow_undefined_flag_CXX=' ${wl}-berok'
13005 if test "$with_gnu_ld" = yes; then
13006 # We only use this code for GNU lds that support --whole-archive.
13007 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13008 else
13009 # Exported symbols can be pulled into shared objects from archives
13010 whole_archive_flag_spec_CXX='$convenience'
13012 archive_cmds_need_lc_CXX=yes
13013 # This is similar to how AIX traditionally builds its shared
13014 # libraries.
13015 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'
13020 beos*)
13021 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13022 allow_undefined_flag_CXX=unsupported
13023 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13024 # support --undefined. This deserves some investigation. FIXME
13025 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13026 else
13027 ld_shlibs_CXX=no
13031 chorus*)
13032 case $cc_basename in
13034 # FIXME: insert proper C++ library support
13035 ld_shlibs_CXX=no
13037 esac
13040 cygwin* | mingw* | pw32* | cegcc*)
13041 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13042 # as there is no search path for DLLs.
13043 hardcode_libdir_flag_spec_CXX='-L$libdir'
13044 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
13045 allow_undefined_flag_CXX=unsupported
13046 always_export_symbols_CXX=no
13047 enable_shared_with_static_runtimes_CXX=yes
13049 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13050 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'
13051 # If the export-symbols file already is a .def file (1st line
13052 # is EXPORTS), use it as is; otherwise, prepend...
13053 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13054 cp $export_symbols $output_objdir/$soname.def;
13055 else
13056 echo EXPORTS > $output_objdir/$soname.def;
13057 cat $export_symbols >> $output_objdir/$soname.def;
13059 $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'
13060 else
13061 ld_shlibs_CXX=no
13064 darwin* | rhapsody*)
13067 archive_cmds_need_lc_CXX=no
13068 hardcode_direct_CXX=no
13069 hardcode_automatic_CXX=yes
13070 hardcode_shlibpath_var_CXX=unsupported
13071 if test "$lt_cv_ld_force_load" = "yes"; then
13072 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\"`'
13073 else
13074 whole_archive_flag_spec_CXX=''
13076 link_all_deplibs_CXX=yes
13077 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13078 case $cc_basename in
13079 ifort*) _lt_dar_can_shared=yes ;;
13080 *) _lt_dar_can_shared=$GCC ;;
13081 esac
13082 if test "$_lt_dar_can_shared" = "yes"; then
13083 output_verbose_link_cmd=func_echo_all
13084 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}"
13085 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13086 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}"
13087 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}"
13088 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13089 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}"
13090 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}"
13093 else
13094 ld_shlibs_CXX=no
13099 dgux*)
13100 case $cc_basename in
13101 ec++*)
13102 # FIXME: insert proper C++ library support
13103 ld_shlibs_CXX=no
13105 ghcx*)
13106 # Green Hills C++ Compiler
13107 # FIXME: insert proper C++ library support
13108 ld_shlibs_CXX=no
13111 # FIXME: insert proper C++ library support
13112 ld_shlibs_CXX=no
13114 esac
13117 freebsd2.*)
13118 # C++ shared libraries reported to be fairly broken before
13119 # switch to ELF
13120 ld_shlibs_CXX=no
13123 freebsd-elf*)
13124 archive_cmds_need_lc_CXX=no
13127 freebsd* | dragonfly*)
13128 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13129 # conventions
13130 ld_shlibs_CXX=yes
13133 gnu*)
13136 haiku*)
13137 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13138 link_all_deplibs_CXX=yes
13141 hpux9*)
13142 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13143 hardcode_libdir_separator_CXX=:
13144 export_dynamic_flag_spec_CXX='${wl}-E'
13145 hardcode_direct_CXX=yes
13146 hardcode_minus_L_CXX=yes # Not in the search PATH,
13147 # but as the default
13148 # location of the library.
13150 case $cc_basename in
13151 CC*)
13152 # FIXME: insert proper C++ library support
13153 ld_shlibs_CXX=no
13155 aCC*)
13156 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'
13157 # Commands to make compiler produce verbose output that lists
13158 # what "hidden" libraries, object files and flags are used when
13159 # linking a shared library.
13161 # There doesn't appear to be a way to prevent this compiler from
13162 # explicitly linking system object files so we need to strip them
13163 # from the output so that they don't get included in the library
13164 # dependencies.
13165 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"'
13168 if test "$GXX" = yes; then
13169 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'
13170 else
13171 # FIXME: insert proper C++ library support
13172 ld_shlibs_CXX=no
13175 esac
13178 hpux10*|hpux11*)
13179 if test $with_gnu_ld = no; then
13180 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13181 hardcode_libdir_separator_CXX=:
13183 case $host_cpu in
13184 hppa*64*|ia64*)
13187 export_dynamic_flag_spec_CXX='${wl}-E'
13189 esac
13191 case $host_cpu in
13192 hppa*64*|ia64*)
13193 hardcode_direct_CXX=no
13194 hardcode_shlibpath_var_CXX=no
13197 hardcode_direct_CXX=yes
13198 hardcode_direct_absolute_CXX=yes
13199 hardcode_minus_L_CXX=yes # Not in the search PATH,
13200 # but as the default
13201 # location of the library.
13203 esac
13205 case $cc_basename in
13206 CC*)
13207 # FIXME: insert proper C++ library support
13208 ld_shlibs_CXX=no
13210 aCC*)
13211 case $host_cpu in
13212 hppa*64*)
13213 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13215 ia64*)
13216 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13219 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13221 esac
13222 # Commands to make compiler produce verbose output that lists
13223 # what "hidden" libraries, object files and flags are used when
13224 # linking a shared library.
13226 # There doesn't appear to be a way to prevent this compiler from
13227 # explicitly linking system object files so we need to strip them
13228 # from the output so that they don't get included in the library
13229 # dependencies.
13230 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"'
13233 if test "$GXX" = yes; then
13234 if test $with_gnu_ld = no; then
13235 case $host_cpu in
13236 hppa*64*)
13237 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13239 ia64*)
13240 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13243 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'
13245 esac
13247 else
13248 # FIXME: insert proper C++ library support
13249 ld_shlibs_CXX=no
13252 esac
13255 interix[3-9]*)
13256 hardcode_direct_CXX=no
13257 hardcode_shlibpath_var_CXX=no
13258 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13259 export_dynamic_flag_spec_CXX='${wl}-E'
13260 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13261 # Instead, shared libraries are loaded at an image base (0x10000000 by
13262 # default) and relocated if they conflict, which is a slow very memory
13263 # consuming and fragmenting process. To avoid this, we pick a random,
13264 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13265 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13266 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'
13267 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'
13269 irix5* | irix6*)
13270 case $cc_basename in
13271 CC*)
13272 # SGI C++
13273 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'
13275 # Archives containing C++ object files must be created using
13276 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13277 # necessary to make sure instantiated templates are included
13278 # in the archive.
13279 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13282 if test "$GXX" = yes; then
13283 if test "$with_gnu_ld" = no; then
13284 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'
13285 else
13286 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'
13289 link_all_deplibs_CXX=yes
13291 esac
13292 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13293 hardcode_libdir_separator_CXX=:
13294 inherit_rpath_CXX=yes
13297 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13298 case $cc_basename in
13299 KCC*)
13300 # Kuck and Associates, Inc. (KAI) C++ Compiler
13302 # KCC will only create a shared library if the output file
13303 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13304 # to its proper name (with version) after linking.
13305 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'
13306 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'
13307 # Commands to make compiler produce verbose output that lists
13308 # what "hidden" libraries, object files and flags are used when
13309 # linking a shared library.
13311 # There doesn't appear to be a way to prevent this compiler from
13312 # explicitly linking system object files so we need to strip them
13313 # from the output so that they don't get included in the library
13314 # dependencies.
13315 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"'
13317 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13318 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13320 # Archives containing C++ object files must be created using
13321 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13322 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13324 icpc* | ecpc* )
13325 # Intel C++
13326 with_gnu_ld=yes
13327 # version 8.0 and above of icpc choke on multiply defined symbols
13328 # if we add $predep_objects and $postdep_objects, however 7.1 and
13329 # earlier do not add the objects themselves.
13330 case `$CC -V 2>&1` in
13331 *"Version 7."*)
13332 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13333 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'
13335 *) # Version 8.0 or newer
13336 tmp_idyn=
13337 case $host_cpu in
13338 ia64*) tmp_idyn=' -i_dynamic';;
13339 esac
13340 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13341 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'
13343 esac
13344 archive_cmds_need_lc_CXX=no
13345 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13346 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13347 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13349 pgCC* | pgcpp*)
13350 # Portland Group C++ compiler
13351 case `$CC -V` in
13352 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
13353 prelink_cmds_CXX='tpldir=Template.dir~
13354 rm -rf $tpldir~
13355 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13356 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
13357 old_archive_cmds_CXX='tpldir=Template.dir~
13358 rm -rf $tpldir~
13359 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13360 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
13361 $RANLIB $oldlib'
13362 archive_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 -o $lib'
13366 archive_expsym_cmds_CXX='tpldir=Template.dir~
13367 rm -rf $tpldir~
13368 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13369 $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'
13371 *) # Version 6 and above use weak symbols
13372 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13373 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'
13375 esac
13377 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13378 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13379 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'
13381 cxx*)
13382 # Compaq C++
13383 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13384 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'
13386 runpath_var=LD_RUN_PATH
13387 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13388 hardcode_libdir_separator_CXX=:
13390 # Commands to make compiler produce verbose output that lists
13391 # what "hidden" libraries, object files and flags are used when
13392 # linking a shared library.
13394 # There doesn't appear to be a way to prevent this compiler from
13395 # explicitly linking system object files so we need to strip them
13396 # from the output so that they don't get included in the library
13397 # dependencies.
13398 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'
13400 xl* | mpixl* | bgxl*)
13401 # IBM XL 8.0 on PPC, with GNU ld
13402 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13403 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13404 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13405 if test "x$supports_anon_versioning" = xyes; then
13406 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13407 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13408 echo "local: *; };" >> $output_objdir/$libname.ver~
13409 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13413 case `$CC -V 2>&1 | sed 5q` in
13414 *Sun\ C*)
13415 # Sun C++ 5.9
13416 no_undefined_flag_CXX=' -zdefs'
13417 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13418 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'
13419 hardcode_libdir_flag_spec_CXX='-R$libdir'
13420 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'
13421 compiler_needs_object_CXX=yes
13423 # Not sure whether something based on
13424 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13425 # would be better.
13426 output_verbose_link_cmd='func_echo_all'
13428 # Archives containing C++ object files must be created using
13429 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13430 # necessary to make sure instantiated templates are included
13431 # in the archive.
13432 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13434 esac
13436 esac
13439 lynxos*)
13440 # FIXME: insert proper C++ library support
13441 ld_shlibs_CXX=no
13444 m88k*)
13445 # FIXME: insert proper C++ library support
13446 ld_shlibs_CXX=no
13449 mvs*)
13450 case $cc_basename in
13451 cxx*)
13452 # FIXME: insert proper C++ library support
13453 ld_shlibs_CXX=no
13456 # FIXME: insert proper C++ library support
13457 ld_shlibs_CXX=no
13459 esac
13462 netbsd*)
13463 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13464 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13465 wlarc=
13466 hardcode_libdir_flag_spec_CXX='-R$libdir'
13467 hardcode_direct_CXX=yes
13468 hardcode_shlibpath_var_CXX=no
13470 # Workaround some broken pre-1.5 toolchains
13471 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13474 *nto* | *qnx*)
13475 ld_shlibs_CXX=yes
13478 openbsd2*)
13479 # C++ shared libraries are fairly broken
13480 ld_shlibs_CXX=no
13483 openbsd*)
13484 if test -f /usr/libexec/ld.so; then
13485 hardcode_direct_CXX=yes
13486 hardcode_shlibpath_var_CXX=no
13487 hardcode_direct_absolute_CXX=yes
13488 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13489 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13490 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13491 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13492 export_dynamic_flag_spec_CXX='${wl}-E'
13493 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13495 output_verbose_link_cmd=func_echo_all
13496 else
13497 ld_shlibs_CXX=no
13501 osf3* | osf4* | osf5*)
13502 case $cc_basename in
13503 KCC*)
13504 # Kuck and Associates, Inc. (KAI) C++ Compiler
13506 # KCC will only create a shared library if the output file
13507 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13508 # to its proper name (with version) after linking.
13509 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'
13511 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13512 hardcode_libdir_separator_CXX=:
13514 # Archives containing C++ object files must be created using
13515 # the KAI C++ compiler.
13516 case $host in
13517 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13518 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13519 esac
13521 RCC*)
13522 # Rational C++ 2.4.1
13523 # FIXME: insert proper C++ library support
13524 ld_shlibs_CXX=no
13526 cxx*)
13527 case $host in
13528 osf3*)
13529 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13530 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'
13531 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13534 allow_undefined_flag_CXX=' -expect_unresolved \*'
13535 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'
13536 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13537 echo "-hidden">> $lib.exp~
13538 $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~
13539 $RM $lib.exp'
13540 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13542 esac
13544 hardcode_libdir_separator_CXX=:
13546 # Commands to make compiler produce verbose output that lists
13547 # what "hidden" libraries, object files and flags are used when
13548 # linking a shared library.
13550 # There doesn't appear to be a way to prevent this compiler from
13551 # explicitly linking system object files so we need to strip them
13552 # from the output so that they don't get included in the library
13553 # dependencies.
13554 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"'
13557 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13558 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13559 case $host in
13560 osf3*)
13561 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'
13564 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'
13566 esac
13568 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13569 hardcode_libdir_separator_CXX=:
13571 # Commands to make compiler produce verbose output that lists
13572 # what "hidden" libraries, object files and flags are used when
13573 # linking a shared library.
13574 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13576 else
13577 # FIXME: insert proper C++ library support
13578 ld_shlibs_CXX=no
13581 esac
13584 psos*)
13585 # FIXME: insert proper C++ library support
13586 ld_shlibs_CXX=no
13589 sunos4*)
13590 case $cc_basename in
13591 CC*)
13592 # Sun C++ 4.x
13593 # FIXME: insert proper C++ library support
13594 ld_shlibs_CXX=no
13596 lcc*)
13597 # Lucid
13598 # FIXME: insert proper C++ library support
13599 ld_shlibs_CXX=no
13602 # FIXME: insert proper C++ library support
13603 ld_shlibs_CXX=no
13605 esac
13608 solaris*)
13609 case $cc_basename in
13610 CC*)
13611 # Sun C++ 4.2, 5.x and Centerline C++
13612 archive_cmds_need_lc_CXX=yes
13613 no_undefined_flag_CXX=' -zdefs'
13614 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13615 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13616 $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'
13618 hardcode_libdir_flag_spec_CXX='-R$libdir'
13619 hardcode_shlibpath_var_CXX=no
13620 case $host_os in
13621 solaris2.[0-5] | solaris2.[0-5].*) ;;
13623 # The compiler driver will combine and reorder linker options,
13624 # but understands `-z linker_flag'.
13625 # Supported since Solaris 2.6 (maybe 2.5.1?)
13626 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13628 esac
13629 link_all_deplibs_CXX=yes
13631 output_verbose_link_cmd='func_echo_all'
13633 # Archives containing C++ object files must be created using
13634 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13635 # necessary to make sure instantiated templates are included
13636 # in the archive.
13637 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13639 gcx*)
13640 # Green Hills C++ Compiler
13641 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13643 # The C++ compiler must be used to create the archive.
13644 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13647 # GNU C++ compiler with Solaris linker
13648 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13649 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13650 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13651 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13652 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13653 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13655 # Commands to make compiler produce verbose output that lists
13656 # what "hidden" libraries, object files and flags are used when
13657 # linking a shared library.
13658 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13659 else
13660 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13661 # platform.
13662 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13663 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13664 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13666 # Commands to make compiler produce verbose output that lists
13667 # what "hidden" libraries, object files and flags are used when
13668 # linking a shared library.
13669 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13672 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13673 case $host_os in
13674 solaris2.[0-5] | solaris2.[0-5].*) ;;
13676 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13678 esac
13681 esac
13684 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13685 no_undefined_flag_CXX='${wl}-z,text'
13686 archive_cmds_need_lc_CXX=no
13687 hardcode_shlibpath_var_CXX=no
13688 runpath_var='LD_RUN_PATH'
13690 case $cc_basename in
13691 CC*)
13692 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13693 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13696 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13697 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13699 esac
13702 sysv5* | sco3.2v5* | sco5v6*)
13703 # Note: We can NOT use -z defs as we might desire, because we do not
13704 # link with -lc, and that would cause any symbols used from libc to
13705 # always be unresolved, which means just about no library would
13706 # ever link correctly. If we're not using GNU ld we use -z text
13707 # though, which does catch some bad symbols but isn't as heavy-handed
13708 # as -z defs.
13709 no_undefined_flag_CXX='${wl}-z,text'
13710 allow_undefined_flag_CXX='${wl}-z,nodefs'
13711 archive_cmds_need_lc_CXX=no
13712 hardcode_shlibpath_var_CXX=no
13713 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13714 hardcode_libdir_separator_CXX=':'
13715 link_all_deplibs_CXX=yes
13716 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13717 runpath_var='LD_RUN_PATH'
13719 case $cc_basename in
13720 CC*)
13721 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13722 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13723 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13724 '"$old_archive_cmds_CXX"
13725 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13726 '"$reload_cmds_CXX"
13729 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13730 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13732 esac
13735 tandem*)
13736 case $cc_basename in
13737 NCC*)
13738 # NonStop-UX NCC 3.20
13739 # FIXME: insert proper C++ library support
13740 ld_shlibs_CXX=no
13743 # FIXME: insert proper C++ library support
13744 ld_shlibs_CXX=no
13746 esac
13749 vxworks*)
13750 # For VxWorks ports, we assume the use of a GNU linker with
13751 # standard elf conventions.
13752 ld_shlibs_CXX=yes
13756 # FIXME: insert proper C++ library support
13757 ld_shlibs_CXX=no
13759 esac
13761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13762 $as_echo "$ld_shlibs_CXX" >&6; }
13763 test "$ld_shlibs_CXX" = no && can_build_shared=no
13765 GCC_CXX="$GXX"
13766 LD_CXX="$LD"
13768 ## CAVEAT EMPTOR:
13769 ## There is no encapsulation within the following macros, do not change
13770 ## the running order or otherwise move them around unless you know exactly
13771 ## what you are doing...
13772 # Dependencies to place before and after the object being linked:
13773 predep_objects_CXX=
13774 postdep_objects_CXX=
13775 predeps_CXX=
13776 postdeps_CXX=
13777 compiler_lib_search_path_CXX=
13779 cat > conftest.$ac_ext <<_LT_EOF
13780 class Foo
13782 public:
13783 Foo (void) { a = 0; }
13784 private:
13785 int a;
13787 _LT_EOF
13789 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13790 (eval $ac_compile) 2>&5
13791 ac_status=$?
13792 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13793 test $ac_status = 0; }; then
13794 # Parse the compiler output and extract the necessary
13795 # objects, libraries and library flags.
13797 # Sentinel used to keep track of whether or not we are before
13798 # the conftest object file.
13799 pre_test_object_deps_done=no
13801 for p in `eval "$output_verbose_link_cmd"`; do
13802 case $p in
13804 -L* | -R* | -l*)
13805 # Some compilers place space between "-{L,R}" and the path.
13806 # Remove the space.
13807 if test $p = "-L" ||
13808 test $p = "-R"; then
13809 prev=$p
13810 continue
13811 else
13812 prev=
13815 if test "$pre_test_object_deps_done" = no; then
13816 case $p in
13817 -L* | -R*)
13818 # Internal compiler library paths should come after those
13819 # provided the user. The postdeps already come after the
13820 # user supplied libs so there is no need to process them.
13821 if test -z "$compiler_lib_search_path_CXX"; then
13822 compiler_lib_search_path_CXX="${prev}${p}"
13823 else
13824 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13827 # The "-l" case would never come before the object being
13828 # linked, so don't bother handling this case.
13829 esac
13830 else
13831 if test -z "$postdeps_CXX"; then
13832 postdeps_CXX="${prev}${p}"
13833 else
13834 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13839 *.$objext)
13840 # This assumes that the test object file only shows up
13841 # once in the compiler output.
13842 if test "$p" = "conftest.$objext"; then
13843 pre_test_object_deps_done=yes
13844 continue
13847 if test "$pre_test_object_deps_done" = no; then
13848 if test -z "$predep_objects_CXX"; then
13849 predep_objects_CXX="$p"
13850 else
13851 predep_objects_CXX="$predep_objects_CXX $p"
13853 else
13854 if test -z "$postdep_objects_CXX"; then
13855 postdep_objects_CXX="$p"
13856 else
13857 postdep_objects_CXX="$postdep_objects_CXX $p"
13862 *) ;; # Ignore the rest.
13864 esac
13865 done
13867 # Clean up.
13868 rm -f a.out a.exe
13869 else
13870 echo "libtool.m4: error: problem compiling CXX test program"
13873 $RM -f confest.$objext
13875 # PORTME: override above test on systems where it is broken
13876 case $host_os in
13877 interix[3-9]*)
13878 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13879 # hack all around it, let's just trust "g++" to DTRT.
13880 predep_objects_CXX=
13881 postdep_objects_CXX=
13882 postdeps_CXX=
13885 linux*)
13886 case `$CC -V 2>&1 | sed 5q` in
13887 *Sun\ C*)
13888 # Sun C++ 5.9
13890 # The more standards-conforming stlport4 library is
13891 # incompatible with the Cstd library. Avoid specifying
13892 # it if it's in CXXFLAGS. Ignore libCrun as
13893 # -library=stlport4 depends on it.
13894 case " $CXX $CXXFLAGS " in
13895 *" -library=stlport4 "*)
13896 solaris_use_stlport4=yes
13898 esac
13900 if test "$solaris_use_stlport4" != yes; then
13901 postdeps_CXX='-library=Cstd -library=Crun'
13904 esac
13907 solaris*)
13908 case $cc_basename in
13909 CC*)
13910 # The more standards-conforming stlport4 library is
13911 # incompatible with the Cstd library. Avoid specifying
13912 # it if it's in CXXFLAGS. Ignore libCrun as
13913 # -library=stlport4 depends on it.
13914 case " $CXX $CXXFLAGS " in
13915 *" -library=stlport4 "*)
13916 solaris_use_stlport4=yes
13918 esac
13920 # Adding this requires a known-good setup of shared libraries for
13921 # Sun compiler versions before 5.6, else PIC objects from an old
13922 # archive will be linked into the output, leading to subtle bugs.
13923 if test "$solaris_use_stlport4" != yes; then
13924 postdeps_CXX='-library=Cstd -library=Crun'
13927 esac
13929 esac
13932 case " $postdeps_CXX " in
13933 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13934 esac
13935 compiler_lib_search_dirs_CXX=
13936 if test -n "${compiler_lib_search_path_CXX}"; then
13937 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13970 lt_prog_compiler_wl_CXX=
13971 lt_prog_compiler_pic_CXX=
13972 lt_prog_compiler_static_CXX=
13974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13975 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13977 # C++ specific cases for pic, static, wl, etc.
13978 if test "$GXX" = yes; then
13979 lt_prog_compiler_wl_CXX='-Wl,'
13980 lt_prog_compiler_static_CXX='-static'
13982 case $host_os in
13983 aix*)
13984 # All AIX code is PIC.
13985 if test "$host_cpu" = ia64; then
13986 # AIX 5 now supports IA64 processor
13987 lt_prog_compiler_static_CXX='-Bstatic'
13989 lt_prog_compiler_pic_CXX='-fPIC'
13992 amigaos*)
13993 case $host_cpu in
13994 powerpc)
13995 # see comment about AmigaOS4 .so support
13996 lt_prog_compiler_pic_CXX='-fPIC'
13998 m68k)
13999 # FIXME: we need at least 68020 code to build shared libraries, but
14000 # adding the `-m68020' flag to GCC prevents building anything better,
14001 # like `-m68040'.
14002 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14004 esac
14007 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14008 # PIC is the default for these OSes.
14010 mingw* | cygwin* | os2* | pw32* | cegcc*)
14011 # This hack is so that the source file can tell whether it is being
14012 # built for inclusion in a dll (and should export symbols for example).
14013 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14014 # (--disable-auto-import) libraries
14015 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14017 darwin* | rhapsody*)
14018 # PIC is the default on this platform
14019 # Common symbols not allowed in MH_DYLIB files
14020 lt_prog_compiler_pic_CXX='-fno-common'
14022 *djgpp*)
14023 # DJGPP does not support shared libraries at all
14024 lt_prog_compiler_pic_CXX=
14026 haiku*)
14027 # PIC is the default for Haiku.
14028 # The "-static" flag exists, but is broken.
14029 lt_prog_compiler_static_CXX=
14031 interix[3-9]*)
14032 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14033 # Instead, we relocate shared libraries at runtime.
14035 sysv4*MP*)
14036 if test -d /usr/nec; then
14037 lt_prog_compiler_pic_CXX=-Kconform_pic
14040 hpux*)
14041 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14042 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14043 # sets the default TLS model and affects inlining.
14044 case $host_cpu in
14045 hppa*64*)
14048 lt_prog_compiler_pic_CXX='-fPIC'
14050 esac
14052 *qnx* | *nto*)
14053 # QNX uses GNU C++, but need to define -shared option too, otherwise
14054 # it will coredump.
14055 lt_prog_compiler_pic_CXX='-fPIC -shared'
14058 lt_prog_compiler_pic_CXX='-fPIC'
14060 esac
14061 else
14062 case $host_os in
14063 aix[4-9]*)
14064 # All AIX code is PIC.
14065 if test "$host_cpu" = ia64; then
14066 # AIX 5 now supports IA64 processor
14067 lt_prog_compiler_static_CXX='-Bstatic'
14068 else
14069 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14072 chorus*)
14073 case $cc_basename in
14074 cxch68*)
14075 # Green Hills C++ Compiler
14076 # _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"
14078 esac
14080 dgux*)
14081 case $cc_basename in
14082 ec++*)
14083 lt_prog_compiler_pic_CXX='-KPIC'
14085 ghcx*)
14086 # Green Hills C++ Compiler
14087 lt_prog_compiler_pic_CXX='-pic'
14091 esac
14093 freebsd* | dragonfly*)
14094 # FreeBSD uses GNU C++
14096 hpux9* | hpux10* | hpux11*)
14097 case $cc_basename in
14098 CC*)
14099 lt_prog_compiler_wl_CXX='-Wl,'
14100 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14101 if test "$host_cpu" != ia64; then
14102 lt_prog_compiler_pic_CXX='+Z'
14105 aCC*)
14106 lt_prog_compiler_wl_CXX='-Wl,'
14107 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14108 case $host_cpu in
14109 hppa*64*|ia64*)
14110 # +Z the default
14113 lt_prog_compiler_pic_CXX='+Z'
14115 esac
14119 esac
14121 interix*)
14122 # This is c89, which is MS Visual C++ (no shared libs)
14123 # Anyone wants to do a port?
14125 irix5* | irix6* | nonstopux*)
14126 case $cc_basename in
14127 CC*)
14128 lt_prog_compiler_wl_CXX='-Wl,'
14129 lt_prog_compiler_static_CXX='-non_shared'
14130 # CC pic flag -KPIC is the default.
14134 esac
14136 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14137 case $cc_basename in
14138 KCC*)
14139 # KAI C++ Compiler
14140 lt_prog_compiler_wl_CXX='--backend -Wl,'
14141 lt_prog_compiler_pic_CXX='-fPIC'
14143 ecpc* )
14144 # old Intel C++ for x86_64 which still supported -KPIC.
14145 lt_prog_compiler_wl_CXX='-Wl,'
14146 lt_prog_compiler_pic_CXX='-KPIC'
14147 lt_prog_compiler_static_CXX='-static'
14149 icpc* )
14150 # Intel C++, used to be incompatible with GCC.
14151 # ICC 10 doesn't accept -KPIC any more.
14152 lt_prog_compiler_wl_CXX='-Wl,'
14153 lt_prog_compiler_pic_CXX='-fPIC'
14154 lt_prog_compiler_static_CXX='-static'
14156 pgCC* | pgcpp*)
14157 # Portland Group C++ compiler
14158 lt_prog_compiler_wl_CXX='-Wl,'
14159 lt_prog_compiler_pic_CXX='-fpic'
14160 lt_prog_compiler_static_CXX='-Bstatic'
14162 cxx*)
14163 # Compaq C++
14164 # Make sure the PIC flag is empty. It appears that all Alpha
14165 # Linux and Compaq Tru64 Unix objects are PIC.
14166 lt_prog_compiler_pic_CXX=
14167 lt_prog_compiler_static_CXX='-non_shared'
14169 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
14170 # IBM XL 8.0, 9.0 on PPC and BlueGene
14171 lt_prog_compiler_wl_CXX='-Wl,'
14172 lt_prog_compiler_pic_CXX='-qpic'
14173 lt_prog_compiler_static_CXX='-qstaticlink'
14176 case `$CC -V 2>&1 | sed 5q` in
14177 *Sun\ C*)
14178 # Sun C++ 5.9
14179 lt_prog_compiler_pic_CXX='-KPIC'
14180 lt_prog_compiler_static_CXX='-Bstatic'
14181 lt_prog_compiler_wl_CXX='-Qoption ld '
14183 esac
14185 esac
14187 lynxos*)
14189 m88k*)
14191 mvs*)
14192 case $cc_basename in
14193 cxx*)
14194 lt_prog_compiler_pic_CXX='-W c,exportall'
14198 esac
14200 netbsd*)
14202 *qnx* | *nto*)
14203 # QNX uses GNU C++, but need to define -shared option too, otherwise
14204 # it will coredump.
14205 lt_prog_compiler_pic_CXX='-fPIC -shared'
14207 osf3* | osf4* | osf5*)
14208 case $cc_basename in
14209 KCC*)
14210 lt_prog_compiler_wl_CXX='--backend -Wl,'
14212 RCC*)
14213 # Rational C++ 2.4.1
14214 lt_prog_compiler_pic_CXX='-pic'
14216 cxx*)
14217 # Digital/Compaq C++
14218 lt_prog_compiler_wl_CXX='-Wl,'
14219 # Make sure the PIC flag is empty. It appears that all Alpha
14220 # Linux and Compaq Tru64 Unix objects are PIC.
14221 lt_prog_compiler_pic_CXX=
14222 lt_prog_compiler_static_CXX='-non_shared'
14226 esac
14228 psos*)
14230 solaris*)
14231 case $cc_basename in
14232 CC*)
14233 # Sun C++ 4.2, 5.x and Centerline C++
14234 lt_prog_compiler_pic_CXX='-KPIC'
14235 lt_prog_compiler_static_CXX='-Bstatic'
14236 lt_prog_compiler_wl_CXX='-Qoption ld '
14238 gcx*)
14239 # Green Hills C++ Compiler
14240 lt_prog_compiler_pic_CXX='-PIC'
14244 esac
14246 sunos4*)
14247 case $cc_basename in
14248 CC*)
14249 # Sun C++ 4.x
14250 lt_prog_compiler_pic_CXX='-pic'
14251 lt_prog_compiler_static_CXX='-Bstatic'
14253 lcc*)
14254 # Lucid
14255 lt_prog_compiler_pic_CXX='-pic'
14259 esac
14261 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14262 case $cc_basename in
14263 CC*)
14264 lt_prog_compiler_wl_CXX='-Wl,'
14265 lt_prog_compiler_pic_CXX='-KPIC'
14266 lt_prog_compiler_static_CXX='-Bstatic'
14268 esac
14270 tandem*)
14271 case $cc_basename in
14272 NCC*)
14273 # NonStop-UX NCC 3.20
14274 lt_prog_compiler_pic_CXX='-KPIC'
14278 esac
14280 vxworks*)
14283 lt_prog_compiler_can_build_shared_CXX=no
14285 esac
14288 case $host_os in
14289 # For platforms which do not support PIC, -DPIC is meaningless:
14290 *djgpp*)
14291 lt_prog_compiler_pic_CXX=
14294 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14296 esac
14297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
14298 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
14303 # Check to make sure the PIC flag actually works.
14305 if test -n "$lt_prog_compiler_pic_CXX"; then
14306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14307 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14308 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
14309 $as_echo_n "(cached) " >&6
14310 else
14311 lt_cv_prog_compiler_pic_works_CXX=no
14312 ac_outfile=conftest.$ac_objext
14313 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14314 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14315 # Insert the option either (1) after the last *FLAGS variable, or
14316 # (2) before a word containing "conftest.", or (3) at the end.
14317 # Note that $ac_compile itself does not contain backslashes and begins
14318 # with a dollar sign (not a hyphen), so the echo should work correctly.
14319 # The option is referenced via a variable to avoid confusing sed.
14320 lt_compile=`echo "$ac_compile" | $SED \
14321 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14322 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14323 -e 's:$: $lt_compiler_flag:'`
14324 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14325 (eval "$lt_compile" 2>conftest.err)
14326 ac_status=$?
14327 cat conftest.err >&5
14328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14329 if (exit $ac_status) && test -s "$ac_outfile"; then
14330 # The compiler can only warn and ignore the option if not recognized
14331 # So say no if there are warnings other than the usual output.
14332 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14333 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14334 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14335 lt_cv_prog_compiler_pic_works_CXX=yes
14338 $RM conftest*
14341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14342 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14344 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14345 case $lt_prog_compiler_pic_CXX in
14346 "" | " "*) ;;
14347 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14348 esac
14349 else
14350 lt_prog_compiler_pic_CXX=
14351 lt_prog_compiler_can_build_shared_CXX=no
14359 # Check to make sure the static flag actually works.
14361 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14363 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14364 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
14365 $as_echo_n "(cached) " >&6
14366 else
14367 lt_cv_prog_compiler_static_works_CXX=no
14368 save_LDFLAGS="$LDFLAGS"
14369 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14370 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14371 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14372 # The linker can only warn and ignore the option if not recognized
14373 # So say no if there are warnings
14374 if test -s conftest.err; then
14375 # Append any errors to the config.log.
14376 cat conftest.err 1>&5
14377 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14378 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14379 if diff conftest.exp conftest.er2 >/dev/null; then
14380 lt_cv_prog_compiler_static_works_CXX=yes
14382 else
14383 lt_cv_prog_compiler_static_works_CXX=yes
14386 $RM -r conftest*
14387 LDFLAGS="$save_LDFLAGS"
14390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14391 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14393 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14395 else
14396 lt_prog_compiler_static_CXX=
14402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14403 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14404 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14405 $as_echo_n "(cached) " >&6
14406 else
14407 lt_cv_prog_compiler_c_o_CXX=no
14408 $RM -r conftest 2>/dev/null
14409 mkdir conftest
14410 cd conftest
14411 mkdir out
14412 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14414 lt_compiler_flag="-o out/conftest2.$ac_objext"
14415 # Insert the option either (1) after the last *FLAGS variable, or
14416 # (2) before a word containing "conftest.", or (3) at the end.
14417 # Note that $ac_compile itself does not contain backslashes and begins
14418 # with a dollar sign (not a hyphen), so the echo should work correctly.
14419 lt_compile=`echo "$ac_compile" | $SED \
14420 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14421 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14422 -e 's:$: $lt_compiler_flag:'`
14423 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14424 (eval "$lt_compile" 2>out/conftest.err)
14425 ac_status=$?
14426 cat out/conftest.err >&5
14427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14428 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14429 then
14430 # The compiler can only warn and ignore the option if not recognized
14431 # So say no if there are warnings
14432 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14433 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14434 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14435 lt_cv_prog_compiler_c_o_CXX=yes
14438 chmod u+w . 2>&5
14439 $RM conftest*
14440 # SGI C++ compiler will create directory out/ii_files/ for
14441 # template instantiation
14442 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14443 $RM out/* && rmdir out
14444 cd ..
14445 $RM -r conftest
14446 $RM conftest*
14449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14450 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14455 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14456 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14457 $as_echo_n "(cached) " >&6
14458 else
14459 lt_cv_prog_compiler_c_o_CXX=no
14460 $RM -r conftest 2>/dev/null
14461 mkdir conftest
14462 cd conftest
14463 mkdir out
14464 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14466 lt_compiler_flag="-o out/conftest2.$ac_objext"
14467 # Insert the option either (1) after the last *FLAGS variable, or
14468 # (2) before a word containing "conftest.", or (3) at the end.
14469 # Note that $ac_compile itself does not contain backslashes and begins
14470 # with a dollar sign (not a hyphen), so the echo should work correctly.
14471 lt_compile=`echo "$ac_compile" | $SED \
14472 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14473 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14474 -e 's:$: $lt_compiler_flag:'`
14475 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14476 (eval "$lt_compile" 2>out/conftest.err)
14477 ac_status=$?
14478 cat out/conftest.err >&5
14479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14480 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14481 then
14482 # The compiler can only warn and ignore the option if not recognized
14483 # So say no if there are warnings
14484 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14485 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14486 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14487 lt_cv_prog_compiler_c_o_CXX=yes
14490 chmod u+w . 2>&5
14491 $RM conftest*
14492 # SGI C++ compiler will create directory out/ii_files/ for
14493 # template instantiation
14494 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14495 $RM out/* && rmdir out
14496 cd ..
14497 $RM -r conftest
14498 $RM conftest*
14501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14502 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14507 hard_links="nottested"
14508 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14509 # do not overwrite the value of need_locks provided by the user
14510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14511 $as_echo_n "checking if we can lock with hard links... " >&6; }
14512 hard_links=yes
14513 $RM conftest*
14514 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14515 touch conftest.a
14516 ln conftest.a conftest.b 2>&5 || hard_links=no
14517 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14519 $as_echo "$hard_links" >&6; }
14520 if test "$hard_links" = no; then
14521 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14522 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14523 need_locks=warn
14525 else
14526 need_locks=no
14531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14532 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14534 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14535 case $host_os in
14536 aix[4-9]*)
14537 # If we're using GNU nm, then we don't want the "-C" option.
14538 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14539 # Also, AIX nm treats weak defined symbols like other global defined
14540 # symbols, whereas GNU nm marks them as "W".
14541 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14542 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'
14543 else
14544 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'
14547 pw32*)
14548 export_symbols_cmds_CXX="$ltdll_cmds"
14550 cygwin* | mingw* | cegcc*)
14551 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'
14554 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14556 esac
14557 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14560 $as_echo "$ld_shlibs_CXX" >&6; }
14561 test "$ld_shlibs_CXX" = no && can_build_shared=no
14563 with_gnu_ld_CXX=$with_gnu_ld
14571 # Do we need to explicitly link libc?
14573 case "x$archive_cmds_need_lc_CXX" in
14574 x|xyes)
14575 # Assume -lc should be added
14576 archive_cmds_need_lc_CXX=yes
14578 if test "$enable_shared" = yes && test "$GCC" = yes; then
14579 case $archive_cmds_CXX in
14580 *'~'*)
14581 # FIXME: we may have to deal with multi-command sequences.
14583 '$CC '*)
14584 # Test whether the compiler implicitly links with -lc since on some
14585 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14586 # to ld, don't add -lc before -lgcc.
14587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14588 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14589 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
14590 $as_echo_n "(cached) " >&6
14591 else
14592 $RM conftest*
14593 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14595 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14596 (eval $ac_compile) 2>&5
14597 ac_status=$?
14598 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14599 test $ac_status = 0; } 2>conftest.err; then
14600 soname=conftest
14601 lib=conftest
14602 libobjs=conftest.$ac_objext
14603 deplibs=
14604 wl=$lt_prog_compiler_wl_CXX
14605 pic_flag=$lt_prog_compiler_pic_CXX
14606 compiler_flags=-v
14607 linker_flags=-v
14608 verstring=
14609 output_objdir=.
14610 libname=conftest
14611 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14612 allow_undefined_flag_CXX=
14613 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14614 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14615 ac_status=$?
14616 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14617 test $ac_status = 0; }
14618 then
14619 lt_cv_archive_cmds_need_lc_CXX=no
14620 else
14621 lt_cv_archive_cmds_need_lc_CXX=yes
14623 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14624 else
14625 cat conftest.err 1>&5
14627 $RM conftest*
14630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14631 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14632 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14634 esac
14637 esac
14702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14703 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14705 library_names_spec=
14706 libname_spec='lib$name'
14707 soname_spec=
14708 shrext_cmds=".so"
14709 postinstall_cmds=
14710 postuninstall_cmds=
14711 finish_cmds=
14712 finish_eval=
14713 shlibpath_var=
14714 shlibpath_overrides_runpath=unknown
14715 version_type=none
14716 dynamic_linker="$host_os ld.so"
14717 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14718 need_lib_prefix=unknown
14719 hardcode_into_libs=no
14721 # when you set need_version to no, make sure it does not cause -set_version
14722 # flags to be left without arguments
14723 need_version=unknown
14725 case $host_os in
14726 aix3*)
14727 version_type=linux
14728 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14729 shlibpath_var=LIBPATH
14731 # AIX 3 has no versioning support, so we append a major version to the name.
14732 soname_spec='${libname}${release}${shared_ext}$major'
14735 aix[4-9]*)
14736 version_type=linux
14737 need_lib_prefix=no
14738 need_version=no
14739 hardcode_into_libs=yes
14740 if test "$host_cpu" = ia64; then
14741 # AIX 5 supports IA64
14742 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14743 shlibpath_var=LD_LIBRARY_PATH
14744 else
14745 # With GCC up to 2.95.x, collect2 would create an import file
14746 # for dependence libraries. The import file would start with
14747 # the line `#! .'. This would cause the generated library to
14748 # depend on `.', always an invalid library. This was fixed in
14749 # development snapshots of GCC prior to 3.0.
14750 case $host_os in
14751 aix4 | aix4.[01] | aix4.[01].*)
14752 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14753 echo ' yes '
14754 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14756 else
14757 can_build_shared=no
14760 esac
14761 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14762 # soname into executable. Probably we can add versioning support to
14763 # collect2, so additional links can be useful in future.
14764 if test "$aix_use_runtimelinking" = yes; then
14765 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14766 # instead of lib<name>.a to let people know that these are not
14767 # typical AIX shared libraries.
14768 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14769 else
14770 # We preserve .a as extension for shared libraries through AIX4.2
14771 # and later when we are not doing run time linking.
14772 library_names_spec='${libname}${release}.a $libname.a'
14773 soname_spec='${libname}${release}${shared_ext}$major'
14775 shlibpath_var=LIBPATH
14779 amigaos*)
14780 case $host_cpu in
14781 powerpc)
14782 # Since July 2007 AmigaOS4 officially supports .so libraries.
14783 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14784 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14786 m68k)
14787 library_names_spec='$libname.ixlibrary $libname.a'
14788 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14789 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'
14791 esac
14794 beos*)
14795 library_names_spec='${libname}${shared_ext}'
14796 dynamic_linker="$host_os ld.so"
14797 shlibpath_var=LIBRARY_PATH
14800 bsdi[45]*)
14801 version_type=linux
14802 need_version=no
14803 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14804 soname_spec='${libname}${release}${shared_ext}$major'
14805 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14806 shlibpath_var=LD_LIBRARY_PATH
14807 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14808 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14809 # the default ld.so.conf also contains /usr/contrib/lib and
14810 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14811 # libtool to hard-code these into programs
14814 cygwin* | mingw* | pw32* | cegcc*)
14815 version_type=windows
14816 shrext_cmds=".dll"
14817 need_version=no
14818 need_lib_prefix=no
14820 case $GCC,$host_os in
14821 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14822 library_names_spec='$libname.dll.a'
14823 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14824 postinstall_cmds='base_file=`basename \${file}`~
14825 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14826 dldir=$destdir/`dirname \$dlpath`~
14827 test -d \$dldir || mkdir -p \$dldir~
14828 $install_prog $dir/$dlname \$dldir/$dlname~
14829 chmod a+x \$dldir/$dlname~
14830 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14831 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14833 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14834 dlpath=$dir/\$dldll~
14835 $RM \$dlpath'
14836 shlibpath_overrides_runpath=yes
14838 case $host_os in
14839 cygwin*)
14840 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14841 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14844 mingw* | cegcc*)
14845 # MinGW DLLs use traditional 'lib' prefix
14846 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14848 pw32*)
14849 # pw32 DLLs use 'pw' prefix rather than 'lib'
14850 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14852 esac
14856 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14858 esac
14859 dynamic_linker='Win32 ld.exe'
14860 # FIXME: first we should search . and the directory the executable is in
14861 shlibpath_var=PATH
14864 darwin* | rhapsody*)
14865 dynamic_linker="$host_os dyld"
14866 version_type=darwin
14867 need_lib_prefix=no
14868 need_version=no
14869 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14870 soname_spec='${libname}${release}${major}$shared_ext'
14871 shlibpath_overrides_runpath=yes
14872 shlibpath_var=DYLD_LIBRARY_PATH
14873 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14875 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14878 dgux*)
14879 version_type=linux
14880 need_lib_prefix=no
14881 need_version=no
14882 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14883 soname_spec='${libname}${release}${shared_ext}$major'
14884 shlibpath_var=LD_LIBRARY_PATH
14887 freebsd* | dragonfly*)
14888 # DragonFly does not have aout. When/if they implement a new
14889 # versioning mechanism, adjust this.
14890 if test -x /usr/bin/objformat; then
14891 objformat=`/usr/bin/objformat`
14892 else
14893 case $host_os in
14894 freebsd[23].*) objformat=aout ;;
14895 *) objformat=elf ;;
14896 esac
14898 version_type=freebsd-$objformat
14899 case $version_type in
14900 freebsd-elf*)
14901 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14902 need_version=no
14903 need_lib_prefix=no
14905 freebsd-*)
14906 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14907 need_version=yes
14909 esac
14910 shlibpath_var=LD_LIBRARY_PATH
14911 case $host_os in
14912 freebsd2.*)
14913 shlibpath_overrides_runpath=yes
14915 freebsd3.[01]* | freebsdelf3.[01]*)
14916 shlibpath_overrides_runpath=yes
14917 hardcode_into_libs=yes
14919 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14920 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14921 shlibpath_overrides_runpath=no
14922 hardcode_into_libs=yes
14924 *) # from 4.6 on, and DragonFly
14925 shlibpath_overrides_runpath=yes
14926 hardcode_into_libs=yes
14928 esac
14931 haiku*)
14932 version_type=linux
14933 need_lib_prefix=no
14934 need_version=no
14935 dynamic_linker="$host_os runtime_loader"
14936 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14937 soname_spec='${libname}${release}${shared_ext}$major'
14938 shlibpath_var=LIBRARY_PATH
14939 shlibpath_overrides_runpath=yes
14940 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
14941 hardcode_into_libs=yes
14944 hpux9* | hpux10* | hpux11*)
14945 # Give a soname corresponding to the major version so that dld.sl refuses to
14946 # link against other versions.
14947 version_type=sunos
14948 need_lib_prefix=no
14949 need_version=no
14950 case $host_cpu in
14951 ia64*)
14952 shrext_cmds='.so'
14953 hardcode_into_libs=yes
14954 dynamic_linker="$host_os dld.so"
14955 shlibpath_var=LD_LIBRARY_PATH
14956 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14957 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14958 soname_spec='${libname}${release}${shared_ext}$major'
14959 if test "X$HPUX_IA64_MODE" = X32; then
14960 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14961 else
14962 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14964 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14966 hppa*64*)
14967 shrext_cmds='.sl'
14968 hardcode_into_libs=yes
14969 dynamic_linker="$host_os dld.sl"
14970 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14971 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14972 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14973 soname_spec='${libname}${release}${shared_ext}$major'
14974 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14975 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14978 shrext_cmds='.sl'
14979 dynamic_linker="$host_os dld.sl"
14980 shlibpath_var=SHLIB_PATH
14981 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14982 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14983 soname_spec='${libname}${release}${shared_ext}$major'
14985 esac
14986 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14987 postinstall_cmds='chmod 555 $lib'
14988 # or fails outright, so override atomically:
14989 install_override_mode=555
14992 interix[3-9]*)
14993 version_type=linux
14994 need_lib_prefix=no
14995 need_version=no
14996 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14997 soname_spec='${libname}${release}${shared_ext}$major'
14998 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14999 shlibpath_var=LD_LIBRARY_PATH
15000 shlibpath_overrides_runpath=no
15001 hardcode_into_libs=yes
15004 irix5* | irix6* | nonstopux*)
15005 case $host_os in
15006 nonstopux*) version_type=nonstopux ;;
15008 if test "$lt_cv_prog_gnu_ld" = yes; then
15009 version_type=linux
15010 else
15011 version_type=irix
15012 fi ;;
15013 esac
15014 need_lib_prefix=no
15015 need_version=no
15016 soname_spec='${libname}${release}${shared_ext}$major'
15017 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15018 case $host_os in
15019 irix5* | nonstopux*)
15020 libsuff= shlibsuff=
15023 case $LD in # libtool.m4 will add one of these switches to LD
15024 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15025 libsuff= shlibsuff= libmagic=32-bit;;
15026 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15027 libsuff=32 shlibsuff=N32 libmagic=N32;;
15028 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15029 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15030 *) libsuff= shlibsuff= libmagic=never-match;;
15031 esac
15033 esac
15034 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15035 shlibpath_overrides_runpath=no
15036 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15037 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15038 hardcode_into_libs=yes
15041 # No shared lib support for Linux oldld, aout, or coff.
15042 linux*oldld* | linux*aout* | linux*coff*)
15043 dynamic_linker=no
15046 # This must be Linux ELF.
15048 # uclinux* changes (here and below) have been submitted to the libtool
15049 # project, but have not yet been accepted: they are GCC-local changes
15050 # for the time being. (See
15051 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
15052 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi)
15053 version_type=linux
15054 need_lib_prefix=no
15055 need_version=no
15056 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15057 soname_spec='${libname}${release}${shared_ext}$major'
15058 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15059 shlibpath_var=LD_LIBRARY_PATH
15060 shlibpath_overrides_runpath=no
15062 # Some binutils ld are patched to set DT_RUNPATH
15063 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
15064 $as_echo_n "(cached) " >&6
15065 else
15066 lt_cv_shlibpath_overrides_runpath=no
15067 save_LDFLAGS=$LDFLAGS
15068 save_libdir=$libdir
15069 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15070 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15072 /* end confdefs.h. */
15075 main ()
15079 return 0;
15081 _ACEOF
15082 if ac_fn_cxx_try_link "$LINENO"; then :
15083 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15084 lt_cv_shlibpath_overrides_runpath=yes
15087 rm -f core conftest.err conftest.$ac_objext \
15088 conftest$ac_exeext conftest.$ac_ext
15089 LDFLAGS=$save_LDFLAGS
15090 libdir=$save_libdir
15094 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15096 # This implies no fast_install, which is unacceptable.
15097 # Some rework will be needed to allow for fast_install
15098 # before this can be enabled.
15099 hardcode_into_libs=yes
15101 # Append ld.so.conf contents to the search path
15102 if test -f /etc/ld.so.conf; then
15103 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' ' '`
15104 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15107 # We used to test for /lib/ld.so.1 and disable shared libraries on
15108 # powerpc, because MkLinux only supported shared libraries with the
15109 # GNU dynamic linker. Since this was broken with cross compilers,
15110 # most powerpc-linux boxes support dynamic linking these days and
15111 # people can always --disable-shared, the test was removed, and we
15112 # assume the GNU/Linux dynamic linker is in use.
15113 dynamic_linker='GNU/Linux ld.so'
15116 netbsd*)
15117 version_type=sunos
15118 need_lib_prefix=no
15119 need_version=no
15120 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15121 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15122 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15123 dynamic_linker='NetBSD (a.out) ld.so'
15124 else
15125 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15126 soname_spec='${libname}${release}${shared_ext}$major'
15127 dynamic_linker='NetBSD ld.elf_so'
15129 shlibpath_var=LD_LIBRARY_PATH
15130 shlibpath_overrides_runpath=yes
15131 hardcode_into_libs=yes
15134 newsos6)
15135 version_type=linux
15136 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15137 shlibpath_var=LD_LIBRARY_PATH
15138 shlibpath_overrides_runpath=yes
15141 *nto* | *qnx*)
15142 version_type=qnx
15143 need_lib_prefix=no
15144 need_version=no
15145 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15146 soname_spec='${libname}${release}${shared_ext}$major'
15147 shlibpath_var=LD_LIBRARY_PATH
15148 shlibpath_overrides_runpath=no
15149 hardcode_into_libs=yes
15150 dynamic_linker='ldqnx.so'
15153 openbsd*)
15154 version_type=sunos
15155 sys_lib_dlsearch_path_spec="/usr/lib"
15156 need_lib_prefix=no
15157 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15158 case $host_os in
15159 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15160 *) need_version=no ;;
15161 esac
15162 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15163 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15164 shlibpath_var=LD_LIBRARY_PATH
15165 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15166 case $host_os in
15167 openbsd2.[89] | openbsd2.[89].*)
15168 shlibpath_overrides_runpath=no
15171 shlibpath_overrides_runpath=yes
15173 esac
15174 else
15175 shlibpath_overrides_runpath=yes
15179 os2*)
15180 libname_spec='$name'
15181 shrext_cmds=".dll"
15182 need_lib_prefix=no
15183 library_names_spec='$libname${shared_ext} $libname.a'
15184 dynamic_linker='OS/2 ld.exe'
15185 shlibpath_var=LIBPATH
15188 osf3* | osf4* | osf5*)
15189 version_type=osf
15190 need_lib_prefix=no
15191 need_version=no
15192 soname_spec='${libname}${release}${shared_ext}$major'
15193 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15194 shlibpath_var=LD_LIBRARY_PATH
15195 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15196 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15199 rdos*)
15200 dynamic_linker=no
15203 solaris*)
15204 version_type=linux
15205 need_lib_prefix=no
15206 need_version=no
15207 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15208 soname_spec='${libname}${release}${shared_ext}$major'
15209 shlibpath_var=LD_LIBRARY_PATH
15210 shlibpath_overrides_runpath=yes
15211 hardcode_into_libs=yes
15212 # ldd complains unless libraries are executable
15213 postinstall_cmds='chmod +x $lib'
15216 sunos4*)
15217 version_type=sunos
15218 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15219 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15220 shlibpath_var=LD_LIBRARY_PATH
15221 shlibpath_overrides_runpath=yes
15222 if test "$with_gnu_ld" = yes; then
15223 need_lib_prefix=no
15225 need_version=yes
15228 sysv4 | sysv4.3*)
15229 version_type=linux
15230 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15231 soname_spec='${libname}${release}${shared_ext}$major'
15232 shlibpath_var=LD_LIBRARY_PATH
15233 case $host_vendor in
15234 sni)
15235 shlibpath_overrides_runpath=no
15236 need_lib_prefix=no
15237 runpath_var=LD_RUN_PATH
15239 siemens)
15240 need_lib_prefix=no
15242 motorola)
15243 need_lib_prefix=no
15244 need_version=no
15245 shlibpath_overrides_runpath=no
15246 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15248 esac
15251 sysv4*MP*)
15252 if test -d /usr/nec ;then
15253 version_type=linux
15254 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15255 soname_spec='$libname${shared_ext}.$major'
15256 shlibpath_var=LD_LIBRARY_PATH
15260 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15261 version_type=freebsd-elf
15262 need_lib_prefix=no
15263 need_version=no
15264 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15265 soname_spec='${libname}${release}${shared_ext}$major'
15266 shlibpath_var=LD_LIBRARY_PATH
15267 shlibpath_overrides_runpath=yes
15268 hardcode_into_libs=yes
15269 if test "$with_gnu_ld" = yes; then
15270 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15271 else
15272 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15273 case $host_os in
15274 sco3.2v5*)
15275 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15277 esac
15279 sys_lib_dlsearch_path_spec='/usr/lib'
15282 tpf*)
15283 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15284 version_type=linux
15285 need_lib_prefix=no
15286 need_version=no
15287 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15288 shlibpath_var=LD_LIBRARY_PATH
15289 shlibpath_overrides_runpath=no
15290 hardcode_into_libs=yes
15293 uts4*)
15294 version_type=linux
15295 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15296 soname_spec='${libname}${release}${shared_ext}$major'
15297 shlibpath_var=LD_LIBRARY_PATH
15300 # Shared libraries for VwWorks, >= 7 only at this stage
15301 # and (fpic) still incompatible with "large" code models
15302 # in a few configurations. Only for RTP mode in any case,
15303 # and upon explicit request at configure time.
15304 vxworks7*)
15305 dynamic_linker=no
15306 case ${with_multisubdir}-${enable_shared} in
15307 *large*)
15309 *mrtp*-yes)
15310 version_type=linux
15311 need_lib_prefix=no
15312 need_version=no
15313 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15314 soname_spec='${libname}${release}${shared_ext}$major'
15315 dynamic_linker="$host_os module_loader"
15317 esac
15320 dynamic_linker=no
15322 esac
15323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15324 $as_echo "$dynamic_linker" >&6; }
15325 test "$dynamic_linker" = no && can_build_shared=no
15327 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15328 if test "$GCC" = yes; then
15329 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15332 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15333 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15335 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15336 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15377 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15378 hardcode_action_CXX=
15379 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15380 test -n "$runpath_var_CXX" ||
15381 test "X$hardcode_automatic_CXX" = "Xyes" ; then
15383 # We can hardcode non-existent directories.
15384 if test "$hardcode_direct_CXX" != no &&
15385 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15386 # have to relink, otherwise we might link with an installed library
15387 # when we should be linking with a yet-to-be-installed one
15388 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15389 test "$hardcode_minus_L_CXX" != no; then
15390 # Linking always hardcodes the temporary library directory.
15391 hardcode_action_CXX=relink
15392 else
15393 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15394 hardcode_action_CXX=immediate
15396 else
15397 # We cannot hardcode anything, or else we can only hardcode existing
15398 # directories.
15399 hardcode_action_CXX=unsupported
15401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15402 $as_echo "$hardcode_action_CXX" >&6; }
15404 if test "$hardcode_action_CXX" = relink ||
15405 test "$inherit_rpath_CXX" = yes; then
15406 # Fast installation is not supported
15407 enable_fast_install=no
15408 elif test "$shlibpath_overrides_runpath" = yes ||
15409 test "$enable_shared" = no; then
15410 # Fast installation is not necessary
15411 enable_fast_install=needless
15420 fi # test -n "$compiler"
15422 CC=$lt_save_CC
15423 LDCXX=$LD
15424 LD=$lt_save_LD
15425 GCC=$lt_save_GCC
15426 with_gnu_ld=$lt_save_with_gnu_ld
15427 lt_cv_path_LDCXX=$lt_cv_path_LD
15428 lt_cv_path_LD=$lt_save_path_LD
15429 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15430 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15431 fi # test "$_lt_caught_CXX_error" != yes
15433 ac_ext=c
15434 ac_cpp='$CPP $CPPFLAGS'
15435 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15436 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15437 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15451 ac_config_commands="$ac_config_commands libtool"
15456 # Only expand once:
15463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
15464 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
15465 # Check whether --enable-maintainer-mode was given.
15466 if test "${enable_maintainer_mode+set}" = set; then :
15467 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
15468 else
15469 USE_MAINTAINER_MODE=no
15472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
15473 $as_echo "$USE_MAINTAINER_MODE" >&6; }
15474 if test $USE_MAINTAINER_MODE = yes; then
15475 MAINTAINER_MODE_TRUE=
15476 MAINTAINER_MODE_FALSE='#'
15477 else
15478 MAINTAINER_MODE_TRUE='#'
15479 MAINTAINER_MODE_FALSE=
15482 MAINT=$MAINTAINER_MODE_TRUE
15486 # For libtool versioning info, format is CURRENT:REVISION:AGE
15487 libtool_VERSION=1:0:0
15490 # Check header files.
15491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
15492 $as_echo_n "checking for ANSI C header files... " >&6; }
15493 if ${ac_cv_header_stdc+:} false; then :
15494 $as_echo_n "(cached) " >&6
15495 else
15496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15497 /* end confdefs.h. */
15498 #include <stdlib.h>
15499 #include <stdarg.h>
15500 #include <string.h>
15501 #include <float.h>
15504 main ()
15508 return 0;
15510 _ACEOF
15511 if ac_fn_c_try_compile "$LINENO"; then :
15512 ac_cv_header_stdc=yes
15513 else
15514 ac_cv_header_stdc=no
15516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15518 if test $ac_cv_header_stdc = yes; then
15519 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
15520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15521 /* end confdefs.h. */
15522 #include <string.h>
15524 _ACEOF
15525 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15526 $EGREP "memchr" >/dev/null 2>&1; then :
15528 else
15529 ac_cv_header_stdc=no
15531 rm -f conftest*
15535 if test $ac_cv_header_stdc = yes; then
15536 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
15537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15538 /* end confdefs.h. */
15539 #include <stdlib.h>
15541 _ACEOF
15542 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15543 $EGREP "free" >/dev/null 2>&1; then :
15545 else
15546 ac_cv_header_stdc=no
15548 rm -f conftest*
15552 if test $ac_cv_header_stdc = yes; then
15553 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
15554 if test "$cross_compiling" = yes; then :
15556 else
15557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15558 /* end confdefs.h. */
15559 #include <ctype.h>
15560 #include <stdlib.h>
15561 #if ((' ' & 0x0FF) == 0x020)
15562 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15563 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15564 #else
15565 # define ISLOWER(c) \
15566 (('a' <= (c) && (c) <= 'i') \
15567 || ('j' <= (c) && (c) <= 'r') \
15568 || ('s' <= (c) && (c) <= 'z'))
15569 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15570 #endif
15572 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15574 main ()
15576 int i;
15577 for (i = 0; i < 256; i++)
15578 if (XOR (islower (i), ISLOWER (i))
15579 || toupper (i) != TOUPPER (i))
15580 return 2;
15581 return 0;
15583 _ACEOF
15584 if ac_fn_c_try_run "$LINENO"; then :
15586 else
15587 ac_cv_header_stdc=no
15589 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15590 conftest.$ac_objext conftest.beam conftest.$ac_ext
15595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
15596 $as_echo "$ac_cv_header_stdc" >&6; }
15597 if test $ac_cv_header_stdc = yes; then
15599 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
15603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
15604 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
15605 if ${ac_cv_header_time+:} false; then :
15606 $as_echo_n "(cached) " >&6
15607 else
15608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15609 /* end confdefs.h. */
15610 #include <sys/types.h>
15611 #include <sys/time.h>
15612 #include <time.h>
15615 main ()
15617 if ((struct tm *) 0)
15618 return 0;
15620 return 0;
15622 _ACEOF
15623 if ac_fn_c_try_compile "$LINENO"; then :
15624 ac_cv_header_time=yes
15625 else
15626 ac_cv_header_time=no
15628 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
15631 $as_echo "$ac_cv_header_time" >&6; }
15632 if test $ac_cv_header_time = yes; then
15634 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
15638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
15639 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
15640 if ${gcc_cv_header_string+:} false; then :
15641 $as_echo_n "(cached) " >&6
15642 else
15643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15644 /* end confdefs.h. */
15645 #include <string.h>
15646 #include <strings.h>
15648 main ()
15652 return 0;
15654 _ACEOF
15655 if ac_fn_c_try_compile "$LINENO"; then :
15656 gcc_cv_header_string=yes
15657 else
15658 gcc_cv_header_string=no
15660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
15663 $as_echo "$gcc_cv_header_string" >&6; }
15664 if test $gcc_cv_header_string = yes; then
15666 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
15670 for ac_header in unistd.h semaphore.h sys/time.h sys/auxv.h malloc.h
15671 do :
15672 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15673 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15674 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15675 cat >>confdefs.h <<_ACEOF
15676 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15677 _ACEOF
15681 done
15686 inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'`
15688 acx_cv_header_stdint=stddef.h
15689 acx_cv_header_stdint_kind="(already complete)"
15690 for i in stdint.h $inttype_headers; do
15691 unset ac_cv_type_uintptr_t
15692 unset ac_cv_type_uintmax_t
15693 unset ac_cv_type_int_least32_t
15694 unset ac_cv_type_int_fast32_t
15695 unset ac_cv_type_uint64_t
15696 $as_echo_n "looking for a compliant stdint.h in $i, " >&6
15697 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "#include <sys/types.h>
15698 #include <$i>
15700 if test "x$ac_cv_type_uintmax_t" = xyes; then :
15701 acx_cv_header_stdint=$i
15702 else
15703 continue
15706 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
15707 #include <$i>
15709 if test "x$ac_cv_type_uintptr_t" = xyes; then :
15711 else
15712 acx_cv_header_stdint_kind="(mostly complete)"
15715 ac_fn_c_check_type "$LINENO" "int_least32_t" "ac_cv_type_int_least32_t" "#include <sys/types.h>
15716 #include <$i>
15718 if test "x$ac_cv_type_int_least32_t" = xyes; then :
15720 else
15721 acx_cv_header_stdint_kind="(mostly complete)"
15724 ac_fn_c_check_type "$LINENO" "int_fast32_t" "ac_cv_type_int_fast32_t" "#include <sys/types.h>
15725 #include <$i>
15727 if test "x$ac_cv_type_int_fast32_t" = xyes; then :
15729 else
15730 acx_cv_header_stdint_kind="(mostly complete)"
15733 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
15734 #include <$i>
15736 if test "x$ac_cv_type_uint64_t" = xyes; then :
15738 else
15739 acx_cv_header_stdint_kind="(lacks uint64_t)"
15742 break
15743 done
15744 if test "$acx_cv_header_stdint" = stddef.h; then
15745 acx_cv_header_stdint_kind="(lacks uintmax_t)"
15746 for i in stdint.h $inttype_headers; do
15747 unset ac_cv_type_uintptr_t
15748 unset ac_cv_type_uint32_t
15749 unset ac_cv_type_uint64_t
15750 $as_echo_n "looking for an incomplete stdint.h in $i, " >&6
15751 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include <sys/types.h>
15752 #include <$i>
15754 if test "x$ac_cv_type_uint32_t" = xyes; then :
15755 acx_cv_header_stdint=$i
15756 else
15757 continue
15760 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
15761 #include <$i>
15763 if test "x$ac_cv_type_uint64_t" = xyes; then :
15767 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
15768 #include <$i>
15770 if test "x$ac_cv_type_uintptr_t" = xyes; then :
15774 break
15775 done
15777 if test "$acx_cv_header_stdint" = stddef.h; then
15778 acx_cv_header_stdint_kind="(u_intXX_t style)"
15779 for i in sys/types.h $inttype_headers; do
15780 unset ac_cv_type_u_int32_t
15781 unset ac_cv_type_u_int64_t
15782 $as_echo_n "looking for u_intXX_t types in $i, " >&6
15783 ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "#include <sys/types.h>
15784 #include <$i>
15786 if test "x$ac_cv_type_u_int32_t" = xyes; then :
15787 acx_cv_header_stdint=$i
15788 else
15789 continue
15792 ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "#include <sys/types.h>
15793 #include <$i>
15795 if test "x$ac_cv_type_u_int64_t" = xyes; then :
15799 break
15800 done
15802 if test "$acx_cv_header_stdint" = stddef.h; then
15803 acx_cv_header_stdint_kind="(using manual detection)"
15806 test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
15807 test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
15808 test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
15809 test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
15810 test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
15812 # ----------------- Summarize what we found so far
15814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what to include in gstdint.h" >&5
15815 $as_echo_n "checking what to include in gstdint.h... " >&6; }
15817 case `$as_basename -- gstdint.h ||
15818 $as_expr X/gstdint.h : '.*/\([^/][^/]*\)/*$' \| \
15819 Xgstdint.h : 'X\(//\)$' \| \
15820 Xgstdint.h : 'X\(/\)' \| . 2>/dev/null ||
15821 $as_echo X/gstdint.h |
15822 sed '/^.*\/\([^/][^/]*\)\/*$/{
15823 s//\1/
15826 /^X\/\(\/\/\)$/{
15827 s//\1/
15830 /^X\/\(\/\).*/{
15831 s//\1/
15834 s/.*/./; q'` in
15835 stdint.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
15836 $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
15837 inttypes.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
15838 $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
15839 *) ;;
15840 esac
15842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
15843 $as_echo "$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6; }
15845 # ----------------- done included file, check C basic types --------
15847 # Lacking an uintptr_t? Test size of void *
15848 case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
15849 stddef.h:* | *:no) # The cast to long int works around a bug in the HP C Compiler
15850 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15851 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15852 # This bug is HP SR number 8606223364.
15853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
15854 $as_echo_n "checking size of void *... " >&6; }
15855 if ${ac_cv_sizeof_void_p+:} false; then :
15856 $as_echo_n "(cached) " >&6
15857 else
15858 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
15860 else
15861 if test "$ac_cv_type_void_p" = yes; then
15862 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15863 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15864 as_fn_error 77 "cannot compute sizeof (void *)
15865 See \`config.log' for more details" "$LINENO" 5; }
15866 else
15867 ac_cv_sizeof_void_p=0
15872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
15873 $as_echo "$ac_cv_sizeof_void_p" >&6; }
15877 cat >>confdefs.h <<_ACEOF
15878 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
15879 _ACEOF
15882 esac
15884 # Lacking an uint64_t? Test size of long
15885 case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
15886 stddef.h:*:* | *:no:no) # The cast to long int works around a bug in the HP C Compiler
15887 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15888 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15889 # This bug is HP SR number 8606223364.
15890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
15891 $as_echo_n "checking size of long... " >&6; }
15892 if ${ac_cv_sizeof_long+:} false; then :
15893 $as_echo_n "(cached) " >&6
15894 else
15895 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
15897 else
15898 if test "$ac_cv_type_long" = yes; then
15899 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15900 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15901 as_fn_error 77 "cannot compute sizeof (long)
15902 See \`config.log' for more details" "$LINENO" 5; }
15903 else
15904 ac_cv_sizeof_long=0
15909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
15910 $as_echo "$ac_cv_sizeof_long" >&6; }
15914 cat >>confdefs.h <<_ACEOF
15915 #define SIZEOF_LONG $ac_cv_sizeof_long
15916 _ACEOF
15919 esac
15921 if test $acx_cv_header_stdint = stddef.h; then
15922 # Lacking a good header? Test size of everything and deduce all types.
15923 # The cast to long int works around a bug in the HP C Compiler
15924 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15925 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15926 # This bug is HP SR number 8606223364.
15927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
15928 $as_echo_n "checking size of int... " >&6; }
15929 if ${ac_cv_sizeof_int+:} false; then :
15930 $as_echo_n "(cached) " >&6
15931 else
15932 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
15934 else
15935 if test "$ac_cv_type_int" = yes; then
15936 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15937 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15938 as_fn_error 77 "cannot compute sizeof (int)
15939 See \`config.log' for more details" "$LINENO" 5; }
15940 else
15941 ac_cv_sizeof_int=0
15946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
15947 $as_echo "$ac_cv_sizeof_int" >&6; }
15951 cat >>confdefs.h <<_ACEOF
15952 #define SIZEOF_INT $ac_cv_sizeof_int
15953 _ACEOF
15956 # The cast to long int works around a bug in the HP C Compiler
15957 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15958 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15959 # This bug is HP SR number 8606223364.
15960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
15961 $as_echo_n "checking size of short... " >&6; }
15962 if ${ac_cv_sizeof_short+:} false; then :
15963 $as_echo_n "(cached) " >&6
15964 else
15965 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
15967 else
15968 if test "$ac_cv_type_short" = yes; then
15969 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15970 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15971 as_fn_error 77 "cannot compute sizeof (short)
15972 See \`config.log' for more details" "$LINENO" 5; }
15973 else
15974 ac_cv_sizeof_short=0
15979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
15980 $as_echo "$ac_cv_sizeof_short" >&6; }
15984 cat >>confdefs.h <<_ACEOF
15985 #define SIZEOF_SHORT $ac_cv_sizeof_short
15986 _ACEOF
15989 # The cast to long int works around a bug in the HP C Compiler
15990 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15991 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15992 # This bug is HP SR number 8606223364.
15993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
15994 $as_echo_n "checking size of char... " >&6; }
15995 if ${ac_cv_sizeof_char+:} false; then :
15996 $as_echo_n "(cached) " >&6
15997 else
15998 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
16000 else
16001 if test "$ac_cv_type_char" = yes; then
16002 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16003 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16004 as_fn_error 77 "cannot compute sizeof (char)
16005 See \`config.log' for more details" "$LINENO" 5; }
16006 else
16007 ac_cv_sizeof_char=0
16012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
16013 $as_echo "$ac_cv_sizeof_char" >&6; }
16017 cat >>confdefs.h <<_ACEOF
16018 #define SIZEOF_CHAR $ac_cv_sizeof_char
16019 _ACEOF
16023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int8_t" >&5
16024 $as_echo_n "checking for type equivalent to int8_t... " >&6; }
16025 case "$ac_cv_sizeof_char" in
16026 1) acx_cv_type_int8_t=char ;;
16027 *) as_fn_error $? "no 8-bit type, please report a bug" "$LINENO" 5
16028 esac
16029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int8_t" >&5
16030 $as_echo "$acx_cv_type_int8_t" >&6; }
16032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int16_t" >&5
16033 $as_echo_n "checking for type equivalent to int16_t... " >&6; }
16034 case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
16035 2:*) acx_cv_type_int16_t=int ;;
16036 *:2) acx_cv_type_int16_t=short ;;
16037 *) as_fn_error $? "no 16-bit type, please report a bug" "$LINENO" 5
16038 esac
16039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int16_t" >&5
16040 $as_echo "$acx_cv_type_int16_t" >&6; }
16042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int32_t" >&5
16043 $as_echo_n "checking for type equivalent to int32_t... " >&6; }
16044 case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
16045 4:*) acx_cv_type_int32_t=int ;;
16046 *:4) acx_cv_type_int32_t=long ;;
16047 *) as_fn_error $? "no 32-bit type, please report a bug" "$LINENO" 5
16048 esac
16049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int32_t" >&5
16050 $as_echo "$acx_cv_type_int32_t" >&6; }
16053 # These tests are here to make the output prettier
16055 if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
16056 case "$ac_cv_sizeof_long" in
16057 8) acx_cv_type_int64_t=long ;;
16058 esac
16059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int64_t" >&5
16060 $as_echo_n "checking for type equivalent to int64_t... " >&6; }
16061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
16062 $as_echo "${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6; }
16065 # Now we can use the above types
16067 if test "$ac_cv_type_uintptr_t" != yes; then
16068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to intptr_t" >&5
16069 $as_echo_n "checking for type equivalent to intptr_t... " >&6; }
16070 case $ac_cv_sizeof_void_p in
16071 2) acx_cv_type_intptr_t=int16_t ;;
16072 4) acx_cv_type_intptr_t=int32_t ;;
16073 8) acx_cv_type_intptr_t=int64_t ;;
16074 *) as_fn_error $? "no equivalent for intptr_t, please report a bug" "$LINENO" 5
16075 esac
16076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_intptr_t" >&5
16077 $as_echo "$acx_cv_type_intptr_t" >&6; }
16080 # ----------------- done all checks, emit header -------------
16081 ac_config_commands="$ac_config_commands gstdint.h"
16087 ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
16088 if test "x$ac_cv_header_sys_mman_h" = xyes; then :
16089 gcc_header_sys_mman_h=yes
16090 else
16091 gcc_header_sys_mman_h=no
16095 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
16096 if test "x$ac_cv_func_mmap" = xyes; then :
16097 gcc_func_mmap=yes
16098 else
16099 gcc_func_mmap=no
16102 if test "$gcc_header_sys_mman_h" != yes \
16103 || test "$gcc_func_mmap" != yes; then
16104 gcc_cv_func_mmap_file=no
16105 gcc_cv_func_mmap_dev_zero=no
16106 gcc_cv_func_mmap_anon=no
16107 else
16108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
16109 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
16110 if ${gcc_cv_func_mmap_file+:} false; then :
16111 $as_echo_n "(cached) " >&6
16112 else
16113 # Add a system to this blacklist if
16114 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
16115 # memory area containing the same data that you'd get if you applied
16116 # read() to the same fd. The only system known to have a problem here
16117 # is VMS, where text files have record structure.
16118 case "$host_os" in
16119 *vms* | ultrix*)
16120 gcc_cv_func_mmap_file=no ;;
16122 gcc_cv_func_mmap_file=yes;;
16123 esac
16125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
16126 $as_echo "$gcc_cv_func_mmap_file" >&6; }
16127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
16128 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
16129 if ${gcc_cv_func_mmap_dev_zero+:} false; then :
16130 $as_echo_n "(cached) " >&6
16131 else
16132 # Add a system to this blacklist if it has mmap() but /dev/zero
16133 # does not exist, or if mmapping /dev/zero does not give anonymous
16134 # zeroed pages with both the following properties:
16135 # 1. If you map N consecutive pages in with one call, and then
16136 # unmap any subset of those pages, the pages that were not
16137 # explicitly unmapped remain accessible.
16138 # 2. If you map two adjacent blocks of memory and then unmap them
16139 # both at once, they must both go away.
16140 # Systems known to be in this category are Windows (all variants),
16141 # VMS, and Darwin.
16142 case "$host_os" in
16143 *vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
16144 gcc_cv_func_mmap_dev_zero=no ;;
16146 gcc_cv_func_mmap_dev_zero=yes;;
16147 esac
16149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
16150 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
16152 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
16153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
16154 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
16155 if ${gcc_cv_decl_map_anon+:} false; then :
16156 $as_echo_n "(cached) " >&6
16157 else
16158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16159 /* end confdefs.h. */
16160 #include <sys/types.h>
16161 #include <sys/mman.h>
16162 #include <unistd.h>
16164 #ifndef MAP_ANONYMOUS
16165 #define MAP_ANONYMOUS MAP_ANON
16166 #endif
16169 main ()
16171 int n = MAP_ANONYMOUS;
16173 return 0;
16175 _ACEOF
16176 if ac_fn_c_try_compile "$LINENO"; then :
16177 gcc_cv_decl_map_anon=yes
16178 else
16179 gcc_cv_decl_map_anon=no
16181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
16184 $as_echo "$gcc_cv_decl_map_anon" >&6; }
16186 if test $gcc_cv_decl_map_anon = no; then
16187 gcc_cv_func_mmap_anon=no
16188 else
16189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
16190 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
16191 if ${gcc_cv_func_mmap_anon+:} false; then :
16192 $as_echo_n "(cached) " >&6
16193 else
16194 # Add a system to this blacklist if it has mmap() and MAP_ANON or
16195 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
16196 # doesn't give anonymous zeroed pages with the same properties listed
16197 # above for use of /dev/zero.
16198 # Systems known to be in this category are Windows, VMS, and SCO Unix.
16199 case "$host_os" in
16200 *vms* | cygwin* | pe | mingw* | sco* | udk* )
16201 gcc_cv_func_mmap_anon=no ;;
16203 gcc_cv_func_mmap_anon=yes;;
16204 esac
16206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
16207 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
16211 if test $gcc_cv_func_mmap_file = yes; then
16213 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
16216 if test $gcc_cv_func_mmap_dev_zero = yes; then
16218 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
16221 if test $gcc_cv_func_mmap_anon = yes; then
16223 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
16228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
16229 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
16230 if ${ac_cv_c_bigendian+:} false; then :
16231 $as_echo_n "(cached) " >&6
16232 else
16233 ac_cv_c_bigendian=unknown
16234 # See if we're dealing with a universal compiler.
16235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16236 /* end confdefs.h. */
16237 #ifndef __APPLE_CC__
16238 not a universal capable compiler
16239 #endif
16240 typedef int dummy;
16242 _ACEOF
16243 if ac_fn_c_try_compile "$LINENO"; then :
16245 # Check for potential -arch flags. It is not universal unless
16246 # there are at least two -arch flags with different values.
16247 ac_arch=
16248 ac_prev=
16249 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
16250 if test -n "$ac_prev"; then
16251 case $ac_word in
16252 i?86 | x86_64 | ppc | ppc64)
16253 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
16254 ac_arch=$ac_word
16255 else
16256 ac_cv_c_bigendian=universal
16257 break
16260 esac
16261 ac_prev=
16262 elif test "x$ac_word" = "x-arch"; then
16263 ac_prev=arch
16265 done
16267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16268 if test $ac_cv_c_bigendian = unknown; then
16269 # See if sys/param.h defines the BYTE_ORDER macro.
16270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16271 /* end confdefs.h. */
16272 #include <sys/types.h>
16273 #include <sys/param.h>
16276 main ()
16278 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
16279 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
16280 && LITTLE_ENDIAN)
16281 bogus endian macros
16282 #endif
16285 return 0;
16287 _ACEOF
16288 if ac_fn_c_try_compile "$LINENO"; then :
16289 # It does; now see whether it defined to BIG_ENDIAN or not.
16290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16291 /* end confdefs.h. */
16292 #include <sys/types.h>
16293 #include <sys/param.h>
16296 main ()
16298 #if BYTE_ORDER != BIG_ENDIAN
16299 not big endian
16300 #endif
16303 return 0;
16305 _ACEOF
16306 if ac_fn_c_try_compile "$LINENO"; then :
16307 ac_cv_c_bigendian=yes
16308 else
16309 ac_cv_c_bigendian=no
16311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16315 if test $ac_cv_c_bigendian = unknown; then
16316 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
16317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16318 /* end confdefs.h. */
16319 #include <limits.h>
16322 main ()
16324 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
16325 bogus endian macros
16326 #endif
16329 return 0;
16331 _ACEOF
16332 if ac_fn_c_try_compile "$LINENO"; then :
16333 # It does; now see whether it defined to _BIG_ENDIAN or not.
16334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16335 /* end confdefs.h. */
16336 #include <limits.h>
16339 main ()
16341 #ifndef _BIG_ENDIAN
16342 not big endian
16343 #endif
16346 return 0;
16348 _ACEOF
16349 if ac_fn_c_try_compile "$LINENO"; then :
16350 ac_cv_c_bigendian=yes
16351 else
16352 ac_cv_c_bigendian=no
16354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16358 if test $ac_cv_c_bigendian = unknown; then
16359 # Compile a test program.
16360 if test "$cross_compiling" = yes; then :
16361 # Try to guess by grepping values from an object file.
16362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16363 /* end confdefs.h. */
16364 short int ascii_mm[] =
16365 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
16366 short int ascii_ii[] =
16367 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
16368 int use_ascii (int i) {
16369 return ascii_mm[i] + ascii_ii[i];
16371 short int ebcdic_ii[] =
16372 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
16373 short int ebcdic_mm[] =
16374 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
16375 int use_ebcdic (int i) {
16376 return ebcdic_mm[i] + ebcdic_ii[i];
16378 extern int foo;
16381 main ()
16383 return use_ascii (foo) == use_ebcdic (foo);
16385 return 0;
16387 _ACEOF
16388 if ac_fn_c_try_compile "$LINENO"; then :
16389 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
16390 ac_cv_c_bigendian=yes
16392 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
16393 if test "$ac_cv_c_bigendian" = unknown; then
16394 ac_cv_c_bigendian=no
16395 else
16396 # finding both strings is unlikely to happen, but who knows?
16397 ac_cv_c_bigendian=unknown
16401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16402 else
16403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16404 /* end confdefs.h. */
16405 $ac_includes_default
16407 main ()
16410 /* Are we little or big endian? From Harbison&Steele. */
16411 union
16413 long int l;
16414 char c[sizeof (long int)];
16415 } u;
16416 u.l = 1;
16417 return u.c[sizeof (long int) - 1] == 1;
16420 return 0;
16422 _ACEOF
16423 if ac_fn_c_try_run "$LINENO"; then :
16424 ac_cv_c_bigendian=no
16425 else
16426 ac_cv_c_bigendian=yes
16428 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16429 conftest.$ac_objext conftest.beam conftest.$ac_ext
16434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
16435 $as_echo "$ac_cv_c_bigendian" >&6; }
16436 case $ac_cv_c_bigendian in #(
16437 yes)
16438 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
16439 ;; #(
16441 ;; #(
16442 universal)
16444 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
16446 ;; #(
16448 as_fn_error $? "unknown endianness
16449 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
16450 esac
16452 # I don't like the default behaviour of WORDS_BIGENDIAN undefined for LE.
16455 # Check to see if -pthread or -lpthread is needed. Prefer the former.
16456 # In case the pthread.h system header is not found, this test will fail.
16457 XPCFLAGS=""
16458 CFLAGS="$CFLAGS -pthread"
16459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16460 /* end confdefs.h. */
16461 #include <pthread.h>
16462 void *g(void *d) { return NULL; }
16464 main ()
16466 pthread_t t; pthread_create(&t,NULL,g,NULL);
16468 return 0;
16470 _ACEOF
16471 if ac_fn_c_try_link "$LINENO"; then :
16472 XPCFLAGS=" -Wc,-pthread"
16473 else
16474 CFLAGS="$save_CFLAGS" LIBS="-lpthread $LIBS"
16475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16476 /* end confdefs.h. */
16477 #include <pthread.h>
16478 void *g(void *d) { return NULL; }
16480 main ()
16482 pthread_t t; pthread_create(&t,NULL,g,NULL);
16484 return 0;
16486 _ACEOF
16487 if ac_fn_c_try_link "$LINENO"; then :
16489 else
16490 as_fn_error $? "Pthreads are required to build libitm" "$LINENO" 5
16492 rm -f core conftest.err conftest.$ac_objext \
16493 conftest$ac_exeext conftest.$ac_ext
16495 rm -f core conftest.err conftest.$ac_objext \
16496 conftest$ac_exeext conftest.$ac_ext
16498 # Check for functions needed.
16499 for ac_func in strtoull memalign posix_memalign getauxval
16500 do :
16501 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16502 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16503 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16504 cat >>confdefs.h <<_ACEOF
16505 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16506 _ACEOF
16509 done
16512 # Check for broken semaphore implementation on darwin.
16513 # sem_init returns: sem_init error: Function not implemented.
16514 case "$host" in
16515 *-darwin*)
16517 $as_echo "#define HAVE_BROKEN_POSIX_SEMAPHORES 1" >>confdefs.h
16520 esac
16522 # Check whether --enable-linux-futex was given.
16523 if test "${enable_linux_futex+set}" = set; then :
16524 enableval=$enable_linux_futex;
16525 case "$enableval" in
16526 yes|no|default) ;;
16527 *) as_fn_error $? "Unknown argument to enable/disable linux-futex" "$LINENO" 5 ;;
16528 esac
16530 else
16531 enable_linux_futex=default
16535 case "$target" in
16536 *-linux* | *-uclinux*)
16537 case "$enable_linux_futex" in
16538 default)
16539 # If headers don't have gettid/futex syscalls definition, then
16540 # default to no, otherwise there will be compile time failures.
16541 # Otherwise, default to yes. If we don't detect we are
16542 # compiled/linked against NPTL and not cross-compiling, check
16543 # if programs are run by default against NPTL and if not, issue
16544 # a warning.
16545 enable_linux_futex=no
16546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16547 /* end confdefs.h. */
16548 #include <sys/syscall.h>
16549 #include <unistd.h>
16550 int lk;
16552 main ()
16554 syscall (SYS_gettid); syscall (SYS_futex, &lk, 0, 0, 0);
16556 return 0;
16558 _ACEOF
16559 if ac_fn_c_try_link "$LINENO"; then :
16560 save_LIBS="$LIBS"
16561 LIBS="-lpthread $LIBS"
16562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16563 /* end confdefs.h. */
16564 #ifndef _GNU_SOURCE
16565 #define _GNU_SOURCE 1
16566 #endif
16567 #include <pthread.h>
16568 pthread_t th; void *status;
16570 main ()
16572 pthread_tryjoin_np (th, &status);
16574 return 0;
16576 _ACEOF
16577 if ac_fn_c_try_link "$LINENO"; then :
16578 enable_linux_futex=yes
16579 else
16580 if test x$cross_compiling = xno; then
16581 if getconf GNU_LIBPTHREAD_VERSION 2>/dev/null \
16582 | LC_ALL=C grep -i NPTL > /dev/null 2>/dev/null; then :; else
16583 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The kernel might not support futex or gettid syscalls.
16584 If so, please configure with --disable-linux-futex" >&5
16585 $as_echo "$as_me: WARNING: The kernel might not support futex or gettid syscalls.
16586 If so, please configure with --disable-linux-futex" >&2;}
16589 enable_linux_futex=yes
16591 rm -f core conftest.err conftest.$ac_objext \
16592 conftest$ac_exeext conftest.$ac_ext
16593 LIBS="$save_LIBS"
16595 rm -f core conftest.err conftest.$ac_objext \
16596 conftest$ac_exeext conftest.$ac_ext
16598 yes)
16599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16600 /* end confdefs.h. */
16601 #include <sys/syscall.h>
16602 #include <unistd.h>
16603 int lk;
16605 main ()
16607 syscall (SYS_gettid); syscall (SYS_futex, &lk, 0, 0, 0);
16609 return 0;
16611 _ACEOF
16612 if ac_fn_c_try_link "$LINENO"; then :
16614 else
16615 as_fn_error $? "SYS_gettid and SYS_futex required for --enable-linux-futex" "$LINENO" 5
16617 rm -f core conftest.err conftest.$ac_objext \
16618 conftest$ac_exeext conftest.$ac_ext
16620 esac
16623 enable_linux_futex=no
16625 esac
16626 if test x$enable_linux_futex = xyes; then
16631 # See if we support thread-local storage.
16634 # Check whether --enable-tls was given.
16635 if test "${enable_tls+set}" = set; then :
16636 enableval=$enable_tls;
16637 case "$enableval" in
16638 yes|no) ;;
16639 *) as_fn_error $? "Argument to enable/disable tls must be yes or no" "$LINENO" 5 ;;
16640 esac
16642 else
16643 enable_tls=yes
16647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports thread-local storage" >&5
16648 $as_echo_n "checking whether the target supports thread-local storage... " >&6; }
16649 if ${gcc_cv_have_tls+:} false; then :
16650 $as_echo_n "(cached) " >&6
16651 else
16653 if test "$cross_compiling" = yes; then :
16654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16655 /* end confdefs.h. */
16656 __thread int a; int b; int main() { return a = b; }
16657 _ACEOF
16658 if ac_fn_c_try_link "$LINENO"; then :
16659 chktls_save_LDFLAGS="$LDFLAGS"
16660 case $host in
16661 *-*-linux* | -*-uclinuxfdpic*)
16662 LDFLAGS="-shared -Wl,--no-undefined $LDFLAGS"
16664 esac
16665 chktls_save_CFLAGS="$CFLAGS"
16666 CFLAGS="-fPIC $CFLAGS"
16667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16668 /* end confdefs.h. */
16669 int f() { return 0; }
16670 _ACEOF
16671 if ac_fn_c_try_link "$LINENO"; then :
16672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16673 /* end confdefs.h. */
16674 __thread int a; int b; int f() { return a = b; }
16675 _ACEOF
16676 if ac_fn_c_try_link "$LINENO"; then :
16677 gcc_cv_have_tls=yes
16678 else
16679 gcc_cv_have_tls=no
16681 rm -f core conftest.err conftest.$ac_objext \
16682 conftest$ac_exeext conftest.$ac_ext
16683 else
16684 gcc_cv_have_tls=yes
16686 rm -f core conftest.err conftest.$ac_objext \
16687 conftest$ac_exeext conftest.$ac_ext
16688 CFLAGS="$chktls_save_CFLAGS"
16689 LDFLAGS="$chktls_save_LDFLAGS"
16690 else
16691 gcc_cv_have_tls=no
16693 rm -f core conftest.err conftest.$ac_objext \
16694 conftest$ac_exeext conftest.$ac_ext
16697 else
16698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16699 /* end confdefs.h. */
16700 __thread int a; int b; int main() { return a = b; }
16701 _ACEOF
16702 if ac_fn_c_try_run "$LINENO"; then :
16703 chktls_save_LDFLAGS="$LDFLAGS"
16704 LDFLAGS="-static $LDFLAGS"
16705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16706 /* end confdefs.h. */
16707 int main() { return 0; }
16708 _ACEOF
16709 if ac_fn_c_try_link "$LINENO"; then :
16710 if test "$cross_compiling" = yes; then :
16711 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16712 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16713 as_fn_error $? "cannot run test program while cross compiling
16714 See \`config.log' for more details" "$LINENO" 5; }
16715 else
16716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16717 /* end confdefs.h. */
16718 __thread int a; int b; int main() { return a = b; }
16719 _ACEOF
16720 if ac_fn_c_try_run "$LINENO"; then :
16721 gcc_cv_have_tls=yes
16722 else
16723 gcc_cv_have_tls=no
16725 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16726 conftest.$ac_objext conftest.beam conftest.$ac_ext
16729 else
16730 gcc_cv_have_tls=yes
16732 rm -f core conftest.err conftest.$ac_objext \
16733 conftest$ac_exeext conftest.$ac_ext
16734 LDFLAGS="$chktls_save_LDFLAGS"
16735 if test $gcc_cv_have_tls = yes; then
16736 chktls_save_CFLAGS="$CFLAGS"
16737 thread_CFLAGS=failed
16738 for flag in '' '-pthread' '-lpthread'; do
16739 CFLAGS="$flag $chktls_save_CFLAGS"
16740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16741 /* end confdefs.h. */
16742 #include <pthread.h>
16743 void *g(void *d) { return NULL; }
16745 main ()
16747 pthread_t t; pthread_create(&t,NULL,g,NULL);
16749 return 0;
16751 _ACEOF
16752 if ac_fn_c_try_link "$LINENO"; then :
16753 thread_CFLAGS="$flag"
16755 rm -f core conftest.err conftest.$ac_objext \
16756 conftest$ac_exeext conftest.$ac_ext
16757 if test "X$thread_CFLAGS" != Xfailed; then
16758 break
16760 done
16761 CFLAGS="$chktls_save_CFLAGS"
16762 if test "X$thread_CFLAGS" != Xfailed; then
16763 CFLAGS="$thread_CFLAGS $chktls_save_CFLAGS"
16764 if test "$cross_compiling" = yes; then :
16765 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16766 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16767 as_fn_error $? "cannot run test program while cross compiling
16768 See \`config.log' for more details" "$LINENO" 5; }
16769 else
16770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16771 /* end confdefs.h. */
16772 #include <pthread.h>
16773 __thread int a;
16774 static int *volatile a_in_other_thread;
16775 static void *
16776 thread_func (void *arg)
16778 a_in_other_thread = &a;
16779 return (void *)0;
16782 main ()
16784 pthread_t thread;
16785 void *thread_retval;
16786 int *volatile a_in_main_thread;
16787 a_in_main_thread = &a;
16788 if (pthread_create (&thread, (pthread_attr_t *)0,
16789 thread_func, (void *)0))
16790 return 0;
16791 if (pthread_join (thread, &thread_retval))
16792 return 0;
16793 return (a_in_other_thread == a_in_main_thread);
16795 return 0;
16797 _ACEOF
16798 if ac_fn_c_try_run "$LINENO"; then :
16799 gcc_cv_have_tls=yes
16800 else
16801 gcc_cv_have_tls=no
16803 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16804 conftest.$ac_objext conftest.beam conftest.$ac_ext
16807 CFLAGS="$chktls_save_CFLAGS"
16810 else
16811 gcc_cv_have_tls=no
16813 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16814 conftest.$ac_objext conftest.beam conftest.$ac_ext
16818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_have_tls" >&5
16819 $as_echo "$gcc_cv_have_tls" >&6; }
16820 if test "$enable_tls $gcc_cv_have_tls" = "yes yes"; then
16822 $as_echo "#define HAVE_TLS 1" >>confdefs.h
16826 # See what sort of export controls are available.
16828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports hidden visibility" >&5
16829 $as_echo_n "checking whether the target supports hidden visibility... " >&6; }
16830 if ${libitm_cv_have_attribute_visibility+:} false; then :
16831 $as_echo_n "(cached) " >&6
16832 else
16834 save_CFLAGS="$CFLAGS"
16835 CFLAGS="$CFLAGS -Werror"
16836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16837 /* end confdefs.h. */
16838 void __attribute__((visibility("hidden"))) foo(void) { }
16840 main ()
16844 return 0;
16846 _ACEOF
16847 if ac_fn_c_try_compile "$LINENO"; then :
16848 libitm_cv_have_attribute_visibility=yes
16849 else
16850 libitm_cv_have_attribute_visibility=no
16852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16853 CFLAGS="$save_CFLAGS"
16855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libitm_cv_have_attribute_visibility" >&5
16856 $as_echo "$libitm_cv_have_attribute_visibility" >&6; }
16857 if test $libitm_cv_have_attribute_visibility = yes; then
16859 $as_echo "#define HAVE_ATTRIBUTE_VISIBILITY 1" >>confdefs.h
16863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports dllexport" >&5
16864 $as_echo_n "checking whether the target supports dllexport... " >&6; }
16865 if ${libitm_cv_have_attribute_dllexport+:} false; then :
16866 $as_echo_n "(cached) " >&6
16867 else
16869 save_CFLAGS="$CFLAGS"
16870 CFLAGS="$CFLAGS -Werror"
16871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16872 /* end confdefs.h. */
16873 void __attribute__((dllexport)) foo(void) { }
16875 main ()
16879 return 0;
16881 _ACEOF
16882 if ac_fn_c_try_compile "$LINENO"; then :
16883 libitm_cv_have_attribute_dllexport=yes
16884 else
16885 libitm_cv_have_attribute_dllexport=no
16887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16888 CFLAGS="$save_CFLAGS"
16890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libitm_cv_have_attribute_dllexport" >&5
16891 $as_echo "$libitm_cv_have_attribute_dllexport" >&6; }
16892 if test $libitm_cv_have_attribute_dllexport = yes; then
16894 $as_echo "#define HAVE_ATTRIBUTE_DLLEXPORT 1" >>confdefs.h
16898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports symbol aliases" >&5
16899 $as_echo_n "checking whether the target supports symbol aliases... " >&6; }
16900 if ${libitm_cv_have_attribute_alias+:} false; then :
16901 $as_echo_n "(cached) " >&6
16902 else
16904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16905 /* end confdefs.h. */
16907 void foo(void) { }
16908 extern void bar(void) __attribute__((alias("foo")));
16910 main ()
16912 bar();
16914 return 0;
16916 _ACEOF
16917 if ac_fn_c_try_link "$LINENO"; then :
16918 libitm_cv_have_attribute_alias=yes
16919 else
16920 libitm_cv_have_attribute_alias=no
16922 rm -f core conftest.err conftest.$ac_objext \
16923 conftest$ac_exeext conftest.$ac_ext
16925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libitm_cv_have_attribute_alias" >&5
16926 $as_echo "$libitm_cv_have_attribute_alias" >&6; }
16927 if test $libitm_cv_have_attribute_alias = yes; then
16929 $as_echo "#define HAVE_ATTRIBUTE_ALIAS 1" >>confdefs.h
16933 # Check linker hardware capability support.
16936 # Check whether --with-gnu-ld was given.
16937 if test "${with_gnu_ld+set}" = set; then :
16938 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
16939 else
16940 with_gnu_ld=no
16943 ac_prog=ld
16944 if test "$GCC" = yes; then
16945 # Check if gcc -print-prog-name=ld gives a path.
16946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
16947 $as_echo_n "checking for ld used by $CC... " >&6; }
16948 case $host in
16949 *-*-mingw*)
16950 # gcc leaves a trailing carriage return which upsets mingw
16951 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16953 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16954 esac
16955 case $ac_prog in
16956 # Accept absolute paths.
16957 [\\/]* | ?:[\\/]*)
16958 re_direlt='/[^/][^/]*/\.\./'
16959 # Canonicalize the pathname of ld
16960 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
16961 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
16962 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
16963 done
16964 test -z "$LD" && LD="$ac_prog"
16967 # If it fails, then pretend we aren't using GCC.
16968 ac_prog=ld
16971 # If it is relative, then search for the first ld in PATH.
16972 with_gnu_ld=unknown
16974 esac
16975 elif test "$with_gnu_ld" = yes; then
16976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
16977 $as_echo_n "checking for GNU ld... " >&6; }
16978 else
16979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
16980 $as_echo_n "checking for non-GNU ld... " >&6; }
16982 if ${lt_cv_path_LD+:} false; then :
16983 $as_echo_n "(cached) " >&6
16984 else
16985 if test -z "$LD"; then
16986 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
16987 for ac_dir in $PATH; do
16988 IFS="$lt_save_ifs"
16989 test -z "$ac_dir" && ac_dir=.
16990 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16991 lt_cv_path_LD="$ac_dir/$ac_prog"
16992 # Check to see if the program is GNU ld. I'd rather use --version,
16993 # but apparently some variants of GNU ld only accept -v.
16994 # Break only if it was the GNU/non-GNU ld that we prefer.
16995 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
16996 *GNU* | *'with BFD'*)
16997 test "$with_gnu_ld" != no && break
17000 test "$with_gnu_ld" != yes && break
17002 esac
17004 done
17005 IFS="$lt_save_ifs"
17006 else
17007 lt_cv_path_LD="$LD" # Let the user override the test with a path.
17011 LD="$lt_cv_path_LD"
17012 if test -n "$LD"; then
17013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
17014 $as_echo "$LD" >&6; }
17015 else
17016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17017 $as_echo "no" >&6; }
17019 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
17020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
17021 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
17022 if ${lt_cv_prog_gnu_ld+:} false; then :
17023 $as_echo_n "(cached) " >&6
17024 else
17025 # I'd rather use --version here, but apparently some GNU lds only accept -v.
17026 case `$LD -v 2>&1 </dev/null` in
17027 *GNU* | *'with BFD'*)
17028 lt_cv_prog_gnu_ld=yes
17031 lt_cv_prog_gnu_ld=no
17033 esac
17035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
17036 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
17037 with_gnu_ld=$lt_cv_prog_gnu_ld
17045 test -z "$HWCAP_LDFLAGS" && HWCAP_LDFLAGS=''
17048 ac_save_LDFLAGS="$LDFLAGS"
17049 LDFLAGS="$LFLAGS -mclear-hwcap"
17051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -mclear-hwcap" >&5
17052 $as_echo_n "checking for -mclear-hwcap... " >&6; }
17053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17054 /* end confdefs.h. */
17057 main ()
17059 return 0;
17061 return 0;
17063 _ACEOF
17064 if ac_fn_c_try_link "$LINENO"; then :
17065 ac_hwcap_ldflags=yes
17066 else
17067 ac_hwcap_ldflags=no
17069 rm -f core conftest.err conftest.$ac_objext \
17070 conftest$ac_exeext conftest.$ac_ext
17071 if test "$ac_hwcap_ldflags" = "yes"; then
17072 HWCAP_LDFLAGS="-mclear-hwcap $HWCAP_LDFLAGS"
17074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_hwcap_ldflags" >&5
17075 $as_echo "$ac_hwcap_ldflags" >&6; }
17077 LDFLAGS="$ac_save_LDFLAGS"
17081 if test $ac_hwcap_ldflags != no; then
17082 HAVE_HWCAP_TRUE=
17083 HAVE_HWCAP_FALSE='#'
17084 else
17085 HAVE_HWCAP_TRUE='#'
17086 HAVE_HWCAP_FALSE=
17090 # If defaulting to -mavx, don't clear hwcaps.
17091 ac_fn_c_check_decl "$LINENO" "__AVX__" "ac_cv_have_decl___AVX__" "$ac_includes_default"
17092 if test "x$ac_cv_have_decl___AVX__" = xyes; then :
17093 HWCAP_LDFLAGS=''
17098 # If we're not using GNU ld, then there's no point in even trying these
17099 # tests. Check for that first. We should have already tested for gld
17100 # by now (in libtool), but require it now just to be safe...
17101 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
17102 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
17106 # The name set by libtool depends on the version of libtool. Shame on us
17107 # for depending on an impl detail, but c'est la vie. Older versions used
17108 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
17109 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
17110 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
17111 # set (hence we're using an older libtool), then set it.
17112 if test x${with_gnu_ld+set} != xset; then
17113 if test x${ac_cv_prog_gnu_ld+set} != xset; then
17114 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
17115 with_gnu_ld=no
17116 else
17117 with_gnu_ld=$ac_cv_prog_gnu_ld
17121 # Start by getting the version number. I think the libtool test already
17122 # does some of this, but throws away the result.
17123 libitm_ld_is_gold=no
17124 libitm_ld_is_mold=no
17125 if $LD --version 2>/dev/null | grep 'GNU gold'> /dev/null 2>&1; then
17126 libitm_ld_is_gold=yes
17127 elif $LD --version 2>/dev/null | grep 'mold' >/dev/null 2>&1; then
17128 libitm_ld_is_mold=yes
17131 ldver=`$LD --version 2>/dev/null |
17132 sed -e 's/[. ][0-9]\{8\}$//;s/.* \([^ ]\{1,\}\)$/\1/; q'`
17134 libitm_gnu_ld_version=`echo $ldver | \
17135 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
17137 # Set --gc-sections.
17138 if test "$with_gnu_ld" = "notbroken"; then
17139 # GNU ld it is! Joy and bunny rabbits!
17141 # All these tests are for C++; save the language and the compiler flags.
17142 # Need to do this so that g++ won't try to link in libstdc++
17143 ac_test_CFLAGS="${CFLAGS+set}"
17144 ac_save_CFLAGS="$CFLAGS"
17145 CFLAGS='-x c++ -Wl,--gc-sections'
17147 # Check for -Wl,--gc-sections
17148 # XXX This test is broken at the moment, as symbols required for linking
17149 # are now in libsupc++ (not built yet). In addition, this test has
17150 # cored on solaris in the past. In addition, --gc-sections doesn't
17151 # really work at the moment (keeps on discarding used sections, first
17152 # .eh_frame and now some of the glibc sections for iconv).
17153 # Bzzzzt. Thanks for playing, maybe next time.
17154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld that supports -Wl,--gc-sections" >&5
17155 $as_echo_n "checking for ld that supports -Wl,--gc-sections... " >&6; }
17156 if test "$cross_compiling" = yes; then :
17157 ac_sectionLDflags=yes
17158 else
17159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17160 /* end confdefs.h. */
17162 int main(void)
17164 try { throw 1; }
17165 catch (...) { };
17166 return 0;
17169 _ACEOF
17170 if ac_fn_c_try_run "$LINENO"; then :
17171 ac_sectionLDflags=yes
17172 else
17173 ac_sectionLDflags=no
17175 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17176 conftest.$ac_objext conftest.beam conftest.$ac_ext
17179 if test "$ac_test_CFLAGS" = set; then
17180 CFLAGS="$ac_save_CFLAGS"
17181 else
17182 # this is the suspicious part
17183 CFLAGS=''
17185 if test "$ac_sectionLDflags" = "yes"; then
17186 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
17188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_sectionLDflags" >&5
17189 $as_echo "$ac_sectionLDflags" >&6; }
17192 # Set linker optimization flags.
17193 if test x"$with_gnu_ld" = x"yes"; then
17194 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
17202 # Check whether --enable-symvers was given.
17203 if test "${enable_symvers+set}" = set; then :
17204 enableval=$enable_symvers;
17205 case "$enableval" in
17206 yes|no|gnu*|sun) ;;
17207 *) as_fn_error $? "Unknown argument to enable/disable symvers" "$LINENO" 5 ;;
17208 esac
17210 else
17211 enable_symvers=yes
17216 # If we never went through the LIBITM_CHECK_LINKER_FEATURES macro, then we
17217 # don't know enough about $LD to do tricks...
17220 # Turn a 'yes' into a suitable default.
17221 if test x$enable_symvers = xyes ; then
17222 # FIXME The following test is too strict, in theory.
17223 if test $enable_shared = no || test "x$LD" = x; then
17224 enable_symvers=no
17225 else
17226 if test $with_gnu_ld = yes ; then
17227 enable_symvers=gnu
17228 else
17229 case ${target_os} in
17230 # Sun symbol versioning exists since Solaris 2.5.
17231 solaris2.[5-9]* | solaris2.1[0-9]*)
17232 enable_symvers=sun ;;
17234 enable_symvers=no ;;
17235 esac
17240 # Check if 'sun' was requested on non-Solaris 2 platforms.
17241 if test x$enable_symvers = xsun ; then
17242 case ${target_os} in
17243 solaris2*)
17244 # All fine.
17247 # Unlikely to work.
17248 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You have requested Sun symbol versioning, but" >&5
17249 $as_echo "$as_me: WARNING: === You have requested Sun symbol versioning, but" >&2;}
17250 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === you are not targetting Solaris 2." >&5
17251 $as_echo "$as_me: WARNING: === you are not targetting Solaris 2." >&2;}
17252 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
17253 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
17254 enable_symvers=no
17256 esac
17259 # Check to see if libgcc_s exists, indicating that shared libgcc is possible.
17260 if test $enable_symvers != no; then
17261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared libgcc" >&5
17262 $as_echo_n "checking for shared libgcc... " >&6; }
17263 ac_save_CFLAGS="$CFLAGS"
17264 CFLAGS=' -lgcc_s'
17265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17266 /* end confdefs.h. */
17269 main ()
17271 return 0;
17273 return 0;
17275 _ACEOF
17276 if ac_fn_c_try_link "$LINENO"; then :
17277 libitm_shared_libgcc=yes
17278 else
17279 libitm_shared_libgcc=no
17281 rm -f core conftest.err conftest.$ac_objext \
17282 conftest$ac_exeext conftest.$ac_ext
17283 CFLAGS="$ac_save_CFLAGS"
17284 if test $libitm_shared_libgcc = no; then
17285 cat > conftest.c <<EOF
17286 int main (void) { return 0; }
17288 libitm_libgcc_s_suffix=`${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
17289 -shared -shared-libgcc -o conftest.so \
17290 conftest.c -v 2>&1 >/dev/null \
17291 | sed -n 's/^.* -lgcc_s\([^ ]*\) .*$/\1/p'`
17292 rm -f conftest.c conftest.so
17293 if test x${libitm_libgcc_s_suffix+set} = xset; then
17294 CFLAGS=" -lgcc_s$libitm_libgcc_s_suffix"
17295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17296 /* end confdefs.h. */
17299 main ()
17301 return 0;
17303 return 0;
17305 _ACEOF
17306 if ac_fn_c_try_link "$LINENO"; then :
17307 libitm_shared_libgcc=yes
17309 rm -f core conftest.err conftest.$ac_objext \
17310 conftest$ac_exeext conftest.$ac_ext
17311 CFLAGS="$ac_save_CFLAGS"
17314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libitm_shared_libgcc" >&5
17315 $as_echo "$libitm_shared_libgcc" >&6; }
17318 # For GNU ld, we need at least this version. The format is described in
17319 # LIBITM_CHECK_LINKER_FEATURES above.
17320 libitm_min_gnu_ld_version=21400
17321 # XXXXXXXXXXX libitm_gnu_ld_version=21390
17323 # Check to see if unspecified "yes" value can win, given results above.
17324 # Change "yes" into either "no" or a style name.
17325 if test $enable_symvers != no && test $libitm_shared_libgcc = yes; then
17326 if test $with_gnu_ld = yes; then
17327 if test $libitm_gnu_ld_version -ge $libitm_min_gnu_ld_version ; then
17328 enable_symvers=gnu
17329 elif test $libitm_ld_is_gold = yes ; then
17330 enable_symvers=gnu
17331 elif test $libitm_ld_is_mold = yes ; then
17332 enable_symvers=gnu
17333 else
17334 # The right tools, the right setup, but too old. Fallbacks?
17335 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Linker version $libitm_gnu_ld_version is too old for" >&5
17336 $as_echo "$as_me: WARNING: === Linker version $libitm_gnu_ld_version is too old for" >&2;}
17337 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === full symbol versioning support in this release of GCC." >&5
17338 $as_echo "$as_me: WARNING: === full symbol versioning support in this release of GCC." >&2;}
17339 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You would need to upgrade your binutils to version" >&5
17340 $as_echo "$as_me: WARNING: === You would need to upgrade your binutils to version" >&2;}
17341 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === $libitm_min_gnu_ld_version or later and rebuild GCC." >&5
17342 $as_echo "$as_me: WARNING: === $libitm_min_gnu_ld_version or later and rebuild GCC." >&2;}
17343 if test $libitm_gnu_ld_version -ge 21200 ; then
17344 # Globbing fix is present, proper block support is not.
17345 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
17346 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
17347 enable_symvers=no
17348 else
17349 # 2.11 or older.
17350 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
17351 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
17352 enable_symvers=no
17355 elif test $enable_symvers = sun; then
17356 : All interesting versions of Sun ld support sun style symbol versioning.
17357 else
17358 # just fail for now
17359 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You have requested some kind of symbol versioning, but" >&5
17360 $as_echo "$as_me: WARNING: === You have requested some kind of symbol versioning, but" >&2;}
17361 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === either you are not using a supported linker, or you are" >&5
17362 $as_echo "$as_me: WARNING: === either you are not using a supported linker, or you are" >&2;}
17363 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === not building a shared libgcc_s (which is required)." >&5
17364 $as_echo "$as_me: WARNING: === not building a shared libgcc_s (which is required)." >&2;}
17365 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
17366 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
17367 enable_symvers=no
17371 if test $enable_symvers != no; then
17372 LIBITM_BUILD_VERSIONED_SHLIB_TRUE=
17373 LIBITM_BUILD_VERSIONED_SHLIB_FALSE='#'
17374 else
17375 LIBITM_BUILD_VERSIONED_SHLIB_TRUE='#'
17376 LIBITM_BUILD_VERSIONED_SHLIB_FALSE=
17379 if test $enable_symvers = gnu; then
17380 LIBITM_BUILD_VERSIONED_SHLIB_GNU_TRUE=
17381 LIBITM_BUILD_VERSIONED_SHLIB_GNU_FALSE='#'
17382 else
17383 LIBITM_BUILD_VERSIONED_SHLIB_GNU_TRUE='#'
17384 LIBITM_BUILD_VERSIONED_SHLIB_GNU_FALSE=
17387 if test $enable_symvers = sun; then
17388 LIBITM_BUILD_VERSIONED_SHLIB_SUN_TRUE=
17389 LIBITM_BUILD_VERSIONED_SHLIB_SUN_FALSE='#'
17390 else
17391 LIBITM_BUILD_VERSIONED_SHLIB_SUN_TRUE='#'
17392 LIBITM_BUILD_VERSIONED_SHLIB_SUN_FALSE=
17395 { $as_echo "$as_me:${as_lineno-$LINENO}: versioning on shared library symbols is $enable_symvers" >&5
17396 $as_echo "$as_me: versioning on shared library symbols is $enable_symvers" >&6;}
17398 if test $enable_symvers = gnu; then
17400 $as_echo "#define LIBITM_GNU_SYMBOL_VERSIONING 1" >>confdefs.h
17404 # See if we can emit unwind info in the sjlj stub.
17405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler .cfi pseudo-op support" >&5
17406 $as_echo_n "checking assembler .cfi pseudo-op support... " >&6; }
17407 if ${gcc_cv_as_cfi_pseudo_op+:} false; then :
17408 $as_echo_n "(cached) " >&6
17409 else
17411 gcc_cv_as_cfi_pseudo_op=unknown
17412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17413 /* end confdefs.h. */
17414 asm (".cfi_startproc\n\t.cfi_endproc");
17416 main ()
17420 return 0;
17422 _ACEOF
17423 if ac_fn_c_try_compile "$LINENO"; then :
17424 gcc_cv_as_cfi_pseudo_op=yes
17425 else
17426 gcc_cv_as_cfi_pseudo_op=no
17428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_pseudo_op" >&5
17432 $as_echo "$gcc_cv_as_cfi_pseudo_op" >&6; }
17433 if test "x$gcc_cv_as_cfi_pseudo_op" = xyes; then
17435 $as_echo "#define HAVE_AS_CFI_PSEUDO_OP 1" >>confdefs.h
17440 # Determine the proper ABI type for size_t.
17442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how size_t is mangled" >&5
17443 $as_echo_n "checking how size_t is mangled... " >&6; }
17444 if ${libitm_cv_size_t_mangling+:} false; then :
17445 $as_echo_n "(cached) " >&6
17446 else
17448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17449 /* end confdefs.h. */
17452 main ()
17454 extern __SIZE_TYPE__ x; extern unsigned long x;
17456 return 0;
17458 _ACEOF
17459 if ac_fn_c_try_compile "$LINENO"; then :
17460 libitm_cv_size_t_mangling=m
17461 else
17463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17464 /* end confdefs.h. */
17467 main ()
17469 extern __SIZE_TYPE__ x; extern unsigned int x;
17471 return 0;
17473 _ACEOF
17474 if ac_fn_c_try_compile "$LINENO"; then :
17475 libitm_cv_size_t_mangling=j
17476 else
17478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17479 /* end confdefs.h. */
17482 main ()
17484 extern __SIZE_TYPE__ x; extern unsigned long long x;
17486 return 0;
17488 _ACEOF
17489 if ac_fn_c_try_compile "$LINENO"; then :
17490 libitm_cv_size_t_mangling=y
17491 else
17493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17494 /* end confdefs.h. */
17497 main ()
17499 extern __SIZE_TYPE__ x; extern unsigned short x;
17501 return 0;
17503 _ACEOF
17504 if ac_fn_c_try_compile "$LINENO"; then :
17505 libitm_cv_size_t_mangling=t
17506 else
17507 libitm_cv_size_t_mangling=x
17509 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libitm_cv_size_t_mangling" >&5
17522 $as_echo "$libitm_cv_size_t_mangling" >&6; }
17523 if test $libitm_cv_size_t_mangling = x; then
17524 as_fn_error $? "Unknown underlying type for size_t" "$LINENO" 5
17527 cat >>confdefs.h <<_ACEOF
17528 #define MANGLE_SIZE_T $libitm_cv_size_t_mangling
17529 _ACEOF
17533 # Get target configury.
17534 . ${srcdir}/configure.tgt
17535 if test -n "$UNSUPPORTED"; then
17536 as_fn_error $? "Configuration ${target} is unsupported." "$LINENO" 5
17539 CFLAGS="$save_CFLAGS $XCFLAGS"
17541 # Check for __sync_val_compare_and_swap, but only after the target has
17542 # had a chance to set XCFLAGS.
17544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports __sync_*_compare_and_swap" >&5
17545 $as_echo_n "checking whether the target supports __sync_*_compare_and_swap... " >&6; }
17546 if ${libitm_cv_have_sync_builtins+:} false; then :
17547 $as_echo_n "(cached) " >&6
17548 else
17550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17551 /* end confdefs.h. */
17554 main ()
17556 int foo, bar; bar = __sync_val_compare_and_swap(&foo, 0, 1);
17558 return 0;
17560 _ACEOF
17561 if ac_fn_c_try_link "$LINENO"; then :
17562 libitm_cv_have_sync_builtins=yes
17563 else
17564 libitm_cv_have_sync_builtins=no
17566 rm -f core conftest.err conftest.$ac_objext \
17567 conftest$ac_exeext conftest.$ac_ext
17569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libitm_cv_have_sync_builtins" >&5
17570 $as_echo "$libitm_cv_have_sync_builtins" >&6; }
17571 if test $libitm_cv_have_sync_builtins = yes; then
17573 $as_echo "#define HAVE_SYNC_BUILTINS 1" >>confdefs.h
17577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports 64-bit __sync_*_compare_and_swap" >&5
17578 $as_echo_n "checking whether the target supports 64-bit __sync_*_compare_and_swap... " >&6; }
17579 if ${libitm_cv_have_64bit_sync_builtins+:} false; then :
17580 $as_echo_n "(cached) " >&6
17581 else
17583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17584 /* end confdefs.h. */
17585 #include <stdint.h>
17587 main ()
17589 uint64_t foo, bar;
17590 bar = __sync_val_compare_and_swap(&foo, 0, 1);
17592 return 0;
17594 _ACEOF
17595 if ac_fn_c_try_link "$LINENO"; then :
17596 libitm_cv_have_64bit_sync_builtins=yes
17597 else
17598 libitm_cv_have_64bit_sync_builtins=no
17600 rm -f core conftest.err conftest.$ac_objext \
17601 conftest$ac_exeext conftest.$ac_ext
17603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libitm_cv_have_64bit_sync_builtins" >&5
17604 $as_echo "$libitm_cv_have_64bit_sync_builtins" >&6; }
17605 if test $libitm_cv_have_64bit_sync_builtins = yes; then
17607 $as_echo "#define HAVE_64BIT_SYNC_BUILTINS 1" >>confdefs.h
17611 case "${target_cpu}" in
17612 i[34567]86 | x86_64)
17613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the assembler supports AVX" >&5
17614 $as_echo_n "checking if the assembler supports AVX... " >&6; }
17615 if ${libitm_cv_as_avx+:} false; then :
17616 $as_echo_n "(cached) " >&6
17617 else
17619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17620 /* end confdefs.h. */
17623 main ()
17625 asm("vzeroupper");
17627 return 0;
17629 _ACEOF
17630 if ac_fn_c_try_compile "$LINENO"; then :
17631 libitm_cv_as_avx=yes
17632 else
17633 libitm_cv_as_avx=no
17635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libitm_cv_as_avx" >&5
17639 $as_echo "$libitm_cv_as_avx" >&6; }
17640 if test x$libitm_cv_as_avx = xyes; then
17642 $as_echo "#define HAVE_AS_AVX 1" >>confdefs.h
17646 esac
17648 case "${target_cpu}" in
17649 i[34567]86 | x86_64)
17650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the assembler supports RTM" >&5
17651 $as_echo_n "checking if the assembler supports RTM... " >&6; }
17652 if ${libitm_cv_as_rtm+:} false; then :
17653 $as_echo_n "(cached) " >&6
17654 else
17656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17657 /* end confdefs.h. */
17660 main ()
17662 asm("1: xbegin 1b; xend");
17664 return 0;
17666 _ACEOF
17667 if ac_fn_c_try_compile "$LINENO"; then :
17668 libitm_cv_as_rtm=yes
17669 else
17670 libitm_cv_as_rtm=no
17672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libitm_cv_as_rtm" >&5
17676 $as_echo "$libitm_cv_as_rtm" >&6; }
17677 if test x$libitm_cv_as_rtm = xyes; then
17679 $as_echo "#define HAVE_AS_RTM 1" >>confdefs.h
17683 esac
17685 case "${target_cpu}" in
17686 powerpc*)
17687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the assembler supports HTM" >&5
17688 $as_echo_n "checking if the assembler supports HTM... " >&6; }
17689 if ${libitm_cv_as_htm+:} false; then :
17690 $as_echo_n "(cached) " >&6
17691 else
17693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17694 /* end confdefs.h. */
17697 main ()
17699 asm("tbegin. 0; tend. 0");
17701 return 0;
17703 _ACEOF
17704 if ac_fn_c_try_compile "$LINENO"; then :
17705 libitm_cv_as_htm=yes
17706 else
17707 libitm_cv_as_htm=no
17709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libitm_cv_as_htm" >&5
17713 $as_echo "$libitm_cv_as_htm" >&6; }
17714 if test x$libitm_cv_as_htm = xyes; then
17716 $as_echo "#define HAVE_AS_HTM 1" >>confdefs.h
17720 s390*)
17721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the assembler supports HTM" >&5
17722 $as_echo_n "checking if the assembler supports HTM... " >&6; }
17723 if ${libitm_cv_as_htm+:} false; then :
17724 $as_echo_n "(cached) " >&6
17725 else
17727 save_CFLAGS="$CFLAGS"
17728 CFLAGS="$CFLAGS -march=zEC12"
17729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17730 /* end confdefs.h. */
17733 main ()
17735 asm("tbegin 0,0; tend");
17737 return 0;
17739 _ACEOF
17740 if ac_fn_c_try_compile "$LINENO"; then :
17741 libitm_cv_as_htm=yes
17742 else
17743 libitm_cv_as_htm=no
17745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17746 CFLAGS="$save_CFLAGS"
17748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libitm_cv_as_htm" >&5
17749 $as_echo "$libitm_cv_as_htm" >&6; }
17750 if test x$libitm_cv_as_htm = xyes; then
17752 $as_echo "#define HAVE_AS_HTM 1" >>confdefs.h
17756 esac
17759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether weak refs work like ELF" >&5
17760 $as_echo_n "checking whether weak refs work like ELF... " >&6; }
17761 if ${ac_cv_have_elf_style_weakref+:} false; then :
17762 $as_echo_n "(cached) " >&6
17763 else
17765 weakref_m4_saved_CFLAGS="$CFLAGS"
17766 case "${host}" in
17767 *-apple-darwin*) CFLAGS="$CFLAGS -Wl,-undefined,dynamic_lookup" ;;
17768 *) ;;
17769 esac
17770 if test "$cross_compiling" = yes; then :
17772 case "${host}" in
17773 *-apple-darwin[89]*) ac_cv_have_elf_style_weakref=no ;;
17774 *) ac_cv_have_elf_style_weakref=yes;;
17775 esac
17776 else
17777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17778 /* end confdefs.h. */
17780 extern void fNotToBeFound(void) __attribute__((weak));
17781 int main ()
17783 if (fNotToBeFound)
17784 return 1;
17785 else
17786 return 0;
17789 _ACEOF
17790 if ac_fn_c_try_run "$LINENO"; then :
17791 ac_cv_have_elf_style_weakref=yes
17792 else
17793 ac_cv_have_elf_style_weakref=no
17795 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17796 conftest.$ac_objext conftest.beam conftest.$ac_ext
17798 CFLAGS="$weakref_m4_saved_CFLAGS"
17800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_elf_style_weakref" >&5
17801 $as_echo "$ac_cv_have_elf_style_weakref" >&6; }
17802 if test x"$ac_cv_have_elf_style_weakref" = xyes; then
17804 $as_echo "#define HAVE_ELF_STYLE_WEAKREF 1" >>confdefs.h
17808 # Cleanup and exit.
17809 CFLAGS="$save_CFLAGS"
17810 cat >confcache <<\_ACEOF
17811 # This file is a shell script that caches the results of configure
17812 # tests run on this system so they can be shared between configure
17813 # scripts and configure runs, see configure's option --config-cache.
17814 # It is not useful on other systems. If it contains results you don't
17815 # want to keep, you may remove or edit it.
17817 # config.status only pays attention to the cache file if you give it
17818 # the --recheck option to rerun configure.
17820 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17821 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17822 # following values.
17824 _ACEOF
17826 # The following way of writing the cache mishandles newlines in values,
17827 # but we know of no workaround that is simple, portable, and efficient.
17828 # So, we kill variables containing newlines.
17829 # Ultrix sh set writes to stderr and can't be redirected directly,
17830 # and sets the high bit in the cache file unless we assign to the vars.
17832 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17833 eval ac_val=\$$ac_var
17834 case $ac_val in #(
17835 *${as_nl}*)
17836 case $ac_var in #(
17837 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17838 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17839 esac
17840 case $ac_var in #(
17841 _ | IFS | as_nl) ;; #(
17842 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17843 *) { eval $ac_var=; unset $ac_var;} ;;
17844 esac ;;
17845 esac
17846 done
17848 (set) 2>&1 |
17849 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17850 *${as_nl}ac_space=\ *)
17851 # `set' does not quote correctly, so add quotes: double-quote
17852 # substitution turns \\\\ into \\, and sed turns \\ into \.
17853 sed -n \
17854 "s/'/'\\\\''/g;
17855 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17856 ;; #(
17858 # `set' quotes correctly as required by POSIX, so do not add quotes.
17859 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17861 esac |
17862 sort
17864 sed '
17865 /^ac_cv_env_/b end
17866 t clear
17867 :clear
17868 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17869 t end
17870 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17871 :end' >>confcache
17872 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17873 if test -w "$cache_file"; then
17874 if test "x$cache_file" != "x/dev/null"; then
17875 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17876 $as_echo "$as_me: updating cache $cache_file" >&6;}
17877 if test ! -f "$cache_file" || test -h "$cache_file"; then
17878 cat confcache >"$cache_file"
17879 else
17880 case $cache_file in #(
17881 */* | ?:*)
17882 mv -f confcache "$cache_file"$$ &&
17883 mv -f "$cache_file"$$ "$cache_file" ;; #(
17885 mv -f confcache "$cache_file" ;;
17886 esac
17889 else
17890 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17891 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17894 rm -f confcache
17896 # Check whether --enable-werror was given.
17897 if test "${enable_werror+set}" = set; then :
17898 enableval=$enable_werror;
17901 # Add -Wall -Werror if we are using GCC.
17902 if test "x$GCC" = "xyes"; then :
17903 XCFLAGS="$XCFLAGS -Wall"
17905 if test "x$enable_werror" != "xno" && test "x$GCC" = "xyes"; then :
17906 XCFLAGS="$XCFLAGS -Werror"
17909 XCFLAGS="$XCFLAGS $XPCFLAGS"
17911 # Add CET specific flags if CET is enabled
17912 # Check whether --enable-cet was given.
17913 if test "${enable_cet+set}" = set; then :
17914 enableval=$enable_cet;
17915 case "$enableval" in
17916 yes|no|auto) ;;
17917 *) as_fn_error $? "Unknown argument to enable/disable cet" "$LINENO" 5 ;;
17918 esac
17920 else
17921 enable_cet=auto
17925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5
17926 $as_echo_n "checking for CET support... " >&6; }
17928 # NB: Avoid nested save_CFLAGS and save_LDFLAGS.
17929 case "$host" in
17930 i[34567]86-*-linux* | x86_64-*-linux*)
17931 case "$enable_cet" in
17932 auto)
17933 # Check if target supports multi-byte NOPs
17934 # and if compiler and assembler support CET insn.
17935 cet_save_CFLAGS="$CFLAGS"
17936 CFLAGS="$CFLAGS -fcf-protection"
17937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17938 /* end confdefs.h. */
17941 main ()
17944 #if !defined(__SSE2__)
17945 #error target does not support multi-byte NOPs
17946 #else
17947 asm ("setssbsy");
17948 #endif
17951 return 0;
17953 _ACEOF
17954 if ac_fn_c_try_compile "$LINENO"; then :
17955 enable_cet=yes
17956 else
17957 enable_cet=no
17959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17960 CFLAGS="$cet_save_CFLAGS"
17962 yes)
17963 # Check if assembler supports CET.
17964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17965 /* end confdefs.h. */
17968 main ()
17970 asm ("setssbsy");
17972 return 0;
17974 _ACEOF
17975 if ac_fn_c_try_compile "$LINENO"; then :
17977 else
17978 as_fn_error $? "assembler with CET support is required for --enable-cet" "$LINENO" 5
17980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17982 esac
17985 enable_cet=no
17987 esac
17988 if test x$enable_cet = xyes; then
17989 CET_FLAGS="-fcf-protection -mshstk"
17990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17991 $as_echo "yes" >&6; }
17992 else
17993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17994 $as_echo "no" >&6; }
17997 XCFLAGS="$XCFLAGS $CET_FLAGS"
18003 if test ${multilib} = yes; then
18004 multilib_arg="--enable-multilib"
18005 else
18006 multilib_arg=
18009 # Set up the set of libraries that we need to link against for libitm.
18010 # Note that the GTM_SELF_SPECS in gcc.c will force -pthread for -fgnu-tm,
18011 # which will force linkage against -lpthread (or equivalent for the system).
18012 # That's not 100% ideal, but about the best we can do easily.
18013 if test $enable_shared = yes; then
18014 link_itm="-litm %{static: $LIBS}"
18015 else
18016 link_itm="-litm $LIBS"
18020 if test "$ARCH" = arm; then
18021 ARCH_ARM_TRUE=
18022 ARCH_ARM_FALSE='#'
18023 else
18024 ARCH_ARM_TRUE='#'
18025 ARCH_ARM_FALSE=
18028 if test "$ARCH" = x86; then
18029 ARCH_X86_TRUE=
18030 ARCH_X86_FALSE='#'
18031 else
18032 ARCH_X86_TRUE='#'
18033 ARCH_X86_FALSE=
18036 if test "$libitm_cv_as_avx" = yes; then
18037 ARCH_X86_AVX_TRUE=
18038 ARCH_X86_AVX_FALSE='#'
18039 else
18040 ARCH_X86_AVX_TRUE='#'
18041 ARCH_X86_AVX_FALSE=
18044 if test $enable_linux_futex = yes; then
18045 ARCH_FUTEX_TRUE=
18046 ARCH_FUTEX_FALSE='#'
18047 else
18048 ARCH_FUTEX_TRUE='#'
18049 ARCH_FUTEX_FALSE=
18053 # Determine what GCC version number to use in filesystem paths.
18055 get_gcc_base_ver="cat"
18057 # Check whether --with-gcc-major-version-only was given.
18058 if test "${with_gcc_major_version_only+set}" = set; then :
18059 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
18060 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
18068 ac_config_files="$ac_config_files Makefile testsuite/Makefile libitm.spec"
18070 cat >confcache <<\_ACEOF
18071 # This file is a shell script that caches the results of configure
18072 # tests run on this system so they can be shared between configure
18073 # scripts and configure runs, see configure's option --config-cache.
18074 # It is not useful on other systems. If it contains results you don't
18075 # want to keep, you may remove or edit it.
18077 # config.status only pays attention to the cache file if you give it
18078 # the --recheck option to rerun configure.
18080 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18081 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18082 # following values.
18084 _ACEOF
18086 # The following way of writing the cache mishandles newlines in values,
18087 # but we know of no workaround that is simple, portable, and efficient.
18088 # So, we kill variables containing newlines.
18089 # Ultrix sh set writes to stderr and can't be redirected directly,
18090 # and sets the high bit in the cache file unless we assign to the vars.
18092 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18093 eval ac_val=\$$ac_var
18094 case $ac_val in #(
18095 *${as_nl}*)
18096 case $ac_var in #(
18097 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18098 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18099 esac
18100 case $ac_var in #(
18101 _ | IFS | as_nl) ;; #(
18102 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18103 *) { eval $ac_var=; unset $ac_var;} ;;
18104 esac ;;
18105 esac
18106 done
18108 (set) 2>&1 |
18109 case $as_nl`(ac_space=' '; set) 2>&1` in #(
18110 *${as_nl}ac_space=\ *)
18111 # `set' does not quote correctly, so add quotes: double-quote
18112 # substitution turns \\\\ into \\, and sed turns \\ into \.
18113 sed -n \
18114 "s/'/'\\\\''/g;
18115 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18116 ;; #(
18118 # `set' quotes correctly as required by POSIX, so do not add quotes.
18119 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18121 esac |
18122 sort
18124 sed '
18125 /^ac_cv_env_/b end
18126 t clear
18127 :clear
18128 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18129 t end
18130 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18131 :end' >>confcache
18132 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18133 if test -w "$cache_file"; then
18134 if test "x$cache_file" != "x/dev/null"; then
18135 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18136 $as_echo "$as_me: updating cache $cache_file" >&6;}
18137 if test ! -f "$cache_file" || test -h "$cache_file"; then
18138 cat confcache >"$cache_file"
18139 else
18140 case $cache_file in #(
18141 */* | ?:*)
18142 mv -f confcache "$cache_file"$$ &&
18143 mv -f "$cache_file"$$ "$cache_file" ;; #(
18145 mv -f confcache "$cache_file" ;;
18146 esac
18149 else
18150 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18151 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18154 rm -f confcache
18156 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18157 # Let make expand exec_prefix.
18158 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18160 DEFS=-DHAVE_CONFIG_H
18162 ac_libobjs=
18163 ac_ltlibobjs=
18165 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18166 # 1. Remove the extension, and $U if already installed.
18167 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18168 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18169 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
18170 # will be set to the directory where LIBOBJS objects are built.
18171 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18172 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
18173 done
18174 LIBOBJS=$ac_libobjs
18176 LTLIBOBJS=$ac_ltlibobjs
18179 if test -z "${GENINSRC_TRUE}" && test -z "${GENINSRC_FALSE}"; then
18180 as_fn_error $? "conditional \"GENINSRC\" was never defined.
18181 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
18184 $as_echo_n "checking that generated files are newer than configure... " >&6; }
18185 if test -n "$am_sleep_pid"; then
18186 # Hide warnings about reused PIDs.
18187 wait $am_sleep_pid 2>/dev/null
18189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
18190 $as_echo "done" >&6; }
18191 if test -n "$EXEEXT"; then
18192 am__EXEEXT_TRUE=
18193 am__EXEEXT_FALSE='#'
18194 else
18195 am__EXEEXT_TRUE='#'
18196 am__EXEEXT_FALSE=
18199 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
18200 as_fn_error $? "conditional \"AMDEP\" was never defined.
18201 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18203 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
18204 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
18205 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18207 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
18208 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
18209 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18211 if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
18212 as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined.
18213 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18215 if test -z "${BUILD_INFO_TRUE}" && test -z "${BUILD_INFO_FALSE}"; then
18216 as_fn_error $? "conditional \"BUILD_INFO\" was never defined.
18217 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18219 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
18220 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
18221 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18224 if test -z "${HAVE_HWCAP_TRUE}" && test -z "${HAVE_HWCAP_FALSE}"; then
18225 as_fn_error $? "conditional \"HAVE_HWCAP\" was never defined.
18226 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18228 if test -z "${LIBITM_BUILD_VERSIONED_SHLIB_TRUE}" && test -z "${LIBITM_BUILD_VERSIONED_SHLIB_FALSE}"; then
18229 as_fn_error $? "conditional \"LIBITM_BUILD_VERSIONED_SHLIB\" was never defined.
18230 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18232 if test -z "${LIBITM_BUILD_VERSIONED_SHLIB_GNU_TRUE}" && test -z "${LIBITM_BUILD_VERSIONED_SHLIB_GNU_FALSE}"; then
18233 as_fn_error $? "conditional \"LIBITM_BUILD_VERSIONED_SHLIB_GNU\" was never defined.
18234 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18236 if test -z "${LIBITM_BUILD_VERSIONED_SHLIB_SUN_TRUE}" && test -z "${LIBITM_BUILD_VERSIONED_SHLIB_SUN_FALSE}"; then
18237 as_fn_error $? "conditional \"LIBITM_BUILD_VERSIONED_SHLIB_SUN\" was never defined.
18238 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18240 if test -z "${ARCH_ARM_TRUE}" && test -z "${ARCH_ARM_FALSE}"; then
18241 as_fn_error $? "conditional \"ARCH_ARM\" was never defined.
18242 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18244 if test -z "${ARCH_X86_TRUE}" && test -z "${ARCH_X86_FALSE}"; then
18245 as_fn_error $? "conditional \"ARCH_X86\" was never defined.
18246 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18248 if test -z "${ARCH_X86_AVX_TRUE}" && test -z "${ARCH_X86_AVX_FALSE}"; then
18249 as_fn_error $? "conditional \"ARCH_X86_AVX\" was never defined.
18250 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18252 if test -z "${ARCH_FUTEX_TRUE}" && test -z "${ARCH_FUTEX_FALSE}"; then
18253 as_fn_error $? "conditional \"ARCH_FUTEX\" was never defined.
18254 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18257 : "${CONFIG_STATUS=./config.status}"
18258 ac_write_fail=0
18259 ac_clean_files_save=$ac_clean_files
18260 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18261 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18262 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18263 as_write_fail=0
18264 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18265 #! $SHELL
18266 # Generated by $as_me.
18267 # Run this file to recreate the current configuration.
18268 # Compiler output produced by configure, useful for debugging
18269 # configure, is in config.log if it exists.
18271 debug=false
18272 ac_cs_recheck=false
18273 ac_cs_silent=false
18275 SHELL=\${CONFIG_SHELL-$SHELL}
18276 export SHELL
18277 _ASEOF
18278 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18279 ## -------------------- ##
18280 ## M4sh Initialization. ##
18281 ## -------------------- ##
18283 # Be more Bourne compatible
18284 DUALCASE=1; export DUALCASE # for MKS sh
18285 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18286 emulate sh
18287 NULLCMD=:
18288 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18289 # is contrary to our usage. Disable this feature.
18290 alias -g '${1+"$@"}'='"$@"'
18291 setopt NO_GLOB_SUBST
18292 else
18293 case `(set -o) 2>/dev/null` in #(
18294 *posix*) :
18295 set -o posix ;; #(
18296 *) :
18298 esac
18302 as_nl='
18304 export as_nl
18305 # Printing a long string crashes Solaris 7 /usr/bin/printf.
18306 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18307 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18308 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18309 # Prefer a ksh shell builtin over an external printf program on Solaris,
18310 # but without wasting forks for bash or zsh.
18311 if test -z "$BASH_VERSION$ZSH_VERSION" \
18312 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18313 as_echo='print -r --'
18314 as_echo_n='print -rn --'
18315 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18316 as_echo='printf %s\n'
18317 as_echo_n='printf %s'
18318 else
18319 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18320 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18321 as_echo_n='/usr/ucb/echo -n'
18322 else
18323 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18324 as_echo_n_body='eval
18325 arg=$1;
18326 case $arg in #(
18327 *"$as_nl"*)
18328 expr "X$arg" : "X\\(.*\\)$as_nl";
18329 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18330 esac;
18331 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18333 export as_echo_n_body
18334 as_echo_n='sh -c $as_echo_n_body as_echo'
18336 export as_echo_body
18337 as_echo='sh -c $as_echo_body as_echo'
18340 # The user is always right.
18341 if test "${PATH_SEPARATOR+set}" != set; then
18342 PATH_SEPARATOR=:
18343 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18344 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18345 PATH_SEPARATOR=';'
18350 # IFS
18351 # We need space, tab and new line, in precisely that order. Quoting is
18352 # there to prevent editors from complaining about space-tab.
18353 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
18354 # splitting by setting IFS to empty value.)
18355 IFS=" "" $as_nl"
18357 # Find who we are. Look in the path if we contain no directory separator.
18358 as_myself=
18359 case $0 in #((
18360 *[\\/]* ) as_myself=$0 ;;
18361 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18362 for as_dir in $PATH
18364 IFS=$as_save_IFS
18365 test -z "$as_dir" && as_dir=.
18366 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18367 done
18368 IFS=$as_save_IFS
18371 esac
18372 # We did not find ourselves, most probably we were run as `sh COMMAND'
18373 # in which case we are not to be found in the path.
18374 if test "x$as_myself" = x; then
18375 as_myself=$0
18377 if test ! -f "$as_myself"; then
18378 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18379 exit 1
18382 # Unset variables that we do not need and which cause bugs (e.g. in
18383 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
18384 # suppresses any "Segmentation fault" message there. '((' could
18385 # trigger a bug in pdksh 5.2.14.
18386 for as_var in BASH_ENV ENV MAIL MAILPATH
18387 do eval test x\${$as_var+set} = xset \
18388 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18389 done
18390 PS1='$ '
18391 PS2='> '
18392 PS4='+ '
18394 # NLS nuisances.
18395 LC_ALL=C
18396 export LC_ALL
18397 LANGUAGE=C
18398 export LANGUAGE
18400 # CDPATH.
18401 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18404 # as_fn_error STATUS ERROR [LINENO LOG_FD]
18405 # ----------------------------------------
18406 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18407 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18408 # script with STATUS, using 1 if that was 0.
18409 as_fn_error ()
18411 as_status=$1; test $as_status -eq 0 && as_status=1
18412 if test "$4"; then
18413 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18414 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
18416 $as_echo "$as_me: error: $2" >&2
18417 as_fn_exit $as_status
18418 } # as_fn_error
18421 # as_fn_set_status STATUS
18422 # -----------------------
18423 # Set $? to STATUS, without forking.
18424 as_fn_set_status ()
18426 return $1
18427 } # as_fn_set_status
18429 # as_fn_exit STATUS
18430 # -----------------
18431 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18432 as_fn_exit ()
18434 set +e
18435 as_fn_set_status $1
18436 exit $1
18437 } # as_fn_exit
18439 # as_fn_unset VAR
18440 # ---------------
18441 # Portably unset VAR.
18442 as_fn_unset ()
18444 { eval $1=; unset $1;}
18446 as_unset=as_fn_unset
18447 # as_fn_append VAR VALUE
18448 # ----------------------
18449 # Append the text in VALUE to the end of the definition contained in VAR. Take
18450 # advantage of any shell optimizations that allow amortized linear growth over
18451 # repeated appends, instead of the typical quadratic growth present in naive
18452 # implementations.
18453 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
18454 eval 'as_fn_append ()
18456 eval $1+=\$2
18458 else
18459 as_fn_append ()
18461 eval $1=\$$1\$2
18463 fi # as_fn_append
18465 # as_fn_arith ARG...
18466 # ------------------
18467 # Perform arithmetic evaluation on the ARGs, and store the result in the
18468 # global $as_val. Take advantage of shells that can avoid forks. The arguments
18469 # must be portable across $(()) and expr.
18470 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
18471 eval 'as_fn_arith ()
18473 as_val=$(( $* ))
18475 else
18476 as_fn_arith ()
18478 as_val=`expr "$@" || test $? -eq 1`
18480 fi # as_fn_arith
18483 if expr a : '\(a\)' >/dev/null 2>&1 &&
18484 test "X`expr 00001 : '.*\(...\)'`" = X001; then
18485 as_expr=expr
18486 else
18487 as_expr=false
18490 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18491 as_basename=basename
18492 else
18493 as_basename=false
18496 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18497 as_dirname=dirname
18498 else
18499 as_dirname=false
18502 as_me=`$as_basename -- "$0" ||
18503 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18504 X"$0" : 'X\(//\)$' \| \
18505 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18506 $as_echo X/"$0" |
18507 sed '/^.*\/\([^/][^/]*\)\/*$/{
18508 s//\1/
18511 /^X\/\(\/\/\)$/{
18512 s//\1/
18515 /^X\/\(\/\).*/{
18516 s//\1/
18519 s/.*/./; q'`
18521 # Avoid depending upon Character Ranges.
18522 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18523 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18524 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18525 as_cr_digits='0123456789'
18526 as_cr_alnum=$as_cr_Letters$as_cr_digits
18528 ECHO_C= ECHO_N= ECHO_T=
18529 case `echo -n x` in #(((((
18530 -n*)
18531 case `echo 'xy\c'` in
18532 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
18533 xy) ECHO_C='\c';;
18534 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
18535 ECHO_T=' ';;
18536 esac;;
18538 ECHO_N='-n';;
18539 esac
18541 rm -f conf$$ conf$$.exe conf$$.file
18542 if test -d conf$$.dir; then
18543 rm -f conf$$.dir/conf$$.file
18544 else
18545 rm -f conf$$.dir
18546 mkdir conf$$.dir 2>/dev/null
18548 if (echo >conf$$.file) 2>/dev/null; then
18549 if ln -s conf$$.file conf$$ 2>/dev/null; then
18550 as_ln_s='ln -s'
18551 # ... but there are two gotchas:
18552 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18553 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18554 # In both cases, we have to default to `cp -pR'.
18555 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18556 as_ln_s='cp -pR'
18557 elif ln conf$$.file conf$$ 2>/dev/null; then
18558 as_ln_s=ln
18559 else
18560 as_ln_s='cp -pR'
18562 else
18563 as_ln_s='cp -pR'
18565 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18566 rmdir conf$$.dir 2>/dev/null
18569 # as_fn_mkdir_p
18570 # -------------
18571 # Create "$as_dir" as a directory, including parents if necessary.
18572 as_fn_mkdir_p ()
18575 case $as_dir in #(
18576 -*) as_dir=./$as_dir;;
18577 esac
18578 test -d "$as_dir" || eval $as_mkdir_p || {
18579 as_dirs=
18580 while :; do
18581 case $as_dir in #(
18582 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18583 *) as_qdir=$as_dir;;
18584 esac
18585 as_dirs="'$as_qdir' $as_dirs"
18586 as_dir=`$as_dirname -- "$as_dir" ||
18587 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18588 X"$as_dir" : 'X\(//\)[^/]' \| \
18589 X"$as_dir" : 'X\(//\)$' \| \
18590 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18591 $as_echo X"$as_dir" |
18592 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18593 s//\1/
18596 /^X\(\/\/\)[^/].*/{
18597 s//\1/
18600 /^X\(\/\/\)$/{
18601 s//\1/
18604 /^X\(\/\).*/{
18605 s//\1/
18608 s/.*/./; q'`
18609 test -d "$as_dir" && break
18610 done
18611 test -z "$as_dirs" || eval "mkdir $as_dirs"
18612 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
18615 } # as_fn_mkdir_p
18616 if mkdir -p . 2>/dev/null; then
18617 as_mkdir_p='mkdir -p "$as_dir"'
18618 else
18619 test -d ./-p && rmdir ./-p
18620 as_mkdir_p=false
18624 # as_fn_executable_p FILE
18625 # -----------------------
18626 # Test if FILE is an executable regular file.
18627 as_fn_executable_p ()
18629 test -f "$1" && test -x "$1"
18630 } # as_fn_executable_p
18631 as_test_x='test -x'
18632 as_executable_p=as_fn_executable_p
18634 # Sed expression to map a string onto a valid CPP name.
18635 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18637 # Sed expression to map a string onto a valid variable name.
18638 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18641 exec 6>&1
18642 ## ----------------------------------- ##
18643 ## Main body of $CONFIG_STATUS script. ##
18644 ## ----------------------------------- ##
18645 _ASEOF
18646 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
18648 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18649 # Save the log message, to keep $0 and so on meaningful, and to
18650 # report actual input values of CONFIG_FILES etc. instead of their
18651 # values after options handling.
18652 ac_log="
18653 This file was extended by GNU TM Runtime Library $as_me 1.0, which was
18654 generated by GNU Autoconf 2.69. Invocation command line was
18656 CONFIG_FILES = $CONFIG_FILES
18657 CONFIG_HEADERS = $CONFIG_HEADERS
18658 CONFIG_LINKS = $CONFIG_LINKS
18659 CONFIG_COMMANDS = $CONFIG_COMMANDS
18660 $ $0 $@
18662 on `(hostname || uname -n) 2>/dev/null | sed 1q`
18665 _ACEOF
18667 case $ac_config_files in *"
18668 "*) set x $ac_config_files; shift; ac_config_files=$*;;
18669 esac
18671 case $ac_config_headers in *"
18672 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
18673 esac
18676 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18677 # Files that config.status was made for.
18678 config_files="$ac_config_files"
18679 config_headers="$ac_config_headers"
18680 config_commands="$ac_config_commands"
18682 _ACEOF
18684 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18685 ac_cs_usage="\
18686 \`$as_me' instantiates files and other configuration actions
18687 from templates according to the current configuration. Unless the files
18688 and actions are specified as TAGs, all are instantiated by default.
18690 Usage: $0 [OPTION]... [TAG]...
18692 -h, --help print this help, then exit
18693 -V, --version print version number and configuration settings, then exit
18694 --config print configuration, then exit
18695 -q, --quiet, --silent
18696 do not print progress messages
18697 -d, --debug don't remove temporary files
18698 --recheck update $as_me by reconfiguring in the same conditions
18699 --file=FILE[:TEMPLATE]
18700 instantiate the configuration file FILE
18701 --header=FILE[:TEMPLATE]
18702 instantiate the configuration header FILE
18704 Configuration files:
18705 $config_files
18707 Configuration headers:
18708 $config_headers
18710 Configuration commands:
18711 $config_commands
18713 Report bugs to the package provider.
18714 GNU TM Runtime Library home page: <http://www.gnu.org/software/libitm/>.
18715 General help using GNU software: <http://www.gnu.org/gethelp/>."
18717 _ACEOF
18718 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18719 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
18720 ac_cs_version="\\
18721 GNU TM Runtime Library config.status 1.0
18722 configured by $0, generated by GNU Autoconf 2.69,
18723 with options \\"\$ac_cs_config\\"
18725 Copyright (C) 2012 Free Software Foundation, Inc.
18726 This config.status script is free software; the Free Software Foundation
18727 gives unlimited permission to copy, distribute and modify it."
18729 ac_pwd='$ac_pwd'
18730 srcdir='$srcdir'
18731 INSTALL='$INSTALL'
18732 MKDIR_P='$MKDIR_P'
18733 AWK='$AWK'
18734 test -n "\$AWK" || AWK=awk
18735 _ACEOF
18737 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18738 # The default lists apply if the user does not specify any file.
18739 ac_need_defaults=:
18740 while test $# != 0
18742 case $1 in
18743 --*=?*)
18744 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18745 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18746 ac_shift=:
18748 --*=)
18749 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18750 ac_optarg=
18751 ac_shift=:
18754 ac_option=$1
18755 ac_optarg=$2
18756 ac_shift=shift
18758 esac
18760 case $ac_option in
18761 # Handling of the options.
18762 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18763 ac_cs_recheck=: ;;
18764 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18765 $as_echo "$ac_cs_version"; exit ;;
18766 --config | --confi | --conf | --con | --co | --c )
18767 $as_echo "$ac_cs_config"; exit ;;
18768 --debug | --debu | --deb | --de | --d | -d )
18769 debug=: ;;
18770 --file | --fil | --fi | --f )
18771 $ac_shift
18772 case $ac_optarg in
18773 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18774 '') as_fn_error $? "missing file argument" ;;
18775 esac
18776 as_fn_append CONFIG_FILES " '$ac_optarg'"
18777 ac_need_defaults=false;;
18778 --header | --heade | --head | --hea )
18779 $ac_shift
18780 case $ac_optarg in
18781 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18782 esac
18783 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
18784 ac_need_defaults=false;;
18785 --he | --h)
18786 # Conflict between --help and --header
18787 as_fn_error $? "ambiguous option: \`$1'
18788 Try \`$0 --help' for more information.";;
18789 --help | --hel | -h )
18790 $as_echo "$ac_cs_usage"; exit ;;
18791 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18792 | -silent | --silent | --silen | --sile | --sil | --si | --s)
18793 ac_cs_silent=: ;;
18795 # This is an error.
18796 -*) as_fn_error $? "unrecognized option: \`$1'
18797 Try \`$0 --help' for more information." ;;
18799 *) as_fn_append ac_config_targets " $1"
18800 ac_need_defaults=false ;;
18802 esac
18803 shift
18804 done
18806 ac_configure_extra_args=
18808 if $ac_cs_silent; then
18809 exec 6>/dev/null
18810 ac_configure_extra_args="$ac_configure_extra_args --silent"
18813 _ACEOF
18814 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18815 if \$ac_cs_recheck; then
18816 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18817 shift
18818 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18819 CONFIG_SHELL='$SHELL'
18820 export CONFIG_SHELL
18821 exec "\$@"
18824 _ACEOF
18825 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18826 exec 5>>config.log
18828 echo
18829 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18830 ## Running $as_me. ##
18831 _ASBOX
18832 $as_echo "$ac_log"
18833 } >&5
18835 _ACEOF
18836 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18838 # INIT-COMMANDS
18841 srcdir="$srcdir"
18842 host="$host"
18843 target="$target"
18844 with_multisubdir="$with_multisubdir"
18845 with_multisrctop="$with_multisrctop"
18846 with_target_subdir="$with_target_subdir"
18847 ac_configure_args="${multilib_arg} ${ac_configure_args}"
18848 multi_basedir="$multi_basedir"
18849 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
18850 CC="$CC"
18851 CXX="$CXX"
18852 GFORTRAN="$GFORTRAN"
18853 GDC="$GDC"
18854 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
18857 # The HP-UX ksh and POSIX shell print the target directory to stdout
18858 # if CDPATH is set.
18859 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18861 sed_quote_subst='$sed_quote_subst'
18862 double_quote_subst='$double_quote_subst'
18863 delay_variable_subst='$delay_variable_subst'
18864 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
18865 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
18866 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
18867 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
18868 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
18869 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
18870 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
18871 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
18872 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
18873 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
18874 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
18875 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
18876 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
18877 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
18878 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
18879 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
18880 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
18881 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
18882 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
18883 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
18884 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
18885 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
18886 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
18887 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
18888 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
18889 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
18890 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
18891 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
18892 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
18893 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
18894 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
18895 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
18896 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
18897 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
18898 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
18899 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
18900 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
18901 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18902 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18903 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
18904 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
18905 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
18906 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
18907 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
18908 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
18909 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
18910 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
18911 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
18912 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"`'
18913 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
18914 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
18915 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
18916 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
18917 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
18918 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
18919 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
18920 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
18921 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
18922 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
18923 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
18924 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
18925 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
18926 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
18927 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
18928 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18929 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
18930 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
18931 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
18932 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
18933 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
18934 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
18935 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18936 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
18937 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18938 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
18939 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18940 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
18941 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
18942 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
18943 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
18944 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
18945 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
18946 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
18947 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
18948 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
18949 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
18950 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
18951 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
18952 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
18953 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
18954 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
18955 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
18956 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
18957 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
18958 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
18959 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
18960 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
18961 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
18962 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
18963 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
18964 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
18965 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
18966 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
18967 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
18968 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
18969 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
18970 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
18971 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18972 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18973 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
18974 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
18975 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
18976 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
18977 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
18978 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
18979 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
18980 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
18981 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
18982 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
18983 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
18984 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
18985 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
18986 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
18987 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
18988 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
18989 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
18990 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
18991 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
18992 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18993 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18994 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
18995 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
18996 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
18997 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
18998 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
18999 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
19000 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
19001 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
19002 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
19003 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
19004 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
19005 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
19006 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19007 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19008 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19009 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19010 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19011 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19012 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
19013 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
19014 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
19015 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
19016 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
19017 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
19018 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
19019 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
19020 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
19021 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
19022 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
19023 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
19024 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
19025 fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
19026 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
19027 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19028 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
19029 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
19030 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19031 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
19032 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
19033 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
19034 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
19035 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
19036 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
19037 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
19038 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
19040 LTCC='$LTCC'
19041 LTCFLAGS='$LTCFLAGS'
19042 compiler='$compiler_DEFAULT'
19044 # A function that is used when there is no print builtin or printf.
19045 func_fallback_echo ()
19047 eval 'cat <<_LTECHO_EOF
19049 _LTECHO_EOF'
19052 # Quote evaled strings.
19053 for var in SHELL \
19054 ECHO \
19055 SED \
19056 GREP \
19057 EGREP \
19058 FGREP \
19059 LD \
19060 NM \
19061 LN_S \
19062 lt_SP2NL \
19063 lt_NL2SP \
19064 reload_flag \
19065 OBJDUMP \
19066 deplibs_check_method \
19067 file_magic_cmd \
19068 AR \
19069 AR_FLAGS \
19070 STRIP \
19071 RANLIB \
19072 CC \
19073 CFLAGS \
19074 compiler \
19075 lt_cv_sys_global_symbol_pipe \
19076 lt_cv_sys_global_symbol_to_cdecl \
19077 lt_cv_sys_global_symbol_to_c_name_address \
19078 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
19079 lt_prog_compiler_no_builtin_flag \
19080 lt_prog_compiler_wl \
19081 lt_prog_compiler_pic \
19082 lt_prog_compiler_static \
19083 lt_cv_prog_compiler_c_o \
19084 need_locks \
19085 DSYMUTIL \
19086 NMEDIT \
19087 LIPO \
19088 OTOOL \
19089 OTOOL64 \
19090 shrext_cmds \
19091 export_dynamic_flag_spec \
19092 whole_archive_flag_spec \
19093 compiler_needs_object \
19094 with_gnu_ld \
19095 allow_undefined_flag \
19096 no_undefined_flag \
19097 hardcode_libdir_flag_spec \
19098 hardcode_libdir_flag_spec_ld \
19099 hardcode_libdir_separator \
19100 fix_srcfile_path \
19101 exclude_expsyms \
19102 include_expsyms \
19103 file_list_spec \
19104 variables_saved_for_relink \
19105 libname_spec \
19106 library_names_spec \
19107 soname_spec \
19108 install_override_mode \
19109 finish_eval \
19110 old_striplib \
19111 striplib \
19112 compiler_lib_search_dirs \
19113 predep_objects \
19114 postdep_objects \
19115 predeps \
19116 postdeps \
19117 compiler_lib_search_path \
19118 LD_CXX \
19119 reload_flag_CXX \
19120 compiler_CXX \
19121 lt_prog_compiler_no_builtin_flag_CXX \
19122 lt_prog_compiler_wl_CXX \
19123 lt_prog_compiler_pic_CXX \
19124 lt_prog_compiler_static_CXX \
19125 lt_cv_prog_compiler_c_o_CXX \
19126 export_dynamic_flag_spec_CXX \
19127 whole_archive_flag_spec_CXX \
19128 compiler_needs_object_CXX \
19129 with_gnu_ld_CXX \
19130 allow_undefined_flag_CXX \
19131 no_undefined_flag_CXX \
19132 hardcode_libdir_flag_spec_CXX \
19133 hardcode_libdir_flag_spec_ld_CXX \
19134 hardcode_libdir_separator_CXX \
19135 fix_srcfile_path_CXX \
19136 exclude_expsyms_CXX \
19137 include_expsyms_CXX \
19138 file_list_spec_CXX \
19139 compiler_lib_search_dirs_CXX \
19140 predep_objects_CXX \
19141 postdep_objects_CXX \
19142 predeps_CXX \
19143 postdeps_CXX \
19144 compiler_lib_search_path_CXX; do
19145 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19146 *[\\\\\\\`\\"\\\$]*)
19147 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
19150 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19152 esac
19153 done
19155 # Double-quote double-evaled strings.
19156 for var in reload_cmds \
19157 old_postinstall_cmds \
19158 old_postuninstall_cmds \
19159 old_archive_cmds \
19160 extract_expsyms_cmds \
19161 old_archive_from_new_cmds \
19162 old_archive_from_expsyms_cmds \
19163 archive_cmds \
19164 archive_expsym_cmds \
19165 module_cmds \
19166 module_expsym_cmds \
19167 export_symbols_cmds \
19168 prelink_cmds \
19169 postinstall_cmds \
19170 postuninstall_cmds \
19171 finish_cmds \
19172 sys_lib_search_path_spec \
19173 sys_lib_dlsearch_path_spec \
19174 reload_cmds_CXX \
19175 old_archive_cmds_CXX \
19176 old_archive_from_new_cmds_CXX \
19177 old_archive_from_expsyms_cmds_CXX \
19178 archive_cmds_CXX \
19179 archive_expsym_cmds_CXX \
19180 module_cmds_CXX \
19181 module_expsym_cmds_CXX \
19182 export_symbols_cmds_CXX \
19183 prelink_cmds_CXX; do
19184 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19185 *[\\\\\\\`\\"\\\$]*)
19186 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
19189 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19191 esac
19192 done
19194 ac_aux_dir='$ac_aux_dir'
19195 xsi_shell='$xsi_shell'
19196 lt_shell_append='$lt_shell_append'
19198 # See if we are running on zsh, and set the options which allow our
19199 # commands through without removal of \ escapes INIT.
19200 if test -n "\${ZSH_VERSION+set}" ; then
19201 setopt NO_GLOB_SUBST
19205 PACKAGE='$PACKAGE'
19206 VERSION='$VERSION'
19207 TIMESTAMP='$TIMESTAMP'
19208 RM='$RM'
19209 ofile='$ofile'
19216 GCC="$GCC"
19217 CC="$CC"
19218 acx_cv_header_stdint="$acx_cv_header_stdint"
19219 acx_cv_type_int8_t="$acx_cv_type_int8_t"
19220 acx_cv_type_int16_t="$acx_cv_type_int16_t"
19221 acx_cv_type_int32_t="$acx_cv_type_int32_t"
19222 acx_cv_type_int64_t="$acx_cv_type_int64_t"
19223 acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
19224 ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
19225 ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
19226 ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
19227 ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
19228 ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
19229 ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
19230 ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
19231 ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
19234 _ACEOF
19236 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19238 # Handling of arguments.
19239 for ac_config_target in $ac_config_targets
19241 case $ac_config_target in
19242 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
19243 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
19244 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
19245 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
19246 "gstdint.h") CONFIG_COMMANDS="$CONFIG_COMMANDS gstdint.h" ;;
19247 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19248 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
19249 "libitm.spec") CONFIG_FILES="$CONFIG_FILES libitm.spec" ;;
19251 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19252 esac
19253 done
19256 # If the user did not use the arguments to specify the items to instantiate,
19257 # then the envvar interface is used. Set only those that are not.
19258 # We use the long form for the default assignment because of an extremely
19259 # bizarre bug on SunOS 4.1.3.
19260 if $ac_need_defaults; then
19261 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19262 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19263 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19266 # Have a temporary directory for convenience. Make it in the build tree
19267 # simply because there is no reason against having it here, and in addition,
19268 # creating and moving files from /tmp can sometimes cause problems.
19269 # Hook for its removal unless debugging.
19270 # Note that there is a small window in which the directory will not be cleaned:
19271 # after its creation but before its name has been assigned to `$tmp'.
19272 $debug ||
19274 tmp= ac_tmp=
19275 trap 'exit_status=$?
19276 : "${ac_tmp:=$tmp}"
19277 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19279 trap 'as_fn_exit 1' 1 2 13 15
19281 # Create a (secure) tmp directory for tmp files.
19284 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19285 test -d "$tmp"
19286 } ||
19288 tmp=./conf$$-$RANDOM
19289 (umask 077 && mkdir "$tmp")
19290 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
19291 ac_tmp=$tmp
19293 # Set up the scripts for CONFIG_FILES section.
19294 # No need to generate them if there are no CONFIG_FILES.
19295 # This happens for instance with `./config.status config.h'.
19296 if test -n "$CONFIG_FILES"; then
19299 ac_cr=`echo X | tr X '\015'`
19300 # On cygwin, bash can eat \r inside `` if the user requested igncr.
19301 # But we know of no other shell where ac_cr would be empty at this
19302 # point, so we can use a bashism as a fallback.
19303 if test "x$ac_cr" = x; then
19304 eval ac_cr=\$\'\\r\'
19306 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19307 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19308 ac_cs_awk_cr='\\r'
19309 else
19310 ac_cs_awk_cr=$ac_cr
19313 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
19314 _ACEOF
19318 echo "cat >conf$$subs.awk <<_ACEOF" &&
19319 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19320 echo "_ACEOF"
19321 } >conf$$subs.sh ||
19322 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19323 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19324 ac_delim='%!_!# '
19325 for ac_last_try in false false false false false :; do
19326 . ./conf$$subs.sh ||
19327 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19329 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19330 if test $ac_delim_n = $ac_delim_num; then
19331 break
19332 elif $ac_last_try; then
19333 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19334 else
19335 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19337 done
19338 rm -f conf$$subs.sh
19340 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19341 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
19342 _ACEOF
19343 sed -n '
19345 s/^/S["/; s/!.*/"]=/
19348 s/^[^!]*!//
19349 :repl
19350 t repl
19351 s/'"$ac_delim"'$//
19352 t delim
19355 s/\(.\{148\}\)..*/\1/
19356 t more1
19357 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19360 b repl
19361 :more1
19362 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19365 s/.\{148\}//
19366 t nl
19367 :delim
19369 s/\(.\{148\}\)..*/\1/
19370 t more2
19371 s/["\\]/\\&/g; s/^/"/; s/$/"/
19374 :more2
19375 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19378 s/.\{148\}//
19379 t delim
19380 ' <conf$$subs.awk | sed '
19381 /^[^""]/{
19383 s/\n//
19385 ' >>$CONFIG_STATUS || ac_write_fail=1
19386 rm -f conf$$subs.awk
19387 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19388 _ACAWK
19389 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
19390 for (key in S) S_is_set[key] = 1
19391 FS = "\a"
19395 line = $ 0
19396 nfields = split(line, field, "@")
19397 substed = 0
19398 len = length(field[1])
19399 for (i = 2; i < nfields; i++) {
19400 key = field[i]
19401 keylen = length(key)
19402 if (S_is_set[key]) {
19403 value = S[key]
19404 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19405 len += length(value) + length(field[++i])
19406 substed = 1
19407 } else
19408 len += 1 + keylen
19411 print line
19414 _ACAWK
19415 _ACEOF
19416 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19417 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19418 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19419 else
19421 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
19422 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
19423 _ACEOF
19425 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19426 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
19427 # trailing colons and then remove the whole line if VPATH becomes empty
19428 # (actually we leave an empty line to preserve line numbers).
19429 if test "x$srcdir" = x.; then
19430 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
19432 s///
19433 s/^/:/
19434 s/[ ]*$/:/
19435 s/:\$(srcdir):/:/g
19436 s/:\${srcdir}:/:/g
19437 s/:@srcdir@:/:/g
19438 s/^:*//
19439 s/:*$//
19441 s/\(=[ ]*\).*/\1/
19443 s/\n//
19444 s/^[^=]*=[ ]*$//
19448 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19449 fi # test -n "$CONFIG_FILES"
19451 # Set up the scripts for CONFIG_HEADERS section.
19452 # No need to generate them if there are no CONFIG_HEADERS.
19453 # This happens for instance with `./config.status Makefile'.
19454 if test -n "$CONFIG_HEADERS"; then
19455 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
19456 BEGIN {
19457 _ACEOF
19459 # Transform confdefs.h into an awk script `defines.awk', embedded as
19460 # here-document in config.status, that substitutes the proper values into
19461 # config.h.in to produce config.h.
19463 # Create a delimiter string that does not exist in confdefs.h, to ease
19464 # handling of long lines.
19465 ac_delim='%!_!# '
19466 for ac_last_try in false false :; do
19467 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
19468 if test -z "$ac_tt"; then
19469 break
19470 elif $ac_last_try; then
19471 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
19472 else
19473 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19475 done
19477 # For the awk script, D is an array of macro values keyed by name,
19478 # likewise P contains macro parameters if any. Preserve backslash
19479 # newline sequences.
19481 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19482 sed -n '
19483 s/.\{148\}/&'"$ac_delim"'/g
19484 t rset
19485 :rset
19486 s/^[ ]*#[ ]*define[ ][ ]*/ /
19487 t def
19489 :def
19490 s/\\$//
19491 t bsnl
19492 s/["\\]/\\&/g
19493 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19494 D["\1"]=" \3"/p
19495 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
19497 :bsnl
19498 s/["\\]/\\&/g
19499 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19500 D["\1"]=" \3\\\\\\n"\\/p
19501 t cont
19502 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
19503 t cont
19505 :cont
19507 s/.\{148\}/&'"$ac_delim"'/g
19508 t clear
19509 :clear
19510 s/\\$//
19511 t bsnlc
19512 s/["\\]/\\&/g; s/^/"/; s/$/"/p
19514 :bsnlc
19515 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
19516 b cont
19517 ' <confdefs.h | sed '
19518 s/'"$ac_delim"'/"\\\
19519 "/g' >>$CONFIG_STATUS || ac_write_fail=1
19521 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19522 for (key in D) D_is_set[key] = 1
19523 FS = "\a"
19525 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
19526 line = \$ 0
19527 split(line, arg, " ")
19528 if (arg[1] == "#") {
19529 defundef = arg[2]
19530 mac1 = arg[3]
19531 } else {
19532 defundef = substr(arg[1], 2)
19533 mac1 = arg[2]
19535 split(mac1, mac2, "(") #)
19536 macro = mac2[1]
19537 prefix = substr(line, 1, index(line, defundef) - 1)
19538 if (D_is_set[macro]) {
19539 # Preserve the white space surrounding the "#".
19540 print prefix "define", macro P[macro] D[macro]
19541 next
19542 } else {
19543 # Replace #undef with comments. This is necessary, for example,
19544 # in the case of _POSIX_SOURCE, which is predefined and required
19545 # on some systems where configure will not decide to define it.
19546 if (defundef == "undef") {
19547 print "/*", prefix defundef, macro, "*/"
19548 next
19552 { print }
19553 _ACAWK
19554 _ACEOF
19555 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19556 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
19557 fi # test -n "$CONFIG_HEADERS"
19560 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
19561 shift
19562 for ac_tag
19564 case $ac_tag in
19565 :[FHLC]) ac_mode=$ac_tag; continue;;
19566 esac
19567 case $ac_mode$ac_tag in
19568 :[FHL]*:*);;
19569 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
19570 :[FH]-) ac_tag=-:-;;
19571 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19572 esac
19573 ac_save_IFS=$IFS
19574 IFS=:
19575 set x $ac_tag
19576 IFS=$ac_save_IFS
19577 shift
19578 ac_file=$1
19579 shift
19581 case $ac_mode in
19582 :L) ac_source=$1;;
19583 :[FH])
19584 ac_file_inputs=
19585 for ac_f
19587 case $ac_f in
19588 -) ac_f="$ac_tmp/stdin";;
19589 *) # Look for the file first in the build tree, then in the source tree
19590 # (if the path is not absolute). The absolute path cannot be DOS-style,
19591 # because $ac_f cannot contain `:'.
19592 test -f "$ac_f" ||
19593 case $ac_f in
19594 [\\/$]*) false;;
19595 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19596 esac ||
19597 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
19598 esac
19599 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19600 as_fn_append ac_file_inputs " '$ac_f'"
19601 done
19603 # Let's still pretend it is `configure' which instantiates (i.e., don't
19604 # use $as_me), people would be surprised to read:
19605 # /* config.h. Generated by config.status. */
19606 configure_input='Generated from '`
19607 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19608 `' by configure.'
19609 if test x"$ac_file" != x-; then
19610 configure_input="$ac_file. $configure_input"
19611 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19612 $as_echo "$as_me: creating $ac_file" >&6;}
19614 # Neutralize special characters interpreted by sed in replacement strings.
19615 case $configure_input in #(
19616 *\&* | *\|* | *\\* )
19617 ac_sed_conf_input=`$as_echo "$configure_input" |
19618 sed 's/[\\\\&|]/\\\\&/g'`;; #(
19619 *) ac_sed_conf_input=$configure_input;;
19620 esac
19622 case $ac_tag in
19623 *:-:* | *:-) cat >"$ac_tmp/stdin" \
19624 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
19625 esac
19627 esac
19629 ac_dir=`$as_dirname -- "$ac_file" ||
19630 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19631 X"$ac_file" : 'X\(//\)[^/]' \| \
19632 X"$ac_file" : 'X\(//\)$' \| \
19633 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19634 $as_echo X"$ac_file" |
19635 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19636 s//\1/
19639 /^X\(\/\/\)[^/].*/{
19640 s//\1/
19643 /^X\(\/\/\)$/{
19644 s//\1/
19647 /^X\(\/\).*/{
19648 s//\1/
19651 s/.*/./; q'`
19652 as_dir="$ac_dir"; as_fn_mkdir_p
19653 ac_builddir=.
19655 case "$ac_dir" in
19656 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19658 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19659 # A ".." for each directory in $ac_dir_suffix.
19660 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19661 case $ac_top_builddir_sub in
19662 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19663 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19664 esac ;;
19665 esac
19666 ac_abs_top_builddir=$ac_pwd
19667 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19668 # for backward compatibility:
19669 ac_top_builddir=$ac_top_build_prefix
19671 case $srcdir in
19672 .) # We are building in place.
19673 ac_srcdir=.
19674 ac_top_srcdir=$ac_top_builddir_sub
19675 ac_abs_top_srcdir=$ac_pwd ;;
19676 [\\/]* | ?:[\\/]* ) # Absolute name.
19677 ac_srcdir=$srcdir$ac_dir_suffix;
19678 ac_top_srcdir=$srcdir
19679 ac_abs_top_srcdir=$srcdir ;;
19680 *) # Relative name.
19681 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19682 ac_top_srcdir=$ac_top_build_prefix$srcdir
19683 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19684 esac
19685 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19688 case $ac_mode in
19691 # CONFIG_FILE
19694 case $INSTALL in
19695 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19696 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19697 esac
19698 ac_MKDIR_P=$MKDIR_P
19699 case $MKDIR_P in
19700 [\\/$]* | ?:[\\/]* ) ;;
19701 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
19702 esac
19703 _ACEOF
19705 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19706 # If the template does not know about datarootdir, expand it.
19707 # FIXME: This hack should be removed a few years after 2.60.
19708 ac_datarootdir_hack=; ac_datarootdir_seen=
19709 ac_sed_dataroot='
19710 /datarootdir/ {
19714 /@datadir@/p
19715 /@docdir@/p
19716 /@infodir@/p
19717 /@localedir@/p
19718 /@mandir@/p'
19719 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19720 *datarootdir*) ac_datarootdir_seen=yes;;
19721 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19722 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19723 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19724 _ACEOF
19725 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19726 ac_datarootdir_hack='
19727 s&@datadir@&$datadir&g
19728 s&@docdir@&$docdir&g
19729 s&@infodir@&$infodir&g
19730 s&@localedir@&$localedir&g
19731 s&@mandir@&$mandir&g
19732 s&\\\${datarootdir}&$datarootdir&g' ;;
19733 esac
19734 _ACEOF
19736 # Neutralize VPATH when `$srcdir' = `.'.
19737 # Shell code in configure.ac might set extrasub.
19738 # FIXME: do we really want to maintain this feature?
19739 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19740 ac_sed_extra="$ac_vpsub
19741 $extrasub
19742 _ACEOF
19743 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19745 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19746 s|@configure_input@|$ac_sed_conf_input|;t t
19747 s&@top_builddir@&$ac_top_builddir_sub&;t t
19748 s&@top_build_prefix@&$ac_top_build_prefix&;t t
19749 s&@srcdir@&$ac_srcdir&;t t
19750 s&@abs_srcdir@&$ac_abs_srcdir&;t t
19751 s&@top_srcdir@&$ac_top_srcdir&;t t
19752 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19753 s&@builddir@&$ac_builddir&;t t
19754 s&@abs_builddir@&$ac_abs_builddir&;t t
19755 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19756 s&@INSTALL@&$ac_INSTALL&;t t
19757 s&@MKDIR_P@&$ac_MKDIR_P&;t t
19758 $ac_datarootdir_hack
19760 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
19761 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19763 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19764 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
19765 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
19766 "$ac_tmp/out"`; test -z "$ac_out"; } &&
19767 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19768 which seems to be undefined. Please make sure it is defined" >&5
19769 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19770 which seems to be undefined. Please make sure it is defined" >&2;}
19772 rm -f "$ac_tmp/stdin"
19773 case $ac_file in
19774 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
19775 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
19776 esac \
19777 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19781 # CONFIG_HEADER
19783 if test x"$ac_file" != x-; then
19785 $as_echo "/* $configure_input */" \
19786 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
19787 } >"$ac_tmp/config.h" \
19788 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19789 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
19790 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
19791 $as_echo "$as_me: $ac_file is unchanged" >&6;}
19792 else
19793 rm -f "$ac_file"
19794 mv "$ac_tmp/config.h" "$ac_file" \
19795 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19797 else
19798 $as_echo "/* $configure_input */" \
19799 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
19800 || as_fn_error $? "could not create -" "$LINENO" 5
19802 # Compute "$ac_file"'s index in $config_headers.
19803 _am_arg="$ac_file"
19804 _am_stamp_count=1
19805 for _am_header in $config_headers :; do
19806 case $_am_header in
19807 $_am_arg | $_am_arg:* )
19808 break ;;
19810 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
19811 esac
19812 done
19813 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
19814 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19815 X"$_am_arg" : 'X\(//\)[^/]' \| \
19816 X"$_am_arg" : 'X\(//\)$' \| \
19817 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
19818 $as_echo X"$_am_arg" |
19819 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19820 s//\1/
19823 /^X\(\/\/\)[^/].*/{
19824 s//\1/
19827 /^X\(\/\/\)$/{
19828 s//\1/
19831 /^X\(\/\).*/{
19832 s//\1/
19835 s/.*/./; q'`/stamp-h$_am_stamp_count
19838 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
19839 $as_echo "$as_me: executing $ac_file commands" >&6;}
19841 esac
19844 case $ac_file$ac_mode in
19845 "default-1":C)
19846 # Only add multilib support code if we just rebuilt the top-level
19847 # Makefile.
19848 case " $CONFIG_FILES " in
19849 *" Makefile "*)
19850 ac_file=Makefile . ${multi_basedir}/config-ml.in
19852 esac ;;
19853 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
19854 # Older Autoconf quotes --file arguments for eval, but not when files
19855 # are listed without --file. Let's play safe and only enable the eval
19856 # if we detect the quoting.
19857 case $CONFIG_FILES in
19858 *\'*) eval set x "$CONFIG_FILES" ;;
19859 *) set x $CONFIG_FILES ;;
19860 esac
19861 shift
19862 for mf
19864 # Strip MF so we end up with the name of the file.
19865 mf=`echo "$mf" | sed -e 's/:.*$//'`
19866 # Check whether this is an Automake generated Makefile or not.
19867 # We used to match only the files named 'Makefile.in', but
19868 # some people rename them; so instead we look at the file content.
19869 # Grep'ing the first line is not enough: some people post-process
19870 # each Makefile.in and add a new line on top of each file to say so.
19871 # Grep'ing the whole file is not good either: AIX grep has a line
19872 # limit of 2048, but all sed's we know have understand at least 4000.
19873 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
19874 dirpart=`$as_dirname -- "$mf" ||
19875 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19876 X"$mf" : 'X\(//\)[^/]' \| \
19877 X"$mf" : 'X\(//\)$' \| \
19878 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
19879 $as_echo X"$mf" |
19880 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19881 s//\1/
19884 /^X\(\/\/\)[^/].*/{
19885 s//\1/
19888 /^X\(\/\/\)$/{
19889 s//\1/
19892 /^X\(\/\).*/{
19893 s//\1/
19896 s/.*/./; q'`
19897 else
19898 continue
19900 # Extract the definition of DEPDIR, am__include, and am__quote
19901 # from the Makefile without running 'make'.
19902 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
19903 test -z "$DEPDIR" && continue
19904 am__include=`sed -n 's/^am__include = //p' < "$mf"`
19905 test -z "$am__include" && continue
19906 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
19907 # Find all dependency output files, they are included files with
19908 # $(DEPDIR) in their names. We invoke sed twice because it is the
19909 # simplest approach to changing $(DEPDIR) to its actual value in the
19910 # expansion.
19911 for file in `sed -n "
19912 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
19913 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
19914 # Make sure the directory exists.
19915 test -f "$dirpart/$file" && continue
19916 fdir=`$as_dirname -- "$file" ||
19917 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19918 X"$file" : 'X\(//\)[^/]' \| \
19919 X"$file" : 'X\(//\)$' \| \
19920 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
19921 $as_echo X"$file" |
19922 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19923 s//\1/
19926 /^X\(\/\/\)[^/].*/{
19927 s//\1/
19930 /^X\(\/\/\)$/{
19931 s//\1/
19934 /^X\(\/\).*/{
19935 s//\1/
19938 s/.*/./; q'`
19939 as_dir=$dirpart/$fdir; as_fn_mkdir_p
19940 # echo "creating $dirpart/$file"
19941 echo '# dummy' > "$dirpart/$file"
19942 done
19943 done
19946 "libtool":C)
19948 # See if we are running on zsh, and set the options which allow our
19949 # commands through without removal of \ escapes.
19950 if test -n "${ZSH_VERSION+set}" ; then
19951 setopt NO_GLOB_SUBST
19954 cfgfile="${ofile}T"
19955 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
19956 $RM "$cfgfile"
19958 cat <<_LT_EOF >> "$cfgfile"
19959 #! $SHELL
19961 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
19962 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
19963 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19964 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
19966 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
19967 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
19968 # Written by Gordon Matzigkeit, 1996
19970 # This file is part of GNU Libtool.
19972 # GNU Libtool is free software; you can redistribute it and/or
19973 # modify it under the terms of the GNU General Public License as
19974 # published by the Free Software Foundation; either version 2 of
19975 # the License, or (at your option) any later version.
19977 # As a special exception to the GNU General Public License,
19978 # if you distribute this file as part of a program or library that
19979 # is built using GNU Libtool, you may include this file under the
19980 # same distribution terms that you use for the rest of that program.
19982 # GNU Libtool is distributed in the hope that it will be useful,
19983 # but WITHOUT ANY WARRANTY; without even the implied warranty of
19984 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19985 # GNU General Public License for more details.
19987 # You should have received a copy of the GNU General Public License
19988 # along with GNU Libtool; see the file COPYING. If not, a copy
19989 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
19990 # obtained by writing to the Free Software Foundation, Inc.,
19991 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19994 # The names of the tagged configurations supported by this script.
19995 available_tags="CXX "
19997 # ### BEGIN LIBTOOL CONFIG
19999 # Which release of libtool.m4 was used?
20000 macro_version=$macro_version
20001 macro_revision=$macro_revision
20003 # Whether or not to build shared libraries.
20004 build_libtool_libs=$enable_shared
20006 # Whether or not to build static libraries.
20007 build_old_libs=$enable_static
20009 # What type of objects to build.
20010 pic_mode=$pic_mode
20012 # Whether or not to optimize for fast installation.
20013 fast_install=$enable_fast_install
20015 # Shell to use when invoking shell scripts.
20016 SHELL=$lt_SHELL
20018 # An echo program that protects backslashes.
20019 ECHO=$lt_ECHO
20021 # The host system.
20022 host_alias=$host_alias
20023 host=$host
20024 host_os=$host_os
20026 # The build system.
20027 build_alias=$build_alias
20028 build=$build
20029 build_os=$build_os
20031 # A sed program that does not truncate output.
20032 SED=$lt_SED
20034 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
20035 Xsed="\$SED -e 1s/^X//"
20037 # A grep program that handles long lines.
20038 GREP=$lt_GREP
20040 # An ERE matcher.
20041 EGREP=$lt_EGREP
20043 # A literal string matcher.
20044 FGREP=$lt_FGREP
20046 # A BSD- or MS-compatible name lister.
20047 NM=$lt_NM
20049 # Whether we need soft or hard links.
20050 LN_S=$lt_LN_S
20052 # What is the maximum length of a command?
20053 max_cmd_len=$max_cmd_len
20055 # Object file suffix (normally "o").
20056 objext=$ac_objext
20058 # Executable file suffix (normally "").
20059 exeext=$exeext
20061 # whether the shell understands "unset".
20062 lt_unset=$lt_unset
20064 # turn spaces into newlines.
20065 SP2NL=$lt_lt_SP2NL
20067 # turn newlines into spaces.
20068 NL2SP=$lt_lt_NL2SP
20070 # An object symbol dumper.
20071 OBJDUMP=$lt_OBJDUMP
20073 # Method to check whether dependent libraries are shared objects.
20074 deplibs_check_method=$lt_deplibs_check_method
20076 # Command to use when deplibs_check_method == "file_magic".
20077 file_magic_cmd=$lt_file_magic_cmd
20079 # The archiver.
20080 AR=$lt_AR
20081 AR_FLAGS=$lt_AR_FLAGS
20083 # A symbol stripping program.
20084 STRIP=$lt_STRIP
20086 # Commands used to install an old-style archive.
20087 RANLIB=$lt_RANLIB
20088 old_postinstall_cmds=$lt_old_postinstall_cmds
20089 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20091 # Whether to use a lock for old archive extraction.
20092 lock_old_archive_extraction=$lock_old_archive_extraction
20094 # A C compiler.
20095 LTCC=$lt_CC
20097 # LTCC compiler flags.
20098 LTCFLAGS=$lt_CFLAGS
20100 # Take the output of nm and produce a listing of raw symbols and C names.
20101 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20103 # Transform the output of nm in a proper C declaration.
20104 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20106 # Transform the output of nm in a C name address pair.
20107 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20109 # Transform the output of nm in a C name address pair when lib prefix is needed.
20110 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
20112 # The name of the directory that contains temporary libtool files.
20113 objdir=$objdir
20115 # Used to examine libraries when file_magic_cmd begins with "file".
20116 MAGIC_CMD=$MAGIC_CMD
20118 # Must we lock files when doing compilation?
20119 need_locks=$lt_need_locks
20121 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
20122 DSYMUTIL=$lt_DSYMUTIL
20124 # Tool to change global to local symbols on Mac OS X.
20125 NMEDIT=$lt_NMEDIT
20127 # Tool to manipulate fat objects and archives on Mac OS X.
20128 LIPO=$lt_LIPO
20130 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
20131 OTOOL=$lt_OTOOL
20133 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
20134 OTOOL64=$lt_OTOOL64
20136 # Old archive suffix (normally "a").
20137 libext=$libext
20139 # Shared library suffix (normally ".so").
20140 shrext_cmds=$lt_shrext_cmds
20142 # The commands to extract the exported symbol list from a shared archive.
20143 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20145 # Variables whose values should be saved in libtool wrapper scripts and
20146 # restored at link time.
20147 variables_saved_for_relink=$lt_variables_saved_for_relink
20149 # Do we need the "lib" prefix for modules?
20150 need_lib_prefix=$need_lib_prefix
20152 # Do we need a version for libraries?
20153 need_version=$need_version
20155 # Library versioning type.
20156 version_type=$version_type
20158 # Shared library runtime path variable.
20159 runpath_var=$runpath_var
20161 # Shared library path variable.
20162 shlibpath_var=$shlibpath_var
20164 # Is shlibpath searched before the hard-coded library search path?
20165 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20167 # Format of library name prefix.
20168 libname_spec=$lt_libname_spec
20170 # List of archive names. First name is the real one, the rest are links.
20171 # The last name is the one that the linker finds with -lNAME
20172 library_names_spec=$lt_library_names_spec
20174 # The coded name of the library, if different from the real name.
20175 soname_spec=$lt_soname_spec
20177 # Permission mode override for installation of shared libraries.
20178 install_override_mode=$lt_install_override_mode
20180 # Command to use after installation of a shared archive.
20181 postinstall_cmds=$lt_postinstall_cmds
20183 # Command to use after uninstallation of a shared archive.
20184 postuninstall_cmds=$lt_postuninstall_cmds
20186 # Commands used to finish a libtool library installation in a directory.
20187 finish_cmds=$lt_finish_cmds
20189 # As "finish_cmds", except a single script fragment to be evaled but
20190 # not shown.
20191 finish_eval=$lt_finish_eval
20193 # Whether we should hardcode library paths into libraries.
20194 hardcode_into_libs=$hardcode_into_libs
20196 # Compile-time system search path for libraries.
20197 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20199 # Run-time system search path for libraries.
20200 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20202 # Whether dlopen is supported.
20203 dlopen_support=$enable_dlopen
20205 # Whether dlopen of programs is supported.
20206 dlopen_self=$enable_dlopen_self
20208 # Whether dlopen of statically linked programs is supported.
20209 dlopen_self_static=$enable_dlopen_self_static
20211 # Commands to strip libraries.
20212 old_striplib=$lt_old_striplib
20213 striplib=$lt_striplib
20216 # The linker used to build libraries.
20217 LD=$lt_LD
20219 # How to create reloadable object files.
20220 reload_flag=$lt_reload_flag
20221 reload_cmds=$lt_reload_cmds
20223 # Commands used to build an old-style archive.
20224 old_archive_cmds=$lt_old_archive_cmds
20226 # A language specific compiler.
20227 CC=$lt_compiler
20229 # Is the compiler the GNU compiler?
20230 with_gcc=$GCC
20232 # Compiler flag to turn off builtin functions.
20233 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
20235 # How to pass a linker flag through the compiler.
20236 wl=$lt_lt_prog_compiler_wl
20238 # Additional compiler flags for building library objects.
20239 pic_flag=$lt_lt_prog_compiler_pic
20241 # Compiler flag to prevent dynamic linking.
20242 link_static_flag=$lt_lt_prog_compiler_static
20244 # Does compiler simultaneously support -c and -o options?
20245 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
20247 # Whether or not to add -lc for building shared libraries.
20248 build_libtool_need_lc=$archive_cmds_need_lc
20250 # Whether or not to disallow shared libs when runtime libs are static.
20251 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
20253 # Compiler flag to allow reflexive dlopens.
20254 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
20256 # Compiler flag to generate shared objects directly from archives.
20257 whole_archive_flag_spec=$lt_whole_archive_flag_spec
20259 # Whether the compiler copes with passing no objects directly.
20260 compiler_needs_object=$lt_compiler_needs_object
20262 # Create an old-style archive from a shared archive.
20263 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
20265 # Create a temporary old-style archive to link instead of a shared archive.
20266 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
20268 # Commands used to build a shared archive.
20269 archive_cmds=$lt_archive_cmds
20270 archive_expsym_cmds=$lt_archive_expsym_cmds
20272 # Commands used to build a loadable module if different from building
20273 # a shared archive.
20274 module_cmds=$lt_module_cmds
20275 module_expsym_cmds=$lt_module_expsym_cmds
20277 # Whether we are building with GNU ld or not.
20278 with_gnu_ld=$lt_with_gnu_ld
20280 # Flag that allows shared libraries with undefined symbols to be built.
20281 allow_undefined_flag=$lt_allow_undefined_flag
20283 # Flag that enforces no undefined symbols.
20284 no_undefined_flag=$lt_no_undefined_flag
20286 # Flag to hardcode \$libdir into a binary during linking.
20287 # This must work even if \$libdir does not exist
20288 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
20290 # If ld is used when linking, flag to hardcode \$libdir into a binary
20291 # during linking. This must work even if \$libdir does not exist.
20292 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
20294 # Whether we need a single "-rpath" flag with a separated argument.
20295 hardcode_libdir_separator=$lt_hardcode_libdir_separator
20297 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20298 # DIR into the resulting binary.
20299 hardcode_direct=$hardcode_direct
20301 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20302 # DIR into the resulting binary and the resulting library dependency is
20303 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
20304 # library is relocated.
20305 hardcode_direct_absolute=$hardcode_direct_absolute
20307 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20308 # into the resulting binary.
20309 hardcode_minus_L=$hardcode_minus_L
20311 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20312 # into the resulting binary.
20313 hardcode_shlibpath_var=$hardcode_shlibpath_var
20315 # Set to "yes" if building a shared library automatically hardcodes DIR
20316 # into the library and all subsequent libraries and executables linked
20317 # against it.
20318 hardcode_automatic=$hardcode_automatic
20320 # Set to yes if linker adds runtime paths of dependent libraries
20321 # to runtime path list.
20322 inherit_rpath=$inherit_rpath
20324 # Whether libtool must link a program against all its dependency libraries.
20325 link_all_deplibs=$link_all_deplibs
20327 # Fix the shell variable \$srcfile for the compiler.
20328 fix_srcfile_path=$lt_fix_srcfile_path
20330 # Set to "yes" if exported symbols are required.
20331 always_export_symbols=$always_export_symbols
20333 # The commands to list exported symbols.
20334 export_symbols_cmds=$lt_export_symbols_cmds
20336 # Symbols that should not be listed in the preloaded symbols.
20337 exclude_expsyms=$lt_exclude_expsyms
20339 # Symbols that must always be exported.
20340 include_expsyms=$lt_include_expsyms
20342 # Commands necessary for linking programs (against libraries) with templates.
20343 prelink_cmds=$lt_prelink_cmds
20345 # Specify filename containing input files.
20346 file_list_spec=$lt_file_list_spec
20348 # How to hardcode a shared library path into an executable.
20349 hardcode_action=$hardcode_action
20351 # The directories searched by this compiler when creating a shared library.
20352 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
20354 # Dependencies to place before and after the objects being linked to
20355 # create a shared library.
20356 predep_objects=$lt_predep_objects
20357 postdep_objects=$lt_postdep_objects
20358 predeps=$lt_predeps
20359 postdeps=$lt_postdeps
20361 # The library search path used internally by the compiler when linking
20362 # a shared library.
20363 compiler_lib_search_path=$lt_compiler_lib_search_path
20365 # ### END LIBTOOL CONFIG
20367 _LT_EOF
20369 case $host_os in
20370 aix3*)
20371 cat <<\_LT_EOF >> "$cfgfile"
20372 # AIX sometimes has problems with the GCC collect2 program. For some
20373 # reason, if we set the COLLECT_NAMES environment variable, the problems
20374 # vanish in a puff of smoke.
20375 if test "X${COLLECT_NAMES+set}" != Xset; then
20376 COLLECT_NAMES=
20377 export COLLECT_NAMES
20379 _LT_EOF
20381 esac
20384 ltmain="$ac_aux_dir/ltmain.sh"
20387 # We use sed instead of cat because bash on DJGPP gets confused if
20388 # if finds mixed CR/LF and LF-only lines. Since sed operates in
20389 # text mode, it properly converts lines to CR/LF. This bash problem
20390 # is reportedly fixed, but why not run on old versions too?
20391 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
20392 || (rm -f "$cfgfile"; exit 1)
20394 case $xsi_shell in
20395 yes)
20396 cat << \_LT_EOF >> "$cfgfile"
20398 # func_dirname file append nondir_replacement
20399 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
20400 # otherwise set result to NONDIR_REPLACEMENT.
20401 func_dirname ()
20403 case ${1} in
20404 */*) func_dirname_result="${1%/*}${2}" ;;
20405 * ) func_dirname_result="${3}" ;;
20406 esac
20409 # func_basename file
20410 func_basename ()
20412 func_basename_result="${1##*/}"
20415 # func_dirname_and_basename file append nondir_replacement
20416 # perform func_basename and func_dirname in a single function
20417 # call:
20418 # dirname: Compute the dirname of FILE. If nonempty,
20419 # add APPEND to the result, otherwise set result
20420 # to NONDIR_REPLACEMENT.
20421 # value returned in "$func_dirname_result"
20422 # basename: Compute filename of FILE.
20423 # value retuned in "$func_basename_result"
20424 # Implementation must be kept synchronized with func_dirname
20425 # and func_basename. For efficiency, we do not delegate to
20426 # those functions but instead duplicate the functionality here.
20427 func_dirname_and_basename ()
20429 case ${1} in
20430 */*) func_dirname_result="${1%/*}${2}" ;;
20431 * ) func_dirname_result="${3}" ;;
20432 esac
20433 func_basename_result="${1##*/}"
20436 # func_stripname prefix suffix name
20437 # strip PREFIX and SUFFIX off of NAME.
20438 # PREFIX and SUFFIX must not contain globbing or regex special
20439 # characters, hashes, percent signs, but SUFFIX may contain a leading
20440 # dot (in which case that matches only a dot).
20441 func_stripname ()
20443 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
20444 # positional parameters, so assign one to ordinary parameter first.
20445 func_stripname_result=${3}
20446 func_stripname_result=${func_stripname_result#"${1}"}
20447 func_stripname_result=${func_stripname_result%"${2}"}
20450 # func_opt_split
20451 func_opt_split ()
20453 func_opt_split_opt=${1%%=*}
20454 func_opt_split_arg=${1#*=}
20457 # func_lo2o object
20458 func_lo2o ()
20460 case ${1} in
20461 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
20462 *) func_lo2o_result=${1} ;;
20463 esac
20466 # func_xform libobj-or-source
20467 func_xform ()
20469 func_xform_result=${1%.*}.lo
20472 # func_arith arithmetic-term...
20473 func_arith ()
20475 func_arith_result=$(( $* ))
20478 # func_len string
20479 # STRING may not start with a hyphen.
20480 func_len ()
20482 func_len_result=${#1}
20485 _LT_EOF
20487 *) # Bourne compatible functions.
20488 cat << \_LT_EOF >> "$cfgfile"
20490 # func_dirname file append nondir_replacement
20491 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
20492 # otherwise set result to NONDIR_REPLACEMENT.
20493 func_dirname ()
20495 # Extract subdirectory from the argument.
20496 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
20497 if test "X$func_dirname_result" = "X${1}"; then
20498 func_dirname_result="${3}"
20499 else
20500 func_dirname_result="$func_dirname_result${2}"
20504 # func_basename file
20505 func_basename ()
20507 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
20511 # func_stripname prefix suffix name
20512 # strip PREFIX and SUFFIX off of NAME.
20513 # PREFIX and SUFFIX must not contain globbing or regex special
20514 # characters, hashes, percent signs, but SUFFIX may contain a leading
20515 # dot (in which case that matches only a dot).
20516 # func_strip_suffix prefix name
20517 func_stripname ()
20519 case ${2} in
20520 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
20521 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
20522 esac
20525 # sed scripts:
20526 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
20527 my_sed_long_arg='1s/^-[^=]*=//'
20529 # func_opt_split
20530 func_opt_split ()
20532 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
20533 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
20536 # func_lo2o object
20537 func_lo2o ()
20539 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
20542 # func_xform libobj-or-source
20543 func_xform ()
20545 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
20548 # func_arith arithmetic-term...
20549 func_arith ()
20551 func_arith_result=`expr "$@"`
20554 # func_len string
20555 # STRING may not start with a hyphen.
20556 func_len ()
20558 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
20561 _LT_EOF
20562 esac
20564 case $lt_shell_append in
20565 yes)
20566 cat << \_LT_EOF >> "$cfgfile"
20568 # func_append var value
20569 # Append VALUE to the end of shell variable VAR.
20570 func_append ()
20572 eval "$1+=\$2"
20574 _LT_EOF
20577 cat << \_LT_EOF >> "$cfgfile"
20579 # func_append var value
20580 # Append VALUE to the end of shell variable VAR.
20581 func_append ()
20583 eval "$1=\$$1\$2"
20586 _LT_EOF
20588 esac
20591 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
20592 || (rm -f "$cfgfile"; exit 1)
20594 mv -f "$cfgfile" "$ofile" ||
20595 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
20596 chmod +x "$ofile"
20599 cat <<_LT_EOF >> "$ofile"
20601 # ### BEGIN LIBTOOL TAG CONFIG: CXX
20603 # The linker used to build libraries.
20604 LD=$lt_LD_CXX
20606 # How to create reloadable object files.
20607 reload_flag=$lt_reload_flag_CXX
20608 reload_cmds=$lt_reload_cmds_CXX
20610 # Commands used to build an old-style archive.
20611 old_archive_cmds=$lt_old_archive_cmds_CXX
20613 # A language specific compiler.
20614 CC=$lt_compiler_CXX
20616 # Is the compiler the GNU compiler?
20617 with_gcc=$GCC_CXX
20619 # Compiler flag to turn off builtin functions.
20620 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
20622 # How to pass a linker flag through the compiler.
20623 wl=$lt_lt_prog_compiler_wl_CXX
20625 # Additional compiler flags for building library objects.
20626 pic_flag=$lt_lt_prog_compiler_pic_CXX
20628 # Compiler flag to prevent dynamic linking.
20629 link_static_flag=$lt_lt_prog_compiler_static_CXX
20631 # Does compiler simultaneously support -c and -o options?
20632 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
20634 # Whether or not to add -lc for building shared libraries.
20635 build_libtool_need_lc=$archive_cmds_need_lc_CXX
20637 # Whether or not to disallow shared libs when runtime libs are static.
20638 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
20640 # Compiler flag to allow reflexive dlopens.
20641 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
20643 # Compiler flag to generate shared objects directly from archives.
20644 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
20646 # Whether the compiler copes with passing no objects directly.
20647 compiler_needs_object=$lt_compiler_needs_object_CXX
20649 # Create an old-style archive from a shared archive.
20650 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
20652 # Create a temporary old-style archive to link instead of a shared archive.
20653 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
20655 # Commands used to build a shared archive.
20656 archive_cmds=$lt_archive_cmds_CXX
20657 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
20659 # Commands used to build a loadable module if different from building
20660 # a shared archive.
20661 module_cmds=$lt_module_cmds_CXX
20662 module_expsym_cmds=$lt_module_expsym_cmds_CXX
20664 # Whether we are building with GNU ld or not.
20665 with_gnu_ld=$lt_with_gnu_ld_CXX
20667 # Flag that allows shared libraries with undefined symbols to be built.
20668 allow_undefined_flag=$lt_allow_undefined_flag_CXX
20670 # Flag that enforces no undefined symbols.
20671 no_undefined_flag=$lt_no_undefined_flag_CXX
20673 # Flag to hardcode \$libdir into a binary during linking.
20674 # This must work even if \$libdir does not exist
20675 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
20677 # If ld is used when linking, flag to hardcode \$libdir into a binary
20678 # during linking. This must work even if \$libdir does not exist.
20679 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
20681 # Whether we need a single "-rpath" flag with a separated argument.
20682 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
20684 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20685 # DIR into the resulting binary.
20686 hardcode_direct=$hardcode_direct_CXX
20688 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20689 # DIR into the resulting binary and the resulting library dependency is
20690 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
20691 # library is relocated.
20692 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
20694 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20695 # into the resulting binary.
20696 hardcode_minus_L=$hardcode_minus_L_CXX
20698 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20699 # into the resulting binary.
20700 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
20702 # Set to "yes" if building a shared library automatically hardcodes DIR
20703 # into the library and all subsequent libraries and executables linked
20704 # against it.
20705 hardcode_automatic=$hardcode_automatic_CXX
20707 # Set to yes if linker adds runtime paths of dependent libraries
20708 # to runtime path list.
20709 inherit_rpath=$inherit_rpath_CXX
20711 # Whether libtool must link a program against all its dependency libraries.
20712 link_all_deplibs=$link_all_deplibs_CXX
20714 # Fix the shell variable \$srcfile for the compiler.
20715 fix_srcfile_path=$lt_fix_srcfile_path_CXX
20717 # Set to "yes" if exported symbols are required.
20718 always_export_symbols=$always_export_symbols_CXX
20720 # The commands to list exported symbols.
20721 export_symbols_cmds=$lt_export_symbols_cmds_CXX
20723 # Symbols that should not be listed in the preloaded symbols.
20724 exclude_expsyms=$lt_exclude_expsyms_CXX
20726 # Symbols that must always be exported.
20727 include_expsyms=$lt_include_expsyms_CXX
20729 # Commands necessary for linking programs (against libraries) with templates.
20730 prelink_cmds=$lt_prelink_cmds_CXX
20732 # Specify filename containing input files.
20733 file_list_spec=$lt_file_list_spec_CXX
20735 # How to hardcode a shared library path into an executable.
20736 hardcode_action=$hardcode_action_CXX
20738 # The directories searched by this compiler when creating a shared library.
20739 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
20741 # Dependencies to place before and after the objects being linked to
20742 # create a shared library.
20743 predep_objects=$lt_predep_objects_CXX
20744 postdep_objects=$lt_postdep_objects_CXX
20745 predeps=$lt_predeps_CXX
20746 postdeps=$lt_postdeps_CXX
20748 # The library search path used internally by the compiler when linking
20749 # a shared library.
20750 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
20752 # ### END LIBTOOL TAG CONFIG: CXX
20753 _LT_EOF
20756 "gstdint.h":C)
20757 if test "$GCC" = yes; then
20758 echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
20759 else
20760 echo "/* generated for $CC */" > tmp-stdint.h
20763 sed 's/^ *//' >> tmp-stdint.h <<EOF
20765 #ifndef GCC_GENERATED_STDINT_H
20766 #define GCC_GENERATED_STDINT_H 1
20768 #include <sys/types.h>
20771 if test "$acx_cv_header_stdint" != stdint.h; then
20772 echo "#include <stddef.h>" >> tmp-stdint.h
20774 if test "$acx_cv_header_stdint" != stddef.h; then
20775 echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
20778 sed 's/^ *//' >> tmp-stdint.h <<EOF
20779 /* glibc uses these symbols as guards to prevent redefinitions. */
20780 #ifdef __int8_t_defined
20781 #define _INT8_T
20782 #define _INT16_T
20783 #define _INT32_T
20784 #endif
20785 #ifdef __uint32_t_defined
20786 #define _UINT32_T
20787 #endif
20791 # ----------------- done header, emit basic int types -------------
20792 if test "$acx_cv_header_stdint" = stddef.h; then
20793 sed 's/^ *//' >> tmp-stdint.h <<EOF
20795 #ifndef _UINT8_T
20796 #define _UINT8_T
20797 #ifndef __uint8_t_defined
20798 #define __uint8_t_defined
20799 #ifndef uint8_t
20800 typedef unsigned $acx_cv_type_int8_t uint8_t;
20801 #endif
20802 #endif
20803 #endif
20805 #ifndef _UINT16_T
20806 #define _UINT16_T
20807 #ifndef __uint16_t_defined
20808 #define __uint16_t_defined
20809 #ifndef uint16_t
20810 typedef unsigned $acx_cv_type_int16_t uint16_t;
20811 #endif
20812 #endif
20813 #endif
20815 #ifndef _UINT32_T
20816 #define _UINT32_T
20817 #ifndef __uint32_t_defined
20818 #define __uint32_t_defined
20819 #ifndef uint32_t
20820 typedef unsigned $acx_cv_type_int32_t uint32_t;
20821 #endif
20822 #endif
20823 #endif
20825 #ifndef _INT8_T
20826 #define _INT8_T
20827 #ifndef __int8_t_defined
20828 #define __int8_t_defined
20829 #ifndef int8_t
20830 typedef $acx_cv_type_int8_t int8_t;
20831 #endif
20832 #endif
20833 #endif
20835 #ifndef _INT16_T
20836 #define _INT16_T
20837 #ifndef __int16_t_defined
20838 #define __int16_t_defined
20839 #ifndef int16_t
20840 typedef $acx_cv_type_int16_t int16_t;
20841 #endif
20842 #endif
20843 #endif
20845 #ifndef _INT32_T
20846 #define _INT32_T
20847 #ifndef __int32_t_defined
20848 #define __int32_t_defined
20849 #ifndef int32_t
20850 typedef $acx_cv_type_int32_t int32_t;
20851 #endif
20852 #endif
20853 #endif
20855 elif test "$ac_cv_type_u_int32_t" = yes; then
20856 sed 's/^ *//' >> tmp-stdint.h <<EOF
20858 /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
20859 #ifndef _INT8_T
20860 #define _INT8_T
20861 #endif
20862 #ifndef _INT16_T
20863 #define _INT16_T
20864 #endif
20865 #ifndef _INT32_T
20866 #define _INT32_T
20867 #endif
20869 #ifndef _UINT8_T
20870 #define _UINT8_T
20871 #ifndef __uint8_t_defined
20872 #define __uint8_t_defined
20873 #ifndef uint8_t
20874 typedef u_int8_t uint8_t;
20875 #endif
20876 #endif
20877 #endif
20879 #ifndef _UINT16_T
20880 #define _UINT16_T
20881 #ifndef __uint16_t_defined
20882 #define __uint16_t_defined
20883 #ifndef uint16_t
20884 typedef u_int16_t uint16_t;
20885 #endif
20886 #endif
20887 #endif
20889 #ifndef _UINT32_T
20890 #define _UINT32_T
20891 #ifndef __uint32_t_defined
20892 #define __uint32_t_defined
20893 #ifndef uint32_t
20894 typedef u_int32_t uint32_t;
20895 #endif
20896 #endif
20897 #endif
20899 else
20900 sed 's/^ *//' >> tmp-stdint.h <<EOF
20902 /* Some systems have guard macros to prevent redefinitions, define them. */
20903 #ifndef _INT8_T
20904 #define _INT8_T
20905 #endif
20906 #ifndef _INT16_T
20907 #define _INT16_T
20908 #endif
20909 #ifndef _INT32_T
20910 #define _INT32_T
20911 #endif
20912 #ifndef _UINT8_T
20913 #define _UINT8_T
20914 #endif
20915 #ifndef _UINT16_T
20916 #define _UINT16_T
20917 #endif
20918 #ifndef _UINT32_T
20919 #define _UINT32_T
20920 #endif
20924 # ------------- done basic int types, emit int64_t types ------------
20925 if test "$ac_cv_type_uint64_t" = yes; then
20926 sed 's/^ *//' >> tmp-stdint.h <<EOF
20928 /* system headers have good uint64_t and int64_t */
20929 #ifndef _INT64_T
20930 #define _INT64_T
20931 #endif
20932 #ifndef _UINT64_T
20933 #define _UINT64_T
20934 #endif
20936 elif test "$ac_cv_type_u_int64_t" = yes; then
20937 sed 's/^ *//' >> tmp-stdint.h <<EOF
20939 /* system headers have an u_int64_t (and int64_t) */
20940 #ifndef _INT64_T
20941 #define _INT64_T
20942 #endif
20943 #ifndef _UINT64_T
20944 #define _UINT64_T
20945 #ifndef __uint64_t_defined
20946 #define __uint64_t_defined
20947 #ifndef uint64_t
20948 typedef u_int64_t uint64_t;
20949 #endif
20950 #endif
20951 #endif
20953 elif test -n "$acx_cv_type_int64_t"; then
20954 sed 's/^ *//' >> tmp-stdint.h <<EOF
20956 /* architecture has a 64-bit type, $acx_cv_type_int64_t */
20957 #ifndef _INT64_T
20958 #define _INT64_T
20959 #ifndef int64_t
20960 typedef $acx_cv_type_int64_t int64_t;
20961 #endif
20962 #endif
20963 #ifndef _UINT64_T
20964 #define _UINT64_T
20965 #ifndef __uint64_t_defined
20966 #define __uint64_t_defined
20967 #ifndef uint64_t
20968 typedef unsigned $acx_cv_type_int64_t uint64_t;
20969 #endif
20970 #endif
20971 #endif
20973 else
20974 sed 's/^ *//' >> tmp-stdint.h <<EOF
20976 /* some common heuristics for int64_t, using compiler-specific tests */
20977 #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
20978 #ifndef _INT64_T
20979 #define _INT64_T
20980 #ifndef __int64_t_defined
20981 #ifndef int64_t
20982 typedef long long int64_t;
20983 #endif
20984 #endif
20985 #endif
20986 #ifndef _UINT64_T
20987 #define _UINT64_T
20988 #ifndef uint64_t
20989 typedef unsigned long long uint64_t;
20990 #endif
20991 #endif
20993 #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
20994 /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
20995 does not implement __extension__. But that compiler doesn't define
20996 __GNUC_MINOR__. */
20997 # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
20998 # define __extension__
20999 # endif
21001 # ifndef _INT64_T
21002 # define _INT64_T
21003 # ifndef int64_t
21004 __extension__ typedef long long int64_t;
21005 # endif
21006 # endif
21007 # ifndef _UINT64_T
21008 # define _UINT64_T
21009 # ifndef uint64_t
21010 __extension__ typedef unsigned long long uint64_t;
21011 # endif
21012 # endif
21014 #elif !defined __STRICT_ANSI__
21015 # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
21017 # ifndef _INT64_T
21018 # define _INT64_T
21019 # ifndef int64_t
21020 typedef __int64 int64_t;
21021 # endif
21022 # endif
21023 # ifndef _UINT64_T
21024 # define _UINT64_T
21025 # ifndef uint64_t
21026 typedef unsigned __int64 uint64_t;
21027 # endif
21028 # endif
21029 # endif /* compiler */
21031 #endif /* ANSI version */
21035 # ------------- done int64_t types, emit intptr types ------------
21036 if test "$ac_cv_type_uintptr_t" != yes; then
21037 sed 's/^ *//' >> tmp-stdint.h <<EOF
21039 /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
21040 #ifndef __uintptr_t_defined
21041 #ifndef uintptr_t
21042 typedef u$acx_cv_type_intptr_t uintptr_t;
21043 #endif
21044 #endif
21045 #ifndef __intptr_t_defined
21046 #ifndef intptr_t
21047 typedef $acx_cv_type_intptr_t intptr_t;
21048 #endif
21049 #endif
21053 # ------------- done intptr types, emit int_least types ------------
21054 if test "$ac_cv_type_int_least32_t" != yes; then
21055 sed 's/^ *//' >> tmp-stdint.h <<EOF
21057 /* Define int_least types */
21058 typedef int8_t int_least8_t;
21059 typedef int16_t int_least16_t;
21060 typedef int32_t int_least32_t;
21061 #ifdef _INT64_T
21062 typedef int64_t int_least64_t;
21063 #endif
21065 typedef uint8_t uint_least8_t;
21066 typedef uint16_t uint_least16_t;
21067 typedef uint32_t uint_least32_t;
21068 #ifdef _UINT64_T
21069 typedef uint64_t uint_least64_t;
21070 #endif
21074 # ------------- done intptr types, emit int_fast types ------------
21075 if test "$ac_cv_type_int_fast32_t" != yes; then
21076 sed 's/^ *//' >> tmp-stdint.h <<EOF
21078 /* Define int_fast types. short is often slow */
21079 typedef int8_t int_fast8_t;
21080 typedef int int_fast16_t;
21081 typedef int32_t int_fast32_t;
21082 #ifdef _INT64_T
21083 typedef int64_t int_fast64_t;
21084 #endif
21086 typedef uint8_t uint_fast8_t;
21087 typedef unsigned int uint_fast16_t;
21088 typedef uint32_t uint_fast32_t;
21089 #ifdef _UINT64_T
21090 typedef uint64_t uint_fast64_t;
21091 #endif
21095 if test "$ac_cv_type_uintmax_t" != yes; then
21096 sed 's/^ *//' >> tmp-stdint.h <<EOF
21098 /* Define intmax based on what we found */
21099 #ifndef intmax_t
21100 #ifdef _INT64_T
21101 typedef int64_t intmax_t;
21102 #else
21103 typedef long intmax_t;
21104 #endif
21105 #endif
21106 #ifndef uintmax_t
21107 #ifdef _UINT64_T
21108 typedef uint64_t uintmax_t;
21109 #else
21110 typedef unsigned long uintmax_t;
21111 #endif
21112 #endif
21116 sed 's/^ *//' >> tmp-stdint.h <<EOF
21118 #endif /* GCC_GENERATED_STDINT_H */
21121 if test -r gstdint.h && cmp -s tmp-stdint.h gstdint.h; then
21122 rm -f tmp-stdint.h
21123 else
21124 mv -f tmp-stdint.h gstdint.h
21129 esac
21130 done # for ac_tag
21133 as_fn_exit 0
21134 _ACEOF
21135 ac_clean_files=$ac_clean_files_save
21137 test $ac_write_fail = 0 ||
21138 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
21141 # configure is writing to config.log, and then calls config.status.
21142 # config.status does its own redirection, appending to config.log.
21143 # Unfortunately, on DOS this fails, as config.log is still kept open
21144 # by configure, so config.status won't be able to write to it; its
21145 # output is simply discarded. So we exec the FD to /dev/null,
21146 # effectively closing config.log, so it can be properly (re)opened and
21147 # appended to by config.status. When coming back to configure, we
21148 # need to make the FD available again.
21149 if test "$no_create" != yes; then
21150 ac_cs_success=:
21151 ac_config_status_args=
21152 test "$silent" = yes &&
21153 ac_config_status_args="$ac_config_status_args --quiet"
21154 exec 5>/dev/null
21155 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21156 exec 5>>config.log
21157 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21158 # would make configure fail if this is the last instruction.
21159 $ac_cs_success || as_fn_exit 1
21161 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
21162 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21163 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}