fix merge conflict in libgfortran/ChangeLog
[official-gcc.git] / libssp / configure
bloba96b39197ffe34dbb10deeb67df03bebceef1d91
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64 for libssp 1.0.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7 # 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 case $0 in #((
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93 for as_dir in $PATH
95 IFS=$as_save_IFS
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98 done
99 IFS=$as_save_IFS
102 esac
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x; then
106 as_myself=$0
108 if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110 exit 1
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there. '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120 done
121 PS1='$ '
122 PS2='> '
123 PS4='+ '
125 # NLS nuisances.
126 LC_ALL=C
127 export LC_ALL
128 LANGUAGE=C
129 export LANGUAGE
131 # CDPATH.
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134 if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136 emulate sh
137 NULLCMD=:
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
141 setopt NO_GLOB_SUBST
142 else
143 case \`(set -o) 2>/dev/null\` in #(
144 *posix*) :
145 set -o posix ;; #(
146 *) :
148 esac
151 as_required="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
157 exitcode=0
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
164 else
165 exitcode=1; echo positional parameters were not saved.
167 test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172 test \$(( 1 + 1 )) = 2 || exit 1
174 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
175 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
176 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
177 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
178 PATH=/empty FPATH=/empty; export PATH FPATH
179 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
180 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
181 if (eval "$as_required") 2>/dev/null; then :
182 as_have_required=yes
183 else
184 as_have_required=no
186 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
188 else
189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
190 as_found=false
191 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
193 IFS=$as_save_IFS
194 test -z "$as_dir" && as_dir=.
195 as_found=:
196 case $as_dir in #(
198 for as_base in sh bash ksh sh5; do
199 # Try only shells that exist, to save several forks.
200 as_shell=$as_dir/$as_base
201 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
202 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
203 CONFIG_SHELL=$as_shell as_have_required=yes
204 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
205 break 2
208 done;;
209 esac
210 as_found=false
211 done
212 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
213 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
214 CONFIG_SHELL=$SHELL as_have_required=yes
215 fi; }
216 IFS=$as_save_IFS
219 if test "x$CONFIG_SHELL" != x; then :
220 # We cannot yet assume a decent shell, so we have to provide a
221 # neutralization value for shells without unset; and this also
222 # works around shells that cannot unset nonexistent variables.
223 BASH_ENV=/dev/null
224 ENV=/dev/null
225 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
226 export CONFIG_SHELL
227 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
230 if test x$as_have_required = xno; then :
231 $as_echo "$0: This script requires a shell more modern than all"
232 $as_echo "$0: the shells that I found on your system."
233 if test x${ZSH_VERSION+set} = xset ; then
234 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
235 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
236 else
237 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
238 $0: including any error possibly output before this
239 $0: message. Then install a modern shell, or manually run
240 $0: the script under such a shell if you do have one."
242 exit 1
246 SHELL=${CONFIG_SHELL-/bin/sh}
247 export SHELL
248 # Unset more variables known to interfere with behavior of common tools.
249 CLICOLOR_FORCE= GREP_OPTIONS=
250 unset CLICOLOR_FORCE GREP_OPTIONS
252 ## --------------------- ##
253 ## M4sh Shell Functions. ##
254 ## --------------------- ##
255 # as_fn_unset VAR
256 # ---------------
257 # Portably unset VAR.
258 as_fn_unset ()
260 { eval $1=; unset $1;}
262 as_unset=as_fn_unset
264 # as_fn_set_status STATUS
265 # -----------------------
266 # Set $? to STATUS, without forking.
267 as_fn_set_status ()
269 return $1
270 } # as_fn_set_status
272 # as_fn_exit STATUS
273 # -----------------
274 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
275 as_fn_exit ()
277 set +e
278 as_fn_set_status $1
279 exit $1
280 } # as_fn_exit
282 # as_fn_mkdir_p
283 # -------------
284 # Create "$as_dir" as a directory, including parents if necessary.
285 as_fn_mkdir_p ()
288 case $as_dir in #(
289 -*) as_dir=./$as_dir;;
290 esac
291 test -d "$as_dir" || eval $as_mkdir_p || {
292 as_dirs=
293 while :; do
294 case $as_dir in #(
295 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
296 *) as_qdir=$as_dir;;
297 esac
298 as_dirs="'$as_qdir' $as_dirs"
299 as_dir=`$as_dirname -- "$as_dir" ||
300 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
301 X"$as_dir" : 'X\(//\)[^/]' \| \
302 X"$as_dir" : 'X\(//\)$' \| \
303 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
304 $as_echo X"$as_dir" |
305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
306 s//\1/
309 /^X\(\/\/\)[^/].*/{
310 s//\1/
313 /^X\(\/\/\)$/{
314 s//\1/
317 /^X\(\/\).*/{
318 s//\1/
321 s/.*/./; q'`
322 test -d "$as_dir" && break
323 done
324 test -z "$as_dirs" || eval "mkdir $as_dirs"
325 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
328 } # as_fn_mkdir_p
329 # as_fn_append VAR VALUE
330 # ----------------------
331 # Append the text in VALUE to the end of the definition contained in VAR. Take
332 # advantage of any shell optimizations that allow amortized linear growth over
333 # repeated appends, instead of the typical quadratic growth present in naive
334 # implementations.
335 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
336 eval 'as_fn_append ()
338 eval $1+=\$2
340 else
341 as_fn_append ()
343 eval $1=\$$1\$2
345 fi # as_fn_append
347 # as_fn_arith ARG...
348 # ------------------
349 # Perform arithmetic evaluation on the ARGs, and store the result in the
350 # global $as_val. Take advantage of shells that can avoid forks. The arguments
351 # must be portable across $(()) and expr.
352 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
353 eval 'as_fn_arith ()
355 as_val=$(( $* ))
357 else
358 as_fn_arith ()
360 as_val=`expr "$@" || test $? -eq 1`
362 fi # as_fn_arith
365 # as_fn_error ERROR [LINENO LOG_FD]
366 # ---------------------------------
367 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
368 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
369 # script with status $?, using 1 if that was 0.
370 as_fn_error ()
372 as_status=$?; test $as_status -eq 0 && as_status=1
373 if test "$3"; then
374 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
375 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
377 $as_echo "$as_me: error: $1" >&2
378 as_fn_exit $as_status
379 } # as_fn_error
381 if expr a : '\(a\)' >/dev/null 2>&1 &&
382 test "X`expr 00001 : '.*\(...\)'`" = X001; then
383 as_expr=expr
384 else
385 as_expr=false
388 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
389 as_basename=basename
390 else
391 as_basename=false
394 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
395 as_dirname=dirname
396 else
397 as_dirname=false
400 as_me=`$as_basename -- "$0" ||
401 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
402 X"$0" : 'X\(//\)$' \| \
403 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
404 $as_echo X/"$0" |
405 sed '/^.*\/\([^/][^/]*\)\/*$/{
406 s//\1/
409 /^X\/\(\/\/\)$/{
410 s//\1/
413 /^X\/\(\/\).*/{
414 s//\1/
417 s/.*/./; q'`
419 # Avoid depending upon Character Ranges.
420 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
421 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
422 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
423 as_cr_digits='0123456789'
424 as_cr_alnum=$as_cr_Letters$as_cr_digits
427 as_lineno_1=$LINENO as_lineno_1a=$LINENO
428 as_lineno_2=$LINENO as_lineno_2a=$LINENO
429 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
430 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
431 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
432 sed -n '
434 /[$]LINENO/=
435 ' <$as_myself |
436 sed '
437 s/[$]LINENO.*/&-/
438 t lineno
440 :lineno
442 :loop
443 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
444 t loop
445 s/-\n.*//
446 ' >$as_me.lineno &&
447 chmod +x "$as_me.lineno" ||
448 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
450 # Don't try to exec as it changes $[0], causing all sort of problems
451 # (the dirname of $[0] is not the place where we might find the
452 # original and so on. Autoconf is especially sensitive to this).
453 . "./$as_me.lineno"
454 # Exit status is that of the last command.
455 exit
458 ECHO_C= ECHO_N= ECHO_T=
459 case `echo -n x` in #(((((
460 -n*)
461 case `echo 'xy\c'` in
462 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
463 xy) ECHO_C='\c';;
464 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
465 ECHO_T=' ';;
466 esac;;
468 ECHO_N='-n';;
469 esac
471 rm -f conf$$ conf$$.exe conf$$.file
472 if test -d conf$$.dir; then
473 rm -f conf$$.dir/conf$$.file
474 else
475 rm -f conf$$.dir
476 mkdir conf$$.dir 2>/dev/null
478 if (echo >conf$$.file) 2>/dev/null; then
479 if ln -s conf$$.file conf$$ 2>/dev/null; then
480 as_ln_s='ln -s'
481 # ... but there are two gotchas:
482 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
483 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
484 # In both cases, we have to default to `cp -p'.
485 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
486 as_ln_s='cp -p'
487 elif ln conf$$.file conf$$ 2>/dev/null; then
488 as_ln_s=ln
489 else
490 as_ln_s='cp -p'
492 else
493 as_ln_s='cp -p'
495 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
496 rmdir conf$$.dir 2>/dev/null
498 if mkdir -p . 2>/dev/null; then
499 as_mkdir_p='mkdir -p "$as_dir"'
500 else
501 test -d ./-p && rmdir ./-p
502 as_mkdir_p=false
505 if test -x / >/dev/null 2>&1; then
506 as_test_x='test -x'
507 else
508 if ls -dL / >/dev/null 2>&1; then
509 as_ls_L_option=L
510 else
511 as_ls_L_option=
513 as_test_x='
514 eval sh -c '\''
515 if test -d "$1"; then
516 test -d "$1/.";
517 else
518 case $1 in #(
519 -*)set "./$1";;
520 esac;
521 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
522 ???[sx]*):;;*)false;;esac;fi
523 '\'' sh
526 as_executable_p=$as_test_x
528 # Sed expression to map a string onto a valid CPP name.
529 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
531 # Sed expression to map a string onto a valid variable name.
532 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
534 SHELL=${CONFIG_SHELL-/bin/sh}
537 exec 7<&0 </dev/null 6>&1
539 # Name of the host.
540 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
541 # so uname gets run too.
542 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
545 # Initializations.
547 ac_default_prefix=/usr/local
548 ac_clean_files=
549 ac_config_libobj_dir=.
550 LIBOBJS=
551 cross_compiling=no
552 subdirs=
553 MFLAGS=
554 MAKEFLAGS=
556 # Identity of this package.
557 PACKAGE_NAME='libssp'
558 PACKAGE_TARNAME='libssp'
559 PACKAGE_VERSION='1.0'
560 PACKAGE_STRING='libssp 1.0'
561 PACKAGE_BUGREPORT=''
562 PACKAGE_URL=''
564 ac_unique_file="ssp.c"
565 # Factoring default headers for most tests.
566 ac_includes_default="\
567 #include <stdio.h>
568 #ifdef HAVE_SYS_TYPES_H
569 # include <sys/types.h>
570 #endif
571 #ifdef HAVE_SYS_STAT_H
572 # include <sys/stat.h>
573 #endif
574 #ifdef STDC_HEADERS
575 # include <stdlib.h>
576 # include <stddef.h>
577 #else
578 # ifdef HAVE_STDLIB_H
579 # include <stdlib.h>
580 # endif
581 #endif
582 #ifdef HAVE_STRING_H
583 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
584 # include <memory.h>
585 # endif
586 # include <string.h>
587 #endif
588 #ifdef HAVE_STRINGS_H
589 # include <strings.h>
590 #endif
591 #ifdef HAVE_INTTYPES_H
592 # include <inttypes.h>
593 #endif
594 #ifdef HAVE_STDINT_H
595 # include <stdint.h>
596 #endif
597 #ifdef HAVE_UNISTD_H
598 # include <unistd.h>
599 #endif"
601 ac_subst_vars='am__EXEEXT_FALSE
602 am__EXEEXT_TRUE
603 LTLIBOBJS
604 LIBOBJS
605 get_gcc_base_ver
606 toolexeclibdir
607 toolexecdir
608 enable_static
609 enable_shared
610 lt_host_flags
611 OTOOL64
612 OTOOL
613 LIPO
614 NMEDIT
615 DSYMUTIL
616 RANLIB
618 OBJDUMP
619 LN_S
621 ac_ct_DUMPBIN
622 DUMPBIN
624 FGREP
626 LIBTOOL
627 ssp_have_usable_vsnprintf
628 EGREP
629 GREP
630 LIBSSP_USE_SYMVER_SUN_FALSE
631 LIBSSP_USE_SYMVER_SUN_TRUE
632 LIBSSP_USE_SYMVER_GNU_FALSE
633 LIBSSP_USE_SYMVER_GNU_TRUE
634 LIBSSP_USE_SYMVER_FALSE
635 LIBSSP_USE_SYMVER_TRUE
636 XCFLAGS
638 am__fastdepCC_FALSE
639 am__fastdepCC_TRUE
640 CCDEPMODE
641 am__nodep
642 AMDEPBACKSLASH
643 AMDEP_FALSE
644 AMDEP_TRUE
645 am__quote
646 am__include
647 DEPDIR
648 OBJEXT
649 EXEEXT
650 ac_ct_CC
651 CPPFLAGS
652 LDFLAGS
653 CFLAGS
655 multi_basedir
656 MAINT
657 MAINTAINER_MODE_FALSE
658 MAINTAINER_MODE_TRUE
659 am__untar
660 am__tar
661 AMTAR
662 am__leading_dot
663 SET_MAKE
665 mkdir_p
666 MKDIR_P
667 INSTALL_STRIP_PROGRAM
668 STRIP
669 install_sh
670 MAKEINFO
671 AUTOHEADER
672 AUTOMAKE
673 AUTOCONF
674 ACLOCAL
675 VERSION
676 PACKAGE
677 CYGPATH_W
678 am__isrc
679 INSTALL_DATA
680 INSTALL_SCRIPT
681 INSTALL_PROGRAM
682 target_noncanonical
683 target_os
684 target_vendor
685 target_cpu
686 target
687 host_os
688 host_vendor
689 host_cpu
690 host
691 build_os
692 build_vendor
693 build_cpu
694 build
695 target_alias
696 host_alias
697 build_alias
698 LIBS
699 ECHO_T
700 ECHO_N
701 ECHO_C
702 DEFS
703 mandir
704 localedir
705 libdir
706 psdir
707 pdfdir
708 dvidir
709 htmldir
710 infodir
711 docdir
712 oldincludedir
713 includedir
714 localstatedir
715 sharedstatedir
716 sysconfdir
717 datadir
718 datarootdir
719 libexecdir
720 sbindir
721 bindir
722 program_transform_name
723 prefix
724 exec_prefix
725 PACKAGE_URL
726 PACKAGE_BUGREPORT
727 PACKAGE_STRING
728 PACKAGE_VERSION
729 PACKAGE_TARNAME
730 PACKAGE_NAME
731 PATH_SEPARATOR
732 SHELL'
733 ac_subst_files=''
734 ac_user_opts='
735 enable_option_checking
736 enable_version_specific_runtime_libs
737 enable_maintainer_mode
738 enable_multilib
739 enable_dependency_tracking
740 enable_cet
741 enable_symvers
742 enable_shared
743 enable_static
744 with_pic
745 enable_fast_install
746 with_gnu_ld
747 enable_libtool_lock
748 with_gcc_major_version_only
750 ac_precious_vars='build_alias
751 host_alias
752 target_alias
754 CPPFLAGS'
757 # Initialize some variables set by options.
758 ac_init_help=
759 ac_init_version=false
760 ac_unrecognized_opts=
761 ac_unrecognized_sep=
762 # The variables have the same names as the options, with
763 # dashes changed to underlines.
764 cache_file=/dev/null
765 exec_prefix=NONE
766 no_create=
767 no_recursion=
768 prefix=NONE
769 program_prefix=NONE
770 program_suffix=NONE
771 program_transform_name=s,x,x,
772 silent=
773 site=
774 srcdir=
775 verbose=
776 x_includes=NONE
777 x_libraries=NONE
779 # Installation directory options.
780 # These are left unexpanded so users can "make install exec_prefix=/foo"
781 # and all the variables that are supposed to be based on exec_prefix
782 # by default will actually change.
783 # Use braces instead of parens because sh, perl, etc. also accept them.
784 # (The list follows the same order as the GNU Coding Standards.)
785 bindir='${exec_prefix}/bin'
786 sbindir='${exec_prefix}/sbin'
787 libexecdir='${exec_prefix}/libexec'
788 datarootdir='${prefix}/share'
789 datadir='${datarootdir}'
790 sysconfdir='${prefix}/etc'
791 sharedstatedir='${prefix}/com'
792 localstatedir='${prefix}/var'
793 includedir='${prefix}/include'
794 oldincludedir='/usr/include'
795 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
796 infodir='${datarootdir}/info'
797 htmldir='${docdir}'
798 dvidir='${docdir}'
799 pdfdir='${docdir}'
800 psdir='${docdir}'
801 libdir='${exec_prefix}/lib'
802 localedir='${datarootdir}/locale'
803 mandir='${datarootdir}/man'
805 ac_prev=
806 ac_dashdash=
807 for ac_option
809 # If the previous option needs an argument, assign it.
810 if test -n "$ac_prev"; then
811 eval $ac_prev=\$ac_option
812 ac_prev=
813 continue
816 case $ac_option in
817 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
818 *) ac_optarg=yes ;;
819 esac
821 # Accept the important Cygnus configure options, so we can diagnose typos.
823 case $ac_dashdash$ac_option in
825 ac_dashdash=yes ;;
827 -bindir | --bindir | --bindi | --bind | --bin | --bi)
828 ac_prev=bindir ;;
829 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
830 bindir=$ac_optarg ;;
832 -build | --build | --buil | --bui | --bu)
833 ac_prev=build_alias ;;
834 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
835 build_alias=$ac_optarg ;;
837 -cache-file | --cache-file | --cache-fil | --cache-fi \
838 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
839 ac_prev=cache_file ;;
840 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
841 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
842 cache_file=$ac_optarg ;;
844 --config-cache | -C)
845 cache_file=config.cache ;;
847 -datadir | --datadir | --datadi | --datad)
848 ac_prev=datadir ;;
849 -datadir=* | --datadir=* | --datadi=* | --datad=*)
850 datadir=$ac_optarg ;;
852 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
853 | --dataroo | --dataro | --datar)
854 ac_prev=datarootdir ;;
855 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
856 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
857 datarootdir=$ac_optarg ;;
859 -disable-* | --disable-*)
860 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
861 # Reject names that are not valid shell variable names.
862 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
863 as_fn_error "invalid feature name: $ac_useropt"
864 ac_useropt_orig=$ac_useropt
865 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
866 case $ac_user_opts in
868 "enable_$ac_useropt"
869 "*) ;;
870 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
871 ac_unrecognized_sep=', ';;
872 esac
873 eval enable_$ac_useropt=no ;;
875 -docdir | --docdir | --docdi | --doc | --do)
876 ac_prev=docdir ;;
877 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
878 docdir=$ac_optarg ;;
880 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
881 ac_prev=dvidir ;;
882 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
883 dvidir=$ac_optarg ;;
885 -enable-* | --enable-*)
886 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
887 # Reject names that are not valid shell variable names.
888 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
889 as_fn_error "invalid feature name: $ac_useropt"
890 ac_useropt_orig=$ac_useropt
891 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
892 case $ac_user_opts in
894 "enable_$ac_useropt"
895 "*) ;;
896 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
897 ac_unrecognized_sep=', ';;
898 esac
899 eval enable_$ac_useropt=\$ac_optarg ;;
901 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
902 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
903 | --exec | --exe | --ex)
904 ac_prev=exec_prefix ;;
905 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
906 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
907 | --exec=* | --exe=* | --ex=*)
908 exec_prefix=$ac_optarg ;;
910 -gas | --gas | --ga | --g)
911 # Obsolete; use --with-gas.
912 with_gas=yes ;;
914 -help | --help | --hel | --he | -h)
915 ac_init_help=long ;;
916 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
917 ac_init_help=recursive ;;
918 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
919 ac_init_help=short ;;
921 -host | --host | --hos | --ho)
922 ac_prev=host_alias ;;
923 -host=* | --host=* | --hos=* | --ho=*)
924 host_alias=$ac_optarg ;;
926 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
927 ac_prev=htmldir ;;
928 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
929 | --ht=*)
930 htmldir=$ac_optarg ;;
932 -includedir | --includedir | --includedi | --included | --include \
933 | --includ | --inclu | --incl | --inc)
934 ac_prev=includedir ;;
935 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
936 | --includ=* | --inclu=* | --incl=* | --inc=*)
937 includedir=$ac_optarg ;;
939 -infodir | --infodir | --infodi | --infod | --info | --inf)
940 ac_prev=infodir ;;
941 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
942 infodir=$ac_optarg ;;
944 -libdir | --libdir | --libdi | --libd)
945 ac_prev=libdir ;;
946 -libdir=* | --libdir=* | --libdi=* | --libd=*)
947 libdir=$ac_optarg ;;
949 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
950 | --libexe | --libex | --libe)
951 ac_prev=libexecdir ;;
952 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
953 | --libexe=* | --libex=* | --libe=*)
954 libexecdir=$ac_optarg ;;
956 -localedir | --localedir | --localedi | --localed | --locale)
957 ac_prev=localedir ;;
958 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
959 localedir=$ac_optarg ;;
961 -localstatedir | --localstatedir | --localstatedi | --localstated \
962 | --localstate | --localstat | --localsta | --localst | --locals)
963 ac_prev=localstatedir ;;
964 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
965 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
966 localstatedir=$ac_optarg ;;
968 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
969 ac_prev=mandir ;;
970 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
971 mandir=$ac_optarg ;;
973 -nfp | --nfp | --nf)
974 # Obsolete; use --without-fp.
975 with_fp=no ;;
977 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
978 | --no-cr | --no-c | -n)
979 no_create=yes ;;
981 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
982 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
983 no_recursion=yes ;;
985 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
986 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
987 | --oldin | --oldi | --old | --ol | --o)
988 ac_prev=oldincludedir ;;
989 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
990 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
991 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
992 oldincludedir=$ac_optarg ;;
994 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
995 ac_prev=prefix ;;
996 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
997 prefix=$ac_optarg ;;
999 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1000 | --program-pre | --program-pr | --program-p)
1001 ac_prev=program_prefix ;;
1002 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1003 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1004 program_prefix=$ac_optarg ;;
1006 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1007 | --program-suf | --program-su | --program-s)
1008 ac_prev=program_suffix ;;
1009 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1010 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1011 program_suffix=$ac_optarg ;;
1013 -program-transform-name | --program-transform-name \
1014 | --program-transform-nam | --program-transform-na \
1015 | --program-transform-n | --program-transform- \
1016 | --program-transform | --program-transfor \
1017 | --program-transfo | --program-transf \
1018 | --program-trans | --program-tran \
1019 | --progr-tra | --program-tr | --program-t)
1020 ac_prev=program_transform_name ;;
1021 -program-transform-name=* | --program-transform-name=* \
1022 | --program-transform-nam=* | --program-transform-na=* \
1023 | --program-transform-n=* | --program-transform-=* \
1024 | --program-transform=* | --program-transfor=* \
1025 | --program-transfo=* | --program-transf=* \
1026 | --program-trans=* | --program-tran=* \
1027 | --progr-tra=* | --program-tr=* | --program-t=*)
1028 program_transform_name=$ac_optarg ;;
1030 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1031 ac_prev=pdfdir ;;
1032 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1033 pdfdir=$ac_optarg ;;
1035 -psdir | --psdir | --psdi | --psd | --ps)
1036 ac_prev=psdir ;;
1037 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1038 psdir=$ac_optarg ;;
1040 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1041 | -silent | --silent | --silen | --sile | --sil)
1042 silent=yes ;;
1044 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1045 ac_prev=sbindir ;;
1046 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1047 | --sbi=* | --sb=*)
1048 sbindir=$ac_optarg ;;
1050 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1051 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1052 | --sharedst | --shareds | --shared | --share | --shar \
1053 | --sha | --sh)
1054 ac_prev=sharedstatedir ;;
1055 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1056 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1057 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1058 | --sha=* | --sh=*)
1059 sharedstatedir=$ac_optarg ;;
1061 -site | --site | --sit)
1062 ac_prev=site ;;
1063 -site=* | --site=* | --sit=*)
1064 site=$ac_optarg ;;
1066 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1067 ac_prev=srcdir ;;
1068 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1069 srcdir=$ac_optarg ;;
1071 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1072 | --syscon | --sysco | --sysc | --sys | --sy)
1073 ac_prev=sysconfdir ;;
1074 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1075 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1076 sysconfdir=$ac_optarg ;;
1078 -target | --target | --targe | --targ | --tar | --ta | --t)
1079 ac_prev=target_alias ;;
1080 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1081 target_alias=$ac_optarg ;;
1083 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1084 verbose=yes ;;
1086 -version | --version | --versio | --versi | --vers | -V)
1087 ac_init_version=: ;;
1089 -with-* | --with-*)
1090 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1091 # Reject names that are not valid shell variable names.
1092 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1093 as_fn_error "invalid package name: $ac_useropt"
1094 ac_useropt_orig=$ac_useropt
1095 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1096 case $ac_user_opts in
1098 "with_$ac_useropt"
1099 "*) ;;
1100 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1101 ac_unrecognized_sep=', ';;
1102 esac
1103 eval with_$ac_useropt=\$ac_optarg ;;
1105 -without-* | --without-*)
1106 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1107 # Reject names that are not valid shell variable names.
1108 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1109 as_fn_error "invalid package name: $ac_useropt"
1110 ac_useropt_orig=$ac_useropt
1111 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1112 case $ac_user_opts in
1114 "with_$ac_useropt"
1115 "*) ;;
1116 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1117 ac_unrecognized_sep=', ';;
1118 esac
1119 eval with_$ac_useropt=no ;;
1121 --x)
1122 # Obsolete; use --with-x.
1123 with_x=yes ;;
1125 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1126 | --x-incl | --x-inc | --x-in | --x-i)
1127 ac_prev=x_includes ;;
1128 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1129 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1130 x_includes=$ac_optarg ;;
1132 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1133 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1134 ac_prev=x_libraries ;;
1135 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1136 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1137 x_libraries=$ac_optarg ;;
1139 -*) as_fn_error "unrecognized option: \`$ac_option'
1140 Try \`$0 --help' for more information."
1143 *=*)
1144 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1145 # Reject names that are not valid shell variable names.
1146 case $ac_envvar in #(
1147 '' | [0-9]* | *[!_$as_cr_alnum]* )
1148 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1149 esac
1150 eval $ac_envvar=\$ac_optarg
1151 export $ac_envvar ;;
1154 # FIXME: should be removed in autoconf 3.0.
1155 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1156 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1157 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1158 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1161 esac
1162 done
1164 if test -n "$ac_prev"; then
1165 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1166 as_fn_error "missing argument to $ac_option"
1169 if test -n "$ac_unrecognized_opts"; then
1170 case $enable_option_checking in
1171 no) ;;
1172 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1173 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1174 esac
1177 # Check all directory arguments for consistency.
1178 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1179 datadir sysconfdir sharedstatedir localstatedir includedir \
1180 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1181 libdir localedir mandir
1183 eval ac_val=\$$ac_var
1184 # Remove trailing slashes.
1185 case $ac_val in
1186 */ )
1187 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1188 eval $ac_var=\$ac_val;;
1189 esac
1190 # Be sure to have absolute directory names.
1191 case $ac_val in
1192 [\\/$]* | ?:[\\/]* ) continue;;
1193 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1194 esac
1195 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1196 done
1198 # There might be people who depend on the old broken behavior: `$host'
1199 # used to hold the argument of --host etc.
1200 # FIXME: To remove some day.
1201 build=$build_alias
1202 host=$host_alias
1203 target=$target_alias
1205 # FIXME: To remove some day.
1206 if test "x$host_alias" != x; then
1207 if test "x$build_alias" = x; then
1208 cross_compiling=maybe
1209 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1210 If a cross compiler is detected then cross compile mode will be used." >&2
1211 elif test "x$build_alias" != "x$host_alias"; then
1212 cross_compiling=yes
1216 ac_tool_prefix=
1217 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1219 test "$silent" = yes && exec 6>/dev/null
1222 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1223 ac_ls_di=`ls -di .` &&
1224 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1225 as_fn_error "working directory cannot be determined"
1226 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1227 as_fn_error "pwd does not report name of working directory"
1230 # Find the source files, if location was not specified.
1231 if test -z "$srcdir"; then
1232 ac_srcdir_defaulted=yes
1233 # Try the directory containing this script, then the parent directory.
1234 ac_confdir=`$as_dirname -- "$as_myself" ||
1235 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1236 X"$as_myself" : 'X\(//\)[^/]' \| \
1237 X"$as_myself" : 'X\(//\)$' \| \
1238 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1239 $as_echo X"$as_myself" |
1240 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1241 s//\1/
1244 /^X\(\/\/\)[^/].*/{
1245 s//\1/
1248 /^X\(\/\/\)$/{
1249 s//\1/
1252 /^X\(\/\).*/{
1253 s//\1/
1256 s/.*/./; q'`
1257 srcdir=$ac_confdir
1258 if test ! -r "$srcdir/$ac_unique_file"; then
1259 srcdir=..
1261 else
1262 ac_srcdir_defaulted=no
1264 if test ! -r "$srcdir/$ac_unique_file"; then
1265 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1266 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1268 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1269 ac_abs_confdir=`(
1270 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1271 pwd)`
1272 # When building in place, set srcdir=.
1273 if test "$ac_abs_confdir" = "$ac_pwd"; then
1274 srcdir=.
1276 # Remove unnecessary trailing slashes from srcdir.
1277 # Double slashes in file names in object file debugging info
1278 # mess up M-x gdb in Emacs.
1279 case $srcdir in
1280 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1281 esac
1282 for ac_var in $ac_precious_vars; do
1283 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1284 eval ac_env_${ac_var}_value=\$${ac_var}
1285 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1286 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1287 done
1290 # Report the --help message.
1292 if test "$ac_init_help" = "long"; then
1293 # Omit some internal or obsolete options to make the list less imposing.
1294 # This message is too long to be a string in the A/UX 3.1 sh.
1295 cat <<_ACEOF
1296 \`configure' configures libssp 1.0 to adapt to many kinds of systems.
1298 Usage: $0 [OPTION]... [VAR=VALUE]...
1300 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1301 VAR=VALUE. See below for descriptions of some of the useful variables.
1303 Defaults for the options are specified in brackets.
1305 Configuration:
1306 -h, --help display this help and exit
1307 --help=short display options specific to this package
1308 --help=recursive display the short help of all the included packages
1309 -V, --version display version information and exit
1310 -q, --quiet, --silent do not print \`checking...' messages
1311 --cache-file=FILE cache test results in FILE [disabled]
1312 -C, --config-cache alias for \`--cache-file=config.cache'
1313 -n, --no-create do not create output files
1314 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1316 Installation directories:
1317 --prefix=PREFIX install architecture-independent files in PREFIX
1318 [$ac_default_prefix]
1319 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1320 [PREFIX]
1322 By default, \`make install' will install all the files in
1323 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1324 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1325 for instance \`--prefix=\$HOME'.
1327 For better control, use the options below.
1329 Fine tuning of the installation directories:
1330 --bindir=DIR user executables [EPREFIX/bin]
1331 --sbindir=DIR system admin executables [EPREFIX/sbin]
1332 --libexecdir=DIR program executables [EPREFIX/libexec]
1333 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1334 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1335 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1336 --libdir=DIR object code libraries [EPREFIX/lib]
1337 --includedir=DIR C header files [PREFIX/include]
1338 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1339 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1340 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1341 --infodir=DIR info documentation [DATAROOTDIR/info]
1342 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1343 --mandir=DIR man documentation [DATAROOTDIR/man]
1344 --docdir=DIR documentation root [DATAROOTDIR/doc/libssp]
1345 --htmldir=DIR html documentation [DOCDIR]
1346 --dvidir=DIR dvi documentation [DOCDIR]
1347 --pdfdir=DIR pdf documentation [DOCDIR]
1348 --psdir=DIR ps documentation [DOCDIR]
1349 _ACEOF
1351 cat <<\_ACEOF
1353 Program names:
1354 --program-prefix=PREFIX prepend PREFIX to installed program names
1355 --program-suffix=SUFFIX append SUFFIX to installed program names
1356 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1358 System types:
1359 --build=BUILD configure for building on BUILD [guessed]
1360 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1361 --target=TARGET configure for building compilers for TARGET [HOST]
1362 _ACEOF
1365 if test -n "$ac_init_help"; then
1366 case $ac_init_help in
1367 short | recursive ) echo "Configuration of libssp 1.0:";;
1368 esac
1369 cat <<\_ACEOF
1371 Optional Features:
1372 --disable-option-checking ignore unrecognized --enable/--with options
1373 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1374 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1375 --enable-version-specific-runtime-libs Specify that runtime libraries should be installed in a compiler-specific directory
1376 --enable-maintainer-mode enable make rules and dependencies not useful
1377 (and sometimes confusing) to the casual installer
1378 --enable-multilib build many library versions (default)
1379 --disable-dependency-tracking speeds up one-time build
1380 --enable-dependency-tracking do not reject slow dependency extractors
1381 --enable-cet enable Intel CET in target libraries
1382 [default=default]
1383 --disable-symvers disable symbol versioning for libssp
1384 --enable-shared[=PKGS] build shared libraries [default=yes]
1385 --enable-static[=PKGS] build static libraries [default=yes]
1386 --enable-fast-install[=PKGS]
1387 optimize for fast installation [default=yes]
1388 --disable-libtool-lock avoid locking (might break parallel builds)
1390 Optional Packages:
1391 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1392 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1393 --with-pic try to use only PIC/non-PIC objects [default=use
1394 both]
1395 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1396 --with-gcc-major-version-only
1397 use only GCC major number in filesystem paths
1399 Some influential environment variables:
1400 CC C compiler command
1401 CFLAGS C compiler flags
1402 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1403 nonstandard directory <lib dir>
1404 LIBS libraries to pass to the linker, e.g. -l<library>
1405 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1406 you have headers in a nonstandard directory <include dir>
1407 CPP C preprocessor
1409 Use these variables to override the choices made by `configure' or to help
1410 it to find libraries and programs with nonstandard names/locations.
1412 Report bugs to the package provider.
1413 _ACEOF
1414 ac_status=$?
1417 if test "$ac_init_help" = "recursive"; then
1418 # If there are subdirs, report their specific --help.
1419 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1420 test -d "$ac_dir" ||
1421 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1422 continue
1423 ac_builddir=.
1425 case "$ac_dir" in
1426 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1428 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1429 # A ".." for each directory in $ac_dir_suffix.
1430 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1431 case $ac_top_builddir_sub in
1432 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1433 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1434 esac ;;
1435 esac
1436 ac_abs_top_builddir=$ac_pwd
1437 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1438 # for backward compatibility:
1439 ac_top_builddir=$ac_top_build_prefix
1441 case $srcdir in
1442 .) # We are building in place.
1443 ac_srcdir=.
1444 ac_top_srcdir=$ac_top_builddir_sub
1445 ac_abs_top_srcdir=$ac_pwd ;;
1446 [\\/]* | ?:[\\/]* ) # Absolute name.
1447 ac_srcdir=$srcdir$ac_dir_suffix;
1448 ac_top_srcdir=$srcdir
1449 ac_abs_top_srcdir=$srcdir ;;
1450 *) # Relative name.
1451 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1452 ac_top_srcdir=$ac_top_build_prefix$srcdir
1453 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1454 esac
1455 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1457 cd "$ac_dir" || { ac_status=$?; continue; }
1458 # Check for guested configure.
1459 if test -f "$ac_srcdir/configure.gnu"; then
1460 echo &&
1461 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1462 elif test -f "$ac_srcdir/configure"; then
1463 echo &&
1464 $SHELL "$ac_srcdir/configure" --help=recursive
1465 else
1466 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1467 fi || ac_status=$?
1468 cd "$ac_pwd" || { ac_status=$?; break; }
1469 done
1472 test -n "$ac_init_help" && exit $ac_status
1473 if $ac_init_version; then
1474 cat <<\_ACEOF
1475 libssp configure 1.0
1476 generated by GNU Autoconf 2.64
1478 Copyright (C) 2009 Free Software Foundation, Inc.
1479 This configure script is free software; the Free Software Foundation
1480 gives unlimited permission to copy, distribute and modify it.
1481 _ACEOF
1482 exit
1485 ## ------------------------ ##
1486 ## Autoconf initialization. ##
1487 ## ------------------------ ##
1489 # ac_fn_c_try_compile LINENO
1490 # --------------------------
1491 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1492 ac_fn_c_try_compile ()
1494 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1495 rm -f conftest.$ac_objext
1496 if { { ac_try="$ac_compile"
1497 case "(($ac_try" in
1498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1499 *) ac_try_echo=$ac_try;;
1500 esac
1501 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1502 $as_echo "$ac_try_echo"; } >&5
1503 (eval "$ac_compile") 2>conftest.err
1504 ac_status=$?
1505 if test -s conftest.err; then
1506 grep -v '^ *+' conftest.err >conftest.er1
1507 cat conftest.er1 >&5
1508 mv -f conftest.er1 conftest.err
1510 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1511 test $ac_status = 0; } && {
1512 test -z "$ac_c_werror_flag" ||
1513 test ! -s conftest.err
1514 } && test -s conftest.$ac_objext; then :
1515 ac_retval=0
1516 else
1517 $as_echo "$as_me: failed program was:" >&5
1518 sed 's/^/| /' conftest.$ac_ext >&5
1520 ac_retval=1
1522 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1523 return $ac_retval
1525 } # ac_fn_c_try_compile
1527 # ac_fn_c_try_cpp LINENO
1528 # ----------------------
1529 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1530 ac_fn_c_try_cpp ()
1532 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1533 if { { ac_try="$ac_cpp conftest.$ac_ext"
1534 case "(($ac_try" in
1535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1536 *) ac_try_echo=$ac_try;;
1537 esac
1538 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1539 $as_echo "$ac_try_echo"; } >&5
1540 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1541 ac_status=$?
1542 if test -s conftest.err; then
1543 grep -v '^ *+' conftest.err >conftest.er1
1544 cat conftest.er1 >&5
1545 mv -f conftest.er1 conftest.err
1547 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1548 test $ac_status = 0; } >/dev/null && {
1549 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1550 test ! -s conftest.err
1551 }; then :
1552 ac_retval=0
1553 else
1554 $as_echo "$as_me: failed program was:" >&5
1555 sed 's/^/| /' conftest.$ac_ext >&5
1557 ac_retval=1
1559 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1560 return $ac_retval
1562 } # ac_fn_c_try_cpp
1564 # ac_fn_c_try_link LINENO
1565 # -----------------------
1566 # Try to link conftest.$ac_ext, and return whether this succeeded.
1567 ac_fn_c_try_link ()
1569 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1570 rm -f conftest.$ac_objext conftest$ac_exeext
1571 if { { ac_try="$ac_link"
1572 case "(($ac_try" in
1573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1574 *) ac_try_echo=$ac_try;;
1575 esac
1576 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1577 $as_echo "$ac_try_echo"; } >&5
1578 (eval "$ac_link") 2>conftest.err
1579 ac_status=$?
1580 if test -s conftest.err; then
1581 grep -v '^ *+' conftest.err >conftest.er1
1582 cat conftest.er1 >&5
1583 mv -f conftest.er1 conftest.err
1585 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1586 test $ac_status = 0; } && {
1587 test -z "$ac_c_werror_flag" ||
1588 test ! -s conftest.err
1589 } && test -s conftest$ac_exeext && {
1590 test "$cross_compiling" = yes ||
1591 $as_test_x conftest$ac_exeext
1592 }; then :
1593 ac_retval=0
1594 else
1595 $as_echo "$as_me: failed program was:" >&5
1596 sed 's/^/| /' conftest.$ac_ext >&5
1598 ac_retval=1
1600 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1601 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1602 # interfere with the next link command; also delete a directory that is
1603 # left behind by Apple's compiler. We do this before executing the actions.
1604 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1605 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1606 return $ac_retval
1608 } # ac_fn_c_try_link
1610 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1611 # -------------------------------------------------------
1612 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1613 # the include files in INCLUDES and setting the cache variable VAR
1614 # accordingly.
1615 ac_fn_c_check_header_mongrel ()
1617 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1618 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1620 $as_echo_n "checking for $2... " >&6; }
1621 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1622 $as_echo_n "(cached) " >&6
1624 eval ac_res=\$$3
1625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1626 $as_echo "$ac_res" >&6; }
1627 else
1628 # Is the header compilable?
1629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1630 $as_echo_n "checking $2 usability... " >&6; }
1631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1632 /* end confdefs.h. */
1634 #include <$2>
1635 _ACEOF
1636 if ac_fn_c_try_compile "$LINENO"; then :
1637 ac_header_compiler=yes
1638 else
1639 ac_header_compiler=no
1641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1643 $as_echo "$ac_header_compiler" >&6; }
1645 # Is the header present?
1646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1647 $as_echo_n "checking $2 presence... " >&6; }
1648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1649 /* end confdefs.h. */
1650 #include <$2>
1651 _ACEOF
1652 if ac_fn_c_try_cpp "$LINENO"; then :
1653 ac_header_preproc=yes
1654 else
1655 ac_header_preproc=no
1657 rm -f conftest.err conftest.$ac_ext
1658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1659 $as_echo "$ac_header_preproc" >&6; }
1661 # So? What about this header?
1662 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1663 yes:no: )
1664 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1665 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1666 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1667 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1669 no:yes:* )
1670 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1671 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1672 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1673 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1674 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1675 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1676 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1677 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1678 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1679 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1681 esac
1682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1683 $as_echo_n "checking for $2... " >&6; }
1684 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1685 $as_echo_n "(cached) " >&6
1686 else
1687 eval "$3=\$ac_header_compiler"
1689 eval ac_res=\$$3
1690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1691 $as_echo "$ac_res" >&6; }
1693 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1695 } # ac_fn_c_check_header_mongrel
1697 # ac_fn_c_try_run LINENO
1698 # ----------------------
1699 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1700 # that executables *can* be run.
1701 ac_fn_c_try_run ()
1703 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1704 if { { ac_try="$ac_link"
1705 case "(($ac_try" in
1706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1707 *) ac_try_echo=$ac_try;;
1708 esac
1709 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1710 $as_echo "$ac_try_echo"; } >&5
1711 (eval "$ac_link") 2>&5
1712 ac_status=$?
1713 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1714 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1715 { { case "(($ac_try" in
1716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1717 *) ac_try_echo=$ac_try;;
1718 esac
1719 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1720 $as_echo "$ac_try_echo"; } >&5
1721 (eval "$ac_try") 2>&5
1722 ac_status=$?
1723 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1724 test $ac_status = 0; }; }; then :
1725 ac_retval=0
1726 else
1727 $as_echo "$as_me: program exited with status $ac_status" >&5
1728 $as_echo "$as_me: failed program was:" >&5
1729 sed 's/^/| /' conftest.$ac_ext >&5
1731 ac_retval=$ac_status
1733 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1734 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1735 return $ac_retval
1737 } # ac_fn_c_try_run
1739 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1740 # -------------------------------------------------------
1741 # Tests whether HEADER exists and can be compiled using the include files in
1742 # INCLUDES, setting the cache variable VAR accordingly.
1743 ac_fn_c_check_header_compile ()
1745 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1747 $as_echo_n "checking for $2... " >&6; }
1748 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1749 $as_echo_n "(cached) " >&6
1750 else
1751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1752 /* end confdefs.h. */
1754 #include <$2>
1755 _ACEOF
1756 if ac_fn_c_try_compile "$LINENO"; then :
1757 eval "$3=yes"
1758 else
1759 eval "$3=no"
1761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1763 eval ac_res=\$$3
1764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1765 $as_echo "$ac_res" >&6; }
1766 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1768 } # ac_fn_c_check_header_compile
1770 # ac_fn_c_check_func LINENO FUNC VAR
1771 # ----------------------------------
1772 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1773 ac_fn_c_check_func ()
1775 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1777 $as_echo_n "checking for $2... " >&6; }
1778 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1779 $as_echo_n "(cached) " >&6
1780 else
1781 if test x$gcc_no_link = xyes; then
1782 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1785 /* end confdefs.h. */
1786 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1787 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1788 #define $2 innocuous_$2
1790 /* System header to define __stub macros and hopefully few prototypes,
1791 which can conflict with char $2 (); below.
1792 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1793 <limits.h> exists even on freestanding compilers. */
1795 #ifdef __STDC__
1796 # include <limits.h>
1797 #else
1798 # include <assert.h>
1799 #endif
1801 #undef $2
1803 /* Override any GCC internal prototype to avoid an error.
1804 Use char because int might match the return type of a GCC
1805 builtin and then its argument prototype would still apply. */
1806 #ifdef __cplusplus
1807 extern "C"
1808 #endif
1809 char $2 ();
1810 /* The GNU C library defines this for functions which it implements
1811 to always fail with ENOSYS. Some functions are actually named
1812 something starting with __ and the normal name is an alias. */
1813 #if defined __stub_$2 || defined __stub___$2
1814 choke me
1815 #endif
1818 main ()
1820 return $2 ();
1822 return 0;
1824 _ACEOF
1825 if ac_fn_c_try_link "$LINENO"; then :
1826 eval "$3=yes"
1827 else
1828 eval "$3=no"
1830 rm -f core conftest.err conftest.$ac_objext \
1831 conftest$ac_exeext conftest.$ac_ext
1833 eval ac_res=\$$3
1834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1835 $as_echo "$ac_res" >&6; }
1836 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1838 } # ac_fn_c_check_func
1839 cat >config.log <<_ACEOF
1840 This file contains any messages produced by compilers while
1841 running configure, to aid debugging if configure makes a mistake.
1843 It was created by libssp $as_me 1.0, which was
1844 generated by GNU Autoconf 2.64. Invocation command line was
1846 $ $0 $@
1848 _ACEOF
1849 exec 5>>config.log
1851 cat <<_ASUNAME
1852 ## --------- ##
1853 ## Platform. ##
1854 ## --------- ##
1856 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1857 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1858 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1859 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1860 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1862 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1863 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1865 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1866 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1867 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1868 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1869 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1870 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1871 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1873 _ASUNAME
1875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1876 for as_dir in $PATH
1878 IFS=$as_save_IFS
1879 test -z "$as_dir" && as_dir=.
1880 $as_echo "PATH: $as_dir"
1881 done
1882 IFS=$as_save_IFS
1884 } >&5
1886 cat >&5 <<_ACEOF
1889 ## ----------- ##
1890 ## Core tests. ##
1891 ## ----------- ##
1893 _ACEOF
1896 # Keep a trace of the command line.
1897 # Strip out --no-create and --no-recursion so they do not pile up.
1898 # Strip out --silent because we don't want to record it for future runs.
1899 # Also quote any args containing shell meta-characters.
1900 # Make two passes to allow for proper duplicate-argument suppression.
1901 ac_configure_args=
1902 ac_configure_args0=
1903 ac_configure_args1=
1904 ac_must_keep_next=false
1905 for ac_pass in 1 2
1907 for ac_arg
1909 case $ac_arg in
1910 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1911 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1912 | -silent | --silent | --silen | --sile | --sil)
1913 continue ;;
1914 *\'*)
1915 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1916 esac
1917 case $ac_pass in
1918 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1920 as_fn_append ac_configure_args1 " '$ac_arg'"
1921 if test $ac_must_keep_next = true; then
1922 ac_must_keep_next=false # Got value, back to normal.
1923 else
1924 case $ac_arg in
1925 *=* | --config-cache | -C | -disable-* | --disable-* \
1926 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1927 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1928 | -with-* | --with-* | -without-* | --without-* | --x)
1929 case "$ac_configure_args0 " in
1930 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1931 esac
1933 -* ) ac_must_keep_next=true ;;
1934 esac
1936 as_fn_append ac_configure_args " '$ac_arg'"
1938 esac
1939 done
1940 done
1941 { ac_configure_args0=; unset ac_configure_args0;}
1942 { ac_configure_args1=; unset ac_configure_args1;}
1944 # When interrupted or exit'd, cleanup temporary files, and complete
1945 # config.log. We remove comments because anyway the quotes in there
1946 # would cause problems or look ugly.
1947 # WARNING: Use '\'' to represent an apostrophe within the trap.
1948 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1949 trap 'exit_status=$?
1950 # Save into config.log some information that might help in debugging.
1952 echo
1954 cat <<\_ASBOX
1955 ## ---------------- ##
1956 ## Cache variables. ##
1957 ## ---------------- ##
1958 _ASBOX
1959 echo
1960 # The following way of writing the cache mishandles newlines in values,
1962 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1963 eval ac_val=\$$ac_var
1964 case $ac_val in #(
1965 *${as_nl}*)
1966 case $ac_var in #(
1967 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1968 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1969 esac
1970 case $ac_var in #(
1971 _ | IFS | as_nl) ;; #(
1972 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1973 *) { eval $ac_var=; unset $ac_var;} ;;
1974 esac ;;
1975 esac
1976 done
1977 (set) 2>&1 |
1978 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1979 *${as_nl}ac_space=\ *)
1980 sed -n \
1981 "s/'\''/'\''\\\\'\'''\''/g;
1982 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1983 ;; #(
1985 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1987 esac |
1988 sort
1990 echo
1992 cat <<\_ASBOX
1993 ## ----------------- ##
1994 ## Output variables. ##
1995 ## ----------------- ##
1996 _ASBOX
1997 echo
1998 for ac_var in $ac_subst_vars
2000 eval ac_val=\$$ac_var
2001 case $ac_val in
2002 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2003 esac
2004 $as_echo "$ac_var='\''$ac_val'\''"
2005 done | sort
2006 echo
2008 if test -n "$ac_subst_files"; then
2009 cat <<\_ASBOX
2010 ## ------------------- ##
2011 ## File substitutions. ##
2012 ## ------------------- ##
2013 _ASBOX
2014 echo
2015 for ac_var in $ac_subst_files
2017 eval ac_val=\$$ac_var
2018 case $ac_val in
2019 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2020 esac
2021 $as_echo "$ac_var='\''$ac_val'\''"
2022 done | sort
2023 echo
2026 if test -s confdefs.h; then
2027 cat <<\_ASBOX
2028 ## ----------- ##
2029 ## confdefs.h. ##
2030 ## ----------- ##
2031 _ASBOX
2032 echo
2033 cat confdefs.h
2034 echo
2036 test "$ac_signal" != 0 &&
2037 $as_echo "$as_me: caught signal $ac_signal"
2038 $as_echo "$as_me: exit $exit_status"
2039 } >&5
2040 rm -f core *.core core.conftest.* &&
2041 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2042 exit $exit_status
2044 for ac_signal in 1 2 13 15; do
2045 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2046 done
2047 ac_signal=0
2049 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2050 rm -f -r conftest* confdefs.h
2052 $as_echo "/* confdefs.h */" > confdefs.h
2054 # Predefined preprocessor variables.
2056 cat >>confdefs.h <<_ACEOF
2057 #define PACKAGE_NAME "$PACKAGE_NAME"
2058 _ACEOF
2060 cat >>confdefs.h <<_ACEOF
2061 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2062 _ACEOF
2064 cat >>confdefs.h <<_ACEOF
2065 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2066 _ACEOF
2068 cat >>confdefs.h <<_ACEOF
2069 #define PACKAGE_STRING "$PACKAGE_STRING"
2070 _ACEOF
2072 cat >>confdefs.h <<_ACEOF
2073 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2074 _ACEOF
2076 cat >>confdefs.h <<_ACEOF
2077 #define PACKAGE_URL "$PACKAGE_URL"
2078 _ACEOF
2081 # Let the site file select an alternate cache file if it wants to.
2082 # Prefer an explicitly selected file to automatically selected ones.
2083 ac_site_file1=NONE
2084 ac_site_file2=NONE
2085 if test -n "$CONFIG_SITE"; then
2086 ac_site_file1=$CONFIG_SITE
2087 elif test "x$prefix" != xNONE; then
2088 ac_site_file1=$prefix/share/config.site
2089 ac_site_file2=$prefix/etc/config.site
2090 else
2091 ac_site_file1=$ac_default_prefix/share/config.site
2092 ac_site_file2=$ac_default_prefix/etc/config.site
2094 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2096 test "x$ac_site_file" = xNONE && continue
2097 if test -r "$ac_site_file"; then
2098 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2099 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2100 sed 's/^/| /' "$ac_site_file" >&5
2101 . "$ac_site_file"
2103 done
2105 if test -r "$cache_file"; then
2106 # Some versions of bash will fail to source /dev/null (special
2107 # files actually), so we avoid doing that.
2108 if test -f "$cache_file"; then
2109 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2110 $as_echo "$as_me: loading cache $cache_file" >&6;}
2111 case $cache_file in
2112 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2113 *) . "./$cache_file";;
2114 esac
2116 else
2117 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2118 $as_echo "$as_me: creating cache $cache_file" >&6;}
2119 >$cache_file
2122 # Check that the precious variables saved in the cache have kept the same
2123 # value.
2124 ac_cache_corrupted=false
2125 for ac_var in $ac_precious_vars; do
2126 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2127 eval ac_new_set=\$ac_env_${ac_var}_set
2128 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2129 eval ac_new_val=\$ac_env_${ac_var}_value
2130 case $ac_old_set,$ac_new_set in
2131 set,)
2132 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2133 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2134 ac_cache_corrupted=: ;;
2135 ,set)
2136 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2137 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2138 ac_cache_corrupted=: ;;
2139 ,);;
2141 if test "x$ac_old_val" != "x$ac_new_val"; then
2142 # differences in whitespace do not lead to failure.
2143 ac_old_val_w=`echo x $ac_old_val`
2144 ac_new_val_w=`echo x $ac_new_val`
2145 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2146 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2147 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2148 ac_cache_corrupted=:
2149 else
2150 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2151 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2152 eval $ac_var=\$ac_old_val
2154 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2155 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2156 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2157 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2158 fi;;
2159 esac
2160 # Pass precious variables to config.status.
2161 if test "$ac_new_set" = set; then
2162 case $ac_new_val in
2163 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2164 *) ac_arg=$ac_var=$ac_new_val ;;
2165 esac
2166 case " $ac_configure_args " in
2167 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2168 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2169 esac
2171 done
2172 if $ac_cache_corrupted; then
2173 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2174 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2175 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2176 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2177 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2179 ## -------------------- ##
2180 ## Main body of script. ##
2181 ## -------------------- ##
2183 ac_ext=c
2184 ac_cpp='$CPP $CPPFLAGS'
2185 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2186 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2187 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2194 ac_aux_dir=
2195 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2196 for ac_t in install-sh install.sh shtool; do
2197 if test -f "$ac_dir/$ac_t"; then
2198 ac_aux_dir=$ac_dir
2199 ac_install_sh="$ac_aux_dir/$ac_t -c"
2200 break 2
2202 done
2203 done
2204 if test -z "$ac_aux_dir"; then
2205 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2208 # These three variables are undocumented and unsupported,
2209 # and are intended to be withdrawn in a future Autoconf release.
2210 # They can cause serious problems if a builder's source tree is in a directory
2211 # whose full name contains unusual characters.
2212 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2213 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2214 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2217 # Make sure we can run config.sub.
2218 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2219 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2222 $as_echo_n "checking build system type... " >&6; }
2223 if test "${ac_cv_build+set}" = set; then :
2224 $as_echo_n "(cached) " >&6
2225 else
2226 ac_build_alias=$build_alias
2227 test "x$ac_build_alias" = x &&
2228 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2229 test "x$ac_build_alias" = x &&
2230 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2231 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2232 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2236 $as_echo "$ac_cv_build" >&6; }
2237 case $ac_cv_build in
2238 *-*-*) ;;
2239 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2240 esac
2241 build=$ac_cv_build
2242 ac_save_IFS=$IFS; IFS='-'
2243 set x $ac_cv_build
2244 shift
2245 build_cpu=$1
2246 build_vendor=$2
2247 shift; shift
2248 # Remember, the first character of IFS is used to create $*,
2249 # except with old shells:
2250 build_os=$*
2251 IFS=$ac_save_IFS
2252 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2256 $as_echo_n "checking host system type... " >&6; }
2257 if test "${ac_cv_host+set}" = set; then :
2258 $as_echo_n "(cached) " >&6
2259 else
2260 if test "x$host_alias" = x; then
2261 ac_cv_host=$ac_cv_build
2262 else
2263 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2264 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2269 $as_echo "$ac_cv_host" >&6; }
2270 case $ac_cv_host in
2271 *-*-*) ;;
2272 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2273 esac
2274 host=$ac_cv_host
2275 ac_save_IFS=$IFS; IFS='-'
2276 set x $ac_cv_host
2277 shift
2278 host_cpu=$1
2279 host_vendor=$2
2280 shift; shift
2281 # Remember, the first character of IFS is used to create $*,
2282 # except with old shells:
2283 host_os=$*
2284 IFS=$ac_save_IFS
2285 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2289 $as_echo_n "checking target system type... " >&6; }
2290 if test "${ac_cv_target+set}" = set; then :
2291 $as_echo_n "(cached) " >&6
2292 else
2293 if test "x$target_alias" = x; then
2294 ac_cv_target=$ac_cv_host
2295 else
2296 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2297 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2302 $as_echo "$ac_cv_target" >&6; }
2303 case $ac_cv_target in
2304 *-*-*) ;;
2305 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2306 esac
2307 target=$ac_cv_target
2308 ac_save_IFS=$IFS; IFS='-'
2309 set x $ac_cv_target
2310 shift
2311 target_cpu=$1
2312 target_vendor=$2
2313 shift; shift
2314 # Remember, the first character of IFS is used to create $*,
2315 # except with old shells:
2316 target_os=$*
2317 IFS=$ac_save_IFS
2318 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2321 # The aliases save the names the user supplied, while $host etc.
2322 # will get canonicalized.
2323 test -n "$target_alias" &&
2324 test "$program_prefix$program_suffix$program_transform_name" = \
2325 NONENONEs,x,x, &&
2326 program_prefix=${target_alias}-
2328 case ${build_alias} in
2329 "") build_noncanonical=${build} ;;
2330 *) build_noncanonical=${build_alias} ;;
2331 esac
2333 case ${host_alias} in
2334 "") host_noncanonical=${build_noncanonical} ;;
2335 *) host_noncanonical=${host_alias} ;;
2336 esac
2338 case ${target_alias} in
2339 "") target_noncanonical=${host_noncanonical} ;;
2340 *) target_noncanonical=${target_alias} ;;
2341 esac
2346 am__api_version='1.11'
2348 # Find a good install program. We prefer a C program (faster),
2349 # so one script is as good as another. But avoid the broken or
2350 # incompatible versions:
2351 # SysV /etc/install, /usr/sbin/install
2352 # SunOS /usr/etc/install
2353 # IRIX /sbin/install
2354 # AIX /bin/install
2355 # AmigaOS /C/install, which installs bootblocks on floppy discs
2356 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2357 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2358 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2359 # OS/2's system install, which has a completely different semantic
2360 # ./install, which can be erroneously created by make from ./install.sh.
2361 # Reject install programs that cannot install multiple files.
2362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2363 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2364 if test -z "$INSTALL"; then
2365 if test "${ac_cv_path_install+set}" = set; then :
2366 $as_echo_n "(cached) " >&6
2367 else
2368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2369 for as_dir in $PATH
2371 IFS=$as_save_IFS
2372 test -z "$as_dir" && as_dir=.
2373 # Account for people who put trailing slashes in PATH elements.
2374 case $as_dir/ in #((
2375 ./ | .// | /[cC]/* | \
2376 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2377 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2378 /usr/ucb/* ) ;;
2380 # OSF1 and SCO ODT 3.0 have their own names for install.
2381 # Don't use installbsd from OSF since it installs stuff as root
2382 # by default.
2383 for ac_prog in ginstall scoinst install; do
2384 for ac_exec_ext in '' $ac_executable_extensions; do
2385 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2386 if test $ac_prog = install &&
2387 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2388 # AIX install. It has an incompatible calling convention.
2390 elif test $ac_prog = install &&
2391 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2392 # program-specific install script used by HP pwplus--don't use.
2394 else
2395 rm -rf conftest.one conftest.two conftest.dir
2396 echo one > conftest.one
2397 echo two > conftest.two
2398 mkdir conftest.dir
2399 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2400 test -s conftest.one && test -s conftest.two &&
2401 test -s conftest.dir/conftest.one &&
2402 test -s conftest.dir/conftest.two
2403 then
2404 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2405 break 3
2409 done
2410 done
2412 esac
2414 done
2415 IFS=$as_save_IFS
2417 rm -rf conftest.one conftest.two conftest.dir
2420 if test "${ac_cv_path_install+set}" = set; then
2421 INSTALL=$ac_cv_path_install
2422 else
2423 # As a last resort, use the slow shell script. Don't cache a
2424 # value for INSTALL within a source directory, because that will
2425 # break other packages using the cache if that directory is
2426 # removed, or if the value is a relative name.
2427 INSTALL=$ac_install_sh
2430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2431 $as_echo "$INSTALL" >&6; }
2433 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2434 # It thinks the first close brace ends the variable substitution.
2435 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2437 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2439 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2442 $as_echo_n "checking whether build environment is sane... " >&6; }
2443 # Just in case
2444 sleep 1
2445 echo timestamp > conftest.file
2446 # Reject unsafe characters in $srcdir or the absolute working directory
2447 # name. Accept space and tab only in the latter.
2448 am_lf='
2450 case `pwd` in
2451 *[\\\"\#\$\&\'\`$am_lf]*)
2452 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2453 esac
2454 case $srcdir in
2455 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2456 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2457 esac
2459 # Do `set' in a subshell so we don't clobber the current shell's
2460 # arguments. Must try -L first in case configure is actually a
2461 # symlink; some systems play weird games with the mod time of symlinks
2462 # (eg FreeBSD returns the mod time of the symlink's containing
2463 # directory).
2464 if (
2465 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2466 if test "$*" = "X"; then
2467 # -L didn't work.
2468 set X `ls -t "$srcdir/configure" conftest.file`
2470 rm -f conftest.file
2471 if test "$*" != "X $srcdir/configure conftest.file" \
2472 && test "$*" != "X conftest.file $srcdir/configure"; then
2474 # If neither matched, then we have a broken ls. This can happen
2475 # if, for instance, CONFIG_SHELL is bash and it inherits a
2476 # broken ls alias from the environment. This has actually
2477 # happened. Such a system could not be considered "sane".
2478 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2479 alias in your environment" "$LINENO" 5
2482 test "$2" = conftest.file
2484 then
2485 # Ok.
2487 else
2488 as_fn_error "newly created file is older than distributed files!
2489 Check your system clock" "$LINENO" 5
2491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2492 $as_echo "yes" >&6; }
2493 test "$program_prefix" != NONE &&
2494 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2495 # Use a double $ so make ignores it.
2496 test "$program_suffix" != NONE &&
2497 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2498 # Double any \ or $.
2499 # By default was `s,x,x', remove it if useless.
2500 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2501 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2503 # expand $ac_aux_dir to an absolute path
2504 am_aux_dir=`cd $ac_aux_dir && pwd`
2506 if test x"${MISSING+set}" != xset; then
2507 case $am_aux_dir in
2508 *\ * | *\ *)
2509 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2511 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2512 esac
2514 # Use eval to expand $SHELL
2515 if eval "$MISSING --run true"; then
2516 am_missing_run="$MISSING --run "
2517 else
2518 am_missing_run=
2519 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2520 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2523 if test x"${install_sh}" != xset; then
2524 case $am_aux_dir in
2525 *\ * | *\ *)
2526 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2528 install_sh="\${SHELL} $am_aux_dir/install-sh"
2529 esac
2532 # Installed binaries are usually stripped using `strip' when the user
2533 # run `make install-strip'. However `strip' might not be the right
2534 # tool to use in cross-compilation environments, therefore Automake
2535 # will honor the `STRIP' environment variable to overrule this program.
2536 if test "$cross_compiling" != no; then
2537 if test -n "$ac_tool_prefix"; then
2538 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2539 set dummy ${ac_tool_prefix}strip; ac_word=$2
2540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2541 $as_echo_n "checking for $ac_word... " >&6; }
2542 if test "${ac_cv_prog_STRIP+set}" = set; then :
2543 $as_echo_n "(cached) " >&6
2544 else
2545 if test -n "$STRIP"; then
2546 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2547 else
2548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2549 for as_dir in $PATH
2551 IFS=$as_save_IFS
2552 test -z "$as_dir" && as_dir=.
2553 for ac_exec_ext in '' $ac_executable_extensions; do
2554 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2555 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2556 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2557 break 2
2559 done
2560 done
2561 IFS=$as_save_IFS
2565 STRIP=$ac_cv_prog_STRIP
2566 if test -n "$STRIP"; then
2567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2568 $as_echo "$STRIP" >&6; }
2569 else
2570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2571 $as_echo "no" >&6; }
2576 if test -z "$ac_cv_prog_STRIP"; then
2577 ac_ct_STRIP=$STRIP
2578 # Extract the first word of "strip", so it can be a program name with args.
2579 set dummy strip; ac_word=$2
2580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2581 $as_echo_n "checking for $ac_word... " >&6; }
2582 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2583 $as_echo_n "(cached) " >&6
2584 else
2585 if test -n "$ac_ct_STRIP"; then
2586 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2587 else
2588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2589 for as_dir in $PATH
2591 IFS=$as_save_IFS
2592 test -z "$as_dir" && as_dir=.
2593 for ac_exec_ext in '' $ac_executable_extensions; do
2594 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2595 ac_cv_prog_ac_ct_STRIP="strip"
2596 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2597 break 2
2599 done
2600 done
2601 IFS=$as_save_IFS
2605 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2606 if test -n "$ac_ct_STRIP"; then
2607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2608 $as_echo "$ac_ct_STRIP" >&6; }
2609 else
2610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2611 $as_echo "no" >&6; }
2614 if test "x$ac_ct_STRIP" = x; then
2615 STRIP=":"
2616 else
2617 case $cross_compiling:$ac_tool_warned in
2618 yes:)
2619 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2620 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2621 ac_tool_warned=yes ;;
2622 esac
2623 STRIP=$ac_ct_STRIP
2625 else
2626 STRIP="$ac_cv_prog_STRIP"
2630 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2633 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2634 if test -z "$MKDIR_P"; then
2635 if test "${ac_cv_path_mkdir+set}" = set; then :
2636 $as_echo_n "(cached) " >&6
2637 else
2638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2639 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2641 IFS=$as_save_IFS
2642 test -z "$as_dir" && as_dir=.
2643 for ac_prog in mkdir gmkdir; do
2644 for ac_exec_ext in '' $ac_executable_extensions; do
2645 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2646 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2647 'mkdir (GNU coreutils) '* | \
2648 'mkdir (coreutils) '* | \
2649 'mkdir (fileutils) '4.1*)
2650 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2651 break 3;;
2652 esac
2653 done
2654 done
2655 done
2656 IFS=$as_save_IFS
2660 if test "${ac_cv_path_mkdir+set}" = set; then
2661 MKDIR_P="$ac_cv_path_mkdir -p"
2662 else
2663 # As a last resort, use the slow shell script. Don't cache a
2664 # value for MKDIR_P within a source directory, because that will
2665 # break other packages using the cache if that directory is
2666 # removed, or if the value is a relative name.
2667 test -d ./--version && rmdir ./--version
2668 MKDIR_P="$ac_install_sh -d"
2671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2672 $as_echo "$MKDIR_P" >&6; }
2674 mkdir_p="$MKDIR_P"
2675 case $mkdir_p in
2676 [\\/$]* | ?:[\\/]*) ;;
2677 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2678 esac
2680 for ac_prog in gawk mawk nawk awk
2682 # Extract the first word of "$ac_prog", so it can be a program name with args.
2683 set dummy $ac_prog; ac_word=$2
2684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2685 $as_echo_n "checking for $ac_word... " >&6; }
2686 if test "${ac_cv_prog_AWK+set}" = set; then :
2687 $as_echo_n "(cached) " >&6
2688 else
2689 if test -n "$AWK"; then
2690 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2691 else
2692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2693 for as_dir in $PATH
2695 IFS=$as_save_IFS
2696 test -z "$as_dir" && as_dir=.
2697 for ac_exec_ext in '' $ac_executable_extensions; do
2698 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2699 ac_cv_prog_AWK="$ac_prog"
2700 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2701 break 2
2703 done
2704 done
2705 IFS=$as_save_IFS
2709 AWK=$ac_cv_prog_AWK
2710 if test -n "$AWK"; then
2711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2712 $as_echo "$AWK" >&6; }
2713 else
2714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2715 $as_echo "no" >&6; }
2719 test -n "$AWK" && break
2720 done
2722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2723 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2724 set x ${MAKE-make}
2725 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2726 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2727 $as_echo_n "(cached) " >&6
2728 else
2729 cat >conftest.make <<\_ACEOF
2730 SHELL = /bin/sh
2731 all:
2732 @echo '@@@%%%=$(MAKE)=@@@%%%'
2733 _ACEOF
2734 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2735 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2736 *@@@%%%=?*=@@@%%%*)
2737 eval ac_cv_prog_make_${ac_make}_set=yes;;
2739 eval ac_cv_prog_make_${ac_make}_set=no;;
2740 esac
2741 rm -f conftest.make
2743 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2745 $as_echo "yes" >&6; }
2746 SET_MAKE=
2747 else
2748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2749 $as_echo "no" >&6; }
2750 SET_MAKE="MAKE=${MAKE-make}"
2753 rm -rf .tst 2>/dev/null
2754 mkdir .tst 2>/dev/null
2755 if test -d .tst; then
2756 am__leading_dot=.
2757 else
2758 am__leading_dot=_
2760 rmdir .tst 2>/dev/null
2762 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2763 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2764 # is not polluted with repeated "-I."
2765 am__isrc=' -I$(srcdir)'
2766 # test to see if srcdir already configured
2767 if test -f $srcdir/config.status; then
2768 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2772 # test whether we have cygpath
2773 if test -z "$CYGPATH_W"; then
2774 if (cygpath --version) >/dev/null 2>/dev/null; then
2775 CYGPATH_W='cygpath -w'
2776 else
2777 CYGPATH_W=echo
2782 # Define the identity of the package.
2783 PACKAGE='libssp'
2784 VERSION='1.0'
2787 cat >>confdefs.h <<_ACEOF
2788 #define PACKAGE "$PACKAGE"
2789 _ACEOF
2792 cat >>confdefs.h <<_ACEOF
2793 #define VERSION "$VERSION"
2794 _ACEOF
2796 # Some tools Automake needs.
2798 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2801 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2804 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2807 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2810 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2812 # We need awk for the "check" target. The system "awk" is bad on
2813 # some platforms.
2814 # Always define AMTAR for backward compatibility. Yes, it's still used
2815 # in the wild :-( We should find a proper way to deprecate it ...
2816 AMTAR='$${TAR-tar}'
2818 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
2826 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
2827 # Check whether --enable-version-specific-runtime-libs was given.
2828 if test "${enable_version_specific_runtime_libs+set}" = set; then :
2829 enableval=$enable_version_specific_runtime_libs; case "$enableval" in
2830 yes) version_specific_libs=yes ;;
2831 no) version_specific_libs=no ;;
2832 *) as_fn_error "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
2833 esac
2834 else
2835 version_specific_libs=no
2838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
2839 $as_echo "$version_specific_libs" >&6; }
2842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2843 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2844 # Check whether --enable-maintainer-mode was given.
2845 if test "${enable_maintainer_mode+set}" = set; then :
2846 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2847 else
2848 USE_MAINTAINER_MODE=no
2851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2852 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2853 if test $USE_MAINTAINER_MODE = yes; then
2854 MAINTAINER_MODE_TRUE=
2855 MAINTAINER_MODE_FALSE='#'
2856 else
2857 MAINTAINER_MODE_TRUE='#'
2858 MAINTAINER_MODE_FALSE=
2861 MAINT=$MAINTAINER_MODE_TRUE
2867 # Default to --enable-multilib
2868 # Check whether --enable-multilib was given.
2869 if test "${enable_multilib+set}" = set; then :
2870 enableval=$enable_multilib; case "$enableval" in
2871 yes) multilib=yes ;;
2872 no) multilib=no ;;
2873 *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
2874 esac
2875 else
2876 multilib=yes
2880 # We may get other options which we leave undocumented:
2881 # --with-target-subdir, --with-multisrctop, --with-multisubdir
2882 # See config-ml.in if you want the gory details.
2884 if test "$srcdir" = "."; then
2885 if test "$with_target_subdir" != "."; then
2886 multi_basedir="$srcdir/$with_multisrctop../.."
2887 else
2888 multi_basedir="$srcdir/$with_multisrctop.."
2890 else
2891 multi_basedir="$srcdir/.."
2895 # Even if the default multilib is not a cross compilation,
2896 # it may be that some of the other multilibs are.
2897 if test $cross_compiling = no && test $multilib = yes \
2898 && test "x${with_multisubdir}" != x ; then
2899 cross_compiling=maybe
2902 ac_config_commands="$ac_config_commands default-1"
2905 target_alias=${target_alias-$host_alias}
2908 ac_config_headers="$ac_config_headers config.h"
2911 ac_ext=c
2912 ac_cpp='$CPP $CPPFLAGS'
2913 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2914 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2915 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2917 # The same as in boehm-gc and libstdc++. Have to borrow it from there.
2918 # We must force CC to /not/ be precious variables; otherwise
2919 # the wrong, non-multilib-adjusted value will be used in multilibs.
2920 # As a side effect, we have to subst CFLAGS ourselves.
2924 ac_ext=c
2925 ac_cpp='$CPP $CPPFLAGS'
2926 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2927 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2928 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2929 if test -n "$ac_tool_prefix"; then
2930 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2931 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2933 $as_echo_n "checking for $ac_word... " >&6; }
2934 if test "${ac_cv_prog_CC+set}" = set; then :
2935 $as_echo_n "(cached) " >&6
2936 else
2937 if test -n "$CC"; then
2938 ac_cv_prog_CC="$CC" # Let the user override the test.
2939 else
2940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2941 for as_dir in $PATH
2943 IFS=$as_save_IFS
2944 test -z "$as_dir" && as_dir=.
2945 for ac_exec_ext in '' $ac_executable_extensions; do
2946 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2947 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2948 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2949 break 2
2951 done
2952 done
2953 IFS=$as_save_IFS
2957 CC=$ac_cv_prog_CC
2958 if test -n "$CC"; then
2959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2960 $as_echo "$CC" >&6; }
2961 else
2962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2963 $as_echo "no" >&6; }
2968 if test -z "$ac_cv_prog_CC"; then
2969 ac_ct_CC=$CC
2970 # Extract the first word of "gcc", so it can be a program name with args.
2971 set dummy gcc; ac_word=$2
2972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2973 $as_echo_n "checking for $ac_word... " >&6; }
2974 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2975 $as_echo_n "(cached) " >&6
2976 else
2977 if test -n "$ac_ct_CC"; then
2978 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2979 else
2980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2981 for as_dir in $PATH
2983 IFS=$as_save_IFS
2984 test -z "$as_dir" && as_dir=.
2985 for ac_exec_ext in '' $ac_executable_extensions; do
2986 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2987 ac_cv_prog_ac_ct_CC="gcc"
2988 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2989 break 2
2991 done
2992 done
2993 IFS=$as_save_IFS
2997 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2998 if test -n "$ac_ct_CC"; then
2999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3000 $as_echo "$ac_ct_CC" >&6; }
3001 else
3002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3003 $as_echo "no" >&6; }
3006 if test "x$ac_ct_CC" = x; then
3007 CC=""
3008 else
3009 case $cross_compiling:$ac_tool_warned in
3010 yes:)
3011 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3012 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3013 ac_tool_warned=yes ;;
3014 esac
3015 CC=$ac_ct_CC
3017 else
3018 CC="$ac_cv_prog_CC"
3021 if test -z "$CC"; then
3022 if test -n "$ac_tool_prefix"; then
3023 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3024 set dummy ${ac_tool_prefix}cc; ac_word=$2
3025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3026 $as_echo_n "checking for $ac_word... " >&6; }
3027 if test "${ac_cv_prog_CC+set}" = set; then :
3028 $as_echo_n "(cached) " >&6
3029 else
3030 if test -n "$CC"; then
3031 ac_cv_prog_CC="$CC" # Let the user override the test.
3032 else
3033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3034 for as_dir in $PATH
3036 IFS=$as_save_IFS
3037 test -z "$as_dir" && as_dir=.
3038 for ac_exec_ext in '' $ac_executable_extensions; do
3039 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3040 ac_cv_prog_CC="${ac_tool_prefix}cc"
3041 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3042 break 2
3044 done
3045 done
3046 IFS=$as_save_IFS
3050 CC=$ac_cv_prog_CC
3051 if test -n "$CC"; then
3052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3053 $as_echo "$CC" >&6; }
3054 else
3055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3056 $as_echo "no" >&6; }
3062 if test -z "$CC"; then
3063 # Extract the first word of "cc", so it can be a program name with args.
3064 set dummy cc; ac_word=$2
3065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3066 $as_echo_n "checking for $ac_word... " >&6; }
3067 if test "${ac_cv_prog_CC+set}" = set; then :
3068 $as_echo_n "(cached) " >&6
3069 else
3070 if test -n "$CC"; then
3071 ac_cv_prog_CC="$CC" # Let the user override the test.
3072 else
3073 ac_prog_rejected=no
3074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3075 for as_dir in $PATH
3077 IFS=$as_save_IFS
3078 test -z "$as_dir" && as_dir=.
3079 for ac_exec_ext in '' $ac_executable_extensions; do
3080 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3081 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3082 ac_prog_rejected=yes
3083 continue
3085 ac_cv_prog_CC="cc"
3086 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3087 break 2
3089 done
3090 done
3091 IFS=$as_save_IFS
3093 if test $ac_prog_rejected = yes; then
3094 # We found a bogon in the path, so make sure we never use it.
3095 set dummy $ac_cv_prog_CC
3096 shift
3097 if test $# != 0; then
3098 # We chose a different compiler from the bogus one.
3099 # However, it has the same basename, so the bogon will be chosen
3100 # first if we set CC to just the basename; use the full file name.
3101 shift
3102 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3107 CC=$ac_cv_prog_CC
3108 if test -n "$CC"; then
3109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3110 $as_echo "$CC" >&6; }
3111 else
3112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3113 $as_echo "no" >&6; }
3118 if test -z "$CC"; then
3119 if test -n "$ac_tool_prefix"; then
3120 for ac_prog in cl.exe
3122 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3123 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3125 $as_echo_n "checking for $ac_word... " >&6; }
3126 if test "${ac_cv_prog_CC+set}" = set; then :
3127 $as_echo_n "(cached) " >&6
3128 else
3129 if test -n "$CC"; then
3130 ac_cv_prog_CC="$CC" # Let the user override the test.
3131 else
3132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3133 for as_dir in $PATH
3135 IFS=$as_save_IFS
3136 test -z "$as_dir" && as_dir=.
3137 for ac_exec_ext in '' $ac_executable_extensions; do
3138 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3139 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3140 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3141 break 2
3143 done
3144 done
3145 IFS=$as_save_IFS
3149 CC=$ac_cv_prog_CC
3150 if test -n "$CC"; then
3151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3152 $as_echo "$CC" >&6; }
3153 else
3154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3155 $as_echo "no" >&6; }
3159 test -n "$CC" && break
3160 done
3162 if test -z "$CC"; then
3163 ac_ct_CC=$CC
3164 for ac_prog in cl.exe
3166 # Extract the first word of "$ac_prog", so it can be a program name with args.
3167 set dummy $ac_prog; 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 test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3171 $as_echo_n "(cached) " >&6
3172 else
3173 if test -n "$ac_ct_CC"; then
3174 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # 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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3183 ac_cv_prog_ac_ct_CC="$ac_prog"
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_CC=$ac_cv_prog_ac_ct_CC
3194 if test -n "$ac_ct_CC"; then
3195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3196 $as_echo "$ac_ct_CC" >&6; }
3197 else
3198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3199 $as_echo "no" >&6; }
3203 test -n "$ac_ct_CC" && break
3204 done
3206 if test "x$ac_ct_CC" = x; then
3207 CC=""
3208 else
3209 case $cross_compiling:$ac_tool_warned in
3210 yes:)
3211 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3212 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3213 ac_tool_warned=yes ;;
3214 esac
3215 CC=$ac_ct_CC
3222 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3223 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3224 as_fn_error "no acceptable C compiler found in \$PATH
3225 See \`config.log' for more details." "$LINENO" 5; }
3227 # Provide some information about the compiler.
3228 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3229 set X $ac_compile
3230 ac_compiler=$2
3231 for ac_option in --version -v -V -qversion; do
3232 { { ac_try="$ac_compiler $ac_option >&5"
3233 case "(($ac_try" in
3234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3235 *) ac_try_echo=$ac_try;;
3236 esac
3237 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3238 $as_echo "$ac_try_echo"; } >&5
3239 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3240 ac_status=$?
3241 if test -s conftest.err; then
3242 sed '10a\
3243 ... rest of stderr output deleted ...
3244 10q' conftest.err >conftest.er1
3245 cat conftest.er1 >&5
3246 rm -f conftest.er1 conftest.err
3248 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3249 test $ac_status = 0; }
3250 done
3252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3253 /* end confdefs.h. */
3256 main ()
3260 return 0;
3262 _ACEOF
3263 # FIXME: Cleanup?
3264 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
3265 (eval $ac_link) 2>&5
3266 ac_status=$?
3267 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3268 test $ac_status = 0; }; then :
3269 gcc_no_link=no
3270 else
3271 gcc_no_link=yes
3273 if test x$gcc_no_link = xyes; then
3274 # Setting cross_compile will disable run tests; it will
3275 # also disable AC_CHECK_FILE but that's generally
3276 # correct if we can't link.
3277 cross_compiling=yes
3278 EXEEXT=
3279 else
3280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3281 /* end confdefs.h. */
3284 main ()
3288 return 0;
3290 _ACEOF
3291 ac_clean_files_save=$ac_clean_files
3292 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3293 # Try to create an executable without -o first, disregard a.out.
3294 # It will help us diagnose broken compilers, and finding out an intuition
3295 # of exeext.
3296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3297 $as_echo_n "checking for C compiler default output file name... " >&6; }
3298 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3300 # The possible output files:
3301 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3303 ac_rmfiles=
3304 for ac_file in $ac_files
3306 case $ac_file in
3307 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3308 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3309 esac
3310 done
3311 rm -f $ac_rmfiles
3313 if { { ac_try="$ac_link_default"
3314 case "(($ac_try" in
3315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3316 *) ac_try_echo=$ac_try;;
3317 esac
3318 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3319 $as_echo "$ac_try_echo"; } >&5
3320 (eval "$ac_link_default") 2>&5
3321 ac_status=$?
3322 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3323 test $ac_status = 0; }; then :
3324 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3325 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3326 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3327 # so that the user can short-circuit this test for compilers unknown to
3328 # Autoconf.
3329 for ac_file in $ac_files ''
3331 test -f "$ac_file" || continue
3332 case $ac_file in
3333 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3335 [ab].out )
3336 # We found the default executable, but exeext='' is most
3337 # certainly right.
3338 break;;
3339 *.* )
3340 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3341 then :; else
3342 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3344 # We set ac_cv_exeext here because the later test for it is not
3345 # safe: cross compilers may not add the suffix if given an `-o'
3346 # argument, so we may need to know it at that point already.
3347 # Even if this section looks crufty: it has the advantage of
3348 # actually working.
3349 break;;
3351 break;;
3352 esac
3353 done
3354 test "$ac_cv_exeext" = no && ac_cv_exeext=
3356 else
3357 ac_file=''
3359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3360 $as_echo "$ac_file" >&6; }
3361 if test -z "$ac_file"; then :
3362 $as_echo "$as_me: failed program was:" >&5
3363 sed 's/^/| /' conftest.$ac_ext >&5
3365 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3366 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3367 { as_fn_set_status 77
3368 as_fn_error "C compiler cannot create executables
3369 See \`config.log' for more details." "$LINENO" 5; }; }
3371 ac_exeext=$ac_cv_exeext
3373 # Check that the compiler produces executables we can run. If not, either
3374 # the compiler is broken, or we cross compile.
3375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3376 $as_echo_n "checking whether the C compiler works... " >&6; }
3377 # If not cross compiling, check that we can run a simple program.
3378 if test "$cross_compiling" != yes; then
3379 if { ac_try='./$ac_file'
3380 { { case "(($ac_try" in
3381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3382 *) ac_try_echo=$ac_try;;
3383 esac
3384 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3385 $as_echo "$ac_try_echo"; } >&5
3386 (eval "$ac_try") 2>&5
3387 ac_status=$?
3388 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3389 test $ac_status = 0; }; }; then
3390 cross_compiling=no
3391 else
3392 if test "$cross_compiling" = maybe; then
3393 cross_compiling=yes
3394 else
3395 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3396 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3397 as_fn_error "cannot run C compiled programs.
3398 If you meant to cross compile, use \`--host'.
3399 See \`config.log' for more details." "$LINENO" 5; }
3403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3404 $as_echo "yes" >&6; }
3406 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3407 ac_clean_files=$ac_clean_files_save
3408 # Check that the compiler produces executables we can run. If not, either
3409 # the compiler is broken, or we cross compile.
3410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3411 $as_echo_n "checking whether we are cross compiling... " >&6; }
3412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3413 $as_echo "$cross_compiling" >&6; }
3415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3416 $as_echo_n "checking for suffix of executables... " >&6; }
3417 if { { ac_try="$ac_link"
3418 case "(($ac_try" in
3419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3420 *) ac_try_echo=$ac_try;;
3421 esac
3422 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3423 $as_echo "$ac_try_echo"; } >&5
3424 (eval "$ac_link") 2>&5
3425 ac_status=$?
3426 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3427 test $ac_status = 0; }; then :
3428 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3429 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3430 # work properly (i.e., refer to `conftest.exe'), while it won't with
3431 # `rm'.
3432 for ac_file in conftest.exe conftest conftest.*; do
3433 test -f "$ac_file" || continue
3434 case $ac_file in
3435 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3436 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3437 break;;
3438 * ) break;;
3439 esac
3440 done
3441 else
3442 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3443 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3444 as_fn_error "cannot compute suffix of executables: cannot compile and link
3445 See \`config.log' for more details." "$LINENO" 5; }
3447 rm -f conftest$ac_cv_exeext
3448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3449 $as_echo "$ac_cv_exeext" >&6; }
3451 rm -f conftest.$ac_ext
3452 EXEEXT=$ac_cv_exeext
3453 ac_exeext=$EXEEXT
3455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3456 $as_echo_n "checking for suffix of object files... " >&6; }
3457 if test "${ac_cv_objext+set}" = set; then :
3458 $as_echo_n "(cached) " >&6
3459 else
3460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3461 /* end confdefs.h. */
3464 main ()
3468 return 0;
3470 _ACEOF
3471 rm -f conftest.o conftest.obj
3472 if { { ac_try="$ac_compile"
3473 case "(($ac_try" in
3474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3475 *) ac_try_echo=$ac_try;;
3476 esac
3477 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3478 $as_echo "$ac_try_echo"; } >&5
3479 (eval "$ac_compile") 2>&5
3480 ac_status=$?
3481 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3482 test $ac_status = 0; }; then :
3483 for ac_file in conftest.o conftest.obj conftest.*; do
3484 test -f "$ac_file" || continue;
3485 case $ac_file in
3486 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3487 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3488 break;;
3489 esac
3490 done
3491 else
3492 $as_echo "$as_me: failed program was:" >&5
3493 sed 's/^/| /' conftest.$ac_ext >&5
3495 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3496 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3497 as_fn_error "cannot compute suffix of object files: cannot compile
3498 See \`config.log' for more details." "$LINENO" 5; }
3500 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3503 $as_echo "$ac_cv_objext" >&6; }
3504 OBJEXT=$ac_cv_objext
3505 ac_objext=$OBJEXT
3506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3507 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3508 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3509 $as_echo_n "(cached) " >&6
3510 else
3511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3512 /* end confdefs.h. */
3515 main ()
3517 #ifndef __GNUC__
3518 choke me
3519 #endif
3522 return 0;
3524 _ACEOF
3525 if ac_fn_c_try_compile "$LINENO"; then :
3526 ac_compiler_gnu=yes
3527 else
3528 ac_compiler_gnu=no
3530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3531 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3535 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3536 if test $ac_compiler_gnu = yes; then
3537 GCC=yes
3538 else
3539 GCC=
3541 ac_test_CFLAGS=${CFLAGS+set}
3542 ac_save_CFLAGS=$CFLAGS
3543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3544 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3545 if test "${ac_cv_prog_cc_g+set}" = set; then :
3546 $as_echo_n "(cached) " >&6
3547 else
3548 ac_save_c_werror_flag=$ac_c_werror_flag
3549 ac_c_werror_flag=yes
3550 ac_cv_prog_cc_g=no
3551 CFLAGS="-g"
3552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3553 /* end confdefs.h. */
3556 main ()
3560 return 0;
3562 _ACEOF
3563 if ac_fn_c_try_compile "$LINENO"; then :
3564 ac_cv_prog_cc_g=yes
3565 else
3566 CFLAGS=""
3567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3568 /* end confdefs.h. */
3571 main ()
3575 return 0;
3577 _ACEOF
3578 if ac_fn_c_try_compile "$LINENO"; then :
3580 else
3581 ac_c_werror_flag=$ac_save_c_werror_flag
3582 CFLAGS="-g"
3583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3584 /* end confdefs.h. */
3587 main ()
3591 return 0;
3593 _ACEOF
3594 if ac_fn_c_try_compile "$LINENO"; then :
3595 ac_cv_prog_cc_g=yes
3597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3602 ac_c_werror_flag=$ac_save_c_werror_flag
3604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3605 $as_echo "$ac_cv_prog_cc_g" >&6; }
3606 if test "$ac_test_CFLAGS" = set; then
3607 CFLAGS=$ac_save_CFLAGS
3608 elif test $ac_cv_prog_cc_g = yes; then
3609 if test "$GCC" = yes; then
3610 CFLAGS="-g -O2"
3611 else
3612 CFLAGS="-g"
3614 else
3615 if test "$GCC" = yes; then
3616 CFLAGS="-O2"
3617 else
3618 CFLAGS=
3621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3622 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3623 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3624 $as_echo_n "(cached) " >&6
3625 else
3626 ac_cv_prog_cc_c89=no
3627 ac_save_CC=$CC
3628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3629 /* end confdefs.h. */
3630 #include <stdarg.h>
3631 #include <stdio.h>
3632 #include <sys/types.h>
3633 #include <sys/stat.h>
3634 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3635 struct buf { int x; };
3636 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3637 static char *e (p, i)
3638 char **p;
3639 int i;
3641 return p[i];
3643 static char *f (char * (*g) (char **, int), char **p, ...)
3645 char *s;
3646 va_list v;
3647 va_start (v,p);
3648 s = g (p, va_arg (v,int));
3649 va_end (v);
3650 return s;
3653 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3654 function prototypes and stuff, but not '\xHH' hex character constants.
3655 These don't provoke an error unfortunately, instead are silently treated
3656 as 'x'. The following induces an error, until -std is added to get
3657 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3658 array size at least. It's necessary to write '\x00'==0 to get something
3659 that's true only with -std. */
3660 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3662 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3663 inside strings and character constants. */
3664 #define FOO(x) 'x'
3665 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3667 int test (int i, double x);
3668 struct s1 {int (*f) (int a);};
3669 struct s2 {int (*f) (double a);};
3670 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3671 int argc;
3672 char **argv;
3674 main ()
3676 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3678 return 0;
3680 _ACEOF
3681 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3682 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3684 CC="$ac_save_CC $ac_arg"
3685 if ac_fn_c_try_compile "$LINENO"; then :
3686 ac_cv_prog_cc_c89=$ac_arg
3688 rm -f core conftest.err conftest.$ac_objext
3689 test "x$ac_cv_prog_cc_c89" != "xno" && break
3690 done
3691 rm -f conftest.$ac_ext
3692 CC=$ac_save_CC
3695 # AC_CACHE_VAL
3696 case "x$ac_cv_prog_cc_c89" in
3698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3699 $as_echo "none needed" >&6; } ;;
3700 xno)
3701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3702 $as_echo "unsupported" >&6; } ;;
3704 CC="$CC $ac_cv_prog_cc_c89"
3705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3706 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3707 esac
3708 if test "x$ac_cv_prog_cc_c89" != xno; then :
3712 ac_ext=c
3713 ac_cpp='$CPP $CPPFLAGS'
3714 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3715 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3716 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3717 DEPDIR="${am__leading_dot}deps"
3719 ac_config_commands="$ac_config_commands depfiles"
3722 am_make=${MAKE-make}
3723 cat > confinc << 'END'
3724 am__doit:
3725 @echo this is the am__doit target
3726 .PHONY: am__doit
3728 # If we don't find an include directive, just comment out the code.
3729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3730 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3731 am__include="#"
3732 am__quote=
3733 _am_result=none
3734 # First try GNU make style include.
3735 echo "include confinc" > confmf
3736 # Ignore all kinds of additional output from `make'.
3737 case `$am_make -s -f confmf 2> /dev/null` in #(
3738 *the\ am__doit\ target*)
3739 am__include=include
3740 am__quote=
3741 _am_result=GNU
3743 esac
3744 # Now try BSD make style include.
3745 if test "$am__include" = "#"; then
3746 echo '.include "confinc"' > confmf
3747 case `$am_make -s -f confmf 2> /dev/null` in #(
3748 *the\ am__doit\ target*)
3749 am__include=.include
3750 am__quote="\""
3751 _am_result=BSD
3753 esac
3757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3758 $as_echo "$_am_result" >&6; }
3759 rm -f confinc confmf
3761 # Check whether --enable-dependency-tracking was given.
3762 if test "${enable_dependency_tracking+set}" = set; then :
3763 enableval=$enable_dependency_tracking;
3766 if test "x$enable_dependency_tracking" != xno; then
3767 am_depcomp="$ac_aux_dir/depcomp"
3768 AMDEPBACKSLASH='\'
3769 am__nodep='_no'
3771 if test "x$enable_dependency_tracking" != xno; then
3772 AMDEP_TRUE=
3773 AMDEP_FALSE='#'
3774 else
3775 AMDEP_TRUE='#'
3776 AMDEP_FALSE=
3781 depcc="$CC" am_compiler_list=
3783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3784 $as_echo_n "checking dependency style of $depcc... " >&6; }
3785 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3786 $as_echo_n "(cached) " >&6
3787 else
3788 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3789 # We make a subdir and do the tests there. Otherwise we can end up
3790 # making bogus files that we don't know about and never remove. For
3791 # instance it was reported that on HP-UX the gcc test will end up
3792 # making a dummy file named `D' -- because `-MD' means `put the output
3793 # in D'.
3794 rm -rf conftest.dir
3795 mkdir conftest.dir
3796 # Copy depcomp to subdir because otherwise we won't find it if we're
3797 # using a relative directory.
3798 cp "$am_depcomp" conftest.dir
3799 cd conftest.dir
3800 # We will build objects and dependencies in a subdirectory because
3801 # it helps to detect inapplicable dependency modes. For instance
3802 # both Tru64's cc and ICC support -MD to output dependencies as a
3803 # side effect of compilation, but ICC will put the dependencies in
3804 # the current directory while Tru64 will put them in the object
3805 # directory.
3806 mkdir sub
3808 am_cv_CC_dependencies_compiler_type=none
3809 if test "$am_compiler_list" = ""; then
3810 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3812 am__universal=false
3813 case " $depcc " in #(
3814 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3815 esac
3817 for depmode in $am_compiler_list; do
3818 # Setup a source with many dependencies, because some compilers
3819 # like to wrap large dependency lists on column 80 (with \), and
3820 # we should not choose a depcomp mode which is confused by this.
3822 # We need to recreate these files for each test, as the compiler may
3823 # overwrite some of them when testing with obscure command lines.
3824 # This happens at least with the AIX C compiler.
3825 : > sub/conftest.c
3826 for i in 1 2 3 4 5 6; do
3827 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3828 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3829 # Solaris 8's {/usr,}/bin/sh.
3830 touch sub/conftst$i.h
3831 done
3832 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3834 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3835 # mode. It turns out that the SunPro C++ compiler does not properly
3836 # handle `-M -o', and we need to detect this. Also, some Intel
3837 # versions had trouble with output in subdirs
3838 am__obj=sub/conftest.${OBJEXT-o}
3839 am__minus_obj="-o $am__obj"
3840 case $depmode in
3841 gcc)
3842 # This depmode causes a compiler race in universal mode.
3843 test "$am__universal" = false || continue
3845 nosideeffect)
3846 # after this tag, mechanisms are not by side-effect, so they'll
3847 # only be used when explicitly requested
3848 if test "x$enable_dependency_tracking" = xyes; then
3849 continue
3850 else
3851 break
3854 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3855 # This compiler won't grok `-c -o', but also, the minuso test has
3856 # not run yet. These depmodes are late enough in the game, and
3857 # so weak that their functioning should not be impacted.
3858 am__obj=conftest.${OBJEXT-o}
3859 am__minus_obj=
3861 none) break ;;
3862 esac
3863 if depmode=$depmode \
3864 source=sub/conftest.c object=$am__obj \
3865 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3866 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3867 >/dev/null 2>conftest.err &&
3868 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3869 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3870 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3871 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3872 # icc doesn't choke on unknown options, it will just issue warnings
3873 # or remarks (even with -Werror). So we grep stderr for any message
3874 # that says an option was ignored or not supported.
3875 # When given -MP, icc 7.0 and 7.1 complain thusly:
3876 # icc: Command line warning: ignoring option '-M'; no argument required
3877 # The diagnosis changed in icc 8.0:
3878 # icc: Command line remark: option '-MP' not supported
3879 if (grep 'ignoring option' conftest.err ||
3880 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3881 am_cv_CC_dependencies_compiler_type=$depmode
3882 break
3885 done
3887 cd ..
3888 rm -rf conftest.dir
3889 else
3890 am_cv_CC_dependencies_compiler_type=none
3894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3895 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3896 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3899 test "x$enable_dependency_tracking" != xno \
3900 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3901 am__fastdepCC_TRUE=
3902 am__fastdepCC_FALSE='#'
3903 else
3904 am__fastdepCC_TRUE='#'
3905 am__fastdepCC_FALSE=
3913 if test "x$GCC" != "xyes"; then
3914 as_fn_error "libssp must be built with GCC" "$LINENO" 5
3916 ac_ext=c
3917 ac_cpp='$CPP $CPPFLAGS'
3918 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3919 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3920 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3922 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3923 # On Suns, sometimes $CPP names a directory.
3924 if test -n "$CPP" && test -d "$CPP"; then
3925 CPP=
3927 if test -z "$CPP"; then
3928 if test "${ac_cv_prog_CPP+set}" = set; then :
3929 $as_echo_n "(cached) " >&6
3930 else
3931 # Double quotes because CPP needs to be expanded
3932 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3934 ac_preproc_ok=false
3935 for ac_c_preproc_warn_flag in '' yes
3937 # Use a header file that comes with gcc, so configuring glibc
3938 # with a fresh cross-compiler works.
3939 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3940 # <limits.h> exists even on freestanding compilers.
3941 # On the NeXT, cc -E runs the code through the compiler's parser,
3942 # not just through cpp. "Syntax error" is here to catch this case.
3943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3944 /* end confdefs.h. */
3945 #ifdef __STDC__
3946 # include <limits.h>
3947 #else
3948 # include <assert.h>
3949 #endif
3950 Syntax error
3951 _ACEOF
3952 if ac_fn_c_try_cpp "$LINENO"; then :
3954 else
3955 # Broken: fails on valid input.
3956 continue
3958 rm -f conftest.err conftest.$ac_ext
3960 # OK, works on sane cases. Now check whether nonexistent headers
3961 # can be detected and how.
3962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3963 /* end confdefs.h. */
3964 #include <ac_nonexistent.h>
3965 _ACEOF
3966 if ac_fn_c_try_cpp "$LINENO"; then :
3967 # Broken: success on invalid input.
3968 continue
3969 else
3970 # Passes both tests.
3971 ac_preproc_ok=:
3972 break
3974 rm -f conftest.err conftest.$ac_ext
3976 done
3977 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3978 rm -f conftest.err conftest.$ac_ext
3979 if $ac_preproc_ok; then :
3980 break
3983 done
3984 ac_cv_prog_CPP=$CPP
3987 CPP=$ac_cv_prog_CPP
3988 else
3989 ac_cv_prog_CPP=$CPP
3991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3992 $as_echo "$CPP" >&6; }
3993 ac_preproc_ok=false
3994 for ac_c_preproc_warn_flag in '' yes
3996 # Use a header file that comes with gcc, so configuring glibc
3997 # with a fresh cross-compiler works.
3998 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3999 # <limits.h> exists even on freestanding compilers.
4000 # On the NeXT, cc -E runs the code through the compiler's parser,
4001 # not just through cpp. "Syntax error" is here to catch this case.
4002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4003 /* end confdefs.h. */
4004 #ifdef __STDC__
4005 # include <limits.h>
4006 #else
4007 # include <assert.h>
4008 #endif
4009 Syntax error
4010 _ACEOF
4011 if ac_fn_c_try_cpp "$LINENO"; then :
4013 else
4014 # Broken: fails on valid input.
4015 continue
4017 rm -f conftest.err conftest.$ac_ext
4019 # OK, works on sane cases. Now check whether nonexistent headers
4020 # can be detected and how.
4021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4022 /* end confdefs.h. */
4023 #include <ac_nonexistent.h>
4024 _ACEOF
4025 if ac_fn_c_try_cpp "$LINENO"; then :
4026 # Broken: success on invalid input.
4027 continue
4028 else
4029 # Passes both tests.
4030 ac_preproc_ok=:
4031 break
4033 rm -f conftest.err conftest.$ac_ext
4035 done
4036 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4037 rm -f conftest.err conftest.$ac_ext
4038 if $ac_preproc_ok; then :
4040 else
4041 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4042 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4043 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4044 See \`config.log' for more details." "$LINENO" 5; }
4047 ac_ext=c
4048 ac_cpp='$CPP $CPPFLAGS'
4049 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4050 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4051 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fstack-protector works" >&5
4055 $as_echo_n "checking whether -fstack-protector works... " >&6; }
4056 save_CFLAGS="$CFLAGS"
4057 CFLAGS="$CFLAGS -fstack-protector -Werror"
4059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4060 /* end confdefs.h. */
4062 void __attribute__((noinline)) bar (char *x)
4064 __builtin_memset (x, 0, 64);
4067 main ()
4069 char buf[64]; bar (buf);
4071 return 0;
4073 _ACEOF
4074 if ac_fn_c_try_compile "$LINENO"; then :
4075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4076 $as_echo "yes" >&6; }
4077 else
4078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4079 $as_echo "no" >&6; }
4081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4082 CFLAGS="$save_CFLAGS"
4084 # Add CET specific flags if CET is enabled
4085 # Check whether --enable-cet was given.
4086 if test "${enable_cet+set}" = set; then :
4087 enableval=$enable_cet;
4088 case "$enableval" in
4089 yes|no|default) ;;
4090 *) as_fn_error "Unknown argument to enable/disable cet" "$LINENO" 5 ;;
4091 esac
4093 else
4094 enable_cet=default
4098 case "$host" in
4099 i[34567]86-*-linux* | x86_64-*-linux*)
4100 case "$enable_cet" in
4101 default)
4102 # Check if assembler supports CET.
4103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4104 /* end confdefs.h. */
4107 main ()
4109 asm ("setssbsy");
4111 return 0;
4113 _ACEOF
4114 if ac_fn_c_try_compile "$LINENO"; then :
4115 enable_cet=yes
4116 else
4117 enable_cet=no
4119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4121 yes)
4122 # Check if assembler supports CET.
4123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4124 /* end confdefs.h. */
4127 main ()
4129 asm ("setssbsy");
4131 return 0;
4133 _ACEOF
4134 if ac_fn_c_try_compile "$LINENO"; then :
4136 else
4137 as_fn_error "assembler with CET support is required for --enable-cet" "$LINENO" 5
4139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4141 esac
4144 enable_cet=no
4146 esac
4147 if test x$enable_cet = xyes; then
4148 CET_FLAGS="-fcf-protection -mcet"
4151 XCFLAGS="$XCFLAGS $CET_FLAGS"
4154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether hidden visibility is supported" >&5
4155 $as_echo_n "checking whether hidden visibility is supported... " >&6; }
4156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4157 /* end confdefs.h. */
4159 void __attribute__((visibility ("hidden"))) bar (void) {}
4161 main ()
4165 return 0;
4167 _ACEOF
4168 if ac_fn_c_try_compile "$LINENO"; then :
4169 ssp_hidden=yes
4170 else
4171 ssp_hidden=no
4173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ssp_hidden" >&5
4175 $as_echo "$ssp_hidden" >&6; }
4176 if test x$ssp_hidden = xyes; then
4178 $as_echo "#define HAVE_HIDDEN_VISIBILITY 1" >>confdefs.h
4182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether symbol versioning is supported" >&5
4183 $as_echo_n "checking whether symbol versioning is supported... " >&6; }
4184 # Check whether --enable-symvers was given.
4185 if test "${enable_symvers+set}" = set; then :
4186 enableval=$enable_symvers; ssp_use_symver=$enableval
4187 else
4188 ssp_use_symver=yes
4191 if test "x$ssp_use_symver" != xno; then
4192 if test x$gcc_no_link = xyes; then
4193 # If we cannot link, we cannot build shared libraries, so do not use
4194 # symbol versioning.
4195 ssp_use_symver=no
4196 else
4197 save_LDFLAGS="$LDFLAGS"
4198 LDFLAGS="$LDFLAGS -fPIC -shared -Wl,--version-script,./conftest.map"
4199 cat > conftest.map <<EOF
4200 FOO_1.0 {
4201 global: *foo*; bar; local: *;
4204 if test x$gcc_no_link = xyes; then
4205 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
4207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4208 /* end confdefs.h. */
4209 int foo;
4211 main ()
4215 return 0;
4217 _ACEOF
4218 if ac_fn_c_try_link "$LINENO"; then :
4219 ssp_use_symver=gnu
4220 else
4221 ssp_use_symver=no
4223 rm -f core conftest.err conftest.$ac_objext \
4224 conftest$ac_exeext conftest.$ac_ext
4225 if test x$ssp_use_symver = xno; then
4226 case "$target_os" in
4227 solaris2*)
4228 LDFLAGS="$save_LDFLAGS"
4229 LDFLAGS="$LDFLAGS -fPIC -shared -Wl,-M,./conftest.map"
4230 # Sun ld cannot handle wildcards and treats all entries as undefined.
4231 cat > conftest.map <<EOF
4232 FOO_1.0 {
4233 global: foo; local: *;
4236 if test x$gcc_no_link = xyes; then
4237 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
4239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4240 /* end confdefs.h. */
4241 int foo;
4243 main ()
4247 return 0;
4249 _ACEOF
4250 if ac_fn_c_try_link "$LINENO"; then :
4251 ssp_use_symver=sun
4252 else
4253 ssp_use_symver=no
4255 rm -f core conftest.err conftest.$ac_objext \
4256 conftest$ac_exeext conftest.$ac_ext
4258 esac
4260 LDFLAGS="$save_LDFLAGS"
4263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ssp_use_symver" >&5
4264 $as_echo "$ssp_use_symver" >&6; }
4265 if test "x$ssp_use_symver" != xno; then
4266 LIBSSP_USE_SYMVER_TRUE=
4267 LIBSSP_USE_SYMVER_FALSE='#'
4268 else
4269 LIBSSP_USE_SYMVER_TRUE='#'
4270 LIBSSP_USE_SYMVER_FALSE=
4273 if test "x$ssp_use_symver" = xgnu; then
4274 LIBSSP_USE_SYMVER_GNU_TRUE=
4275 LIBSSP_USE_SYMVER_GNU_FALSE='#'
4276 else
4277 LIBSSP_USE_SYMVER_GNU_TRUE='#'
4278 LIBSSP_USE_SYMVER_GNU_FALSE=
4281 if test "x$ssp_use_symver" = xsun; then
4282 LIBSSP_USE_SYMVER_SUN_TRUE=
4283 LIBSSP_USE_SYMVER_SUN_FALSE='#'
4284 else
4285 LIBSSP_USE_SYMVER_SUN_TRUE='#'
4286 LIBSSP_USE_SYMVER_SUN_FALSE=
4291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4292 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4293 if test "${ac_cv_path_GREP+set}" = set; then :
4294 $as_echo_n "(cached) " >&6
4295 else
4296 if test -z "$GREP"; then
4297 ac_path_GREP_found=false
4298 # Loop through the user's path and test for each of PROGNAME-LIST
4299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4300 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4302 IFS=$as_save_IFS
4303 test -z "$as_dir" && as_dir=.
4304 for ac_prog in grep ggrep; do
4305 for ac_exec_ext in '' $ac_executable_extensions; do
4306 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4307 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4308 # Check for GNU ac_path_GREP and select it if it is found.
4309 # Check for GNU $ac_path_GREP
4310 case `"$ac_path_GREP" --version 2>&1` in
4311 *GNU*)
4312 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4314 ac_count=0
4315 $as_echo_n 0123456789 >"conftest.in"
4316 while :
4318 cat "conftest.in" "conftest.in" >"conftest.tmp"
4319 mv "conftest.tmp" "conftest.in"
4320 cp "conftest.in" "conftest.nl"
4321 $as_echo 'GREP' >> "conftest.nl"
4322 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4323 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4324 as_fn_arith $ac_count + 1 && ac_count=$as_val
4325 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4326 # Best one so far, save it but keep looking for a better one
4327 ac_cv_path_GREP="$ac_path_GREP"
4328 ac_path_GREP_max=$ac_count
4330 # 10*(2^10) chars as input seems more than enough
4331 test $ac_count -gt 10 && break
4332 done
4333 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4334 esac
4336 $ac_path_GREP_found && break 3
4337 done
4338 done
4339 done
4340 IFS=$as_save_IFS
4341 if test -z "$ac_cv_path_GREP"; then
4342 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4344 else
4345 ac_cv_path_GREP=$GREP
4349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4350 $as_echo "$ac_cv_path_GREP" >&6; }
4351 GREP="$ac_cv_path_GREP"
4354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4355 $as_echo_n "checking for egrep... " >&6; }
4356 if test "${ac_cv_path_EGREP+set}" = set; then :
4357 $as_echo_n "(cached) " >&6
4358 else
4359 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4360 then ac_cv_path_EGREP="$GREP -E"
4361 else
4362 if test -z "$EGREP"; then
4363 ac_path_EGREP_found=false
4364 # Loop through the user's path and test for each of PROGNAME-LIST
4365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4366 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4368 IFS=$as_save_IFS
4369 test -z "$as_dir" && as_dir=.
4370 for ac_prog in egrep; do
4371 for ac_exec_ext in '' $ac_executable_extensions; do
4372 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4373 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4374 # Check for GNU ac_path_EGREP and select it if it is found.
4375 # Check for GNU $ac_path_EGREP
4376 case `"$ac_path_EGREP" --version 2>&1` in
4377 *GNU*)
4378 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4380 ac_count=0
4381 $as_echo_n 0123456789 >"conftest.in"
4382 while :
4384 cat "conftest.in" "conftest.in" >"conftest.tmp"
4385 mv "conftest.tmp" "conftest.in"
4386 cp "conftest.in" "conftest.nl"
4387 $as_echo 'EGREP' >> "conftest.nl"
4388 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4389 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4390 as_fn_arith $ac_count + 1 && ac_count=$as_val
4391 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4392 # Best one so far, save it but keep looking for a better one
4393 ac_cv_path_EGREP="$ac_path_EGREP"
4394 ac_path_EGREP_max=$ac_count
4396 # 10*(2^10) chars as input seems more than enough
4397 test $ac_count -gt 10 && break
4398 done
4399 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4400 esac
4402 $ac_path_EGREP_found && break 3
4403 done
4404 done
4405 done
4406 IFS=$as_save_IFS
4407 if test -z "$ac_cv_path_EGREP"; then
4408 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4410 else
4411 ac_cv_path_EGREP=$EGREP
4416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4417 $as_echo "$ac_cv_path_EGREP" >&6; }
4418 EGREP="$ac_cv_path_EGREP"
4421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4422 $as_echo_n "checking for ANSI C header files... " >&6; }
4423 if test "${ac_cv_header_stdc+set}" = set; then :
4424 $as_echo_n "(cached) " >&6
4425 else
4426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4427 /* end confdefs.h. */
4428 #include <stdlib.h>
4429 #include <stdarg.h>
4430 #include <string.h>
4431 #include <float.h>
4434 main ()
4438 return 0;
4440 _ACEOF
4441 if ac_fn_c_try_compile "$LINENO"; then :
4442 ac_cv_header_stdc=yes
4443 else
4444 ac_cv_header_stdc=no
4446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4448 if test $ac_cv_header_stdc = yes; then
4449 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4451 /* end confdefs.h. */
4452 #include <string.h>
4454 _ACEOF
4455 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4456 $EGREP "memchr" >/dev/null 2>&1; then :
4458 else
4459 ac_cv_header_stdc=no
4461 rm -f conftest*
4465 if test $ac_cv_header_stdc = yes; then
4466 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4468 /* end confdefs.h. */
4469 #include <stdlib.h>
4471 _ACEOF
4472 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4473 $EGREP "free" >/dev/null 2>&1; then :
4475 else
4476 ac_cv_header_stdc=no
4478 rm -f conftest*
4482 if test $ac_cv_header_stdc = yes; then
4483 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4484 if test "$cross_compiling" = yes; then :
4486 else
4487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4488 /* end confdefs.h. */
4489 #include <ctype.h>
4490 #include <stdlib.h>
4491 #if ((' ' & 0x0FF) == 0x020)
4492 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4493 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4494 #else
4495 # define ISLOWER(c) \
4496 (('a' <= (c) && (c) <= 'i') \
4497 || ('j' <= (c) && (c) <= 'r') \
4498 || ('s' <= (c) && (c) <= 'z'))
4499 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4500 #endif
4502 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4504 main ()
4506 int i;
4507 for (i = 0; i < 256; i++)
4508 if (XOR (islower (i), ISLOWER (i))
4509 || toupper (i) != TOUPPER (i))
4510 return 2;
4511 return 0;
4513 _ACEOF
4514 if ac_fn_c_try_run "$LINENO"; then :
4516 else
4517 ac_cv_header_stdc=no
4519 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4520 conftest.$ac_objext conftest.beam conftest.$ac_ext
4525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4526 $as_echo "$ac_cv_header_stdc" >&6; }
4527 if test $ac_cv_header_stdc = yes; then
4529 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4533 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4534 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4535 inttypes.h stdint.h unistd.h
4536 do :
4537 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4538 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4540 eval as_val=\$$as_ac_Header
4541 if test "x$as_val" = x""yes; then :
4542 cat >>confdefs.h <<_ACEOF
4543 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4544 _ACEOF
4548 done
4551 for ac_header in alloca.h malloc.h paths.h syslog.h string.h unistd.h fcntl.h stdio.h limits.h
4552 do :
4553 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4554 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4555 eval as_val=\$$as_ac_Header
4556 if test "x$as_val" = x""yes; then :
4557 cat >>confdefs.h <<_ACEOF
4558 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4559 _ACEOF
4563 done
4566 if test x$gcc_no_link = xyes; then
4567 # Presume the ISO C functions are available; add target-specific
4568 # configuration here if required.
4569 $as_echo "#define HAVE_STRNCPY 1" >>confdefs.h
4571 $as_echo "#define HAVE_STRNCAT 1" >>confdefs.h
4573 else
4574 for ac_func in memmove mempcpy strncpy strncat
4575 do :
4576 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4577 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
4578 eval as_val=\$$as_ac_var
4579 if test "x$as_val" = x""yes; then :
4580 cat >>confdefs.h <<_ACEOF
4581 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
4582 _ACEOF
4585 done
4589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether vsnprintf is usable" >&5
4590 $as_echo_n "checking whether vsnprintf is usable... " >&6; }
4591 if test "$cross_compiling" = yes; then :
4592 ssp_have_usable_vsnprintf=undef
4593 else
4594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4595 /* end confdefs.h. */
4597 #include <stdarg.h>
4598 #include <string.h>
4599 #include <stdio.h>
4600 int foo (char *buf, size_t n, const char *fmt, ...)
4602 va_list ap;
4603 int ret;
4604 va_start (ap, fmt);
4605 ret = vsnprintf (buf, n, fmt, ap);
4606 va_end (ap);
4607 return ret;
4610 main ()
4612 char buf[8]; memset (buf, 'A', sizeof (buf));
4613 if (foo (buf, 4, ".%s.", "CDEFG") != 7)
4614 return 1;
4615 return memcmp (buf, ".CD\0AAAA", sizeof (buf)) != 0;
4617 return 0;
4619 _ACEOF
4620 if ac_fn_c_try_run "$LINENO"; then :
4621 ssp_have_usable_vsnprintf=define
4622 else
4623 ssp_have_usable_vsnprintf=undef
4625 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4626 conftest.$ac_objext conftest.beam conftest.$ac_ext
4629 if test "x$ssp_have_usable_vsnprintf" = xdefine; then
4630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4631 $as_echo "yes" >&6; }
4633 $as_echo "#define HAVE_USABLE_VSNPRINTF 1" >>confdefs.h
4635 else
4636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4637 $as_echo "no" >&6; }
4641 case `pwd` in
4642 *\ * | *\ *)
4643 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4644 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4645 esac
4649 macro_version='2.2.7a'
4650 macro_revision='1.3134'
4664 ltmain="$ac_aux_dir/ltmain.sh"
4666 # Backslashify metacharacters that are still active within
4667 # double-quoted strings.
4668 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4670 # Same as above, but do not quote variable references.
4671 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4673 # Sed substitution to delay expansion of an escaped shell variable in a
4674 # double_quote_subst'ed string.
4675 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4677 # Sed substitution to delay expansion of an escaped single quote.
4678 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4680 # Sed substitution to avoid accidental globbing in evaled expressions
4681 no_glob_subst='s/\*/\\\*/g'
4683 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4684 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4685 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4688 $as_echo_n "checking how to print strings... " >&6; }
4689 # Test print first, because it will be a builtin if present.
4690 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
4691 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4692 ECHO='print -r --'
4693 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4694 ECHO='printf %s\n'
4695 else
4696 # Use this function as a fallback that always works.
4697 func_fallback_echo ()
4699 eval 'cat <<_LTECHO_EOF
4701 _LTECHO_EOF'
4703 ECHO='func_fallback_echo'
4706 # func_echo_all arg...
4707 # Invoke $ECHO with all args, space-separated.
4708 func_echo_all ()
4710 $ECHO ""
4713 case "$ECHO" in
4714 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4715 $as_echo "printf" >&6; } ;;
4716 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4717 $as_echo "print -r" >&6; } ;;
4718 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4719 $as_echo "cat" >&6; } ;;
4720 esac
4735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4736 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4737 if test "${ac_cv_path_SED+set}" = set; then :
4738 $as_echo_n "(cached) " >&6
4739 else
4740 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4741 for ac_i in 1 2 3 4 5 6 7; do
4742 ac_script="$ac_script$as_nl$ac_script"
4743 done
4744 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4745 { ac_script=; unset ac_script;}
4746 if test -z "$SED"; then
4747 ac_path_SED_found=false
4748 # Loop through the user's path and test for each of PROGNAME-LIST
4749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4750 for as_dir in $PATH
4752 IFS=$as_save_IFS
4753 test -z "$as_dir" && as_dir=.
4754 for ac_prog in sed gsed; do
4755 for ac_exec_ext in '' $ac_executable_extensions; do
4756 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4757 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4758 # Check for GNU ac_path_SED and select it if it is found.
4759 # Check for GNU $ac_path_SED
4760 case `"$ac_path_SED" --version 2>&1` in
4761 *GNU*)
4762 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4764 ac_count=0
4765 $as_echo_n 0123456789 >"conftest.in"
4766 while :
4768 cat "conftest.in" "conftest.in" >"conftest.tmp"
4769 mv "conftest.tmp" "conftest.in"
4770 cp "conftest.in" "conftest.nl"
4771 $as_echo '' >> "conftest.nl"
4772 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4773 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4774 as_fn_arith $ac_count + 1 && ac_count=$as_val
4775 if test $ac_count -gt ${ac_path_SED_max-0}; then
4776 # Best one so far, save it but keep looking for a better one
4777 ac_cv_path_SED="$ac_path_SED"
4778 ac_path_SED_max=$ac_count
4780 # 10*(2^10) chars as input seems more than enough
4781 test $ac_count -gt 10 && break
4782 done
4783 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4784 esac
4786 $ac_path_SED_found && break 3
4787 done
4788 done
4789 done
4790 IFS=$as_save_IFS
4791 if test -z "$ac_cv_path_SED"; then
4792 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
4794 else
4795 ac_cv_path_SED=$SED
4799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4800 $as_echo "$ac_cv_path_SED" >&6; }
4801 SED="$ac_cv_path_SED"
4802 rm -f conftest.sed
4804 test -z "$SED" && SED=sed
4805 Xsed="$SED -e 1s/^X//"
4817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4818 $as_echo_n "checking for fgrep... " >&6; }
4819 if test "${ac_cv_path_FGREP+set}" = set; then :
4820 $as_echo_n "(cached) " >&6
4821 else
4822 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4823 then ac_cv_path_FGREP="$GREP -F"
4824 else
4825 if test -z "$FGREP"; then
4826 ac_path_FGREP_found=false
4827 # Loop through the user's path and test for each of PROGNAME-LIST
4828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4829 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4831 IFS=$as_save_IFS
4832 test -z "$as_dir" && as_dir=.
4833 for ac_prog in fgrep; do
4834 for ac_exec_ext in '' $ac_executable_extensions; do
4835 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4836 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4837 # Check for GNU ac_path_FGREP and select it if it is found.
4838 # Check for GNU $ac_path_FGREP
4839 case `"$ac_path_FGREP" --version 2>&1` in
4840 *GNU*)
4841 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4843 ac_count=0
4844 $as_echo_n 0123456789 >"conftest.in"
4845 while :
4847 cat "conftest.in" "conftest.in" >"conftest.tmp"
4848 mv "conftest.tmp" "conftest.in"
4849 cp "conftest.in" "conftest.nl"
4850 $as_echo 'FGREP' >> "conftest.nl"
4851 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4852 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4853 as_fn_arith $ac_count + 1 && ac_count=$as_val
4854 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4855 # Best one so far, save it but keep looking for a better one
4856 ac_cv_path_FGREP="$ac_path_FGREP"
4857 ac_path_FGREP_max=$ac_count
4859 # 10*(2^10) chars as input seems more than enough
4860 test $ac_count -gt 10 && break
4861 done
4862 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4863 esac
4865 $ac_path_FGREP_found && break 3
4866 done
4867 done
4868 done
4869 IFS=$as_save_IFS
4870 if test -z "$ac_cv_path_FGREP"; then
4871 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4873 else
4874 ac_cv_path_FGREP=$FGREP
4879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4880 $as_echo "$ac_cv_path_FGREP" >&6; }
4881 FGREP="$ac_cv_path_FGREP"
4884 test -z "$GREP" && GREP=grep
4904 # Check whether --with-gnu-ld was given.
4905 if test "${with_gnu_ld+set}" = set; then :
4906 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4907 else
4908 with_gnu_ld=no
4911 ac_prog=ld
4912 if test "$GCC" = yes; then
4913 # Check if gcc -print-prog-name=ld gives a path.
4914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4915 $as_echo_n "checking for ld used by $CC... " >&6; }
4916 case $host in
4917 *-*-mingw*)
4918 # gcc leaves a trailing carriage return which upsets mingw
4919 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4921 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4922 esac
4923 case $ac_prog in
4924 # Accept absolute paths.
4925 [\\/]* | ?:[\\/]*)
4926 re_direlt='/[^/][^/]*/\.\./'
4927 # Canonicalize the pathname of ld
4928 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4929 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4930 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4931 done
4932 test -z "$LD" && LD="$ac_prog"
4935 # If it fails, then pretend we aren't using GCC.
4936 ac_prog=ld
4939 # If it is relative, then search for the first ld in PATH.
4940 with_gnu_ld=unknown
4942 esac
4943 elif test "$with_gnu_ld" = yes; then
4944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4945 $as_echo_n "checking for GNU ld... " >&6; }
4946 else
4947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4948 $as_echo_n "checking for non-GNU ld... " >&6; }
4950 if test "${lt_cv_path_LD+set}" = set; then :
4951 $as_echo_n "(cached) " >&6
4952 else
4953 if test -z "$LD"; then
4954 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4955 for ac_dir in $PATH; do
4956 IFS="$lt_save_ifs"
4957 test -z "$ac_dir" && ac_dir=.
4958 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4959 lt_cv_path_LD="$ac_dir/$ac_prog"
4960 # Check to see if the program is GNU ld. I'd rather use --version,
4961 # but apparently some variants of GNU ld only accept -v.
4962 # Break only if it was the GNU/non-GNU ld that we prefer.
4963 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4964 *GNU* | *'with BFD'*)
4965 test "$with_gnu_ld" != no && break
4968 test "$with_gnu_ld" != yes && break
4970 esac
4972 done
4973 IFS="$lt_save_ifs"
4974 else
4975 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4979 LD="$lt_cv_path_LD"
4980 if test -n "$LD"; then
4981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4982 $as_echo "$LD" >&6; }
4983 else
4984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4985 $as_echo "no" >&6; }
4987 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
4988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4989 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4990 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4991 $as_echo_n "(cached) " >&6
4992 else
4993 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4994 case `$LD -v 2>&1 </dev/null` in
4995 *GNU* | *'with BFD'*)
4996 lt_cv_prog_gnu_ld=yes
4999 lt_cv_prog_gnu_ld=no
5001 esac
5003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5004 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5005 with_gnu_ld=$lt_cv_prog_gnu_ld
5015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5016 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5017 if test "${lt_cv_path_NM+set}" = set; then :
5018 $as_echo_n "(cached) " >&6
5019 else
5020 if test -n "$NM"; then
5021 # Let the user override the test.
5022 lt_cv_path_NM="$NM"
5023 else
5024 lt_nm_to_check="${ac_tool_prefix}nm"
5025 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5026 lt_nm_to_check="$lt_nm_to_check nm"
5028 for lt_tmp_nm in $lt_nm_to_check; do
5029 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5030 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5031 IFS="$lt_save_ifs"
5032 test -z "$ac_dir" && ac_dir=.
5033 tmp_nm="$ac_dir/$lt_tmp_nm"
5034 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5035 # Check to see if the nm accepts a BSD-compat flag.
5036 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5037 # nm: unknown option "B" ignored
5038 # Tru64's nm complains that /dev/null is an invalid object file
5039 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5040 */dev/null* | *'Invalid file or object type'*)
5041 lt_cv_path_NM="$tmp_nm -B"
5042 break
5045 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5046 */dev/null*)
5047 lt_cv_path_NM="$tmp_nm -p"
5048 break
5051 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5052 continue # so that we can try to find one that supports BSD flags
5054 esac
5056 esac
5058 done
5059 IFS="$lt_save_ifs"
5060 done
5061 : ${lt_cv_path_NM=no}
5064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5065 $as_echo "$lt_cv_path_NM" >&6; }
5066 if test "$lt_cv_path_NM" != "no"; then
5067 NM="$lt_cv_path_NM"
5068 else
5069 # Didn't find any BSD compatible name lister, look for dumpbin.
5070 if test -n "$DUMPBIN"; then :
5071 # Let the user override the test.
5072 else
5073 if test -n "$ac_tool_prefix"; then
5074 for ac_prog in dumpbin "link -dump"
5076 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5077 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5079 $as_echo_n "checking for $ac_word... " >&6; }
5080 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5081 $as_echo_n "(cached) " >&6
5082 else
5083 if test -n "$DUMPBIN"; then
5084 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5085 else
5086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5087 for as_dir in $PATH
5089 IFS=$as_save_IFS
5090 test -z "$as_dir" && as_dir=.
5091 for ac_exec_ext in '' $ac_executable_extensions; do
5092 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5093 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5094 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5095 break 2
5097 done
5098 done
5099 IFS=$as_save_IFS
5103 DUMPBIN=$ac_cv_prog_DUMPBIN
5104 if test -n "$DUMPBIN"; then
5105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5106 $as_echo "$DUMPBIN" >&6; }
5107 else
5108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5109 $as_echo "no" >&6; }
5113 test -n "$DUMPBIN" && break
5114 done
5116 if test -z "$DUMPBIN"; then
5117 ac_ct_DUMPBIN=$DUMPBIN
5118 for ac_prog in dumpbin "link -dump"
5120 # Extract the first word of "$ac_prog", so it can be a program name with args.
5121 set dummy $ac_prog; ac_word=$2
5122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5123 $as_echo_n "checking for $ac_word... " >&6; }
5124 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5125 $as_echo_n "(cached) " >&6
5126 else
5127 if test -n "$ac_ct_DUMPBIN"; then
5128 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5129 else
5130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5131 for as_dir in $PATH
5133 IFS=$as_save_IFS
5134 test -z "$as_dir" && as_dir=.
5135 for ac_exec_ext in '' $ac_executable_extensions; do
5136 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5137 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5138 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5139 break 2
5141 done
5142 done
5143 IFS=$as_save_IFS
5147 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5148 if test -n "$ac_ct_DUMPBIN"; then
5149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5150 $as_echo "$ac_ct_DUMPBIN" >&6; }
5151 else
5152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5153 $as_echo "no" >&6; }
5157 test -n "$ac_ct_DUMPBIN" && break
5158 done
5160 if test "x$ac_ct_DUMPBIN" = x; then
5161 DUMPBIN=":"
5162 else
5163 case $cross_compiling:$ac_tool_warned in
5164 yes:)
5165 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5166 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5167 ac_tool_warned=yes ;;
5168 esac
5169 DUMPBIN=$ac_ct_DUMPBIN
5173 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5174 *COFF*)
5175 DUMPBIN="$DUMPBIN -symbols"
5178 DUMPBIN=:
5180 esac
5183 if test "$DUMPBIN" != ":"; then
5184 NM="$DUMPBIN"
5187 test -z "$NM" && NM=nm
5194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5195 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5196 if test "${lt_cv_nm_interface+set}" = set; then :
5197 $as_echo_n "(cached) " >&6
5198 else
5199 lt_cv_nm_interface="BSD nm"
5200 echo "int some_variable = 0;" > conftest.$ac_ext
5201 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5202 (eval "$ac_compile" 2>conftest.err)
5203 cat conftest.err >&5
5204 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5205 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5206 cat conftest.err >&5
5207 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5208 cat conftest.out >&5
5209 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5210 lt_cv_nm_interface="MS dumpbin"
5212 rm -f conftest*
5214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5215 $as_echo "$lt_cv_nm_interface" >&6; }
5217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5218 $as_echo_n "checking whether ln -s works... " >&6; }
5219 LN_S=$as_ln_s
5220 if test "$LN_S" = "ln -s"; then
5221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5222 $as_echo "yes" >&6; }
5223 else
5224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5225 $as_echo "no, using $LN_S" >&6; }
5228 # find the maximum length of command line arguments
5229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5230 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5231 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5232 $as_echo_n "(cached) " >&6
5233 else
5235 teststring="ABCD"
5237 case $build_os in
5238 msdosdjgpp*)
5239 # On DJGPP, this test can blow up pretty badly due to problems in libc
5240 # (any single argument exceeding 2000 bytes causes a buffer overrun
5241 # during glob expansion). Even if it were fixed, the result of this
5242 # check would be larger than it should be.
5243 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5246 gnu*)
5247 # Under GNU Hurd, this test is not required because there is
5248 # no limit to the length of command line arguments.
5249 # Libtool will interpret -1 as no limit whatsoever
5250 lt_cv_sys_max_cmd_len=-1;
5253 cygwin* | mingw* | cegcc*)
5254 # On Win9x/ME, this test blows up -- it succeeds, but takes
5255 # about 5 minutes as the teststring grows exponentially.
5256 # Worse, since 9x/ME are not pre-emptively multitasking,
5257 # you end up with a "frozen" computer, even though with patience
5258 # the test eventually succeeds (with a max line length of 256k).
5259 # Instead, let's just punt: use the minimum linelength reported by
5260 # all of the supported platforms: 8192 (on NT/2K/XP).
5261 lt_cv_sys_max_cmd_len=8192;
5264 mint*)
5265 # On MiNT this can take a long time and run out of memory.
5266 lt_cv_sys_max_cmd_len=8192;
5269 amigaos*)
5270 # On AmigaOS with pdksh, this test takes hours, literally.
5271 # So we just punt and use a minimum line length of 8192.
5272 lt_cv_sys_max_cmd_len=8192;
5275 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5276 # This has been around since 386BSD, at least. Likely further.
5277 if test -x /sbin/sysctl; then
5278 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5279 elif test -x /usr/sbin/sysctl; then
5280 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5281 else
5282 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5284 # And add a safety zone
5285 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5286 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5289 interix*)
5290 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5291 lt_cv_sys_max_cmd_len=196608
5294 osf*)
5295 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5296 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5297 # nice to cause kernel panics so lets avoid the loop below.
5298 # First set a reasonable default.
5299 lt_cv_sys_max_cmd_len=16384
5301 if test -x /sbin/sysconfig; then
5302 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5303 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5304 esac
5307 sco3.2v5*)
5308 lt_cv_sys_max_cmd_len=102400
5310 sysv5* | sco5v6* | sysv4.2uw2*)
5311 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5312 if test -n "$kargmax"; then
5313 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5314 else
5315 lt_cv_sys_max_cmd_len=32768
5319 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5320 if test -n "$lt_cv_sys_max_cmd_len"; then
5321 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5322 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5323 else
5324 # Make teststring a little bigger before we do anything with it.
5325 # a 1K string should be a reasonable start.
5326 for i in 1 2 3 4 5 6 7 8 ; do
5327 teststring=$teststring$teststring
5328 done
5329 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5330 # If test is not a shell built-in, we'll probably end up computing a
5331 # maximum length that is only half of the actual maximum length, but
5332 # we can't tell.
5333 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5334 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5335 test $i != 17 # 1/2 MB should be enough
5337 i=`expr $i + 1`
5338 teststring=$teststring$teststring
5339 done
5340 # Only check the string length outside the loop.
5341 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5342 teststring=
5343 # Add a significant safety factor because C++ compilers can tack on
5344 # massive amounts of additional arguments before passing them to the
5345 # linker. It appears as though 1/2 is a usable value.
5346 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5349 esac
5353 if test -n $lt_cv_sys_max_cmd_len ; then
5354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5355 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5356 else
5357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5358 $as_echo "none" >&6; }
5360 max_cmd_len=$lt_cv_sys_max_cmd_len
5367 : ${CP="cp -f"}
5368 : ${MV="mv -f"}
5369 : ${RM="rm -f"}
5371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5372 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5373 # Try some XSI features
5374 xsi_shell=no
5375 ( _lt_dummy="a/b/c"
5376 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5377 = c,a/b,, \
5378 && eval 'test $(( 1 + 1 )) -eq 2 \
5379 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5380 && xsi_shell=yes
5381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5382 $as_echo "$xsi_shell" >&6; }
5385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5386 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5387 lt_shell_append=no
5388 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5389 >/dev/null 2>&1 \
5390 && lt_shell_append=yes
5391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5392 $as_echo "$lt_shell_append" >&6; }
5395 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5396 lt_unset=unset
5397 else
5398 lt_unset=false
5405 # test EBCDIC or ASCII
5406 case `echo X|tr X '\101'` in
5407 A) # ASCII based system
5408 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5409 lt_SP2NL='tr \040 \012'
5410 lt_NL2SP='tr \015\012 \040\040'
5412 *) # EBCDIC based system
5413 lt_SP2NL='tr \100 \n'
5414 lt_NL2SP='tr \r\n \100\100'
5416 esac
5426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5427 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5428 if test "${lt_cv_ld_reload_flag+set}" = set; then :
5429 $as_echo_n "(cached) " >&6
5430 else
5431 lt_cv_ld_reload_flag='-r'
5433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5434 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5435 reload_flag=$lt_cv_ld_reload_flag
5436 case $reload_flag in
5437 "" | " "*) ;;
5438 *) reload_flag=" $reload_flag" ;;
5439 esac
5440 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5441 case $host_os in
5442 darwin*)
5443 if test "$GCC" = yes; then
5444 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5445 else
5446 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5449 esac
5459 if test -n "$ac_tool_prefix"; then
5460 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5461 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5463 $as_echo_n "checking for $ac_word... " >&6; }
5464 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5465 $as_echo_n "(cached) " >&6
5466 else
5467 if test -n "$OBJDUMP"; then
5468 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5469 else
5470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5471 for as_dir in $PATH
5473 IFS=$as_save_IFS
5474 test -z "$as_dir" && as_dir=.
5475 for ac_exec_ext in '' $ac_executable_extensions; do
5476 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5477 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5478 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5479 break 2
5481 done
5482 done
5483 IFS=$as_save_IFS
5487 OBJDUMP=$ac_cv_prog_OBJDUMP
5488 if test -n "$OBJDUMP"; then
5489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5490 $as_echo "$OBJDUMP" >&6; }
5491 else
5492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5493 $as_echo "no" >&6; }
5498 if test -z "$ac_cv_prog_OBJDUMP"; then
5499 ac_ct_OBJDUMP=$OBJDUMP
5500 # Extract the first word of "objdump", so it can be a program name with args.
5501 set dummy objdump; ac_word=$2
5502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5503 $as_echo_n "checking for $ac_word... " >&6; }
5504 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5505 $as_echo_n "(cached) " >&6
5506 else
5507 if test -n "$ac_ct_OBJDUMP"; then
5508 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5509 else
5510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5511 for as_dir in $PATH
5513 IFS=$as_save_IFS
5514 test -z "$as_dir" && as_dir=.
5515 for ac_exec_ext in '' $ac_executable_extensions; do
5516 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5517 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5518 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5519 break 2
5521 done
5522 done
5523 IFS=$as_save_IFS
5527 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5528 if test -n "$ac_ct_OBJDUMP"; then
5529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5530 $as_echo "$ac_ct_OBJDUMP" >&6; }
5531 else
5532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5533 $as_echo "no" >&6; }
5536 if test "x$ac_ct_OBJDUMP" = x; then
5537 OBJDUMP="false"
5538 else
5539 case $cross_compiling:$ac_tool_warned in
5540 yes:)
5541 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5542 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5543 ac_tool_warned=yes ;;
5544 esac
5545 OBJDUMP=$ac_ct_OBJDUMP
5547 else
5548 OBJDUMP="$ac_cv_prog_OBJDUMP"
5551 test -z "$OBJDUMP" && OBJDUMP=objdump
5561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5562 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5563 if test "${lt_cv_deplibs_check_method+set}" = set; then :
5564 $as_echo_n "(cached) " >&6
5565 else
5566 lt_cv_file_magic_cmd='$MAGIC_CMD'
5567 lt_cv_file_magic_test_file=
5568 lt_cv_deplibs_check_method='unknown'
5569 # Need to set the preceding variable on all platforms that support
5570 # interlibrary dependencies.
5571 # 'none' -- dependencies not supported.
5572 # `unknown' -- same as none, but documents that we really don't know.
5573 # 'pass_all' -- all dependencies passed with no checks.
5574 # 'test_compile' -- check by making test program.
5575 # 'file_magic [[regex]]' -- check by looking for files in library path
5576 # which responds to the $file_magic_cmd with a given extended regex.
5577 # If you have `file' or equivalent on your system and you're not sure
5578 # whether `pass_all' will *always* work, you probably want this one.
5580 case $host_os in
5581 aix[4-9]*)
5582 lt_cv_deplibs_check_method=pass_all
5585 beos*)
5586 lt_cv_deplibs_check_method=pass_all
5589 bsdi[45]*)
5590 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5591 lt_cv_file_magic_cmd='/usr/bin/file -L'
5592 lt_cv_file_magic_test_file=/shlib/libc.so
5595 cygwin*)
5596 # func_win32_libid is a shell function defined in ltmain.sh
5597 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5598 lt_cv_file_magic_cmd='func_win32_libid'
5601 mingw* | pw32*)
5602 # Base MSYS/MinGW do not provide the 'file' command needed by
5603 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5604 # unless we find 'file', for example because we are cross-compiling.
5605 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5606 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5607 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5608 lt_cv_file_magic_cmd='func_win32_libid'
5609 else
5610 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5611 lt_cv_file_magic_cmd='$OBJDUMP -f'
5615 cegcc*)
5616 # use the weaker test based on 'objdump'. See mingw*.
5617 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5618 lt_cv_file_magic_cmd='$OBJDUMP -f'
5621 darwin* | rhapsody*)
5622 lt_cv_deplibs_check_method=pass_all
5625 freebsd* | dragonfly*)
5626 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5627 case $host_cpu in
5628 i*86 )
5629 # Not sure whether the presence of OpenBSD here was a mistake.
5630 # Let's accept both of them until this is cleared up.
5631 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5632 lt_cv_file_magic_cmd=/usr/bin/file
5633 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5635 esac
5636 else
5637 lt_cv_deplibs_check_method=pass_all
5641 gnu*)
5642 lt_cv_deplibs_check_method=pass_all
5645 haiku*)
5646 lt_cv_deplibs_check_method=pass_all
5649 hpux10.20* | hpux11*)
5650 lt_cv_file_magic_cmd=/usr/bin/file
5651 case $host_cpu in
5652 ia64*)
5653 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5654 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5656 hppa*64*)
5657 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]'
5658 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5661 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5662 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5664 esac
5667 interix[3-9]*)
5668 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5669 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5672 irix5* | irix6* | nonstopux*)
5673 case $LD in
5674 *-32|*"-32 ") libmagic=32-bit;;
5675 *-n32|*"-n32 ") libmagic=N32;;
5676 *-64|*"-64 ") libmagic=64-bit;;
5677 *) libmagic=never-match;;
5678 esac
5679 lt_cv_deplibs_check_method=pass_all
5682 # This must be Linux ELF.
5683 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5684 lt_cv_deplibs_check_method=pass_all
5687 netbsd*)
5688 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5689 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5690 else
5691 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5695 newos6*)
5696 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5697 lt_cv_file_magic_cmd=/usr/bin/file
5698 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5701 *nto* | *qnx*)
5702 lt_cv_deplibs_check_method=pass_all
5705 openbsd*)
5706 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5707 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5708 else
5709 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5713 osf3* | osf4* | osf5*)
5714 lt_cv_deplibs_check_method=pass_all
5717 rdos*)
5718 lt_cv_deplibs_check_method=pass_all
5721 solaris*)
5722 lt_cv_deplibs_check_method=pass_all
5725 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5726 lt_cv_deplibs_check_method=pass_all
5729 sysv4 | sysv4.3*)
5730 case $host_vendor in
5731 motorola)
5732 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]'
5733 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5735 ncr)
5736 lt_cv_deplibs_check_method=pass_all
5738 sequent)
5739 lt_cv_file_magic_cmd='/bin/file'
5740 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5742 sni)
5743 lt_cv_file_magic_cmd='/bin/file'
5744 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5745 lt_cv_file_magic_test_file=/lib/libc.so
5747 siemens)
5748 lt_cv_deplibs_check_method=pass_all
5751 lt_cv_deplibs_check_method=pass_all
5753 esac
5756 tpf*)
5757 lt_cv_deplibs_check_method=pass_all
5759 esac
5762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5763 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5764 file_magic_cmd=$lt_cv_file_magic_cmd
5765 deplibs_check_method=$lt_cv_deplibs_check_method
5766 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5779 if test -n "$ac_tool_prefix"; then
5780 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5781 set dummy ${ac_tool_prefix}ar; ac_word=$2
5782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5783 $as_echo_n "checking for $ac_word... " >&6; }
5784 if test "${ac_cv_prog_AR+set}" = set; then :
5785 $as_echo_n "(cached) " >&6
5786 else
5787 if test -n "$AR"; then
5788 ac_cv_prog_AR="$AR" # Let the user override the test.
5789 else
5790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5791 for as_dir in $PATH
5793 IFS=$as_save_IFS
5794 test -z "$as_dir" && as_dir=.
5795 for ac_exec_ext in '' $ac_executable_extensions; do
5796 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5797 ac_cv_prog_AR="${ac_tool_prefix}ar"
5798 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5799 break 2
5801 done
5802 done
5803 IFS=$as_save_IFS
5807 AR=$ac_cv_prog_AR
5808 if test -n "$AR"; then
5809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5810 $as_echo "$AR" >&6; }
5811 else
5812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5813 $as_echo "no" >&6; }
5818 if test -z "$ac_cv_prog_AR"; then
5819 ac_ct_AR=$AR
5820 # Extract the first word of "ar", so it can be a program name with args.
5821 set dummy ar; ac_word=$2
5822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5823 $as_echo_n "checking for $ac_word... " >&6; }
5824 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5825 $as_echo_n "(cached) " >&6
5826 else
5827 if test -n "$ac_ct_AR"; then
5828 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5829 else
5830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5831 for as_dir in $PATH
5833 IFS=$as_save_IFS
5834 test -z "$as_dir" && as_dir=.
5835 for ac_exec_ext in '' $ac_executable_extensions; do
5836 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5837 ac_cv_prog_ac_ct_AR="ar"
5838 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5839 break 2
5841 done
5842 done
5843 IFS=$as_save_IFS
5847 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5848 if test -n "$ac_ct_AR"; then
5849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5850 $as_echo "$ac_ct_AR" >&6; }
5851 else
5852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5853 $as_echo "no" >&6; }
5856 if test "x$ac_ct_AR" = x; then
5857 AR="false"
5858 else
5859 case $cross_compiling:$ac_tool_warned in
5860 yes:)
5861 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5862 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5863 ac_tool_warned=yes ;;
5864 esac
5865 AR=$ac_ct_AR
5867 else
5868 AR="$ac_cv_prog_AR"
5871 test -z "$AR" && AR=ar
5872 test -z "$AR_FLAGS" && AR_FLAGS=cru
5884 if test -n "$ac_tool_prefix"; then
5885 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5886 set dummy ${ac_tool_prefix}strip; ac_word=$2
5887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5888 $as_echo_n "checking for $ac_word... " >&6; }
5889 if test "${ac_cv_prog_STRIP+set}" = set; then :
5890 $as_echo_n "(cached) " >&6
5891 else
5892 if test -n "$STRIP"; then
5893 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5894 else
5895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5896 for as_dir in $PATH
5898 IFS=$as_save_IFS
5899 test -z "$as_dir" && as_dir=.
5900 for ac_exec_ext in '' $ac_executable_extensions; do
5901 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5902 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5903 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5904 break 2
5906 done
5907 done
5908 IFS=$as_save_IFS
5912 STRIP=$ac_cv_prog_STRIP
5913 if test -n "$STRIP"; then
5914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5915 $as_echo "$STRIP" >&6; }
5916 else
5917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5918 $as_echo "no" >&6; }
5923 if test -z "$ac_cv_prog_STRIP"; then
5924 ac_ct_STRIP=$STRIP
5925 # Extract the first word of "strip", so it can be a program name with args.
5926 set dummy strip; ac_word=$2
5927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5928 $as_echo_n "checking for $ac_word... " >&6; }
5929 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5930 $as_echo_n "(cached) " >&6
5931 else
5932 if test -n "$ac_ct_STRIP"; then
5933 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5934 else
5935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5936 for as_dir in $PATH
5938 IFS=$as_save_IFS
5939 test -z "$as_dir" && as_dir=.
5940 for ac_exec_ext in '' $ac_executable_extensions; do
5941 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5942 ac_cv_prog_ac_ct_STRIP="strip"
5943 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5944 break 2
5946 done
5947 done
5948 IFS=$as_save_IFS
5952 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5953 if test -n "$ac_ct_STRIP"; then
5954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5955 $as_echo "$ac_ct_STRIP" >&6; }
5956 else
5957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5958 $as_echo "no" >&6; }
5961 if test "x$ac_ct_STRIP" = x; then
5962 STRIP=":"
5963 else
5964 case $cross_compiling:$ac_tool_warned in
5965 yes:)
5966 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5967 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5968 ac_tool_warned=yes ;;
5969 esac
5970 STRIP=$ac_ct_STRIP
5972 else
5973 STRIP="$ac_cv_prog_STRIP"
5976 test -z "$STRIP" && STRIP=:
5983 if test -n "$ac_tool_prefix"; then
5984 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5985 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5987 $as_echo_n "checking for $ac_word... " >&6; }
5988 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5989 $as_echo_n "(cached) " >&6
5990 else
5991 if test -n "$RANLIB"; then
5992 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5993 else
5994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5995 for as_dir in $PATH
5997 IFS=$as_save_IFS
5998 test -z "$as_dir" && as_dir=.
5999 for ac_exec_ext in '' $ac_executable_extensions; do
6000 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6001 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6002 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6003 break 2
6005 done
6006 done
6007 IFS=$as_save_IFS
6011 RANLIB=$ac_cv_prog_RANLIB
6012 if test -n "$RANLIB"; then
6013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6014 $as_echo "$RANLIB" >&6; }
6015 else
6016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6017 $as_echo "no" >&6; }
6022 if test -z "$ac_cv_prog_RANLIB"; then
6023 ac_ct_RANLIB=$RANLIB
6024 # Extract the first word of "ranlib", so it can be a program name with args.
6025 set dummy ranlib; ac_word=$2
6026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6027 $as_echo_n "checking for $ac_word... " >&6; }
6028 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6029 $as_echo_n "(cached) " >&6
6030 else
6031 if test -n "$ac_ct_RANLIB"; then
6032 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6033 else
6034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6035 for as_dir in $PATH
6037 IFS=$as_save_IFS
6038 test -z "$as_dir" && as_dir=.
6039 for ac_exec_ext in '' $ac_executable_extensions; do
6040 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6041 ac_cv_prog_ac_ct_RANLIB="ranlib"
6042 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6043 break 2
6045 done
6046 done
6047 IFS=$as_save_IFS
6051 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6052 if test -n "$ac_ct_RANLIB"; then
6053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6054 $as_echo "$ac_ct_RANLIB" >&6; }
6055 else
6056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6057 $as_echo "no" >&6; }
6060 if test "x$ac_ct_RANLIB" = x; then
6061 RANLIB=":"
6062 else
6063 case $cross_compiling:$ac_tool_warned in
6064 yes:)
6065 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6066 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6067 ac_tool_warned=yes ;;
6068 esac
6069 RANLIB=$ac_ct_RANLIB
6071 else
6072 RANLIB="$ac_cv_prog_RANLIB"
6075 test -z "$RANLIB" && RANLIB=:
6082 # Determine commands to create old-style static archives.
6083 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6084 old_postinstall_cmds='chmod 644 $oldlib'
6085 old_postuninstall_cmds=
6087 if test -n "$RANLIB"; then
6088 case $host_os in
6089 openbsd*)
6090 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6093 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6095 esac
6096 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6099 case $host_os in
6100 darwin*)
6101 lock_old_archive_extraction=yes ;;
6103 lock_old_archive_extraction=no ;;
6104 esac
6144 # If no C compiler was specified, use CC.
6145 LTCC=${LTCC-"$CC"}
6147 # If no C compiler flags were specified, use CFLAGS.
6148 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6150 # Allow CC to be a program name with arguments.
6151 compiler=$CC
6154 # Check for command to grab the raw symbol name followed by C symbol from nm.
6155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6156 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6157 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6158 $as_echo_n "(cached) " >&6
6159 else
6161 # These are sane defaults that work on at least a few old systems.
6162 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6164 # Character class describing NM global symbol codes.
6165 symcode='[BCDEGRST]'
6167 # Regexp to match symbols that can be accessed directly from C.
6168 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6170 # Define system-specific variables.
6171 case $host_os in
6172 aix*)
6173 symcode='[BCDT]'
6175 cygwin* | mingw* | pw32* | cegcc*)
6176 symcode='[ABCDGISTW]'
6178 hpux*)
6179 if test "$host_cpu" = ia64; then
6180 symcode='[ABCDEGRST]'
6183 irix* | nonstopux*)
6184 symcode='[BCDEGRST]'
6186 osf*)
6187 symcode='[BCDEGQRST]'
6189 solaris*)
6190 symcode='[BDRT]'
6192 sco3.2v5*)
6193 symcode='[DT]'
6195 sysv4.2uw2*)
6196 symcode='[DT]'
6198 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6199 symcode='[ABDT]'
6201 sysv4)
6202 symcode='[DFNSTU]'
6204 esac
6206 # If we're using GNU nm, then use its standard symbol codes.
6207 case `$NM -V 2>&1` in
6208 *GNU* | *'with BFD'*)
6209 symcode='[ABCDGIRSTW]' ;;
6210 esac
6212 # Transform an extracted symbol line into a proper C declaration.
6213 # Some systems (esp. on ia64) link data and code symbols differently,
6214 # so use this general approach.
6215 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6217 # Transform an extracted symbol line into symbol name and symbol address
6218 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6219 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'"
6221 # Handle CRLF in mingw tool chain
6222 opt_cr=
6223 case $build_os in
6224 mingw*)
6225 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6227 esac
6229 # Try without a prefix underscore, then with it.
6230 for ac_symprfx in "" "_"; do
6232 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6233 symxfrm="\\1 $ac_symprfx\\2 \\2"
6235 # Write the raw and C identifiers.
6236 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6237 # Fake it for dumpbin and say T for any non-static function
6238 # and D for any global variable.
6239 # Also find C++ and __fastcall symbols from MSVC++,
6240 # which start with @ or ?.
6241 lt_cv_sys_global_symbol_pipe="$AWK '"\
6242 " {last_section=section; section=\$ 3};"\
6243 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6244 " \$ 0!~/External *\|/{next};"\
6245 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6246 " {if(hide[section]) next};"\
6247 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6248 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6249 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6250 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6251 " ' prfx=^$ac_symprfx"
6252 else
6253 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6256 # Check to see that the pipe works correctly.
6257 pipe_works=no
6259 rm -f conftest*
6260 cat > conftest.$ac_ext <<_LT_EOF
6261 #ifdef __cplusplus
6262 extern "C" {
6263 #endif
6264 char nm_test_var;
6265 void nm_test_func(void);
6266 void nm_test_func(void){}
6267 #ifdef __cplusplus
6269 #endif
6270 int main(){nm_test_var='a';nm_test_func();return(0);}
6271 _LT_EOF
6273 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6274 (eval $ac_compile) 2>&5
6275 ac_status=$?
6276 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6277 test $ac_status = 0; }; then
6278 # Now try to grab the symbols.
6279 nlist=conftest.nm
6280 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6281 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6282 ac_status=$?
6283 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6284 test $ac_status = 0; } && test -s "$nlist"; then
6285 # Try sorting and uniquifying the output.
6286 if sort "$nlist" | uniq > "$nlist"T; then
6287 mv -f "$nlist"T "$nlist"
6288 else
6289 rm -f "$nlist"T
6292 # Make sure that we snagged all the symbols we need.
6293 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6294 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6295 cat <<_LT_EOF > conftest.$ac_ext
6296 #ifdef __cplusplus
6297 extern "C" {
6298 #endif
6300 _LT_EOF
6301 # Now generate the symbol file.
6302 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6304 cat <<_LT_EOF >> conftest.$ac_ext
6306 /* The mapping between symbol names and symbols. */
6307 const struct {
6308 const char *name;
6309 void *address;
6311 lt__PROGRAM__LTX_preloaded_symbols[] =
6313 { "@PROGRAM@", (void *) 0 },
6314 _LT_EOF
6315 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6316 cat <<\_LT_EOF >> conftest.$ac_ext
6317 {0, (void *) 0}
6320 /* This works around a problem in FreeBSD linker */
6321 #ifdef FREEBSD_WORKAROUND
6322 static const void *lt_preloaded_setup() {
6323 return lt__PROGRAM__LTX_preloaded_symbols;
6325 #endif
6327 #ifdef __cplusplus
6329 #endif
6330 _LT_EOF
6331 # Now try linking the two files.
6332 mv conftest.$ac_objext conftstm.$ac_objext
6333 lt_save_LIBS="$LIBS"
6334 lt_save_CFLAGS="$CFLAGS"
6335 LIBS="conftstm.$ac_objext"
6336 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6337 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6338 (eval $ac_link) 2>&5
6339 ac_status=$?
6340 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6341 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6342 pipe_works=yes
6344 LIBS="$lt_save_LIBS"
6345 CFLAGS="$lt_save_CFLAGS"
6346 else
6347 echo "cannot find nm_test_func in $nlist" >&5
6349 else
6350 echo "cannot find nm_test_var in $nlist" >&5
6352 else
6353 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6355 else
6356 echo "$progname: failed program was:" >&5
6357 cat conftest.$ac_ext >&5
6359 rm -rf conftest* conftst*
6361 # Do not use the global_symbol_pipe unless it works.
6362 if test "$pipe_works" = yes; then
6363 break
6364 else
6365 lt_cv_sys_global_symbol_pipe=
6367 done
6371 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6372 lt_cv_sys_global_symbol_to_cdecl=
6374 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6376 $as_echo "failed" >&6; }
6377 else
6378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6379 $as_echo "ok" >&6; }
6403 # Check whether --enable-libtool-lock was given.
6404 if test "${enable_libtool_lock+set}" = set; then :
6405 enableval=$enable_libtool_lock;
6408 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6410 # Some flags need to be propagated to the compiler or linker for good
6411 # libtool support.
6412 case $host in
6413 ia64-*-hpux*)
6414 # Find out which ABI we are using.
6415 echo 'int i;' > conftest.$ac_ext
6416 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6417 (eval $ac_compile) 2>&5
6418 ac_status=$?
6419 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6420 test $ac_status = 0; }; then
6421 case `/usr/bin/file conftest.$ac_objext` in
6422 *ELF-32*)
6423 HPUX_IA64_MODE="32"
6425 *ELF-64*)
6426 HPUX_IA64_MODE="64"
6428 esac
6430 rm -rf conftest*
6432 *-*-irix6*)
6433 # Find out which ABI we are using.
6434 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6435 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6436 (eval $ac_compile) 2>&5
6437 ac_status=$?
6438 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6439 test $ac_status = 0; }; then
6440 if test "$lt_cv_prog_gnu_ld" = yes; then
6441 case `/usr/bin/file conftest.$ac_objext` in
6442 *32-bit*)
6443 LD="${LD-ld} -melf32bsmip"
6445 *N32*)
6446 LD="${LD-ld} -melf32bmipn32"
6448 *64-bit*)
6449 LD="${LD-ld} -melf64bmip"
6451 esac
6452 else
6453 case `/usr/bin/file conftest.$ac_objext` in
6454 *32-bit*)
6455 LD="${LD-ld} -32"
6457 *N32*)
6458 LD="${LD-ld} -n32"
6460 *64-bit*)
6461 LD="${LD-ld} -64"
6463 esac
6466 rm -rf conftest*
6469 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6470 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6471 # Find out which ABI we are using.
6472 echo 'int i;' > conftest.$ac_ext
6473 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6474 (eval $ac_compile) 2>&5
6475 ac_status=$?
6476 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6477 test $ac_status = 0; }; then
6478 case `/usr/bin/file conftest.o` in
6479 *32-bit*)
6480 case $host in
6481 x86_64-*kfreebsd*-gnu)
6482 LD="${LD-ld} -m elf_i386_fbsd"
6484 x86_64-*linux*)
6485 case `/usr/bin/file conftest.o` in
6486 *x86-64*)
6487 LD="${LD-ld} -m elf32_x86_64"
6490 LD="${LD-ld} -m elf_i386"
6492 esac
6494 powerpc64le-*linux*)
6495 LD="${LD-ld} -m elf32lppclinux"
6497 powerpc64-*linux*)
6498 LD="${LD-ld} -m elf32ppclinux"
6500 s390x-*linux*)
6501 LD="${LD-ld} -m elf_s390"
6503 sparc64-*linux*)
6504 LD="${LD-ld} -m elf32_sparc"
6506 esac
6508 *64-bit*)
6509 case $host in
6510 x86_64-*kfreebsd*-gnu)
6511 LD="${LD-ld} -m elf_x86_64_fbsd"
6513 x86_64-*linux*)
6514 LD="${LD-ld} -m elf_x86_64"
6516 powerpcle-*linux*)
6517 LD="${LD-ld} -m elf64lppc"
6519 powerpc-*linux*)
6520 LD="${LD-ld} -m elf64ppc"
6522 s390*-*linux*|s390*-*tpf*)
6523 LD="${LD-ld} -m elf64_s390"
6525 sparc*-*linux*)
6526 LD="${LD-ld} -m elf64_sparc"
6528 esac
6530 esac
6532 rm -rf conftest*
6535 *-*-sco3.2v5*)
6536 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6537 SAVE_CFLAGS="$CFLAGS"
6538 CFLAGS="$CFLAGS -belf"
6539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6540 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6541 if test "${lt_cv_cc_needs_belf+set}" = set; then :
6542 $as_echo_n "(cached) " >&6
6543 else
6544 ac_ext=c
6545 ac_cpp='$CPP $CPPFLAGS'
6546 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6547 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6548 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6550 if test x$gcc_no_link = xyes; then
6551 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
6553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6554 /* end confdefs.h. */
6557 main ()
6561 return 0;
6563 _ACEOF
6564 if ac_fn_c_try_link "$LINENO"; then :
6565 lt_cv_cc_needs_belf=yes
6566 else
6567 lt_cv_cc_needs_belf=no
6569 rm -f core conftest.err conftest.$ac_objext \
6570 conftest$ac_exeext conftest.$ac_ext
6571 ac_ext=c
6572 ac_cpp='$CPP $CPPFLAGS'
6573 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6574 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6575 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6579 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6580 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6581 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6582 CFLAGS="$SAVE_CFLAGS"
6585 sparc*-*solaris*)
6586 # Find out which ABI we are using.
6587 echo 'int i;' > conftest.$ac_ext
6588 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6589 (eval $ac_compile) 2>&5
6590 ac_status=$?
6591 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6592 test $ac_status = 0; }; then
6593 case `/usr/bin/file conftest.o` in
6594 *64-bit*)
6595 case $lt_cv_prog_gnu_ld in
6596 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6598 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6599 LD="${LD-ld} -64"
6602 esac
6604 esac
6606 rm -rf conftest*
6608 esac
6610 need_locks="$enable_libtool_lock"
6613 case $host_os in
6614 rhapsody* | darwin*)
6615 if test -n "$ac_tool_prefix"; then
6616 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6617 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6619 $as_echo_n "checking for $ac_word... " >&6; }
6620 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6621 $as_echo_n "(cached) " >&6
6622 else
6623 if test -n "$DSYMUTIL"; then
6624 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6625 else
6626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6627 for as_dir in $PATH
6629 IFS=$as_save_IFS
6630 test -z "$as_dir" && as_dir=.
6631 for ac_exec_ext in '' $ac_executable_extensions; do
6632 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6633 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6634 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6635 break 2
6637 done
6638 done
6639 IFS=$as_save_IFS
6643 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6644 if test -n "$DSYMUTIL"; then
6645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6646 $as_echo "$DSYMUTIL" >&6; }
6647 else
6648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6649 $as_echo "no" >&6; }
6654 if test -z "$ac_cv_prog_DSYMUTIL"; then
6655 ac_ct_DSYMUTIL=$DSYMUTIL
6656 # Extract the first word of "dsymutil", so it can be a program name with args.
6657 set dummy dsymutil; ac_word=$2
6658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6659 $as_echo_n "checking for $ac_word... " >&6; }
6660 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6661 $as_echo_n "(cached) " >&6
6662 else
6663 if test -n "$ac_ct_DSYMUTIL"; then
6664 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6665 else
6666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6667 for as_dir in $PATH
6669 IFS=$as_save_IFS
6670 test -z "$as_dir" && as_dir=.
6671 for ac_exec_ext in '' $ac_executable_extensions; do
6672 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6673 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6674 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6675 break 2
6677 done
6678 done
6679 IFS=$as_save_IFS
6683 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6684 if test -n "$ac_ct_DSYMUTIL"; then
6685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6686 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6687 else
6688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6689 $as_echo "no" >&6; }
6692 if test "x$ac_ct_DSYMUTIL" = x; then
6693 DSYMUTIL=":"
6694 else
6695 case $cross_compiling:$ac_tool_warned in
6696 yes:)
6697 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6698 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6699 ac_tool_warned=yes ;;
6700 esac
6701 DSYMUTIL=$ac_ct_DSYMUTIL
6703 else
6704 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6707 if test -n "$ac_tool_prefix"; then
6708 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6709 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6711 $as_echo_n "checking for $ac_word... " >&6; }
6712 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6713 $as_echo_n "(cached) " >&6
6714 else
6715 if test -n "$NMEDIT"; then
6716 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6717 else
6718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6719 for as_dir in $PATH
6721 IFS=$as_save_IFS
6722 test -z "$as_dir" && as_dir=.
6723 for ac_exec_ext in '' $ac_executable_extensions; do
6724 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6725 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6726 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6727 break 2
6729 done
6730 done
6731 IFS=$as_save_IFS
6735 NMEDIT=$ac_cv_prog_NMEDIT
6736 if test -n "$NMEDIT"; then
6737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6738 $as_echo "$NMEDIT" >&6; }
6739 else
6740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6741 $as_echo "no" >&6; }
6746 if test -z "$ac_cv_prog_NMEDIT"; then
6747 ac_ct_NMEDIT=$NMEDIT
6748 # Extract the first word of "nmedit", so it can be a program name with args.
6749 set dummy nmedit; ac_word=$2
6750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6751 $as_echo_n "checking for $ac_word... " >&6; }
6752 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6753 $as_echo_n "(cached) " >&6
6754 else
6755 if test -n "$ac_ct_NMEDIT"; then
6756 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6757 else
6758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6759 for as_dir in $PATH
6761 IFS=$as_save_IFS
6762 test -z "$as_dir" && as_dir=.
6763 for ac_exec_ext in '' $ac_executable_extensions; do
6764 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6765 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6766 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6767 break 2
6769 done
6770 done
6771 IFS=$as_save_IFS
6775 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6776 if test -n "$ac_ct_NMEDIT"; then
6777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6778 $as_echo "$ac_ct_NMEDIT" >&6; }
6779 else
6780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6781 $as_echo "no" >&6; }
6784 if test "x$ac_ct_NMEDIT" = x; then
6785 NMEDIT=":"
6786 else
6787 case $cross_compiling:$ac_tool_warned in
6788 yes:)
6789 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6790 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6791 ac_tool_warned=yes ;;
6792 esac
6793 NMEDIT=$ac_ct_NMEDIT
6795 else
6796 NMEDIT="$ac_cv_prog_NMEDIT"
6799 if test -n "$ac_tool_prefix"; then
6800 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6801 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6803 $as_echo_n "checking for $ac_word... " >&6; }
6804 if test "${ac_cv_prog_LIPO+set}" = set; then :
6805 $as_echo_n "(cached) " >&6
6806 else
6807 if test -n "$LIPO"; then
6808 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6809 else
6810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6811 for as_dir in $PATH
6813 IFS=$as_save_IFS
6814 test -z "$as_dir" && as_dir=.
6815 for ac_exec_ext in '' $ac_executable_extensions; do
6816 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6817 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6818 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6819 break 2
6821 done
6822 done
6823 IFS=$as_save_IFS
6827 LIPO=$ac_cv_prog_LIPO
6828 if test -n "$LIPO"; then
6829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6830 $as_echo "$LIPO" >&6; }
6831 else
6832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6833 $as_echo "no" >&6; }
6838 if test -z "$ac_cv_prog_LIPO"; then
6839 ac_ct_LIPO=$LIPO
6840 # Extract the first word of "lipo", so it can be a program name with args.
6841 set dummy lipo; ac_word=$2
6842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6843 $as_echo_n "checking for $ac_word... " >&6; }
6844 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6845 $as_echo_n "(cached) " >&6
6846 else
6847 if test -n "$ac_ct_LIPO"; then
6848 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6849 else
6850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6851 for as_dir in $PATH
6853 IFS=$as_save_IFS
6854 test -z "$as_dir" && as_dir=.
6855 for ac_exec_ext in '' $ac_executable_extensions; do
6856 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6857 ac_cv_prog_ac_ct_LIPO="lipo"
6858 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6859 break 2
6861 done
6862 done
6863 IFS=$as_save_IFS
6867 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6868 if test -n "$ac_ct_LIPO"; then
6869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6870 $as_echo "$ac_ct_LIPO" >&6; }
6871 else
6872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6873 $as_echo "no" >&6; }
6876 if test "x$ac_ct_LIPO" = x; then
6877 LIPO=":"
6878 else
6879 case $cross_compiling:$ac_tool_warned in
6880 yes:)
6881 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6882 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6883 ac_tool_warned=yes ;;
6884 esac
6885 LIPO=$ac_ct_LIPO
6887 else
6888 LIPO="$ac_cv_prog_LIPO"
6891 if test -n "$ac_tool_prefix"; then
6892 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6893 set dummy ${ac_tool_prefix}otool; ac_word=$2
6894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6895 $as_echo_n "checking for $ac_word... " >&6; }
6896 if test "${ac_cv_prog_OTOOL+set}" = set; then :
6897 $as_echo_n "(cached) " >&6
6898 else
6899 if test -n "$OTOOL"; then
6900 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6901 else
6902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6903 for as_dir in $PATH
6905 IFS=$as_save_IFS
6906 test -z "$as_dir" && as_dir=.
6907 for ac_exec_ext in '' $ac_executable_extensions; do
6908 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6909 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6910 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6911 break 2
6913 done
6914 done
6915 IFS=$as_save_IFS
6919 OTOOL=$ac_cv_prog_OTOOL
6920 if test -n "$OTOOL"; then
6921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6922 $as_echo "$OTOOL" >&6; }
6923 else
6924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6925 $as_echo "no" >&6; }
6930 if test -z "$ac_cv_prog_OTOOL"; then
6931 ac_ct_OTOOL=$OTOOL
6932 # Extract the first word of "otool", so it can be a program name with args.
6933 set dummy otool; ac_word=$2
6934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6935 $as_echo_n "checking for $ac_word... " >&6; }
6936 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6937 $as_echo_n "(cached) " >&6
6938 else
6939 if test -n "$ac_ct_OTOOL"; then
6940 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6941 else
6942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6943 for as_dir in $PATH
6945 IFS=$as_save_IFS
6946 test -z "$as_dir" && as_dir=.
6947 for ac_exec_ext in '' $ac_executable_extensions; do
6948 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6949 ac_cv_prog_ac_ct_OTOOL="otool"
6950 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6951 break 2
6953 done
6954 done
6955 IFS=$as_save_IFS
6959 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6960 if test -n "$ac_ct_OTOOL"; then
6961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6962 $as_echo "$ac_ct_OTOOL" >&6; }
6963 else
6964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6965 $as_echo "no" >&6; }
6968 if test "x$ac_ct_OTOOL" = x; then
6969 OTOOL=":"
6970 else
6971 case $cross_compiling:$ac_tool_warned in
6972 yes:)
6973 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6974 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6975 ac_tool_warned=yes ;;
6976 esac
6977 OTOOL=$ac_ct_OTOOL
6979 else
6980 OTOOL="$ac_cv_prog_OTOOL"
6983 if test -n "$ac_tool_prefix"; then
6984 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6985 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6987 $as_echo_n "checking for $ac_word... " >&6; }
6988 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
6989 $as_echo_n "(cached) " >&6
6990 else
6991 if test -n "$OTOOL64"; then
6992 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6993 else
6994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6995 for as_dir in $PATH
6997 IFS=$as_save_IFS
6998 test -z "$as_dir" && as_dir=.
6999 for ac_exec_ext in '' $ac_executable_extensions; do
7000 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7001 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7002 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7003 break 2
7005 done
7006 done
7007 IFS=$as_save_IFS
7011 OTOOL64=$ac_cv_prog_OTOOL64
7012 if test -n "$OTOOL64"; then
7013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7014 $as_echo "$OTOOL64" >&6; }
7015 else
7016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7017 $as_echo "no" >&6; }
7022 if test -z "$ac_cv_prog_OTOOL64"; then
7023 ac_ct_OTOOL64=$OTOOL64
7024 # Extract the first word of "otool64", so it can be a program name with args.
7025 set dummy otool64; ac_word=$2
7026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7027 $as_echo_n "checking for $ac_word... " >&6; }
7028 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7029 $as_echo_n "(cached) " >&6
7030 else
7031 if test -n "$ac_ct_OTOOL64"; then
7032 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7033 else
7034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7035 for as_dir in $PATH
7037 IFS=$as_save_IFS
7038 test -z "$as_dir" && as_dir=.
7039 for ac_exec_ext in '' $ac_executable_extensions; do
7040 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7041 ac_cv_prog_ac_ct_OTOOL64="otool64"
7042 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7043 break 2
7045 done
7046 done
7047 IFS=$as_save_IFS
7051 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7052 if test -n "$ac_ct_OTOOL64"; then
7053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7054 $as_echo "$ac_ct_OTOOL64" >&6; }
7055 else
7056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7057 $as_echo "no" >&6; }
7060 if test "x$ac_ct_OTOOL64" = x; then
7061 OTOOL64=":"
7062 else
7063 case $cross_compiling:$ac_tool_warned in
7064 yes:)
7065 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7066 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7067 ac_tool_warned=yes ;;
7068 esac
7069 OTOOL64=$ac_ct_OTOOL64
7071 else
7072 OTOOL64="$ac_cv_prog_OTOOL64"
7101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7102 $as_echo_n "checking for -single_module linker flag... " >&6; }
7103 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7104 $as_echo_n "(cached) " >&6
7105 else
7106 lt_cv_apple_cc_single_mod=no
7107 if test -z "${LT_MULTI_MODULE}"; then
7108 # By default we will add the -single_module flag. You can override
7109 # by either setting the environment variable LT_MULTI_MODULE
7110 # non-empty at configure time, or by adding -multi_module to the
7111 # link flags.
7112 rm -rf libconftest.dylib*
7113 echo "int foo(void){return 1;}" > conftest.c
7114 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7115 -dynamiclib -Wl,-single_module conftest.c" >&5
7116 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7117 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7118 _lt_result=$?
7119 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7120 lt_cv_apple_cc_single_mod=yes
7121 else
7122 cat conftest.err >&5
7124 rm -rf libconftest.dylib*
7125 rm -f conftest.*
7128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7129 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7131 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7132 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7133 $as_echo_n "(cached) " >&6
7134 else
7135 lt_cv_ld_exported_symbols_list=no
7136 save_LDFLAGS=$LDFLAGS
7137 echo "_main" > conftest.sym
7138 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7139 if test x$gcc_no_link = xyes; then
7140 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
7142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7143 /* end confdefs.h. */
7146 main ()
7150 return 0;
7152 _ACEOF
7153 if ac_fn_c_try_link "$LINENO"; then :
7154 lt_cv_ld_exported_symbols_list=yes
7155 else
7156 lt_cv_ld_exported_symbols_list=no
7158 rm -f core conftest.err conftest.$ac_objext \
7159 conftest$ac_exeext conftest.$ac_ext
7160 LDFLAGS="$save_LDFLAGS"
7163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7164 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7166 $as_echo_n "checking for -force_load linker flag... " >&6; }
7167 if test "${lt_cv_ld_force_load+set}" = set; then :
7168 $as_echo_n "(cached) " >&6
7169 else
7170 lt_cv_ld_force_load=no
7171 cat > conftest.c << _LT_EOF
7172 int forced_loaded() { return 2;}
7173 _LT_EOF
7174 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7175 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7176 echo "$AR cru libconftest.a conftest.o" >&5
7177 $AR cru libconftest.a conftest.o 2>&5
7178 cat > conftest.c << _LT_EOF
7179 int main() { return 0;}
7180 _LT_EOF
7181 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7182 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7183 _lt_result=$?
7184 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7185 lt_cv_ld_force_load=yes
7186 else
7187 cat conftest.err >&5
7189 rm -f conftest.err libconftest.a conftest conftest.c
7190 rm -rf conftest.dSYM
7193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7194 $as_echo "$lt_cv_ld_force_load" >&6; }
7195 case $host_os in
7196 rhapsody* | darwin1.[012])
7197 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7198 darwin1.*)
7199 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7200 darwin*) # darwin 5.x on
7201 # if running on 10.5 or later, the deployment target defaults
7202 # to the OS version, if on x86, and 10.4, the deployment
7203 # target defaults to 10.4. Don't you love it?
7204 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7205 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7206 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7207 10.[012][,.]*)
7208 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7209 10.*)
7210 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7211 esac
7213 esac
7214 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7215 _lt_dar_single_mod='$single_module'
7217 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7218 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7219 else
7220 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7222 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7223 _lt_dsymutil='~$DSYMUTIL $lib || :'
7224 else
7225 _lt_dsymutil=
7228 esac
7230 for ac_header in dlfcn.h
7231 do :
7232 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7234 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7235 cat >>confdefs.h <<_ACEOF
7236 #define HAVE_DLFCN_H 1
7237 _ACEOF
7241 done
7247 # Set options
7251 enable_dlopen=no
7254 enable_win32_dll=no
7257 # Check whether --enable-shared was given.
7258 if test "${enable_shared+set}" = set; then :
7259 enableval=$enable_shared; p=${PACKAGE-default}
7260 case $enableval in
7261 yes) enable_shared=yes ;;
7262 no) enable_shared=no ;;
7264 enable_shared=no
7265 # Look at the argument we got. We use all the common list separators.
7266 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7267 for pkg in $enableval; do
7268 IFS="$lt_save_ifs"
7269 if test "X$pkg" = "X$p"; then
7270 enable_shared=yes
7272 done
7273 IFS="$lt_save_ifs"
7275 esac
7276 else
7277 enable_shared=yes
7288 # Check whether --enable-static was given.
7289 if test "${enable_static+set}" = set; then :
7290 enableval=$enable_static; p=${PACKAGE-default}
7291 case $enableval in
7292 yes) enable_static=yes ;;
7293 no) enable_static=no ;;
7295 enable_static=no
7296 # Look at the argument we got. We use all the common list separators.
7297 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7298 for pkg in $enableval; do
7299 IFS="$lt_save_ifs"
7300 if test "X$pkg" = "X$p"; then
7301 enable_static=yes
7303 done
7304 IFS="$lt_save_ifs"
7306 esac
7307 else
7308 enable_static=yes
7320 # Check whether --with-pic was given.
7321 if test "${with_pic+set}" = set; then :
7322 withval=$with_pic; pic_mode="$withval"
7323 else
7324 pic_mode=default
7328 test -z "$pic_mode" && pic_mode=default
7336 # Check whether --enable-fast-install was given.
7337 if test "${enable_fast_install+set}" = set; then :
7338 enableval=$enable_fast_install; p=${PACKAGE-default}
7339 case $enableval in
7340 yes) enable_fast_install=yes ;;
7341 no) enable_fast_install=no ;;
7343 enable_fast_install=no
7344 # Look at the argument we got. We use all the common list separators.
7345 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7346 for pkg in $enableval; do
7347 IFS="$lt_save_ifs"
7348 if test "X$pkg" = "X$p"; then
7349 enable_fast_install=yes
7351 done
7352 IFS="$lt_save_ifs"
7354 esac
7355 else
7356 enable_fast_install=yes
7369 # This can be used to rebuild libtool when needed
7370 LIBTOOL_DEPS="$ltmain"
7372 # Always use our own libtool.
7373 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7400 test -z "$LN_S" && LN_S="ln -s"
7415 if test -n "${ZSH_VERSION+set}" ; then
7416 setopt NO_GLOB_SUBST
7419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7420 $as_echo_n "checking for objdir... " >&6; }
7421 if test "${lt_cv_objdir+set}" = set; then :
7422 $as_echo_n "(cached) " >&6
7423 else
7424 rm -f .libs 2>/dev/null
7425 mkdir .libs 2>/dev/null
7426 if test -d .libs; then
7427 lt_cv_objdir=.libs
7428 else
7429 # MS-DOS does not allow filenames that begin with a dot.
7430 lt_cv_objdir=_libs
7432 rmdir .libs 2>/dev/null
7434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7435 $as_echo "$lt_cv_objdir" >&6; }
7436 objdir=$lt_cv_objdir
7442 cat >>confdefs.h <<_ACEOF
7443 #define LT_OBJDIR "$lt_cv_objdir/"
7444 _ACEOF
7449 case $host_os in
7450 aix3*)
7451 # AIX sometimes has problems with the GCC collect2 program. For some
7452 # reason, if we set the COLLECT_NAMES environment variable, the problems
7453 # vanish in a puff of smoke.
7454 if test "X${COLLECT_NAMES+set}" != Xset; then
7455 COLLECT_NAMES=
7456 export COLLECT_NAMES
7459 esac
7461 # Global variables:
7462 ofile=libtool
7463 can_build_shared=yes
7465 # All known linkers require a `.a' archive for static linking (except MSVC,
7466 # which needs '.lib').
7467 libext=a
7469 with_gnu_ld="$lt_cv_prog_gnu_ld"
7471 old_CC="$CC"
7472 old_CFLAGS="$CFLAGS"
7474 # Set sane defaults for various variables
7475 test -z "$CC" && CC=cc
7476 test -z "$LTCC" && LTCC=$CC
7477 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7478 test -z "$LD" && LD=ld
7479 test -z "$ac_objext" && ac_objext=o
7481 for cc_temp in $compiler""; do
7482 case $cc_temp in
7483 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7484 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7485 \-*) ;;
7486 *) break;;
7487 esac
7488 done
7489 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7492 # Only perform the check for file, if the check method requires it
7493 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7494 case $deplibs_check_method in
7495 file_magic*)
7496 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7498 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7499 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7500 $as_echo_n "(cached) " >&6
7501 else
7502 case $MAGIC_CMD in
7503 [\\/*] | ?:[\\/]*)
7504 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7507 lt_save_MAGIC_CMD="$MAGIC_CMD"
7508 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7509 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7510 for ac_dir in $ac_dummy; do
7511 IFS="$lt_save_ifs"
7512 test -z "$ac_dir" && ac_dir=.
7513 if test -f $ac_dir/${ac_tool_prefix}file; then
7514 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7515 if test -n "$file_magic_test_file"; then
7516 case $deplibs_check_method in
7517 "file_magic "*)
7518 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7519 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7520 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7521 $EGREP "$file_magic_regex" > /dev/null; then
7523 else
7524 cat <<_LT_EOF 1>&2
7526 *** Warning: the command libtool uses to detect shared libraries,
7527 *** $file_magic_cmd, produces output that libtool cannot recognize.
7528 *** The result is that libtool may fail to recognize shared libraries
7529 *** as such. This will affect the creation of libtool libraries that
7530 *** depend on shared libraries, but programs linked with such libtool
7531 *** libraries will work regardless of this problem. Nevertheless, you
7532 *** may want to report the problem to your system manager and/or to
7533 *** bug-libtool@gnu.org
7535 _LT_EOF
7536 fi ;;
7537 esac
7539 break
7541 done
7542 IFS="$lt_save_ifs"
7543 MAGIC_CMD="$lt_save_MAGIC_CMD"
7545 esac
7548 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7549 if test -n "$MAGIC_CMD"; then
7550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7551 $as_echo "$MAGIC_CMD" >&6; }
7552 else
7553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7554 $as_echo "no" >&6; }
7561 if test -z "$lt_cv_path_MAGIC_CMD"; then
7562 if test -n "$ac_tool_prefix"; then
7563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7564 $as_echo_n "checking for file... " >&6; }
7565 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7566 $as_echo_n "(cached) " >&6
7567 else
7568 case $MAGIC_CMD in
7569 [\\/*] | ?:[\\/]*)
7570 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7573 lt_save_MAGIC_CMD="$MAGIC_CMD"
7574 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7575 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7576 for ac_dir in $ac_dummy; do
7577 IFS="$lt_save_ifs"
7578 test -z "$ac_dir" && ac_dir=.
7579 if test -f $ac_dir/file; then
7580 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7581 if test -n "$file_magic_test_file"; then
7582 case $deplibs_check_method in
7583 "file_magic "*)
7584 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7585 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7586 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7587 $EGREP "$file_magic_regex" > /dev/null; then
7589 else
7590 cat <<_LT_EOF 1>&2
7592 *** Warning: the command libtool uses to detect shared libraries,
7593 *** $file_magic_cmd, produces output that libtool cannot recognize.
7594 *** The result is that libtool may fail to recognize shared libraries
7595 *** as such. This will affect the creation of libtool libraries that
7596 *** depend on shared libraries, but programs linked with such libtool
7597 *** libraries will work regardless of this problem. Nevertheless, you
7598 *** may want to report the problem to your system manager and/or to
7599 *** bug-libtool@gnu.org
7601 _LT_EOF
7602 fi ;;
7603 esac
7605 break
7607 done
7608 IFS="$lt_save_ifs"
7609 MAGIC_CMD="$lt_save_MAGIC_CMD"
7611 esac
7614 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7615 if test -n "$MAGIC_CMD"; then
7616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7617 $as_echo "$MAGIC_CMD" >&6; }
7618 else
7619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7620 $as_echo "no" >&6; }
7624 else
7625 MAGIC_CMD=:
7631 esac
7633 # Use C for the default configuration in the libtool script
7635 lt_save_CC="$CC"
7636 ac_ext=c
7637 ac_cpp='$CPP $CPPFLAGS'
7638 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7639 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7640 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7643 # Source file extension for C test sources.
7644 ac_ext=c
7646 # Object file extension for compiled C test sources.
7647 objext=o
7648 objext=$objext
7650 # Code to be used in simple compile tests
7651 lt_simple_compile_test_code="int some_variable = 0;"
7653 # Code to be used in simple link tests
7654 lt_simple_link_test_code='int main(){return(0);}'
7662 # If no C compiler was specified, use CC.
7663 LTCC=${LTCC-"$CC"}
7665 # If no C compiler flags were specified, use CFLAGS.
7666 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7668 # Allow CC to be a program name with arguments.
7669 compiler=$CC
7671 # Save the default compiler, since it gets overwritten when the other
7672 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7673 compiler_DEFAULT=$CC
7675 # save warnings/boilerplate of simple test code
7676 ac_outfile=conftest.$ac_objext
7677 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7678 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7679 _lt_compiler_boilerplate=`cat conftest.err`
7680 $RM conftest*
7682 ac_outfile=conftest.$ac_objext
7683 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7684 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7685 _lt_linker_boilerplate=`cat conftest.err`
7686 $RM -r conftest*
7689 ## CAVEAT EMPTOR:
7690 ## There is no encapsulation within the following macros, do not change
7691 ## the running order or otherwise move them around unless you know exactly
7692 ## what you are doing...
7693 if test -n "$compiler"; then
7695 lt_prog_compiler_no_builtin_flag=
7697 if test "$GCC" = yes; then
7698 case $cc_basename in
7699 nvcc*)
7700 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7702 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7703 esac
7705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7706 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7707 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
7708 $as_echo_n "(cached) " >&6
7709 else
7710 lt_cv_prog_compiler_rtti_exceptions=no
7711 ac_outfile=conftest.$ac_objext
7712 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7713 lt_compiler_flag="-fno-rtti -fno-exceptions"
7714 # Insert the option either (1) after the last *FLAGS variable, or
7715 # (2) before a word containing "conftest.", or (3) at the end.
7716 # Note that $ac_compile itself does not contain backslashes and begins
7717 # with a dollar sign (not a hyphen), so the echo should work correctly.
7718 # The option is referenced via a variable to avoid confusing sed.
7719 lt_compile=`echo "$ac_compile" | $SED \
7720 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7721 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7722 -e 's:$: $lt_compiler_flag:'`
7723 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7724 (eval "$lt_compile" 2>conftest.err)
7725 ac_status=$?
7726 cat conftest.err >&5
7727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7728 if (exit $ac_status) && test -s "$ac_outfile"; then
7729 # The compiler can only warn and ignore the option if not recognized
7730 # So say no if there are warnings other than the usual output.
7731 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7732 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7733 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7734 lt_cv_prog_compiler_rtti_exceptions=yes
7737 $RM conftest*
7740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7741 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7743 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7744 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7745 else
7756 lt_prog_compiler_wl=
7757 lt_prog_compiler_pic=
7758 lt_prog_compiler_static=
7760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7761 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7763 if test "$GCC" = yes; then
7764 lt_prog_compiler_wl='-Wl,'
7765 lt_prog_compiler_static='-static'
7767 case $host_os in
7768 aix*)
7769 # All AIX code is PIC.
7770 if test "$host_cpu" = ia64; then
7771 # AIX 5 now supports IA64 processor
7772 lt_prog_compiler_static='-Bstatic'
7774 lt_prog_compiler_pic='-fPIC'
7777 amigaos*)
7778 case $host_cpu in
7779 powerpc)
7780 # see comment about AmigaOS4 .so support
7781 lt_prog_compiler_pic='-fPIC'
7783 m68k)
7784 # FIXME: we need at least 68020 code to build shared libraries, but
7785 # adding the `-m68020' flag to GCC prevents building anything better,
7786 # like `-m68040'.
7787 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7789 esac
7792 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7793 # PIC is the default for these OSes.
7796 mingw* | cygwin* | pw32* | os2* | cegcc*)
7797 # This hack is so that the source file can tell whether it is being
7798 # built for inclusion in a dll (and should export symbols for example).
7799 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7800 # (--disable-auto-import) libraries
7801 lt_prog_compiler_pic='-DDLL_EXPORT'
7804 darwin* | rhapsody*)
7805 # PIC is the default on this platform
7806 # Common symbols not allowed in MH_DYLIB files
7807 lt_prog_compiler_pic='-fno-common'
7810 haiku*)
7811 # PIC is the default for Haiku.
7812 # The "-static" flag exists, but is broken.
7813 lt_prog_compiler_static=
7816 hpux*)
7817 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7818 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7819 # sets the default TLS model and affects inlining.
7820 case $host_cpu in
7821 hppa*64*)
7822 # +Z the default
7825 lt_prog_compiler_pic='-fPIC'
7827 esac
7830 interix[3-9]*)
7831 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7832 # Instead, we relocate shared libraries at runtime.
7835 msdosdjgpp*)
7836 # Just because we use GCC doesn't mean we suddenly get shared libraries
7837 # on systems that don't support them.
7838 lt_prog_compiler_can_build_shared=no
7839 enable_shared=no
7842 *nto* | *qnx*)
7843 # QNX uses GNU C++, but need to define -shared option too, otherwise
7844 # it will coredump.
7845 lt_prog_compiler_pic='-fPIC -shared'
7848 sysv4*MP*)
7849 if test -d /usr/nec; then
7850 lt_prog_compiler_pic=-Kconform_pic
7855 lt_prog_compiler_pic='-fPIC'
7857 esac
7859 case $cc_basename in
7860 nvcc*) # Cuda Compiler Driver 2.2
7861 lt_prog_compiler_wl='-Xlinker '
7862 lt_prog_compiler_pic='-Xcompiler -fPIC'
7864 esac
7865 else
7866 # PORTME Check for flag to pass linker flags through the system compiler.
7867 case $host_os in
7868 aix*)
7869 lt_prog_compiler_wl='-Wl,'
7870 if test "$host_cpu" = ia64; then
7871 # AIX 5 now supports IA64 processor
7872 lt_prog_compiler_static='-Bstatic'
7873 else
7874 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7878 mingw* | cygwin* | pw32* | os2* | cegcc*)
7879 # This hack is so that the source file can tell whether it is being
7880 # built for inclusion in a dll (and should export symbols for example).
7881 lt_prog_compiler_pic='-DDLL_EXPORT'
7884 hpux9* | hpux10* | hpux11*)
7885 lt_prog_compiler_wl='-Wl,'
7886 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7887 # not for PA HP-UX.
7888 case $host_cpu in
7889 hppa*64*|ia64*)
7890 # +Z the default
7893 lt_prog_compiler_pic='+Z'
7895 esac
7896 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7897 lt_prog_compiler_static='${wl}-a ${wl}archive'
7900 irix5* | irix6* | nonstopux*)
7901 lt_prog_compiler_wl='-Wl,'
7902 # PIC (with -KPIC) is the default.
7903 lt_prog_compiler_static='-non_shared'
7906 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7907 case $cc_basename in
7908 # old Intel for x86_64 which still supported -KPIC.
7909 ecc*)
7910 lt_prog_compiler_wl='-Wl,'
7911 lt_prog_compiler_pic='-KPIC'
7912 lt_prog_compiler_static='-static'
7914 # icc used to be incompatible with GCC.
7915 # ICC 10 doesn't accept -KPIC any more.
7916 icc* | ifort*)
7917 lt_prog_compiler_wl='-Wl,'
7918 lt_prog_compiler_pic='-fPIC'
7919 lt_prog_compiler_static='-static'
7921 # Lahey Fortran 8.1.
7922 lf95*)
7923 lt_prog_compiler_wl='-Wl,'
7924 lt_prog_compiler_pic='--shared'
7925 lt_prog_compiler_static='--static'
7927 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
7928 # Portland Group compilers (*not* the Pentium gcc compiler,
7929 # which looks to be a dead project)
7930 lt_prog_compiler_wl='-Wl,'
7931 lt_prog_compiler_pic='-fpic'
7932 lt_prog_compiler_static='-Bstatic'
7934 ccc*)
7935 lt_prog_compiler_wl='-Wl,'
7936 # All Alpha code is PIC.
7937 lt_prog_compiler_static='-non_shared'
7939 xl* | bgxl* | bgf* | mpixl*)
7940 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
7941 lt_prog_compiler_wl='-Wl,'
7942 lt_prog_compiler_pic='-qpic'
7943 lt_prog_compiler_static='-qstaticlink'
7946 case `$CC -V 2>&1 | sed 5q` in
7947 *Sun\ F* | *Sun*Fortran*)
7948 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7949 lt_prog_compiler_pic='-KPIC'
7950 lt_prog_compiler_static='-Bstatic'
7951 lt_prog_compiler_wl=''
7953 *Sun\ C*)
7954 # Sun C 5.9
7955 lt_prog_compiler_pic='-KPIC'
7956 lt_prog_compiler_static='-Bstatic'
7957 lt_prog_compiler_wl='-Wl,'
7959 esac
7961 esac
7964 newsos6)
7965 lt_prog_compiler_pic='-KPIC'
7966 lt_prog_compiler_static='-Bstatic'
7969 *nto* | *qnx*)
7970 # QNX uses GNU C++, but need to define -shared option too, otherwise
7971 # it will coredump.
7972 lt_prog_compiler_pic='-fPIC -shared'
7975 osf3* | osf4* | osf5*)
7976 lt_prog_compiler_wl='-Wl,'
7977 # All OSF/1 code is PIC.
7978 lt_prog_compiler_static='-non_shared'
7981 rdos*)
7982 lt_prog_compiler_static='-non_shared'
7985 solaris*)
7986 lt_prog_compiler_pic='-KPIC'
7987 lt_prog_compiler_static='-Bstatic'
7988 case $cc_basename in
7989 f77* | f90* | f95*)
7990 lt_prog_compiler_wl='-Qoption ld ';;
7992 lt_prog_compiler_wl='-Wl,';;
7993 esac
7996 sunos4*)
7997 lt_prog_compiler_wl='-Qoption ld '
7998 lt_prog_compiler_pic='-PIC'
7999 lt_prog_compiler_static='-Bstatic'
8002 sysv4 | sysv4.2uw2* | sysv4.3*)
8003 lt_prog_compiler_wl='-Wl,'
8004 lt_prog_compiler_pic='-KPIC'
8005 lt_prog_compiler_static='-Bstatic'
8008 sysv4*MP*)
8009 if test -d /usr/nec ;then
8010 lt_prog_compiler_pic='-Kconform_pic'
8011 lt_prog_compiler_static='-Bstatic'
8015 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8016 lt_prog_compiler_wl='-Wl,'
8017 lt_prog_compiler_pic='-KPIC'
8018 lt_prog_compiler_static='-Bstatic'
8021 unicos*)
8022 lt_prog_compiler_wl='-Wl,'
8023 lt_prog_compiler_can_build_shared=no
8026 uts4*)
8027 lt_prog_compiler_pic='-pic'
8028 lt_prog_compiler_static='-Bstatic'
8032 lt_prog_compiler_can_build_shared=no
8034 esac
8037 case $host_os in
8038 # For platforms which do not support PIC, -DPIC is meaningless:
8039 *djgpp*)
8040 lt_prog_compiler_pic=
8043 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8045 esac
8046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8047 $as_echo "$lt_prog_compiler_pic" >&6; }
8055 # Check to make sure the PIC flag actually works.
8057 if test -n "$lt_prog_compiler_pic"; then
8058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8059 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8060 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8061 $as_echo_n "(cached) " >&6
8062 else
8063 lt_cv_prog_compiler_pic_works=no
8064 ac_outfile=conftest.$ac_objext
8065 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8066 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8067 # Insert the option either (1) after the last *FLAGS variable, or
8068 # (2) before a word containing "conftest.", or (3) at the end.
8069 # Note that $ac_compile itself does not contain backslashes and begins
8070 # with a dollar sign (not a hyphen), so the echo should work correctly.
8071 # The option is referenced via a variable to avoid confusing sed.
8072 lt_compile=`echo "$ac_compile" | $SED \
8073 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8074 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8075 -e 's:$: $lt_compiler_flag:'`
8076 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8077 (eval "$lt_compile" 2>conftest.err)
8078 ac_status=$?
8079 cat conftest.err >&5
8080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8081 if (exit $ac_status) && test -s "$ac_outfile"; then
8082 # The compiler can only warn and ignore the option if not recognized
8083 # So say no if there are warnings other than the usual output.
8084 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8085 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8086 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8087 lt_cv_prog_compiler_pic_works=yes
8090 $RM conftest*
8093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8094 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8096 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8097 case $lt_prog_compiler_pic in
8098 "" | " "*) ;;
8099 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8100 esac
8101 else
8102 lt_prog_compiler_pic=
8103 lt_prog_compiler_can_build_shared=no
8114 # Check to make sure the static flag actually works.
8116 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8118 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8119 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8120 $as_echo_n "(cached) " >&6
8121 else
8122 lt_cv_prog_compiler_static_works=no
8123 save_LDFLAGS="$LDFLAGS"
8124 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8125 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8126 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8127 # The linker can only warn and ignore the option if not recognized
8128 # So say no if there are warnings
8129 if test -s conftest.err; then
8130 # Append any errors to the config.log.
8131 cat conftest.err 1>&5
8132 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8133 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8134 if diff conftest.exp conftest.er2 >/dev/null; then
8135 lt_cv_prog_compiler_static_works=yes
8137 else
8138 lt_cv_prog_compiler_static_works=yes
8141 $RM -r conftest*
8142 LDFLAGS="$save_LDFLAGS"
8145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8146 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8148 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8150 else
8151 lt_prog_compiler_static=
8160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8161 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8162 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8163 $as_echo_n "(cached) " >&6
8164 else
8165 lt_cv_prog_compiler_c_o=no
8166 $RM -r conftest 2>/dev/null
8167 mkdir conftest
8168 cd conftest
8169 mkdir out
8170 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8172 lt_compiler_flag="-o out/conftest2.$ac_objext"
8173 # Insert the option either (1) after the last *FLAGS variable, or
8174 # (2) before a word containing "conftest.", or (3) at the end.
8175 # Note that $ac_compile itself does not contain backslashes and begins
8176 # with a dollar sign (not a hyphen), so the echo should work correctly.
8177 lt_compile=`echo "$ac_compile" | $SED \
8178 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8179 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8180 -e 's:$: $lt_compiler_flag:'`
8181 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8182 (eval "$lt_compile" 2>out/conftest.err)
8183 ac_status=$?
8184 cat out/conftest.err >&5
8185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8186 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8187 then
8188 # The compiler can only warn and ignore the option if not recognized
8189 # So say no if there are warnings
8190 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8191 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8192 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8193 lt_cv_prog_compiler_c_o=yes
8196 chmod u+w . 2>&5
8197 $RM conftest*
8198 # SGI C++ compiler will create directory out/ii_files/ for
8199 # template instantiation
8200 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8201 $RM out/* && rmdir out
8202 cd ..
8203 $RM -r conftest
8204 $RM conftest*
8207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8208 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8216 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8217 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8218 $as_echo_n "(cached) " >&6
8219 else
8220 lt_cv_prog_compiler_c_o=no
8221 $RM -r conftest 2>/dev/null
8222 mkdir conftest
8223 cd conftest
8224 mkdir out
8225 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8227 lt_compiler_flag="-o out/conftest2.$ac_objext"
8228 # Insert the option either (1) after the last *FLAGS variable, or
8229 # (2) before a word containing "conftest.", or (3) at the end.
8230 # Note that $ac_compile itself does not contain backslashes and begins
8231 # with a dollar sign (not a hyphen), so the echo should work correctly.
8232 lt_compile=`echo "$ac_compile" | $SED \
8233 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8234 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8235 -e 's:$: $lt_compiler_flag:'`
8236 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8237 (eval "$lt_compile" 2>out/conftest.err)
8238 ac_status=$?
8239 cat out/conftest.err >&5
8240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8241 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8242 then
8243 # The compiler can only warn and ignore the option if not recognized
8244 # So say no if there are warnings
8245 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8246 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8247 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8248 lt_cv_prog_compiler_c_o=yes
8251 chmod u+w . 2>&5
8252 $RM conftest*
8253 # SGI C++ compiler will create directory out/ii_files/ for
8254 # template instantiation
8255 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8256 $RM out/* && rmdir out
8257 cd ..
8258 $RM -r conftest
8259 $RM conftest*
8262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8263 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8268 hard_links="nottested"
8269 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8270 # do not overwrite the value of need_locks provided by the user
8271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8272 $as_echo_n "checking if we can lock with hard links... " >&6; }
8273 hard_links=yes
8274 $RM conftest*
8275 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8276 touch conftest.a
8277 ln conftest.a conftest.b 2>&5 || hard_links=no
8278 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8280 $as_echo "$hard_links" >&6; }
8281 if test "$hard_links" = no; then
8282 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8283 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8284 need_locks=warn
8286 else
8287 need_locks=no
8295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8296 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8298 runpath_var=
8299 allow_undefined_flag=
8300 always_export_symbols=no
8301 archive_cmds=
8302 archive_expsym_cmds=
8303 compiler_needs_object=no
8304 enable_shared_with_static_runtimes=no
8305 export_dynamic_flag_spec=
8306 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8307 hardcode_automatic=no
8308 hardcode_direct=no
8309 hardcode_direct_absolute=no
8310 hardcode_libdir_flag_spec=
8311 hardcode_libdir_flag_spec_ld=
8312 hardcode_libdir_separator=
8313 hardcode_minus_L=no
8314 hardcode_shlibpath_var=unsupported
8315 inherit_rpath=no
8316 link_all_deplibs=unknown
8317 module_cmds=
8318 module_expsym_cmds=
8319 old_archive_from_new_cmds=
8320 old_archive_from_expsyms_cmds=
8321 thread_safe_flag_spec=
8322 whole_archive_flag_spec=
8323 # include_expsyms should be a list of space-separated symbols to be *always*
8324 # included in the symbol list
8325 include_expsyms=
8326 # exclude_expsyms can be an extended regexp of symbols to exclude
8327 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8328 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8329 # as well as any symbol that contains `d'.
8330 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8331 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8332 # platforms (ab)use it in PIC code, but their linkers get confused if
8333 # the symbol is explicitly referenced. Since portable code cannot
8334 # rely on this symbol name, it's probably fine to never include it in
8335 # preloaded symbol tables.
8336 # Exclude shared library initialization/finalization symbols.
8337 extract_expsyms_cmds=
8339 case $host_os in
8340 cygwin* | mingw* | pw32* | cegcc*)
8341 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8342 # When not using gcc, we currently assume that we are using
8343 # Microsoft Visual C++.
8344 if test "$GCC" != yes; then
8345 with_gnu_ld=no
8348 interix*)
8349 # we just hope/assume this is gcc and not c89 (= MSVC++)
8350 with_gnu_ld=yes
8352 openbsd*)
8353 with_gnu_ld=no
8355 esac
8357 ld_shlibs=yes
8359 # On some targets, GNU ld is compatible enough with the native linker
8360 # that we're better off using the native interface for both.
8361 lt_use_gnu_ld_interface=no
8362 if test "$with_gnu_ld" = yes; then
8363 case $host_os in
8364 aix*)
8365 # The AIX port of GNU ld has always aspired to compatibility
8366 # with the native linker. However, as the warning in the GNU ld
8367 # block says, versions before 2.19.5* couldn't really create working
8368 # shared libraries, regardless of the interface used.
8369 case `$LD -v 2>&1` in
8370 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8371 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8372 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8374 lt_use_gnu_ld_interface=yes
8376 esac
8379 lt_use_gnu_ld_interface=yes
8381 esac
8384 if test "$lt_use_gnu_ld_interface" = yes; then
8385 # If archive_cmds runs LD, not CC, wlarc should be empty
8386 wlarc='${wl}'
8388 # Set some defaults for GNU ld with shared library support. These
8389 # are reset later if shared libraries are not supported. Putting them
8390 # here allows them to be overridden if necessary.
8391 runpath_var=LD_RUN_PATH
8392 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8393 export_dynamic_flag_spec='${wl}--export-dynamic'
8394 # ancient GNU ld didn't support --whole-archive et. al.
8395 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8396 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8397 else
8398 whole_archive_flag_spec=
8400 supports_anon_versioning=no
8401 case `$LD -v 2>&1` in
8402 *GNU\ gold*) supports_anon_versioning=yes ;;
8403 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8404 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8405 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8406 *\ 2.11.*) ;; # other 2.11 versions
8407 *) supports_anon_versioning=yes ;;
8408 esac
8410 # See if GNU ld supports shared libraries.
8411 case $host_os in
8412 aix[3-9]*)
8413 # On AIX/PPC, the GNU linker is very broken
8414 if test "$host_cpu" != ia64; then
8415 ld_shlibs=no
8416 cat <<_LT_EOF 1>&2
8418 *** Warning: the GNU linker, at least up to release 2.19, is reported
8419 *** to be unable to reliably create shared libraries on AIX.
8420 *** Therefore, libtool is disabling shared libraries support. If you
8421 *** really care for shared libraries, you may want to install binutils
8422 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8423 *** You will then need to restart the configuration process.
8425 _LT_EOF
8429 amigaos*)
8430 case $host_cpu in
8431 powerpc)
8432 # see comment about AmigaOS4 .so support
8433 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8434 archive_expsym_cmds=''
8436 m68k)
8437 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)'
8438 hardcode_libdir_flag_spec='-L$libdir'
8439 hardcode_minus_L=yes
8441 esac
8444 beos*)
8445 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8446 allow_undefined_flag=unsupported
8447 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8448 # support --undefined. This deserves some investigation. FIXME
8449 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8450 else
8451 ld_shlibs=no
8455 cygwin* | mingw* | pw32* | cegcc*)
8456 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8457 # as there is no search path for DLLs.
8458 hardcode_libdir_flag_spec='-L$libdir'
8459 export_dynamic_flag_spec='${wl}--export-all-symbols'
8460 allow_undefined_flag=unsupported
8461 always_export_symbols=no
8462 enable_shared_with_static_runtimes=yes
8463 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8465 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8466 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8467 # If the export-symbols file already is a .def file (1st line
8468 # is EXPORTS), use it as is; otherwise, prepend...
8469 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8470 cp $export_symbols $output_objdir/$soname.def;
8471 else
8472 echo EXPORTS > $output_objdir/$soname.def;
8473 cat $export_symbols >> $output_objdir/$soname.def;
8475 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8476 else
8477 ld_shlibs=no
8481 haiku*)
8482 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8483 link_all_deplibs=yes
8486 interix[3-9]*)
8487 hardcode_direct=no
8488 hardcode_shlibpath_var=no
8489 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8490 export_dynamic_flag_spec='${wl}-E'
8491 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8492 # Instead, shared libraries are loaded at an image base (0x10000000 by
8493 # default) and relocated if they conflict, which is a slow very memory
8494 # consuming and fragmenting process. To avoid this, we pick a random,
8495 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8496 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8497 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8498 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'
8501 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8502 tmp_diet=no
8503 if test "$host_os" = linux-dietlibc; then
8504 case $cc_basename in
8505 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8506 esac
8508 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8509 && test "$tmp_diet" = no
8510 then
8511 tmp_addflag=' $pic_flag'
8512 tmp_sharedflag='-shared'
8513 case $cc_basename,$host_cpu in
8514 pgcc*) # Portland Group C compiler
8515 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'
8516 tmp_addflag=' $pic_flag'
8518 pgf77* | pgf90* | pgf95* | pgfortran*)
8519 # Portland Group f77 and f90 compilers
8520 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'
8521 tmp_addflag=' $pic_flag -Mnomain' ;;
8522 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8523 tmp_addflag=' -i_dynamic' ;;
8524 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8525 tmp_addflag=' -i_dynamic -nofor_main' ;;
8526 ifc* | ifort*) # Intel Fortran compiler
8527 tmp_addflag=' -nofor_main' ;;
8528 lf95*) # Lahey Fortran 8.1
8529 whole_archive_flag_spec=
8530 tmp_sharedflag='--shared' ;;
8531 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8532 tmp_sharedflag='-qmkshrobj'
8533 tmp_addflag= ;;
8534 nvcc*) # Cuda Compiler Driver 2.2
8535 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'
8536 compiler_needs_object=yes
8538 esac
8539 case `$CC -V 2>&1 | sed 5q` in
8540 *Sun\ C*) # Sun C 5.9
8541 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'
8542 compiler_needs_object=yes
8543 tmp_sharedflag='-G' ;;
8544 *Sun\ F*) # Sun Fortran 8.3
8545 tmp_sharedflag='-G' ;;
8546 esac
8547 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8549 if test "x$supports_anon_versioning" = xyes; then
8550 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8551 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8552 echo "local: *; };" >> $output_objdir/$libname.ver~
8553 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8556 case $cc_basename in
8557 xlf* | bgf* | bgxlf* | mpixlf*)
8558 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8559 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8560 hardcode_libdir_flag_spec=
8561 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8562 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8563 if test "x$supports_anon_versioning" = xyes; then
8564 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8565 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8566 echo "local: *; };" >> $output_objdir/$libname.ver~
8567 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8570 esac
8571 else
8572 ld_shlibs=no
8576 netbsd*)
8577 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8578 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8579 wlarc=
8580 else
8581 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8582 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8586 solaris*)
8587 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8588 ld_shlibs=no
8589 cat <<_LT_EOF 1>&2
8591 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8592 *** create shared libraries on Solaris systems. Therefore, libtool
8593 *** is disabling shared libraries support. We urge you to upgrade GNU
8594 *** binutils to release 2.9.1 or newer. Another option is to modify
8595 *** your PATH or compiler configuration so that the native linker is
8596 *** used, and then restart.
8598 _LT_EOF
8599 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8600 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8601 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8602 else
8603 ld_shlibs=no
8607 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8608 case `$LD -v 2>&1` in
8609 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8610 ld_shlibs=no
8611 cat <<_LT_EOF 1>&2
8613 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8614 *** reliably create shared libraries on SCO systems. Therefore, libtool
8615 *** is disabling shared libraries support. We urge you to upgrade GNU
8616 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8617 *** your PATH or compiler configuration so that the native linker is
8618 *** used, and then restart.
8620 _LT_EOF
8623 # For security reasons, it is highly recommended that you always
8624 # use absolute paths for naming shared libraries, and exclude the
8625 # DT_RUNPATH tag from executables and libraries. But doing so
8626 # requires that you compile everything twice, which is a pain.
8627 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8628 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8629 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8630 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8631 else
8632 ld_shlibs=no
8635 esac
8638 sunos4*)
8639 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8640 wlarc=
8641 hardcode_direct=yes
8642 hardcode_shlibpath_var=no
8646 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8647 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8648 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8649 else
8650 ld_shlibs=no
8653 esac
8655 if test "$ld_shlibs" = no; then
8656 runpath_var=
8657 hardcode_libdir_flag_spec=
8658 export_dynamic_flag_spec=
8659 whole_archive_flag_spec=
8661 else
8662 # PORTME fill in a description of your system's linker (not GNU ld)
8663 case $host_os in
8664 aix3*)
8665 allow_undefined_flag=unsupported
8666 always_export_symbols=yes
8667 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'
8668 # Note: this linker hardcodes the directories in LIBPATH if there
8669 # are no directories specified by -L.
8670 hardcode_minus_L=yes
8671 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8672 # Neither direct hardcoding nor static linking is supported with a
8673 # broken collect2.
8674 hardcode_direct=unsupported
8678 aix[4-9]*)
8679 if test "$host_cpu" = ia64; then
8680 # On IA64, the linker does run time linking by default, so we don't
8681 # have to do anything special.
8682 aix_use_runtimelinking=no
8683 exp_sym_flag='-Bexport'
8684 no_entry_flag=""
8685 else
8686 # If we're using GNU nm, then we don't want the "-C" option.
8687 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8688 # Also, AIX nm treats weak defined symbols like other global
8689 # defined symbols, whereas GNU nm marks them as "W".
8690 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8691 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'
8692 else
8693 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'
8695 aix_use_runtimelinking=no
8697 # Test if we are trying to use run time linking or normal
8698 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8699 # need to do runtime linking.
8700 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8701 for ld_flag in $LDFLAGS; do
8702 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8703 aix_use_runtimelinking=yes
8704 break
8706 done
8708 esac
8710 exp_sym_flag='-bexport'
8711 no_entry_flag='-bnoentry'
8714 # When large executables or shared objects are built, AIX ld can
8715 # have problems creating the table of contents. If linking a library
8716 # or program results in "error TOC overflow" add -mminimal-toc to
8717 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8718 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8720 archive_cmds=''
8721 hardcode_direct=yes
8722 hardcode_direct_absolute=yes
8723 hardcode_libdir_separator=':'
8724 link_all_deplibs=yes
8725 file_list_spec='${wl}-f,'
8727 if test "$GCC" = yes; then
8728 case $host_os in aix4.[012]|aix4.[012].*)
8729 # We only want to do this on AIX 4.2 and lower, the check
8730 # below for broken collect2 doesn't work under 4.3+
8731 collect2name=`${CC} -print-prog-name=collect2`
8732 if test -f "$collect2name" &&
8733 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8734 then
8735 # We have reworked collect2
8737 else
8738 # We have old collect2
8739 hardcode_direct=unsupported
8740 # It fails to find uninstalled libraries when the uninstalled
8741 # path is not listed in the libpath. Setting hardcode_minus_L
8742 # to unsupported forces relinking
8743 hardcode_minus_L=yes
8744 hardcode_libdir_flag_spec='-L$libdir'
8745 hardcode_libdir_separator=
8748 esac
8749 shared_flag='-shared'
8750 if test "$aix_use_runtimelinking" = yes; then
8751 shared_flag="$shared_flag "'${wl}-G'
8753 else
8754 # not using gcc
8755 if test "$host_cpu" = ia64; then
8756 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8757 # chokes on -Wl,-G. The following line is correct:
8758 shared_flag='-G'
8759 else
8760 if test "$aix_use_runtimelinking" = yes; then
8761 shared_flag='${wl}-G'
8762 else
8763 shared_flag='${wl}-bM:SRE'
8768 export_dynamic_flag_spec='${wl}-bexpall'
8769 # It seems that -bexpall does not export symbols beginning with
8770 # underscore (_), so it is better to generate a list of symbols to export.
8771 always_export_symbols=yes
8772 if test "$aix_use_runtimelinking" = yes; then
8773 # Warning - without using the other runtime loading flags (-brtl),
8774 # -berok will link without error, but may produce a broken library.
8775 allow_undefined_flag='-berok'
8776 # Determine the default libpath from the value encoded in an
8777 # empty executable.
8778 if test x$gcc_no_link = xyes; then
8779 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
8781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8782 /* end confdefs.h. */
8785 main ()
8789 return 0;
8791 _ACEOF
8792 if ac_fn_c_try_link "$LINENO"; then :
8794 lt_aix_libpath_sed='
8795 /Import File Strings/,/^$/ {
8796 /^0/ {
8797 s/^0 *\(.*\)$/\1/
8801 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8802 # Check for a 64-bit object if we didn't find anything.
8803 if test -z "$aix_libpath"; then
8804 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8807 rm -f core conftest.err conftest.$ac_objext \
8808 conftest$ac_exeext conftest.$ac_ext
8809 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8811 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8812 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"
8813 else
8814 if test "$host_cpu" = ia64; then
8815 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8816 allow_undefined_flag="-z nodefs"
8817 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"
8818 else
8819 # Determine the default libpath from the value encoded in an
8820 # empty executable.
8821 if test x$gcc_no_link = xyes; then
8822 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
8824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8825 /* end confdefs.h. */
8828 main ()
8832 return 0;
8834 _ACEOF
8835 if ac_fn_c_try_link "$LINENO"; then :
8837 lt_aix_libpath_sed='
8838 /Import File Strings/,/^$/ {
8839 /^0/ {
8840 s/^0 *\(.*\)$/\1/
8844 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8845 # Check for a 64-bit object if we didn't find anything.
8846 if test -z "$aix_libpath"; then
8847 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8850 rm -f core conftest.err conftest.$ac_objext \
8851 conftest$ac_exeext conftest.$ac_ext
8852 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8854 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8855 # Warning - without using the other run time loading flags,
8856 # -berok will link without error, but may produce a broken library.
8857 no_undefined_flag=' ${wl}-bernotok'
8858 allow_undefined_flag=' ${wl}-berok'
8859 if test "$with_gnu_ld" = yes; then
8860 # We only use this code for GNU lds that support --whole-archive.
8861 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
8862 else
8863 # Exported symbols can be pulled into shared objects from archives
8864 whole_archive_flag_spec='$convenience'
8866 archive_cmds_need_lc=yes
8867 # This is similar to how AIX traditionally builds its shared libraries.
8868 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'
8873 amigaos*)
8874 case $host_cpu in
8875 powerpc)
8876 # see comment about AmigaOS4 .so support
8877 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8878 archive_expsym_cmds=''
8880 m68k)
8881 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)'
8882 hardcode_libdir_flag_spec='-L$libdir'
8883 hardcode_minus_L=yes
8885 esac
8888 bsdi[45]*)
8889 export_dynamic_flag_spec=-rdynamic
8892 cygwin* | mingw* | pw32* | cegcc*)
8893 # When not using gcc, we currently assume that we are using
8894 # Microsoft Visual C++.
8895 # hardcode_libdir_flag_spec is actually meaningless, as there is
8896 # no search path for DLLs.
8897 hardcode_libdir_flag_spec=' '
8898 allow_undefined_flag=unsupported
8899 # Tell ltmain to make .lib files, not .a files.
8900 libext=lib
8901 # Tell ltmain to make .dll files, not .so files.
8902 shrext_cmds=".dll"
8903 # FIXME: Setting linknames here is a bad hack.
8904 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
8905 # The linker will automatically build a .lib file if we build a DLL.
8906 old_archive_from_new_cmds='true'
8907 # FIXME: Should let the user specify the lib program.
8908 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8909 fix_srcfile_path='`cygpath -w "$srcfile"`'
8910 enable_shared_with_static_runtimes=yes
8913 darwin* | rhapsody*)
8916 archive_cmds_need_lc=no
8917 hardcode_direct=no
8918 hardcode_automatic=yes
8919 hardcode_shlibpath_var=unsupported
8920 if test "$lt_cv_ld_force_load" = "yes"; then
8921 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\"`'
8922 else
8923 whole_archive_flag_spec=''
8925 link_all_deplibs=yes
8926 allow_undefined_flag="$_lt_dar_allow_undefined"
8927 case $cc_basename in
8928 ifort*) _lt_dar_can_shared=yes ;;
8929 *) _lt_dar_can_shared=$GCC ;;
8930 esac
8931 if test "$_lt_dar_can_shared" = "yes"; then
8932 output_verbose_link_cmd=func_echo_all
8933 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8934 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8935 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}"
8936 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}"
8938 else
8939 ld_shlibs=no
8944 dgux*)
8945 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8946 hardcode_libdir_flag_spec='-L$libdir'
8947 hardcode_shlibpath_var=no
8950 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8951 # support. Future versions do this automatically, but an explicit c++rt0.o
8952 # does not break anything, and helps significantly (at the cost of a little
8953 # extra space).
8954 freebsd2.2*)
8955 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8956 hardcode_libdir_flag_spec='-R$libdir'
8957 hardcode_direct=yes
8958 hardcode_shlibpath_var=no
8961 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8962 freebsd2.*)
8963 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8964 hardcode_direct=yes
8965 hardcode_minus_L=yes
8966 hardcode_shlibpath_var=no
8969 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8970 freebsd* | dragonfly*)
8971 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8972 hardcode_libdir_flag_spec='-R$libdir'
8973 hardcode_direct=yes
8974 hardcode_shlibpath_var=no
8977 hpux9*)
8978 if test "$GCC" = yes; then
8979 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'
8980 else
8981 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'
8983 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8984 hardcode_libdir_separator=:
8985 hardcode_direct=yes
8987 # hardcode_minus_L: Not really in the search PATH,
8988 # but as the default location of the library.
8989 hardcode_minus_L=yes
8990 export_dynamic_flag_spec='${wl}-E'
8993 hpux10*)
8994 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
8995 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8996 else
8997 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8999 if test "$with_gnu_ld" = no; then
9000 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9001 hardcode_libdir_flag_spec_ld='+b $libdir'
9002 hardcode_libdir_separator=:
9003 hardcode_direct=yes
9004 hardcode_direct_absolute=yes
9005 export_dynamic_flag_spec='${wl}-E'
9006 # hardcode_minus_L: Not really in the search PATH,
9007 # but as the default location of the library.
9008 hardcode_minus_L=yes
9012 hpux11*)
9013 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9014 case $host_cpu in
9015 hppa*64*)
9016 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9018 ia64*)
9019 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9022 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9024 esac
9025 else
9026 case $host_cpu in
9027 hppa*64*)
9028 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9030 ia64*)
9031 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9035 # Older versions of the 11.00 compiler do not understand -b yet
9036 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9038 $as_echo_n "checking if $CC understands -b... " >&6; }
9039 if test "${lt_cv_prog_compiler__b+set}" = set; then :
9040 $as_echo_n "(cached) " >&6
9041 else
9042 lt_cv_prog_compiler__b=no
9043 save_LDFLAGS="$LDFLAGS"
9044 LDFLAGS="$LDFLAGS -b"
9045 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9046 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9047 # The linker can only warn and ignore the option if not recognized
9048 # So say no if there are warnings
9049 if test -s conftest.err; then
9050 # Append any errors to the config.log.
9051 cat conftest.err 1>&5
9052 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9053 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9054 if diff conftest.exp conftest.er2 >/dev/null; then
9055 lt_cv_prog_compiler__b=yes
9057 else
9058 lt_cv_prog_compiler__b=yes
9061 $RM -r conftest*
9062 LDFLAGS="$save_LDFLAGS"
9065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9066 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9068 if test x"$lt_cv_prog_compiler__b" = xyes; then
9069 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9070 else
9071 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9075 esac
9077 if test "$with_gnu_ld" = no; then
9078 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9079 hardcode_libdir_separator=:
9081 case $host_cpu in
9082 hppa*64*|ia64*)
9083 hardcode_direct=no
9084 hardcode_shlibpath_var=no
9087 hardcode_direct=yes
9088 hardcode_direct_absolute=yes
9089 export_dynamic_flag_spec='${wl}-E'
9091 # hardcode_minus_L: Not really in the search PATH,
9092 # but as the default location of the library.
9093 hardcode_minus_L=yes
9095 esac
9099 irix5* | irix6* | nonstopux*)
9100 if test "$GCC" = yes; then
9101 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'
9102 # Try to use the -exported_symbol ld option, if it does not
9103 # work, assume that -exports_file does not work either and
9104 # implicitly export all symbols.
9105 save_LDFLAGS="$LDFLAGS"
9106 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9107 if test x$gcc_no_link = xyes; then
9108 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
9110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9111 /* end confdefs.h. */
9112 int foo(void) {}
9113 _ACEOF
9114 if ac_fn_c_try_link "$LINENO"; then :
9115 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'
9118 rm -f core conftest.err conftest.$ac_objext \
9119 conftest$ac_exeext conftest.$ac_ext
9120 LDFLAGS="$save_LDFLAGS"
9121 else
9122 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'
9123 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'
9125 archive_cmds_need_lc='no'
9126 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9127 hardcode_libdir_separator=:
9128 inherit_rpath=yes
9129 link_all_deplibs=yes
9132 netbsd*)
9133 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9134 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9135 else
9136 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9138 hardcode_libdir_flag_spec='-R$libdir'
9139 hardcode_direct=yes
9140 hardcode_shlibpath_var=no
9143 newsos6)
9144 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9145 hardcode_direct=yes
9146 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9147 hardcode_libdir_separator=:
9148 hardcode_shlibpath_var=no
9151 *nto* | *qnx*)
9154 openbsd*)
9155 if test -f /usr/libexec/ld.so; then
9156 hardcode_direct=yes
9157 hardcode_shlibpath_var=no
9158 hardcode_direct_absolute=yes
9159 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9160 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9161 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9162 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9163 export_dynamic_flag_spec='${wl}-E'
9164 else
9165 case $host_os in
9166 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9167 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9168 hardcode_libdir_flag_spec='-R$libdir'
9171 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9172 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9174 esac
9176 else
9177 ld_shlibs=no
9181 os2*)
9182 hardcode_libdir_flag_spec='-L$libdir'
9183 hardcode_minus_L=yes
9184 allow_undefined_flag=unsupported
9185 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'
9186 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9189 osf3*)
9190 if test "$GCC" = yes; then
9191 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9192 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'
9193 else
9194 allow_undefined_flag=' -expect_unresolved \*'
9195 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'
9197 archive_cmds_need_lc='no'
9198 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9199 hardcode_libdir_separator=:
9202 osf4* | osf5*) # as osf3* with the addition of -msym flag
9203 if test "$GCC" = yes; then
9204 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9205 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'
9206 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9207 else
9208 allow_undefined_flag=' -expect_unresolved \*'
9209 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'
9210 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~
9211 $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'
9213 # Both c and cxx compiler support -rpath directly
9214 hardcode_libdir_flag_spec='-rpath $libdir'
9216 archive_cmds_need_lc='no'
9217 hardcode_libdir_separator=:
9220 solaris*)
9221 no_undefined_flag=' -z defs'
9222 if test "$GCC" = yes; then
9223 wlarc='${wl}'
9224 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9225 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9226 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9227 else
9228 case `$CC -V 2>&1` in
9229 *"Compilers 5.0"*)
9230 wlarc=''
9231 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9232 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9233 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9236 wlarc='${wl}'
9237 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9238 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9239 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9241 esac
9243 hardcode_libdir_flag_spec='-R$libdir'
9244 hardcode_shlibpath_var=no
9245 case $host_os in
9246 solaris2.[0-5] | solaris2.[0-5].*) ;;
9248 # The compiler driver will combine and reorder linker options,
9249 # but understands `-z linker_flag'. GCC discards it without `$wl',
9250 # but is careful enough not to reorder.
9251 # Supported since Solaris 2.6 (maybe 2.5.1?)
9252 if test "$GCC" = yes; then
9253 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9254 else
9255 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9258 esac
9259 link_all_deplibs=yes
9262 sunos4*)
9263 if test "x$host_vendor" = xsequent; then
9264 # Use $CC to link under sequent, because it throws in some extra .o
9265 # files that make .init and .fini sections work.
9266 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9267 else
9268 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9270 hardcode_libdir_flag_spec='-L$libdir'
9271 hardcode_direct=yes
9272 hardcode_minus_L=yes
9273 hardcode_shlibpath_var=no
9276 sysv4)
9277 case $host_vendor in
9278 sni)
9279 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9280 hardcode_direct=yes # is this really true???
9282 siemens)
9283 ## LD is ld it makes a PLAMLIB
9284 ## CC just makes a GrossModule.
9285 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9286 reload_cmds='$CC -r -o $output$reload_objs'
9287 hardcode_direct=no
9289 motorola)
9290 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9291 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9293 esac
9294 runpath_var='LD_RUN_PATH'
9295 hardcode_shlibpath_var=no
9298 sysv4.3*)
9299 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9300 hardcode_shlibpath_var=no
9301 export_dynamic_flag_spec='-Bexport'
9304 sysv4*MP*)
9305 if test -d /usr/nec; then
9306 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9307 hardcode_shlibpath_var=no
9308 runpath_var=LD_RUN_PATH
9309 hardcode_runpath_var=yes
9310 ld_shlibs=yes
9314 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9315 no_undefined_flag='${wl}-z,text'
9316 archive_cmds_need_lc=no
9317 hardcode_shlibpath_var=no
9318 runpath_var='LD_RUN_PATH'
9320 if test "$GCC" = yes; then
9321 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9322 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9323 else
9324 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9325 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9329 sysv5* | sco3.2v5* | sco5v6*)
9330 # Note: We can NOT use -z defs as we might desire, because we do not
9331 # link with -lc, and that would cause any symbols used from libc to
9332 # always be unresolved, which means just about no library would
9333 # ever link correctly. If we're not using GNU ld we use -z text
9334 # though, which does catch some bad symbols but isn't as heavy-handed
9335 # as -z defs.
9336 no_undefined_flag='${wl}-z,text'
9337 allow_undefined_flag='${wl}-z,nodefs'
9338 archive_cmds_need_lc=no
9339 hardcode_shlibpath_var=no
9340 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9341 hardcode_libdir_separator=':'
9342 link_all_deplibs=yes
9343 export_dynamic_flag_spec='${wl}-Bexport'
9344 runpath_var='LD_RUN_PATH'
9346 if test "$GCC" = yes; then
9347 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9348 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9349 else
9350 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9351 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9355 uts4*)
9356 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9357 hardcode_libdir_flag_spec='-L$libdir'
9358 hardcode_shlibpath_var=no
9362 ld_shlibs=no
9364 esac
9366 if test x$host_vendor = xsni; then
9367 case $host in
9368 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9369 export_dynamic_flag_spec='${wl}-Blargedynsym'
9371 esac
9375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9376 $as_echo "$ld_shlibs" >&6; }
9377 test "$ld_shlibs" = no && can_build_shared=no
9379 with_gnu_ld=$with_gnu_ld
9396 # Do we need to explicitly link libc?
9398 case "x$archive_cmds_need_lc" in
9399 x|xyes)
9400 # Assume -lc should be added
9401 archive_cmds_need_lc=yes
9403 if test "$enable_shared" = yes && test "$GCC" = yes; then
9404 case $archive_cmds in
9405 *'~'*)
9406 # FIXME: we may have to deal with multi-command sequences.
9408 '$CC '*)
9409 # Test whether the compiler implicitly links with -lc since on some
9410 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9411 # to ld, don't add -lc before -lgcc.
9412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9413 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9414 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
9415 $as_echo_n "(cached) " >&6
9416 else
9417 $RM conftest*
9418 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9420 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9421 (eval $ac_compile) 2>&5
9422 ac_status=$?
9423 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9424 test $ac_status = 0; } 2>conftest.err; then
9425 soname=conftest
9426 lib=conftest
9427 libobjs=conftest.$ac_objext
9428 deplibs=
9429 wl=$lt_prog_compiler_wl
9430 pic_flag=$lt_prog_compiler_pic
9431 compiler_flags=-v
9432 linker_flags=-v
9433 verstring=
9434 output_objdir=.
9435 libname=conftest
9436 lt_save_allow_undefined_flag=$allow_undefined_flag
9437 allow_undefined_flag=
9438 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9439 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9440 ac_status=$?
9441 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9442 test $ac_status = 0; }
9443 then
9444 lt_cv_archive_cmds_need_lc=no
9445 else
9446 lt_cv_archive_cmds_need_lc=yes
9448 allow_undefined_flag=$lt_save_allow_undefined_flag
9449 else
9450 cat conftest.err 1>&5
9452 $RM conftest*
9455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9456 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9457 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9459 esac
9462 esac
9620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9621 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9623 if test "$GCC" = yes; then
9624 case $host_os in
9625 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9626 *) lt_awk_arg="/^libraries:/" ;;
9627 esac
9628 case $host_os in
9629 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9630 *) lt_sed_strip_eq="s,=/,/,g" ;;
9631 esac
9632 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9633 case $lt_search_path_spec in
9634 *\;*)
9635 # if the path contains ";" then we assume it to be the separator
9636 # otherwise default to the standard path separator (i.e. ":") - it is
9637 # assumed that no part of a normal pathname contains ";" but that should
9638 # okay in the real world where ";" in dirpaths is itself problematic.
9639 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9642 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9644 esac
9645 # Ok, now we have the path, separated by spaces, we can step through it
9646 # and add multilib dir if necessary.
9647 lt_tmp_lt_search_path_spec=
9648 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9649 for lt_sys_path in $lt_search_path_spec; do
9650 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9651 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9652 else
9653 test -d "$lt_sys_path" && \
9654 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9656 done
9657 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9658 BEGIN {RS=" "; FS="/|\n";} {
9659 lt_foo="";
9660 lt_count=0;
9661 for (lt_i = NF; lt_i > 0; lt_i--) {
9662 if ($lt_i != "" && $lt_i != ".") {
9663 if ($lt_i == "..") {
9664 lt_count++;
9665 } else {
9666 if (lt_count == 0) {
9667 lt_foo="/" $lt_i lt_foo;
9668 } else {
9669 lt_count--;
9674 if (lt_foo != "") { lt_freq[lt_foo]++; }
9675 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9677 # AWK program above erroneously prepends '/' to C:/dos/paths
9678 # for these hosts.
9679 case $host_os in
9680 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9681 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9682 esac
9683 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9684 else
9685 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9687 library_names_spec=
9688 libname_spec='lib$name'
9689 soname_spec=
9690 shrext_cmds=".so"
9691 postinstall_cmds=
9692 postuninstall_cmds=
9693 finish_cmds=
9694 finish_eval=
9695 shlibpath_var=
9696 shlibpath_overrides_runpath=unknown
9697 version_type=none
9698 dynamic_linker="$host_os ld.so"
9699 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9700 need_lib_prefix=unknown
9701 hardcode_into_libs=no
9703 # when you set need_version to no, make sure it does not cause -set_version
9704 # flags to be left without arguments
9705 need_version=unknown
9707 case $host_os in
9708 aix3*)
9709 version_type=linux
9710 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9711 shlibpath_var=LIBPATH
9713 # AIX 3 has no versioning support, so we append a major version to the name.
9714 soname_spec='${libname}${release}${shared_ext}$major'
9717 aix[4-9]*)
9718 version_type=linux
9719 need_lib_prefix=no
9720 need_version=no
9721 hardcode_into_libs=yes
9722 if test "$host_cpu" = ia64; then
9723 # AIX 5 supports IA64
9724 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9725 shlibpath_var=LD_LIBRARY_PATH
9726 else
9727 # With GCC up to 2.95.x, collect2 would create an import file
9728 # for dependence libraries. The import file would start with
9729 # the line `#! .'. This would cause the generated library to
9730 # depend on `.', always an invalid library. This was fixed in
9731 # development snapshots of GCC prior to 3.0.
9732 case $host_os in
9733 aix4 | aix4.[01] | aix4.[01].*)
9734 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9735 echo ' yes '
9736 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9738 else
9739 can_build_shared=no
9742 esac
9743 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9744 # soname into executable. Probably we can add versioning support to
9745 # collect2, so additional links can be useful in future.
9746 if test "$aix_use_runtimelinking" = yes; then
9747 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9748 # instead of lib<name>.a to let people know that these are not
9749 # typical AIX shared libraries.
9750 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9751 else
9752 # We preserve .a as extension for shared libraries through AIX4.2
9753 # and later when we are not doing run time linking.
9754 library_names_spec='${libname}${release}.a $libname.a'
9755 soname_spec='${libname}${release}${shared_ext}$major'
9757 shlibpath_var=LIBPATH
9761 amigaos*)
9762 case $host_cpu in
9763 powerpc)
9764 # Since July 2007 AmigaOS4 officially supports .so libraries.
9765 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9766 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9768 m68k)
9769 library_names_spec='$libname.ixlibrary $libname.a'
9770 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9771 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'
9773 esac
9776 beos*)
9777 library_names_spec='${libname}${shared_ext}'
9778 dynamic_linker="$host_os ld.so"
9779 shlibpath_var=LIBRARY_PATH
9782 bsdi[45]*)
9783 version_type=linux
9784 need_version=no
9785 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9786 soname_spec='${libname}${release}${shared_ext}$major'
9787 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9788 shlibpath_var=LD_LIBRARY_PATH
9789 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9790 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9791 # the default ld.so.conf also contains /usr/contrib/lib and
9792 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9793 # libtool to hard-code these into programs
9796 cygwin* | mingw* | pw32* | cegcc*)
9797 version_type=windows
9798 shrext_cmds=".dll"
9799 need_version=no
9800 need_lib_prefix=no
9802 case $GCC,$host_os in
9803 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9804 library_names_spec='$libname.dll.a'
9805 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9806 postinstall_cmds='base_file=`basename \${file}`~
9807 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9808 dldir=$destdir/`dirname \$dlpath`~
9809 test -d \$dldir || mkdir -p \$dldir~
9810 $install_prog $dir/$dlname \$dldir/$dlname~
9811 chmod a+x \$dldir/$dlname~
9812 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9813 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9815 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9816 dlpath=$dir/\$dldll~
9817 $RM \$dlpath'
9818 shlibpath_overrides_runpath=yes
9820 case $host_os in
9821 cygwin*)
9822 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9823 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9825 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
9827 mingw* | cegcc*)
9828 # MinGW DLLs use traditional 'lib' prefix
9829 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9831 pw32*)
9832 # pw32 DLLs use 'pw' prefix rather than 'lib'
9833 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9835 esac
9839 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9841 esac
9842 dynamic_linker='Win32 ld.exe'
9843 # FIXME: first we should search . and the directory the executable is in
9844 shlibpath_var=PATH
9847 darwin* | rhapsody*)
9848 dynamic_linker="$host_os dyld"
9849 version_type=darwin
9850 need_lib_prefix=no
9851 need_version=no
9852 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9853 soname_spec='${libname}${release}${major}$shared_ext'
9854 shlibpath_overrides_runpath=yes
9855 shlibpath_var=DYLD_LIBRARY_PATH
9856 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9858 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9859 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9862 dgux*)
9863 version_type=linux
9864 need_lib_prefix=no
9865 need_version=no
9866 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9867 soname_spec='${libname}${release}${shared_ext}$major'
9868 shlibpath_var=LD_LIBRARY_PATH
9871 freebsd* | dragonfly*)
9872 # DragonFly does not have aout. When/if they implement a new
9873 # versioning mechanism, adjust this.
9874 if test -x /usr/bin/objformat; then
9875 objformat=`/usr/bin/objformat`
9876 else
9877 case $host_os in
9878 freebsd[23].*) objformat=aout ;;
9879 *) objformat=elf ;;
9880 esac
9882 version_type=freebsd-$objformat
9883 case $version_type in
9884 freebsd-elf*)
9885 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9886 need_version=no
9887 need_lib_prefix=no
9889 freebsd-*)
9890 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9891 need_version=yes
9893 esac
9894 shlibpath_var=LD_LIBRARY_PATH
9895 case $host_os in
9896 freebsd2.*)
9897 shlibpath_overrides_runpath=yes
9899 freebsd3.[01]* | freebsdelf3.[01]*)
9900 shlibpath_overrides_runpath=yes
9901 hardcode_into_libs=yes
9903 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9904 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9905 shlibpath_overrides_runpath=no
9906 hardcode_into_libs=yes
9908 *) # from 4.6 on, and DragonFly
9909 shlibpath_overrides_runpath=yes
9910 hardcode_into_libs=yes
9912 esac
9915 gnu*)
9916 version_type=linux
9917 need_lib_prefix=no
9918 need_version=no
9919 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9920 soname_spec='${libname}${release}${shared_ext}$major'
9921 shlibpath_var=LD_LIBRARY_PATH
9922 hardcode_into_libs=yes
9925 haiku*)
9926 version_type=linux
9927 need_lib_prefix=no
9928 need_version=no
9929 dynamic_linker="$host_os runtime_loader"
9930 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9931 soname_spec='${libname}${release}${shared_ext}$major'
9932 shlibpath_var=LIBRARY_PATH
9933 shlibpath_overrides_runpath=yes
9934 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
9935 hardcode_into_libs=yes
9938 hpux9* | hpux10* | hpux11*)
9939 # Give a soname corresponding to the major version so that dld.sl refuses to
9940 # link against other versions.
9941 version_type=sunos
9942 need_lib_prefix=no
9943 need_version=no
9944 case $host_cpu in
9945 ia64*)
9946 shrext_cmds='.so'
9947 hardcode_into_libs=yes
9948 dynamic_linker="$host_os dld.so"
9949 shlibpath_var=LD_LIBRARY_PATH
9950 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9951 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9952 soname_spec='${libname}${release}${shared_ext}$major'
9953 if test "X$HPUX_IA64_MODE" = X32; then
9954 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9955 else
9956 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9958 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9960 hppa*64*)
9961 shrext_cmds='.sl'
9962 hardcode_into_libs=yes
9963 dynamic_linker="$host_os dld.sl"
9964 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9965 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9966 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9967 soname_spec='${libname}${release}${shared_ext}$major'
9968 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9969 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9972 shrext_cmds='.sl'
9973 dynamic_linker="$host_os dld.sl"
9974 shlibpath_var=SHLIB_PATH
9975 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9976 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9977 soname_spec='${libname}${release}${shared_ext}$major'
9979 esac
9980 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
9981 postinstall_cmds='chmod 555 $lib'
9982 # or fails outright, so override atomically:
9983 install_override_mode=555
9986 interix[3-9]*)
9987 version_type=linux
9988 need_lib_prefix=no
9989 need_version=no
9990 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9991 soname_spec='${libname}${release}${shared_ext}$major'
9992 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9993 shlibpath_var=LD_LIBRARY_PATH
9994 shlibpath_overrides_runpath=no
9995 hardcode_into_libs=yes
9998 irix5* | irix6* | nonstopux*)
9999 case $host_os in
10000 nonstopux*) version_type=nonstopux ;;
10002 if test "$lt_cv_prog_gnu_ld" = yes; then
10003 version_type=linux
10004 else
10005 version_type=irix
10006 fi ;;
10007 esac
10008 need_lib_prefix=no
10009 need_version=no
10010 soname_spec='${libname}${release}${shared_ext}$major'
10011 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10012 case $host_os in
10013 irix5* | nonstopux*)
10014 libsuff= shlibsuff=
10017 case $LD in # libtool.m4 will add one of these switches to LD
10018 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10019 libsuff= shlibsuff= libmagic=32-bit;;
10020 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10021 libsuff=32 shlibsuff=N32 libmagic=N32;;
10022 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10023 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10024 *) libsuff= shlibsuff= libmagic=never-match;;
10025 esac
10027 esac
10028 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10029 shlibpath_overrides_runpath=no
10030 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10031 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10032 hardcode_into_libs=yes
10035 # No shared lib support for Linux oldld, aout, or coff.
10036 linux*oldld* | linux*aout* | linux*coff*)
10037 dynamic_linker=no
10040 # This must be Linux ELF.
10041 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10042 version_type=linux
10043 need_lib_prefix=no
10044 need_version=no
10045 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10046 soname_spec='${libname}${release}${shared_ext}$major'
10047 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10048 shlibpath_var=LD_LIBRARY_PATH
10049 shlibpath_overrides_runpath=no
10051 # Some binutils ld are patched to set DT_RUNPATH
10052 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
10053 $as_echo_n "(cached) " >&6
10054 else
10055 lt_cv_shlibpath_overrides_runpath=no
10056 save_LDFLAGS=$LDFLAGS
10057 save_libdir=$libdir
10058 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10059 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10060 if test x$gcc_no_link = xyes; then
10061 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10064 /* end confdefs.h. */
10067 main ()
10071 return 0;
10073 _ACEOF
10074 if ac_fn_c_try_link "$LINENO"; then :
10075 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10076 lt_cv_shlibpath_overrides_runpath=yes
10079 rm -f core conftest.err conftest.$ac_objext \
10080 conftest$ac_exeext conftest.$ac_ext
10081 LDFLAGS=$save_LDFLAGS
10082 libdir=$save_libdir
10086 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10088 # This implies no fast_install, which is unacceptable.
10089 # Some rework will be needed to allow for fast_install
10090 # before this can be enabled.
10091 hardcode_into_libs=yes
10093 # Append ld.so.conf contents to the search path
10094 if test -f /etc/ld.so.conf; then
10095 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' ' '`
10096 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10099 # We used to test for /lib/ld.so.1 and disable shared libraries on
10100 # powerpc, because MkLinux only supported shared libraries with the
10101 # GNU dynamic linker. Since this was broken with cross compilers,
10102 # most powerpc-linux boxes support dynamic linking these days and
10103 # people can always --disable-shared, the test was removed, and we
10104 # assume the GNU/Linux dynamic linker is in use.
10105 dynamic_linker='GNU/Linux ld.so'
10108 netbsd*)
10109 version_type=sunos
10110 need_lib_prefix=no
10111 need_version=no
10112 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10113 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10114 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10115 dynamic_linker='NetBSD (a.out) ld.so'
10116 else
10117 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10118 soname_spec='${libname}${release}${shared_ext}$major'
10119 dynamic_linker='NetBSD ld.elf_so'
10121 shlibpath_var=LD_LIBRARY_PATH
10122 shlibpath_overrides_runpath=yes
10123 hardcode_into_libs=yes
10126 newsos6)
10127 version_type=linux
10128 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10129 shlibpath_var=LD_LIBRARY_PATH
10130 shlibpath_overrides_runpath=yes
10133 *nto* | *qnx*)
10134 version_type=qnx
10135 need_lib_prefix=no
10136 need_version=no
10137 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10138 soname_spec='${libname}${release}${shared_ext}$major'
10139 shlibpath_var=LD_LIBRARY_PATH
10140 shlibpath_overrides_runpath=no
10141 hardcode_into_libs=yes
10142 dynamic_linker='ldqnx.so'
10145 openbsd*)
10146 version_type=sunos
10147 sys_lib_dlsearch_path_spec="/usr/lib"
10148 need_lib_prefix=no
10149 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10150 case $host_os in
10151 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10152 *) need_version=no ;;
10153 esac
10154 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10155 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10156 shlibpath_var=LD_LIBRARY_PATH
10157 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10158 case $host_os in
10159 openbsd2.[89] | openbsd2.[89].*)
10160 shlibpath_overrides_runpath=no
10163 shlibpath_overrides_runpath=yes
10165 esac
10166 else
10167 shlibpath_overrides_runpath=yes
10171 os2*)
10172 libname_spec='$name'
10173 shrext_cmds=".dll"
10174 need_lib_prefix=no
10175 library_names_spec='$libname${shared_ext} $libname.a'
10176 dynamic_linker='OS/2 ld.exe'
10177 shlibpath_var=LIBPATH
10180 osf3* | osf4* | osf5*)
10181 version_type=osf
10182 need_lib_prefix=no
10183 need_version=no
10184 soname_spec='${libname}${release}${shared_ext}$major'
10185 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10186 shlibpath_var=LD_LIBRARY_PATH
10187 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10188 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10191 rdos*)
10192 dynamic_linker=no
10195 solaris*)
10196 version_type=linux
10197 need_lib_prefix=no
10198 need_version=no
10199 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10200 soname_spec='${libname}${release}${shared_ext}$major'
10201 shlibpath_var=LD_LIBRARY_PATH
10202 shlibpath_overrides_runpath=yes
10203 hardcode_into_libs=yes
10204 # ldd complains unless libraries are executable
10205 postinstall_cmds='chmod +x $lib'
10208 sunos4*)
10209 version_type=sunos
10210 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10211 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10212 shlibpath_var=LD_LIBRARY_PATH
10213 shlibpath_overrides_runpath=yes
10214 if test "$with_gnu_ld" = yes; then
10215 need_lib_prefix=no
10217 need_version=yes
10220 sysv4 | sysv4.3*)
10221 version_type=linux
10222 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10223 soname_spec='${libname}${release}${shared_ext}$major'
10224 shlibpath_var=LD_LIBRARY_PATH
10225 case $host_vendor in
10226 sni)
10227 shlibpath_overrides_runpath=no
10228 need_lib_prefix=no
10229 runpath_var=LD_RUN_PATH
10231 siemens)
10232 need_lib_prefix=no
10234 motorola)
10235 need_lib_prefix=no
10236 need_version=no
10237 shlibpath_overrides_runpath=no
10238 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10240 esac
10243 sysv4*MP*)
10244 if test -d /usr/nec ;then
10245 version_type=linux
10246 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10247 soname_spec='$libname${shared_ext}.$major'
10248 shlibpath_var=LD_LIBRARY_PATH
10252 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10253 version_type=freebsd-elf
10254 need_lib_prefix=no
10255 need_version=no
10256 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10257 soname_spec='${libname}${release}${shared_ext}$major'
10258 shlibpath_var=LD_LIBRARY_PATH
10259 shlibpath_overrides_runpath=yes
10260 hardcode_into_libs=yes
10261 if test "$with_gnu_ld" = yes; then
10262 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10263 else
10264 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10265 case $host_os in
10266 sco3.2v5*)
10267 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10269 esac
10271 sys_lib_dlsearch_path_spec='/usr/lib'
10274 tpf*)
10275 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10276 version_type=linux
10277 need_lib_prefix=no
10278 need_version=no
10279 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10280 shlibpath_var=LD_LIBRARY_PATH
10281 shlibpath_overrides_runpath=no
10282 hardcode_into_libs=yes
10285 uts4*)
10286 version_type=linux
10287 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10288 soname_spec='${libname}${release}${shared_ext}$major'
10289 shlibpath_var=LD_LIBRARY_PATH
10293 dynamic_linker=no
10295 esac
10296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10297 $as_echo "$dynamic_linker" >&6; }
10298 test "$dynamic_linker" = no && can_build_shared=no
10300 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10301 if test "$GCC" = yes; then
10302 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10305 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10306 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10308 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10309 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10404 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10405 hardcode_action=
10406 if test -n "$hardcode_libdir_flag_spec" ||
10407 test -n "$runpath_var" ||
10408 test "X$hardcode_automatic" = "Xyes" ; then
10410 # We can hardcode non-existent directories.
10411 if test "$hardcode_direct" != no &&
10412 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10413 # have to relink, otherwise we might link with an installed library
10414 # when we should be linking with a yet-to-be-installed one
10415 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10416 test "$hardcode_minus_L" != no; then
10417 # Linking always hardcodes the temporary library directory.
10418 hardcode_action=relink
10419 else
10420 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10421 hardcode_action=immediate
10423 else
10424 # We cannot hardcode anything, or else we can only hardcode existing
10425 # directories.
10426 hardcode_action=unsupported
10428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10429 $as_echo "$hardcode_action" >&6; }
10431 if test "$hardcode_action" = relink ||
10432 test "$inherit_rpath" = yes; then
10433 # Fast installation is not supported
10434 enable_fast_install=no
10435 elif test "$shlibpath_overrides_runpath" = yes ||
10436 test "$enable_shared" = no; then
10437 # Fast installation is not necessary
10438 enable_fast_install=needless
10446 if test "x$enable_dlopen" != xyes; then
10447 enable_dlopen=unknown
10448 enable_dlopen_self=unknown
10449 enable_dlopen_self_static=unknown
10450 else
10451 lt_cv_dlopen=no
10452 lt_cv_dlopen_libs=
10454 case $host_os in
10455 beos*)
10456 lt_cv_dlopen="load_add_on"
10457 lt_cv_dlopen_libs=
10458 lt_cv_dlopen_self=yes
10461 mingw* | pw32* | cegcc*)
10462 lt_cv_dlopen="LoadLibrary"
10463 lt_cv_dlopen_libs=
10466 cygwin*)
10467 lt_cv_dlopen="dlopen"
10468 lt_cv_dlopen_libs=
10471 darwin*)
10472 # if libdl is installed we need to link against it
10473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10474 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10475 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10476 $as_echo_n "(cached) " >&6
10477 else
10478 ac_check_lib_save_LIBS=$LIBS
10479 LIBS="-ldl $LIBS"
10480 if test x$gcc_no_link = xyes; then
10481 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10484 /* end confdefs.h. */
10486 /* Override any GCC internal prototype to avoid an error.
10487 Use char because int might match the return type of a GCC
10488 builtin and then its argument prototype would still apply. */
10489 #ifdef __cplusplus
10490 extern "C"
10491 #endif
10492 char dlopen ();
10494 main ()
10496 return dlopen ();
10498 return 0;
10500 _ACEOF
10501 if ac_fn_c_try_link "$LINENO"; then :
10502 ac_cv_lib_dl_dlopen=yes
10503 else
10504 ac_cv_lib_dl_dlopen=no
10506 rm -f core conftest.err conftest.$ac_objext \
10507 conftest$ac_exeext conftest.$ac_ext
10508 LIBS=$ac_check_lib_save_LIBS
10510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10511 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10512 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10513 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10514 else
10516 lt_cv_dlopen="dyld"
10517 lt_cv_dlopen_libs=
10518 lt_cv_dlopen_self=yes
10525 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10526 if test "x$ac_cv_func_shl_load" = x""yes; then :
10527 lt_cv_dlopen="shl_load"
10528 else
10529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10530 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10531 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10532 $as_echo_n "(cached) " >&6
10533 else
10534 ac_check_lib_save_LIBS=$LIBS
10535 LIBS="-ldld $LIBS"
10536 if test x$gcc_no_link = xyes; then
10537 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10540 /* end confdefs.h. */
10542 /* Override any GCC internal prototype to avoid an error.
10543 Use char because int might match the return type of a GCC
10544 builtin and then its argument prototype would still apply. */
10545 #ifdef __cplusplus
10546 extern "C"
10547 #endif
10548 char shl_load ();
10550 main ()
10552 return shl_load ();
10554 return 0;
10556 _ACEOF
10557 if ac_fn_c_try_link "$LINENO"; then :
10558 ac_cv_lib_dld_shl_load=yes
10559 else
10560 ac_cv_lib_dld_shl_load=no
10562 rm -f core conftest.err conftest.$ac_objext \
10563 conftest$ac_exeext conftest.$ac_ext
10564 LIBS=$ac_check_lib_save_LIBS
10566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10567 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10568 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10569 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10570 else
10571 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10572 if test "x$ac_cv_func_dlopen" = x""yes; then :
10573 lt_cv_dlopen="dlopen"
10574 else
10575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10576 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10577 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10578 $as_echo_n "(cached) " >&6
10579 else
10580 ac_check_lib_save_LIBS=$LIBS
10581 LIBS="-ldl $LIBS"
10582 if test x$gcc_no_link = xyes; then
10583 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10586 /* end confdefs.h. */
10588 /* Override any GCC internal prototype to avoid an error.
10589 Use char because int might match the return type of a GCC
10590 builtin and then its argument prototype would still apply. */
10591 #ifdef __cplusplus
10592 extern "C"
10593 #endif
10594 char dlopen ();
10596 main ()
10598 return dlopen ();
10600 return 0;
10602 _ACEOF
10603 if ac_fn_c_try_link "$LINENO"; then :
10604 ac_cv_lib_dl_dlopen=yes
10605 else
10606 ac_cv_lib_dl_dlopen=no
10608 rm -f core conftest.err conftest.$ac_objext \
10609 conftest$ac_exeext conftest.$ac_ext
10610 LIBS=$ac_check_lib_save_LIBS
10612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10613 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10614 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10615 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10616 else
10617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10618 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10619 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10620 $as_echo_n "(cached) " >&6
10621 else
10622 ac_check_lib_save_LIBS=$LIBS
10623 LIBS="-lsvld $LIBS"
10624 if test x$gcc_no_link = xyes; then
10625 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10628 /* end confdefs.h. */
10630 /* Override any GCC internal prototype to avoid an error.
10631 Use char because int might match the return type of a GCC
10632 builtin and then its argument prototype would still apply. */
10633 #ifdef __cplusplus
10634 extern "C"
10635 #endif
10636 char dlopen ();
10638 main ()
10640 return dlopen ();
10642 return 0;
10644 _ACEOF
10645 if ac_fn_c_try_link "$LINENO"; then :
10646 ac_cv_lib_svld_dlopen=yes
10647 else
10648 ac_cv_lib_svld_dlopen=no
10650 rm -f core conftest.err conftest.$ac_objext \
10651 conftest$ac_exeext conftest.$ac_ext
10652 LIBS=$ac_check_lib_save_LIBS
10654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10655 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10656 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
10657 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10658 else
10659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10660 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10661 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10662 $as_echo_n "(cached) " >&6
10663 else
10664 ac_check_lib_save_LIBS=$LIBS
10665 LIBS="-ldld $LIBS"
10666 if test x$gcc_no_link = xyes; then
10667 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10670 /* end confdefs.h. */
10672 /* Override any GCC internal prototype to avoid an error.
10673 Use char because int might match the return type of a GCC
10674 builtin and then its argument prototype would still apply. */
10675 #ifdef __cplusplus
10676 extern "C"
10677 #endif
10678 char dld_link ();
10680 main ()
10682 return dld_link ();
10684 return 0;
10686 _ACEOF
10687 if ac_fn_c_try_link "$LINENO"; then :
10688 ac_cv_lib_dld_dld_link=yes
10689 else
10690 ac_cv_lib_dld_dld_link=no
10692 rm -f core conftest.err conftest.$ac_objext \
10693 conftest$ac_exeext conftest.$ac_ext
10694 LIBS=$ac_check_lib_save_LIBS
10696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10697 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10698 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
10699 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10718 esac
10720 if test "x$lt_cv_dlopen" != xno; then
10721 enable_dlopen=yes
10722 else
10723 enable_dlopen=no
10726 case $lt_cv_dlopen in
10727 dlopen)
10728 save_CPPFLAGS="$CPPFLAGS"
10729 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10731 save_LDFLAGS="$LDFLAGS"
10732 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10734 save_LIBS="$LIBS"
10735 LIBS="$lt_cv_dlopen_libs $LIBS"
10737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10738 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10739 if test "${lt_cv_dlopen_self+set}" = set; then :
10740 $as_echo_n "(cached) " >&6
10741 else
10742 if test "$cross_compiling" = yes; then :
10743 lt_cv_dlopen_self=cross
10744 else
10745 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10746 lt_status=$lt_dlunknown
10747 cat > conftest.$ac_ext <<_LT_EOF
10748 #line 10748 "configure"
10749 #include "confdefs.h"
10751 #if HAVE_DLFCN_H
10752 #include <dlfcn.h>
10753 #endif
10755 #include <stdio.h>
10757 #ifdef RTLD_GLOBAL
10758 # define LT_DLGLOBAL RTLD_GLOBAL
10759 #else
10760 # ifdef DL_GLOBAL
10761 # define LT_DLGLOBAL DL_GLOBAL
10762 # else
10763 # define LT_DLGLOBAL 0
10764 # endif
10765 #endif
10767 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10768 find out it does not work in some platform. */
10769 #ifndef LT_DLLAZY_OR_NOW
10770 # ifdef RTLD_LAZY
10771 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10772 # else
10773 # ifdef DL_LAZY
10774 # define LT_DLLAZY_OR_NOW DL_LAZY
10775 # else
10776 # ifdef RTLD_NOW
10777 # define LT_DLLAZY_OR_NOW RTLD_NOW
10778 # else
10779 # ifdef DL_NOW
10780 # define LT_DLLAZY_OR_NOW DL_NOW
10781 # else
10782 # define LT_DLLAZY_OR_NOW 0
10783 # endif
10784 # endif
10785 # endif
10786 # endif
10787 #endif
10789 /* When -fvisbility=hidden is used, assume the code has been annotated
10790 correspondingly for the symbols needed. */
10791 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10792 void fnord () __attribute__((visibility("default")));
10793 #endif
10795 void fnord () { int i=42; }
10796 int main ()
10798 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10799 int status = $lt_dlunknown;
10801 if (self)
10803 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10804 else
10806 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10807 else puts (dlerror ());
10809 /* dlclose (self); */
10811 else
10812 puts (dlerror ());
10814 return status;
10816 _LT_EOF
10817 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10818 (eval $ac_link) 2>&5
10819 ac_status=$?
10820 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10821 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10822 (./conftest; exit; ) >&5 2>/dev/null
10823 lt_status=$?
10824 case x$lt_status in
10825 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10826 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10827 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10828 esac
10829 else :
10830 # compilation failed
10831 lt_cv_dlopen_self=no
10834 rm -fr conftest*
10838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10839 $as_echo "$lt_cv_dlopen_self" >&6; }
10841 if test "x$lt_cv_dlopen_self" = xyes; then
10842 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10844 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10845 if test "${lt_cv_dlopen_self_static+set}" = set; then :
10846 $as_echo_n "(cached) " >&6
10847 else
10848 if test "$cross_compiling" = yes; then :
10849 lt_cv_dlopen_self_static=cross
10850 else
10851 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10852 lt_status=$lt_dlunknown
10853 cat > conftest.$ac_ext <<_LT_EOF
10854 #line 10854 "configure"
10855 #include "confdefs.h"
10857 #if HAVE_DLFCN_H
10858 #include <dlfcn.h>
10859 #endif
10861 #include <stdio.h>
10863 #ifdef RTLD_GLOBAL
10864 # define LT_DLGLOBAL RTLD_GLOBAL
10865 #else
10866 # ifdef DL_GLOBAL
10867 # define LT_DLGLOBAL DL_GLOBAL
10868 # else
10869 # define LT_DLGLOBAL 0
10870 # endif
10871 #endif
10873 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10874 find out it does not work in some platform. */
10875 #ifndef LT_DLLAZY_OR_NOW
10876 # ifdef RTLD_LAZY
10877 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10878 # else
10879 # ifdef DL_LAZY
10880 # define LT_DLLAZY_OR_NOW DL_LAZY
10881 # else
10882 # ifdef RTLD_NOW
10883 # define LT_DLLAZY_OR_NOW RTLD_NOW
10884 # else
10885 # ifdef DL_NOW
10886 # define LT_DLLAZY_OR_NOW DL_NOW
10887 # else
10888 # define LT_DLLAZY_OR_NOW 0
10889 # endif
10890 # endif
10891 # endif
10892 # endif
10893 #endif
10895 /* When -fvisbility=hidden is used, assume the code has been annotated
10896 correspondingly for the symbols needed. */
10897 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10898 void fnord () __attribute__((visibility("default")));
10899 #endif
10901 void fnord () { int i=42; }
10902 int main ()
10904 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10905 int status = $lt_dlunknown;
10907 if (self)
10909 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10910 else
10912 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10913 else puts (dlerror ());
10915 /* dlclose (self); */
10917 else
10918 puts (dlerror ());
10920 return status;
10922 _LT_EOF
10923 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10924 (eval $ac_link) 2>&5
10925 ac_status=$?
10926 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10927 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10928 (./conftest; exit; ) >&5 2>/dev/null
10929 lt_status=$?
10930 case x$lt_status in
10931 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10932 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10933 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10934 esac
10935 else :
10936 # compilation failed
10937 lt_cv_dlopen_self_static=no
10940 rm -fr conftest*
10944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10945 $as_echo "$lt_cv_dlopen_self_static" >&6; }
10948 CPPFLAGS="$save_CPPFLAGS"
10949 LDFLAGS="$save_LDFLAGS"
10950 LIBS="$save_LIBS"
10952 esac
10954 case $lt_cv_dlopen_self in
10955 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10956 *) enable_dlopen_self=unknown ;;
10957 esac
10959 case $lt_cv_dlopen_self_static in
10960 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10961 *) enable_dlopen_self_static=unknown ;;
10962 esac
10981 striplib=
10982 old_striplib=
10983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
10984 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
10985 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10986 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10987 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10989 $as_echo "yes" >&6; }
10990 else
10991 # FIXME - insert some real tests, host_os isn't really good enough
10992 case $host_os in
10993 darwin*)
10994 if test -n "$STRIP" ; then
10995 striplib="$STRIP -x"
10996 old_striplib="$STRIP -S"
10997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10998 $as_echo "yes" >&6; }
10999 else
11000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11001 $as_echo "no" >&6; }
11005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11006 $as_echo "no" >&6; }
11008 esac
11022 # Report which library types will actually be built
11023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11024 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11026 $as_echo "$can_build_shared" >&6; }
11028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11029 $as_echo_n "checking whether to build shared libraries... " >&6; }
11030 test "$can_build_shared" = "no" && enable_shared=no
11032 # On AIX, shared libraries and static libraries use the same namespace, and
11033 # are all built from PIC.
11034 case $host_os in
11035 aix3*)
11036 test "$enable_shared" = yes && enable_static=no
11037 if test -n "$RANLIB"; then
11038 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11039 postinstall_cmds='$RANLIB $lib'
11043 aix[4-9]*)
11044 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11045 test "$enable_shared" = yes && enable_static=no
11048 esac
11049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11050 $as_echo "$enable_shared" >&6; }
11052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11053 $as_echo_n "checking whether to build static libraries... " >&6; }
11054 # Make sure either enable_shared or enable_static is yes.
11055 test "$enable_shared" = yes || enable_static=yes
11056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11057 $as_echo "$enable_static" >&6; }
11063 ac_ext=c
11064 ac_cpp='$CPP $CPPFLAGS'
11065 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11066 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11067 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11069 CC="$lt_save_CC"
11083 ac_config_commands="$ac_config_commands libtool"
11088 # Only expand once:
11094 case $host in
11095 *-cygwin* | *-mingw*)
11096 # 'host' will be top-level target in the case of a target lib,
11097 # we must compare to with_cross_host to decide if this is a native
11098 # or cross-compiler and select where to install dlls appropriately.
11099 if test -n "$with_cross_host" &&
11100 test x"$with_cross_host" != x"no"; then
11101 lt_host_flags='-no-undefined -bindir "$(toolexeclibdir)"';
11102 else
11103 lt_host_flags='-no-undefined -bindir "$(bindir)"';
11107 lt_host_flags=
11109 esac
11116 # Calculate toolexeclibdir
11117 # Also toolexecdir, though it's only used in toolexeclibdir
11118 case ${version_specific_libs} in
11119 yes)
11120 # Need the gcc compiler version to know where to install libraries
11121 # and header files if --enable-version-specific-runtime-libs option
11122 # is selected.
11123 toolexecdir='$(libdir)/gcc/$(target_alias)'
11124 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
11127 if test -n "$with_cross_host" &&
11128 test x"$with_cross_host" != x"no"; then
11129 # Install a library built with a cross compiler in tooldir, not libdir.
11130 toolexecdir='$(exec_prefix)/$(target_alias)'
11131 toolexeclibdir='$(toolexecdir)/lib'
11132 else
11133 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
11134 toolexeclibdir='$(libdir)'
11136 multi_os_directory=`$CC -print-multi-os-directory`
11137 case $multi_os_directory in
11138 .) ;; # Avoid trailing /.
11139 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
11140 esac
11142 esac
11146 if test ${multilib} = yes; then
11147 multilib_arg="--enable-multilib"
11148 else
11149 multilib_arg=
11152 # Determine what GCC version number to use in filesystem paths.
11154 get_gcc_base_ver="cat"
11156 # Check whether --with-gcc-major-version-only was given.
11157 if test "${with_gcc_major_version_only+set}" = set; then :
11158 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
11159 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*\$\$/\1/'"
11167 ac_config_files="$ac_config_files Makefile ssp/ssp.h"
11169 cat >confcache <<\_ACEOF
11170 # This file is a shell script that caches the results of configure
11171 # tests run on this system so they can be shared between configure
11172 # scripts and configure runs, see configure's option --config-cache.
11173 # It is not useful on other systems. If it contains results you don't
11174 # want to keep, you may remove or edit it.
11176 # config.status only pays attention to the cache file if you give it
11177 # the --recheck option to rerun configure.
11179 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11180 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11181 # following values.
11183 _ACEOF
11185 # The following way of writing the cache mishandles newlines in values,
11186 # but we know of no workaround that is simple, portable, and efficient.
11187 # So, we kill variables containing newlines.
11188 # Ultrix sh set writes to stderr and can't be redirected directly,
11189 # and sets the high bit in the cache file unless we assign to the vars.
11191 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11192 eval ac_val=\$$ac_var
11193 case $ac_val in #(
11194 *${as_nl}*)
11195 case $ac_var in #(
11196 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11197 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11198 esac
11199 case $ac_var in #(
11200 _ | IFS | as_nl) ;; #(
11201 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11202 *) { eval $ac_var=; unset $ac_var;} ;;
11203 esac ;;
11204 esac
11205 done
11207 (set) 2>&1 |
11208 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11209 *${as_nl}ac_space=\ *)
11210 # `set' does not quote correctly, so add quotes: double-quote
11211 # substitution turns \\\\ into \\, and sed turns \\ into \.
11212 sed -n \
11213 "s/'/'\\\\''/g;
11214 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11215 ;; #(
11217 # `set' quotes correctly as required by POSIX, so do not add quotes.
11218 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11220 esac |
11221 sort
11223 sed '
11224 /^ac_cv_env_/b end
11225 t clear
11226 :clear
11227 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11228 t end
11229 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11230 :end' >>confcache
11231 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11232 if test -w "$cache_file"; then
11233 test "x$cache_file" != "x/dev/null" &&
11234 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11235 $as_echo "$as_me: updating cache $cache_file" >&6;}
11236 cat confcache >$cache_file
11237 else
11238 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11239 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11242 rm -f confcache
11244 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11245 # Let make expand exec_prefix.
11246 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11248 DEFS=-DHAVE_CONFIG_H
11250 ac_libobjs=
11251 ac_ltlibobjs=
11252 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11253 # 1. Remove the extension, and $U if already installed.
11254 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11255 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11256 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11257 # will be set to the directory where LIBOBJS objects are built.
11258 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11259 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11260 done
11261 LIBOBJS=$ac_libobjs
11263 LTLIBOBJS=$ac_ltlibobjs
11266 if test -n "$EXEEXT"; then
11267 am__EXEEXT_TRUE=
11268 am__EXEEXT_FALSE='#'
11269 else
11270 am__EXEEXT_TRUE='#'
11271 am__EXEEXT_FALSE=
11274 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
11275 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
11276 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11278 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11279 as_fn_error "conditional \"AMDEP\" was never defined.
11280 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11282 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11283 as_fn_error "conditional \"am__fastdepCC\" was never defined.
11284 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11286 if test -z "${LIBSSP_USE_SYMVER_TRUE}" && test -z "${LIBSSP_USE_SYMVER_FALSE}"; then
11287 as_fn_error "conditional \"LIBSSP_USE_SYMVER\" was never defined.
11288 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11290 if test -z "${LIBSSP_USE_SYMVER_GNU_TRUE}" && test -z "${LIBSSP_USE_SYMVER_GNU_FALSE}"; then
11291 as_fn_error "conditional \"LIBSSP_USE_SYMVER_GNU\" was never defined.
11292 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11294 if test -z "${LIBSSP_USE_SYMVER_SUN_TRUE}" && test -z "${LIBSSP_USE_SYMVER_SUN_FALSE}"; then
11295 as_fn_error "conditional \"LIBSSP_USE_SYMVER_SUN\" was never defined.
11296 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11299 : ${CONFIG_STATUS=./config.status}
11300 ac_write_fail=0
11301 ac_clean_files_save=$ac_clean_files
11302 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11303 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11304 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11305 as_write_fail=0
11306 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11307 #! $SHELL
11308 # Generated by $as_me.
11309 # Run this file to recreate the current configuration.
11310 # Compiler output produced by configure, useful for debugging
11311 # configure, is in config.log if it exists.
11313 debug=false
11314 ac_cs_recheck=false
11315 ac_cs_silent=false
11317 SHELL=\${CONFIG_SHELL-$SHELL}
11318 export SHELL
11319 _ASEOF
11320 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11321 ## -------------------- ##
11322 ## M4sh Initialization. ##
11323 ## -------------------- ##
11325 # Be more Bourne compatible
11326 DUALCASE=1; export DUALCASE # for MKS sh
11327 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11328 emulate sh
11329 NULLCMD=:
11330 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11331 # is contrary to our usage. Disable this feature.
11332 alias -g '${1+"$@"}'='"$@"'
11333 setopt NO_GLOB_SUBST
11334 else
11335 case `(set -o) 2>/dev/null` in #(
11336 *posix*) :
11337 set -o posix ;; #(
11338 *) :
11340 esac
11344 as_nl='
11346 export as_nl
11347 # Printing a long string crashes Solaris 7 /usr/bin/printf.
11348 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11349 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11350 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11351 # Prefer a ksh shell builtin over an external printf program on Solaris,
11352 # but without wasting forks for bash or zsh.
11353 if test -z "$BASH_VERSION$ZSH_VERSION" \
11354 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11355 as_echo='print -r --'
11356 as_echo_n='print -rn --'
11357 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11358 as_echo='printf %s\n'
11359 as_echo_n='printf %s'
11360 else
11361 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11362 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11363 as_echo_n='/usr/ucb/echo -n'
11364 else
11365 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11366 as_echo_n_body='eval
11367 arg=$1;
11368 case $arg in #(
11369 *"$as_nl"*)
11370 expr "X$arg" : "X\\(.*\\)$as_nl";
11371 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11372 esac;
11373 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11375 export as_echo_n_body
11376 as_echo_n='sh -c $as_echo_n_body as_echo'
11378 export as_echo_body
11379 as_echo='sh -c $as_echo_body as_echo'
11382 # The user is always right.
11383 if test "${PATH_SEPARATOR+set}" != set; then
11384 PATH_SEPARATOR=:
11385 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11386 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11387 PATH_SEPARATOR=';'
11392 # IFS
11393 # We need space, tab and new line, in precisely that order. Quoting is
11394 # there to prevent editors from complaining about space-tab.
11395 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11396 # splitting by setting IFS to empty value.)
11397 IFS=" "" $as_nl"
11399 # Find who we are. Look in the path if we contain no directory separator.
11400 case $0 in #((
11401 *[\\/]* ) as_myself=$0 ;;
11402 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11403 for as_dir in $PATH
11405 IFS=$as_save_IFS
11406 test -z "$as_dir" && as_dir=.
11407 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11408 done
11409 IFS=$as_save_IFS
11412 esac
11413 # We did not find ourselves, most probably we were run as `sh COMMAND'
11414 # in which case we are not to be found in the path.
11415 if test "x$as_myself" = x; then
11416 as_myself=$0
11418 if test ! -f "$as_myself"; then
11419 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11420 exit 1
11423 # Unset variables that we do not need and which cause bugs (e.g. in
11424 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
11425 # suppresses any "Segmentation fault" message there. '((' could
11426 # trigger a bug in pdksh 5.2.14.
11427 for as_var in BASH_ENV ENV MAIL MAILPATH
11428 do eval test x\${$as_var+set} = xset \
11429 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11430 done
11431 PS1='$ '
11432 PS2='> '
11433 PS4='+ '
11435 # NLS nuisances.
11436 LC_ALL=C
11437 export LC_ALL
11438 LANGUAGE=C
11439 export LANGUAGE
11441 # CDPATH.
11442 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11445 # as_fn_error ERROR [LINENO LOG_FD]
11446 # ---------------------------------
11447 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11448 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11449 # script with status $?, using 1 if that was 0.
11450 as_fn_error ()
11452 as_status=$?; test $as_status -eq 0 && as_status=1
11453 if test "$3"; then
11454 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11455 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
11457 $as_echo "$as_me: error: $1" >&2
11458 as_fn_exit $as_status
11459 } # as_fn_error
11462 # as_fn_set_status STATUS
11463 # -----------------------
11464 # Set $? to STATUS, without forking.
11465 as_fn_set_status ()
11467 return $1
11468 } # as_fn_set_status
11470 # as_fn_exit STATUS
11471 # -----------------
11472 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11473 as_fn_exit ()
11475 set +e
11476 as_fn_set_status $1
11477 exit $1
11478 } # as_fn_exit
11480 # as_fn_unset VAR
11481 # ---------------
11482 # Portably unset VAR.
11483 as_fn_unset ()
11485 { eval $1=; unset $1;}
11487 as_unset=as_fn_unset
11488 # as_fn_append VAR VALUE
11489 # ----------------------
11490 # Append the text in VALUE to the end of the definition contained in VAR. Take
11491 # advantage of any shell optimizations that allow amortized linear growth over
11492 # repeated appends, instead of the typical quadratic growth present in naive
11493 # implementations.
11494 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11495 eval 'as_fn_append ()
11497 eval $1+=\$2
11499 else
11500 as_fn_append ()
11502 eval $1=\$$1\$2
11504 fi # as_fn_append
11506 # as_fn_arith ARG...
11507 # ------------------
11508 # Perform arithmetic evaluation on the ARGs, and store the result in the
11509 # global $as_val. Take advantage of shells that can avoid forks. The arguments
11510 # must be portable across $(()) and expr.
11511 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11512 eval 'as_fn_arith ()
11514 as_val=$(( $* ))
11516 else
11517 as_fn_arith ()
11519 as_val=`expr "$@" || test $? -eq 1`
11521 fi # as_fn_arith
11524 if expr a : '\(a\)' >/dev/null 2>&1 &&
11525 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11526 as_expr=expr
11527 else
11528 as_expr=false
11531 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11532 as_basename=basename
11533 else
11534 as_basename=false
11537 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11538 as_dirname=dirname
11539 else
11540 as_dirname=false
11543 as_me=`$as_basename -- "$0" ||
11544 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11545 X"$0" : 'X\(//\)$' \| \
11546 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11547 $as_echo X/"$0" |
11548 sed '/^.*\/\([^/][^/]*\)\/*$/{
11549 s//\1/
11552 /^X\/\(\/\/\)$/{
11553 s//\1/
11556 /^X\/\(\/\).*/{
11557 s//\1/
11560 s/.*/./; q'`
11562 # Avoid depending upon Character Ranges.
11563 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11564 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11565 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11566 as_cr_digits='0123456789'
11567 as_cr_alnum=$as_cr_Letters$as_cr_digits
11569 ECHO_C= ECHO_N= ECHO_T=
11570 case `echo -n x` in #(((((
11571 -n*)
11572 case `echo 'xy\c'` in
11573 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
11574 xy) ECHO_C='\c';;
11575 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
11576 ECHO_T=' ';;
11577 esac;;
11579 ECHO_N='-n';;
11580 esac
11582 rm -f conf$$ conf$$.exe conf$$.file
11583 if test -d conf$$.dir; then
11584 rm -f conf$$.dir/conf$$.file
11585 else
11586 rm -f conf$$.dir
11587 mkdir conf$$.dir 2>/dev/null
11589 if (echo >conf$$.file) 2>/dev/null; then
11590 if ln -s conf$$.file conf$$ 2>/dev/null; then
11591 as_ln_s='ln -s'
11592 # ... but there are two gotchas:
11593 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11594 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11595 # In both cases, we have to default to `cp -p'.
11596 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11597 as_ln_s='cp -p'
11598 elif ln conf$$.file conf$$ 2>/dev/null; then
11599 as_ln_s=ln
11600 else
11601 as_ln_s='cp -p'
11603 else
11604 as_ln_s='cp -p'
11606 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11607 rmdir conf$$.dir 2>/dev/null
11610 # as_fn_mkdir_p
11611 # -------------
11612 # Create "$as_dir" as a directory, including parents if necessary.
11613 as_fn_mkdir_p ()
11616 case $as_dir in #(
11617 -*) as_dir=./$as_dir;;
11618 esac
11619 test -d "$as_dir" || eval $as_mkdir_p || {
11620 as_dirs=
11621 while :; do
11622 case $as_dir in #(
11623 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11624 *) as_qdir=$as_dir;;
11625 esac
11626 as_dirs="'$as_qdir' $as_dirs"
11627 as_dir=`$as_dirname -- "$as_dir" ||
11628 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11629 X"$as_dir" : 'X\(//\)[^/]' \| \
11630 X"$as_dir" : 'X\(//\)$' \| \
11631 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11632 $as_echo X"$as_dir" |
11633 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11634 s//\1/
11637 /^X\(\/\/\)[^/].*/{
11638 s//\1/
11641 /^X\(\/\/\)$/{
11642 s//\1/
11645 /^X\(\/\).*/{
11646 s//\1/
11649 s/.*/./; q'`
11650 test -d "$as_dir" && break
11651 done
11652 test -z "$as_dirs" || eval "mkdir $as_dirs"
11653 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
11656 } # as_fn_mkdir_p
11657 if mkdir -p . 2>/dev/null; then
11658 as_mkdir_p='mkdir -p "$as_dir"'
11659 else
11660 test -d ./-p && rmdir ./-p
11661 as_mkdir_p=false
11664 if test -x / >/dev/null 2>&1; then
11665 as_test_x='test -x'
11666 else
11667 if ls -dL / >/dev/null 2>&1; then
11668 as_ls_L_option=L
11669 else
11670 as_ls_L_option=
11672 as_test_x='
11673 eval sh -c '\''
11674 if test -d "$1"; then
11675 test -d "$1/.";
11676 else
11677 case $1 in #(
11678 -*)set "./$1";;
11679 esac;
11680 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
11681 ???[sx]*):;;*)false;;esac;fi
11682 '\'' sh
11685 as_executable_p=$as_test_x
11687 # Sed expression to map a string onto a valid CPP name.
11688 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11690 # Sed expression to map a string onto a valid variable name.
11691 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11694 exec 6>&1
11695 ## ----------------------------------- ##
11696 ## Main body of $CONFIG_STATUS script. ##
11697 ## ----------------------------------- ##
11698 _ASEOF
11699 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11701 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11702 # Save the log message, to keep $0 and so on meaningful, and to
11703 # report actual input values of CONFIG_FILES etc. instead of their
11704 # values after options handling.
11705 ac_log="
11706 This file was extended by libssp $as_me 1.0, which was
11707 generated by GNU Autoconf 2.64. Invocation command line was
11709 CONFIG_FILES = $CONFIG_FILES
11710 CONFIG_HEADERS = $CONFIG_HEADERS
11711 CONFIG_LINKS = $CONFIG_LINKS
11712 CONFIG_COMMANDS = $CONFIG_COMMANDS
11713 $ $0 $@
11715 on `(hostname || uname -n) 2>/dev/null | sed 1q`
11718 _ACEOF
11720 case $ac_config_files in *"
11721 "*) set x $ac_config_files; shift; ac_config_files=$*;;
11722 esac
11724 case $ac_config_headers in *"
11725 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11726 esac
11729 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11730 # Files that config.status was made for.
11731 config_files="$ac_config_files"
11732 config_headers="$ac_config_headers"
11733 config_commands="$ac_config_commands"
11735 _ACEOF
11737 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11738 ac_cs_usage="\
11739 \`$as_me' instantiates files and other configuration actions
11740 from templates according to the current configuration. Unless the files
11741 and actions are specified as TAGs, all are instantiated by default.
11743 Usage: $0 [OPTION]... [TAG]...
11745 -h, --help print this help, then exit
11746 -V, --version print version number and configuration settings, then exit
11747 -q, --quiet, --silent
11748 do not print progress messages
11749 -d, --debug don't remove temporary files
11750 --recheck update $as_me by reconfiguring in the same conditions
11751 --file=FILE[:TEMPLATE]
11752 instantiate the configuration file FILE
11753 --header=FILE[:TEMPLATE]
11754 instantiate the configuration header FILE
11756 Configuration files:
11757 $config_files
11759 Configuration headers:
11760 $config_headers
11762 Configuration commands:
11763 $config_commands
11765 Report bugs to the package provider."
11767 _ACEOF
11768 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11769 ac_cs_version="\\
11770 libssp config.status 1.0
11771 configured by $0, generated by GNU Autoconf 2.64,
11772 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
11774 Copyright (C) 2009 Free Software Foundation, Inc.
11775 This config.status script is free software; the Free Software Foundation
11776 gives unlimited permission to copy, distribute and modify it."
11778 ac_pwd='$ac_pwd'
11779 srcdir='$srcdir'
11780 INSTALL='$INSTALL'
11781 MKDIR_P='$MKDIR_P'
11782 AWK='$AWK'
11783 test -n "\$AWK" || AWK=awk
11784 _ACEOF
11786 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11787 # The default lists apply if the user does not specify any file.
11788 ac_need_defaults=:
11789 while test $# != 0
11791 case $1 in
11792 --*=*)
11793 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11794 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11795 ac_shift=:
11798 ac_option=$1
11799 ac_optarg=$2
11800 ac_shift=shift
11802 esac
11804 case $ac_option in
11805 # Handling of the options.
11806 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11807 ac_cs_recheck=: ;;
11808 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11809 $as_echo "$ac_cs_version"; exit ;;
11810 --debug | --debu | --deb | --de | --d | -d )
11811 debug=: ;;
11812 --file | --fil | --fi | --f )
11813 $ac_shift
11814 case $ac_optarg in
11815 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11816 esac
11817 as_fn_append CONFIG_FILES " '$ac_optarg'"
11818 ac_need_defaults=false;;
11819 --header | --heade | --head | --hea )
11820 $ac_shift
11821 case $ac_optarg in
11822 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11823 esac
11824 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
11825 ac_need_defaults=false;;
11826 --he | --h)
11827 # Conflict between --help and --header
11828 as_fn_error "ambiguous option: \`$1'
11829 Try \`$0 --help' for more information.";;
11830 --help | --hel | -h )
11831 $as_echo "$ac_cs_usage"; exit ;;
11832 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11833 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11834 ac_cs_silent=: ;;
11836 # This is an error.
11837 -*) as_fn_error "unrecognized option: \`$1'
11838 Try \`$0 --help' for more information." ;;
11840 *) as_fn_append ac_config_targets " $1"
11841 ac_need_defaults=false ;;
11843 esac
11844 shift
11845 done
11847 ac_configure_extra_args=
11849 if $ac_cs_silent; then
11850 exec 6>/dev/null
11851 ac_configure_extra_args="$ac_configure_extra_args --silent"
11854 _ACEOF
11855 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11856 if \$ac_cs_recheck; then
11857 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11858 shift
11859 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11860 CONFIG_SHELL='$SHELL'
11861 export CONFIG_SHELL
11862 exec "\$@"
11865 _ACEOF
11866 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11867 exec 5>>config.log
11869 echo
11870 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11871 ## Running $as_me. ##
11872 _ASBOX
11873 $as_echo "$ac_log"
11874 } >&5
11876 _ACEOF
11877 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11879 # INIT-COMMANDS
11882 srcdir="$srcdir"
11883 host="$host"
11884 target="$target"
11885 with_multisubdir="$with_multisubdir"
11886 with_multisrctop="$with_multisrctop"
11887 with_target_subdir="$with_target_subdir"
11888 ac_configure_args="${multilib_arg} ${ac_configure_args}"
11889 multi_basedir="$multi_basedir"
11890 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
11891 CC="$CC"
11892 CXX="$CXX"
11893 GFORTRAN="$GFORTRAN"
11894 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11897 # The HP-UX ksh and POSIX shell print the target directory to stdout
11898 # if CDPATH is set.
11899 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11901 sed_quote_subst='$sed_quote_subst'
11902 double_quote_subst='$double_quote_subst'
11903 delay_variable_subst='$delay_variable_subst'
11904 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
11905 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
11906 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
11907 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
11908 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
11909 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
11910 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
11911 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
11912 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
11913 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
11914 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
11915 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
11916 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
11917 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
11918 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
11919 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
11920 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
11921 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
11922 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
11923 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
11924 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
11925 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
11926 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
11927 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
11928 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
11929 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
11930 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
11931 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
11932 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
11933 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
11934 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
11935 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
11936 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
11937 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
11938 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
11939 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
11940 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
11941 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
11942 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
11943 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
11944 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
11945 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
11946 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
11947 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
11948 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
11949 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
11950 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
11951 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
11952 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"`'
11953 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
11954 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
11955 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
11956 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
11957 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
11958 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
11959 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
11960 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
11961 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
11962 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
11963 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
11964 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
11965 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
11966 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
11967 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
11968 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
11969 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
11970 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
11971 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
11972 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
11973 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
11974 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
11975 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
11976 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
11977 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
11978 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
11979 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
11980 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
11981 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
11982 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
11983 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
11984 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
11985 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
11986 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
11987 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
11988 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
11989 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
11990 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
11991 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
11992 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
11993 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
11994 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
11995 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
11996 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
11997 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
11998 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
11999 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
12000 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
12001 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
12002 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
12003 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
12004 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
12005 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
12006 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
12007 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
12008 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
12009 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
12010 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
12011 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
12012 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
12013 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
12014 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
12015 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
12016 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
12017 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
12018 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
12019 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
12020 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
12021 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
12022 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
12023 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
12025 LTCC='$LTCC'
12026 LTCFLAGS='$LTCFLAGS'
12027 compiler='$compiler_DEFAULT'
12029 # A function that is used when there is no print builtin or printf.
12030 func_fallback_echo ()
12032 eval 'cat <<_LTECHO_EOF
12034 _LTECHO_EOF'
12037 # Quote evaled strings.
12038 for var in SHELL \
12039 ECHO \
12040 SED \
12041 GREP \
12042 EGREP \
12043 FGREP \
12044 LD \
12045 NM \
12046 LN_S \
12047 lt_SP2NL \
12048 lt_NL2SP \
12049 reload_flag \
12050 OBJDUMP \
12051 deplibs_check_method \
12052 file_magic_cmd \
12053 AR \
12054 AR_FLAGS \
12055 STRIP \
12056 RANLIB \
12057 CC \
12058 CFLAGS \
12059 compiler \
12060 lt_cv_sys_global_symbol_pipe \
12061 lt_cv_sys_global_symbol_to_cdecl \
12062 lt_cv_sys_global_symbol_to_c_name_address \
12063 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
12064 lt_prog_compiler_no_builtin_flag \
12065 lt_prog_compiler_wl \
12066 lt_prog_compiler_pic \
12067 lt_prog_compiler_static \
12068 lt_cv_prog_compiler_c_o \
12069 need_locks \
12070 DSYMUTIL \
12071 NMEDIT \
12072 LIPO \
12073 OTOOL \
12074 OTOOL64 \
12075 shrext_cmds \
12076 export_dynamic_flag_spec \
12077 whole_archive_flag_spec \
12078 compiler_needs_object \
12079 with_gnu_ld \
12080 allow_undefined_flag \
12081 no_undefined_flag \
12082 hardcode_libdir_flag_spec \
12083 hardcode_libdir_flag_spec_ld \
12084 hardcode_libdir_separator \
12085 fix_srcfile_path \
12086 exclude_expsyms \
12087 include_expsyms \
12088 file_list_spec \
12089 variables_saved_for_relink \
12090 libname_spec \
12091 library_names_spec \
12092 soname_spec \
12093 install_override_mode \
12094 finish_eval \
12095 old_striplib \
12096 striplib; do
12097 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
12098 *[\\\\\\\`\\"\\\$]*)
12099 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
12102 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12104 esac
12105 done
12107 # Double-quote double-evaled strings.
12108 for var in reload_cmds \
12109 old_postinstall_cmds \
12110 old_postuninstall_cmds \
12111 old_archive_cmds \
12112 extract_expsyms_cmds \
12113 old_archive_from_new_cmds \
12114 old_archive_from_expsyms_cmds \
12115 archive_cmds \
12116 archive_expsym_cmds \
12117 module_cmds \
12118 module_expsym_cmds \
12119 export_symbols_cmds \
12120 prelink_cmds \
12121 postinstall_cmds \
12122 postuninstall_cmds \
12123 finish_cmds \
12124 sys_lib_search_path_spec \
12125 sys_lib_dlsearch_path_spec; do
12126 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
12127 *[\\\\\\\`\\"\\\$]*)
12128 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
12131 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12133 esac
12134 done
12136 ac_aux_dir='$ac_aux_dir'
12137 xsi_shell='$xsi_shell'
12138 lt_shell_append='$lt_shell_append'
12140 # See if we are running on zsh, and set the options which allow our
12141 # commands through without removal of \ escapes INIT.
12142 if test -n "\${ZSH_VERSION+set}" ; then
12143 setopt NO_GLOB_SUBST
12147 PACKAGE='$PACKAGE'
12148 VERSION='$VERSION'
12149 TIMESTAMP='$TIMESTAMP'
12150 RM='$RM'
12151 ofile='$ofile'
12156 _ACEOF
12158 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12160 # Handling of arguments.
12161 for ac_config_target in $ac_config_targets
12163 case $ac_config_target in
12164 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
12165 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12166 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12167 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
12168 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12169 "ssp/ssp.h") CONFIG_FILES="$CONFIG_FILES ssp/ssp.h" ;;
12171 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
12172 esac
12173 done
12176 # If the user did not use the arguments to specify the items to instantiate,
12177 # then the envvar interface is used. Set only those that are not.
12178 # We use the long form for the default assignment because of an extremely
12179 # bizarre bug on SunOS 4.1.3.
12180 if $ac_need_defaults; then
12181 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12182 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12183 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12186 # Have a temporary directory for convenience. Make it in the build tree
12187 # simply because there is no reason against having it here, and in addition,
12188 # creating and moving files from /tmp can sometimes cause problems.
12189 # Hook for its removal unless debugging.
12190 # Note that there is a small window in which the directory will not be cleaned:
12191 # after its creation but before its name has been assigned to `$tmp'.
12192 $debug ||
12194 tmp=
12195 trap 'exit_status=$?
12196 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
12198 trap 'as_fn_exit 1' 1 2 13 15
12200 # Create a (secure) tmp directory for tmp files.
12203 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12204 test -n "$tmp" && test -d "$tmp"
12205 } ||
12207 tmp=./conf$$-$RANDOM
12208 (umask 077 && mkdir "$tmp")
12209 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
12211 # Set up the scripts for CONFIG_FILES section.
12212 # No need to generate them if there are no CONFIG_FILES.
12213 # This happens for instance with `./config.status config.h'.
12214 if test -n "$CONFIG_FILES"; then
12217 ac_cr=`echo X | tr X '\015'`
12218 # On cygwin, bash can eat \r inside `` if the user requested igncr.
12219 # But we know of no other shell where ac_cr would be empty at this
12220 # point, so we can use a bashism as a fallback.
12221 if test "x$ac_cr" = x; then
12222 eval ac_cr=\$\'\\r\'
12224 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12225 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12226 ac_cs_awk_cr='\r'
12227 else
12228 ac_cs_awk_cr=$ac_cr
12231 echo 'BEGIN {' >"$tmp/subs1.awk" &&
12232 _ACEOF
12236 echo "cat >conf$$subs.awk <<_ACEOF" &&
12237 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12238 echo "_ACEOF"
12239 } >conf$$subs.sh ||
12240 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
12241 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
12242 ac_delim='%!_!# '
12243 for ac_last_try in false false false false false :; do
12244 . ./conf$$subs.sh ||
12245 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
12247 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12248 if test $ac_delim_n = $ac_delim_num; then
12249 break
12250 elif $ac_last_try; then
12251 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
12252 else
12253 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12255 done
12256 rm -f conf$$subs.sh
12258 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12259 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
12260 _ACEOF
12261 sed -n '
12263 s/^/S["/; s/!.*/"]=/
12266 s/^[^!]*!//
12267 :repl
12268 t repl
12269 s/'"$ac_delim"'$//
12270 t delim
12273 s/\(.\{148\}\).*/\1/
12274 t more1
12275 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12278 b repl
12279 :more1
12280 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12283 s/.\{148\}//
12284 t nl
12285 :delim
12287 s/\(.\{148\}\).*/\1/
12288 t more2
12289 s/["\\]/\\&/g; s/^/"/; s/$/"/
12292 :more2
12293 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12296 s/.\{148\}//
12297 t delim
12298 ' <conf$$subs.awk | sed '
12299 /^[^""]/{
12301 s/\n//
12303 ' >>$CONFIG_STATUS || ac_write_fail=1
12304 rm -f conf$$subs.awk
12305 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12306 _ACAWK
12307 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
12308 for (key in S) S_is_set[key] = 1
12309 FS = "\a"
12313 line = $ 0
12314 nfields = split(line, field, "@")
12315 substed = 0
12316 len = length(field[1])
12317 for (i = 2; i < nfields; i++) {
12318 key = field[i]
12319 keylen = length(key)
12320 if (S_is_set[key]) {
12321 value = S[key]
12322 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12323 len += length(value) + length(field[++i])
12324 substed = 1
12325 } else
12326 len += 1 + keylen
12329 print line
12332 _ACAWK
12333 _ACEOF
12334 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12335 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12336 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12337 else
12339 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
12340 || as_fn_error "could not setup config files machinery" "$LINENO" 5
12341 _ACEOF
12343 # VPATH may cause trouble with some makes, so we remove $(srcdir),
12344 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12345 # trailing colons and then remove the whole line if VPATH becomes empty
12346 # (actually we leave an empty line to preserve line numbers).
12347 if test "x$srcdir" = x.; then
12348 ac_vpsub='/^[ ]*VPATH[ ]*=/{
12349 s/:*\$(srcdir):*/:/
12350 s/:*\${srcdir}:*/:/
12351 s/:*@srcdir@:*/:/
12352 s/^\([^=]*=[ ]*\):*/\1/
12353 s/:*$//
12354 s/^[^=]*=[ ]*$//
12358 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12359 fi # test -n "$CONFIG_FILES"
12361 # Set up the scripts for CONFIG_HEADERS section.
12362 # No need to generate them if there are no CONFIG_HEADERS.
12363 # This happens for instance with `./config.status Makefile'.
12364 if test -n "$CONFIG_HEADERS"; then
12365 cat >"$tmp/defines.awk" <<\_ACAWK ||
12366 BEGIN {
12367 _ACEOF
12369 # Transform confdefs.h into an awk script `defines.awk', embedded as
12370 # here-document in config.status, that substitutes the proper values into
12371 # config.h.in to produce config.h.
12373 # Create a delimiter string that does not exist in confdefs.h, to ease
12374 # handling of long lines.
12375 ac_delim='%!_!# '
12376 for ac_last_try in false false :; do
12377 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
12378 if test -z "$ac_t"; then
12379 break
12380 elif $ac_last_try; then
12381 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
12382 else
12383 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12385 done
12387 # For the awk script, D is an array of macro values keyed by name,
12388 # likewise P contains macro parameters if any. Preserve backslash
12389 # newline sequences.
12391 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12392 sed -n '
12393 s/.\{148\}/&'"$ac_delim"'/g
12394 t rset
12395 :rset
12396 s/^[ ]*#[ ]*define[ ][ ]*/ /
12397 t def
12399 :def
12400 s/\\$//
12401 t bsnl
12402 s/["\\]/\\&/g
12403 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12404 D["\1"]=" \3"/p
12405 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
12407 :bsnl
12408 s/["\\]/\\&/g
12409 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12410 D["\1"]=" \3\\\\\\n"\\/p
12411 t cont
12412 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12413 t cont
12415 :cont
12417 s/.\{148\}/&'"$ac_delim"'/g
12418 t clear
12419 :clear
12420 s/\\$//
12421 t bsnlc
12422 s/["\\]/\\&/g; s/^/"/; s/$/"/p
12424 :bsnlc
12425 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12426 b cont
12427 ' <confdefs.h | sed '
12428 s/'"$ac_delim"'/"\\\
12429 "/g' >>$CONFIG_STATUS || ac_write_fail=1
12431 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12432 for (key in D) D_is_set[key] = 1
12433 FS = "\a"
12435 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12436 line = \$ 0
12437 split(line, arg, " ")
12438 if (arg[1] == "#") {
12439 defundef = arg[2]
12440 mac1 = arg[3]
12441 } else {
12442 defundef = substr(arg[1], 2)
12443 mac1 = arg[2]
12445 split(mac1, mac2, "(") #)
12446 macro = mac2[1]
12447 prefix = substr(line, 1, index(line, defundef) - 1)
12448 if (D_is_set[macro]) {
12449 # Preserve the white space surrounding the "#".
12450 print prefix "define", macro P[macro] D[macro]
12451 next
12452 } else {
12453 # Replace #undef with comments. This is necessary, for example,
12454 # in the case of _POSIX_SOURCE, which is predefined and required
12455 # on some systems where configure will not decide to define it.
12456 if (defundef == "undef") {
12457 print "/*", prefix defundef, macro, "*/"
12458 next
12462 { print }
12463 _ACAWK
12464 _ACEOF
12465 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12466 as_fn_error "could not setup config headers machinery" "$LINENO" 5
12467 fi # test -n "$CONFIG_HEADERS"
12470 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
12471 shift
12472 for ac_tag
12474 case $ac_tag in
12475 :[FHLC]) ac_mode=$ac_tag; continue;;
12476 esac
12477 case $ac_mode$ac_tag in
12478 :[FHL]*:*);;
12479 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
12480 :[FH]-) ac_tag=-:-;;
12481 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12482 esac
12483 ac_save_IFS=$IFS
12484 IFS=:
12485 set x $ac_tag
12486 IFS=$ac_save_IFS
12487 shift
12488 ac_file=$1
12489 shift
12491 case $ac_mode in
12492 :L) ac_source=$1;;
12493 :[FH])
12494 ac_file_inputs=
12495 for ac_f
12497 case $ac_f in
12498 -) ac_f="$tmp/stdin";;
12499 *) # Look for the file first in the build tree, then in the source tree
12500 # (if the path is not absolute). The absolute path cannot be DOS-style,
12501 # because $ac_f cannot contain `:'.
12502 test -f "$ac_f" ||
12503 case $ac_f in
12504 [\\/$]*) false;;
12505 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12506 esac ||
12507 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12508 esac
12509 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12510 as_fn_append ac_file_inputs " '$ac_f'"
12511 done
12513 # Let's still pretend it is `configure' which instantiates (i.e., don't
12514 # use $as_me), people would be surprised to read:
12515 # /* config.h. Generated by config.status. */
12516 configure_input='Generated from '`
12517 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12518 `' by configure.'
12519 if test x"$ac_file" != x-; then
12520 configure_input="$ac_file. $configure_input"
12521 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12522 $as_echo "$as_me: creating $ac_file" >&6;}
12524 # Neutralize special characters interpreted by sed in replacement strings.
12525 case $configure_input in #(
12526 *\&* | *\|* | *\\* )
12527 ac_sed_conf_input=`$as_echo "$configure_input" |
12528 sed 's/[\\\\&|]/\\\\&/g'`;; #(
12529 *) ac_sed_conf_input=$configure_input;;
12530 esac
12532 case $ac_tag in
12533 *:-:* | *:-) cat >"$tmp/stdin" \
12534 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
12535 esac
12537 esac
12539 ac_dir=`$as_dirname -- "$ac_file" ||
12540 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12541 X"$ac_file" : 'X\(//\)[^/]' \| \
12542 X"$ac_file" : 'X\(//\)$' \| \
12543 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12544 $as_echo X"$ac_file" |
12545 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12546 s//\1/
12549 /^X\(\/\/\)[^/].*/{
12550 s//\1/
12553 /^X\(\/\/\)$/{
12554 s//\1/
12557 /^X\(\/\).*/{
12558 s//\1/
12561 s/.*/./; q'`
12562 as_dir="$ac_dir"; as_fn_mkdir_p
12563 ac_builddir=.
12565 case "$ac_dir" in
12566 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12568 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12569 # A ".." for each directory in $ac_dir_suffix.
12570 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12571 case $ac_top_builddir_sub in
12572 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12573 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12574 esac ;;
12575 esac
12576 ac_abs_top_builddir=$ac_pwd
12577 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12578 # for backward compatibility:
12579 ac_top_builddir=$ac_top_build_prefix
12581 case $srcdir in
12582 .) # We are building in place.
12583 ac_srcdir=.
12584 ac_top_srcdir=$ac_top_builddir_sub
12585 ac_abs_top_srcdir=$ac_pwd ;;
12586 [\\/]* | ?:[\\/]* ) # Absolute name.
12587 ac_srcdir=$srcdir$ac_dir_suffix;
12588 ac_top_srcdir=$srcdir
12589 ac_abs_top_srcdir=$srcdir ;;
12590 *) # Relative name.
12591 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12592 ac_top_srcdir=$ac_top_build_prefix$srcdir
12593 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12594 esac
12595 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12598 case $ac_mode in
12601 # CONFIG_FILE
12604 case $INSTALL in
12605 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12606 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12607 esac
12608 ac_MKDIR_P=$MKDIR_P
12609 case $MKDIR_P in
12610 [\\/$]* | ?:[\\/]* ) ;;
12611 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12612 esac
12613 _ACEOF
12615 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12616 # If the template does not know about datarootdir, expand it.
12617 # FIXME: This hack should be removed a few years after 2.60.
12618 ac_datarootdir_hack=; ac_datarootdir_seen=
12619 ac_sed_dataroot='
12620 /datarootdir/ {
12624 /@datadir@/p
12625 /@docdir@/p
12626 /@infodir@/p
12627 /@localedir@/p
12628 /@mandir@/p'
12629 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12630 *datarootdir*) ac_datarootdir_seen=yes;;
12631 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12632 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12633 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12634 _ACEOF
12635 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12636 ac_datarootdir_hack='
12637 s&@datadir@&$datadir&g
12638 s&@docdir@&$docdir&g
12639 s&@infodir@&$infodir&g
12640 s&@localedir@&$localedir&g
12641 s&@mandir@&$mandir&g
12642 s&\\\${datarootdir}&$datarootdir&g' ;;
12643 esac
12644 _ACEOF
12646 # Neutralize VPATH when `$srcdir' = `.'.
12647 # Shell code in configure.ac might set extrasub.
12648 # FIXME: do we really want to maintain this feature?
12649 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12650 ac_sed_extra="$ac_vpsub
12651 $extrasub
12652 _ACEOF
12653 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12655 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12656 s|@configure_input@|$ac_sed_conf_input|;t t
12657 s&@top_builddir@&$ac_top_builddir_sub&;t t
12658 s&@top_build_prefix@&$ac_top_build_prefix&;t t
12659 s&@srcdir@&$ac_srcdir&;t t
12660 s&@abs_srcdir@&$ac_abs_srcdir&;t t
12661 s&@top_srcdir@&$ac_top_srcdir&;t t
12662 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12663 s&@builddir@&$ac_builddir&;t t
12664 s&@abs_builddir@&$ac_abs_builddir&;t t
12665 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12666 s&@INSTALL@&$ac_INSTALL&;t t
12667 s&@MKDIR_P@&$ac_MKDIR_P&;t t
12668 $ac_datarootdir_hack
12670 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
12671 || as_fn_error "could not create $ac_file" "$LINENO" 5
12673 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12674 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
12675 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
12676 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12677 which seems to be undefined. Please make sure it is defined." >&5
12678 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12679 which seems to be undefined. Please make sure it is defined." >&2;}
12681 rm -f "$tmp/stdin"
12682 case $ac_file in
12683 -) cat "$tmp/out" && rm -f "$tmp/out";;
12684 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
12685 esac \
12686 || as_fn_error "could not create $ac_file" "$LINENO" 5
12690 # CONFIG_HEADER
12692 if test x"$ac_file" != x-; then
12694 $as_echo "/* $configure_input */" \
12695 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
12696 } >"$tmp/config.h" \
12697 || as_fn_error "could not create $ac_file" "$LINENO" 5
12698 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
12699 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12700 $as_echo "$as_me: $ac_file is unchanged" >&6;}
12701 else
12702 rm -f "$ac_file"
12703 mv "$tmp/config.h" "$ac_file" \
12704 || as_fn_error "could not create $ac_file" "$LINENO" 5
12706 else
12707 $as_echo "/* $configure_input */" \
12708 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
12709 || as_fn_error "could not create -" "$LINENO" 5
12711 # Compute "$ac_file"'s index in $config_headers.
12712 _am_arg="$ac_file"
12713 _am_stamp_count=1
12714 for _am_header in $config_headers :; do
12715 case $_am_header in
12716 $_am_arg | $_am_arg:* )
12717 break ;;
12719 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12720 esac
12721 done
12722 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
12723 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12724 X"$_am_arg" : 'X\(//\)[^/]' \| \
12725 X"$_am_arg" : 'X\(//\)$' \| \
12726 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
12727 $as_echo X"$_am_arg" |
12728 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12729 s//\1/
12732 /^X\(\/\/\)[^/].*/{
12733 s//\1/
12736 /^X\(\/\/\)$/{
12737 s//\1/
12740 /^X\(\/\).*/{
12741 s//\1/
12744 s/.*/./; q'`/stamp-h$_am_stamp_count
12747 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12748 $as_echo "$as_me: executing $ac_file commands" >&6;}
12750 esac
12753 case $ac_file$ac_mode in
12754 "default-1":C)
12755 # Only add multilib support code if we just rebuilt the top-level
12756 # Makefile.
12757 case " $CONFIG_FILES " in
12758 *" Makefile "*)
12759 ac_file=Makefile . ${multi_basedir}/config-ml.in
12761 esac ;;
12762 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
12763 # Autoconf 2.62 quotes --file arguments for eval, but not when files
12764 # are listed without --file. Let's play safe and only enable the eval
12765 # if we detect the quoting.
12766 case $CONFIG_FILES in
12767 *\'*) eval set x "$CONFIG_FILES" ;;
12768 *) set x $CONFIG_FILES ;;
12769 esac
12770 shift
12771 for mf
12773 # Strip MF so we end up with the name of the file.
12774 mf=`echo "$mf" | sed -e 's/:.*$//'`
12775 # Check whether this is an Automake generated Makefile or not.
12776 # We used to match only the files named `Makefile.in', but
12777 # some people rename them; so instead we look at the file content.
12778 # Grep'ing the first line is not enough: some people post-process
12779 # each Makefile.in and add a new line on top of each file to say so.
12780 # Grep'ing the whole file is not good either: AIX grep has a line
12781 # limit of 2048, but all sed's we know have understand at least 4000.
12782 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
12783 dirpart=`$as_dirname -- "$mf" ||
12784 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12785 X"$mf" : 'X\(//\)[^/]' \| \
12786 X"$mf" : 'X\(//\)$' \| \
12787 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
12788 $as_echo X"$mf" |
12789 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12790 s//\1/
12793 /^X\(\/\/\)[^/].*/{
12794 s//\1/
12797 /^X\(\/\/\)$/{
12798 s//\1/
12801 /^X\(\/\).*/{
12802 s//\1/
12805 s/.*/./; q'`
12806 else
12807 continue
12809 # Extract the definition of DEPDIR, am__include, and am__quote
12810 # from the Makefile without running `make'.
12811 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
12812 test -z "$DEPDIR" && continue
12813 am__include=`sed -n 's/^am__include = //p' < "$mf"`
12814 test -z "am__include" && continue
12815 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
12816 # When using ansi2knr, U may be empty or an underscore; expand it
12817 U=`sed -n 's/^U = //p' < "$mf"`
12818 # Find all dependency output files, they are included files with
12819 # $(DEPDIR) in their names. We invoke sed twice because it is the
12820 # simplest approach to changing $(DEPDIR) to its actual value in the
12821 # expansion.
12822 for file in `sed -n "
12823 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
12824 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
12825 # Make sure the directory exists.
12826 test -f "$dirpart/$file" && continue
12827 fdir=`$as_dirname -- "$file" ||
12828 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12829 X"$file" : 'X\(//\)[^/]' \| \
12830 X"$file" : 'X\(//\)$' \| \
12831 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
12832 $as_echo X"$file" |
12833 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12834 s//\1/
12837 /^X\(\/\/\)[^/].*/{
12838 s//\1/
12841 /^X\(\/\/\)$/{
12842 s//\1/
12845 /^X\(\/\).*/{
12846 s//\1/
12849 s/.*/./; q'`
12850 as_dir=$dirpart/$fdir; as_fn_mkdir_p
12851 # echo "creating $dirpart/$file"
12852 echo '# dummy' > "$dirpart/$file"
12853 done
12854 done
12857 "libtool":C)
12859 # See if we are running on zsh, and set the options which allow our
12860 # commands through without removal of \ escapes.
12861 if test -n "${ZSH_VERSION+set}" ; then
12862 setopt NO_GLOB_SUBST
12865 cfgfile="${ofile}T"
12866 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
12867 $RM "$cfgfile"
12869 cat <<_LT_EOF >> "$cfgfile"
12870 #! $SHELL
12872 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
12873 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
12874 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12875 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
12877 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
12878 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
12879 # Written by Gordon Matzigkeit, 1996
12881 # This file is part of GNU Libtool.
12883 # GNU Libtool is free software; you can redistribute it and/or
12884 # modify it under the terms of the GNU General Public License as
12885 # published by the Free Software Foundation; either version 2 of
12886 # the License, or (at your option) any later version.
12888 # As a special exception to the GNU General Public License,
12889 # if you distribute this file as part of a program or library that
12890 # is built using GNU Libtool, you may include this file under the
12891 # same distribution terms that you use for the rest of that program.
12893 # GNU Libtool is distributed in the hope that it will be useful,
12894 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12895 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12896 # GNU General Public License for more details.
12898 # You should have received a copy of the GNU General Public License
12899 # along with GNU Libtool; see the file COPYING. If not, a copy
12900 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
12901 # obtained by writing to the Free Software Foundation, Inc.,
12902 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
12905 # The names of the tagged configurations supported by this script.
12906 available_tags=""
12908 # ### BEGIN LIBTOOL CONFIG
12910 # Which release of libtool.m4 was used?
12911 macro_version=$macro_version
12912 macro_revision=$macro_revision
12914 # Whether or not to build shared libraries.
12915 build_libtool_libs=$enable_shared
12917 # Whether or not to build static libraries.
12918 build_old_libs=$enable_static
12920 # What type of objects to build.
12921 pic_mode=$pic_mode
12923 # Whether or not to optimize for fast installation.
12924 fast_install=$enable_fast_install
12926 # Shell to use when invoking shell scripts.
12927 SHELL=$lt_SHELL
12929 # An echo program that protects backslashes.
12930 ECHO=$lt_ECHO
12932 # The host system.
12933 host_alias=$host_alias
12934 host=$host
12935 host_os=$host_os
12937 # The build system.
12938 build_alias=$build_alias
12939 build=$build
12940 build_os=$build_os
12942 # A sed program that does not truncate output.
12943 SED=$lt_SED
12945 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
12946 Xsed="\$SED -e 1s/^X//"
12948 # A grep program that handles long lines.
12949 GREP=$lt_GREP
12951 # An ERE matcher.
12952 EGREP=$lt_EGREP
12954 # A literal string matcher.
12955 FGREP=$lt_FGREP
12957 # A BSD- or MS-compatible name lister.
12958 NM=$lt_NM
12960 # Whether we need soft or hard links.
12961 LN_S=$lt_LN_S
12963 # What is the maximum length of a command?
12964 max_cmd_len=$max_cmd_len
12966 # Object file suffix (normally "o").
12967 objext=$ac_objext
12969 # Executable file suffix (normally "").
12970 exeext=$exeext
12972 # whether the shell understands "unset".
12973 lt_unset=$lt_unset
12975 # turn spaces into newlines.
12976 SP2NL=$lt_lt_SP2NL
12978 # turn newlines into spaces.
12979 NL2SP=$lt_lt_NL2SP
12981 # An object symbol dumper.
12982 OBJDUMP=$lt_OBJDUMP
12984 # Method to check whether dependent libraries are shared objects.
12985 deplibs_check_method=$lt_deplibs_check_method
12987 # Command to use when deplibs_check_method == "file_magic".
12988 file_magic_cmd=$lt_file_magic_cmd
12990 # The archiver.
12991 AR=$lt_AR
12992 AR_FLAGS=$lt_AR_FLAGS
12994 # A symbol stripping program.
12995 STRIP=$lt_STRIP
12997 # Commands used to install an old-style archive.
12998 RANLIB=$lt_RANLIB
12999 old_postinstall_cmds=$lt_old_postinstall_cmds
13000 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13002 # Whether to use a lock for old archive extraction.
13003 lock_old_archive_extraction=$lock_old_archive_extraction
13005 # A C compiler.
13006 LTCC=$lt_CC
13008 # LTCC compiler flags.
13009 LTCFLAGS=$lt_CFLAGS
13011 # Take the output of nm and produce a listing of raw symbols and C names.
13012 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13014 # Transform the output of nm in a proper C declaration.
13015 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13017 # Transform the output of nm in a C name address pair.
13018 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13020 # Transform the output of nm in a C name address pair when lib prefix is needed.
13021 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
13023 # The name of the directory that contains temporary libtool files.
13024 objdir=$objdir
13026 # Used to examine libraries when file_magic_cmd begins with "file".
13027 MAGIC_CMD=$MAGIC_CMD
13029 # Must we lock files when doing compilation?
13030 need_locks=$lt_need_locks
13032 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
13033 DSYMUTIL=$lt_DSYMUTIL
13035 # Tool to change global to local symbols on Mac OS X.
13036 NMEDIT=$lt_NMEDIT
13038 # Tool to manipulate fat objects and archives on Mac OS X.
13039 LIPO=$lt_LIPO
13041 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
13042 OTOOL=$lt_OTOOL
13044 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
13045 OTOOL64=$lt_OTOOL64
13047 # Old archive suffix (normally "a").
13048 libext=$libext
13050 # Shared library suffix (normally ".so").
13051 shrext_cmds=$lt_shrext_cmds
13053 # The commands to extract the exported symbol list from a shared archive.
13054 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13056 # Variables whose values should be saved in libtool wrapper scripts and
13057 # restored at link time.
13058 variables_saved_for_relink=$lt_variables_saved_for_relink
13060 # Do we need the "lib" prefix for modules?
13061 need_lib_prefix=$need_lib_prefix
13063 # Do we need a version for libraries?
13064 need_version=$need_version
13066 # Library versioning type.
13067 version_type=$version_type
13069 # Shared library runtime path variable.
13070 runpath_var=$runpath_var
13072 # Shared library path variable.
13073 shlibpath_var=$shlibpath_var
13075 # Is shlibpath searched before the hard-coded library search path?
13076 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13078 # Format of library name prefix.
13079 libname_spec=$lt_libname_spec
13081 # List of archive names. First name is the real one, the rest are links.
13082 # The last name is the one that the linker finds with -lNAME
13083 library_names_spec=$lt_library_names_spec
13085 # The coded name of the library, if different from the real name.
13086 soname_spec=$lt_soname_spec
13088 # Permission mode override for installation of shared libraries.
13089 install_override_mode=$lt_install_override_mode
13091 # Command to use after installation of a shared archive.
13092 postinstall_cmds=$lt_postinstall_cmds
13094 # Command to use after uninstallation of a shared archive.
13095 postuninstall_cmds=$lt_postuninstall_cmds
13097 # Commands used to finish a libtool library installation in a directory.
13098 finish_cmds=$lt_finish_cmds
13100 # As "finish_cmds", except a single script fragment to be evaled but
13101 # not shown.
13102 finish_eval=$lt_finish_eval
13104 # Whether we should hardcode library paths into libraries.
13105 hardcode_into_libs=$hardcode_into_libs
13107 # Compile-time system search path for libraries.
13108 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13110 # Run-time system search path for libraries.
13111 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13113 # Whether dlopen is supported.
13114 dlopen_support=$enable_dlopen
13116 # Whether dlopen of programs is supported.
13117 dlopen_self=$enable_dlopen_self
13119 # Whether dlopen of statically linked programs is supported.
13120 dlopen_self_static=$enable_dlopen_self_static
13122 # Commands to strip libraries.
13123 old_striplib=$lt_old_striplib
13124 striplib=$lt_striplib
13127 # The linker used to build libraries.
13128 LD=$lt_LD
13130 # How to create reloadable object files.
13131 reload_flag=$lt_reload_flag
13132 reload_cmds=$lt_reload_cmds
13134 # Commands used to build an old-style archive.
13135 old_archive_cmds=$lt_old_archive_cmds
13137 # A language specific compiler.
13138 CC=$lt_compiler
13140 # Is the compiler the GNU compiler?
13141 with_gcc=$GCC
13143 # Compiler flag to turn off builtin functions.
13144 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
13146 # How to pass a linker flag through the compiler.
13147 wl=$lt_lt_prog_compiler_wl
13149 # Additional compiler flags for building library objects.
13150 pic_flag=$lt_lt_prog_compiler_pic
13152 # Compiler flag to prevent dynamic linking.
13153 link_static_flag=$lt_lt_prog_compiler_static
13155 # Does compiler simultaneously support -c and -o options?
13156 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
13158 # Whether or not to add -lc for building shared libraries.
13159 build_libtool_need_lc=$archive_cmds_need_lc
13161 # Whether or not to disallow shared libs when runtime libs are static.
13162 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
13164 # Compiler flag to allow reflexive dlopens.
13165 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
13167 # Compiler flag to generate shared objects directly from archives.
13168 whole_archive_flag_spec=$lt_whole_archive_flag_spec
13170 # Whether the compiler copes with passing no objects directly.
13171 compiler_needs_object=$lt_compiler_needs_object
13173 # Create an old-style archive from a shared archive.
13174 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
13176 # Create a temporary old-style archive to link instead of a shared archive.
13177 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
13179 # Commands used to build a shared archive.
13180 archive_cmds=$lt_archive_cmds
13181 archive_expsym_cmds=$lt_archive_expsym_cmds
13183 # Commands used to build a loadable module if different from building
13184 # a shared archive.
13185 module_cmds=$lt_module_cmds
13186 module_expsym_cmds=$lt_module_expsym_cmds
13188 # Whether we are building with GNU ld or not.
13189 with_gnu_ld=$lt_with_gnu_ld
13191 # Flag that allows shared libraries with undefined symbols to be built.
13192 allow_undefined_flag=$lt_allow_undefined_flag
13194 # Flag that enforces no undefined symbols.
13195 no_undefined_flag=$lt_no_undefined_flag
13197 # Flag to hardcode \$libdir into a binary during linking.
13198 # This must work even if \$libdir does not exist
13199 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
13201 # If ld is used when linking, flag to hardcode \$libdir into a binary
13202 # during linking. This must work even if \$libdir does not exist.
13203 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
13205 # Whether we need a single "-rpath" flag with a separated argument.
13206 hardcode_libdir_separator=$lt_hardcode_libdir_separator
13208 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13209 # DIR into the resulting binary.
13210 hardcode_direct=$hardcode_direct
13212 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13213 # DIR into the resulting binary and the resulting library dependency is
13214 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
13215 # library is relocated.
13216 hardcode_direct_absolute=$hardcode_direct_absolute
13218 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
13219 # into the resulting binary.
13220 hardcode_minus_L=$hardcode_minus_L
13222 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
13223 # into the resulting binary.
13224 hardcode_shlibpath_var=$hardcode_shlibpath_var
13226 # Set to "yes" if building a shared library automatically hardcodes DIR
13227 # into the library and all subsequent libraries and executables linked
13228 # against it.
13229 hardcode_automatic=$hardcode_automatic
13231 # Set to yes if linker adds runtime paths of dependent libraries
13232 # to runtime path list.
13233 inherit_rpath=$inherit_rpath
13235 # Whether libtool must link a program against all its dependency libraries.
13236 link_all_deplibs=$link_all_deplibs
13238 # Fix the shell variable \$srcfile for the compiler.
13239 fix_srcfile_path=$lt_fix_srcfile_path
13241 # Set to "yes" if exported symbols are required.
13242 always_export_symbols=$always_export_symbols
13244 # The commands to list exported symbols.
13245 export_symbols_cmds=$lt_export_symbols_cmds
13247 # Symbols that should not be listed in the preloaded symbols.
13248 exclude_expsyms=$lt_exclude_expsyms
13250 # Symbols that must always be exported.
13251 include_expsyms=$lt_include_expsyms
13253 # Commands necessary for linking programs (against libraries) with templates.
13254 prelink_cmds=$lt_prelink_cmds
13256 # Specify filename containing input files.
13257 file_list_spec=$lt_file_list_spec
13259 # How to hardcode a shared library path into an executable.
13260 hardcode_action=$hardcode_action
13262 # ### END LIBTOOL CONFIG
13264 _LT_EOF
13266 case $host_os in
13267 aix3*)
13268 cat <<\_LT_EOF >> "$cfgfile"
13269 # AIX sometimes has problems with the GCC collect2 program. For some
13270 # reason, if we set the COLLECT_NAMES environment variable, the problems
13271 # vanish in a puff of smoke.
13272 if test "X${COLLECT_NAMES+set}" != Xset; then
13273 COLLECT_NAMES=
13274 export COLLECT_NAMES
13276 _LT_EOF
13278 esac
13281 ltmain="$ac_aux_dir/ltmain.sh"
13284 # We use sed instead of cat because bash on DJGPP gets confused if
13285 # if finds mixed CR/LF and LF-only lines. Since sed operates in
13286 # text mode, it properly converts lines to CR/LF. This bash problem
13287 # is reportedly fixed, but why not run on old versions too?
13288 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
13289 || (rm -f "$cfgfile"; exit 1)
13291 case $xsi_shell in
13292 yes)
13293 cat << \_LT_EOF >> "$cfgfile"
13295 # func_dirname file append nondir_replacement
13296 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
13297 # otherwise set result to NONDIR_REPLACEMENT.
13298 func_dirname ()
13300 case ${1} in
13301 */*) func_dirname_result="${1%/*}${2}" ;;
13302 * ) func_dirname_result="${3}" ;;
13303 esac
13306 # func_basename file
13307 func_basename ()
13309 func_basename_result="${1##*/}"
13312 # func_dirname_and_basename file append nondir_replacement
13313 # perform func_basename and func_dirname in a single function
13314 # call:
13315 # dirname: Compute the dirname of FILE. If nonempty,
13316 # add APPEND to the result, otherwise set result
13317 # to NONDIR_REPLACEMENT.
13318 # value returned in "$func_dirname_result"
13319 # basename: Compute filename of FILE.
13320 # value retuned in "$func_basename_result"
13321 # Implementation must be kept synchronized with func_dirname
13322 # and func_basename. For efficiency, we do not delegate to
13323 # those functions but instead duplicate the functionality here.
13324 func_dirname_and_basename ()
13326 case ${1} in
13327 */*) func_dirname_result="${1%/*}${2}" ;;
13328 * ) func_dirname_result="${3}" ;;
13329 esac
13330 func_basename_result="${1##*/}"
13333 # func_stripname prefix suffix name
13334 # strip PREFIX and SUFFIX off of NAME.
13335 # PREFIX and SUFFIX must not contain globbing or regex special
13336 # characters, hashes, percent signs, but SUFFIX may contain a leading
13337 # dot (in which case that matches only a dot).
13338 func_stripname ()
13340 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
13341 # positional parameters, so assign one to ordinary parameter first.
13342 func_stripname_result=${3}
13343 func_stripname_result=${func_stripname_result#"${1}"}
13344 func_stripname_result=${func_stripname_result%"${2}"}
13347 # func_opt_split
13348 func_opt_split ()
13350 func_opt_split_opt=${1%%=*}
13351 func_opt_split_arg=${1#*=}
13354 # func_lo2o object
13355 func_lo2o ()
13357 case ${1} in
13358 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
13359 *) func_lo2o_result=${1} ;;
13360 esac
13363 # func_xform libobj-or-source
13364 func_xform ()
13366 func_xform_result=${1%.*}.lo
13369 # func_arith arithmetic-term...
13370 func_arith ()
13372 func_arith_result=$(( $* ))
13375 # func_len string
13376 # STRING may not start with a hyphen.
13377 func_len ()
13379 func_len_result=${#1}
13382 _LT_EOF
13384 *) # Bourne compatible functions.
13385 cat << \_LT_EOF >> "$cfgfile"
13387 # func_dirname file append nondir_replacement
13388 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
13389 # otherwise set result to NONDIR_REPLACEMENT.
13390 func_dirname ()
13392 # Extract subdirectory from the argument.
13393 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
13394 if test "X$func_dirname_result" = "X${1}"; then
13395 func_dirname_result="${3}"
13396 else
13397 func_dirname_result="$func_dirname_result${2}"
13401 # func_basename file
13402 func_basename ()
13404 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
13408 # func_stripname prefix suffix name
13409 # strip PREFIX and SUFFIX off of NAME.
13410 # PREFIX and SUFFIX must not contain globbing or regex special
13411 # characters, hashes, percent signs, but SUFFIX may contain a leading
13412 # dot (in which case that matches only a dot).
13413 # func_strip_suffix prefix name
13414 func_stripname ()
13416 case ${2} in
13417 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
13418 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
13419 esac
13422 # sed scripts:
13423 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
13424 my_sed_long_arg='1s/^-[^=]*=//'
13426 # func_opt_split
13427 func_opt_split ()
13429 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
13430 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
13433 # func_lo2o object
13434 func_lo2o ()
13436 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
13439 # func_xform libobj-or-source
13440 func_xform ()
13442 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
13445 # func_arith arithmetic-term...
13446 func_arith ()
13448 func_arith_result=`expr "$@"`
13451 # func_len string
13452 # STRING may not start with a hyphen.
13453 func_len ()
13455 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
13458 _LT_EOF
13459 esac
13461 case $lt_shell_append in
13462 yes)
13463 cat << \_LT_EOF >> "$cfgfile"
13465 # func_append var value
13466 # Append VALUE to the end of shell variable VAR.
13467 func_append ()
13469 eval "$1+=\$2"
13471 _LT_EOF
13474 cat << \_LT_EOF >> "$cfgfile"
13476 # func_append var value
13477 # Append VALUE to the end of shell variable VAR.
13478 func_append ()
13480 eval "$1=\$$1\$2"
13483 _LT_EOF
13485 esac
13488 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
13489 || (rm -f "$cfgfile"; exit 1)
13491 mv -f "$cfgfile" "$ofile" ||
13492 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
13493 chmod +x "$ofile"
13497 esac
13498 done # for ac_tag
13501 as_fn_exit 0
13502 _ACEOF
13503 ac_clean_files=$ac_clean_files_save
13505 test $ac_write_fail = 0 ||
13506 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
13509 # configure is writing to config.log, and then calls config.status.
13510 # config.status does its own redirection, appending to config.log.
13511 # Unfortunately, on DOS this fails, as config.log is still kept open
13512 # by configure, so config.status won't be able to write to it; its
13513 # output is simply discarded. So we exec the FD to /dev/null,
13514 # effectively closing config.log, so it can be properly (re)opened and
13515 # appended to by config.status. When coming back to configure, we
13516 # need to make the FD available again.
13517 if test "$no_create" != yes; then
13518 ac_cs_success=:
13519 ac_config_status_args=
13520 test "$silent" = yes &&
13521 ac_config_status_args="$ac_config_status_args --quiet"
13522 exec 5>/dev/null
13523 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13524 exec 5>>config.log
13525 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13526 # would make configure fail if this is the last instruction.
13527 $ac_cs_success || as_fn_exit $?
13529 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13530 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13531 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}